/* ==========================================================================
   STYLE — PORTFOLIO SPATIAL PREMIUM « LÉO » — V3
   Direction artistique : bleu nuit lumineux, or champagne, violet cosmique.
   Finition type keynote : typographie nette, verre lumineux, micro-détails.
   ========================================================================== */

/* --------------------------- DESIGN TOKENS ------------------------------ */
:root {
    /* Fonds — plus clairs, plus riches que le noir pur */
    --bg-deep: #050816;            /* réservé à la profondeur */
    --bg-space: #0a1028;           /* fond principal : bleu nuit lumineux */
    --bg-space-high: #111936;      /* zones éclairées */
    --bg-card: rgba(20, 28, 62, 0.52);
    --bg-card-strong: rgba(24, 33, 72, 0.78);

    /* Or champagne — fil narratif lumineux */
    --gold-primary: #e9c46a;
    --gold-champagne: #f7e8c3;
    --gold-deep: #b08a31;
    --gold-glow: rgba(233, 196, 106, 0.45);
    --gold-glow-weak: rgba(233, 196, 106, 0.14);

    /* Accents cosmiques */
    --violet-cosmic: #8d7bee;
    --violet-glow: rgba(141, 123, 238, 0.16);
    --cyan-accent: #7cd5e8;
    --cyan-glow: rgba(124, 213, 232, 0.14);
    --amber-accent: #ffb454;
    --green-ok: #6ee7a0;

    /* Texte — contraste élevé, lisible */
    --text-white: #f4f6ff;
    --text-silver: #c3cbe4;
    --text-muted: #8893b4;

    /* Typographie */
    --font-display: 'Space Grotesk', 'Outfit', -apple-system, sans-serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-tech: 'Space Grotesk', 'SF Mono', monospace;
    /* compat ancienne nomenclature */
    --font-serif: var(--font-display);
    --font: var(--font-sans);

    /* Structure */
    --header-height: 76px;
    --radius: 16px;
    --radius-sm: 10px;
    --border-radius: var(--radius);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-premium: var(--ease-premium);
    --transition-smooth: var(--ease-smooth);

    /* Verre premium */
    --glass-bg: rgba(20, 28, 62, 0.5);
    --glass-border: rgba(213, 222, 255, 0.10);
    --glass-border-hover: rgba(233, 196, 106, 0.45);
    --glass-highlight: rgba(255, 255, 255, 0.06);
}

/* ------------------------------ BASE ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background-color: var(--bg-space);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) var(--bg-deep);
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-deep), #6e5620);
    border-radius: 9px;
}

::selection { background: rgba(233, 196, 106, 0.3); color: var(--text-white); }

body {
    font-family: var(--font-sans);
    color: var(--text-white);
    background-color: var(--bg-space);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: none;
}

a, button, input, textarea, select { cursor: none; }

:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ------------------- FOND COSMIQUE MULTICOUCHE (CSS) -------------------- */
/* Couche 1 : dégradé bleu nuit lumineux — jamais de noir brut plein écran  */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 120% 80% at 70% -10%, #1b2450 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 10% 110%, #18123c 0%, transparent 55%),
        linear-gradient(165deg, #0b1130 0%, #0a0f28 40%, #0d1233 70%, #080d22 100%);
}

/* Couche 2 : nébuleuse photographique douce */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('assets/textures/nebula_bg.jpg') center / cover no-repeat;
    opacity: 0.5;
    mix-blend-mode: screen;
    pointer-events: none;
}

#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#webgl { width: 100% !important; height: 100% !important; display: block; }

/* Couche lumière ambiante au-dessus du WebGL : nébuleuses colorées douces */
#ambient-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, var(--violet-glow) 0%, transparent 45%),
        radial-gradient(circle at 88% 78%, var(--cyan-glow) 0%, transparent 45%),
        radial-gradient(circle at 50% 115%, var(--gold-glow-weak) 0%, transparent 50%);
    opacity: 0.85;
    transition: background 1.2s ease;
}

/* Fallback sans WebGL : le fond CSS suffit, on densifie les nébuleuses */
body.no-webgl #ambient-glow {
    background:
        radial-gradient(circle at 15% 20%, rgba(141,123,238,0.28) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(124,213,232,0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(233,196,106,0.10) 0%, transparent 60%);
}

/* ------------------------- INTRO CINÉMATIQUE ----------------------------- */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.4s var(--ease-premium), visibility 1.4s;
}

#intro-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Pendant l'intro : on ne voit QUE la scène 3D (planètes) et l'overlay d'intro.
   Tout le contenu du site est masqué, puis arrive en animation après l'intro. */
body.intro-active { overflow: hidden; }
body.intro-active .nav-header,
body.intro-active .scroll-container,
body.intro-active .sidebar-nav,
body.intro-active .audio-control,
body.intro-active .hud-corner,
body.intro-active .site-footer {
    opacity: 0;
    pointer-events: none;
}
.nav-header, .scroll-container, .sidebar-nav, .audio-control, .hud-corner, .site-footer {
    transition: opacity 0.9s var(--ease-premium);
}

/* Couche de fond séparée : s'efface pour révéler la scène 3D pendant le warp */
.intro-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 70% at 50% 30%, #10173a 0%, #070b1d 70%);
    pointer-events: none;
}

.intro-canvas-holder { position: absolute; inset: 0; pointer-events: none; }

/* Lueur dorée qui surgit au loin pendant le warp */
.intro-glow-bg {
    position: absolute;
    left: 50%; top: 50%;
    width: 40vmax; height: 40vmax;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(247, 232, 195, 0.55) 0%,
        rgba(233, 196, 106, 0.22) 28%,
        rgba(141, 123, 238, 0.08) 55%,
        transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    padding: 24px;
}

.intro-telemetry {
    font-family: var(--font-tech);
    font-size: 0.68rem;
    color: var(--cyan-accent);
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    opacity: 0;
    min-height: 1.2em;
}

.intro-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3.6rem, 12vw, 8rem);
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 18px;
    opacity: 0;
    background: linear-gradient(110deg,
        #ffffff 0%, var(--gold-champagne) 35%, #ffffff 50%, var(--gold-champagne) 65%, #f0e6cf 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(233, 196, 106, 0.35));
}

.intro-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(0.7rem, 1.6vw, 0.9rem);
    color: var(--text-silver);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 48px;
    opacity: 0;
}

.intro-progress-bg {
    width: 300px;
    max-width: 70vw;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    margin-bottom: 42px;
    border-radius: 2px;
    overflow: hidden;
}

.intro-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-champagne));
    box-shadow: 0 0 14px var(--gold-primary);
}

#btn-skip-intro {
    opacity: 0.65;
    padding: 11px 24px;
    font-size: 0.68rem;
}
#btn-skip-intro:hover { opacity: 1; }

/* --------------------------- CURSEUR PREMIUM ----------------------------- */
#custom-cursor {
    width: 34px; height: 34px;
    border: 1px solid rgba(233, 196, 106, 0.8);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth),
                background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#custom-cursor-dot {
    width: 5px; height: 5px;
    background-color: var(--gold-champagne);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 12px var(--gold-primary);
}

body.cursor-hover #custom-cursor {
    width: 56px; height: 56px;
    background-color: rgba(233, 196, 106, 0.07);
    border-color: var(--gold-champagne);
    box-shadow: 0 0 22px var(--gold-glow-weak);
}

body.cursor-click #custom-cursor {
    width: 22px; height: 22px;
    background-color: rgba(233, 196, 106, 0.35);
}

/* ------------------------------- HEADER ---------------------------------- */
.nav-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4.5%;
    z-index: 100;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    background: linear-gradient(180deg, rgba(10, 15, 38, 0.78), rgba(10, 15, 38, 0.45));
    border-bottom: 1px solid rgba(213, 222, 255, 0.07);
}

.nav-logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    color: var(--text-white);
}

.logo-gold {
    background: linear-gradient(120deg, var(--gold-champagne), var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot { color: var(--gold-primary); }

.logo-sub {
    font-family: var(--font-tech);
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-left: 12px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-link {
    color: var(--text-silver);
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-champagne);
    text-shadow: 0 0 10px var(--gold-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1.5px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: width 0.35s var(--ease-smooth);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-nav {
    border: 1px solid rgba(233, 196, 106, 0.4);
    padding: 8px 18px;
    border-radius: 99px;
    background: linear-gradient(120deg, rgba(233,196,106,0.10), rgba(233,196,106,0.03));
    transition: all 0.35s var(--ease-smooth);
}
.btn-nav::after { display: none; }
.btn-nav:hover {
    border-color: var(--gold-primary);
    background: rgba(233, 196, 106, 0.14);
    box-shadow: 0 0 18px var(--gold-glow-weak);
}

.header-right-group { display: flex; align-items: center; gap: 26px; }

#app-lang-selector {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(213, 222, 255, 0.14);
    color: var(--text-white);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}
#app-lang-selector:focus, #app-lang-selector:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow-weak);
    color: var(--gold-champagne);
}
#app-lang-selector option { background-color: var(--bg-space); color: var(--text-white); }

.nav-coordinates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    line-height: 1.5;
}
.coord-label { color: var(--text-muted); }
.coord-value { color: var(--cyan-accent); text-shadow: 0 0 6px rgba(124, 213, 232, 0.4); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
    padding: 8px;
}
.toggle-bar {
    width: 24px; height: 1.5px;
    background-color: var(--text-white);
    transition: transform 0.35s var(--ease-smooth);
}

/* ------------------------------ SIDEBAR ---------------------------------- */
.sidebar-nav {
    position: fixed;
    left: 3.2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    pointer-events: none;
}

.scroll-status { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.status-num {
    font-family: var(--font-tech);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
#status-current-num { color: var(--gold-champagne); font-weight: 700; }

.status-bar-bg {
    width: 2px; height: 130px;
    background-color: rgba(213, 222, 255, 0.1);
    position: relative;
    border-radius: 2px;
}
.status-bar-fill {
    width: 100%; height: 0%;
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-champagne));
    position: absolute;
    top: 0; left: 0;
    box-shadow: 0 0 10px var(--gold-primary);
    border-radius: 2px;
}

.sidebar-section-title {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.34em;
    color: var(--gold-champagne);
    text-transform: uppercase;
    opacity: 0.65;
}

/* --------------------------- CONTRÔLE AUDIO ------------------------------ */
.audio-control {
    position: fixed;
    right: 3.2%;
    bottom: 4.5%;
    z-index: 99;
    width: 46px; height: 46px;
    border: 1px solid rgba(213, 222, 255, 0.12);
    border-radius: 50%;
    background: rgba(20, 28, 62, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}
.audio-control:hover {
    border-color: var(--gold-primary);
    color: var(--gold-champagne);
    box-shadow: 0 0 18px var(--gold-glow-weak);
}
.audio-icon { width: 18px; height: 18px; }
.hidden { display: none !important; }

/* ------------------------------ SECTIONS --------------------------------- */
.scroll-container { width: 100%; position: relative; z-index: 10; }

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 110px 8% 90px 11%;
    opacity: 0.25;
    transition: opacity 0.9s var(--ease-premium);
}
.section.active-sec { opacity: 1; }

.section-wrapper {
    width: 100%;
    max-width: 1160px;
    display: flex;
    flex-direction: column;
}

.section-header { margin-bottom: 56px; max-width: 720px; }

.sec-num {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    color: var(--gold-primary);
    letter-spacing: 0.22em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sec-num::after {
    content: '';
    width: 52px; height: 1px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.sec-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--text-white);
    margin-bottom: 14px;
}

.sec-subtitle {
    font-size: 1.02rem;
    color: var(--text-silver);
    font-weight: 300;
    line-height: 1.7;
}

/* ----------------------- SYSTÈME DE VERRE PREMIUM ------------------------ */
.glass-card {
    position: relative;
    background: linear-gradient(150deg, var(--bg-card-strong) 0%, var(--bg-card) 100%);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    transition: border-color 0.45s var(--ease-smooth),
                box-shadow 0.45s var(--ease-smooth),
                transform 0.45s var(--ease-smooth);
    box-shadow:
        0 18px 44px -18px rgba(2, 4, 18, 0.7),
        inset 0 1px 0 var(--glass-highlight);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow:
        0 24px 56px -18px rgba(2, 4, 18, 0.8),
        0 0 36px -6px rgba(233, 196, 106, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ------------------------------ BOUTONS ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 32px;
    border-radius: 99px;
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-premium);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(120deg, var(--gold-primary) 0%, #d9ae4e 50%, var(--gold-champagne) 100%);
    background-size: 200% 100%;
    color: #1a1404;
    font-weight: 600;
    box-shadow: 0 6px 24px -4px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-secondary {
    border: 1px solid rgba(213, 222, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    border-color: var(--gold-primary);
    background: rgba(233, 196, 106, 0.08);
    color: var(--gold-champagne);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px var(--gold-glow);
}

.btn-arrow { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ----------------------------- SECTION HOME ------------------------------ */
.home-wrapper { align-items: center; text-align: center; margin-top: 2vh; }

.tech-tag {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: var(--cyan-accent);
    letter-spacing: 0.28em;
    margin-bottom: 30px;
    padding: 9px 20px;
    border: 1px solid rgba(124, 213, 232, 0.25);
    border-radius: 99px;
    background: rgba(124, 213, 232, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(4rem, 12vw, 8.5rem);
    letter-spacing: 0.1em;
    line-height: 0.95;
    margin-bottom: 26px;
    background: linear-gradient(115deg,
        #ffffff 0%, var(--gold-champagne) 38%, #fffdf6 52%, var(--gold-champagne) 68%, #efe3c4 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 12px 38px rgba(233, 196, 106, 0.28));
    animation: heroShine 9s linear infinite;
}

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

.hero-subtitle {
    font-family: var(--font-tech);
    font-weight: 400;
    font-size: clamp(0.78rem, 2vw, 1.05rem);
    letter-spacing: 0.42em;
    color: var(--text-silver);
    margin-bottom: 36px;
    text-transform: uppercase;
}

.hero-divider {
    width: 70px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto 36px auto;
    box-shadow: 0 0 14px var(--gold-glow);
}

.hero-desc {
    max-width: 640px;
    font-size: clamp(1rem, 1.9vw, 1.16rem);
    font-weight: 300;
    color: var(--text-silver);
    line-height: 1.8;
    margin-bottom: 52px;
}

.hero-cta-group { display: flex; gap: 18px; margin-bottom: 64px; }

.telemetry-panel {
    display: flex;
    gap: 42px;
    background: rgba(20, 28, 62, 0.5);
    border: 1px solid rgba(213, 222, 255, 0.1);
    padding: 14px 34px;
    border-radius: 99px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    box-shadow: 0 12px 34px -16px rgba(2, 4, 18, 0.8), inset 0 1px 0 var(--glass-highlight);
}
.tel-label { color: var(--text-muted); }
.tel-val { color: var(--cyan-accent); }
.green-glow { color: var(--green-ok) !important; text-shadow: 0 0 9px rgba(110, 231, 160, 0.5); }

.scroll-indicator {
    position: absolute;
    bottom: 4.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.scroll-text {
    font-family: var(--font-tech);
    font-size: 0.62rem;
    letter-spacing: 0.26em;
    color: var(--text-muted);
}
.mouse-icon {
    width: 23px; height: 37px;
    border: 1.5px solid rgba(213, 222, 255, 0.25);
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 3px; height: 7px;
    background-color: var(--gold-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--gold-glow);
    animation: scrollMouse 1.8s infinite ease-in-out;
}
@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    55% { transform: translate(-50%, 9px); opacity: 0.25; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ----------------------------- SECTION ABOUT ----------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: center;
}

.about-lead {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--gold-champagne);
    margin-bottom: 28px;
}

.about-p {
    font-size: 1.05rem;
    color: var(--text-silver);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-stats-col { display: flex; flex-direction: column; gap: 18px; }

.stat-card { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 26px; }

.stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    background: linear-gradient(120deg, var(--gold-champagne), var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(233, 196, 106, 0.25));
}

.stat-lbl {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: var(--text-silver);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------------------------- SECTION SKILLS ----------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--skill-accent, var(--cyan-accent)), transparent 70%);
    opacity: 0.4;
    transition: opacity 0.35s ease;
}
.skill-card:hover::before { opacity: 1; }

.skill-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-cat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(213, 222, 255, 0.1);
    color: var(--skill-accent, var(--cyan-accent));
    flex-shrink: 0;
}
.skill-cat-icon svg { width: 18px; height: 18px; }

.skill-title {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-white);
}

.skill-count {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.skill-tag {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold-champagne);
    background: rgba(233, 196, 106, 0.08);
    border: 1px solid rgba(233, 196, 106, 0.18);
    padding: 6px 13px;
    border-radius: 99px;
    transition: all 0.3s var(--ease-smooth);
}
.skill-tag:hover {
    background: rgba(233, 196, 106, 0.16);
    border-color: rgba(233, 196, 106, 0.45);
    transform: translateY(-1px);
}

/* --------------------------- SECTION PROJECTS ---------------------------- */
.projects-wrapper { max-width: 1300px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 430px;
    position: relative;
    border: 1px solid var(--glass-border);
    background: linear-gradient(155deg, var(--bg-card-strong), var(--bg-card));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-decoration: none;
    color: var(--text-white);
    transition: border-color 0.45s var(--ease-premium),
                box-shadow 0.45s var(--ease-premium),
                transform 0.45s var(--ease-premium);
    transform-style: preserve-3d;
    box-shadow: 0 18px 44px -18px rgba(2, 4, 18, 0.7), inset 0 1px 0 var(--glass-highlight);
}

.project-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow:
        0 28px 64px -20px rgba(2, 4, 18, 0.85),
        0 0 44px -8px rgba(233, 196, 106, 0.2);
}

.project-card-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(213, 222, 255, 0.06);
    background: linear-gradient(135deg, #141c3e 0%, #1c1442 55%, #10173a 100%);
}

.project-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-premium), filter 0.7s ease;
    filter: saturate(1.05);
}

.project-card:hover .project-card-image img {
    transform: scale(1.06);
    filter: saturate(1.15) brightness(1.06);
}

.project-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-planet {
    width: 86px; height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, var(--ph-light, #3a3f8a), var(--ph-dark, #131642) 75%);
    border: 1px solid rgba(233, 196, 106, 0.3);
    box-shadow: 0 0 34px var(--gold-glow-weak), inset -10px -10px 30px rgba(0,0,0,0.55);
}

.project-img-overlay-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 10, 28, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 50% 0%, rgba(233, 196, 106, 0.08), transparent 60%);
    pointer-events: none;
}

.project-tech-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(7, 10, 28, 0.72);
    border: 1px solid rgba(233, 196, 106, 0.5);
    color: var(--gold-champagne);
    font-family: var(--font-tech);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 99px;
    letter-spacing: 0.14em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}

.project-card-info {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 18px;
}

.project-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-white);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-silver);
    font-weight: 300;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(213, 222, 255, 0.07);
}

.project-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.project-btn-text {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold-champagne);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.project-btn-arrow { width: 13px; height: 13px; transition: transform 0.3s ease; }

.project-card:hover .project-title { color: var(--gold-champagne); }
.project-card:hover .project-btn-arrow { transform: translateX(5px); }

/* -------------------------- SECTION EXPERIENCE --------------------------- */
.timeline-container {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(213, 222, 255, 0.09);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 0%;
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-champagne));
    box-shadow: 0 0 12px var(--gold-primary);
    border-radius: 2px;
}

.timeline-event {
    width: 100%;
    margin-bottom: 56px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    opacity: 0.45;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}
.timeline-event.active { opacity: 1; transform: translateY(0); }
.timeline-event:nth-child(even) { justify-content: flex-start; }

.timeline-node {
    position: absolute;
    left: 50%; top: 28px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background-color: var(--bg-space);
    border: 2px solid rgba(213, 222, 255, 0.25);
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: all 0.5s ease;
}
.timeline-node::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    background: transparent;
    border-radius: 50%;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}
.timeline-event.active .timeline-node {
    border-color: var(--gold-primary);
    box-shadow: 0 0 18px var(--gold-glow);
}
.timeline-event.active .timeline-node::after { background-color: var(--gold-champagne); }

.timeline-content { width: 45.5%; position: relative; }

.timeline-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.timeline-logo {
    width: 46px; height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(213, 222, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.timeline-logo-fallback {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--gold-champagne);
    background: linear-gradient(140deg, rgba(233,196,106,0.18), rgba(233,196,106,0.05));
    border: 1px solid rgba(233, 196, 106, 0.3);
    flex-shrink: 0;
}

.timeline-date {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.timeline-loc {
    font-family: var(--font-tech);
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.timeline-org {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--text-white);
    line-height: 1.25;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--gold-champagne);
    font-weight: 400;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-silver);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 16px;
    white-space: pre-line;
}

.timeline-skills-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------- SECTION ÉDUCATION ---------------------------- */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    height: 100%;
}

.edu-head { display: flex; align-items: center; gap: 16px; }

.edu-logo {
    width: 52px; height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(213, 222, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.test-quote {
    font-size: 0.98rem;
    color: var(--text-silver);
    font-weight: 300;
    line-height: 1.8;
    white-space: pre-line;
}

.test-meta { display: flex; flex-direction: column; gap: 3px; }

.test-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold-champagne);
}

.test-role {
    font-family: var(--font-tech);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ---------------------------- SECTION CONTACT ---------------------------- */
.contact-wrapper { position: relative; }

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
    align-items: flex-start;
}

.contact-info-col { display: flex; flex-direction: column; gap: 18px; }

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    text-decoration: none;
}

.info-icon {
    width: 46px; height: 46px;
    background: linear-gradient(140deg, rgba(233,196,106,0.14), rgba(233,196,106,0.04));
    border: 1px solid rgba(233, 196, 106, 0.25);
    border-radius: 50%;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }

.info-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.info-label {
    font-family: var(--font-tech);
    font-size: 0.64rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
}

.info-value {
    font-size: 0.96rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.info-value:hover, .hover-gold:hover { color: var(--gold-champagne); }

.contact-form { display: flex; flex-direction: column; gap: 22px; padding: 36px; }

.form-row { width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 9px; }

.form-group label {
    font-family: var(--font-tech);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--gold-champagne);
    letter-spacing: 0.18em;
}

.form-group input, .form-group textarea {
    background: rgba(7, 10, 28, 0.45);
    border: 1px solid rgba(213, 222, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow-weak), 0 0 18px var(--gold-glow-weak);
    background: rgba(7, 10, 28, 0.6);
}

.btn-submit { align-self: flex-start; border: none; }

.form-status { font-family: var(--font-tech); font-size: 0.74rem; letter-spacing: 0.08em; min-height: 1.2em; }

.contact-cv-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.contact-cv-row .btn { padding: 12px 24px; font-size: 0.7rem; }

/* ------------------------------- FOOTER ----------------------------------- */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 34px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(213, 222, 255, 0.07);
    background: rgba(7, 10, 28, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-tech);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.site-footer a { color: var(--text-silver); text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: var(--gold-champagne); }
.footer-sig { display: flex; align-items: center; gap: 8px; }
.footer-sig .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 8px var(--gold-glow); }

/* --------------------- COINS HUD (panneaux techniques) -------------------- */
.hud-corner {
    position: fixed;
    width: 26px; height: 26px;
    border-color: rgba(233, 196, 106, 0.28);
    border-style: solid;
    z-index: 98;
    pointer-events: none;
}
.hud-tl { top: calc(var(--header-height) + 14px); left: 18px; border-width: 1px 0 0 1px; }
.hud-tr { top: calc(var(--header-height) + 14px); right: 18px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: 18px; left: 18px; border-width: 0 0 1px 1px; }
.hud-br { bottom: 18px; right: 18px; border-width: 0 1px 1px 0; }

/* ----------------------- ACCESSIBILITÉ & MOUVEMENT ------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
    .section { opacity: 1 !important; }
    .timeline-event { opacity: 1; transform: none; }
}

/* ------------------------------ RESPONSIVE -------------------------------- */
@media (max-width: 1024px) {
    body { cursor: auto; }
    a, button, input, textarea, select { cursor: pointer; }
    #custom-cursor, #custom-cursor-dot { display: none !important; }

    .nav-header { padding: 0 5%; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(76vw, 380px);
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 15, 38, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 38px;
        padding-left: 11%;
        transition: right 0.5s var(--ease-premium);
        z-index: 100;
        border-left: 1px solid rgba(233, 196, 106, 0.2);
    }
    .nav-links.mobile-open { right: 0; }
    .nav-link { font-size: 0.9rem; }

    .nav-toggle { display: flex; }
    .nav-coordinates { display: none; }
    .nav-toggle.active .toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.active .toggle-bar:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

    .sidebar-nav, .hud-corner { display: none; }

    .section { padding: 110px 6% 70px 6%; }

    .about-grid { grid-template-columns: 1fr; gap: 38px; }
    .about-stats-col { flex-direction: row; flex-wrap: wrap; }
    .about-stats-col .stat-card { flex: 1 1 140px; }

    .contact-grid { grid-template-columns: 1fr; gap: 36px; }

    .timeline-line { left: 20px; }
    .timeline-event, .timeline-event:nth-child(even) { justify-content: flex-start; padding-left: 48px; }
    .timeline-content { width: 100%; }
    .timeline-node { left: 20px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .sec-title { font-size: 1.85rem; }
    .hero-name { font-size: clamp(3.2rem, 17vw, 4.6rem); }
    .hero-subtitle { letter-spacing: 0.28em; }

    .hero-cta-group { flex-direction: column; width: 100%; max-width: 340px; gap: 14px; }
    .btn { width: 100%; }
    .btn-submit { width: auto; }

    .telemetry-panel {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        border-radius: 18px;
        padding: 16px 28px;
    }

    .skills-grid, .projects-grid, .testimonials-container { grid-template-columns: 1fr; }
    .project-card { min-height: 0; }
    .contact-form { padding: 26px; }
    .scroll-indicator { display: none; }
    .site-footer { flex-direction: column; text-align: center; }
}
