/* Styles de base - Liwe */
/* Styles communs à toutes les résolutions */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #1a0f0a;
            color: #f5f5f7;
            min-height: 100vh;
            line-height: 1.6;
            transition: padding-left 0.3s ease, background 0.5s ease;
            padding-left: 70px;
        }

        body.welcome-mode {
            background: #000000;
            padding-left: 0;
        }

        body.welcome-mode::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(ellipse 50% 120% at 30% 0%,
                    rgba(255, 127, 92, 0.35) 0%,
                    rgba(255, 127, 92, 0.15) 30%,
                    rgba(255, 127, 92, 0.05) 50%,
                    transparent 70%),
                radial-gradient(ellipse 50% 120% at 70% 0%,
                    rgba(245, 245, 247, 0.3) 0%,
                    rgba(245, 245, 247, 0.12) 30%,
                    rgba(245, 245, 247, 0.04) 50%,
                    transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        body.welcome-mode::after {
            display: none;
        }

        body.has-mini-sidebar {
            padding-left: 70px;
        }

        /* Compenser le décalage de la mini-sidebar pour centrer les contenus */
        body.has-mini-sidebar .main-container,
        body.has-mini-sidebar .work-in-progress {
            margin-left: -35px;
        }

        /* Backgrounds WEB - RESTAURÉS */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at 20% 20%, rgba(75, 62, 51, 0.08) 0%, rgba(75, 62, 51, 0.03) 30%, transparent 70%),
                radial-gradient(circle at 80% 80%, rgba(255, 127, 92, 0.05) 0%, rgba(255, 127, 92, 0.02) 30%, transparent 70%),
                radial-gradient(circle at 40% 70%, rgba(139, 111, 71, 0.06) 0%, rgba(139, 111, 71, 0.02) 30%, transparent 70%),
                radial-gradient(circle at 60% 30%, rgba(255, 127, 92, 0.04) 0%, rgba(255, 127, 92, 0.01) 30%, transparent 70%);
            z-index: -2;
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(90deg, rgba(245, 245, 247, 0.02) 1px, transparent 1px),
                linear-gradient(rgba(245, 245, 247, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
            animation: grid-move 20s linear infinite;
        }

        @keyframes grid-move {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        body.theme-gov {
            background: #cbc7be;
            color: #2a1810;
        }

        body.theme-gov::before {
            background: transparent;
        }

        body.theme-gov::after {
            background-image:
                linear-gradient(90deg, rgba(100, 80, 70, 0.05) 1px, transparent 1px),
                linear-gradient(rgba(100, 80, 70, 0.05) 1px, transparent 1px);
        }

        /* Circuits V16 - Shooting Stars Slow Motion ✨ */
        .tech-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .circuit-lines {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .circuit-line {
            position: absolute;
        }

        /* Animations Shooting Stars */
        @keyframes shootHorizontal {
            0% {
                transform: translateX(-150px);
                opacity: 0;
            }
            10% {
                opacity: 0.4;
            }
            90% {
                opacity: 0.4;
            }
            100% {
                transform: translateX(150px);
                opacity: 0;
            }
        }

        @keyframes shootHorizontalReverse {
            0% {
                transform: translateX(150px);
                opacity: 0;
            }
            10% {
                opacity: 0.4;
            }
            90% {
                opacity: 0.4;
            }
            100% {
                transform: translateX(-150px);
                opacity: 0;
            }
        }

        @keyframes shootVertical {
            0% {
                transform: translateY(-120px);
                opacity: 0;
            }
            10% {
                opacity: 0.4;
            }
            90% {
                opacity: 0.4;
            }
            100% {
                transform: translateY(120px);
                opacity: 0;
            }
        }

        @keyframes shootVerticalReverse {
            0% {
                transform: translateY(120px);
                opacity: 0;
            }
            10% {
                opacity: 0.4;
            }
            90% {
                opacity: 0.4;
            }
            100% {
                transform: translateY(-120px);
                opacity: 0;
            }
        }

        /* 4 Circuits HORIZONTAUX (mix gradients épais + traits fins) */

        /* Circuit 1 : Gradient épais orange - Rapide 8.2s */
        .circuit-line:nth-child(1) {
            position: absolute;
            top: 15%;
            left: 20%;
            width: 200px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #FF7F5C, transparent);
            animation: shootHorizontal 8.2s ease-in infinite;
            animation-delay: 0s;
        }

        /* Circuit 2 : Trait fin lumineux - Ultra lent 13.7s */
        .circuit-line:nth-child(2) {
            position: absolute;
            top: 45%;
            right: 15%;
            width: 150px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 127, 92, 0.6), transparent);
            animation: shootHorizontalReverse 13.7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
            animation-delay: 2.3s;
        }

        /* Circuit 3 : Gradient épais orange - Moyen-rapide 9.8s */
        .circuit-line:nth-child(3) {
            position: absolute;
            top: 72%;
            left: 25%;
            width: 180px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #FF7F5C, transparent);
            animation: shootHorizontal 9.8s ease-out infinite;
            animation-delay: 6.1s;
        }

        /* Circuit 4 : Trait fin lumineux - Moyen-lent 11.4s */
        .circuit-line:nth-child(4) {
            position: absolute;
            top: 88%;
            right: 20%;
            width: 160px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 127, 92, 0.6), transparent);
            animation: shootHorizontalReverse 11.4s ease-in-out infinite;
            animation-delay: 8.9s;
        }

        /* 4 Circuits VERTICAUX (mix gradients épais + traits fins) */

        /* Circuit 5 : Gradient épais orange - Ultra lent 14.3s */
        .circuit-line:nth-child(5) {
            position: absolute;
            top: 20%;
            right: 18%;
            width: 2px;
            height: 140px;
            background: linear-gradient(180deg, transparent, #FF7F5C, transparent);
            animation: shootVertical 14.3s ease-in infinite;
            animation-delay: 1.7s;
        }

        /* Circuit 6 : Trait fin lumineux - Rapide 8.9s */
        .circuit-line:nth-child(6) {
            position: absolute;
            bottom: 25%;
            left: 12%;
            width: 1px;
            height: 120px;
            background: linear-gradient(180deg, transparent, rgba(255, 127, 92, 0.6), transparent);
            animation: shootVerticalReverse 8.9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
            animation-delay: 4.6s;
        }

        /* Circuit 7 : Gradient épais orange - Moyen 10.2s */
        .circuit-line:nth-child(7) {
            position: absolute;
            top: 35%;
            left: 8%;
            width: 2px;
            height: 130px;
            background: linear-gradient(180deg, transparent, #FF7F5C, transparent);
            animation: shootVertical 10.2s ease-out infinite;
            animation-delay: 7.3s;
        }

        /* Circuit 8 : Trait fin lumineux - Lent 12.6s */
        .circuit-line:nth-child(8) {
            position: absolute;
            bottom: 15%;
            right: 10%;
            width: 1px;
            height: 110px;
            background: linear-gradient(180deg, transparent, rgba(255, 127, 92, 0.6), transparent);
            animation: shootVerticalReverse 12.6s ease-in-out infinite;
            animation-delay: 9.5s;
        }

        /* Variantes thèmes */
        body.welcome-mode .circuit-line {
            opacity: 1;
        }

        body.theme-gov .circuit-line {
            opacity: 1;
            filter: brightness(1.35) saturate(1.2);
        }

        /* Animation intro avec logo Y */
        .intro-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
            z-index: 10005;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
        }

        .intro-animation::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(ellipse 50% 120% at 30% 0%,
                    rgba(255, 127, 92, 0.35) 0%,
                    rgba(255, 127, 92, 0.15) 30%,
                    rgba(255, 127, 92, 0.05) 50%,
                    transparent 70%),
                radial-gradient(ellipse 50% 120% at 70% 0%,
                    rgba(245, 245, 247, 0.3) 0%,
                    rgba(245, 245, 247, 0.12) 30%,
                    rgba(245, 245, 247, 0.04) 50%,
                    transparent 70%);
            opacity: 0;
            z-index: -1;
        }

        .intro-animation.active {
            opacity: 1;
            visibility: visible;
            animation: fadeOut 0.8s ease 2.8s forwards;
        }

        .intro-animation.active::before {
            animation: beamsFadeInOut 3s ease forwards;
        }

        @keyframes beamsFadeInOut {
            0% { opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { opacity: 0; }
        }

        .intro-logo {
            font-family: 'Inter', sans-serif;
            font-size: 120px;
            font-weight: 900;
            color: #FF7F5C;
            position: relative;
        }

        .intro-animation.active .intro-logo {
            animation: yToPosition 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes yToPosition {
            0% {
                transform: scale(0) rotate(-180deg);
                opacity: 0;
                filter: blur(0px);
            }
            30% {
                transform: scale(1.2) rotate(0deg);
                opacity: 1;
                filter: blur(0px);
            }
            70% {
                transform: scale(1.2) rotate(0deg);
                opacity: 1;
                filter: blur(0px);
            }
            100% {
                transform: scale(1.2) rotate(0deg);
                opacity: 0;
                filter: blur(20px);
            }
        }
        
        @keyframes letterAppear {
            0% { 
                opacity: 0; 
                transform: translateY(30px) scale(0.8); 
            }
            100% { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }

        @keyframes fadeOut {
            to { opacity: 0; visibility: hidden; }
        }

        /* Logo mobile uniquement - CACHÉ sur web */
        .logo-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 1001;
            transition: all 0.3s ease;
            display: none !important; /* CACHÉ sur web */
            padding: 0;
            width: 80px;
            height: 80px;
        }

        /* Logo VISIBLE partout, y compris sur welcome page */
        body.welcome-mode .logo-btn {
            display: flex !important; /* AFFICHER le logo sur welcome */
        }

        .logo-btn:hover {
            transform: scale(1.1);
        }

        .logo-btn svg {
            width: 100%;
            height: 100%;
        }

        /* Menu Toggle */
        /* Dynamic Island - EXACTE V15 */
        .dynamic-island {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, rgba(255, 127, 92, 0.10) 0%, rgba(20, 20, 20, 0.98) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 8px 20px;
            border: 1px solid rgba(255, 127, 92, 0.25);
            z-index: 998;
            min-width: 140px;
            max-width: 500px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(26, 15, 10, 0.35);
            cursor: pointer;
        }

        .dynamic-island.visible {
            display: flex;
        }

        body.theme-gov .dynamic-island {
            background: linear-gradient(135deg, rgba(255, 127, 92, 0.08) 0%, rgba(245, 245, 247, 0.98) 100%);
        }

        .island-content {
            font-size: 13px;
            font-weight: 600;
            color: #f5f5f7;
            white-space: nowrap;
            text-align: center;
            width: 100%;
        }

        body.theme-gov .island-content {
            color: #2a1810;
        }

        .experts-scroll-island {
            display: flex;
            animation: scroll-island 20s linear infinite;
        }

        .expert-item-island {
            margin-right: 40px;
            font-size: 13px;
            color: #f5f5f7;
            font-weight: 500;
            white-space: nowrap;
        }

        body.theme-gov .expert-item-island {
            color: #2a1810;
        }

        .expert-name-island {
            color: #FF7F5C;
            font-weight: 600;
            margin-right: 6px;
        }

        @keyframes scroll-island {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }


        /* Mini Sidebar Permanente */
        .mini-sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 70px;
            height: 100vh;
            z-index: 999;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0 20px 0;
            gap: 10px;
            background: #000000;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-right: 1px solid rgba(255, 127, 92, 0.15);
        }

        body.theme-gov .mini-sidebar {
            background: #000000;
            border-right-color: rgba(255, 127, 92, 0.15);
        }

        .mini-sidebar.visible {
            display: flex;
        }

        /* Logo intégré en haut de la sidebar - VRAIMENT AGRANDI */
        .mini-sidebar-logo {
            width: 70px;
            height: 110px; /* BEAUCOUP plus grand */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
            padding: 5px;
        }

        .mini-sidebar-logo:hover {
            transform: scale(1.1);
        }

        .mini-sidebar-logo img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important; /* FORCE à remplir tout l'espace, coupe si besoin */
            min-height: 100px;
        }

        .mini-sidebar-item {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            background: #000000;
            border: 1px solid rgba(255, 127, 92, 0.1);
        }

        .mini-sidebar-item:hover {
            background: rgba(255, 127, 92, 0.15);
            border-color: rgba(255, 127, 92, 0.3);
            transform: translateX(5px);
        }

        body.theme-gov .mini-sidebar-item {
            background: #000000;
            border-color: rgba(255, 127, 92, 0.1);
        }

        body.theme-gov .mini-sidebar-item:hover {
            background: rgba(255, 127, 92, 0.1);
        }

        .mini-sidebar-item svg {
            width: 24px;
            height: 24px;
            stroke: rgba(245, 245, 247, 0.7);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .mini-sidebar-item:hover svg {
            stroke: #FF7F5C;
        }

        /* Tooltip au survol */
        .mini-sidebar-item::after {
            content: attr(data-tooltip);
            position: absolute;
            left: calc(100% + 15px);
            background: rgba(20, 20, 20, 0.98);
            color: #f5f5f7;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            border: 1px solid rgba(255, 127, 92, 0.3);
            box-shadow: 0 4px 15px rgba(26, 15, 10, 0.35);
        }

        body.theme-gov .mini-sidebar-item::after {
            background: rgba(245, 245, 247, 0.98);
            color: #2a1810;
        }

        .mini-sidebar-item:hover::after {
            opacity: 1;
        }

        /* Séparateur dans mini sidebar */
        .mini-sidebar-separator {
            width: 30px;
            height: 1px;
            background: rgba(255, 127, 92, 0.2);
            margin: 10px 0;
        }

        /* Bouton switcher IT/GOUV circulaire en haut de sidebar - Style premium */
        .sidebar-switcher {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: transparent;
            border: 3px solid rgba(245, 245, 247, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: visible;
        }

        /* Style différent selon le thème */
        body.theme-it .sidebar-switcher {
            border-color: rgba(245, 245, 247, 0.35);
            background: rgba(245, 245, 247, 0.05);
        }

        body.theme-gov .sidebar-switcher {
            border-color: rgba(139, 111, 71, 0.4);
            background: rgba(166, 124, 82, 0.08);
        }

        .sidebar-switcher::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(245, 245, 247, 0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            border-radius: 50%;
        }

        body.theme-gov .sidebar-switcher::before {
            background: radial-gradient(circle, rgba(166, 124, 82, 0.3) 0%, transparent 70%);
        }

        .sidebar-switcher:hover::before {
            opacity: 1;
            animation: pulse-glow-premium 1.5s ease-in-out infinite;
        }

        @keyframes pulse-glow-premium {
            0%, 100% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.15); opacity: 0.6; }
        }

        .sidebar-switcher:hover {
            transform: scale(1.08);
            border-width: 3px;
        }

        body.theme-it .sidebar-switcher:hover {
            box-shadow: 0 0 20px rgba(245, 245, 247, 0.3);
            border-color: rgba(245, 245, 247, 0.6);
            background: rgba(245, 245, 247, 0.1);
        }

        body.theme-gov .sidebar-switcher:hover {
            box-shadow: 0 0 20px rgba(166, 124, 82, 0.4);
            border-color: rgba(166, 124, 82, 0.6);
            background: rgba(166, 124, 82, 0.15);
        }

        .sidebar-switcher-text {
            font-size: 0.85rem;
            font-weight: 700;
            color: #f5f5f7;
            text-align: center;
            line-height: 1.2;
            z-index: 1;
            letter-spacing: 0.5px;
        }

        /* Sur thème IT: afficher "Gouv" en ivoire */
        body.theme-it .sidebar-switcher-text {
            color: #f5f5f7;
        }

        /* Sur thème GOV: afficher "IT" en terracotta premium */
        body.theme-gov .sidebar-switcher-text {
            color: #FF7F5C; /* Match landing IT */
        }

        /* Cacher l'icône (plus d'emoji) */
        .sidebar-switcher-icon {
            display: none;
        }

        /* Cacher le bouton switcher sur welcome screen */
        body.welcome-mode .sidebar-switcher {
            display: none !important;
        }

        /* Cacher les landing pages en mode Welcome */
        body.welcome-mode .main-container {
            display: none !important;
        }

        body.welcome-mode .mini-sidebar {
            display: none !important;
        }

        /* Cacher Dynamic Island sur welcome page */
        body.welcome-mode .dynamic-island {
            display: none !important;
        }

        /* Logo à gauche sur welcome page (web) */
        body.welcome-mode .logo-btn {
            left: 40px !important;
            right: auto !important;
        }

        /* ==================== SYSTÈME DE RECHERCHE (Desktop uniquement) ==================== */

        /* Icône Recherche - Fixed top-right */
        .search-icon-btn {
            position: fixed;
            top: 20px;
            right: 40px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(26, 15, 10, 0.85);
            border: 2px solid rgba(255, 127, 92, 0.4);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 999;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .search-icon-btn svg {
            width: 22px;
            height: 22px;
            color: #FF7F5C;
            transition: all 0.3s ease;
        }

        .search-icon-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 127, 92, 0.25);
            border-color: rgba(255, 127, 92, 0.6);
        }

        .search-icon-btn:hover svg {
            transform: scale(1.1);
        }

        /* Theme Gov - Icône */
        body.theme-gov .search-icon-btn {
            background: rgba(203, 199, 190, 0.85);
            border-color: rgba(255, 127, 92, 0.4);
        }

        body.theme-gov .search-icon-btn:hover {
            box-shadow: 0 8px 24px rgba(255, 127, 92, 0.2);
        }

        body.theme-gov .search-icon-btn svg {
            color: #2a1810;
        }

        body.theme-gov .search-icon-btn:hover svg {
            color: #1a0f0a;
        }

        /* Cacher icône sur welcome screen */
        body.welcome-mode .search-icon-btn {
            display: none !important;
        }

        /* Overlay de la sidebar */
        .search-sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .search-sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Sidebar Container */
        .search-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            width: 450px;
            height: 100vh;
            background: rgba(26, 15, 10, 0.98);
            border-left: 1px solid rgba(255, 127, 92, 0.3);
            box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
            z-index: 10003; /* Au-dessus modal expertise (10001) */
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .search-sidebar.open {
            transform: translateX(0);
        }

        /* Theme Gov - Sidebar */
        body.theme-gov .search-sidebar {
            background: rgba(203, 199, 190, 0.98);
            border-left-color: rgba(255, 127, 92, 0.3);
        }

        /* Header de la sidebar */
        .search-sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 30px;
            border-bottom: 1px solid rgba(255, 127, 92, 0.2);
        }

        .search-sidebar-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #f5f5f7;
            margin: 0;
        }

        body.theme-gov .search-sidebar-title {
            color: #2a1810;
        }

        .search-sidebar-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: transparent;
            border: 2px solid rgba(255, 127, 92, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-sidebar-close svg {
            width: 20px;
            height: 20px;
            color: #f5f5f7;
        }

        body.theme-gov .search-sidebar-close svg {
            color: #2a1810;
        }

        .search-sidebar-close:hover {
            background: rgba(255, 127, 92, 0.2);
            border-color: rgba(255, 127, 92, 0.5);
            transform: rotate(90deg);
        }

        /* Input de recherche */
        .search-sidebar-input-wrapper {
            position: relative;
            padding: 20px 30px;
        }

        .search-sidebar-input-icon {
            position: absolute;
            left: 45px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            color: rgba(255, 127, 92, 0.6);
            pointer-events: none;
        }

        .search-sidebar-input {
            width: 100%;
            padding: 15px 50px 15px 50px;
            border-radius: 50px;
            border: 2px solid rgba(255, 127, 92, 0.3);
            background: rgba(0, 0, 0, 0.3);
            color: #f5f5f7;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        body.theme-gov .search-sidebar-input {
            background: rgba(255, 255, 255, 0.4);
            color: #2a1810;
        }

        .search-sidebar-input::placeholder {
            color: rgba(245, 245, 247, 0.5);
        }

        body.theme-gov .search-sidebar-input::placeholder {
            color: rgba(42, 24, 16, 0.5);
        }

        .search-sidebar-input:focus {
            border-color: rgba(255, 127, 92, 0.6);
            box-shadow: 0 0 15px rgba(255, 127, 92, 0.2);
        }

        .search-sidebar-clear {
            position: absolute;
            right: 45px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-sidebar-clear svg {
            width: 16px;
            height: 16px;
            color: rgba(255, 127, 92, 0.6);
        }

        .search-sidebar-clear:hover {
            background: rgba(255, 127, 92, 0.2);
        }

        .search-sidebar-clear:hover svg {
            color: #FF7F5C;
        }

        /* Container des résultats */
        .search-sidebar-results {
            flex: 1;
            overflow-y: auto;
            padding: 10px 30px 30px 30px;
        }

        .search-sidebar-results::-webkit-scrollbar {
            width: 6px;
        }

        .search-sidebar-results::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
        }

        .search-sidebar-results::-webkit-scrollbar-thumb {
            background: rgba(255, 127, 92, 0.3);
            border-radius: 3px;
        }

        .search-sidebar-results::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 127, 92, 0.5);
        }

        /* Suggestions initiales */
        .search-suggestions-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 127, 92, 0.8);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        body.theme-gov .search-suggestions-label {
            color: rgba(255, 127, 92, 0.9);
        }

        .search-suggestion-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 127, 92, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        body.theme-gov .search-suggestion-item {
            background: rgba(255, 255, 255, 0.3);
        }

        .search-suggestion-item svg {
            width: 20px;
            height: 20px;
            color: #FF7F5C;
            flex-shrink: 0;
        }

        .search-suggestion-item span {
            color: #f5f5f7;
            font-size: 0.95rem;
        }

        body.theme-gov .search-suggestion-item span {
            color: #2a1810;
        }

        .search-suggestion-item:hover {
            background: rgba(255, 127, 92, 0.15);
            border-color: rgba(255, 127, 92, 0.4);
            transform: translateX(-3px);
        }

        /* Liste des résultats */
        .search-result-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 18px;
            margin-bottom: 12px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 127, 92, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        body.theme-gov .search-result-item {
            background: rgba(255, 255, 255, 0.3);
        }

        .search-result-item:hover {
            background: rgba(255, 127, 92, 0.15);
            border-color: rgba(255, 127, 92, 0.4);
            transform: translateX(-3px);
        }

        .search-result-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #FF7F5C;
            margin: 0;
        }

        .search-result-type {
            display: inline-block;
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 20px;
            background: rgba(255, 127, 92, 0.2);
            color: #FF7F5C;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .search-result-content {
            font-size: 0.9rem;
            color: rgba(245, 245, 247, 0.7);
            line-height: 1.5;
        }

        body.theme-gov .search-result-content {
            color: rgba(42, 24, 16, 0.7);
        }

        .search-result-highlight {
            background: rgba(255, 127, 92, 0.3);
            color: #FF7F5C;
            font-weight: 600;
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Aucun résultat */
        .search-no-results {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }

        .search-no-results svg {
            width: 60px;
            height: 60px;
            color: rgba(255, 127, 92, 0.3);
            margin-bottom: 20px;
        }

        .search-no-results-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #f5f5f7;
            margin-bottom: 10px;
        }

        body.theme-gov .search-no-results-title {
            color: #2a1810;
        }

        .search-no-results-hint {
            font-size: 0.95rem;
            color: rgba(245, 245, 247, 0.6);
            max-width: 300px;
        }

        body.theme-gov .search-no-results-hint {
            color: rgba(42, 24, 16, 0.6);
        }

        /* Highlight temporaire des mots recherchés */
        mark.search-highlight-temp {
            background: rgba(255, 127, 92, 0.35);
            color: inherit;
            font-weight: 600;
            padding: 2px 4px;
            border-radius: 3px;
            animation: highlightFadeIn 0.3s ease-out;
        }

        @keyframes highlightFadeIn {
            from {
                background: rgba(255, 127, 92, 0.7);
            }
            to {
                background: rgba(255, 127, 92, 0.35);
            }
        }

        body.theme-gov mark.search-highlight-temp {
            background: rgba(255, 127, 92, 0.25);
        }

        /* ==================== HAMBURGER MENU MOBILE (DÉSACTIVÉ - Remplacé par sidebar permanente) ==================== */
        .hamburger-button {
            position: fixed;
            top: 20px;
            left: 20px;
            width: 50px;
            height: 50px;
            z-index: 1001;
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid rgba(255, 127, 92, 0.3);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .hamburger-button:hover {
            background: rgba(255, 127, 92, 0.15);
            border-color: rgba(255, 127, 92, 0.5);
        }

        .hamburger-button span {
            width: 24px;
            height: 2px;
            background: rgba(245, 245, 247, 0.8);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .hamburger-button.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .hamburger-button.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-button.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        body.theme-gov .hamburger-button {
            background: rgba(245, 245, 247, 0.9);
            border-color: rgba(212, 207, 197, 0.5);
        }

        body.theme-gov .hamburger-button span {
            background: rgba(26, 26, 26, 0.8);
        }

        /* MENU FULL-SCREEN */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(20, 20, 20, 0.98);
            z-index: 10003; /* Au-dessus modal expertise (10001) et close button (10002) */
            display: none;
            overflow-y: auto;
            transition: opacity 0.3s ease;
            opacity: 0;
        }

        .mobile-menu-overlay.open {
            display: flex;
            opacity: 1;
        }

        body.theme-gov .mobile-menu-overlay {
            background: rgba(245, 245, 247, 0.98);
        }

        .fullscreen-menu-content {
            width: 100%;
            max-width: 600px;
            margin: auto;
            padding: 100px 30px 50px;
            text-align: center;
        }

        /* Titres de sections dans menu */
        .menu-section-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: rgba(245, 245, 247, 0.95);
            margin: 30px 0 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-align: center;
        }

        body.theme-gov .menu-section-title {
            color: rgba(26, 26, 26, 0.9);
        }

        /* Items de menu */
        .menu-item {
            padding: 14px 20px;
            margin: 8px 0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }

        .menu-item:hover {
            background: rgba(255, 127, 92, 0.2);
            transform: scale(1.02);
        }

        body.theme-gov .menu-item {
            background: rgba(26, 26, 26, 0.05);
        }

        body.theme-gov .menu-item:hover {
            background: rgba(160, 82, 45, 0.15); /* Terracota premium */
        }

        .menu-item-title {
            font-size: 1rem;
            font-weight: 600;
            color: rgba(245, 245, 247, 0.9);
            text-align: center;
        }

        body.theme-gov .menu-item-title {
            color: rgba(26, 26, 26, 0.9);
        }

        .menu-item-desc {
            font-size: 0.8rem;
            color: rgba(245, 245, 247, 0.6);
            margin-top: 4px;
            text-align: center;
        }

        body.theme-gov .menu-item-desc {
            color: rgba(26, 26, 26, 0.6);
        }

        /* Actions directes (Contact, Switcher) */
        .menu-action {
            padding: 16px;
            margin: 15px 0;
            border-radius: 12px;
            background: rgba(255, 127, 92, 0.15);
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 1.05rem;
            font-weight: 700;
            color: #FF7F5C;
            border: 2px solid rgba(255, 127, 92, 0.3);
        }

        .menu-action:hover {
            background: rgba(255, 127, 92, 0.25);
            border-color: #FF7F5C;
            transform: scale(1.05);
        }

        body.theme-gov .menu-action {
            background: rgba(160, 82, 45, 0.15);
            border-color: rgba(160, 82, 45, 0.3);
            color: #FF7F5C;
        }

        body.theme-gov .menu-action:hover {
            background: rgba(160, 82, 45, 0.25);
            border-color: #FF7F5C;
        }

        /* Action primaire (Switcher en haut) - Style prominent */
        .menu-action-primary {
            padding: 18px 20px;
            margin: 0 0 20px 0;
            background: rgba(255, 127, 92, 0.25);
            border: 2px solid rgba(255, 127, 92, 0.5);
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            box-shadow: 0 4px 12px rgba(255, 127, 92, 0.2);
        }

        .menu-action-primary:hover {
            background: rgba(255, 127, 92, 0.35);
            border-color: #FF7F5C;
            transform: scale(1.08);
            box-shadow: 0 6px 20px rgba(255, 127, 92, 0.3);
        }

        body.theme-gov .menu-action-primary {
            background: rgba(160, 82, 45, 0.25);
            border-color: rgba(160, 82, 45, 0.5);
            color: #FF7F5C;
            box-shadow: 0 4px 12px rgba(160, 82, 45, 0.2);
        }

        body.theme-gov .menu-action-primary:hover {
            background: rgba(160, 82, 45, 0.35);
            border-color: #FF7F5C;
            box-shadow: 0 6px 20px rgba(160, 82, 45, 0.3);
        }

        .menu-separator {
            height: 2px;
            background: rgba(255, 127, 92, 0.2);
            margin: 25px auto;
            max-width: 200px;
        }

        body.theme-gov .menu-separator {
            background: rgba(160, 82, 45, 0.2);
        }

        /* Sidebar étendue (l'ancienne) */
        .sidebar {
            position: fixed;
            top: 0;
            left: -350px;
            width: 350px;
            height: 100vh;
            background: linear-gradient(135deg, rgba(8, 8, 8, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
            border-right: 1px solid rgba(255, 127, 92, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10003; /* Au-dessus modal expertise (10001) */
            overflow-y: auto;
            box-shadow: 4px 0 20px rgba(26, 15, 10, 0.45);
        }

        .sidebar.open {
            left: 70px;
        }

        /* Overlay quand sidebar ouverte - SANS BLUR pour stage manager */
        .sidebar-backdrop {
            position: fixed;
            top: 0;
            left: 70px; /* Commence après la mini-sidebar */
            width: calc(100% - 70px); /* N'affecte pas la mini-sidebar */
            height: 100%;
            background: rgba(26, 15, 10, 0.65); /* Opacité augmentée pour compenser */
            backdrop-filter: none; /* Pas de blur - stage manager reste net */
            -webkit-backdrop-filter: none;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .sidebar-backdrop.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar-content {
            padding: 80px 30px 40px;
        }

        .sidebar-brand {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 30px;
            border-bottom: 1px solid rgba(245, 245, 247, 0.1);
        }

        .sidebar-brand h2 {
            font-size: 2.2rem;
            font-weight: 900;
            color: #f5f5f7;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .sidebar-brand p {
            font-size: 0.85rem;
            color: rgba(245, 245, 247, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .sidebar-section {
            margin-bottom: 40px;
        }

        .sidebar-section h3 {
            font-size: 0.75rem;
            font-weight: 700;
            color: #FF7F5C;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 18px;
            padding-left: 15px;
            border-left: 2px solid #FF7F5C;
        }

        .expertise-tags {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .expertise-tag, .sidebar-item {
            padding: 12px 15px;
            font-size: 0.9rem;
            color: rgba(245, 245, 247, 0.8);
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s ease;
            border-left: 2px solid transparent;
        }

        .expertise-tag:hover, .sidebar-item:hover {
            background: rgba(255, 127, 92, 0.08);
            border-left-color: #FF7F5C;
            color: #f5f5f7;
        }

        /* Expertise Track Selector (Welcome page) */
        .expertise-track-selector {
            margin-bottom: 15px;
        }

        .expertise-track-button {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            background: rgba(255, 127, 92, 0.05);
            border: 1px solid rgba(255, 127, 92, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .expertise-track-button:hover {
            background: rgba(255, 127, 92, 0.12);
            border-color: rgba(255, 127, 92, 0.4);
        }

        .expertise-track-button span {
            font-size: 1rem;
            font-weight: 600;
            color: rgba(245, 245, 247, 0.9);
        }

        body.theme-gov .expertise-track-button span {
            color: rgba(26, 26, 26, 0.9);
        }

        .track-arrow {
            stroke: rgba(245, 245, 247, 0.7);
            transition: transform 0.3s ease;
        }

        body.theme-gov .track-arrow {
            stroke: rgba(26, 26, 26, 0.7);
        }

        .expertise-track-dropdown {
            margin-top: 10px;
            padding-left: 12px;
            border-left: 2px solid rgba(255, 127, 92, 0.3);
        }

        .sidebar-close {
            position: absolute;
            top: 30px;
            right: 30px;
            background: none;
            border: none;
            color: #f5f5f7;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            line-height: 1;
        }

        .sidebar-close:hover {
            color: #FF7F5C;
            transform: rotate(90deg);
        }


        /* Page d'accueil */
        .welcome-screen {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px 80px;
            opacity: 0;
            animation: fadeIn 1s ease 3s forwards;
            position: relative;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        .welcome-content {
            max-width: 1200px;
            width: 100%;
            text-align: center;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
        }

        .welcome-title {
            font-size: 140px;
            font-weight: 900;
            color: #f5f5f7;
            letter-spacing: -2px;
            margin: 0;
        }

        .welcome-question {
            font-size: 20px;
            color: rgba(245, 245, 247, 0.85);
            margin: 0;
            font-weight: 400;
        }

        .welcome-choices {
            display: flex;
            flex-direction: row;
            gap: 20px;
            width: 100%;
            max-width: 1100px;
            justify-content: center;
        }

        .choice-button {
            flex: 1;
            max-width: 540px;
            padding: 40px 30px;
            background: transparent;
            border: 1px solid rgba(245, 245, 247, 0.2);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .choice-button:hover {
            transform: translateY(-4px);
        }

        /* Hover IT - Terracota glow */
        .choice-it:hover {
            border-color: rgba(255, 127, 92, 0.8);
            box-shadow:
                0 0 30px rgba(255, 127, 92, 0.4),
                0 0 60px rgba(255, 127, 92, 0.2),
                inset 0 0 20px rgba(255, 127, 92, 0.1);
            background: rgba(255, 127, 92, 0.05);
        }

        .choice-it:hover .choice-title {
            color: #FF7F5C;
        }

        .choice-it:hover .choice-desc {
            color: rgba(255, 127, 92, 0.9);
        }

        /* Hover Gov - Ivoire glow */
        .choice-gov:hover {
            border-color: rgba(245, 245, 247, 0.8);
            box-shadow:
                0 0 30px rgba(245, 245, 247, 0.3),
                0 0 60px rgba(245, 245, 247, 0.15),
                inset 0 0 20px rgba(245, 245, 247, 0.1);
            background: rgba(245, 245, 247, 0.05);
        }

        .choice-gov:hover .choice-title {
            color: #FFFFFF;
        }

        .choice-gov:hover .choice-desc {
            color: rgba(245, 245, 247, 0.95);
        }

        .choice-title {
            font-size: 36px;
            font-weight: 700;
            color: #f5f5f7;
            margin-bottom: 12px;
            transition: color 0.3s ease;
        }

        .choice-desc {
            font-size: 16px;
            color: rgba(245, 245, 247, 0.7);
            line-height: 1.5;
            transition: color 0.3s ease;
        }

        .welcome-baseline {
            font-size: 18px;
            color: rgba(245, 245, 247, 0.7);
            line-height: 1.6;
            margin: 20px 0 0 0;
        }

        /* Landing pages - EXACTE V15 */
        .main-container {
            display: none;
            flex-direction: column;
            position: relative;
        }

        .main-container.active {
            display: flex;
        }

        /* Hero section - Contenu positionné dans le 2ème quart (25-50% hauteur) */
        .landing-hero {
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 40px;
            position: relative;
        }

        .brand-title {
            font-size: clamp(2.2rem, 10vw, 7rem);
            font-weight: 900;
            margin-bottom: 30px;
            margin-top: 0;
            letter-spacing: -0.03em;
            text-shadow: 0 4px 20px rgba(255, 127, 92, 0.3);
            text-align: center;
            white-space: nowrap;
        }

        body.theme-it .brand-title {
            color: #f5f5f7;
        }

        body.theme-gov .brand-title {
            color: #2a1810;
        }

        .intro-text {
            font-size: clamp(0.95rem, 1.8vw, 1.15rem);
            line-height: 1.8;
            max-width: 850px;
            margin-bottom: 32px;
            text-align: center;
        }

        body.theme-it .intro-text {
            color: rgba(245, 245, 247, 0.85);
        }

        body.theme-gov .intro-text {
            color: rgba(26, 26, 26, 0.8);
        }

        .search-bar {
            max-width: 700px;
            width: 100%;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 20px 60px 20px 30px;
            font-size: 1rem;
            border: 2px solid rgba(255, 127, 92, 0.3);
            border-radius: 50px;
            outline: none;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
        }
        
        .search-submit-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            padding: 0;
            background: linear-gradient(135deg, #FF7F5C 0%, #c43d20 100%);
            color: #f5f5f7;
            border: none;
            border-radius: 50%;
            font-weight: 700;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 4px 15px rgba(255, 127, 92, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .search-submit-btn:hover {
            background: linear-gradient(135deg, #c43d20 0%, #a53118 100%);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 127, 92, 0.5);
        }
        
        .search-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        body.theme-it .search-input {
            background: rgba(245, 245, 247, 0.05);
            color: #f5f5f7;
        }

        body.theme-gov .search-input {
            background: rgba(255, 255, 255, 0.7);
            color: #2a1810;
        }

        .search-input::placeholder {
            opacity: 0.6;
        }

        .search-input:focus {
            border-color: #FF7F5C;
            box-shadow: 0 8px 30px rgba(255, 127, 92, 0.2);
        }

        /* Dropdown des exemples de questions */
        .questions-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            right: 0;
            background: rgba(20, 20, 20, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 127, 92, 0.3);
            border-radius: 20px;
            padding: 20px;
            display: none;
            z-index: 1000;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(26, 15, 10, 0.55);
        }

        body.theme-gov .questions-dropdown {
            background: rgba(245, 245, 247, 0.98);
            border-color: rgba(255, 127, 92, 0.2);
        }

        .questions-dropdown.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-title {
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #FF7F5C;
            margin-bottom: 15px;
        }

        .question-item {
            padding: 12px 15px;
            margin-bottom: 8px;
            background: rgba(245, 245, 247, 0.05);
            border: 1px solid rgba(255, 127, 92, 0.15);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            color: rgba(245, 245, 247, 0.85);
        }

        body.theme-gov .question-item {
            background: rgba(255, 255, 255, 0.5);
            color: rgba(26, 26, 26, 0.85);
        }

        .question-item:hover {
            background: rgba(255, 127, 92, 0.15);
            border-color: rgba(255, 127, 92, 0.4);
            transform: translateX(5px);
        }

        body.theme-gov .question-item:hover {
            background: rgba(245, 245, 247, 0.3);
        }

        .search-subtitle {
            text-align: center;
            margin-top: 18px;
            font-size: 0.9rem;
            opacity: 0.7;
        }

        /* Bouton switch */
        .site-switcher {
            position: fixed;
            bottom: 40px;
            right: 40px;
            padding: 16px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 999;
            border: 2px solid;
            display: none !important;
        }

        .site-switcher.visible {
            display: none !important;
        }

        body.theme-it .site-switcher {
            background: #f5f5f7;
            color: #1a0f0a;
            border-color: #f5f5f7;
        }

        body.theme-it .site-switcher:hover {
            background: transparent;
            color: #f5f5f7;
        }

        body.theme-gov .site-switcher {
            background: #f5f5f7;
            color: #2a1810;
            border-color: #f5f5f7;
        }

        body.theme-gov .site-switcher:hover {
            background: transparent;
            color: #2a1810;
            border-color: #f5f5f7;
        }

        /* Pages de contenu - Suite dans JS pour ne pas dépasser */
        .work-in-progress {
            display: none;
            min-height: 100vh;
            padding: 120px 40px 80px 40px;
        }

        .work-in-progress.active {
            display: flex;
            flex-direction: column;
        }

        .story-container {
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
        }

        .story-hero {
            text-align: center;
            margin-bottom: 60px;
        }

        .story-title {
            font-size: clamp(2.5rem, 5vw, 3.8rem);
            font-weight: 900;
            margin-bottom: 15px;
            letter-spacing: -0.02em;
        }

        body.theme-it .story-title {
            color: #f5f5f7;
        }

        body.theme-gov .story-title {
            color: #2a1810;
        }

        .story-subtitle {
            font-size: clamp(0.85rem, 2vw, 1rem);
            font-weight: 600;
            letter-spacing: 0.1em;
            opacity: 0.7;
            text-transform: uppercase;
        }

        .story-section {
            margin-bottom: 45px;
        }

        .story-card {
            background: rgba(245, 245, 247, 0.03);
            border: 1px solid rgba(255, 127, 92, 0.2);
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 22px;
        }

        body.theme-gov .story-card {
            background: rgba(255, 255, 255, 0.75); /* Augmenté de 0.5 à 0.75 pour meilleur contraste */
            border: 1px solid rgba(203, 199, 190, 0.4); /* Bordure visible */
        }
        
        /* Styles pour les textes des carrés de statistiques */
        .stat-card-label {
            font-size: 0.85rem;
            color: rgba(245, 245, 247, 0.6);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        
        body.theme-gov .stat-card-label {
            color: rgba(26, 26, 26, 0.7);
        }
        
        .stat-card-desc {
            font-size: 0.9rem;
            color: rgba(245, 245, 247, 0.5);
        }
        
        body.theme-gov .stat-card-desc {
            color: rgba(26, 26, 26, 0.6);
        }

        .section-header {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 22px;
            color: #FF7F5C;
        }

        .story-text {
            font-size: 1.05rem;
            line-height: 1.8;
            margin-bottom: 16px;
        }

        body.theme-it .story-text {
            color: rgba(245, 245, 247, 0.9);
        }

        body.theme-gov .story-text {
            color: rgba(26, 26, 26, 0.95); /* Augmenté de 0.85 à 0.95 - Texte plus foncé */
        }

        /* Descriptions des valeurs - Couleur par thème */
        .value-description {
            color: rgba(245, 245, 247, 0.85); /* Blanc par défaut (IT) */
        }

        body.theme-gov .value-description {
            color: rgba(26, 26, 26, 0.85); /* Noir pour Gov */
        }

        .highlight {
            color: #FF7F5C;
            font-weight: 600;
        }
        
        body.theme-gov .highlight {
            color: #2a1810;
            font-weight: 700;
        }

        /* Bulles Veille & Actualités - Textes adaptés par thème */
        .stat-title {
            color: rgba(245, 245, 247, 0.85); /* IT: Blanc */
        }

        body.theme-gov .stat-title {
            color: rgba(26, 26, 26, 0.75); /* Gov: Noir avec 75% opacité */
        }

        .stat-subtitle {
            color: rgba(245, 245, 247, 0.75); /* IT: Blanc */
        }

        body.theme-gov .stat-subtitle {
            color: rgba(26, 26, 26, 0.6); /* Gov: Noir avec 60% opacité */
        }

        /* Cartes réseau sociaux - adaptées au thème GOV */
        .network-card {
            padding: 25px;
            background: rgba(139, 115, 85, 0.12);
            border: 1px solid rgba(139, 115, 85, 0.25);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .network-card:hover {
            background: rgba(139, 115, 85, 0.20);
            border-color: rgba(139, 115, 85, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
        }

        .network-card-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: rgba(245, 245, 247, 0.95); /* Blanc pour thème IT par défaut */
            margin-bottom: 5px;
        }

        .network-card-desc {
            font-size: 1rem;
            line-height: 1.6;
            color: rgba(245, 245, 247, 0.7); /* Blanc pour thème IT par défaut */
        }

        /* Thème Gov: textes sombres */
        body.theme-gov .network-card-title {
            color: #2a1810;
        }

        body.theme-gov .network-card-desc {
            color: rgba(26, 26, 26, 0.7);
        }

        .expertise-cases {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .case-item {
            padding-left: 22px;
            position: relative;
        }

        .case-item::before {
            content: '→';
            position: absolute;
            left: 0;
            color: #FF7F5C;
            font-weight: 700;
            font-size: 1rem;
        }

        .case-text {
            font-size: 1rem;
            line-height: 1.6;
        }

        body.theme-it .case-text {
            color: rgba(245, 245, 247, 0.85);
        }

        body.theme-gov .case-text {
            color: rgba(26, 26, 26, 0.8);
        }

        .intervention-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 20px;
        }

        .intervention-item {
            background: rgba(255, 127, 92, 0.05);
            border: 1px solid rgba(255, 127, 92, 0.15);
            border-radius: 12px;
            padding: 18px;
        }

        .intervention-name {
            font-weight: 700;
            color: #FF7F5C;
            margin-bottom: 6px;
            font-size: 0.95rem;
        }

        .intervention-desc {
            font-size: 0.85rem;
            opacity: 0.8;
        }

        .cta-section {
            margin-top: 60px;
            padding: 40px 32px;
            background: linear-gradient(135deg, rgba(255, 127, 92, 0.08) 0%, rgba(255, 127, 92, 0.03) 100%);
            border: 1px solid rgba(255, 127, 92, 0.2);
            border-radius: 18px;
            text-align: center;
        }

        body.theme-gov .cta-section {
            background: linear-gradient(135deg, rgba(245, 245, 247, 0.6) 0%, rgba(245, 245, 247, 0.3) 100%);
            border: 2px solid rgba(245, 245, 247, 0.8);
            box-shadow: 0 8px 30px rgba(203, 199, 190, 0.4);
        }

        .cta-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 12px;
            overflow-wrap: break-word;
            max-width: 100%;
            hyphens: auto;
            -webkit-hyphens: auto;
            -ms-hyphens: auto;
        }

        body.theme-it .cta-title {
            color: #f5f5f7;
        }

        body.theme-gov .cta-title {
            color: #2a1810;
        }

        .cta-subtitle {
            font-size: 0.95rem;
            margin-bottom: 25px;
            opacity: 0.7;
        }

        .cta-highlight {
            color: #FF7F5C;
            font-weight: 600;
        }
        
        body.theme-gov .cta-highlight {
            color: #2a1810;
            font-weight: 700;
        }
        
        /* Styles pour le CTA final des landing pages */
        .cta-final {
            background: linear-gradient(135deg, rgba(255, 127, 92, 0.15) 0%, rgba(255, 127, 92, 0.05) 100%);
            padding: 60px 40px;
            border-radius: 20px;
            text-align: center;
            margin: 80px 20px 40px 20px;
            border: 2px solid rgba(255, 127, 92, 0.3);
            box-shadow: 0 10px 40px rgba(255, 127, 92, 0.2);
        }
        
        body.theme-gov .cta-final {
            background: linear-gradient(135deg, rgba(245, 245, 247, 0.6) 0%, rgba(245, 245, 247, 0.3) 100%);
            border: 2px solid rgba(245, 245, 247, 0.8);
            box-shadow: 0 10px 40px rgba(203, 199, 190, 0.4);
        }
        
        .cta-final h3 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            font-weight: 900;
        }
        
        body.theme-it .cta-final h3 {
            color: #f5f5f7;
        }
        
        body.theme-gov .cta-final h3 {
            color: #2a1810;
        }
        
        .cta-final p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.8;
        }
        
        body.theme-it .cta-final p {
            color: rgba(245, 245, 247, 0.7);
        }
        
        body.theme-gov .cta-final p {
            color: rgba(26, 26, 26, 0.7);
        }

        .cta-button {
            background: #FF7F5C;
            color: #f5f5f7;
            border: none;
            padding: 15px 35px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            text-decoration: none; /* Pour les liens <a> */
        }

        body.theme-gov .cta-button {
            background: #f5f5f7;
            color: #2a1810;
            box-shadow: 0 4px 15px rgba(245, 245, 247, 0.5);
        }

        .cta-button:hover {
            background: transparent;
            color: #FF7F5C;
            border: 2px solid #FF7F5C;
            transform: translateY(-3px);
        }

        body.theme-gov .cta-button:hover {
            background: transparent;
            color: #2a1810;
            border: 2px solid #f5f5f7;
            box-shadow: 0 6px 25px rgba(245, 245, 247, 0.6);
        }

        .hidden {
            display: none !important;
        }

        /* INDICATEUR DE SCROLL */
        .scroll-indicator {
            position: fixed;
            bottom: 50%;
            right: 40px;
            transform: translateY(50%);
            z-index: 997;
            display: none;
            opacity: 0;
            animation: fadeInScroll 1s ease 2s forwards;
        }

        .scroll-indicator.visible {
            display: block;
        }

        @keyframes fadeInScroll {
            to {
                opacity: 1;
            }
        }

        .scroll-indicator-icon {
            width: 30px;
            height: 50px;
            border: 2px solid rgba(255, 127, 92, 0.5);
            border-radius: 20px;
            position: relative;
            animation: bounce 2s infinite;
        }

        body.theme-gov .scroll-indicator-icon {
            border-color: rgba(42, 24, 16, 0.5);
        }

        .scroll-indicator-icon::before {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 8px;
            background: #FF7F5C;
            border-radius: 2px;
            animation: scrollDot 2s infinite;
        }

        body.theme-gov .scroll-indicator-icon::before {
            background: #2a1810;
        }

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(10px);
            }
        }

        @keyframes scrollDot {
            0% {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateX(-50%) translateY(20px);
            }
        }

        /* Cacher l'indicateur quand on scroll */
        .scroll-indicator.hidden-on-scroll {
            opacity: 0;
            pointer-events: none;
        }

        /* Sections scrollables sur landing pages */
        .landing-sections {
            width: 100%;
            max-width: 1200px;
            padding: 80px 40px;
            margin: 0 auto;
        }

        .landing-section {
            margin-bottom: 100px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .landing-section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .landing-section-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            color: #FF7F5C;
            text-align: center;
        }

        .landing-section-subtitle {
            font-size: 1.1rem;
            margin-bottom: 50px;
            text-align: center;
            opacity: 0.8;
        }

        body.theme-it .landing-section-subtitle {
            color: rgba(245, 245, 247, 0.8);
        }

        body.theme-gov .landing-section-subtitle {
            color: rgba(26, 26, 26, 0.75);
        }

        .landing-section-content {
            background: rgba(245, 245, 247, 0.03);
            border: 1px solid rgba(255, 127, 92, 0.15);
            border-radius: 20px;
            padding: 40px;
            line-height: 1.8;
            font-size: 1.05rem;
        }

        body.theme-gov .landing-section-content {
            background: rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 127, 92, 0.2);
        }

        body.theme-it .landing-section-content {
            color: rgba(245, 245, 247, 0.85);
        }

        body.theme-gov .landing-section-content {
            color: rgba(26, 26, 26, 0.85);
        }

        .landing-section-content h3 {
            color: #FF7F5C;
            font-size: 1.3rem;
            font-weight: 700;
            margin: 30px 0 15px 0;
        }

        .landing-section-content h3:first-child {
            margin-top: 0;
        }

        .landing-section-content p {
            margin-bottom: 20px;
        }

        .landing-section-content ul {
            list-style: none;
            padding-left: 0;
        }

        .landing-section-content li {
            padding-left: 25px;
            position: relative;
            margin-bottom: 12px;
        }

        .landing-section-content li::before {
            content: '✈️';
            position: absolute;
            left: 0;
            font-weight: 700;
        }


        /* BOUTONS SOCIAUX */
        .social-buttons {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 998;
            padding: 10px 20px;
            transition: bottom 0.3s ease;
        }

        .social-button {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            text-decoration: none;
            background: rgba(255, 127, 92, 0.15); /* Orange terracota pour thème IT */
            border: 1px solid rgba(255, 127, 92, 0.3);
        }

        .social-button:hover {
            transform: translateY(-3px);
            background: rgba(255, 127, 92, 0.25);
            box-shadow: 0 5px 15px rgba(255, 127, 92, 0.4);
        }

        .social-button svg {
            width: 20px;
            height: 20px;
            fill: rgba(255, 255, 255, 0.95); /* Blanc pour thème IT */
        }

        .social-button:hover svg {
            fill: rgba(255, 255, 255, 1);
        }

        body.theme-gov .social-button {
            background: rgba(42, 24, 16, 0.1);
            border: 1px solid rgba(42, 24, 16, 0.2);
        }

        body.theme-gov .social-button:hover {
            background: rgba(42, 24, 16, 0.15);
            box-shadow: 0 5px 15px rgba(42, 24, 16, 0.2);
        }

        body.theme-gov .social-button svg {
            fill: rgba(80, 80, 80, 0.7);
        }

        body.theme-gov .social-button:hover svg {
            fill: rgba(50, 50, 50, 0.9);
        }


        /* MODAL EXPERTISE */
        .expertise-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 70px;
            width: calc(100% - 70px);
            height: 100%;
            background: #1a0f0a;
            z-index: 10001;
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }
        
        /* Ajouter les backgrounds de la landing page dans la modal */
        .expertise-modal::before {
            content: '';
            position: fixed;
            top: 0;
            left: 70px;
            width: calc(100% - 70px);
            height: 100%;
            background:
                radial-gradient(circle at 20% 20%, rgba(255, 127, 92, 0.20) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 127, 92, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(245, 245, 247, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 60% 30%, rgba(255, 127, 92, 0.15) 0%, transparent 50%);
            z-index: -2;
        }

        .expertise-modal::after {
            content: '';
            position: fixed;
            top: 0;
            left: 70px;
            width: calc(100% - 70px);
            height: 100%;
            background-image:
                linear-gradient(90deg, rgba(245, 245, 247, 0.02) 1px, transparent 1px),
                linear-gradient(rgba(245, 245, 247, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
            animation: grid-move 20s linear infinite;
        }
        
        /* Circuits dans la modal */
        .expertise-modal .circuit-lines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }
        
        body.theme-gov .expertise-modal {
            background: #cbc7be;
        }
        
        body.theme-gov .expertise-modal::before {
            background: transparent;
        }
        
        body.theme-gov .expertise-modal::after {
            background-image: 
                linear-gradient(90deg, rgba(100, 80, 70, 0.05) 1px, transparent 1px),
                linear-gradient(rgba(100, 80, 70, 0.05) 1px, transparent 1px);
        }

        .expertise-modal.active {
            display: block;
        }

        .expertise-modal-content {
            position: relative;
            max-width: 1200px;
            margin: 80px auto 40px;
            padding: 60px 40px;
            background: rgba(26, 15, 10, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255, 127, 92, 0.3);
            box-shadow: 0 20px 60px rgba(26, 15, 10, 0.55);
            z-index: 1;
            overflow-y: auto;
            max-height: calc(100vh - 120px);
        }

        body.theme-gov .expertise-modal-content {
            background: rgba(203, 199, 190, 0.85);
            backdrop-filter: blur(20px);
            border-color: rgba(100, 80, 70, 0.3);
        }

        .expertise-modal-close {
            position: fixed;
            top: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: rgba(255, 127, 92, 0.2);
            border: 2px solid rgba(255, 127, 92, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10002;
        }

        .expertise-modal-close:hover {
            background: rgba(255, 127, 92, 0.4);
            border-color: #FF7F5C;
            transform: rotate(90deg) scale(1.1);
        }

        .expertise-modal-close::before,
        .expertise-modal-close::after {
            content: '';
            position: absolute;
            width: 24px;
            height: 2px;
            background: #FF7F5C;
        }

        .expertise-modal-close::before {
            transform: rotate(45deg);
        }

        .expertise-modal-close::after {
            transform: rotate(-45deg);
        }

        body.theme-gov .expertise-modal-close {
            background: rgba(245, 245, 247, 0.3);
            border-color: rgba(245, 245, 247, 0.6);
        }

        body.theme-gov .expertise-modal-close:hover {
            background: rgba(245, 245, 247, 0.5);
            border-color: #f5f5f7;
        }

        body.theme-gov .expertise-modal-close::before,
        body.theme-gov .expertise-modal-close::after {
            background: #2a1810;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }


        /* ==================== CHAT MODAL ==================== */
        /* ============ CHAT MODAL - DESIGN STEVE JOBS ============ */
        
        .chat-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeInBackdrop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes fadeInBackdrop {
            from { 
                opacity: 0;
                backdrop-filter: blur(0px);
            }
            to { 
                opacity: 1;
                backdrop-filter: blur(30px);
            }
        }

        .chat-modal.active {
            display: flex;
        }

        /* Container principal - Style moderne épuré */
        .chat-container {
            width: 100%;
            max-width: 600px;
            height: 85vh;
            max-height: 750px;
            background: #ffffff;
            border-radius: 20px;
            box-shadow:
                0 0 0 1px rgba(0, 0, 0, 0.04),
                0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            animation: slideInChat 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        body.theme-gov .chat-container {
            background: #ffffff;
        }

        @keyframes slideInChat {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(30px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Header style moderne épuré */
        .chat-header {
            padding: 24px 24px 20px;
            min-height: 80px;
            background: #ffffff;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        body.theme-gov .chat-header {
            background: #ffffff;
        }

        .chat-header-content h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1d1d1f;
            margin-bottom: 4px;
            letter-spacing: -0.02em;
        }

        .chat-header-content p {
            font-size: 0.85rem;
            color: #86868b;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        /* Bouton fermer iOS style */
        .chat-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #f2f2f7;
            border: none;
            color: #1d1d1f;
            font-size: 1.3rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-weight: 400;
            line-height: 1;
        }

        .chat-close:hover {
            background: #e5e5ea;
            transform: scale(1.06);
        }

        .chat-close:active {
            transform: scale(0.94);
        }

        /* Bouton fermeture chat Gov - Contraste renforcé */
        body.theme-gov .chat-close {
            background: rgba(255, 127, 92, 0.12); /* Orange très clair */
            color: #2a1810;                       /* Marron foncé */
            border: 1px solid rgba(255, 127, 92, 0.25); /* Bordure orange subtile */
        }

        body.theme-gov .chat-close:hover {
            background: rgba(255, 127, 92, 0.2);
            border-color: rgba(255, 127, 92, 0.4);
        }

        /* Zone de messages style iMessage */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 24px 20px;
            background: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
            z-index: 5;
        }

        body.theme-gov .chat-messages {
            background: #f8f9fa;
        }

        /* Scrollbar ultra-fine style Apple */
        .chat-messages::-webkit-scrollbar {
            width: 5px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.12);
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        /* Messages style iMessage */
        .chat-message {
            display: flex;
            gap: 8px;
            animation: messageSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            max-width: 75%;
        }

        .chat-message.user-message {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Avatar minimaliste */
        .message-avatar {
            display: none !important;
        }

        /* Bulles iMessage */
        .message-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .message-text {
            padding: 12px 16px;
            border-radius: 20px;
            font-size: 0.95rem;
            line-height: 1.5;
            word-wrap: break-word;
        }

        /* Bulle agent - gris clair avec texte noir */
        .chat-message.agent-message .message-text {
            background: linear-gradient(135deg, #f5f5f7 0%, #e9e9eb 100%);
            color: #1d1d1f;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        /* Bulle user - blanc épuré avec bordure subtile */
        .chat-message.user-message .message-text {
            background: #ffffff;
            color: #1d1d1f;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow:
                0 1px 2px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.04);
        }

        body.theme-gov .chat-message.user-message .message-text {
            background: #ffffff;
            color: #1d1d1f;
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        .message-time {
            font-size: 0.7rem;
            color: #86868b;
            padding: 0 6px;
            font-weight: 400;
        }

        /* Typing indicator iOS style */
        .typing-indicator {
            display: flex;
            gap: 4px;
            padding: 14px 18px;
            background: linear-gradient(135deg, #f5f5f7 0%, #e9e9eb 100%);
            border-radius: 20px;
            width: fit-content;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #FF7F5C;
            animation: typingBounce 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingBounce {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.5;
            }
            30% {
                transform: translateY(-8px);
                opacity: 1;
            }
        }

        /* Input area style moderne */
        .chat-input-area {
            padding: 16px 20px 20px;
            background: #ffffff;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            position: relative;
            z-index: 10;
        }

        body.theme-gov .chat-input-area {
            background: #ffffff;
        }

        .chat-input-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        /* Input moderne épuré */
        .chat-input {
            flex: 1;
            padding: 12px 16px;
            background: #f8f9fa;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 22px;
            color: #1d1d1f;
            font-size: 0.95rem;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            outline: none;
            transition: all 0.2s ease;
        }

        .chat-input::placeholder {
            color: #86868b;
        }

        .chat-input:focus {
            background: #ffffff;
            border-color: #FF7F5C;
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
        }

        body.theme-gov .chat-input:focus {
            border-color: #FF7F5C;
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
        }

        /* Bouton envoyer iOS bleu moderne */
        .chat-send-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF7F5C 0%, #d44728 100%);
            border: none;
            color: #ffffff;
            font-size: 1.3rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
            transform: rotate(-45deg);
        }

        .chat-send-btn:hover:not(:disabled) {
            transform: scale(1.08);
            box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
        }

        .chat-send-btn:active:not(:disabled) {
            transform: scale(0.95);
        }

        .chat-send-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        body.theme-gov .chat-send-btn {
            background: linear-gradient(135deg, #FF7F5C 0%, #d44728 100%);
            box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
        }

        body.theme-gov .chat-send-btn:hover:not(:disabled) {
            box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
        }

        /* ============ CORRECTIONS FINALES ============ */
        /* Forcer les bons styles pour éviter les conflits */
        
        /* Avatar message - taille suffisante pour éviter le débordement */
        /* Avatar désactivé - voir ligne 2431 */
        
        /* Bouton d'envoi - centrage parfait de la flèche */
        .chat-send-btn {
            width: 48px !important;
            height: 48px !important;
            border-radius: 50% !important;
            font-size: 1.4rem !important;
            line-height: 1 !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        /* ========================================
           IMAGES STYLÉES - FORMES CRÉATIVES
           ======================================== */

        /* Container général pour toutes les images */
        .image-wrapper {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: auto;
        }

        .image-wrapper img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        filter 0.4s ease;
        }

        /* Style 1: BLOBS ORGANIQUES (Data IA, Dev, Workshops) */
        .image-blob-1 {
            border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(255, 127, 92, 0.25);
            position: relative;
        }

        .image-blob-1::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 127, 92, 0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .image-blob-1:hover img {
            transform: scale(1.08) rotate(2deg);
        }

        .image-blob-2 {
            border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(255, 127, 92, 0.25);
            position: relative;
        }

        .image-blob-2::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(225deg, rgba(255, 127, 92, 0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .image-blob-2:hover img {
            transform: scale(1.08) rotate(-2deg);
        }

        .image-blob-3 {
            border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(255, 127, 92, 0.25);
            position: relative;
        }

        .image-blob-3::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(315deg, rgba(255, 127, 92, 0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .image-blob-3:hover img {
            transform: scale(1.08) rotate(1deg);
        }

        /* Style 2: HEXAGONES (Infrastructure, Cyber, RH Tech) */
        .image-hexagon {
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(255, 127, 92, 0.35);
            position: relative;
        }

        .image-hexagon:hover img {
            transform: scale(1.1);
            filter: brightness(1.1);
        }

        .image-hexagon:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(255, 127, 92, 0.45);
        }

        /* Style 3: PENTAGONES (RH Tech) */
        .image-pentagon {
            clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(255, 127, 92, 0.35);
            position: relative;
        }

        .image-pentagon:hover img {
            transform: scale(1.1) rotate(5deg);
            filter: brightness(1.1);
        }

        .image-pentagon:hover {
            transform: translateY(-5px) rotate(-2deg);
            box-shadow: 0 20px 60px rgba(255, 127, 92, 0.45);
        }

        /* Style 4: MASKED GRADIENTS (Gouvernance, Histoire) */
        .image-masked-gradient {
            mask-image: linear-gradient(to bottom,
                rgba(0,0,0,1) 0%,
                rgba(0,0,0,1) 60%,
                rgba(0,0,0,0.6) 85%,
                rgba(0,0,0,0) 100%);
            -webkit-mask-image: linear-gradient(to bottom,
                rgba(0,0,0,1) 0%,
                rgba(0,0,0,1) 60%,
                rgba(0,0,0,0.6) 85%,
                rgba(0,0,0,0) 100%);
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }

        .image-masked-gradient::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40%;
            background: linear-gradient(to top,
                rgba(26, 15, 10, 0.9) 0%,
                rgba(26, 15, 10, 0.4) 50%,
                transparent 100%);
            pointer-events: none;
            z-index: 1;
        }

        body.theme-gov .image-masked-gradient::before {
            background: linear-gradient(to top,
                rgba(245, 243, 237, 0.9) 0%,
                rgba(245, 243, 237, 0.4) 50%,
                transparent 100%);
        }

        .image-masked-gradient:hover img {
            transform: scale(1.05);
            filter: brightness(1.15);
        }

        /* Style 5: CARDS MODERNES (Rejoindre, Veille) */
        .image-card-container {
            background: rgba(255, 127, 92, 0.05);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 127, 92, 0.2);
            border-radius: 20px;
            padding: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

        .image-card-container:hover {
            background: rgba(255, 127, 92, 0.08);
            border-color: rgba(255, 127, 92, 0.35);
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 127, 92, 0.25);
        }

        .image-card-container img {
            border-radius: 16px;
            margin-bottom: 15px;
        }

        .image-card-container:hover img {
            transform: scale(1.03);
        }

        /* Grid layouts pour images */
        .images-grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            margin: 40px 0;
        }

        .images-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin: 40px 0;
        }

        /* Magazine style (image + texte côte à côte) */
        .image-text-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            margin: 50px 0;
        }

        .image-text-layout.reverse {
            direction: rtl;
        }

        .image-text-layout.reverse > * {
            direction: ltr;
        }

        /* ============ RESPONSIVE DESIGN AMÉLIORÉ ============ */

        /* Petits mobiles (320px - 480px) */

        /* Mobiles standards (481px - 768px) */

        /* Tablettes (769px - 1024px) */

        /* Grands écrans (1440px+) */

        /* Desktop standard (769px - 1439px) */

        /* Activation burger menu sur mobile/tablette (≤768px) */

        /* ==================== FOOTER ==================== */
        .site-footer {
            width: 100%;
            background: rgba(20, 20, 20, 0.95);
            border-top: 1px solid rgba(255, 127, 92, 0.2);
            padding: 25px 20px 20px;
            margin-top: 80px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        body.has-mini-sidebar .site-footer {
            margin-left: -35px;
        }

        body.theme-gov .site-footer {
            background: rgba(245, 245, 247, 0.95);
            border-top-color: rgba(139, 111, 71, 0.3);
        }

        /* Footer pleine largeur sur welcome - retirer padding latéral du container */
        body.welcome-mode .site-footer {
            padding-left: 0;
            padding-right: 0;
        }

        /* Footer pleine largeur sur welcome page */
        body.welcome-mode .footer-content {
            max-width: 100%;
            padding: 0 40px;
        }

        .footer-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            text-align: center;
        }

        /* Logo & Baseline */
        .footer-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .footer-logo {
            height: 60px;
            width: auto;
            opacity: 0.9;
        }

        .footer-baseline {
            font-size: 0.95rem;
            color: rgba(245, 245, 247, 0.7);
            margin: 0;
        }

        body.theme-gov .footer-baseline {
            color: rgba(26, 26, 26, 0.7);
        }

        .footer-title {
            font-size: 1.2rem;
            font-weight: 900;
            color: #f5f5f7;
            margin: 3px 0;
            letter-spacing: 2px;
        }

        body.theme-gov .footer-title {
            color: #1a1a1a;
        }

        /* Coordonnées */
        .footer-contact {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            margin: 5px 0;
        }

        .footer-address {
            font-size: 0.85rem;
            color: rgba(245, 245, 247, 0.7);
            margin: 0;
        }

        body.theme-gov .footer-address {
            color: rgba(26, 26, 26, 0.7);
        }

        .footer-email {
            font-size: 0.85rem;
            color: rgba(245, 245, 247, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        body.theme-gov .footer-email {
            color: rgba(26, 26, 26, 0.8);
        }

        .footer-email:hover {
            color: #FF7F5C;
        }

        /* Navigation Links */
        .footer-links {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-link {
            color: rgba(245, 245, 247, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
        }

        body.theme-gov .footer-link {
            color: rgba(26, 26, 26, 0.8);
        }

        .footer-link:hover {
            color: #FF7F5C;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: #FF7F5C;
            transition: width 0.3s ease;
        }

        .footer-link:hover::after {
            width: 100%;
        }

        .footer-separator {
            color: rgba(245, 245, 247, 0.3);
            font-size: 0.8rem;
        }

        body.theme-gov .footer-separator {
            color: rgba(26, 26, 26, 0.3);
        }

        /* Copyright */
        .footer-copyright {
            font-size: 0.85rem;
            color: rgba(245, 245, 247, 0.5);
            margin-top: 10px;
        }

        body.theme-gov .footer-copyright {
            color: rgba(26, 26, 26, 0.5);
        }

        /* ==================== MODAL LÉGALES ==================== */
        .legal-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            animation: fadeIn 0.2s ease;
        }

        .legal-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .legal-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
        }

        .legal-modal-content {
            position: relative;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            background: rgba(20, 20, 20, 0.98);
            border: 1px solid rgba(255, 127, 92, 0.2);
            border-radius: 16px;
            padding: 40px;
            overflow-y: auto;
            z-index: 1;
        }

        body.theme-gov .legal-modal-content {
            background: rgba(245, 245, 247, 0.98);
            border-color: rgba(139, 111, 71, 0.3);
        }

        .legal-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: transparent;
            border: none;
            color: #f5f5f7;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .legal-modal-close:hover {
            color: #FF7F5C;
            transform: rotate(90deg);
        }

        .legal-modal-body {
            color: rgba(245, 245, 247, 0.9);
            line-height: 1.8;
        }

        body.theme-gov .legal-modal-body {
            color: rgba(26, 26, 26, 0.9);
        }

        .legal-modal-body h1 {
            font-size: 2rem;
            font-weight: 900;
            margin-bottom: 30px;
            color: #f5f5f7;
        }

        body.theme-gov .legal-modal-body h1 {
            color: #1a1a1a;
        }

        .legal-modal-body h2 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-top: 30px;
            margin-bottom: 15px;
            color: #FF7F5C;
        }

        .legal-modal-body p {
            margin-bottom: 15px;
        }

        .legal-modal-body ul {
            margin-left: 20px;
            margin-bottom: 15px;
        }
