
        /* --- RESET & BASE --- */
  
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: auto !important; }
        
        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #0f0f11;
            color: #fff;
            overflow-x: hidden;
            width: 100%;
        }

        /* --- PRELOADER --- */
        #preloader {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100vh;
            background-color: transparent;
            backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
        }
        
        .loader-content { 
            text-align: center; 
            position: relative; 
            z-index: 2; 
            max-width: 80%;
        }

        #terminal-text {
            font-family: 'Courier New', Courier, monospace;
            font-size: 1.5rem;
            color: #fff;
            line-height: 1.6;
            white-space: pre-wrap;
            display: inline;
            font-weight: bold;
            text-shadow: 0 2px 5px rgba(0,0,0,0.5);
        }

        .cursor {
            display: inline-block;
            width: 10px;
            height: 1.5rem;
            background-color: #9b30ff;
            vertical-align: bottom;
            margin-left: 5px;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        
        @media (max-width: 600px) {
            #terminal-text { font-size: 1.1rem; }
            .cursor { height: 1.1rem; }
        }

        body.loaded #preloader { transform: translateY(-100%); }
        body.no-scroll { overflow: hidden; }

        /* --- BACKGROUND THREE.JS --- */
        #star-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -10; outline: none; pointer-events: none; }
        
          /* ===================================
           NAVIGATION
           =================================== */
        
        .navbar {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 1100px;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(15, 15, 17, 0.1);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            opacity: 0;
        }
        
        .navbar.visible {
            opacity: 1;
        }
        
        .navbar.scrolled {
            background: rgba(15, 15, 17, 0.2);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }
        
        .nav-logo {
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.05em;
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            margin-left: 10px;
        }
        
        .burger-menu {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 28px;
            height: 22px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
            margin-right: 10px;
        }
        
        .burger-menu span {
            width: 100%;
            height: 2.5px;
            background: #fff;
            border-radius: 3px;
            transition: all 0.3s ease;
            box-shadow: 0 0 8px rgba(155, 48, 255, 0.3);
        }
        
        .burger-menu.active span:nth-child(1) {
            transform: translateY(9.75px) rotate(45deg);
        }
        
        .burger-menu.active span:nth-child(2) {
            opacity: 0;
            transform: translateX(-20px);
        }
        
        .burger-menu.active span:nth-child(3) {
            transform: translateY(-9.75px) rotate(-45deg);
        }
        
        .nav-links {
            display: flex;
            gap: 10px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .nav-link a {
            color: #aaa;
            text-decoration: none;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 500;
            display: inline-block;
            padding: 10px 20px;
            border-radius: 30px;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0);
            transition: all 0.3s ease;
        }
        
        .nav-link a:hover,
        .nav-link a.active {
            color: #9b30ff;
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(155, 48, 255, 0.3);
            box-shadow: 0 0 8px rgba(155, 48, 255, 0.1);
            text-shadow: 0 0 5px rgba(155, 48, 255, 0.4);
        }
        
        .nav-btn {
            padding: 10px 24px;
            font-size: 0.8rem;
            font-weight: bold;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            background: rgba(255, 255, 255, 0.02);
            margin-right: 5px;
            white-space: nowrap;
        }
        
        .nav-btn:hover {
            background: rgba(155, 48, 255, 0.1);
            border-color: #9b30ff;
            color: #9b30ff;
            box-shadow: 0 0 8px rgba(155, 48, 255, 0.15);
        }
        
        .nav-overlay {
            display: none;
        }
        
        /* Desktop */
        @media screen and (min-width: 969px) {
            .burger-menu {
                display: none !important;
            }
            .nav-links {
                display: flex !important;
                position: static !important;
                flex-direction: row !important;
                width: auto !important;
                height: auto !important;
                background: transparent !important;
                padding: 0 !important;
                gap: 10px !important;
                border: none !important;
                border-radius: 0 !important;
            }
            .nav-link {
                width: auto !important;
                border: none !important;
            }
            .nav-link a {
                padding: 10px 20px !important;
                font-size: 0.85rem !important;
                border-radius: 30px !important;
            }
            .btn-container {
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
            }
            .nav-btn {
                width: auto !important;
                padding: 10px 24px !important;
            }
        }
        
        /* Mobile */
        @media screen and (max-width: 968px) {
            .navbar {
                width: 95%;
                padding: 12px 20px;
            }
            .burger-menu {
                display: flex !important;
            }
            .nav-links {
                position: fixed !important;
                top: 0 !important;
                right: -100% !important;
                width: 300px !important;
                height: 100vh !important;
                background: rgba(15, 15, 17, 0.98) !important;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                flex-direction: column !important;
                gap: 0 !important;
                padding: 100px 2rem 2rem !important;
                box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
                border-left: 1px solid rgba(155, 48, 255, 0.2);
                transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
                overflow-y: auto;
                z-index: 1000;
                border-radius: 0 !important;
            }
            .nav-links.active {
                right: 0 !important;
            }
            .nav-link {
                width: 100% !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
            }
            .nav-link a {
                display: block !important;
                padding: 1.2rem 0 !important;
                font-size: 0.95rem !important;
                border-radius: 0 !important;
                border: none !important;
            }
            .btn-container {
                margin: 2rem 0 0 0 !important;
                padding-top: 2rem !important;
                border-top: 2px solid rgba(155, 48, 255, 0.2) !important;
                width: 100% !important;
            }
            .nav-btn {
                width: 100% !important;
                text-align: center !important;
                padding: 1rem !important;
                display: block !important;
                margin: 0 !important;
            }
            .nav-overlay {
                display: block !important;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: rgba(0, 0, 0, 0.7);
                backdrop-filter: blur(5px);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                z-index: 999;
            }
            .nav-overlay.active {
                opacity: 1;
                visibility: visible;
            }
        }
        
        @media screen and (max-width: 768px) {
            .navbar {
                padding: 10px 15px;
            }
            .nav-logo {
                font-size: 1.2rem;
                margin-left: 5px;
            }
            .nav-links {
                width: 280px !important;
            }
        }
        
        @media screen and (max-width: 480px) {
            .nav-links {
                width: 85vw !important;
            }
            .nav-logo {
                font-size: 1.1rem;
            }
            .burger-menu {
                width: 26px;
                height: 20px;
                margin-right: 5px;
            }
        }
        
        body.menu-open {
            overflow: hidden;
        }
        /* --- FOND LED --- */
        .led-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
        .led-track { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.03); overflow: hidden; }
        .track-1 { left: 15%; } .track-2 { left: 50%; } .track-3 { left: 85%; }
        .led-pulse { 
            position: absolute; top: -20%; left: -1px; width: 3px; height: 200px; 
            background: linear-gradient(to bottom, transparent 0%, rgba(155, 48, 255, 0.5) 40%, #9b30ff 80%, #ffffff 100%); 
            box-shadow: 0 0 8px rgba(155, 48, 255, 0.6), 0 0 15px rgba(155, 48, 255, 0.2); 
            animation: dropPulse infinite linear; will-change: transform; 
        }
        .track-1 .led-pulse { animation-duration: 3.5s; animation-delay: 0s; }
        .track-2 .led-pulse { animation-duration: 6s; animation-delay: 2s; height: 300px; opacity: 0.8; }
        .track-3 .led-pulse { animation-duration: 4.5s; animation-delay: 1s; }
        @keyframes dropPulse { 0% { top: -40%; } 100% { top: 120%; } }

        /* --- TYPO & LAYOUT --- */
        section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 15%; position: relative; z-index: 2; }
        
        /* --- HERO SECTION --- */
        .hero-center { 
            align-items: center; text-align: center; padding: 0 5%; padding-top: 100px; 
            min-height: 65vh !important; justify-content: center; 
        }

        .hero-title {
            font-size: 3.5vw; 
            font-weight: 700; 
            line-height: 1.1; 
            margin-bottom: 15px; 
            letter-spacing: -0.02em; 
            color: #ffffff;
            text-shadow: 0 0 20px rgba(0,0,0,0.5);
        }

        .title-line { display: block; overflow: hidden; }
        .line-inner { display: block; } 

        .hero-desc-wrapper { overflow: visible; margin-bottom: 0; }
        
        .hero-desc { 
            font-size: 1.1rem; 
            max-width: 600px; 
            line-height: 1.6; 
            color: #ccc; 
            margin: 0 auto;
            background: transparent; border: none; padding: 0; margin-bottom: 0;
            opacity: 0; 
        }

        .hero-btns {
            opacity: 0; 
            display: flex; gap: 15px; justify-content: center; margin-top: 25px; flex-wrap: wrap;
        }

        /* --- BOUTONS --- */
        /* --- BOUTONS --- */
        .cta-button { 
            margin-top: 0;
            padding: 10px 30px;
            font-size: 0.9rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #9b30ff;
            color: #fff;
            border: 1px solid #9b30ff;
            box-shadow: 0 0 10px rgba(155, 48, 255, 0.2);
            text-decoration: none !important;   /* 🔥 anti-soulignement */
        }
        
        .cta-button:hover,
        .cta-button:focus {
            transform: translateY(-2px);
            box-shadow: 0 0 15px rgba(155, 48, 255, 0.4);
            text-decoration: none !important;
        }
        
        .cta-button.secondary {
            background: transparent;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: none;
        }
        
        .cta-button.secondary:hover {
            border-color: #9b30ff;
            color: #9b30ff;
            background: rgba(155, 48, 255, 0.05);
            box-shadow: 0 0 8px rgba(155, 48, 255, 0.15);
        }


        .highlight { color: #9b30ff; text-shadow: 0 0 8px rgba(155, 48, 255, 0.3); }
        .anim-fade-up { opacity: 0; }
        /* --- BANDEAU LOGO INFINI --- */
        .marquee-container {
            width: 100%;
            overflow: hidden;
            background: rgba(15, 15, 17, 0.5); /* Fond semi-transparent */
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 30px 0;
            position: relative;
            z-index: 10;
            /* Effet de fondu sur les côtés pour l'élégance */
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }

        .marquee-content {
            display: flex;
            width: max-content; /* S'adapte à la largeur du contenu */
            /* L'animation déplace de 0 à -50% (la moitié exacte) */
            animation: scrollInfinite 30s linear infinite; 
        }

        .marquee-item {
            display: flex;
            align-items: center;
            /* On inclut le gap ici pour que le calcul de largeur soit parfait */
            padding-right: 80px; 
        }

        .marquee-item img {
            height: 30px; /* Taille des logos */
            width: auto;
            opacity: 0.5;
            filter: grayscale(100%) brightness(1.2); /* Noir et blanc + léger boost */
            transition: all 0.3s ease;
            display: block;
        }

        /* Pause au survol et effet couleur */
        .marquee-container:hover .marquee-content {
            animation-play-state: paused;
        }

        .marquee-item img:hover {
            opacity: 1;
            filter: grayscale(0%) brightness(1);
            transform: scale(1.1);
        }

        @keyframes scrollInfinite {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        @media (max-width: 600px) {
            .marquee-item { padding-right: 40px; }
            .marquee-item img { height: 24px; }
        }
        /* --- SECTION VIDÉO --- */
        .video-section {
            position: relative; z-index: 5; padding: 100px 5%;
            display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
            min-height: 80vh;
        }
        /* --- MODIFICATION : Wrapper pour l'animation uniquement --- */
        .video-wrapper {
            width: 100%;
            max-width: 1400px; /* On garde la largeur max du conteneur */
            display: flex;
            justify-content: center;
            opacity: 0; /* Important pour ton animation d'apparition */
            margin: 0 auto;
        }

        /* --- SUPPRESSION de .styled-video (on l'enlève car remplacé par .video-standard) --- */

        /* --- AJOUT : Le style standard pour TOUTES les vidéos --- */
        .video-standard {
            width: 100%;
            max-width: 1200px;        /* Largeur unifiée pour Accueil et Devis */
            height: auto;
            aspect-ratio: 16 / 9;    /* Format Cinéma */
            border-radius: 20px;     /* Arrondi moderne */
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); /* Belle ombre profonde */
            object-fit: cover;
            display: block;
            margin: 0 auto;
        }

        /* --- SECTION OUTILS (TRANSPARENT GLASSMORPHISM + IMAGE FIX) --- */
        .services-section { padding: 50px 5% 100px 5%; position: relative; }
        
        .section-header { 
            text-align: center; 
            margin-bottom: 40px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
        }

        .header-badge {
            display: inline-block;
            padding: 6px 16px;
            background: rgba(155, 48, 255, 0.1);
            border: 1px solid rgba(155, 48, 255, 0.3);
            border-radius: 30px;
            color: #9b30ff;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(155, 48, 255, 0.1);
        }

        .modern-title {
            font-size: 3rem; 
            font-weight: 800;
            margin-bottom: 15px;
            letter-spacing: -0.02em;
            line-height: 1.1;
            color: #fff;
        }

        .text-gradient {
            background: linear-gradient(135deg, #fff 30%, #9b30ff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            display: inline-block;
        }

        .tools-intro {
            max-width: 600px;
            margin: 0 auto 30px auto;
            color: #aaa;
            line-height: 1.6;
            font-size: 1.1rem;
            text-align: center;
        }

        /* Grid & Cards */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
            gap: 24px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tool-card {
            background: rgba(15, 15, 17, 0.15); /* Opacité 15% pour voir les étoiles */
            backdrop-filter: blur(5px); /* Flou 5px */
            -webkit-backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 24px; 
            padding: 32px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            transition: all 0.3s ease;
            opacity: 0; 
            position: relative;
            overflow: hidden;
        }

        .tool-card:hover {
            background: rgba(255, 255, 255, 0.05); 
            border-color: rgba(155, 48, 255, 0.5); 
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
            width: 100%;
        }

        .icon-box {
            width: 52px;
            height: 52px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 14px; 
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            border: 1px solid rgba(255,255,255,0.05);
            overflow: hidden; /* Important pour les images */
        }

        /* Style pour les images/logos dans la box */
        .icon-box img {
            width: 60%; 
            height: 60%; 
            object-fit: contain;
            display: block;
        }

        .header-text {
            display: flex;
            flex-direction: column;
        }

        .tool-category {
            font-size: 0.75rem;
            color: #bbb; 
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .tool-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }

        .tool-desc {
            font-size: 0.95rem;
            color: #ddd; 
            line-height: 1.6;
            margin-bottom: 32px;
            flex-grow: 1; 
        }

        .tool-btn {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .tool-btn span { font-size: 1.1em; line-height: 0; position: relative; top: -1px; }

        .tool-btn:hover {
            background: #fff;
            color: #000;
        }


        /* --- SCROLLYTELLING SECTION --- */
        .split-section { flex-direction: row; align-items: flex-start; justify-content: space-between; height: 400vh; padding-top: 0; padding-bottom: 0; }
        .text-column { 
            width: 45%; 
            position: -webkit-sticky; 
            position: sticky; 
            top: 15vh; 
            height: 80vh; 
            display: flex; 
            flex-direction: column; 
            
            /* MODIFICATION ICI : on aligne en haut au lieu de centrer */
            justify-content: flex-start; 
            
            z-index: 10; 
            padding-top: 20px; 
        }
        .text-block { 
            position: absolute; 
            left: 0; 
            width: 100%; 
            transition: opacity 0.5s ease; 
            pointer-events: none; 
            
            /* AJOUTEZ CETTE LIGNE pour descendre le texte sous le titre */
            top: 170px; 
        }
        .step-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; display: block; }
        #text-block-1 { opacity: 1; transform: translateY(0); }
        #text-block-2, #text-block-3 { opacity: 0; transform: translateY(50px); }
        

        /* --- ROBOTS (Text Blocks) --- */
        .robot-identity h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 5px;
            line-height: 1.1;
            letter-spacing: -1px;
            text-transform: uppercase;
        }

        .robot-desc {
            font-size: 1rem;
            color: #ccc;
            font-weight: 400;
            margin-bottom: 20px;
            display: block;
            font-family: 'Helvetica Neue', sans-serif;
            letter-spacing: 0.5px;
        }

        .robot-separator {
            width: 60px;
            height: 3px;
            margin-bottom: 25px;
            border-radius: 2px;
        }

        .task-bubbles {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 10px;
        }

        .task-bubble {
            font-family: 'Courier New', monospace;
            font-size: 0.8rem;
            font-weight: 700;
            padding: 8px 16px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            backdrop-filter: blur(4px);
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
        }

        .task-bubble:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 6px 15px rgba(0,0,0,0.4);
        }

        /* --- CAROUSEL SCENARIOS (Version Scroll Snap Natif) --- */


        .scenario-box {
            margin-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            position: relative;
            width: 100%;
            max-width: 350px; 
            overflow: hidden; 
            pointer-events: auto; 
        }

        

        /* Le conteneur global qui gère le scroll */
        .scenario-carousel-wrapper {
            width: 100%;
            overflow-x: auto;          /* Autorise le défilement horizontal */
            scroll-snap-type: x mandatory; /* OBLIGE le navigateur à s'arrêter sur une carte */
            scroll-behavior: smooth;   /* Défilement doux */
            display: flex;             /* Assure que la piste prend toute la place */
            
            /* On cache la barre de défilement pour le style */
            scrollbar-width: none;     /* Firefox */
            -ms-overflow-style: none;  /* IE/Edge */
        }
        .scenario-carousel-wrapper::-webkit-scrollbar { 
            display: none;             /* Chrome/Safari */
        }

        /* La piste devient juste un conteneur flexible */
        .scenario-track {
            display: flex;
            width: 100%; /* S'adapte au parent */
            gap: 0;      /* Pas d'espace pour garantir le 100% pile */
        }

        /* Chaque carte prend 100% de la largeur visible */
        .scenario-card {
            min-width: 100%;         /* Force la largeur à 100% du parent */
            flex: 0 0 100%;          /* Empêche le rétrécissement */
            scroll-snap-align: center; /* L'arrêt se fait pile au centre */
            
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            box-sizing: border-box;  /* Important pour que le padding ne casse pas la largeur */
            
            /* Animation douce si on passe la souris */
            transition: background 0.3s ease;
        }

        .scenario-card:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .scenario-card h4 {
            font-size: 1rem;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .scenario-card p {
            font-size: 0.9rem !important;
            line-height: 1.5 !important;
            color: #bbb !important;
            margin: 0 !important;
        }

        /* --- DOTS NAVIGATION --- */
        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            pointer-events: auto;
        }

        /* Themes Robots */
        
        /* CHARLY (Bleu) */
        .theme-blue .robot-separator { background: #2962ff; box-shadow: 0 0 10px rgba(41, 98, 255, 0.5); }
        .theme-blue .task-bubble { border-color: rgba(41, 98, 255, 0.3); color: #abc4ff; }
        .theme-blue .task-bubble:before { content: '>'; margin-right: 8px; color: #2962ff; }
        .theme-blue .scenario-card { border-left: 2px solid #2962ff; }
        .theme-blue .scenario-card h4 { color: #abc4ff; }
        .theme-blue .dot.active { background: #2962ff; box-shadow: 0 0 8px rgba(41, 98, 255, 0.6); transform: scale(1.2); }

        /* ATLAS (Jaune/Gold) */
        .theme-gold .robot-separator { background: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
        .theme-gold .task-bubble { border-color: rgba(255, 215, 0, 0.3); color: #fffacd; }
        .theme-gold .task-bubble:before { content: '⚡'; margin-right: 8px; color: #ffd700; }
        .theme-gold .scenario-card { border-left: 2px solid #ffd700; }
        .theme-gold .scenario-card h4 { color: #fffacd; }
        .theme-gold .dot.active { background: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); transform: scale(1.2); }

        /* NOVA (Rose) */
        .theme-pink .robot-separator { background: #ff00cc; box-shadow: 0 0 10px rgba(255, 0, 204, 0.5); }
        .theme-pink .task-bubble { border-color: rgba(255, 0, 204, 0.3); color: #ffccf9; }
        .theme-pink .task-bubble:before { content: '♥'; margin-right: 8px; color: #ff00cc; }
        .theme-pink .scenario-card { border-left: 2px solid #ff00cc; }
        .theme-pink .scenario-card h4 { color: #ffccf9; }
        .theme-pink .dot.active { background: #ff00cc; box-shadow: 0 0 8px rgba(255, 0, 204, 0.6); transform: scale(1.2); }
       

        /* --- SUITE LAYOUT SCROLLY --- */
        .model-column { width: 50%; height: 80vh; position: -webkit-sticky; position: sticky; top: 15vh; display: flex; align-items: center; justify-content: center; }
        .robot-wrapper { position: relative; width: 100%; height: 100%; transform: translateX(20%); opacity: 0; }
        model-viewer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; --poster-color: transparent; pointer-events: none; }
        #robot-viewer-2, #robot-viewer-3 { opacity: 0; }
        
        /* --- SECTION FAQ (CORRECTIF POUR COLLER AU FOOTER) --- */
        .faq-section {
            /* On remplace le padding 100px 0 par un padding bottom à 0 ou très faible */
            padding: 100px 0 0 0;
            display: flex;
            flex-direction: row;
            width: 100%;
            position: relative;
            align-items: flex-start !important; 
            overflow: visible !important;
            
            /* IMPORTANT : On force la hauteur auto pour éviter le trou vide si le contenu est court */
            min-height: auto !important; 
            margin-bottom: 0 !important;
        }

        main { overflow: visible !important; }

        .faq-header-col {
            width: 50%; 
            padding-left: 15%; 
            padding-right: 40px; 
            position: relative; 
            top: auto; 
            height: auto; 
            max-height: none; 
            z-index: 1;
            /* Petit padding en bas pour aérer le texte */
            padding-bottom: 60px; 
        }

        .faq-sticky-content {
            position: static; 
            top: auto; 
            max-height: none; 
            overflow-y: visible;
            scrollbar-width: auto; 
        }
        .faq-sticky-content::-webkit-scrollbar { display: none; }
        
        .faq-content-col {
            width: 50%;
            padding-left: 40px; 
            padding-right: 15%;
            /* On retire le min-height 100vh qui forçait l'espace */
            min-height: auto; 
            padding-bottom: 60px; /* Espace avant le footer */
        }

        /* --- LE RESTE DU DESIGN (Item, Question...) --- */
        .faq-item {
            background: rgba(15, 15, 17, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            margin-bottom: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .faq-item:hover {
            border-color: rgba(155, 48, 255, 0.3);
            background: rgba(255, 255, 255, 0.03);
        }

        .faq-item.active {
            border-color: #9b30ff;
            background: rgba(155, 48, 255, 0.05);
            box-shadow: 0 0 15px rgba(155, 48, 255, 0.1);
        }

        .faq-question {
            padding: 24px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            font-family: 'Helvetica Neue', Arial, sans-serif;
            transition: color 0.3s ease;
        }

        .faq-item.active .faq-question { color: #9b30ff; }

        .faq-icon {
            font-size: 1.5rem;
            color: #777;
            transition: transform 0.4s ease, color 0.3s ease;
            margin-left: 20px;
        }

        .faq-item.active .faq-icon { transform: rotate(45deg); color: #9b30ff; }

        .faq-answer {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.4s ease;
            padding: 0 24px;
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            opacity: 1;
            padding-bottom: 24px;
        }
        
        .faq-answer p { color: #aaa; line-height: 1.6; margin: 0; }

        /* --- FOOTER CSS (MODIFIÉ POUR COLLER) --- */
        .main-footer {
            position: relative;
            z-index: 10;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(15, 15, 17, 0.6);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            padding: 80px 5% 30px;
            color: #fff;
            
            /* MODIFICATION: Margin top à 0 pour coller à la section précédente */
            margin-top: 0; 
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto 60px auto;
        }

        .footer-brand h3 {
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            letter-spacing: -0.05em;
        }

        .footer-desc {
            color: #aaa;
            line-height: 1.6;
            font-size: 0.9rem;
            max-width: 300px;
        }

        .footer-col h4 {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #9b30ff;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #ccc;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .footer-links a:hover {
            color: #9b30ff;
            transform: translateX(5px);
            text-shadow: 0 0 8px rgba(155, 48, 255, 0.4);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            flex-wrap: wrap;
            gap: 20px;
        }

        .copyright {
            color: #666;
            font-size: 0.8rem;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-btn {
            color: #fff;
            text-decoration: none;
            font-size: 0.8rem;
            border: 1px solid rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .social-btn:hover {
            border-color: #9b30ff;
            background: rgba(155, 48, 255, 0.1);
            color: #9b30ff;
        }

        @media (max-width: 900px) {
            .faq-section { flex-direction: column; padding: 60px 5% 0 5%; align-items: center !important; }
            .faq-header-col { 
                width: 100%; padding: 0; margin-bottom: 40px; text-align: center; 
                position: relative; top: 0; padding-bottom: 0;
            }
            .faq-content-col { width: 100%; padding: 0; min-height: auto; padding-bottom: 60px; }
            .tools-intro { text-align: center !important; }

            /* Mobile Footer */
            .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
            .footer-desc { margin: 0 auto; }
            .footer-links a:hover { transform: translateX(0) scale(1.05); }
            .footer-bottom { flex-direction: column; text-align: center; }
        }
                /* --- MODALE / OVERLAY --- */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent */
            backdrop-filter: blur(8px);      /* Effet de flou derrière */
            z-index: 9999; /* Très haut pour être au-dessus de tout */
            
            display: flex; justify-content: center; align-items: center;
            opacity: 0; visibility: hidden;
            transition: all 0.4s ease;
        }

        /* Quand on ajoute la classe 'active' via JS ou PHP, la fenêtre apparait */
        .modal-overlay.active {
            opacity: 1; visibility: visible;
        }

        .modal-content {
            background: #151518;
            border: 1px solid rgba(155, 48, 255, 0.3);
            box-shadow: 0 0 50px rgba(155, 48, 255, 0.15);
            border-radius: 20px;
            padding: 40px;
            width: 90%; max-width: 500px;
            position: relative;
            transform: translateY(50px); /* Effet de glissement */
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        /* Bouton Fermer (X) */
        .close-modal {
            position: absolute; top: 15px; right: 20px;
            font-size: 2rem; color: #777; cursor: pointer;
            transition: color 0.3s;
        }
        .close-modal:hover { color: #fff; }

        /* Formulaire Design */
        .modal-form .input-group { margin-bottom: 20px; }
        .modal-form label { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
        .modal-form input, .modal-form textarea {
            width: 100%; padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px; color: #fff; outline: none; font-family: inherit;
            transition: border-color 0.3s;
        }
        .modal-form input:focus, .modal-form textarea:focus {
            border-color: #9b30ff; background: rgba(255, 255, 255, 0.08);
        }
        .cta-button.full-width { width: 100%; text-align: center; margin-top: 10px; }
        /* --- COOKIE BANNER (Format Pop-up Bas Droite) --- */
        .cookie-banner {
            position: fixed;
            bottom: 30px;
            right: 30px; /* Ancré à droite */
            left: auto;  /* On annule l'ancrage gauche/centre */
            
            width: 100%;
            max-width: 380px; /* On force une taille de "boîte" */
            
            /* Animation de départ (Caché en bas) */
            transform: translateY(120%); 
            
            background: rgba(15, 15, 17, 0.95);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(155, 48, 255, 0.2); /* Bordure violette subtile */
            border-radius: 20px;
            padding: 25px;
            
            /* Disposition verticale pour la boîte */
            display: flex;
            flex-direction: column; 
            gap: 20px;
            
            box-shadow: 0 10px 40px rgba(0,0,0,0.6);
            z-index: 10000;
            transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        }

        /* Classe ajoutée par JS pour le faire apparaître */
        .cookie-banner.show {
            transform: translateY(0);
        }

        .cookie-text h3 {
            font-size: 1.1rem; 
            color: #fff; 
            margin-bottom: 8px;
            display: flex; align-items: center; gap: 8px;
        }

        .cookie-text p {
            font-size: 0.85rem; 
            color: #aaa; 
            margin: 0; 
            line-height: 1.5;
        }

        .cookie-text a {
            color: #9b30ff; 
            text-decoration: none; 
            border-bottom: 1px solid transparent; 
            transition: 0.3s;
        }
        .cookie-text a:hover { border-color: #9b30ff; }

        /* Boutons alignés */
        .cookie-buttons {
            display: flex; 
            gap: 10px;
            width: 100%;
        }

        /* Bouton Refuser (Gris) */
        .btn-cookie-outline {
            flex: 1; /* Prend la moitié de la place */
            background: rgba(255,255,255,0.05); 
            color: #ccc; 
            border: 1px solid rgba(255,255,255,0.1);
            padding: 10px 0; 
            border-radius: 12px;
            font-weight: 600; cursor: pointer; transition: 0.3s;
            font-size: 0.85rem;
        }
        .btn-cookie-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

        /* Bouton Accepter (Violet) */
        .btn-cookie-fill {
            flex: 1; /* Prend la moitié de la place */
            background: #9b30ff; 
            color: #fff; 
            border: none;
            padding: 10px 0; 
            border-radius: 12px;
            font-weight: 700; cursor: pointer; transition: 0.3s;
            font-size: 0.85rem;
            box-shadow: 0 4px 15px rgba(155, 48, 255, 0.3);
        }
        .btn-cookie-fill:hover { background: #b05aff; transform: translateY(-2px); }

        /* Responsive Mobile : On garde une petite marge */
        @media (max-width: 600px) {
            .cookie-banner {
                right: 5%; /* Centré avec marges */
                left: 5%;
                bottom: 20px;
                width: 90%;
                max-width: none;
            }
        }

        /* Responsive Mobile */
        @media (max-width: 768px) {
            .cookie-banner {
                flex-direction: column; text-align: center; gap: 20px;
                bottom: 20px; padding: 20px;
            }
            .cookie-buttons { width: 100%; justify-content: center; }
            .btn-cookie-fill, .btn-cookie-outline { flex: 1; }
        }
        /* Alertes */
        .alert-box { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-size: 0.9rem; }
        .alert-box.success { background: rgba(0, 255, 100, 0.1); border: 1px solid #00ff64; color: #00ff64; }
        .alert-box.error { background: rgba(255, 0, 0, 0.1); border: 1px solid #ff0055; color: #ff0055; }
        /* --- LOADER 3D PLACEHOLDER --- */

        /* Le conteneur du loader qui prend toute la place du model-viewer */
        .model-loader {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(155, 48, 255, 0.1) 0%, rgba(15, 15, 17, 0) 70%);
            position: absolute;
            top: 0;
            left: 0;
        }
        
        /* L'anneau qui tourne */
        .spinner-ring {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid #9b30ff; /* Votre violet */
            border-radius: 50%;
            animation: spinRobot 1s linear infinite;
            margin-bottom: 15px;
            box-shadow: 0 0 15px rgba(155, 48, 255, 0.2);
        }
        
        /* Le texte en dessous */
        .loading-text {
            font-family: 'Courier New', monospace;
            font-size: 0.75rem;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 2px;
            animation: pulseText 1.5s ease-in-out infinite;
        }
        
        /* Animations */
        @keyframes spinRobot {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes pulseText {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        
        /* Optionnel : cacher le poster par défaut sur le viewer pour éviter un flash noir */
        model-viewer {
            --poster-color: transparent;
        }
       /* =============================================
   MOBILE OPTIMIZATION - INDEX.PHP
   ============================================= */

    @media (max-width: 968px) {

        /* --- 1. HERO SECTION --- */
        .hero-center {
            padding-top: 120px; /* Plus d'espace pour la navbar */
            min-height: auto !important; /* On laisse le contenu dicter la hauteur */
            padding-bottom: 60px;
        }

        .hero-title {
            font-size: 2.5rem; /* Réduction de la taille du titre */
        }

        .hero-desc {
            font-size: 1rem;
            padding: 0 20px;
        }

        .hero-btns {
            flex-direction: column; /* Boutons l'un sous l'autre */
            width: 100%;
            padding: 0 40px;
            gap: 15px;
        }

        .cta-button {
            width: 100%; /* Boutons pleine largeur */
            text-align: center;
        }

        /* --- 2. MARQUEE (LOGOS) --- */
        .marquee-container {
            padding: 20px 0;
        }
        .marquee-item {
            padding-right: 40px; /* Moins d'espace entre les logos */
        }

        /* --- 3. VIDEO --- */
        .video-section {
            padding: 40px 5%;
            min-height: auto;
        }
        
        .video-standard {
            border-radius: 12px; /* Arrondi plus petit sur mobile */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        /* --- 4. SCROLLYTELLING (MOBILE : VERSION STABILISÉE) --- */
    
        .split-section {
            display: flex;
            flex-direction: column;
            height: auto !important;
            padding-top: 20px; 
            padding-bottom: 60px;
            position: relative;
        }

        /* ASTUCE : On "éclate" le conteneur texte pour manipuler le Titre et le Texte séparément */
        .text-column {
            display: contents; 
        }

        /* 1. LE TITRE (Rencontrez vos experts) */
        .section-header {
            order: 1;
            width: 100%;
            padding: 0 20px;
            margin-bottom: 20px !important;
            position: relative;
            z-index: 1;
            display: block; /* Sécurité */
        }

        /* 2. LE ROBOT (Au milieu) */
        .model-column {
            order: 2;
            width: 100%;
            height: 40vh;       
            min-height: 350px;
            
            /* Réinitialisation TOTALE du positionnement */
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            
            /* ESPACES DE SÉCURITÉ INCASSABLES */
            margin-top: 0 !important;
            margin-bottom: 50px !important; /* Force le texte à descendre de 50px */
            
            display: block !important;
            z-index: 1;
        }

        .robot-wrapper {
            opacity: 1 !important;
            transform: none !important;
            width: 100%;
            height: 100%;
            position: relative;
            pointer-events: none; /* Le robot est visible mais on peut scroller dessus */
        }

        #robot-viewer-1 {
            display: block !important;
            opacity: 1 !important;
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        #robot-viewer-2, #robot-viewer-3 { display: none !important; }

        /* 3. LE TEXTE (En bas) */
        #text-block-1 {
            order: 3;
            
            /* On écrase le style 'absolute' du desktop */
            position: relative !important; 
            top: auto !important;
            left: auto !important;
            
            width: 100%;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            padding: 0 20px;
            
            margin-top: 0 !important;
            z-index: 1;
        }

        /* Masquer les autres textes */
        #text-block-2, #text-block-3 { display: none !important; }

        /* 3. LE TEXTE (Bien en dessous) */
        #text-block-1 {
            order: 3;
            position: relative;
            top: auto !important;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            padding: 0 20px;
            
            /* Pas de marges négatives, juste le flux normal */
            margin-top: 0; 
            z-index: 10;
        }

        #text-block-2, #text-block-3 { display: none !important; }
        /* 3. TEXTE (En arrière plan par rapport au robot) */
        #text-block-1 {
            order: 3;
            position: relative;
            top: auto !important;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            padding: 0 20px;
            
            /* On évite qu'il remonte trop sur le robot */
            margin-top: 10px; 
            
            /* Niveau inférieur au robot pour que les pieds du robot passent devant le texte si besoin */
            z-index: 5; 
        }

        #text-block-2, #text-block-3 { display: none !important; }

        /* 3. TEXTE (On s'assure qu'il est bien calé) */
        #text-block-1 {
            order: 3;
            position: relative;
            top: auto !important;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            padding: 0 20px;
            margin-top: 0;       /* Pas de marge négative ici pour éviter la superposition */
            margin-bottom: 0;
            z-index: 10;
        }

        /* Masquer les autres */
        #text-block-2, #text-block-3 { display: none !important; }

        /* 3. LA DESCRIPTION DE CHARLY EN TROISIÈME */
        #text-block-1 {
            order: 3;
            position: relative;
            top: auto !important;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            padding: 0 20px; /* On remet le padding ici aussi */
            margin-bottom: 0;
            z-index: 10;
        }

        /* On cache toujours les autres */
        #text-block-2, #text-block-3 { display: none !important; }

        /* TEXTES */
        .text-column {
            width: 100%;
            height: auto;
            position: relative;
            padding: 0 20px;
            margin-top: -20px;
        }

        #text-block-1 {
            position: relative;
            top: auto !important;
            opacity: 1 !important;
            transform: none !important;
            display: block !important;
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        #text-block-2, 
        #text-block-3 {
            display: none !important;
        }

        /* Ajustement des bulles et du carrousel interne */
        .scenario-box {
            max-width: 100%; /* Pleine largeur */
        }

        .scenario-card {
            background: rgba(255, 255, 255, 0.05); /* Fond un peu plus visible */
        }

        /* --- 5. GRID SERVICES --- */
        .services-section {
            padding: 60px 20px;
        }
        
        .tools-grid {
            grid-template-columns: 1fr; /* Une seule colonne */
            gap: 20px;
        }

        .tool-card {
            padding: 24px;
            opacity: 1 !important; /* Force l'apparition si l'anim JS bug */
        }
    }
    /* =============================================
   CORRECTIF MOBILE : ORDRE SECTION OUTILS
   ============================================= */
    @media (max-width: 968px) {

        /* On force la direction "colonne" normale (Haut vers Bas) */
        #tools-section {
            display: flex;
            flex-direction: column !important;
        }

        /* 1. LE TITRE EN HAUT */
        #tools-section .section-header {
            order: 1 !important;
            margin-bottom: 40px; /* Espace sous le titre */
        }

        /* 2. LA GRILLE D'OUTILS EN BAS */
        #tools-section .tools-grid {
            order: 2 !important;
        }
    }
    