/* ============================================
   THÉOTIME SYLVAIN H. HOUEHA - Portfolio
   Design Système : Prestige Institutionnel
   Palette : Or · Marine · Ivoire
   Typo : Playfair Display + DM Sans
   ============================================ */

:root {
    --gold: #c9a84c;
    --gold-light: #e2c470;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --navy: #0b1628;
    --navy-mid: #0f2040;
    --navy-soft: #162b4d;
    --ivory: #f8f5ee;
    --ivory-dim: #ede8dc;

    --bg: #08111f;
    --bg-surface: #0d1e35;
    --bg-alt: #0a1a2f;
    --bg-card: #0f2040;
    --text: #e8e2d5;
    --text-muted: #7a96b5;
    --text-dim: #3d5a78;
    --border: rgba(201, 168, 76, 0.12);
    --border-soft: rgba(255,255,255,0.06);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 60px rgba(201, 168, 76, 0.08);
}

[data-theme="light"] {
    --bg: #f4f1ea;
    --bg-surface: #ffffff;
    --bg-alt: #ede8dc;
    --bg-card: #ffffff;
    --text: #0d1e35;
    --text-muted: #4a6180;
    --text-dim: #a0b0c0;
    --border: rgba(201, 168, 76, 0.25);
    --border-soft: rgba(15, 32, 64, 0.08);
    --shadow-card: 0 4px 24px rgba(13, 30, 53, 0.10);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.06);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
.container { width: min(92%, 1160px); margin: 0 auto; }

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-crest {
    width: 72px; height: 72px;
    color: var(--gold);
    animation: loader-spin 2s linear infinite;
}
.loader-crest svg { width: 100%; height: 100%; }
@keyframes loader-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loader-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    opacity: 0.8;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(8, 17, 31, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
[data-theme="light"] .navbar { background: rgba(244, 241, 234, 0.85); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
    width: min(92%, 1160px);
    margin: 0 auto;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text);
    transition: color 0.3s;
    flex-shrink: 0;
}
.logo-initials { color: var(--gold); font-weight: 500; }
.logo-dot { color: var(--text-dim); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-controls { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s;
    position: relative;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-icon { position: absolute; transition: opacity 0.3s, transform 0.3s; }
.theme-icon.sun { opacity: 1; transform: scale(1); }
.theme-icon.moon { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-icon.sun { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-icon.moon { opacity: 1; transform: scale(1); }
.mobile-menu-btn {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 0;
    border-top: 1px solid var(--border-soft);
}
.mobile-menu.open { display: flex; }
.mobile-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 5%;
    border-bottom: 1px solid var(--border-soft);
    transition: color 0.3s, padding-left 0.3s;
    text-align: center;
}
.mobile-link:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(ellipse, rgba(22, 43, 77, 0.8) 0%, transparent 70%);
    bottom: 0; right: -50px;
}
.hero-content {
    position: relative; z-index: 1;
    width: min(92%, 900px);
    margin: 0 auto;
    text-align: center;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    justify-content: center;
    flex-wrap: wrap;
}
.eyebrow-line {
    flex: 1; max-width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-name {
    font-family: 'Playfair Display', serif;
    display: flex; flex-direction: column; align-items: center;
    line-height: 1.1; margin-bottom: 24px;
}
.name-line { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; color: var(--text); }
.name-accent {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    text-shadow: 0 0 60px rgba(201,168,76,0.3);
}
.hero-title {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px;
    justify-content: center;
    flex-wrap: wrap;
}
.title-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--navy-mid);
    background: var(--gold);
    padding: 4px 12px; border-radius: 2px;
}
.hero-title p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 300; color: var(--text-muted); letter-spacing: 0.04em; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; text-align: center; line-height: 1.75; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-contacts {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 40px; justify-content: center;
}
.contact-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s;
}
.contact-pill:hover { border-color: var(--gold); color: var(--text); }
.contact-pill i { color: var(--gold); font-size: 0.75rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: var(--gold); color: var(--navy);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    border-radius: 3px; letter-spacing: 0.04em;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.35); }
.btn-gold i { font-size: 0.8rem; transition: transform 0.3s; }
.btn-gold:hover i { transform: translateX(4px); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: transparent; color: var(--text);
    text-decoration: none; font-weight: 500; font-size: 0.9rem;
    border-radius: 3px; border: 1px solid var(--border);
    letter-spacing: 0.04em;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ============================================
   KPI BAND
   ============================================ */
.kpi-band {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.kpi-inner {
    width: min(92%, 1160px);
    margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 0;
}
.kpi-item {
    flex: 1; min-width: 140px;
    text-align: center; padding: 20px 24px;
}
.kpi-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: inline-block;
}
.kpi-plus {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: var(--gold);
    display: inline-block; vertical-align: super; font-weight: 700;
}
.kpi-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700; color: var(--gold);
    line-height: 1; margin-bottom: 2px;
}
.kpi-label {
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-muted); letter-spacing: 0.06em;
    text-transform: uppercase; margin-top: 8px; line-height: 1.5;
}
.kpi-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section { padding: 50px 0; }
.section-alt { background: var(--bg-surface); }
[data-theme="light"] .section-alt { background: var(--bg-alt); }

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--text); margin-bottom: 20px; line-height: 1.2;
}
.section-intro {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 700px; line-height: 1.75; margin-bottom: 48px;
}

/* Sous-titre de section */
.subsection-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}
.subsection-title i { color: var(--gold); }

/* ============================================
   PROFIL
   ============================================ */
.profil-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}
.profil-portrait {
    position: sticky; top: 100px;
    display: flex; flex-direction: column; gap: 32px;
}
.portrait-frame {
    width: 240px; height: 240px;
    margin: 0 auto;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.portrait-initials {
    width: 180px; height: 180px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--navy-soft) 100%);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; font-weight: 700; color: var(--gold);
    z-index: 2; position: relative;
    box-shadow: 0 0 40px rgba(201,168,76,0.15);
}
.portrait-ring { position: absolute; border-radius: 50%; border: 1px solid var(--gold); }
.ring-1 { width: 210px; height: 210px; opacity: 0.15; animation: ring-pulse 3s ease-in-out infinite; }
.ring-2 { width: 240px; height: 240px; opacity: 0.07; animation: ring-pulse 3s ease-in-out infinite 1s; }
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.02); opacity: 0.25; }
}
.portrait-badge-bottom {
    position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--navy);
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; font-weight: 500;
    padding: 4px 12px; border-radius: 20px;
    white-space: nowrap; z-index: 3;
    display: flex; align-items: center; gap: 6px;
}
.profil-infos {
    display: flex; flex-direction: column; gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
}
.info-line {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
}
.info-line:last-child { border-bottom: none; }
.info-key {
    width: 100px; flex-shrink: 0;
    padding: 11px 12px;
    background: var(--bg-surface); color: var(--text-dim);
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.info-val { flex: 1; padding: 11px 14px; color: var(--text); line-height: 1.4; font-size: 0.83rem; }
.info-active { color: #4ade80; font-weight: 500; }
.profil-text { display: flex; flex-direction: column; gap: 20px; }
.profil-intro {
    font-size: 1.1rem; font-weight: 400; color: var(--text); line-height: 1.75;
    padding-bottom: 20px; border-bottom: 1px solid var(--border-soft);
}
.profil-text p { font-size: 0.97rem; color: var(--text-muted); line-height: 1.8; }
.profil-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profil-tags span {
    padding: 5px 14px;
    border: 1px solid var(--gold); border-radius: 2px;
    font-size: 0.78rem; color: var(--gold);
    font-family: 'DM Mono', monospace; letter-spacing: 0.05em;
}

/* ============================================
   EDU MINI CARDS (scolarité)
   ============================================ */
.edu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.edu-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 5px;
    transition: border-color 0.3s, transform 0.2s;
}
.edu-mini-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.edu-mini-year {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.1em;
    color: var(--gold); font-weight: 500;
}
.edu-mini-name { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.3; }
.edu-mini-diploma {
    font-size: 0.76rem; color: var(--text-muted); font-style: italic;
    padding: 2px 8px;
    background: var(--gold-dim);
    border-radius: 2px;
    display: inline-block; width: fit-content;
    margin-top: 4px;
}

/* ============================================
   TIMELINE V2 — Dates en HAUT (nouvelle version)
   ============================================ */
.edu-timeline-v2 {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 0;
}

/* Ligne verticale centrale */
.edu-timeline-v2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 32px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), var(--border));
    opacity: 0.3;
    transform: translateX(-50%);
}

.etv2-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.etv2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.etv2-date-pill {
    background: var(--gold);
    color: var(--navy);
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(201,168,76,0.3);
    white-space: nowrap;
}

.etv2-connector-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--bg);
    box-shadow: 0 0 14px rgba(201,168,76,0.5);
    flex-shrink: 0;
}

.etv2-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 32px;
    display: flex; gap: 18px;
    width: 100%;
    max-width: 760px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.etv2-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.etv2-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.1rem;
}

.etv2-content { flex: 1; }
.etv2-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    margin-bottom: 6px; line-height: 1.3;
}
.etv2-institution { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 14px; }

.etv2-sub-years {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.etv2-sub-years span {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    padding: 3px 10px; border-radius: 20px;
}

.etv2-diplomas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.etv2-diploma-tag {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.84rem; color: var(--text-muted);
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    transition: border-color 0.3s;
}
.etv2-diploma-tag i { color: var(--gold); font-size: 0.8rem; }
.etv2-diploma-tag.highlight {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--text);
    font-weight: 500;
}
.etv2-note {
    font-size: 0.84rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

/* Certif banner */
.certif-banner {
    display: flex; align-items: center; gap: 24px;
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--bg-card) 100%);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 28px 36px;
    margin-top: 48px;
    position: relative; overflow: hidden;
    flex-wrap: wrap;
}
.certif-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--gold-dim), transparent);
    pointer-events: none;
}
.certif-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.certif-content h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.certif-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.certif-list { display: flex; flex-direction: column; gap: 6px; }
.certif-lieu {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem; color: var(--gold);
    display: flex; align-items: center; gap: 6px;
}
.certif-stamp {
    margin-left: auto;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem; letter-spacing: 0.25em;
    color: var(--gold); border: 2px solid var(--gold);
    padding: 8px 16px; border-radius: 2px;
    opacity: 0.7; transform: rotate(-3deg);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   EXPÉRIENCES
   ============================================ */
.exp-list { display: flex; flex-direction: column; gap: 20px; }
.exp-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 6px; overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.exp-item:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.exp-item.featured { border-color: var(--border); border-left: 3px solid var(--gold); }
.exp-meta {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-soft);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px 12px; gap: 16px; text-align: center;
}
.exp-period { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.period-start, .period-end {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
    line-height: 1.2;
}
.period-end.current { color: #4ade80; font-weight: 600; }
.period-bar {
    width: 2px; height: 28px;
    background: var(--text-dim); border-radius: 1px;
}
.period-bar.active { background: linear-gradient(to bottom, var(--gold), #4ade80); }
.exp-ministry-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.1em;
    color: var(--navy); background: var(--gold);
    padding: 3px 8px; border-radius: 2px; font-weight: 500;
}
.exp-body { padding: 24px 28px; }
.exp-status-badge {
    display: inline-block;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 3px 10px; border-radius: 2px;
    margin-bottom: 12px;
    font-family: 'DM Mono', monospace;
}
.exp-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 600; color: var(--text);
    margin-bottom: 6px; line-height: 1.3;
}
.exp-org { font-size: 0.84rem; color: var(--gold); font-style: italic; margin-bottom: 14px; line-height: 1.5; }
.exp-summary { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.exp-missions { display: flex; flex-wrap: wrap; gap: 8px; }
.mission-tag {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.77rem; padding: 4px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 2px; color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s;
}
.mission-tag:hover { border-color: var(--gold); color: var(--text); }
.mission-tag i { color: var(--gold); font-size: 0.65rem; }

/* Liste de projets */
.exp-project-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 8px;
}
.exp-project-list li {
    font-size: 0.87rem;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-surface);
    border-left: 2px solid var(--gold);
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
    transition: background 0.2s;
}
.exp-project-list li:hover { background: var(--gold-dim); }

/* ============================================
   FORMATIONS
   ============================================ */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.formation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 20px 24px;
    display: flex; gap: 18px;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.2s;
}
.formation-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.formation-card.certif-card {
    border-color: rgba(201,168,76,0.3);
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--bg-card) 100%);
}
.formation-year {
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem; font-weight: 700;
    color: var(--text-dim);
    min-width: 70px; text-align: right;
    padding-top: 2px; line-height: 1.3;
    flex-shrink: 0;
}
.formation-year.gold { color: var(--gold); }
.formation-content { flex: 1; }
.formation-content h4 {
    font-size: 0.92rem; font-weight: 600; color: var(--text);
    margin-bottom: 5px; line-height: 1.4;
}
.formation-content p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.formation-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; color: var(--gold);
    display: flex; align-items: center; gap: 5px;
}
.formation-modules {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: 10px;
}
.formation-modules span {
    font-size: 0.72rem; padding: 2px 8px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold);
    border-radius: 2px;
    font-family: 'DM Mono', monospace;
}

/* ============================================
   COMPÉTENCES
   ============================================ */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px; align-items: start;
}
.skill-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px; padding: 32px;
    margin-bottom: 24px;
}
.skills-right-col .skill-block:last-child { margin-bottom: 0; }
.skill-block-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}
.skill-block-icon {
    width: 40px; height: 40px;
    background: var(--gold-dim); border: 1px solid var(--gold);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.skill-block h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.skill-items { display: flex; flex-direction: column; gap: 18px; }
.skill-item { display: flex; flex-direction: column; gap: 8px; }
.skill-item-left { display: flex; align-items: center; gap: 10px; }
.skill-bullet { width: 5px; height: 5px; flex-shrink: 0; background: var(--gold); border-radius: 50%; }
.skill-item-left span { font-size: 0.9rem; color: var(--text); line-height: 1.4; }
.skill-bar-wrap { height: 3px; background: var(--border-soft); border-radius: 2px; overflow: hidden; }
.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px; width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool-card {
    background: var(--bg-surface); border: 1px solid var(--border-soft);
    border-radius: 4px; padding: 14px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    transition: border-color 0.3s;
}
.tool-card:hover { border-color: var(--gold); }
.tool-card i { font-size: 1.1rem; color: var(--gold); }
.tool-card span { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.tool-level {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.08em;
    padding: 2px 7px; border-radius: 2px;
}
.tool-level.expert { background: rgba(201,168,76,0.12); color: var(--gold); }
.tool-level.avance { background: rgba(147,197,253,0.1); color: #93c5fd; }
.tool-level.intermediaire { background: rgba(167,243,208,0.1); color: #6ee7b7; }

/* Langues */
.lang-list { display: flex; flex-direction: column; gap: 0; }
.lang-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
}
.lang-item:last-child { border-bottom: none; }
.lang-flag {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--gold-dim); border: 1px solid var(--gold);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; color: var(--gold); font-weight: 500;
}
.lang-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lang-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.lang-dots { display: flex; gap: 4px; }
.lang-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.lang-dot.active { background: var(--gold); }
.lang-level {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem; color: var(--text-muted);
    text-align: right; white-space: nowrap;
}

/* ============================================
   VALEURS
   ============================================ */
.values-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--navy-mid) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] .values-section { background: linear-gradient(135deg, var(--bg-alt) 0%, #dfe8f0 100%); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 auto; }
.value-card {
    text-align: center; padding: 36px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 6px;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.value-card:hover { border-color: var(--gold); background: var(--gold-dim); transform: translateY(-4px); }
.value-icon {
    width: 52px; height: 52px; margin: 0 auto 20px;
    background: var(--gold-dim); border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.2rem; transition: background 0.3s;
}
.value-card:hover .value-icon { background: var(--gold); color: var(--navy); }
.value-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); }
.footer-top .container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 48px 0; flex-wrap: wrap; gap: 32px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom .container {
    padding: 24px 0;
    border-top: 1px solid var(--border-soft);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-certif { font-family: 'DM Mono', monospace; font-size: 0.72rem !important; color: var(--gold) !important; opacity: 0.7; }

/* ============================================
   ANIMATIONS REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .profil-grid { grid-template-columns: 1fr; }
    .profil-portrait { position: static; align-items: center; }
    .portrait-frame { margin: 0 auto; }
    .profil-infos { max-width: 500px; margin: 0 auto; width: 100%; }
    .profil-text { text-align: left; }

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

    /* Timeline V2 : ligne centrale cache à tablette */
    .edu-timeline-v2::before { display: none; }
    .etv2-card { max-width: 100%; }

    .formations-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    /* KPI */
    .kpi-divider { display: none; }
    .kpi-inner { gap: 4px; }
    .kpi-item { min-width: 120px; padding: 16px 10px; }
    .kpi-number { font-size: 2.2rem; }
    .kpi-label { font-size: 0.68rem; }

    /* Hero */
    .hero-eyebrow { font-size: 0.65rem; }
    .hero-contacts { gap: 8px; }
    .contact-pill { font-size: 0.78rem; padding: 7px 12px; }

    /* Profil */
    .profil-grid { gap: 32px; }
    .profil-text { text-align: left; }

    /* Scolarité cards */
    .edu-cards-grid { grid-template-columns: 1fr 1fr; }

    /* Timeline V2 — mobile : tout centré verticalement */
    .edu-timeline-v2 {
        padding-left: 0;
    }
    .edu-timeline-v2::before { display: none; }

    .etv2-item { align-items: stretch; }
    .etv2-header { align-items: center; }
    .etv2-date-pill { font-size: 0.72rem; padding: 5px 16px; }

    .etv2-card {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }
    .etv2-icon { width: 36px; height: 36px; font-size: 0.9rem; }

    /* Expériences : colonne sur mobile */
    .exp-item { grid-template-columns: 1fr; }
    .exp-meta {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding: 14px 20px;
    }
    .exp-period { flex-direction: row; align-items: center; gap: 10px; }
    .period-bar { width: 28px; height: 2px; }
    .exp-body { padding: 18px 20px; }

    /* Formations */
    .formations-grid { grid-template-columns: 1fr; }
    .formation-card { flex-direction: column; gap: 10px; }
    .formation-year { text-align: left; min-width: auto; }

    /* Valeurs */
    .values-grid { grid-template-columns: 1fr 1fr; }

    /* Certif banner */
    .certif-banner { flex-direction: column; text-align: center; padding: 24px; }
    .certif-stamp { transform: rotate(0deg); margin: 0 auto; }

    /* Footer */
    .footer-top .container { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { justify-content: center; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤500px)
   ============================================ */
@media (max-width: 500px) {
    .values-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-gold, .btn-ghost { justify-content: center; width: 100%; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .edu-cards-grid { grid-template-columns: 1fr; }
    .kpi-inner { justify-content: center; }
    .kpi-item { min-width: 100px; }
    .exp-missions { gap: 6px; }
    .mission-tag { font-size: 0.72rem; }
}