    /* === VARIABLES & RESET === */
        :root {
            /* Palette Stellaire — mise à jour */
            --bg-deep: #070f1b;        /* Bleu Nuit Profond */
            --primary: #FFD700;        /* Or Galactique (boutons, accents) */
            --secondary: #a848c8;      /* Violet Améthyste (secondaire) */
            --glass: rgba(224, 224, 224, 0.03);
            --glass-border: rgba(224, 224, 224, 0.08);
            --text: #E0E0E0;           /* Blanc cassé doux */
            --text-muted: #9b88b0;
            /* Utility vars (rgb) */
            --primary-rgb: 255,215,0;  /* for rgba usage */
            --secondary-rgb: 106,13,173;
            --text-dim: rgba(224,224,224,0.6);
        }

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

        body {
            background-color: var(--bg-deep);
            color: var(--text);
            font-family: 'Outfit', sans-serif;
            overflow-x: hidden;
        }

        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-deep);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 30px;
        }

        .loader-text {
            font-family: 'Space Grotesk';
            font-size: 4rem;
            font-weight: 700;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shimmer 3s ease-in-out infinite;
        }

        .loader-bar {
            width: 300px;
            height: 3px;
            background: rgba(224,224,224,0.06);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .loader-progress {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            width: 0%;
            animation: loading 2s ease-out forwards;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes loading {
            to { width: 100%; }
        }

        .loader.fade-out {
            animation: fadeOut 0.8s ease forwards;
        }

        @keyframes fadeOut {
            to { opacity: 0; pointer-events: none; }
        }

        /* === CURSEUR MAGNÉTIQUE === */
        .cursor-dot,
        .cursor-outline {
            position: fixed;
            top: 0;
            left: 0;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            z-index: 20000; /* Toujours au-dessus */
            pointer-events: none;
            transition: all 0.1s ease;
        }

        .cursor-dot {
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, var(--primary), var(--secondary));
            box-shadow: 0 0 20px var(--primary);
        }

        .cursor-outline {
            width: 40px;
            height: 40px;
            border: 2px solid var(--primary);
            transition: width 0.3s, height 0.3s, background-color 0.3s, border-radius 0.3s;
        }

        body.hovering .cursor-outline {
            width: 70px;
            height: 70px;
            background-color: rgba(var(--primary-rgb), 0.06);
            border-color: var(--secondary);
            border-radius: 10px;
        }

        body.clicking .cursor-outline {
            width: 30px;
            height: 30px;
        }

        /* === CANVAS ÉTOILÉ (FOND ANIMÉ) === */
        #space-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at bottom, #131629 0%, var(--bg-deep) 100%);
        }

        /* === UTILITAIRES === */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3, h4 {
            font-family: 'Space Grotesk', sans-serif;
            line-height: 1.1;
        }

        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        a { text-decoration: none; color: inherit; }

        /* === NAVIGATION === */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 25px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            background: rgba(11,13,23,0.7);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
            transform: translateY(-100%);
            animation: slideDown 0.8s ease 2.5s forwards;
        }

        @keyframes slideDown {
            to { transform: translateY(0); }
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: -1px;
            position: relative;
        }

        .logo::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: width 0.3s ease;
        }

        .logo:hover::after {
            width: 100%;
        }

        /* === BOUTONS === */
        .hub-btn {
            padding: 15px 40px;
            border: 2px solid var(--glass-border);
            background: rgba(255,255,255,0.05);
            border-radius: 50px;
            color: var(--text);
            font-weight: 600;
            backdrop-filter: blur(10px);
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.85rem;
            position: relative;
            overflow: hidden;
            display: inline-block;
        }

        .hub-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: var(--primary);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            z-index: -1;
        }

        .hub-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .hub-btn:hover {
            color: var(--bg-deep);
            border-color: var(--primary);
            box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.35);
            transform: translateY(-3px);
        }

        .hub-btn.primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            color: var(--bg-deep);
        }

        .hub-btn.primary:hover {
            box-shadow: 0 0 40px rgba(var(--secondary-rgb), 0.4);
            transform: translateY(-5px) scale(1.05);
        }

        /* === HERO === */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 800px;
            position: relative;
            z-index: 2;
        }

        .hero-subtitle {
            color: var(--primary);
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.2rem;
            letter-spacing: 4px;
            margin-bottom: 20px;
            display: block;
            opacity: 0;
            animation: fadeInUp 1s ease 2.8s forwards;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 7rem);
            font-weight: 700;
            background: linear-gradient(135deg, var(--text), var(--primary), var(--secondary));
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 30px;
            line-height: 0.9;
            opacity: 0;
            animation: fadeInUp 1s ease 3s forwards, gradientShift 8s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero h1,
        .hero-subtitle {
            transform: translateY(30px);
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 500px;
            line-height: 1.8;
            margin-bottom: 40px;
            opacity: 0;
            animation: fadeInUp 1s ease 3.2s forwards;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeInUp 1s ease 3.4s forwards;
        }

        /* === CARTES 3D & TILT === */
        .tilt-card {
            background: linear-gradient(135deg, rgba(224,224,224,0.05), rgba(224,224,224,0.01));
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 40px;
            backdrop-filter: blur(20px);
            transform-style: preserve-3d;
            transform: perspective(1000px);
            transition: all 0.1s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .tilt-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(
                800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(var(--primary-rgb), 0.06),
                transparent 40%
            );
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .tilt-card:hover::before {
            opacity: 1;
        }

        .tilt-card:hover {
            box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.18);
        }
        
        .tilt-inner {
            transform: translateZ(30px);
            position: relative;
            z-index: 1;
        }

        .section-padding {
            padding: 100px 0;
        }
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .profile-img-container {
            position: relative;
            width: 100%;
            max-width: 400px;
            aspect-ratio: 1/1;
        }

        .profile-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            filter: grayscale(20%);
            transition: 0.5s;
        }
    
        .top5-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .top5-card {
            background: linear-gradient(145deg, rgba(224,224,224,0.05), rgba(224,224,224,0.01));
            border-top: 1px solid var(--glass-border);
            padding: 30px;
            border-radius: 15px;
        }

        .top5-card h3 {
            color: var(--secondary);
            margin-bottom: 20px;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .top5-list {
            list-style: none;
        }

        .top5-list li {
            padding: 10px 0;
            border-bottom: 1px solid rgba(224,224,224,0.05);
            display: flex;
            justify-content: space-between;
            color: var(--text);
            font-size: 0.95rem;
        }

        .top5-list li:last-child { border-bottom: none; }
        .top5-list li span { opacity: 0.7; }

        .skills-marquee {
            background: var(--glass);
            border-top: 1px solid var(--glass-border);
            border-bottom: 1px solid var(--glass-border);
            padding: 20px 0;
            overflow: hidden;
            position: relative;
            white-space: nowrap;
            margin: 50px 0;
            backdrop-filter: blur(5px);
        }

        .marquee-content {
            display: inline-block;
            animation: scroll 20s linear infinite;
        }

        .skill-item {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 0 40px;
            font-family: 'Space Grotesk';
            font-size: 1.2rem;
            color: var(--text-muted);
        }
        .skill-item i { color: var(--primary); }

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

        /* === PROJETS === */

        .lb-desc a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px solid var(--primary);
            transition: all 0.3s ease;
            font-weight: 700;
        }

        .lb-desc a:hover {
            background: rgba(0, 243, 255, 0.1);
            padding: 0 5px;
            border-radius: 4px;
        }

        .filter-container {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: transparent;
            border: 1px solid var(--glass-border);
            color: var(--text);
            padding: 10px 25px;
            border-radius: 30px;
            font-family: 'Space Grotesk';
            font-size: 0.9rem;
            transition: 0.3s;
        }

        .filter-btn:hover, .filter-btn.active {
            background: var(--text);
            color: var(--bg-deep);
            border-color: var(--text);
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 40px;
        }

        .project-card {
            height: 500px;
            position: relative;
            overflow: hidden;
            border-radius: 24px;
            background: var(--bg-deep);
            transition: opacity 0.3s, transform 0.3s;
            cursor: none;
        }

        .project-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.5;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
            filter: grayscale(50%);
        }

        .project-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40px;
            background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
            transform: translateY(50px);
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .project-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            opacity: 0;
            mix-blend-mode: overlay;
            transition: opacity 0.4s;
            pointer-events: none;
        }

        .project-card:hover::after {
            opacity: 0.3;
        }

        .project-card:hover .project-bg {
            transform: scale(1.15) rotate(2deg);
            opacity: 0.8;
            filter: grayscale(0%);
        }

        .project-card:hover .project-info {
            transform: translateY(0);
        }

        .project-tag {
            font-size: 0.75rem;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
            display: inline-block;
            padding: 5px 15px;
            background: rgba(var(--primary-rgb), 0.06);
            border-radius: 20px;
            border: 1px solid rgba(var(--primary-rgb), 0.18);
        }

        .project-info h3 {
            font-size: 2rem;
            margin-bottom: 10px;
            font-family: 'Space Grotesk';
        }

        /* === LIGHTBOX MODE CINÉMA (GRAND FORMAT) === */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 25, 49, 0.95);
            z-index: 10000; 
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(20px);
            opacity: 0;
            transition: opacity 0.4s ease;
            padding: 20px;
        }

        .lightbox.active {
            opacity: 1;
        }

        .lightbox-content {
            background: var(--bg-deep);
            width: 95vw;
            height: 90vh;
            max-width: 1600px;
            border-radius: 20px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
            display: flex;
            overflow: hidden;
            transform: scale(0.95);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .lightbox.active .lightbox-content {
            transform: scale(1);
        }

        .lb-visual {
            flex: 3.5; /* Priorité à l'image/PDF */
            background: var(--bg-deep);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-right: 1px solid var(--glass-border);
        }

        .lb-visual iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .lb-visual img, 
        .lb-visual video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease;
        }
        
        .lb-details {
            flex: 1;
            min-width: 300px;
            padding: 40px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: rgba(11, 13, 23, 0.5);
        }

        .lb-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.5);
            border: 1px solid rgba(224,224,224,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: 0.3s;
            cursor: none;
            z-index: 50;
        }

        .lb-close:hover {
            background: white;
            color: black;
            transform: rotate(90deg);
        }

        .lb-category {
            color: var(--primary);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
        }

        .lb-title {
            font-size: 2.5rem;
            line-height: 1;
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--text), var(--text-muted));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .lb-desc {
            font-size: 1rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 30px;
            border-top: 1px solid rgba(224,224,224,0.1);
            padding-top: 20px;
        }

        .lb-controls {
            position: absolute;
            bottom: 30px;
            right: 30px;
            display: flex;
            gap: 15px;
            z-index: 10;
        }
        .lb-control-btn {
            background: rgba(0,0,0,0.8);
            border: 1px solid var(--glass-border);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s;
            font-size: 1.2rem;
        }
        .lb-control-btn:hover {
            background: var(--primary);
            color: black;
            transform: scale(1.1);
        }
        .gallery-indicator {
            position: absolute;
            bottom: 30px;
            left: 30px;
            background: rgba(0,0,0,0.8);
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 1rem;
            color: var(--primary);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
        }

        /* === FOOTER === */
        footer {
            margin-top: 150px;
            padding: 80px 0 40px;
            border-top: 1px solid var(--glass-border);
            background: linear-gradient(to bottom, transparent, var(--bg-deep));
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 60px;
        }

        .footer-cta h2 {
            font-family: 'Space Grotesk';
            font-size: 3.5rem;
            line-height: 1;
            margin-bottom: 20px;
            background: linear-gradient(to right, var(--text), var(--text-muted));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-col h4 {
            color: var(--text);
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .footer-link {
            display: block;
            color: var(--text-muted);
            margin-bottom: 10px;
            transition: 0.3s;
            width: fit-content;
        }
        .footer-link:hover { 
            color: var(--primary); 
            transform: translateX(5px); 
        }

        .footer-bottom {
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-dim);
            padding-top: 20px;
            border-top: 1px solid rgba(224,224,224,0.05);
        }

        /* ========================================= */
        /* === RESPONSIVE & MOBILE OPTIMIZATIONS === */
        /* ========================================= */

        @media (max-width: 1024px) {
            .hero h1 { font-size: 5rem; }
            .project-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 900px) {
            /* Lightbox Mobile Adjustment */
            .lightbox { padding: 0; }
            .lightbox-content { flex-direction: column; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; border: none; }
            .lb-visual { height: 40vh; flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
            .lb-details { padding: 25px; width: 100%; flex: 1; }
            .lb-title { font-size: 1.8rem; }
            .lb-close { top: 15px; right: 15px; background: rgba(0,0,0,0.8); }
        }

        @media (max-width: 768px) {
            /* General Reset */
            * { cursor: auto !important; }
            .cursor-dot, .cursor-outline { display: none !important; }
            
            /* Layout & Spacing */
            .container { padding: 0 25px; }
            .section-padding { padding: 60px 0; }
            
            /* Navigation */
            nav { padding: 20px 25px; background: rgba(11,13,23,0.95); }
            .logo { font-size: 1.5rem; }
            .hub-btn { padding: 10px 20px; font-size: 0.75rem; }

            /* Hero Section */
            .hero { display: block; padding-top: 120px; min-height: auto; padding-bottom: 60px; }
            .hero h1 { font-size: 12vw; margin-bottom: 20px; }
            .hero p { font-size: 1rem; margin-bottom: 30px; }
            .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
            .hero-buttons .hub-btn { width: 100%; text-align: center; }

            /* About Section */
            .about-grid { grid-template-columns: 1fr; gap: 40px; }
            .reveal h2 { font-size: 2.2rem !important; }
            .top5-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
            
            /* Skills */
            .skills-marquee { margin: 30px 0; padding: 15px 0; }
            .skill-item { margin: 0 20px; font-size: 1rem; }

            /* Projects - Mobile Experience (No Hover) */
            .project-grid { grid-template-columns: 1fr; gap: 30px; }
            .filter-container { gap: 10px; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; flex-wrap: nowrap; }
            .filter-btn { white-space: nowrap; font-size: 0.8rem; padding: 8px 18px; }

            .project-card {
                height: auto;
                aspect-ratio: 4/5; /* Format portrait plus naturel sur mobile */
                transform: none !important; /* Désactive le tilt 3D sur mobile */
            }
            
            /* Force l'affichage des infos projet sans hover */
            .project-info {
                transform: translateY(0);
                background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.8) 50%, transparent);
                padding: 25px;
            }
            
            .project-bg {
                opacity: 0.7; /* Image plus visible par défaut */
                filter: grayscale(0%); /* Couleurs actives par défaut */
                transform: scale(1.05);
            }
            
            .project-card:hover .project-bg { transform: scale(1.05); } /* Annule le zoom au touch */

            .project-info h3 { font-size: 1.5rem; }
            .project-tag { font-size: 0.65rem; padding: 4px 10px; }

            /* Footer */
            footer { margin-top: 80px; padding: 50px 0 30px; }
            .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
            .footer-cta h2 { font-size: 2.5rem; justify-content: center; }
            .footer-cta p { margin: 0 auto; }
            .footer-col { display: flex; flex-direction: column; align-items: center; }
            .footer-link:hover { transform: translateX(0) scale(1.1); } /* Changement d'animation pour mobile */
        }

        @media (max-width: 400px) {
            .hero h1 { font-size: 3.5rem; }
        }