 /* Variables CSS Personnalisées */
        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
            --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
            --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
            --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        }

        /* Mode sombre */
        [data-theme="dark"] {
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --bg-primary: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --border-color: rgba(255, 255, 255, 0.1);
        }

        /* Mode clair */
        [data-theme="light"] {
            --text-primary: #18181b;
            --text-secondary: #71717a;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --border-color: rgba(0, 0, 0, 0.1);
        }

        /* Reset et base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-primary);
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            margin-top: 100px;
            overflow-x: hidden;
            transition: var(--transition-smooth);
        }

         /* Particules animées en arrière-plan */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-gradient);
            border-radius: 50%;
            opacity: 0.6;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 0;
            backdrop-filter: blur(20px);
            background: var(--glass-bg);
            border-bottom: 1px solid var(--glass-border);
            transition: var(--transition-smooth);
        }

        /* Mode light - Navigation */
        [data-theme="light"] .navbar {
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .navbar.scrolled {
            background: rgba(10, 10, 10, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

         .nav-container a{
            text-decoration: none;
        }

        .logo {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            transition: var(--transition-smooth);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .theme-toggle:hover {
            background: var(--primary-gradient);
            transform: scale(1.05);
        }

        /* ===============================
        MENU BURGER - STYLES AMÉLIORÉS
        ===============================*/

        /* Menu hamburger - Version moderne */
        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 0.75rem;
            gap: 4px;
            transition: var(--transition-smooth);
            position: relative;
            width: 44px;
            height: 44px;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        /* Mode light - Bouton hamburger */
        [data-theme="light"] .mobile-menu-btn {
            background: var(--light-card-bg);
            border: 1px solid var(--light-card-border);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .mobile-menu-btn:hover {
            background: var(--light-hover-bg);
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
        }

        .mobile-menu-btn:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(102, 126, 234, 0.3);
        }

        .mobile-menu-btn:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        .hamburger-line {
            width: 20px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: var(--transition-smooth);
            transform-origin: center;
        }

        /* Mode light - Lignes hamburger */
        [data-theme="light"] .hamburger-line {
            background: var(--text-primary);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* Animation des lignes lors de l'ouverture */
        .mobile-menu-btn.active .hamburger-line:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }

        /* Menu mobile - Overlay moderne */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-smooth);
        }

        [data-theme="light"] .mobile-menu-overlay {
            background: rgba(255, 255, 255, .8);
            backdrop-filter: blur(15px);
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Menu mobile - Container principal */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: min(350px, 85vw);
            height: 100vh;
            background: var(--glass-bg);
            border-left: 1px solid var(--glass-border);
            backdrop-filter: blur(25px);
            z-index: 9999;
            transition: var(--transition-smooth);
            display: flex;
            flex-direction: column;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
            overflow: hidden; /* Empêche le scroll sur le container principal */
        }

        [data-theme="light"] .mobile-menu {
            background: var(--light-card-bg);
            border-left: 1px solid var(--light-card-border);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
        }

        .mobile-menu.active {
            right: 0;
        }

        /* En-tête du menu mobile */
        .mobile-menu-header {
            padding: 2rem 1.5rem 1rem;
            border-bottom: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        [data-theme="light"] .mobile-menu-header {
            background: var(--light-accent-bg);
        }

        .mobile-menu-logo {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: var(--transition-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .mobile-menu-close:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(90deg);
        }

        [data-theme="light"] .mobile-menu-close:hover {
            background: var(--light-hover-bg);
            color: #667eea;
        }

        .mobile-menu-close:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* Navigation mobile */
        .mobile-nav {
            flex: 1;
            padding: 2rem 0;
            overflow-y: auto; /* Permet le scroll dans la zone de navigation */
            overflow-x: hidden;
        }

        /* Personnalisation de la scrollbar pour le menu mobile */
        .mobile-nav::-webkit-scrollbar {
            width: 4px;
        }

        .mobile-nav::-webkit-scrollbar-track {
            background: transparent;
        }

        .mobile-nav::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        [data-theme="light"] .mobile-nav::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
        }

        .mobile-nav-links {
            list-style: none;
            padding: 0 1.5rem;
            margin: 0;
        }

        .mobile-nav-links li {
            margin-bottom: 0.5rem;
        }

        .mobile-nav-links a {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            border-radius: 12px;
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .mobile-nav-links a {
            color: var(--text-primary);
            font-weight: 600;
        }

        .mobile-nav-links a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            height: 100%;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
            z-index: -1;
        }

        .mobile-nav-links a:hover::before,
        .mobile-nav-links a:focus::before {
            width: 100%;
        }

        .mobile-nav-links a:hover,
        .mobile-nav-links a:focus {
            color: white;
            transform: translateX(10px);
            background: rgba(102, 126, 234, 0.1);
        }

        [data-theme="light"] .mobile-nav-links a:hover,
        [data-theme="light"] .mobile-nav-links a:focus {
            background: var(--light-hover-bg);
            transform: translateX(8px);
        }

        .mobile-nav-links a:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* État inactif des liens (quand le menu est fermé) */
        .mobile-menu:not(.active) .mobile-nav-links a,
        .mobile-menu:not(.active) .mobile-menu-close,
        .mobile-menu:not(.active) .mobile-theme-toggle {
            pointer-events: none;
            opacity: 0.5;
        }

        /* Réactivation des liens quand le menu est ouvert */
        .mobile-menu.active .mobile-nav-links a,
        .mobile-menu.active .mobile-menu-close,
        .mobile-menu.active .mobile-theme-toggle {
            pointer-events: auto;
            opacity: 1;
        }

        /* Icônes pour les liens (optionnel) */
        .mobile-nav-links a::after {
            content: '→';
            margin-left: auto;
            opacity: 0;
            transform: translateX(-10px);
            transition: var(--transition-smooth);
        }

        .mobile-nav-links a:hover::after {
            opacity: 1;
            transform: translateX(0);
        }

        /* Footer du menu mobile */
        .mobile-menu-footer {
            padding: 1.5rem;
            border-top: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] .mobile-menu-footer {
            background: var(--light-accent-bg);
        }

        .mobile-theme-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .mobile-theme-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .mobile-theme-toggle {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition-smooth);
            font-size: 0.9rem;
        }

        [data-theme="light"] .mobile-theme-toggle {
            background: var(--light-card-bg);
            border: 1px solid var(--light-card-border);
        }

        .mobile-theme-toggle:hover {
            background: var(--primary-gradient);
            color: white;
            transform: scale(1.05);
        }

        .mobile-contact-info {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-align: center;
            line-height: 1.5;
        }

        .mobile-contact-info a {
            color: #667eea;
            text-decoration: none;
        }

        .mobile-contact-info a:hover {
            text-decoration: underline;
        }

        /* Responsive - Affichage du menu mobile */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .theme-toggle {
                display: none; /* Cache le toggle desktop sur mobile */
            }
        }

        @media (max-width: 480px) {
            .mobile-menu {
                width: 100vw;
                right: -100vw;
            }

            .mobile-menu.active {
                right: 0;
            }

            .mobile-menu-header {
                padding: 1.5rem 1rem 1rem;
            }

            .mobile-nav {
                padding: 1.5rem 0;
            }

            .mobile-nav-links {
                padding: 0 1rem;
            }

            .mobile-nav-links a {
                font-size: 1rem;
                padding: 0.875rem 1rem;
            }

            /* Grille de projets */
            .projects-grid {
                display: block;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                margin-bottom: 3rem;
            }
        }

        /* Animations d'entrée pour les éléments du menu */
        .mobile-menu.active .mobile-nav-links li {
            animation: slideInFromRight 0.4s ease forwards;
        }

        .mobile-menu.active .mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(2) { animation-delay: 0.15s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(3) { animation-delay: 0.2s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(4) { animation-delay: 0.25s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(5) { animation-delay: 0.3s; }

        @keyframes slideInFromRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* États d'accessibilité */
        @media (prefers-reduced-motion: reduce) {
            .mobile-menu,
            .mobile-menu-overlay,
            .hamburger-line,
            .mobile-nav-links a,
            .mobile-theme-toggle {
                transition: none;
            }

            .mobile-menu.active .mobile-nav-links li {
                animation: none;
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Focus visible amélioré pour l'accessibilité */
        .mobile-menu-btn:focus-visible,
        .mobile-menu-close:focus-visible,
        .mobile-nav-links a:focus-visible,
        .mobile-theme-toggle:focus-visible {
            outline: 2px solid #667eea;
            outline-offset: 2px;
            border-radius: 4px;
        }

        /* Mode high contrast */
        @media (prefers-contrast: high) {
            [data-theme="light"] .mobile-menu {
                border-left: 2px solid #000;
            }

            [data-theme="light"] .mobile-nav-links a:hover {
                background: #000;
                color: #fff;
            }
        }

        @media (max-width: 768px) {

            .nav-links {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .theme-toggle {
                display: none; /* Cache aussi le toggle desktop sur mobile */
            }
        }

         .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            margin-bottom: 2rem;
            transition: color 0.3s ease;
        }

        .back-link:hover {
            color: var(--text-primary);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h2 {
            font-size: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        h3 {
            font-size: 1.2rem;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
        }

        p {
            margin-bottom: 1rem;
            color: var(--text-secondary);
        }

        strong {
            color: var(--text-primary);
        }

        .highlight {
            background: rgba(102, 126, 234, 0.1);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }