/* ============================================================
   Heriol Valdo Zeufack — Portfolio IA & Data
   Design moderne : dark, glassmorphism, neural, animations
   ============================================================ */

:root {
    /* Couleurs de fond */
    --bg: #07070f;
    --bg-2: #0c0c1d;
    --bg-card: rgba(20, 21, 43, 0.55);
    --bg-card-solid: #12132a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(124, 131, 255, 0.5);

    /* Accents IA */
    --primary: #7c5cff;
    --primary-2: #00d4ff;
    --accent: #ff5cf0;
    --grad: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
    --grad-text: linear-gradient(120deg, #a78bff 0%, #00d4ff 50%, #ff5cf0 100%);
    --grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(0,212,255,.10));

    /* Texte */
    --text: #f2f3ff;
    --text-soft: #b6b9d8;
    --text-dim: #777a9c;

    /* UI */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 10px 40px -10px rgba(124, 92, 255, 0.5);
    --trans: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1180px;

    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fond global : nébuleuse */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 12% 8%, rgba(124, 92, 255, 0.16), transparent 45%),
        radial-gradient(700px circle at 88% 18%, rgba(0, 212, 255, 0.12), transparent 45%),
        radial-gradient(600px circle at 50% 100%, rgba(255, 92, 240, 0.08), transparent 45%);
    z-index: -2;
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

/* ===== Curseur lumineux ===== */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.12), transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
    will-change: transform;
}

/* ===== Barre de progression ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad);
    z-index: 1000;
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 1.1rem 0;
    transition: var(--trans);
}
.navbar.scrolled {
    background: rgba(8, 8, 18, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
}
.brand-logo {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: var(--shadow-glow);
}
.brand-dot { color: var(--primary-2); }
.brand-name { color: var(--text); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-link {
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--trans);
}
.nav-link i { font-size: 0.85rem; margin-right: 0.25rem; opacity: 0.7; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active {
    color: var(--text);
    background: var(--grad-soft);
    border: 1px solid var(--border-hover);
}
.nav-cta {
    margin-left: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    background: var(--grad);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    transition: var(--trans);
}
.nav-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.nav-cta i { transition: transform 0.3s; }
.nav-cta:hover i { transform: translateX(4px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    overflow: hidden;
}
.neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.7;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, transparent, var(--bg) 75%);
    z-index: 1;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
}
.hero-content {
    max-width: 620px;
}

/* Visuel / animation Lottie */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 380px;
}
.hero-visual lottie-player {
    position: relative;
    z-index: 2;
    max-width: 480px;
}
.hero-visual-glow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 75%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.28), rgba(0, 212, 255, 0.12) 45%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    animation: floatGlow 6s ease-in-out infinite;
}
@keyframes floatGlow {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
    50% { transform: translateY(-14px) scale(1.05); opacity: 1; }
}
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #5af2a0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.6rem;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2ed573;
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(46, 213, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}
.hero-greeting {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-mono);
}
.hero-greeting i { color: var(--accent); }
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.3rem;
}
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}
.typed-wrap { display: inline-flex; align-items: baseline; }
.type-cursor {
    color: var(--primary-2);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 1.8rem;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2.4rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.05rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: var(--trans);
}
.badge:hover { border-color: var(--border-hover); color: var(--text); transform: translateY(-2px); }
.badge i { color: var(--primary-2); }

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ===== Stats ===== */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8rem;
}
.stat { position: relative; }
.stat-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-plus {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-2);
}
.stat-label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-top: 0.1rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-soft);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    animation: bounce 2s infinite;
    transition: var(--trans);
}
.scroll-down:hover { color: var(--text); border-color: var(--border-hover); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.7rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.97rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--trans);
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 16px 50px -10px rgba(124, 92, 255, 0.7); }
.btn-ghost {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-3px); background: var(--grad-soft); }
.btn-large { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn-loading {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none !important;
    filter: none !important;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 50%, transparent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--grad-soft);
    border: 1px solid var(--border-hover);
    color: var(--primary-2);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.1rem;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}
.section-desc { color: var(--text-soft); font-size: 1.08rem; }

/* ===== Expertise grid ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.6rem;
}
.glass-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: var(--trans);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,255,.6), transparent);
    opacity: 0;
    transition: var(--trans);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}
.glass-card:hover::before { opacity: 1; }
.card-icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 16px;
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
    color: #fff;
    transition: var(--trans);
}
.glass-card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }
.icon-ai { background: linear-gradient(135deg, #7c5cff, #b15cff); }
.icon-data { background: linear-gradient(135deg, #00d4ff, #0099ff); }
.icon-science { background: linear-gradient(135deg, #ff5cf0, #ff5c9d); }
.icon-dev { background: linear-gradient(135deg, #2ed573, #1abc9c); }
.icon-cloud { background: linear-gradient(135deg, #ffa502, #ff6348); }
.icon-mgmt { background: linear-gradient(135deg, #5c7cff, #5cd6ff); }
.glass-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 0.6rem; }
.glass-card > p { color: var(--text-soft); margin-bottom: 1.2rem; font-size: 0.96rem; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.32rem 0;
    color: var(--text-soft);
    font-size: 0.93rem;
}
.feature-list i { color: var(--primary-2); font-size: 0.78rem; }

/* ===== Stack ===== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.stack-block {
    padding: 1.8rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    transition: var(--trans);
}
.stack-block:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.stack-block h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.stack-block h4 i { color: var(--primary-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-soft);
    font-family: var(--font-mono);
    transition: var(--trans);
}
.chip:hover {
    color: var(--text);
    background: var(--grad-soft);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.chip i { color: var(--primary-2); }

/* ===== Architecture médaillon ===== */
.medallion {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.medal-card {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
}
.medal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.medal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.medal-badge {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #fff;
}
.medal-tier {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.7rem;
}
.medal-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.5rem; }
.medal-card p { color: var(--text-soft); font-size: 0.92rem; }
.medal-bronze::before { background: linear-gradient(90deg, #cd7f32, #e8a87c); }
.medal-bronze .medal-badge { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.medal-bronze .medal-tier { background: rgba(205, 127, 50, 0.16); color: #e8a87c; }
.medal-silver::before { background: linear-gradient(90deg, #9ca3af, #e5e7eb); }
.medal-silver .medal-badge { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.medal-silver .medal-tier { background: rgba(203, 213, 225, 0.16); color: #cbd5e1; }
.medal-gold::before { background: linear-gradient(90deg, #ffd700, #ffb800); }
.medal-gold .medal-badge { background: linear-gradient(135deg, #ffd700, #f59e0b); color: #5a3e00; }
.medal-gold .medal-tier { background: rgba(255, 215, 0, 0.16); color: #ffd700; }
.medal-arrow {
    display: grid;
    place-items: center;
    color: var(--primary-2);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.medallion-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
}
@media (max-width: 760px) {
    .medal-arrow { transform: rotate(90deg); width: 100%; padding: 0.3rem 0; }
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-2), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bg-card-solid);
    border: 2px solid var(--primary);
    color: var(--primary-2);
    font-size: 0.7rem;
    z-index: 2;
}
.timeline-card {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    transition: var(--trans);
}
.timeline-card:hover { border-color: var(--border-hover); transform: translateX(6px); }
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--primary-2);
    margin-bottom: 0.5rem;
}
.timeline-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.3rem; }
.timeline-company { color: var(--text-soft); font-weight: 500; margin-bottom: 0.7rem; font-size: 0.92rem; }
.timeline-company i { color: var(--text-dim); margin-right: 0.3rem; }
.timeline-card > p:last-child { color: var(--text-soft); font-size: 0.94rem; }

/* ===== Education grid ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.edu-card {
    padding: 1.7rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    text-align: center;
    transition: var(--trans);
}
.edu-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.edu-icon {
    width: 52px; height: 52px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border-hover);
    color: var(--primary-2);
    font-size: 1.3rem;
}
.edu-year {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-2);
    background: rgba(124, 92, 255, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.7rem;
}
.edu-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 0.3rem; }
.edu-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ===== CTA ===== */
.cta-section { padding: 5rem 0 7rem; }
.cta-card {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 28px;
    background: var(--grad-soft);
    border: 1px solid var(--border-hover);
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 60%);
    pointer-events: none;
}
.cta-card h2 {
    position: relative;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.cta-card p { position: relative; color: var(--text-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-card .cta-buttons { position: relative; justify-content: center; margin-bottom: 0; }

/* ============================================================
   PAGE CV
   ============================================================ */
.cv-section { padding: 8rem 0 6rem; }
.cv-hero {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 2.2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.cv-avatar {
    width: 90px; height: 90px;
    display: grid; place-items: center;
    border-radius: 22px;
    background: var(--grad);
    color: #fff;
    font-size: 2.4rem;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}
.cv-hero-text { flex: 1; min-width: 250px; }
.cv-hero-text h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.4rem; }
.cv-subtitle { color: var(--primary-2); font-weight: 600; margin-bottom: 0.7rem; font-size: 1.05rem; }
.cv-subtitle i { margin-right: 0.4rem; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--text-dim); font-size: 0.9rem; }
.cv-meta i { color: var(--primary); margin-right: 0.35rem; }
.cv-dl-top { flex-shrink: 0; }

.cv-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.6rem;
    align-items: start;
}
.cv-left { display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 90px; }
.cv-right { display: flex; flex-direction: column; gap: 1.6rem; }
.cv-card {
    padding: 1.7rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    transition: var(--trans);
}
.cv-card:hover { border-color: var(--border-hover); }
.cv-card-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.cv-card-title i { color: var(--primary-2); }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    word-break: break-word;
}
.contact-list i { color: var(--primary-2); width: 18px; text-align: center; }
.contact-list a:hover { color: var(--primary-2); }

.lang-item { margin-bottom: 1rem; }
.lang-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.92rem; }
.lang-level { color: var(--text-dim); font-size: 0.85rem; }
.lang-bar { height: 7px; border-radius: 50px; background: rgba(255,255,255,0.06); overflow: hidden; }
.lang-bar span { display: block; height: 100%; border-radius: 50px; background: var(--grad); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.83rem;
    color: var(--text-soft);
    transition: var(--trans);
}
.tag:hover { background: var(--grad-soft); border-color: var(--border-hover); color: var(--text); }
.tag i { color: var(--primary-2); }

.interest-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}
.interest-list i { color: var(--primary-2); width: 18px; text-align: center; }

.exp-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.exp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.exp-head h4 { font-family: var(--font-head); font-size: 1.12rem; }
.exp-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-2);
    background: rgba(124, 92, 255, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}
.exp-company { color: var(--text-soft); font-weight: 500; margin-bottom: 0.8rem; font-size: 0.92rem; }
.exp-company i { color: var(--text-dim); margin-right: 0.3rem; }
.exp-list li {
    position: relative;
    padding-left: 1.4rem;
    padding-bottom: 0.4rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}
.exp-list li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}
.cv-subtitle-sm {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
    margin: 1.3rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cv-subtitle-sm:first-of-type { margin-top: 0; }
.cv-subtitle-sm i { color: var(--primary-2); }

.edu-line {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
}
.edu-line:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.edu-dot {
    flex-shrink: 0;
    width: 12px; height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}
.edu-line h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.2rem; }
.edu-line p { color: var(--text-soft); font-size: 0.9rem; }
.edu-line strong { color: var(--primary-2); }

.cv-download {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-section { padding: 8rem 0 6rem; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.8rem;
    align-items: start;
}
.contact-info {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border: none; }
.contact-detail-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--grad-soft);
    border: 1px solid var(--border-hover);
    color: var(--primary-2);
    font-size: 1.1rem;
}
.contact-detail h4 { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-detail a, .contact-detail p { color: var(--text); font-weight: 500; }
.contact-detail a:hover { color: var(--primary-2); }
.contact-socials { display: flex; gap: 0.6rem; margin-top: 0.3rem; }
.contact-socials a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: var(--trans);
}
.contact-socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.response-badge {
    margin-top: 1.5rem;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.25);
    color: #5af2a0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-form-wrapper {
    padding: 2.2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-group label i { color: var(--primary-2); font-size: 0.85rem; }
.form-group input,
.form-group textarea {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--trans);
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(124, 92, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}
.form-note { color: var(--text-dim); font-size: 0.85rem; text-align: center; }
.error-message { color: #ff6b6b; font-size: 0.83rem; }
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.93rem;
}
.alert-success { background: rgba(46, 213, 115, 0.1); border: 1px solid rgba(46, 213, 115, 0.3); color: #5af2a0; }
.alert-error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.3); color: #ff9b9b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 200px;
    background: radial-gradient(ellipse, rgba(124, 92, 255, 0.15), transparent 70%);
    pointer-events: none;
}
.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-tagline { color: var(--text-soft); margin: 1rem 0 1.3rem; max-width: 320px; font-size: 0.94rem; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: var(--trans);
}
.footer-socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-links h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 1.1rem; }
.footer-links a, .footer-loc {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    transition: var(--trans);
}
.footer-links a:hover { color: var(--primary-2); transform: translateX(4px); }
.footer-links i { color: var(--primary); font-size: 0.8rem; width: 16px; }
.footer-bottom {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.87rem;
}
.footer-made i { color: var(--accent); margin: 0 0.15rem; }

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--trans);
    z-index: 800;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); filter: brightness(1.1); }

/* ============================================================
   ANIMATIONS REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE 404
   ============================================================ */
.error-section {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8rem 0 4rem;
}
.error-code {
    font-family: var(--font-head);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-title { font-family: var(--font-head); font-size: 1.8rem; margin: 1rem 0 0.6rem; }
.error-message { color: var(--text-soft); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero-content { max-width: 640px; order: 2; }
    .hero-visual { order: 1; min-height: 240px; margin-bottom: 0.5rem; }
    .hero-visual lottie-player { max-width: 300px; }
    .cv-content { grid-template-columns: 1fr; }
    .cv-left { position: static; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 1.5rem 2rem;
        gap: 0.6rem;
        background: rgba(10, 10, 22, 0.96);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 905;
    }
    .nav-menu.open { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-link { display: block; width: 100%; }
    .nav-cta { display: block; margin-left: 0; text-align: center; margin-top: 0.5rem; }
    .nav-toggle { display: flex; z-index: 910; }

    .hero { padding-top: 6rem; }
    .hero-stats { gap: 1.8rem; }
    .stat-num { font-size: 2.1rem; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .cv-hero { flex-direction: column; text-align: center; }
    .cv-meta { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 4rem 0; }
    .back-to-top { bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
    .container { width: 92%; }
    .hero-stats { flex-direction: column; gap: 1.2rem; }
    .glass-card, .stack-block, .cv-card, .contact-form-wrapper, .contact-info { padding: 1.4rem; }
}

/* Réduction des animations si demandé */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
