/* ── FLOATING NAV ── */
        .site-nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 200;
            padding: 1.8rem 4rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            pointer-events: none;
        }

        .site-nav-logo {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.35rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: #0a0a0a;
            text-decoration: none;
            pointer-events: all;
            position: relative;
        }

        .site-nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
            pointer-events: all;
            
            /* Center perfectly relative to the window */
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .site-nav-link {
            font-size: 1.1rem;
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
            letter-spacing: 0;
            text-transform: none;
            text-decoration: none;
            color: #000;
            position: relative;
            transition: color 0.3s, text-shadow 0.3s;
        }

        .site-nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0;
            width: 0; height: 1.5px;
            background: #000;
            transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
        }

        .site-nav-link:hover::after { width: 100%; }
        
        .site-nav-link:active {
            transform: scale(0.95);
        }

        /* Nav CTA Button */
        .nav-cta {
            position: relative;
            display: inline-block;
            border: 1.5px solid #000;
            padding: 0.8rem 2rem;
            text-decoration: none;
            color: #000;
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-family: 'Outfit', sans-serif;
            border-radius: 4px;
            overflow: hidden;
            z-index: 1;
            transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.2s, border-color 0.3s, text-shadow 0.3s;
        }

        .nav-cta::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-color: #000;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s;
            z-index: -1;
        }

        .nav-cta:hover::before {
            transform: scaleX(1);
            transform-origin: left;
        }
        
        .nav-cta:hover {
            color: #fff !important;
        }

        .nav-cta:active {
            transform: scale(0.95);
        }

        /* DARK MODE FOR NAV */
        .nav-dark-mode .site-nav-link {
            color: #ffffff;
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }
        .nav-dark-mode .site-nav-link::after {
            background: #ffffff;
        }
        .nav-dark-mode .nav-cta {
            color: #ffffff;
            border-color: #ffffff;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        .nav-dark-mode .nav-cta::before {
            background-color: #ffffff;
        }
        .nav-dark-mode .nav-cta:hover {
            color: #000000 !important;
            text-shadow: none;
        }

        /* Mobile Menu Button */
        .nav-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 32px;
            height: 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 101;
            pointer-events: all;
        }

        .nav-toggle span {
            width: 100%;
            height: 2px;
            background-color: #000;
            border-radius: 2px;
            transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
            position: relative;
            transform-origin: center;
        }

        .nav-dark-mode .nav-toggle span {
            background-color: #fff;
        }

        /* Nav specific layouts */
        .nav-right-container {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            pointer-events: all;
        }

        .mobile-only-cta {
            display: none;
        }

        @media (max-width: 1024px) {
            .site-nav { padding: 1.2rem 1.5rem; justify-content: space-between; }
            
            .nav-toggle {
                display: flex;
            }
            
            .site-nav-logo img {
                height: 80px !important;
            }

            .desktop-cta {
                padding: 0.6rem 1.2rem;
                font-size: 0.8rem;
            }

            /* The links overlay */
            .site-nav-links {
                position: fixed;
                top: 0; left: 0;
                width: 100vw;
                height: 100vh;
                background-color: #0a0a0a;
                flex-direction: column;
                justify-content: center;
                align-items: flex-end;
                padding-right: 3rem;
                gap: 2.5rem;
                transform: translateX(100%); /* Hidden by default */
                transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
                z-index: 100;
            }

            .site-nav-links.nav-open {
                transform: translateX(0);
            }

            .site-nav-link {
                color: #fff !important;
                font-size: 2.2rem;
                text-shadow: none !important;
                font-weight: 500;
                text-align: right;
            }

            .site-nav-link::after {
                background: #fff !important;
                bottom: -4px;
                left: auto;
                right: 0;
            }

            .mobile-only-cta {
                display: inline-block;
                color: #fff;
                border-color: #fff;
                margin-top: 1rem;
                font-size: 1.2rem;
                font-weight: 500;
                padding: 1rem 3rem;
            }

            /* Hamburger animation when open */
            .nav-toggle.is-active span:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
                background-color: #fff !important;
            }
            .nav-toggle.is-active span:nth-child(2) {
                opacity: 0;
            }
            .nav-toggle.is-active span:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
                background-color: #fff !important;
            }
        }

        /* Page Transition Overlay */
        #page-transition-overlay {
            position: fixed;
            inset: 0;
            background: #0a0a0a;
            z-index: 9999;
            pointer-events: none;
            transform: scaleY(0);
            transform-origin: bottom center;
        }

        /* Custom Cursor */
        .cursor-dot {
            width: 10px;
            height: 10px;
            background: #0a0a0a;
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            mix-blend-mode: difference;
            transition: transform 0.2s ease;
        }
        .cursor-dot.grow { transform: scale(6); opacity: 0.15; }

        /* Click hint on shapes */
        .shape-click-hint {
            position: absolute;
            bottom: 1.2rem;
            right: 1.2rem;
            z-index: 4;
            font-family: 'Outfit', sans-serif;
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.8);
            opacity: 0;
            transform: translateY(6px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .shape:hover .shape-click-hint { opacity: 1; transform: translateY(0); }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #ffffff;
            overflow-x: hidden;
            font-family: 'Outfit', sans-serif;
        }

        .scroll-container {
            height: 300vh; /* Scroll length for slow animation */
            position: relative;
        }

        .sticky-wrapper {
            position: sticky;
            top: 0;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            background-color: #ffffff;
        }

        /* Dynamic Grid Background */
        .bg-grid-container, .bg-grid-interactive-wrapper {
            position: absolute;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }

        .bg-grid-container {
            /* Fade out at edges */
            -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
            mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
        }

        .bg-grid-interactive-wrapper {
            /* Interactive mask following cursor */
            -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
            mask-image: radial-gradient(circle 300px at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
        }

        .bg-grid, .bg-grid-interactive {
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background-size: 50px 50px;
            animation: moveGrid 30s linear infinite;
        }

        .bg-grid {
            background-image: 
                linear-gradient(to right, rgba(0, 0, 0, 0.09) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.09) 1px, transparent 1px);
        }

        .bg-grid-interactive {
            /* Chromatic aberration effect (cyan/red shift with darker center) */
            background-image: 
                linear-gradient(to right, rgba(255, 60, 60, 0.15) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 60, 60, 0.15) 1px, transparent 1px),
                linear-gradient(to right, rgba(60, 200, 255, 0.15) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(60, 200, 255, 0.15) 1px, transparent 1px),
                linear-gradient(to right, rgba(0, 0, 0, 0.25) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 1px, transparent 1px);
            background-position: 
                -1.5px 0, 0 -1.5px, 
                1.5px 0, 0 1.5px, 
                0 0, 0 0;
        }

        @keyframes moveGrid {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-50px, -50px); } 
        }

        /* Hero Text Styles */
        .hero-title {
            font-family: 'Right Grotesk', sans-serif;
            font-size: 7.5vw;
            line-height: 0.85;
            margin: 0;
            color: #0a0a0a;
            text-transform: uppercase;
            letter-spacing: -0.01em;
            font-weight: normal;
        }

        .hero-brand {
            font-family: 'La Luxes Script', cursive;
            font-size: 11vw;
            text-transform: none;
            letter-spacing: 0;
            margin-left: -2vw;
            display: inline-block;
            transform: translateY(15%);
            font-weight: normal;
        }

        /* Base Shape Styles */
        .shape {
            position: absolute;
            transform-origin: center center;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: hidden; /* Important to clip the video/image */
            cursor: pointer;
        }

        /* Image and Video styling inside the shape */
        .shape-img {
            filter: brightness(0.6);

            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
            transition: opacity 0.3s ease;
        }

        .shape-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 2;
            opacity: 0;
            transition: opacity 0.3s ease;
            filter: brightness(0.5); /* Assombrit la vidéo de 60% */
        }

        /* Hover effect: hide image, show video */
        .shape:hover .shape-img {
            opacity: 0;
        }
        
        .shape:hover .shape-video {
            opacity: 1;
        }

        /* Text Styles (on top of media) */
        .shape-text-wrapper {
            position: absolute;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            gap: 0.5vw;
            opacity: 0; /* GSAP will animate this */
        }

        .shape-title {
            color: white;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
            margin: 0;
            line-height: 1;
        }

        .shape-desc {
            color: rgba(255, 255, 255, 0.9);
            font-family: 'Outfit', sans-serif;
            font-size: 0.9vw;
            font-weight: 300;
            text-shadow: 0px 0px 8px rgba(0,0,0,0.6);
            letter-spacing: 1px;
            text-align: center;
        }

        #rect-5 .shape-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 3vw;
            font-style: italic;
        }

        #rect-6 .shape-title,
        #rect-7 .shape-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2vw;
            font-style: italic;
            font-weight: 400;
        }

        /* ETAPE 1 (START STATE) - DESKTOP */
        #rect-6 {
            width: 42.2vw;
            height: 29vh;
            left: 19.06vw;
            top: 71.2vh;
            transform: rotate(-3deg);
            z-index: 1;
        }

        #rect-7 {
            width: 42.2vw;
            height: 29vh;
            left: 37.94vw;
            top: 71.2vh;
            transform: rotate(3deg);
            z-index: 2;
        }

        #rect-5 {
            width: 42.2vw;
            height: 29vh;
            left: 28.86vw;
            top: 73.17vh;
            z-index: 3;
        }

        /* RESPONSIVE DESIGN FOR MOBILE & TABLETS */
        @media (max-width: 768px) {
            #rect-5 .shape-title {
                font-size: 8vw;
            }
            #rect-6 .shape-title,
            #rect-7 .shape-title {
                font-size: 6vw;
            }
            .shape-desc {
                font-size: 3.5vw;
                gap: 1vw;
            }

            #rect-6 {
                width: 70vw;
                height: 27vh;
                left: 10vw;
                top: 75vh;
                transform: rotate(-3deg);
            }

            #rect-7 {
                width: 70vw;
                height: 27vh;
                left: 20vw;
                top: 75vh;
                transform: rotate(3deg);
            }

            #rect-5 {
                width: 70vw;
                height: 27vh;
                left: 15vw;
                top: 77vh;
                transform: rotate(0deg);
            }
        }

        /* ══ UNIFIED TOP NAV ══ */
        .unified-nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 8000;
            padding: 1.5rem 4rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            pointer-events: none;
        }
        .unified-nav-logo {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.35rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            text-decoration: none;
            color: #fff;
            mix-blend-mode: difference;
            pointer-events: all;
            position: relative;
        }
        .unified-nav-logo::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0;
            width: 0; height: 1px;
            background: #fff;
            transition: width 0.3s ease;
        }
        .unified-nav-logo:hover::after { width: 100%; }

        .hamburger {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 44px;
            height: 44px;
            cursor: pointer;
            z-index: 9999;
            position: relative;
            background: none;
            border: none;
            padding: 0;
            color: #fff;
            mix-blend-mode: difference;
            pointer-events: all;
        }
        .hamburger span {
            display: block;
            width: 24px;
            height: 1.5px;
            background: currentColor;
            transition: all 0.35s ease;
            transform-origin: center;
        }
        .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
        .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

        @media (max-width: 768px) {
            .unified-nav { padding: 1.2rem 1.5rem; }
        }


        @media (max-width: 768px) {
            /* .site-nav-links are now visible on mobile */
        }
    
        
/* ── FOOTER ── */
        .site-footer {
            background-color: #050505;
            color: #fff;
            padding: 6rem 4rem 2rem 4rem;
            font-family: 'Outfit', sans-serif;
            position: relative;
            z-index: 10;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .footer-logo {
            width: 220px;
            margin-bottom: 2rem;
        }

        .social-icons {
            display: flex;
            gap: 1.2rem;
        }

        .social-icon {
            width: 48px;
            height: 48px;
            background-color: #fff;
            color: #050505;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            background-color: #f4f4f4;
        }

        .social-icon svg {
            width: 24px;
            height: 24px;
        }

        .footer-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 1.15rem;
        }

        .footer-link:hover {
            color: #fff;
        }

        .footer-contact-item {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            margin-bottom: 1.2rem;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.15rem;
        }

        .footer-contact-icon {
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .footer-contact-icon svg {
            width: 24px;
            height: 24px;
        }

        .footer-bottom {
            margin-top: 5rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.5);
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .footer-legal-links {
            display: flex;
            gap: 2rem;
        }
        
        .footer-legal-links a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-legal-links a:hover {
            color: #fff;
        }

        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .site-footer {
                padding: 4rem 2rem 2rem 2rem;
            }
            .footer-bottom {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }
            .footer-legal-links {
                flex-direction: column;
                gap: 1rem;
            }
        }

        /* ── SOLID NAV ── */
        .site-nav.nav-solid {
            background-color: #ffffff;
        }


/* ── FORCE MOBILE MENU LAYOUT FOR NAV-SOLID (DESKTOP) ── */
.site-nav.nav-solid {
    padding: 1.2rem 4rem;
}
.site-nav.nav-solid .nav-toggle {
    display: flex;
}
.site-nav.nav-solid .site-nav-logo img {
    height: 80px !important;
}
.site-nav.nav-solid .desktop-cta {
    display: none;
}
.site-nav.nav-solid .site-nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 4rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
}
.site-nav.nav-solid .site-nav-links.nav-open {
    transform: translateX(0);
}
.site-nav.nav-solid .site-nav-link {
    color: #fff !important;
    font-size: 2.2rem;
    text-shadow: none !important;
    font-weight: 500;
    text-align: right;
}
.site-nav.nav-solid .site-nav-link::after {
    background: #fff !important;
    bottom: -4px;
    left: auto;
    right: 0;
}
.site-nav.nav-solid .mobile-only-cta {
    display: inline-block;
    color: #fff;
    border-color: #fff;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem 3rem;
}
.site-nav.nav-solid .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff !important;
}
.site-nav.nav-solid .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.site-nav.nav-solid .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff !important;
}


@media (max-width: 768px) {
    .site-nav.nav-solid {
        padding: 1.2rem 1.5rem;
    }
    .site-nav.nav-solid .site-nav-links {
        padding-right: 3rem;
    }
}


/* ── BOTTOM DOCK NAV ── */
.bottom-dock {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-ink, #0a0a0a);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.dock-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.dock-item:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.dock-item:hover svg {
    transform: scale(1.1);
}

/* Tooltip */
.dock-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: var(--color-ink, #0a0a0a);
    color: var(--color-bg, #fafaf8);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 768px) {
    .bottom-dock {
        bottom: 1rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    .dock-item {
        width: 38px;
        height: 38px;
    }
    .dock-item svg {
        width: 18px;
        height: 18px;
    }
    .dock-item:hover {
        transform: translateY(-3px);
    }
    .dock-item::after {
        display: none; /* Tooltips often annoy on mobile touch */
    }
}
