:root {
    --gold: #c5a059;
    --gold-dim: rgba(197, 160, 89, 0.7);
    --bg: #050505;
    --card: #0d0d0d;
    --border: rgba(255,255,255,0.06);
    --text-main: #e0e0e0;
    --text-dim: #888;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { background: var(--bg); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* NAVIGATION & MENU MOBILE */
.minimal-nav {
    position: fixed; width: 100%; top: 0; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 6%; z-index: 1000; background: rgba(5,5,5,0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Playfair Display'; font-size: 1.1rem; letter-spacing: 4px; color: white; text-decoration: none; position: relative; z-index: 1001; }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: #b7b7b7; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; margin-left: 35px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }
.cta-small { border: 1px solid var(--gold); padding: 8px 18px; color: white !important; transition: 0.3s; }
.cta-small:hover { background: var(--gold); color: black !important; }

.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 100%; height: 2px; background-color: var(--gold); transition: all 0.3s ease; }

/* HERO */
.hero-clean { height: 65vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { position: relative; text-align: center; z-index: 2; padding: 0 20px; }
.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 6px; color: var(--gold); display: block; margin-bottom: 18px; }
h1 { font-family: 'Playfair Display'; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.1; }
h1 em { font-style: italic; color: var(--gold); }

/* LAYOUT */
.container-premium { max-width: 1150px; margin: 0 auto; padding: 0 5%; }
.section-box { margin-bottom: 150px; border-top: 1px solid var(--gold); padding-top: 100px; }
.num { font-family: 'Playfair Display'; font-size: 1rem; color: var(--gold); display: block; margin-bottom: 25px; }
.section-title { font-family: 'Playfair Display'; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 40px; }
.section-title span { color: var(--gold); font-style: italic; opacity: 0.7; }

/* EXPERTISE */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.desc { color: #d5d5d5; line-height: 1.7; margin-bottom: 35px; font-weight: 300; }
.check-list { list-style: none; color: #d5d5d5db; }
.check-list li { margin-bottom: 15px; position: relative; padding-left: 25px; }
.check-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.img-frame { border: 1px solid var(--border); padding: 15px; background: rgb(197 160 89 / 24%); border-radius: 30px; }
.img-frame img { width: 100%; display: block; border-radius: 20px; }

/* SERVICES (Legacy) */
.services-flex { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 80px; }
.s-card { padding: 40px; background: rgb(197 160 89 / 25%); border: 1px solid var(--border); border-radius: 20px; position: relative; transition: 0.5s var(--ease); cursor: pointer; }
.s-card:hover, .s-card.active { background: rgba(197, 160, 89, 0.15); transform: translateY(-3px); border-color: var(--gold-dim); }
.s-icon { color: var(--gold); font-weight: 600; margin-bottom: 20px; font-family: 'Playfair Display'; }
.s-card h3 { font-family: 'Playfair Display'; font-size: 1.2rem; margin-bottom: 18px; line-height: 1.4; }

/* ============================================================
   SLIDER PORTFOLIO 2026 - DESKTOP
============================================================ */
.box-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.modern-filters { background: rgba(197, 160, 89, 0.1); border: 1px solid rgba(197, 160, 89, 0.7); border-radius: 20px; padding: 10px 20px; backdrop-filter: blur(10px); }
.filter-btn { background: none; border: none; color: white; cursor: pointer; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; transition: 0.4s var(--ease); font-family: 'Inter', sans-serif; }
.filter-btn:hover, .filter-btn.active { opacity: 1; color: var(--gold); text-shadow: 0 0 15px var(--gold); transform: scale(1.05); }
.sep { color: white; opacity: 0.7; margin: 0 10px; font-weight: 100; }

.modern-carousel-wrapper { width: 100%; height: 450px; display: flex; perspective: 1000px; }
.modern-track { display: flex; gap: 15px; width: 100%; height: 100%; transition: all 0.8s var(--ease); }

.m-slide {
    position: relative; flex: 1; border-radius: 20px; overflow: hidden; cursor: pointer;
    transition: flex 0.8s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.6s ease;
    border: 1px solid var(--border);
}
.m-slide.hidden { display: none; }

.m-slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%) brightness(0.8); transition: all 0.8s var(--ease); }
.m-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); opacity: 0; transition: 0.6s var(--ease); }

.m-slide:hover, .m-slide.expanded { flex: 4; border-color: var(--gold); box-shadow: 0 0 40px rgba(197, 160, 89, 0.25); z-index: 10; }
.m-slide:hover img, .m-slide.expanded img { filter: grayscale(0%) brightness(1); transform: scale(1.05); }
.m-slide:hover .m-overlay, .m-slide.expanded .m-overlay { opacity: 1; }

.m-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px;
    transform: translateY(100px); opacity: 0; transition: all 0.6s var(--ease) 0.1s;
    pointer-events: none;
}
.m-slide:hover .m-content, .m-slide.expanded .m-content { transform: translateY(0); opacity: 1; pointer-events: auto; }
.m-content h3 { font-family: 'Playfair Display'; font-size: clamp(1.5rem, 3vw, 2.2rem); color: white; margin-bottom: 5px; white-space: nowrap; }
.m-content p { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px; white-space: nowrap; }

.m-btn {
    display: inline-block; padding: 12px 30px; border: 1px solid var(--gold); color: white; text-decoration: none;
    font-size: 0.8rem; letter-spacing: 1.5px; transition: 0.4s; backdrop-filter: blur(5px); background: rgba(197, 160, 89, 0.1);
    border-radius: 5px;
}
.m-btn:hover { background: var(--gold); color: black; box-shadow: 0 0 20px rgba(197, 160, 89, 0.6); transform: translateY(-3px); }

/* TRUST GRID */
.trust-grid { padding-top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 120px; border-top: 1px solid var(--gold);}
.glass { background: rgb(197 160 89 / 14%); border: 1px solid var(--border); padding: 50px; border-radius: 15px; backdrop-filter: blur(10px); }
.small-tag { color: var(--gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; display: block; }
.logos { display: flex; gap: 40px; filter: grayscale(1) invert(0.9) opacity(0.7); flex-wrap: wrap; }
.logos img { height: 25px; object-fit: contain; transition: 0.3s; }
.logos img:hover { filter: none; opacity: 1; }

/* AVIS DYNAMIQUES */
.testi-item p { font-family: 'Playfair Display'; font-style: italic; font-size: 1.3rem; margin-bottom: 20px; line-height: 1.5; }
.testi-item cite { color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; font-style: normal; }
#reviews-container { transition: opacity 0.5s ease; min-height: 120px; display: flex; align-items: center; }
#review-progress { width: 0%; height: 100%; background: var(--gold); transition: width 0.1s linear; }

/* FOOTER */
.footer-clean { text-align: center; padding: 70px 20px; opacity: 0.5; border-top: 1px solid var(--border); letter-spacing: 3px; font-size: 0.8rem; }

/* SOCIAUX FLOTTANTS */
.social-sticky { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; z-index: 999; }
.social-sticky a { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: rgba(197, 160, 89, 0.1); border: 1px solid var(--border); border-radius: 50%; color: var(--gold); transition: all 0.4s var(--ease); backdrop-filter: blur(10px); }
.social-sticky a svg { width: 20px; height: 20px; }
.social-sticky a:hover { background: var(--gold); color: black; transform: translateX(-5px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); }

/* ============================================================
   BENTO PRESTATIONS 2026 (DESKTOP)
============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
    margin-top: 50px;
    transition: grid-template-columns 0.5s var(--ease);
}

/* Logique d'élargissement Desktop */
.bento-grid:has(.bento-item.tint:hover) { grid-template-columns: 1fr 1fr 2fr 0.5fr; }
.bento-grid:has(.bento-item.ad:hover) { grid-template-columns: 1fr 1fr 0.5fr 2fr; }

.bento-item {
    position: relative;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 40px;
    overflow: hidden;
    transition: all 0.6s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    perspective: 1000px;
    z-index: 1;
    min-width: 0;
    min-height: 0;
}

.bento-item.ppf { grid-column: span 2; grid-row: span 2; background: linear-gradient(45deg, #c5a0595c, #151515); }
.bento-item.covering { grid-column: span 2; grid-row: span 1; background: linear-gradient(45deg, #c5a0595c, #151515);}
.bento-item.tint { grid-column: 3; grid-row: 2; background: linear-gradient(45deg, #c5a0595c, #151515); }
.bento-item.ad { grid-column: 4; grid-row: 2; background: linear-gradient(45deg, #c5a0595c, #151515); }

.bento-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-item:hover .bento-bg { opacity: 1; }

.bento-item:hover, .bento-item.active {
    border-color: var(--gold-dim);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-tag {
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
    border: 1px solid var(--gold-dim); padding: 4px 12px; border-radius: 20px;
    width: fit-content; margin-bottom: 15px; display: block;
}

.bento-item h3 {
    font-family: 'Playfair Display';
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 10px;
    color: #fff;
    white-space: normal;
    line-height: 1.2;
}

.bento-item p {
    font-size: 0.9rem; color: var(--text-dim); line-height: 1.4;
    max-width: 90%; margin-bottom: 5px;
}

.bento-details {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.6s var(--ease), opacity 0.4s ease, transform 0.5s var(--ease);
    transform: translateY(10px);
}

.bento-item:hover .bento-details, .bento-item.active .bento-details {
    max-height: 250px; opacity: 1; margin-top: 15px; transform: translateY(0);
}

.bento-details p {
    font-size: 0.85rem; color: #bbb; line-height: 1.5;
    border-top: 1px solid rgba(197, 160, 89, 0.2); padding-top: 15px;
}

.bento-number {
    position: absolute; top: 20px; right: 30px; font-size: 6rem;
    opacity: 0.03; transition: all 0.5s; user-select: none; font-family: 'Playfair Display';
}
.bento-item:hover .bento-number { opacity: 0.1; color: var(--gold); }

/* ============================================================
   RESPONSIVE & MOBILE OPTIMIZATION
============================================================ */

@media (max-width: 950px) {
    .expertise-grid, .trust-grid { grid-template-columns: 1fr; gap: 40px; }
    .expertise-visual { order: -1; }
}

@media (max-width: 768px) {
    /* Menu Mobile */
    .menu-toggle { display: flex; }
    .nav-links { 
        position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px); 
        background: rgba(5,5,5,0.95); backdrop-filter: blur(20px); 
        flex-direction: column; justify-content: center; align-items: center; 
        gap: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { margin: 0; font-size: 1.2rem; }

    /* Portfolio Mobile */
    .modern-carousel-wrapper { 
        height: 500px; overflow-x: auto; scroll-snap-type: x mandatory; 
        scrollbar-width: none; padding-bottom: 20px;
    }
    .modern-carousel-wrapper::-webkit-scrollbar { display: none; }
    .modern-track { flex-direction: row; width: max-content; padding: 0 10vw; gap: 15px; }
    .m-slide { flex: 0 0 80vw; height: 100%; scroll-snap-align: center; transform: scale(0.9); opacity: 0.6; }
    .m-slide.expanded { transform: scale(1); opacity: 1; border-color: var(--gold); }
    .m-slide img { filter: grayscale(0%) brightness(0.6); }
    .m-overlay { opacity: 1; }
    .m-content { opacity: 1; transform: translateY(0); padding: 25px; }
    .m-content h3 { font-size: 1.5rem; white-space: normal; }
    .m-content p { white-space: normal; }
    .modern-filters { display: flex; overflow-x: auto; white-space: nowrap; width: 100%; gap: 10px; }
    .sep { display: none; }

    /* Bento Mobile */
    .bento-grid {
        display: flex; flex-direction: column; gap: 15px;
        grid-template-columns: 1fr !important; height: auto !important;
    }
    .bento-item, .bento-item.ppf, .bento-item.covering, .bento-item.tint, .bento-item.ad {
        grid-column: span 1 !important; grid-row: auto !important;
        height: auto !important; min-height: 200px; padding: 30px 25px; transform: none !important;
    }
    .bento-item h3 { font-size: 1.4rem; }
    .bento-item p { font-size: 0.85rem; max-width: 100%; margin-bottom: 0; }
    .bento-details { max-height: 0; opacity: 0; transition: all 0.4s var(--ease); }
    .bento-item.active .bento-details { max-height: 300px; opacity: 1; margin-top: 15px; }
    .bento-number { font-size: 3rem; top: 15px; right: 15px; opacity: 0.05; }
    .bento-grid:has(.bento-item.tint:hover), .bento-grid:has(.bento-item.ad:hover) { grid-template-columns: 1fr !important; }

    .social-sticky { position: static; flex-direction: row; justify-content: center; margin: 40px 0; transform: none; }
}
