:root {
    --bg-color: #0B0C15;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent-primary: #4F46E5;
    --accent-secondary: #8B5CF6;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-color, #050508);
   
}

::-webkit-scrollbar {
    width: 12px; /* Largeur confortable */
}

::-webkit-scrollbar-track {
    background: var(--bg-color, #050508); /* Fond noir (comme ton site) */
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary); /* Ton Violet */
    border-radius: 6px; /* Arrondi */
    border: 3px solid var(--bg-color, #050508); /* Crée un espace vide autour du violet */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8B5CF6; /* Violet plus clair au survol */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: visible;
    overflow-x: hidden;
    min-height: 100vh;
    /* Crucial */
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

html.lenis,
html.lenis body {
    height: auto;
}

/* Typographie & Animations Performance */
.bento-card,
.cv-btn,
.links a,
.magnetic-button,
.floating-obj,
.floating-car,
.floating-ball {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.desktop-nav,
.glow-blob,
.organic-path,
.scroll-indicator,
.marquee-content {
    will-change: transform;
    backface-visibility: hidden;
}

.reveal-item {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.noise-overlay,
.organic-lines-container {
    pointer-events: none;
}

h1,
h2,
h3,
.loader-text,
.logo,
.mobile-link,
.stat-number,
.footer-links a,
.benefit-title,
.sticky-content h2,
.sticky-content h3,
.result-value,
.next-project-label,
.next-project-title,
.mobile-header-title {
    font-family: var(--font-heading);
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    font-weight: 600;
}

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

/* =========================================
   COMPOSANTS UI (Boutons, Tags, etc.)
   ========================================= */
/* Socle commun des boutons pour éviter la répétition */
.cv-btn,
.magnetic-button,
.contact-cta-btn,
.visit-site-btn,
.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(.25, .8, .25, 1), background 0.3s cubic-bezier(.25, .8, .25, 1), box-shadow 0.3s cubic-bezier(.25, .8, .25, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, .3);
}

.cv-btn:hover,
.magnetic-button:hover,
.contact-cta-btn:hover,
.visit-site-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .6);
}

/* Spécificités des boutons */
.cv-btn {
    padding: 1.1rem 2.5rem;
    gap: 12px;
    font-size: 1.05rem;
}

.magnetic-button {
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
}

.contact-cta-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    gap: 12px;
}

.visit-site-btn.small {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-button {
    padding: .5rem 1rem;
    font-size: .8rem;
}

/* Tags */
.mini-tag,
.project-tag,
.skill-tag {
    text-transform: uppercase;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: transform .3s ease, background .3s ease;
}

.mini-tag {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.skill-tag {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-tag:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* =========================================
   NAVIGATION (Desktop & Mobile)
   ========================================= */
.desktop-nav {
   display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu */
    width: fit-content;
    max-width: 95%; /* Sécurité pour mobile */
    position: fixed;
    top: 20px;
    z-index: 10005;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: rgba(11, 12, 21, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 100px;
    padding: 0.8rem 1.5rem; /* Padding Desktop */
    opacity: 1;
    visibility: visible;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 10005;
    margin-right: 2rem;
}

.links {
    display: flex;
    align-items: center;
    position: relative;
    padding: 4px;
    z-index: 1;
}

.nav-backdrop {
    position: absolute;
    top: 10%;
    left: 4px;
    height: 80%;
    width: 0;
    background: var(--accent-primary);
    border-radius: 100px;
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.nav-item {
    text-decoration: none;
    display: inline-block;
    margin: 0 1.2rem;
    font-family: var(--font-heading, sans-serif);
    font-weight: 600;
    color: var(--text-muted, #aaa);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
}



/* Burger Menu */
.burger-btn {
   display: none; /* Caché sur Desktop par défaut */
    width: 50px;
    height: 50px;
    position: relative; /* Important pour le positionnement interne */
    z-index: 10010; /* Toujours au-dessus de l'overlay */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Espace entre les barres */
    transition: border-color 0.3s ease;
}

.burger-btn span {
   display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Petit effet rebond */
    position: absolute; /* On passe en absolu pour la croix parfaite */
}

/* État initial des barres (parallèles) */
.burger-btn span:nth-child(1) {
    transform: translateY(-4px); /* Barre du haut */
}
.burger-btn span:nth-child(2) {
    transform: translateY(4px); /* Barre du bas */
}

/* --- ANIMATION CROIX (État .active) --- */
.burger-btn.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}
.mobile-menu-overlay {
    /* 1. Prend tout l'écran */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* 2. Couleur de fond (INDISPENSABLE) */
    background-color: #0b0c15; /* Remplace par ta couleur sombre exacte si différente */
    
    /* 3. Z-Index : Très haut, mais SOUS le bouton burger */
    z-index: 10009; 
    
    /* 4. Centrage des liens */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 5. État initial pour GSAP (Caché) */
    opacity: 0;
    visibility: hidden;
}

/* Le conteneur des liens */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Les liens eux-mêmes */
.mobile-link {
    font-family: var(--font-heading, sans-serif); /* Ta typo titre */
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-primary, #4f46e5);
}

/* =========================================
   FOOTER & CONTACT (Structure & Design)
   ========================================= */

/* Le conteneur principal (Remplace .contact-section) */
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centre le bloc horizontalement */
    padding: 2rem 1.5rem 2rem; /* Espace Haut | Cotés | Bas */
    min-height: 80vh; /* Prend de la hauteur pour l'esthétique */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout verticalement */
    justify-content: center;
    text-align: center;
}

/* Textes */
.contact-label {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-title {
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #fff;
}

/* Groupe des boutons */
.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 5rem;
}

/* --- BOUTONS (Ton design conservé) --- */
.magnetic-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 3rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.magnetic-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
}

.copy-email-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.copy-email-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.copy-email-btn.copied {
    border-color: var(--accent-primary);
    color: #fff;
}

/* --- FEEDBACK "COPIÉ" --- */
.copy-feedback {
    position: absolute;
    top: 50%;
    left: 100%; 
    margin-left: 15px;
    transform: translateY(-50%) translateX(-10px);
    background-color: var(--accent-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent var(--accent-primary) transparent transparent;
}

.copy-email-btn.copied .copy-feedback {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); 
}

/* --- BAS DE PAGE (Footer Links) --- */
.main-footer {
    width: 100%;
    border-top: 1px solid var(--glass-border); /* Ta variable */
    padding-top: 2rem;
    
    display: flex;
    flex-direction: column; /* Mobile : Empilé */
    align-items: center;    /* Mobile : Centré */
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* --- RESPONSIVE DESKTOP --- */
@media (min-width: 768px) {

    /* Boutons côte à côte */
    .contact-actions {
        flex-direction: row;
        justify-content: center;
    }

    /* Footer sur une seule ligne (gauche/droite ou centré selon goût) */
    /* Ici je le garde centré car c'est plus joli pour un portfolio perso */
    .main-footer {
        flex-direction: column; 
    }
}

/* =========================================
   HERO SECTION & ANIMATIONS
   ========================================= */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0, var(--bg-color) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Text Reveals */
h1.reveal-text {
    color: transparent;
    background-image: radial-gradient(circle 300px at var(--cursor-x, 50%) var(--cursor-y, 50%), #fff 0, #52525b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    cursor: default;
    visibility: visible;
}

.gradient-text {
    background: linear-gradient(120deg, var(--accent-primary) 0, #a855f7 25%, var(--accent-secondary) 50%, #a855f7 75%, var(--accent-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: textShine 5s linear infinite;
    filter: drop-shadow(0 0 15px rgba(79, 70, 229, .3));
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Background Blobs & Noise */
.noise-overlay {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: .02;
    pointer-events: none;
    z-index: 99999;
    animation: noise .2s infinite;
}

/* Lignes backround */
.organic-lines-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: .4
}

.organic-lines {
    width: 100%;
    height: 100%
}

.organic-path {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1000 1000;
    stroke-dashoffset: 1000
}

@keyframes noise {
    0% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-5%, -5%)
    }

    20% {
        transform: translate(-10%, 5%)
    }

    50% {
        transform: translate(-10%, 5%)
    }

    100% {
        transform: translate(5%, 0)
    }
}

.glow-container {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    contain: strict;
}

.glow-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .3;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

.blob-purple {
    background: #8b5cf6;
    width: 400px;
    height: 400px;
}

.blob-blue {
    background: #4f46e5;
    width: 500px;
    height: 500px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: .7;
    transition: opacity .3s;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px
    }

    100% {
        opacity: 0;
        top: 30px
    }
}



/* =========================================
   BENTO GRID & PROJETS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.projects-section,
.about-section
 {
    padding:  8rem 5% 8rem 5%;
}

.section-title,
.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    line-height: 1.1;
    color: #fff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 24px;
}

.span-2 {
    grid-column: span 2;
}

/* Carte Bento Core */
a.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: block;
    padding: 0 !important;
}

a.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .3);
}

/* Visuels internes (Studios) - REGROUPÉS POUR DRY */
.card-visual-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Regroupement des propriétés communes des studios */
.labo-studio,
.dewalt-tech-bg,
.golf-studio,
.unidade-studio,
.covering-studio,
.village-studio {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Backgrounds spécifiques */
.labo-studio {
    width: 120%;
    height: 120%;
    background-color: #050608;
    background-image: radial-gradient(circle at 50% 50%, rgba(15, 35, 44, 0.8) 0%, transparent 90%), radial-gradient(circle at 80% 20%, rgba(229, 213, 184, 0.05) 0%, transparent 40%);
}

.dewalt-tech-bg {
    background-color: #1a1a1c;
    background: radial-gradient(circle at 50% 40%, rgba(202, 156, 14, .15) 0, transparent 70%);
}

.golf-studio {
    background-color: #020503;
    background-image: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, .05) 0, transparent 70%);
}

.unidade-studio {
    background-color: #0b0c15;
    background-image: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .12) 0, rgba(31, 43, 69, .4) 40%, transparent 85%);
}

.covering-studio {
    background-color: #0a0202;
    background-image: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, .08) 0, transparent 70%);
}

.village-studio {
    width: 110%;
    height: 110%;
    background-color: #121212;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .1) 0, rgba(20, 20, 20, .5) 50%, transparent 90%);
}

/* Objets flottants - Gestion commune */
.floating-obj,
.floating-car,
.floating-ball {
    position: relative;
    z-index: 1;
    height: auto;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}

/* Spécificités Objets */
.labo-studio .floating-obj {
    width: 90%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}

.dewalt-tech-bg .floating-obj {
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6));
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.floating-ball {
    width: 170%;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .8));
}

.unidade-studio .floating-obj {
    height: 90%;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, .7));
}

.floating-car {
    width: 115%;
    transform: translateY(5%);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .8));
}

.village-studio .floating-obj {
    width: 85%;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .8));
}

/* Effets Hover Objets */
.bento-card:hover .labo-studio .floating-obj {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 0 35px rgba(229, 213, 184, 0.15));
}

.bento-card:hover .dewalt-tech-bg .floating-obj {
    transform: translateY(-10px) scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 30px rgba(202, 156, 14, .5));
}

.bento-card:hover .floating-ball {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, .6));
}

.bento-card:hover .unidade-studio .floating-obj {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 0 30px rgba(65, 105, 225, .6));
}

.bento-card:hover .floating-car {
    transform: scale(1.05) translateY(0);
    filter: drop-shadow(0 0 25px rgba(220, 20, 60, .4));
}

.bento-card:hover .village-studio .floating-obj {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, .35));
}

/* Contenu Carte (Texte) */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.card-tags {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

a.bento-card:hover .mini-tag {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Animation Description Desktop */
@media (min-width:1025px) {
    .bento-card p {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(20px);
        margin-top: 0;
        transition: max-height .6s cubic-bezier(.16, 1, .3, 1), margin-top .6s, opacity .8s ease-out, transform .8s;
    }

    .bento-card:hover p {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
        margin-top: .8rem;
        transition-delay: 0s, 0s, .1s, 0s;
    }
}

/* =========================================
   SECTIONS ABOUT & STATS (OPTIMISÉ)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- CORRECTIF 1 : Espace Titre réduit --- */
/* On cible le titre h2 dans la section about pour remonter le texte */
.about-text .section-title {
    margin-bottom: 1.5rem !important; /* Était souvent à 4rem par défaut */
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 90%;
}

.lead-text {
    font-size: 1.4rem;
    color: #fff !important;
    font-weight: 500;
    margin-bottom: 1.5rem !important; /* Ajusté pour l'équilibre */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* --- CORRECTIF 2 : Centrage Parfait des Cases --- */
.stat-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform .3s, border-color .3s;
    
    /* Le secret du centrage vertical et horizontal : */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    text-align: center;      /* Sécurité pour le texte multi-lignes */
    height: 100%;            /* Force la hauteur uniforme */
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    display: block;
    margin-bottom: .5rem;
    line-height: 1; /* Évite les décalages invisibles */
}

.stat-label {
    /* Ajoute ceci si tu as une classe pour le petit texte sous le chiffre */
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- CORRECTIF 3 : Espace Bouton CV --- */
.cv-wrapper {
    margin-top: 4rem; /* Pousse le bouton vers le bas */
    display: block;
}

.about-image-wrapper {
    position: relative;
    height: 650px;
    border-radius: 32px;
    padding: 10px;
    background: linear-gradient(45deg, rgba(79, 70, 229, .3), transparent 60%);
    opacity: 1; 
    visibility: visible;
    transform: scale(1);
}

.about-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    
    filter: grayscale(0%) contrast(1);
    
    transition: filter .5s ease;
    box-shadow: 0 20px 40px -20px rgba(139, 92, 246, .5);
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(100%) contrast(1.1);
}

@media (max-width: 768px) {
    .cv-wrapper {
        margin-top: 3rem;
        text-align: center;
    }
}

/* Marquee Skills */
.skills-section {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex; 
}

.marquee-wrapper {
    display: flex; 
    width: fit-content; 
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;

}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 4rem);
    color: rgba(255, 255, 255, .15);
    margin: 0 2rem; 
    font-weight: 600;
    transition: color .3s;
    flex-shrink: 0;
    cursor: default; 
}

.marquee-content span:hover {
    color: var(--accent-primary);
}

/* =========================================
   PAGES PROJETS (TEMPLATE GLOBAL)
   ========================================= */
.project-page {
    background-color: var(--bg-color);
    overscroll-behavior-y: none;
}

.project-hero {
    width: 100%;
    position: relative;
    padding-top: 200px;
    padding-bottom: 4rem;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

.project-hero h1 {
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(180deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

.project-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 2.5rem auto 3rem auto; 
}

/* Metadata Projet */
.project-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.meta-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 1rem;
    margin-top: 5px;
    line-height: 1;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.project-hero-image {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box; 
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6);
    
   
    transform: translateZ(0); 
    will-change: transform;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Context Section */
.context-section {
    padding: 10rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.context-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    color: transparent;
}

.context-section p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Sticky Scroll Section */
.sticky-scroll-section {
    position: relative;
    padding: 8rem 5%;
    overflow: visible;
    /* CRUCIAL */
}

.sticky-container {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.sticky-content {
    width: 35%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
    max-height: 85vh;
    overflow: visible;
}


.sticky-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fff;
}

.sticky-content h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.sticky-content p,
.sticky-content li {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.sticky-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sticky-content li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.sticky-content li::before {
    content: "→";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 2px;
}

.scroll-images {
    flex: 1;
    min-width: 0;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding-top: 1rem;
}

.sticky-action {
    margin-top: 3rem;
}

.scroll-image-item {
    width: 100%;
    background: transparent;
    padding: 0;
    border: none;
}

.scroll-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* Performance & Impact */
.performance-section {
    padding: 8rem 5%;
    border-top: 1px solid var(--glass-border);
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
}

.performance-section h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 3rem;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.benefit-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.benefit-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
}

.results-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
}

.result-item {
    display: grid;
    grid-template-columns: minmax(160px, auto) 1fr;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    padding: 0;
    background: linear-gradient(135deg, #fff 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    color: transparent;
}

/* Next Project */
a.next-project-section {
    display: block;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding: 8rem 5%;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(11, 12, 21, 0.5), rgba(79, 70, 229, 0.05));
    backdrop-filter: blur(10px);
    transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a.next-project-section:hover {
    background: linear-gradient(to bottom, rgba(11, 12, 21, 0.7), rgba(139, 92, 246, 0.15));
    border-top-color: var(--accent-primary);
}

.next-project-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    color: #fff !important;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

a.next-project-section:hover .next-project-title,
a.next-project-section:hover .next-project-title span {
    color: var(--accent-secondary) !important;
}

.next-project-arrow {
    display: inline-block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

a.next-project-section:hover .next-project-arrow {
    transform: translateX(15px);
}

a.next-project-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    background: var(--accent-primary);
    opacity: 0;
    filter: blur(100px);
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

a.next-project-section:hover::before {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.2);
}

/* =========================================
   MEDIA QUERIES (Regroupées)
   ========================================= */
@media (max-width:1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .performance-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pages Projets */
    .project-hero {
        padding-top: 140px;
    }

    .project-hero h1 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .project-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        row-gap: 2rem;
        border-bottom: none;
    }

    .meta-item {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .meta-item::after {
        display: none;
    }

    .meta-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* Sticky Mobile Logic */
    .sticky-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .sticky-content,
    .scroll-images {
        display: contents;
    }

    /* Brise le flux pour réordonner */
    .text-block-1 {
        order: 1;
    }

    .scroll-image-item:nth-child(1) {
        order: 2;
        margin-bottom: 2rem;
    }

    .text-block-2 {
        order: 3;
    }

    .scroll-image-item:nth-child(2) {
        order: 4;
        margin-bottom: 1rem;
    }

    .text-block-3 {
        order: 5;
        margin-bottom: 3rem;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .scroll-image-item:nth-child(n+3) {
        order: 6;
    }

    .about-section,
    .contact-section,
    .projects-section,
    .performance-section {
        padding: 4rem 5% !important;
    }
}

@media (max-width: 768px) {

    /* Hero & Nav */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    a.bento-card,
    a.bento-card.span-2,
    a.bento-card:not(.span-2) {
        height: 380px !important;
        min-height: 380px;
    }

    .floating-obj,
    .floating-car,
    .floating-ball {
        transform: scale(1.15) !important;
        width: 90% !important;
    }

    .floating-car {
        transform: scale(1.25) translateY(10%) !important;
    }

    /* Cartes & Texte */
    .card-content {
        padding: 1.5rem !important;
        background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 10%, transparent 80%) !important;
    }

    .card-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .card-tags {
        top: 1rem;
        left: 1rem;
    }

    .context-section {
        display: none !important;
    }

    /* Project Pages */
    .project-hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .project-hero-image {
        padding: 0 1rem;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 6px 12px;
        letter-spacing: 0.5px;
    }

    .results-grid,
    .result-item {
        grid-template-columns: 1fr;
    }

    .next-project-title {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 3rem;
    }

    .next-project-arrow {
        transform: rotate(90deg);
        margin-top: 1rem;
        font-size: 2.5rem !important;
    }

    .next-project-section:hover .next-project-arrow {
        transform: rotate(90deg) translateY(5px);
    }

    /* Sticky Mobile Tweaks */
    .sticky-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .sticky-content h3:last-of-type {
        display: none;
    }

    .sticky-content ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 2rem;
    }

    .sticky-content li {
        width: auto;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        font-size: 0.8rem;
    }

    .sticky-content li::before {
        content: none;
    }
}

/* =========================================
   SCROLL LOCK & GALERIE
   ========================================= */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

body.no-scroll .desktop-nav,
body.no-scroll .burger-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================
   PROJECT SPECIFIC HEROES
   ========================================= */
.labo-hero {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 30%, rgba(6, 78, 99, 0.25) 0%, transparent 70%), radial-gradient(circle at 80% 10%, rgba(229, 213, 184, 0.08) 0%, transparent 40%);
}

.labo-hero h1 {
    color: #f0f9ff;
    text-shadow: 0 0 30px rgba(6, 78, 99, 0.3);
}

.dewalt-hero {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 70% 20%, rgba(254, 184, 28, 0.15) 0%, transparent 60%), radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.dewalt-hero h1.gradient-text {
    background-image: linear-gradient(135deg, #FFFFFF 0%, #FEB81C 100%);
}


/* =========================================
   MOBILE : BARRE COMPACTE EN HAUT
   ========================================= */

@media (max-width: 768px) {
    .desktop-nav {
        /* 1. Disposition Verticale */
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 15px; 
        bottom: auto;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        min-width: 250px;
        max-width: 90%;
        padding: 0.8rem 1.2rem;
        gap: 0.5rem;
        z-index: 1000;
        border-radius:25px;
        background: rgba(11, 12, 21, 0.9);
        backdrop-filter: blur(16px);
        box-shadow: 0 5px 20px -5px rgba(0,0,0,0.3);
    }

    /* --- LOGO --- */
    .desktop-nav .logo {
        width: 100%;
        text-align: center;
        padding-bottom: 0.5rem; /* Espace réduit */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-right: 0;
    }

    .desktop-nav .logo a {
        font-size: 1.rem; /* Nom plus petit */
        display: block;
    }

    /* --- LIENS --- */
    .links {
        width: 100%;
        justify-content: center; /* Centrés et groupés */
        padding: 0;
    }

    .nav-backdrop {
        display: none;
    }

    .nav-item {
        font-size: 1rem; /* Liens plus petits */
        padding: 0.3rem 0.5rem; /* Zone de clic ajustée */
        color: rgba(255, 255, 255, 0.75);
    }
}