 * {
            margin: 0;
            padding: 0;
            max-width: 100%; /* Prevent all horizontal overflow */
            box-sizing: border-box;
        }

/* Prevent all horizontal overflow */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

        :root {
            --deep-navy: #040f21;
            --soft-blue: #bed3ef;
            --white: #FFFFFF;
            --pastel-pink: #F6e1f5;
            --ultra-light: #f8fafc;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--deep-navy);
            color: var(--soft-blue);
            line-height: 1.6;
            overflow-x: hidden;
            cursor: none;
        }

        /* Page Exit Animation */
        body.page-exit {
            opacity: 0;
            transition: opacity 0.5s cubic-bezier(0.87, 0, 0.13, 1);
        }

        /* Ensure preloader is hidden instantly on non-first loads */
        .preloader.hidden-immediately {
            display: none;
        }


        /* --- Preloader --- */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--deep-navy);
            z-index: 1000000000; /* Ensure preloader is always on top */
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.8s cubic-bezier(0.87, 0, 0.13, 1);
        } 

        .preloader.loaded {
            pointer-events: none; /* Ensure it's not clickable when hidden */
            opacity: 0;
        }

        .preloader-logo-container {
            position: relative; 
            width: 400px; /* Made the logo container larger */
            height: 60px;  /* Adjusted height to match aspect ratio */
        }

        .preloader-logo {
            width: 100%;
            height: 100%;
            opacity: 0; /* Initially hidden */
            /* Animation will be triggered by JS */
        }

        .preloader-logo-container.animate-reveal .preloader-logo {
            animation: logo-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
        }

        /* The new "Luminous Construction" lines */
        .preloader-logo-container::before,
        .preloader-logo-container::after {
            content: '';
            position: absolute;
            left: 50%;
            width: 0%;
            height: 1px;
            background: var(--soft-blue); /* Changed color to soft blue */
            transform: translateX(-50%);
        }

        .preloader-logo-container::before { top: 0; }
        .preloader-logo-container::after { bottom: 0; }

        .preloader-logo-container.animate-reveal::before,
        .preloader-logo-container.animate-reveal::after {
            animation: draw-line 1.2s cubic-bezier(0.87, 0, 0.13, 1) forwards;
        }

        @keyframes draw-line {
            to { width: 100%; }
        }

        @keyframes logo-fade-in {
            to {
                opacity: 1;
                filter: drop-shadow(0 0 8px rgba(246, 225, 245, 0.5));
            }
        }

        /* --- Custom Cursor --- */
        .cursor, .cursor-follower {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 999999; /* Lowered to be above content but below interactive UI like menu toggle */
            transform: translate(-50%, -50%);
            border-radius: 50%;
        }

        .cursor {
            width: 8px;
            height: 8px;
            background-color: var(--soft-blue);
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .cursor-follower {
            width: 40px;
            height: 40px;
            backdrop-filter: blur(10px) saturate(180%);
            border: 1px solid rgba(246, 225, 245, 0.5);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        body.link-hover .cursor-follower {
            transform: translate(-50%, -50%) scale(1.8);
            background-color: rgba(246, 225, 245, 0.1);
            border-color: var(--pastel-pink);
        }
        /* --- Custom Scrollbar --- */
        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: #020a15; /* A slightly darker shade from the footer for depth */
            border-left: 1px solid rgba(190, 211, 239, 0.08); /* Match footer/navbar border */
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--pastel-pink), var(--soft-blue));
            border-radius: 10px;
            border: 2px solid var(--deep-navy); /* Creates a clean separation from the track */
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--white), var(--soft-blue));
            box-shadow: 0 0 15px rgba(246, 225, 245, 0.4); /* Adds a subtle pink glow */
        }
        /* Scroll Progress */
        .scroll-progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px; /* Slightly taller for better visibility */
            background-color: rgba(190, 211, 239, 0.1); /* Track color */
            z-index: 10002;
        }

        .scroll-progress-bar {
            width: 0%; /* Initial width, will be updated by JS */
            height: 100%;
            background: linear-gradient(90deg, var(--pastel-pink), var(--soft-blue));
            box-shadow: 0 0 20px rgba(246, 225, 245, 0.5);
            position: relative;
            transition: width 0.1s linear; /* Smooth out the width change */
        }

        .scroll-percentage {
            position: absolute;
            right: 15px;
            top: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--white);
        }

        /* Luxury Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10000;
            padding: 60px 100px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: transparent;
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .navbar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 100px;
            right: 100px;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(190, 211, 239, 0.15) 50%, transparent 100%);
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .navbar::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(4, 15, 33, 0.95);
            backdrop-filter: blur(40px) saturate(180%);
            opacity: 0;
            transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: -1;
        }

        .navbar.scrolled {
            padding: 25px 100px;
            border-bottom: 1px solid rgba(190, 211, 239, 0.08);
        }

        .navbar.scrolled::before,
        .navbar.scrolled::after {
            opacity: 1;
        }

        /* Elevate navbar when menu is open to keep toggle visible */
        .navbar.menu-is-active {
            z-index: 10002;
        }

        /* Signature Logo */
        .logo {
            position: relative;
            display: flex;
            align-items: center;
            gap: 20px;
            text-decoration: none;
        }

        .logo-image {
            height: 45px; /* Adjust height as needed */
            width: auto;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .logo:hover .logo-image {
            transform: scale(1.05);
        }

        .navbar-controls {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        /* Language Switcher */
        .lang-switcher {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
        }

        .lang-link {
            color: var(--soft-blue);
            text-decoration: none;
            padding: 5px;
            transition: color 0.3s ease, text-shadow 0.3s ease;
            opacity: 0.7;
        }

        .lang-link:hover,
        .lang-link.active {
            color: var(--white);
            opacity: 1;
            text-shadow: 0 0 8px rgba(246, 225, 245, 0.5);
        }

        .lang-separator {
            color: rgba(190, 211, 239, 0.4);
        }

        /* Navigation */
        nav {
            gap: 70px;
            align-items: center;
        }

        nav a {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--soft-blue);
            position: relative;
            padding: 10px 0;
            transition: color 0.3s ease;
        }

        nav a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--pastel-pink);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        nav a:hover, nav a.active {
            color: var(--white);
            opacity: 0;
        }

        nav a.active {
            color: var(--white);
        }

        /* Premium CTA */
        .nav-cta, .cta-button {
            text-decoration: none;
        }

        .nav-cta, .cta-button {
            padding: 18px 45px;
            background: var(--white);
            border-radius: 50px;
            border: none;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            position: relative;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
        }

        .nav-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--pastel-pink), var(--soft-blue));
            transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: -1;
        }

        .nav-cta::after {
            display: none;
        }

        .nav-cta:hover, .cta-button:hover {
            color: var(--deep-navy);
            transform: translateY(-3px);
        }

        .nav-cta:hover::before {
            left: 0;
        }

        /* Mobile Menu */
        .menu-toggle {
            display: flex; 
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            cursor: pointer;
            width: 55px;
            height: 55px;
            padding: 14px 10px;
            position: relative;
            background-color: transparent;
            clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
            border: 1.5px solid rgba(190, 211, 239, 0.3);
            z-index: 10002;
            transform-style: preserve-3d;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .menu-toggle:hover {
            border-color: var(--white);
            transform: rotateY(15deg) rotateX(-10deg);
        }

        .menu-toggle span {
            display: block;
            width: 22px;
            height: 1.5px;
            background: var(--white);
            transform-origin: center;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .menu-toggle.active {
            border-color: var(--pastel-pink);
            transform: rotateY(15deg) rotateX(-10deg) rotateZ(180deg);
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(6.5px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            transform: scaleX(0);
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-6.5px) rotate(-45deg);
        }

        .fullscreen-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(4, 15, 33, 0.712);
            backdrop-filter: blur(40px) saturate(180%);
            z-index: 10001;
            display: flex;
            pointer-events: none;
            flex-direction: column;
            justify-content: flex-start; /* Align items to the top */
            align-items: center;
            gap: 20px;
            overflow-y: auto; /* Enable scrolling if content overflows */
            padding: 15vh 0; 
            opacity: 1; /* Always opaque, clip-path handles visibility */
            clip-path: circle(0% at calc(100% - 120px) 85px);
            transition: clip-path 1s cubic-bezier(0.87, 0, 0.13, 1);
        }

        .fullscreen-menu.active {
            pointer-events: all;
            clip-path: circle(150% at calc(100% - 120px) 85px);
        }

        .fullscreen-menu a {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(3rem, 8vw, 6rem); /* --- Police réduite --- */
            font-weight: 900;
            color: var(--white);
            letter-spacing: -0.02em;
            text-decoration: none;
            position: relative;
            overflow: hidden; /* Crucial for the unmasking effect */
            display: flex; /* Add this */
            align-items: center; /* And this */
            padding: 0 10px;
        }

        .fullscreen-menu a i {
            color: var(--pastel-pink);
            font-size: clamp(1.5rem, 4vw, 2.5rem);
            margin-right: 30px;
            opacity: 0;
            transform: translateY(110%);
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
        }

        .fullscreen-menu a span {
            display: inline-block;
            transform: translateY(110%);
            opacity: 0;
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .fullscreen-menu.active a {
            overflow: visible;
        }

        .fullscreen-menu.active a span,
        .fullscreen-menu.active a i {
            transform: translateY(0);
            opacity: 1;
        }

        /* Staggered animation for links */
        .fullscreen-menu.active a:nth-child(1) * { transition-delay: 0.3s; }
        .fullscreen-menu.active a:nth-child(2) * { transition-delay: 0.4s; }
        .fullscreen-menu.active a:nth-child(3) * { transition-delay: 0.5s; }
        .fullscreen-menu.active a:nth-child(4) * { transition-delay: 0.6s; }
        .fullscreen-menu.active a:nth-child(5) * { transition-delay: 0.7s; }

        .fullscreen-menu a:hover {
            /* --- New Hover Effect --- */
            color: transparent;
            -webkit-text-stroke: 1px var(--pastel-pink);
            background: linear-gradient(90deg, var(--pastel-pink), var(--soft-blue));
            background-clip: text;
            -webkit-background-clip: text;
        }

        .fullscreen-menu a:hover i {
            color: var(--soft-blue);
        }


        /* Three.js Canvas */
        #three-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            /* This forces a new rendering layer, fixing the video disappearance bug */
            transform: translateZ(0);
        }

        .hero-video-background {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            transform: translate(-50%, -50%);
            z-index: 1; /* Revert to original z-index */
        }

        .hero-video-background video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(4, 15, 33, 0.557); /* Dark overlay for text visibility */
            z-index: 2;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: left;
            max-width: 1600px;
            padding: 0 80px;
        }

        .hero-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 0.4em;
            color: var(--pastel-pink);
            text-transform: uppercase;
            margin-bottom: 40px;
            opacity: 0; transform: translateY(20px);
            animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        }

        h1 {
            font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(5rem, 13vw, 14rem); /* Increased size */
            font-weight: 700;
            line-height: 0.85;
            letter-spacing: -0.05em;
            color: var(--white);
            margin-bottom: 50px;
            opacity: 0;
            animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
        }

        .hero-subtitle {
            font-family: 'Inter', sans-serif;
            font-size: clamp(1.3rem, 3vw, 2.2rem);
            font-weight: 300;
            color: var(--soft-blue);
            letter-spacing: 0.05em;
            margin-bottom: 40px;
            opacity: 0; transform: translateY(20px);
            animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
        }

        .hero-tagline {
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(0.8rem, 1.5vw, 1.2rem);
            letter-spacing: 0.5em;
            text-transform: uppercase;
            color: var(--pastel-pink);
            margin-bottom: 80px;
            opacity: 0; transform: translateY(20px);
            animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        /* --- New Geometric Prism Button --- */
        .geo-button {
            position: relative;
            display: inline-block;
            text-decoration: none;
            padding: 22px 60px;
            background: transparent;
            border: none;
            cursor: pointer;
            overflow: visible; /* Allow for box-shadow on hover */
            transform-style: preserve-3d;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--deep-navy);
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
        }

        .btn-4 {
            clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
            background: var(--deep-navy); /* This now acts as the border color */
        }

        .btn-4::before {
            content: '';
            position: absolute;
            top: 1px; left: 1px; right: 1px; bottom: 1px;
            background: var(--soft-blue);
            clip-path: inherit;
            z-index: 1;
            transition: all 0.4s ease;
        }

        .btn-4:hover {
            transform: translateY(-4px) rotateX(10deg) rotateZ(2deg);
            background: var(--pastel-pink); /* This changes the border color on hover */
            box-shadow: 0 10px 30px rgba(246, 225, 245, 0.25); /* Pink glow */
        }

        .btn-4:hover::before {
            background: var(--soft-blue); /* Keep the inner background soft blue on hover */
        }

        .btn-text {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            transition: all 0.3s ease;
        }


        @keyframes geo-float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-3px); }
        }

        @keyframes geo-ripple {
            to {
                transform: scale(3) rotate(180deg);
                opacity: 0;
            }
        }

        .ripple-effect {
            position: absolute; background: rgba(246, 225, 245, 0.1); border-radius: 50%; transform: scale(0); animation: geo-ripple 0.8s ease-out; pointer-events: none; z-index: 100;
        }

        .fade-in-section.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- Reusable Glass Card Style --- */
        .glass-card {
            background: rgba(4, 15, 33, 0.65);
            backdrop-filter: blur(25px) saturate(150%);
            -webkit-backdrop-filter: blur(25px) saturate(150%);
            border: 1px solid rgba(190, 211, 239, 0.1);
            padding: clamp(2rem, 4vw, 4rem);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            border-color: rgba(190, 211, 239, 0.2);
        }


        section {
            padding: clamp(10rem, 18vw, 18rem) clamp(60px, 8vw, 150px);
        }

        /* Typography */
        h2 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(3.5rem, 10vw, 8rem);
            font-weight: 700;
            line-height: 0.9;
            letter-spacing: -0.03em;
            color: var(--white);
            margin-bottom: clamp(5rem, 10vw, 10rem);
        }

        h3 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(1.8rem, 4vw, 3rem);
            font-weight: 500;
            letter-spacing: -0.02em;
            color: var(--white);
        }

        p {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            line-height: 1.9;
            font-weight: 300;
            color: var(--soft-blue);
        }

        .section-number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: var(--pastel-pink);
            letter-spacing: 0.4em;
            text-transform: uppercase;
            margin-bottom: 60px;
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .section-number::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, var(--pastel-pink), transparent);
        }

        /* --- Utility Classes --- */
        .is-centered {
            text-align: center;
        }
        .section-number.is-centered {
            justify-content: center;
        }
        .section-number.is-centered::after {
            display: none; /* Hide the line on centered section numbers */
        }
        .mastery-cta {
            display: block;
            margin: 4rem auto 0 auto;
        }

        /* Manifesto Section */
        .manifesto {
            display: flex;
            align-items: center;
            min-height: 100vh;
        }

        .manifesto-content {
            max-width: 1100px;
            margin: 0 auto;
        }

        /* Mastery Section */
        .mastery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px;
            max-width: 1800px;
            margin: 0 auto;
            background: rgba(190, 211, 239, 0.05);
        }

        .mastery-item {
            padding: clamp(4rem, 8vw, 8rem);
            background: var(--deep-navy);
            position: relative;
            transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid rgba(190, 211, 239, 0.03);
        }

        .mastery-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(246, 225, 245, 0.05) 0%, transparent 100%);
            opacity: 0; 
            transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .mastery-item:hover {
            background: rgba(4, 15, 33, 0.8);
            border-color: rgba(246, 225, 245, 0.2);
        }

        .mastery-item:hover::before {
            opacity: 1;
        }

        .tech-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: var(--pastel-pink);
            letter-spacing: 0.3em;
            display: block;
            margin-bottom: 50px;
            opacity: 0.8;
        }

        .mastery-item h3 {
            margin-bottom: 30px;
        }

        .mastery-item p {
            font-size: 1.1rem;
            opacity: 0.7;
        }

        .process-timeline {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            padding-left: 100px;
        }

        .process-timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient(180deg, var(--pastel-pink) 0%, transparent 100%);
        }

        .process-step {
            margin-bottom: clamp(6rem, 10vw, 10rem);
            position: relative;
        }

        .process-step::before {
            content: '';
            position: absolute;
            left: -110px;
            top: 15px;
            width: 18px;
            height: 18px;
            background: var(--pastel-pink);
            border-radius: 50%;
            box-shadow: 0 0 30px rgba(246, 225, 245, 0.6);
        }

        .process-step h3 {
            margin-bottom: 25px;
        }

        /* Collaboration Section */
        .collaboration {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .collaboration-content {
            max-width: 1100px;
            text-align: center;
        }

        .collaboration p {
            margin-bottom: 100px;
        }

        /* Signature Footer */
        .site-footer {
            padding: 0 clamp(60px, 8vw, 150px); /* Use section padding */
            /* --- Glassmorphism Effect --- */
            background: rgba(4, 15, 33, 0.95); /* From .navbar::before */
            backdrop-filter: blur(10px) saturate(180%); /* From .navbar::before */
            -webkit-backdrop-filter: blur(40px) saturate(180%); /* For Safari */
            border-top: 1px solid rgba(190, 211, 239, 0.15); /* Slightly more visible border */
            position: relative; /* Needed for z-index to work with canvas */
        }

        .footer-grid {
            padding: 80px 0;
            display: grid;
            grid-template-columns: 1.5fr repeat(3, 1fr);
            gap: 0; /* Remove gap to use padding and borders */
            border-bottom: 1px solid rgba(190, 211, 239, 0.1);
        }

        .footer-grid > div {
            padding: 0 40px; /* Add horizontal padding to act as cell spacing */
        }

        .footer-grid > div:not(:first-child) {
            border-left: 1px solid rgba(190, 211, 239, 0.1); /* Vertical lines for the table effect */
        }

        .footer-brand .logo {
            margin-bottom: 30px;
            letter-spacing: 0.15em; /* Match header logo */
        }

        .footer-brand p {
            max-width: 350px;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            line-height: 1.7;
            opacity: 0.7;
            font-weight: 300;
        }

        .footer-heading {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            color: var(--soft-blue);
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-bottom: 30px;
            opacity: 0.6;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .footer-links .contact-region {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            color: var(--soft-blue);
            opacity: 0.7;
            letter-spacing: 0.2em;
            text-transform: uppercase;
        }

        .footer-links a {
            color: var(--soft-blue);
            text-decoration: none;
            font-size: 0.9rem; /* Légère réduction pour accommoder plus de liens */
            font-weight: 400;
            transition: color 0.3s ease, transform 0.3s ease;
            display: inline-block; /* For transform to work */
        }

        .footer-links a:hover {
            color: var(--white);
            transform: translateX(8px);
        }

        .footer-meta {
            padding: 30px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* Permet le passage à la ligne sur mobile */
            gap: 40px;
        }

        .meta-item {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: var(--soft-blue);
            opacity: 0.6;
            letter-spacing: 0.2em;
            display: flex;
            gap: 15px; /* Réduction de l'espacement pour un look plus compact */
            align-items: center;
        }

        .meta-item a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s ease, opacity 0.3s ease;
        }

        .meta-item a:hover {
            color: var(--white);
            opacity: 1;
        }

        .signature-text {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: var(--soft-blue);
            opacity: 0.6;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            transition: color 0.4s ease, opacity 0.4s ease;
        }
        .footer-signature:hover .signature-text {
            color: var(--white);
            opacity: 1;
        }
        .footer-signature-image {
            height: 25px; /* Plus petit pour un effet de signature */
            width: auto;
            opacity: 0.6;
            transition: opacity 0.4s ease;
        }

        .footer-signature:hover .footer-signature-image {
            opacity: 1;
        }
        .footer-signature {
            text-decoration: none;
        }






/* --- Premium Chatbot --- */
.chatbot-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99999; /* Match the contact buttons to ensure correct stacking */
}

.chatbot-toggle {
    width: 80px;
    height: 80px;
    cursor: pointer;
    margin-top: 15px; 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-window {
    position: absolute;
    bottom: 110px; 
    right: 0;
    max-width: 680px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    background: rgba(4, 15, 33, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(190, 211, 239, 0.15);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999999;
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(190, 211, 239, 0.1);
    flex-shrink: 0;
    background: rgba(4, 15, 33, 0.5);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-info img {
    width: 40px;
    height: 40px;
    clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
    object-fit: cover;
}

.chatbot-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--soft-blue);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
}

.chatbot-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    max-width: 80%;
    padding: 12px 18px;
    clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(15px);
    animation: message-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-message.user {
    background: var(--soft-blue);
    color: var(--deep-navy);
    align-self: flex-end;
}

.chatbot-message.bot {
    background: rgba(190, 211, 239, 0.1);
    color: var(--soft-blue);
    align-self: flex-start; 
}

@keyframes message-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 18px;
    background: rgba(190, 211, 239, 0.1);
    clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
    max-width: 80px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--soft-blue);
    border-radius: 50%;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.3s; }
.typing-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes typingAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chatbot-input {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid rgba(190, 211, 239, 0.1);
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

#chatbot-input-field {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(190, 211, 239, 0.15);
    padding: 10px 15px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#chatbot-input-field:focus {
    outline: none;
    border-color: var(--pastel-pink);
    box-shadow: 0 0 10px rgba(246, 225, 245, 0.15);
}

.chatbot-send {
    width: 42px;
    height: 42px;
    clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
    border: none;
    background: var(--soft-blue);
    color: var(--deep-navy);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.chatbot-send:hover {
    background: var(--pastel-pink);
    transform: scale(1.05);
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-start;
}

.chatbot-option {
    background: transparent;
    border: 1px solid rgba(190, 211, 239, 0.2);
    color: var(--soft-blue);
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
    clip-path: polygon(0 0, 92% 0, 100% 15%, 100% 100%, 0 100%);
}

.chatbot-option:hover {
    background: rgba(190, 211, 239, 0.1);
    color: var(--white);
    border-color: var(--pastel-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.watermark {
    padding: 8px 15px;
    text-align: center;
    font-family: 'Noto Sans Javan', sans-serif;
    font-size: 0.6rem;
    color: var(--soft-blue);
    opacity: 0.4;
    letter-spacing: 0.1em;
    background: rgba(0,0,0,0.2);
}

.watermark span:last-child {
    font-weight: bold;
    opacity: 0.8;
}

/* === STYLES SPÉCIFIQUES À LA PAGE "L'ATELIER" === */


.atelier-section-manifeste {
   
}
.manifeste-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* Supprime l'espacement pour contrôler la bordure */
    max-width: 1800px;
    margin: 4rem auto 0 auto; /* Add margin-top to space from section number */
    padding: clamp(3rem, 6vw, 6rem);
    border: 1px solid rgba(190, 211, 239, 0.1);
    background-color: var(--deep-navy);
    margin: 0 auto;
}
.manifeste-col:first-child {
    padding-right: clamp(1.5rem, 3vw, 3rem); /* Espace à droite de la première colonne */
}
.manifeste-col:last-child {
    padding-left: clamp(1.5rem, 3vw, 3rem); /* Espace à gauche de la deuxième colonne */
    border-left: 1px solid rgba(190, 211, 239, 0.1); /* La ligne de séparation verticale */
}
.manifeste-col p {
    margin-bottom: 2em;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem); /* Slightly smaller for density */
    line-height: 1.8;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(190, 211, 239, 0.1);
}
.manifeste-col p:last-child {
    border-bottom: none;
}
.manifeste-conclusion {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--white);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-top: clamp(6rem, 12vw, 12rem);
    padding: 0 2rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}



/* SECTION 3: Philosophie (anciennement Réalisation) */
.atelier-section-philosophie {
    text-align: center;
    /* No changes needed here */
}
.realisation-content {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--pastel-pink);
    padding-left: 3rem;
    text-align: left;
    margin-top: -5rem;
}

/* SECTION 4: Fondement */
.atelier-section-fondement {
    text-align: center;
}
.centered-title {
    text-align: center;
}
.fondement-intro {
    max-width: 60ch;
    margin: -5rem auto 4rem auto;
    max-width: 50ch;
    margin: 0 auto 4rem auto;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}
.fondement-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 4rem);
    flex-wrap: wrap;
}
.fondement-word {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
    z-index: 10;
}
.fondement-word:hover {
    color: var(--soft-blue);
    /* Ne pas changer la couleur du contour pour conserver l'effet de remplissage */
}

/* SECTION 5: Dialogue */
.atelier-section-dialogue {
    text-align: center;
}
.cta-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem);
}
.cta-content-wrapper p {
    margin-bottom: 1rem;
}
.dialogue-email {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--pastel-pink);
    text-decoration: none;
    margin-top: 3rem;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    transition: border-color 0.4s ease, color 0.4s ease;
}
.dialogue-email:hover {
    border-color: var(--pastel-pink);
    color: var(--white);
}




/* Specific layout adjustment for the Atelier hero section */
.atelier-hero-layout .hero-content {
    padding-top: 100px; /* Adjust this value to get the perfect alignment */
}

/* Specific layout for the Home page hero to restore padding */
.home-hero .hero-content {
    padding-top: 150px; /* Adjust this value if needed */
}

/* --- Page "Livrables" / "Foundation" Styles --- */
.livrables-page {
}

.livrables-v2-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.livrables-intro-section .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.livrables-intro-text, .deed-of-ownership-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.livrables-intro-text .livrables-subtitle {
    margin-bottom: 2rem;
}

.livrables-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 2rem;
}

.livrables-intro-text p, .livrable-category-subtitle {
    font-size: 1.3rem;
    max-width: 65ch;
    margin-bottom: 1.5rem;
}

.livrables-grid-container {
    padding: 5rem 0;
    padding-left: clamp(30px, 8vw, 150px);
    padding-right: clamp(30px, 8vw, 150px);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.livrable-category {
    /* This padding is now handled by the .glass-card class */
}

.livrable-category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

.livrable-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem 4rem;
}

.livrable-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--pastel-pink);
    grid-row: 1 / span 2;
}

.livrable-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--white);
    align-self: end;
}

.livrable-details {
    grid-column: 2 / 3;
}

.livrable-details p {
    font-size: 1.1rem;
    max-width: 75ch;
    margin-bottom: 1rem;
}

.livrable-details p strong {
    color: var(--soft-blue);
    font-weight: 500;
}

.livrables-cta {
    padding: 8rem 0;
    padding-left: clamp(30px, 8vw, 150px);
    padding-right: clamp(30px, 8vw, 150px);
    text-align: center;
}

/* New Duality Section */
.duality-section {
    padding: clamp(6rem, 12vw, 12rem) clamp(30px, 8vw, 150px);
}
.duality-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    max-width: 1600px;
    margin: 0 auto;
    background-color: rgba(190, 211, 239, 0.1);
    border: 1px solid rgba(190, 211, 239, 0.1);
}
.duality-column {
    padding: clamp(2rem, 5vw, 5rem);
}
.duality-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 2rem;
}
.template-side {
    background-color: var(--deep-navy);
}
.template-side .section-number { color: rgba(190, 211, 239, 0.5); }
.template-side .section-number::after { background: linear-gradient(90deg, rgba(190, 211, 239, 0.5), transparent); }
.template-side h3 { color: rgba(255,255,255,0.7); }
.bespoke-side {
    background-color: var(--deep-navy);
}

/* New Performance Core Section */
.performance-core-section {
    padding: clamp(6rem, 12vw, 12rem) clamp(30px, 8vw, 150px);
    text-align: center;
}
.performance-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Deed of Ownership Card */
.deed-of-ownership-card .autonomy-step span {
    font-size: 1.2rem;
}
.deed-of-ownership-card .autonomy-step {
    font-size: 1.3rem;
}






/* --- Section Services ("Livrables" page) --- */
.services-grid {
    /* Uses default section padding */
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px; /* Creates the fine grid lines */
    background-color: rgba(190, 211, 239, 0.1); /* Grid line color */
    border: 1px solid rgba(190, 211, 239, 0.1);
    max-width: 1800px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--deep-navy);
    padding: clamp(2rem, 4vw, 3.5rem);
    text-decoration: none;
    color: var(--soft-blue);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.4s ease;
    position: relative;
    border: 0.5px solid transparent; /* Add transparent border by default */
}

.service-card:hover {
    border: 0.5px solid var(--pastel-pink);
}

.service-card .card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--pastel-pink);
    opacity: 0.7;
}

.service-card h3 {
    /* Harmonisé avec .process-step h3 */
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 25px; /* Harmonisé avec .process-step h3 */
    margin-top: 0;
}

.service-card p {
    /* Harmonisé avec le <p> de .process-step (style global) */
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.9;
    max-width: 45ch;
    opacity: 1; /* Le <p> global n'a pas d'opacité réduite */
}









        /* === BEFORE/AFTER SHOWCASE SECTION STYLES === */
        
        .showcase-section {
            padding: clamp(10rem, 18vw, 18rem) clamp(60px, 8vw, 150px);
            position: relative;
        }

        .showcase-wrapper {
            max-width: 1400px;
            margin: 0 auto;
        }

        .showcase-card {
            background: rgba(4, 15, 33, 0.65);
            backdrop-filter: blur(25px) saturate(150%);
            -webkit-backdrop-filter: blur(25px) saturate(150%);
            border: 1px solid rgba(190, 211, 239, 0.1);
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .showcase-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(190, 211, 239, 0.2);
        }

        .showcase-image {
            width: 100%;
            height: 400px;
            position: relative;
            overflow: hidden; /* Hide any part of the image that might overflow */
        }

        .showcase-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* This replicates background-size: cover */
            object-position: center; /* This replicates background-position: center */
        }

        .showcase-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(4, 15, 33, 0.6) 100%);
        }

        .showcase-content {
            padding: clamp(2rem, 4vw, 4rem);
        }

        .showcase-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 0.4em;
            color: #F6e1f5;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
            display: block;
        }

        .showcase-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            color: #FFFFFF;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
            line-height: 1;
        }

        .showcase-description {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            line-height: 1.9;
            color: #bed3ef;
            margin-bottom: 3rem;
            max-width: 60ch;
        }

     
        .showcase-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(4, 15, 33, 0.98);
            backdrop-filter: blur(10px);
            z-index: 100000;
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .showcase-modal.modal-active {
            display: flex;
            flex-direction: column;
            opacity: 1;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px clamp(30px, 5vw, 60px);
            background: rgba(4, 15, 33, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(190, 211, 239, 0.08);
        }

        .modal-controls {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        /* MODIFIED: Re-styled to match the .geo-button branding */
        .version-toggle {
            position: relative;
            text-decoration: none;
            padding: 12px 30px;
            background: var(--deep-navy); /* Acts as the border color */
            border: none;
            cursor: pointer;
            transform-style: preserve-3d;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--deep-navy);
            clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
        }

        .version-toggle::before {
            content: '';
            position: absolute;
            top: 1px; left: 1px; right: 1px; bottom: 1px;
            background: var(--soft-blue);
            clip-path: inherit;
            z-index: 1;
            transition: all 0.4s ease;
        }

        .version-toggle span {
            position: relative;
            z-index: 2;
        }

        .version-toggle:hover {
            background: var(--pastel-pink); /* Changes border color on hover */
            transform: translateY(-2px);
        }

        .version-toggle.toggle-active {
            background: var(--pastel-pink); /* Active state has pink border */
        }
        .version-toggle.toggle-active::before {
            background: var(--white); /* Active state has white fill */
        }

        .modal-close {
            background: transparent;
            color: #bed3ef;
            border: 1px solid rgba(190, 211, 239, 0.2);
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
        }

        .modal-close:hover {
            background: rgba(246, 225, 245, 0.1);
            border-color: #F6e1f5;
            color: #FFFFFF;
        }

        .modal-body {
            flex: 1;
            overflow: auto;
        }

        .version-content {
            display: none;
            width: 100%;
            max-width: 1800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.98);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .version-content.content-active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        /* Ensure iframe fills the space */
        .version-content {
            width: 100%;
            height: 100%;
        }

        .version-content h1 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: #040f21;
            margin-bottom: 2rem;
            font-size: clamp(2rem, 5vw, 3.5rem);
        }

        .version-content p {
            color: #4a5568;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: clamp(1rem, 2vw, 1.2rem);
        }

        .version-features {
            background: #f7fafc;
            padding: clamp(20px, 4vw, 40px);
            margin-top: 2rem;
            border-left: 3px solid #bed3ef;
        }

        .version-features h3 {
            color: #040f21;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: clamp(1.3rem, 3vw, 1.8rem);
        }

        .version-features ul {
            list-style: none;
            padding: 0;
        }

        .version-features li {
            color: #4a5568;
            line-height: 2;
            padding-left: 1.5rem;
            position: relative;
            font-size: clamp(1rem, 2vw, 1.1rem);
        }

        .version-features li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: #bed3ef;
        }

        /* After version specific styles */
        .after-version h1 {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .after-version .version-features {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
            border-left-color: #F6e1f5;
        }

        .after-version .version-features h3 {
            color: #667eea;
        }

        .after-version .version-features li::before {
            color: #F6e1f5;
        }



        /* Custom scrollbar for modal */
        .modal-body::-webkit-scrollbar {
            width: 12px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #020a15;
            border-left: 1px solid rgba(190, 211, 239, 0.08);
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #F6e1f5, #bed3ef);
            border-radius: 10px;
            border: 2px solid #040f21;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #FFFFFF, #bed3ef);
            box-shadow: 0 0 15px rgba(246, 225, 245, 0.4);
        }
    

        .accessibility-widget {
            position: fixed;
            bottom: 60px;
            left: 40px;
            z-index: 9997;
        }

        .a11y-toggle {
            display: block;
            width: 55px;
            height: 55px;
            cursor: pointer;
            background: transparent;
            border: none;
            padding: 0;
            position: relative;
        }

        .a11y-toggle .magnetic-area {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
            background: rgba(4, 15, 33, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(190, 211, 239, 0.2);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .a11y-toggle i {
            font-size: 1.1rem;
            color: var(--soft-blue);
            transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .a11y-toggle:hover .magnetic-area {
            background: rgba(190, 211, 239, 0.1);
            border-color: var(--pastel-pink);
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(246, 225, 245, 0.2);
        }

        .a11y-toggle:hover i {
            color: var(--pastel-pink);
        }

        .a11y-panel {
            position: absolute;
            bottom: 75px;
    left: 0; 
    max-width: 320px; /* Adjusted width for a more vertical aspect ratio */
    max-height: 520px; /* Adjusted height */
            display: flex;
            flex-direction: column;
            background: rgba(4, 15, 33, 0.95);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(190, 211, 239, 0.15);
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transform-origin: bottom right;
            z-index: 999999999;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .a11y-panel.panel-active {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: all;
        }

        .a11y-header {
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(190, 211, 239, 0.1);
            background: rgba(4, 15, 33, 0.5);
        }

        .a11y-header h3 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--white);
            letter-spacing: 0.05em;
            margin: 0;
        }

        .a11y-close {
            background: transparent;
            border: none;
            color: var(--soft-blue);
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease, transform 0.3s ease;
            padding: 0;
        }

        .a11y-close:hover {
            color: var(--white);
            transform: rotate(90deg);
        }

        .a11y-content {
            flex: 1;
            padding: 25px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .a11y-content::-webkit-scrollbar {
            width: 8px;
        }

        .a11y-content::-webkit-scrollbar-track {
            background: rgba(190, 211, 239, 0.05);
        }

        .a11y-content::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--pastel-pink), var(--soft-blue));
            border-radius: 10px;
        }

        .a11y-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--white), var(--soft-blue));
        }

        .a11y-section h4 {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--pastel-pink);
            margin-bottom: 15px;
            opacity: 0.8;
        }

        .a11y-controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .a11y-btn {
            width: 100%;
            padding: 14px 20px;
            background: rgba(190, 211, 239, 0.05);
            border: 1px solid rgba(190, 211, 239, 0.15);
            color: var(--soft-blue);
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 400;
            text-align: left;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            clip-path: polygon(0 0, 92% 0, 100% 15%, 100% 100%, 0 100%);
        }

        .a11y-btn i {
            color: var(--pastel-pink);
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .a11y-btn:hover {
            background: rgba(190, 211, 239, 0.1);
            border-color: var(--pastel-pink);
            color: var(--white);
            transform: translateX(5px);
        }

        .a11y-btn:hover i {
            color: var(--white);
        }

        .a11y-btn.active {
            background: linear-gradient(135deg, rgba(246, 225, 245, 0.2), rgba(190, 211, 239, 0.2));
            border-color: var(--pastel-pink);
            color: var(--white);
        }

        .a11y-btn.active i {
            color: var(--pastel-pink);
        }

        .a11y-reset {
            background: rgba(246, 225, 245, 0.1);
            border-color: rgba(246, 225, 245, 0.3);
            justify-content: center;
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        .a11y-reset:hover {
            background: rgba(246, 225, 245, 0.2);
            transform: translateX(0) scale(1.02);
        }

        .watermark {
            padding: 15px 25px;
            text-align: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: var(--soft-blue);
            opacity: 0.5;
            letter-spacing: 0.15em;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(190, 211, 239, 0.08);
        }

        .made-by-text {
            opacity: 0.6;
        }

        .watermark .magnetic-area {
            font-weight: 700;
            color: var(--white);
            opacity: 0.8;
            transition: color 0.3s ease;
            cursor: pointer;
        }

        .watermark .magnetic-area:hover {
            color: var(--pastel-pink);
            opacity: 1;
        }


        /* === ACCESSIBILITY FEATURES STYLES === */
        
        /* High Contrast Mode */
        body.high-contrast-mode {
            filter: contrast(1.5);
        }

        body.high-contrast-mode * {
            background-image: none !important;
        }

        /* Increased Text Size */
        body.increased-text * {
            font-size: calc(1em * 1.2) !important;
        }

        body.increased-text h1,
        body.increased-text h2,
        body.increased-text h3,
        body.increased-text h4,
        body.increased-text h5,
        body.increased-text h6 {
            font-size: calc(1em * 1.15) !important;
        }

        /* Decreased Text Size */
        body.decreased-text * {
            font-size: calc(1em * 0.9) !important;
        }

        /* Paused Animations */
        body.animations-paused * {
            animation-play-state: paused !important;
            transition: none !important;
        }

        /* Reading Guide */
        .reading-guide {
            position: fixed;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--pastel-pink), var(--soft-blue));
            box-shadow: 0 0 20px rgba(246, 225, 245, 0.6), 0 2px 0 rgba(0, 0, 0, 0.3), 0 -2px 0 rgba(0, 0, 0, 0.3);
            pointer-events: none;
            z-index: 999999;
            display: none;
        }

        .reading-guide.guide-active {
            display: block;
        }



        .demo-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .demo-content h1 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: #FFFFFF;
            font-size: 3rem;
            margin-bottom: 1rem;
        }

/* ====================================================================== */
/* ========================= STYLES DES MODALES LÉGALES ===================== */
/* ====================================================================== */

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 33, 0.85);
    backdrop-filter: blur(15px);
    z-index: 100001; /* Above everything */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.active {
    display: flex;
    opacity: 1;
}

.legal-modal .modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(4, 15, 33, 0.9);
    border: 1px solid rgba(190, 211, 239, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.active .modal-content {
    transform: scale(1);
}

.legal-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid rgba(190, 211, 239, 0.1);
    flex-shrink: 0;
}

.legal-modal .modal-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.02em;
}

.legal-modal .modal-close {
    background: none;
    border: none;
    color: var(--soft-blue);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.legal-modal .modal-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.legal-modal .modal-body {
    padding: 40px;
    overflow-y: auto;
}

.legal-modal .modal-body h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pastel-pink);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-modal .modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal .modal-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--soft-blue);
    max-width: 65ch;
    opacity: 0.9;
}


        .demo-content p {
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }
    

        /* ====================================================================== */
/* ================== STYLES MODALE DE CONTACT (AMÉLIORÉS) ================ */
/* ====================================================================== */

/* ============ MODAL OVERLAY ============ */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 40px);
    background: rgba(4, 15, 33, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

/* ============ MODAL CONTENT ============ */
.contact-modal-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(4, 15, 33, 0.9);
    border: 1px solid rgba(190, 211, 239, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.visible .contact-modal-content {
    transform: scale(1);
}

/* ============ MODAL HEADER ============ */
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 40px);
    border-bottom: 1px solid rgba(190, 211, 239, 0.1);
    flex-shrink: 0;
}

.contact-modal-header h2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.contact-modal-close {
    padding: 10px;
    background: none;
    border: none;
    color: var(--soft-blue);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-modal-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

/* ============ MODAL BODY ============ */
.contact-modal-body {
    padding: clamp(2rem, 6vw, 5rem);
    overflow-y: auto;
}

.conversation-intro {
    margin: 0 auto clamp(3rem, 6vw, 4rem) auto;
    max-width: 55ch;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    opacity: 0.8;
}

/* ============ CONTACT OPTIONS GRID ============ */
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1800px;
    margin: 0 auto;
    background-color: rgba(190, 211, 239, 0.1);
    border: 1px solid rgba(190, 211, 239, 0.1);
}

.contact-option-group {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--deep-navy);
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.contact-option-group:hover {
    background-color: rgba(190, 211, 239, 0.05);
    transform: translateY(-5px);
}

.contact-option-title {
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pastel-pink);
}

/* ============ CONTACT LINKS ============ */
.contact-link {
    display: block;
    color: var(--soft-blue);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--white);
}

.contact-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid rgba(190, 211, 239, 0.2);
    color: var(--soft-blue);
    font-size: 1.2rem;
    text-decoration: none;
    clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-icon-link:hover {
    background-color: rgba(190, 211, 239, 0.1);
    border-color: var(--pastel-pink);
    color: var(--white);
    transform: scale(1.1);
}

/* ============ SOCIAL LINKS ============ */
.social-links-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Root Variables for Fluid Typography & Spacing */
:root {
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 4vw, 3.5rem);
    --space-2xl: clamp(3rem, 6vw, 5rem);
}

/* ============================================
   DESKTOP - 1200px
   ============================================ */
@media (max-width: 1200px) {
    section {
        padding: clamp(8rem, 15vw, 15rem) clamp(60px, 8vw, 100px);
    }
    
    .mastery-grid,
    .principe-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 60px 0;
    }
    
    .footer-grid > div:nth-child(odd) {
        padding-left: 0;
    }
    
    h1 { font-size: clamp(2.25rem, 3.5vw, 4.5rem); }
    h2 { font-size: clamp(1.875rem, 3vw, 3.5rem); }
    h3 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); }
}

/* ============================================
   TABLET LANDSCAPE - 1024px
   ============================================ */
@media (max-width: 1024px) {
    section {
        padding: clamp(8rem, 15vw, 15rem) clamp(40px, 6vw, 80px);
    }
    
    .hero-content {
        padding: 0 60px;
    }
    
    .process-timeline {
        padding-left: 60px;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .process-step::before {
        left: -70px;
    }
    
    /* Showcase */
    .showcase-image {
        height: 300px;
    }
    
    .modal-header {
        padding: 20px 25px; /* Adjust padding */
        gap: 10px;
    }
    
    .version-toggle {
        padding: 10px 15px; /* Make buttons smaller */
        font-size: 0.65rem;
    }
    
    .modal-close {
        width: 45px; /* Make close button smaller */
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Typography */
    h1 { font-size: clamp(3.5rem, 7vw, 5rem); } /* Increased size */
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
    h3 { font-size: clamp(1.375rem, 2.5vw, 2rem); }
    p { font-size: clamp(0.95rem, 1.5vw, 1.0625rem); }
}

/* ============================================
   TABLET PORTRAIT - 900px
   ============================================ */
@media (max-width: 900px) {
    /* Single column layouts for grids */
    .manifeste-content,
    .principe-grid,
    .cards-container,
    .contact-options-grid,
    .duality-container {
        grid-template-columns: 1fr;
        gap: 2px; /* Maintain grid lines */
    }
    
    /* Atelier page adjustments */
    .realisation-content {
        margin-top: var(--space-xl); /* Reset negative margin */
        border-left: none;
        border-top: 2px solid var(--pastel-pink);
        padding-left: 0;
        padding-top: var(--space-xl);
        text-align: center;
        padding-bottom: var(--space-2xl); /* Use responsive spacing */
    }
    
    .contact-options-grid {
        gap: var(--space-lg); /* Restore gap for contact modal */
    }
    

    
    /* Livrables page */
    .livrables-main-title {
        position: static;
        margin-bottom: var(--space-xl);
    }
    
    .livrable-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: var(--space-lg);
    }
    
    .livrable-number {
        grid-row: auto;
        margin-bottom: 0.5rem;
    }
    
    .livrable-details {
        grid-column: auto;
    }
    
    /* Typography */
    h1 { 
        font-size: clamp(3.5rem, 8vw, 4.5rem); /* Increased size */
        margin-bottom: var(--space-lg);
        line-height: 1.1;
    }
    h2 { 
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        margin-bottom: var(--space-md);
    }
    h3 { 
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: var(--space-md);
    }
    h4 { 
        font-size: clamp(1.125rem, 2.5vw, 1.5rem);
        margin-bottom: var(--space-sm);
    }
    p, li { 
        font-size: clamp(0.9375rem, 2vw, 1rem);
        line-height: 1.7;
        margin-bottom: var(--space-md);
    }
}

/* ============================================
   MOBILE LANDSCAPE - 768px
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: clamp(5rem, 12vw, 8rem) clamp(30px, 5vw, 50px);
    }

    /* Chatbot & A11y Panel adjustments for mobile */
    .chatbot-container, .accessibility-widget {
        right: 20px;
        bottom: 30px;
    }
    .chatbot-window, .a11y-panel {
        width: calc(100vw - 40px);
        max-width: 320px; /* Ensure consistency with desktop */
        right: 0; /* This is for the chatbot, a11y panel is positioned by 'left' */
        max-height: 520px; /* Ensure consistency with desktop */
    }
    .chatbot-toggle {
        width: 70px;
        height: 70px;
    }
    
    /* Navigation */
    .navbar {
        padding: 20px 20px;
    }
    
    .navbar.scrolled {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: clamp(1.25rem, 3vw, 1.4rem);
    }
    
    .logo-image {
        height: clamp(25px, 5vw, 30px);
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
    }
    
    
    /* Accessibility widget */
    .accessibility-widget {
        bottom: 20px;
        left: 20px;
    }
    
    .a11y-toggle {
        width: 45px;
        height: 45px;
    }
    
    /* Footer */
    .site-footer {
        padding: 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 60px 0;
    }
    
    .footer-grid > div {
        padding: 0;
        text-align: center;
    }
    
    .footer-grid > div:not(:first-child) {
        border-left: none;
    }
    
    .footer-grid > div:not(:first-child) {
        padding-top: 40px; /* Add some space above the separator */
        border-top: 1px solid rgba(190, 211, 239, 0.1); /* The separator line */
    }

    .footer-meta {
        flex-direction: column-reverse; /* Puts copyright below signature */
        align-items: center; /* Centers the items */
        gap: 20px;
        padding: 30px 0;
    }
    
    .footer-meta .meta-item:last-child {
        flex-direction: column; /* Stacks signature text and image */
        align-items: center; /* Centers them */
    }
    
    /* Hero */
    .hero-content {
        text-align: center;
        padding: 0 30px;
    }
    
    /* Fullscreen menu */
    .fullscreen-menu a {
        font-size: clamp(2rem, 6vw, 4rem);
        padding: var(--space-sm) 0;
    }
    
    /* Legal & Contact Modals */
    .legal-modal,
    .contact-modal-overlay {
        padding: 20px;
    }
    
    .legal-modal .modal-header,
    .legal-modal .modal-body,
    .contact-modal-header,
    .contact-modal-body {
        padding: 20px;
    }
    
    .contact-option-group {
        padding: 2rem;
    }
    
    /* Typography - Mobile optimized */
    h1 { 
        font-size: clamp(2.5rem, 10vw, 3.5rem); /* Corrected and increased size */
        margin-bottom: var(--space-md);
        line-height: 1.2;
    }
    h2 { 
        font-size: clamp(1.375rem, 5vw, 2rem);
        margin-bottom: var(--space-md);
        line-height: 1.3;
    }
    h3 { 
        font-size: clamp(1.125rem, 4vw, 1.5rem);
        margin-bottom: var(--space-sm);
        line-height: 1.3;
    }
    h4 { 
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        margin-bottom: var(--space-sm);
    }
    p, li { 
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
        line-height: 1.65;
        margin-bottom: var(--space-sm);
    }
}

/* ============================================
   SMALL MOBILE - 480px
   ============================================ */
@media (max-width: 480px) {
    section {
        padding: clamp(4rem, 10vw, 6rem) clamp(20px, 4vw, 30px);
    }
    
    /* Showcase */
    .showcase-section {
        padding: 8rem 30px;
    }
    
    .modal-body {
        padding: 0;
    }
    
    /* Buttons */
    button, .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
    
    /* Cards */
    .card, .livrable-item {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    /* Typography - Extra compact */
    h1 { 
        font-size: clamp(2.2rem, 10vw, 3rem); /* Increased size */
        margin-bottom: var(--space-sm);
        line-height: 1.15;
    }
    h2 { 
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: var(--space-sm);
        line-height: 1.25;
    }
    h3 { 
        font-size: clamp(1.0625rem, 5vw, 1.375rem);
        margin-bottom: var(--space-xs);
        line-height: 1.3;
    }
    h4 { 
        font-size: clamp(0.9375rem, 4vw, 1.125rem);
        margin-bottom: var(--space-xs);
    }
    p, li { 
        font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }
}

/* ============================================
   EXTRA SMALL DEVICES - 320px
   ============================================ */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    
    section {
        padding: 2.5rem 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.0625rem; }
    h4 { font-size: 0.9375rem; }
    p, li { font-size: 0.875rem; }
    
    button, .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    button, a, .clickable,
    .chatbot-option,
    .version-toggle, 
    .a11y-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }


}