/* ============================================================================
   CV — Kriss Clotilde
   Design système : fond profond, une seule couleur d'accent, hairlines,
   typographie Inter + JetBrains Mono. Sombre par défaut, thème clair inclus.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --bg:          #08090B;
    --bg-elevated: #0D0F13;
    --panel:       #101318;
    --panel-hover: #14181E;
    --line:        rgba(255,255,255,.075);
    --line-strong: rgba(255,255,255,.16);
    --text:        #E9EBEF;
    --text-2:      #9BA2AD;
    --text-3:      #676E79;
    --accent:      #4ADE80;
    --accent-dim:  #34C77B;
    --accent-soft: rgba(74,222,128,.11);
    --accent-line: rgba(74,222,128,.30);
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg:   0 24px 60px -20px rgba(0,0,0,.75);

    --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;

    --max:  1180px;
    --gut:  clamp(20px, 5vw, 48px);
    --nav-h: 66px;

    --ease: cubic-bezier(.22,.61,.36,1);
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg:          #FBFBFA;
    --bg-elevated: #FFFFFF;
    --panel:       #FFFFFF;
    --panel-hover: #FFFFFF;
    --line:        rgba(9,9,11,.10);
    --line-strong: rgba(9,9,11,.22);
    --text:        #101215;
    --text-2:      #4E5661;
    --text-3:      #79818C;
    --accent:      #0E9F6E;
    --accent-dim:  #0B8560;
    --accent-soft: rgba(14,159,110,.10);
    --accent-line: rgba(14,159,110,.32);
    --shadow:      0 1px 2px rgba(16,18,21,.05), 0 10px 26px -14px rgba(16,18,21,.22);
    --shadow-lg:   0 26px 60px -26px rgba(16,18,21,.28);
    color-scheme: light;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.028em; line-height: 1.2; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

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

::selection { background: var(--accent); color: #05060A; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }

/* ---------- 3. Barre de progression ------------------------------------- */
.progress {
    position: fixed; inset: 0 auto auto 0;
    height: 2px; width: 0;
    background: var(--accent);
    z-index: 120;
    transition: width .1s linear;
}

/* ---------- 4. Navigation ----------------------------------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex; align-items: center;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
    width: 100%; max-width: var(--max); margin-inline: auto;
    padding-inline: var(--gut);
    display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
    width: 32px; height: 32px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    font-family: var(--mono); font-size: 12.5px; font-weight: 700;
    letter-spacing: .02em;
    color: var(--accent);
    background: var(--accent-soft);
}
.brand-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.brand-name span { color: var(--text-3); font-weight: 450; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    position: relative;
    padding: 7px 11px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px;
    height: 1.5px; background: var(--accent); border-radius: 2px;
}

.nav-side { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 9px;
    color: var(--text-2);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px;
    font-size: 13.5px; font-weight: 600;
    color: #05060A;
    background: var(--accent);
    border-radius: 9px;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
html[data-theme="light"] .nav-cta { color: #fff; }
.nav-cta:hover { background: var(--accent-dim); transform: translateY(-1px); }

.burger {
    display: none;
    width: 34px; height: 34px;
    border: 1px solid var(--line); background: transparent;
    border-radius: 9px; cursor: pointer;
    padding: 0; place-items: center;
}
.burger span {
    display: block; width: 15px; height: 1.5px; margin: 3px auto;
    background: var(--text); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-mobile {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 20px;
    display: none; flex-direction: column; gap: 2px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
    padding: 11px 12px; border-radius: 9px;
    font-size: 15px; font-weight: 500; color: var(--text-2);
}
.nav-mobile a:hover, .nav-mobile a.is-active { color: var(--text); background: var(--panel); }
.nav-mobile .nav-cta { margin-top: 8px; justify-content: center; color: #05060A; }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(52px, 9vw, 104px)) 0 clamp(52px, 8vw, 92px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right,  var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
    opacity: .85;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
    width: 780px; height: 460px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 9px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
    color: var(--accent);
}
.chip .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-line);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 var(--accent-line); }
    70%  { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
    margin: 20px 0 0;
    font-size: clamp(2.5rem, 6.2vw, 4.15rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}
.hero-role {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: clamp(.95rem, 1.9vw, 1.08rem);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -.01em;
}
.hero-role .caret {
    display: inline-block; width: 8px; margin-left: 2px;
    border-bottom: 1.5px solid var(--accent);
    animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lede {
    margin-top: 18px;
    max-width: 46ch;
    font-size: clamp(1rem, 1.6vw, 1.075rem);
    color: var(--text-2);
    line-height: 1.68;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 19px;
    border-radius: 11px;
    font-size: 14.5px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.btn i { font-size: 13px; }
.btn--primary { background: var(--accent); color: #05060A; }
html[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--panel); border-color: var(--text-3); transform: translateY(-2px); }

.hero-social { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.hero-social a {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; color: var(--text-3);
    transition: color .2s var(--ease);
}
.hero-social a:hover { color: var(--text); }
.hero-social .sep { width: 1px; height: 14px; background: var(--line-strong); }
.hero-social span.loc { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }

/* Carte terminal */
.terminal {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.terminal-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elevated);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.terminal-bar i:nth-child(1) { background: #FF5F57; }
.terminal-bar i:nth-child(2) { background: #FEBC2E; }
.terminal-bar i:nth-child(3) { background: #28C840; }
.terminal-bar .file {
    margin-left: 8px;
    font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
}
.terminal-body {
    margin: 0; padding: 18px 20px 20px;
    font-family: var(--mono);
    font-size: 12.6px; line-height: 1.95;
    color: var(--text-2);
    overflow-x: auto;
    tab-size: 2;
}
.terminal-body .k  { color: #C084FC; }
.terminal-body .p  { color: var(--text); }
.terminal-body .s  { color: var(--accent); }
.terminal-body .n  { color: #7DD3FC; }
.terminal-body .c  { color: var(--text-3); font-style: italic; }
html[data-theme="light"] .terminal-body .k { color: #7C3AED; }
html[data-theme="light"] .terminal-body .n { color: #0369A1; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1px;
    margin-top: clamp(44px, 6vw, 68px);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.stat { background: var(--bg); padding: 22px 24px; transition: background-color .25s var(--ease); }
.stat:hover { background: var(--panel); }
.stat-num {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 3.2vw, 2.05rem);
    font-weight: 600; letter-spacing: -.04em;
    color: var(--text);
    line-height: 1.1;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label {
    margin-top: 5px;
    font-size: 12.5px; color: var(--text-3);
    letter-spacing: .005em;
}

/* ---------- 6. Sections -------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 11.5px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-3);
}
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head h2 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 3.4vw, 2.05rem);
    font-weight: 680;
}
.section-head p {
    margin-top: 10px; max-width: 62ch;
    color: var(--text-2); font-size: 15.5px;
}

/* ---------- 7. Profil ---------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.about-text p { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--text); font-weight: 600; }

.value-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.value {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 17px 20px;
    background: var(--bg);
    transition: background-color .25s var(--ease);
}
.value:hover { background: var(--panel); }
.value i { color: var(--accent); font-size: 14px; margin-top: 4px; flex: none; width: 16px; text-align: center; }
.value span { font-size: 14.5px; color: var(--text); }
.value small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }

/* ---------- 8. Compétences ---------------------------------------------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.skill-group {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    padding: 20px 22px 22px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.skill-group:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.skill-group h3 {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-3);
}
.skill-group h3 i { color: var(--accent); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elevated);
    font-size: 13px; font-weight: 500;
    color: var(--text);
    transition: all .18s var(--ease);
}
.tag:hover { border-color: var(--accent-line); color: var(--accent); }
.tag--lead { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.langs { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.lang { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lang b { font-weight: 600; }
.lang em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.lang .bars { display: flex; gap: 3px; }
.lang .bars i { width: 16px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.lang .bars i.on { background: var(--accent); }

/* ---------- 9. Expérience ------------------------------------------------ */
.timeline { display: grid; gap: 0; }
.job {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: clamp(16px, 3vw, 40px);
    padding: 30px 0;
    border-top: 1px solid var(--line);
}
.job:first-child { border-top: none; padding-top: 4px; }
.job-when { position: relative; }
.job-date {
    font-family: var(--mono);
    font-size: 12.5px; color: var(--text-3);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.job-now {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
    color: var(--accent); text-transform: uppercase;
}
.job h3 { font-size: 1.18rem; font-weight: 650; }
.job-org {
    margin-top: 4px;
    font-size: 14.5px; color: var(--text-2); font-weight: 500;
}
.job ul { margin-top: 14px; display: grid; gap: 8px; }
.job li {
    position: relative; padding-left: 20px;
    font-size: 14.8px; color: var(--text-2); line-height: 1.6;
}
.job li::before {
    content: ""; position: absolute; left: 3px; top: 10px;
    width: 6px; height: 1.5px; background: var(--accent); border-radius: 2px;
}
.job .tags { margin-top: 16px; }
.job .tag { font-size: 12.2px; padding: 3px 9px; }

/* ---------- 10. Formation ------------------------------------------------ */
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.edu-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    padding: 22px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.edu-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.edu-icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent); font-size: 14px;
}
.edu-year {
    float: right;
    font-family: var(--mono); font-size: 12px; color: var(--text-3);
}
.edu-card h3 { margin-top: 16px; font-size: 1.02rem; font-weight: 620; }
.edu-school { margin-top: 4px; font-size: 13.8px; color: var(--accent); font-weight: 500; }
.edu-card p.edu-note { margin-top: 10px; font-size: 13.8px; color: var(--text-3); line-height: 1.6; }

/* ---------- 11. Projets -------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.project {
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    overflow: hidden;
    transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.project:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.project-preview {
    position: relative;
    aspect-ratio: 16 / 8.4;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.project-preview::before {
    content: ""; position: absolute; inset: 0;
    background: var(--pg, linear-gradient(135deg,#4F46E5,#7C3AED));
    opacity: .13;
    transition: opacity .28s var(--ease);
}
.project:hover .project-preview::before { opacity: .22; }
.chrome {
    position: relative;
    display: flex; align-items: center; gap: 5px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
}
.chrome b { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.chrome .url {
    margin-left: 6px; padding: 2px 9px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-glyph {
    position: relative;
    height: calc(100% - 33px);
    display: grid; place-items: center;
    font-size: 30px;
    color: var(--text);
    opacity: .5;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.project:hover .project-glyph { opacity: .8; transform: scale(1.06); }
.project-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-idx {
    font-family: var(--mono); font-size: 11px; color: var(--text-3);
    letter-spacing: .08em;
}
.project h3 { margin-top: 7px; font-size: 1.04rem; font-weight: 620; }
.project p { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.project .tags { margin-top: 14px; }
.project .tag { font-size: 11.8px; padding: 3px 9px; }
.project-link {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--line);
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--text);
    transition: color .2s var(--ease), gap .2s var(--ease);
}
.project-link i { font-size: 11px; color: var(--accent); transition: transform .2s var(--ease); }
.project:hover .project-link { color: var(--accent); }
.project:hover .project-link i { transform: translateX(3px); }

/* ---------- 12. Vidéos --------------------------------------------------- */
.yt-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    margin-bottom: 20px;
}
.yt-bar .meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.yt-bar .meta i { color: var(--text-3); font-size: 13px; }
.yt-bar .meta strong { color: var(--text); font-family: var(--mono); font-weight: 600; }
.yt-bar .yt-link {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    font-size: 13.2px; font-weight: 600;
    transition: all .2s var(--ease);
}
.yt-bar .yt-link i { color: #FF0033; }
.yt-bar .yt-link:hover { border-color: var(--text-3); background: var(--bg-elevated); }

.search { position: relative; margin-bottom: 12px; }
.search > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); font-size: 13px; pointer-events: none;
}
.search input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--text);
    font-family: var(--font); font-size: 14.5px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--accent-line); background: var(--bg-elevated); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border: none; background: var(--line); color: var(--text-2);
    border-radius: 7px; cursor: pointer; font-size: 11px;
}
.search-clear:hover { color: var(--text); }

.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font); font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all .18s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter em {
    font-style: normal; font-family: var(--mono); font-size: 11px;
    color: var(--text-3);
}
.filter.is-active {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: var(--accent);
}
.filter.is-active em { color: var(--accent); }

.search-status {
    font-family: var(--mono); font-size: 12.5px; color: var(--text-3);
    margin-bottom: 14px;
}

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.video {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.video:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.video[hidden] { display: none; }
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-elevated);
    cursor: pointer;
    overflow: hidden;
}
.video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.video:hover .video-thumb img { transform: scale(1.04); }
.video-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.play {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(to top, rgba(0,0,0,.42), transparent 55%);
    transition: background-color .25s var(--ease);
}
.play i {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(10,10,12,.72);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 14px; padding-left: 3px;
    transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.video:hover .play i { transform: scale(1.1); background: #FF0033; border-color: #FF0033; }
.video-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.video-cat {
    align-self: flex-start;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-3);
}
.video h3 { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.video p {
    font-size: 13.2px; color: var(--text-3); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.empty {
    padding: 44px 20px; text-align: center;
    color: var(--text-3); font-size: 14.5px;
    border: 1px dashed var(--line-strong); border-radius: var(--r);
}

/* ---------- 13. Articles ------------------------------------------------- */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article {
    position: relative;
    display: flex; flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    overflow: hidden;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.article::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--ac, var(--accent));
    opacity: .75;
}
.article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.article-tag {
    align-self: flex-start;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-3);
}
.article h3 { margin-top: 12px; font-size: 1.02rem; font-weight: 620; line-height: 1.35; }
.article p { margin-top: 9px; font-size: 13.8px; color: var(--text-2); line-height: 1.6; flex: 1; }
.article-cta {
    margin-top: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.2px; font-weight: 600; color: var(--text);
}
.article-cta i { font-size: 10.5px; color: var(--accent); transition: transform .2s var(--ease); }
.article:hover .article-cta { color: var(--accent); }
.article:hover .article-cta i { transform: translateX(3px); }

/* ---------- 14. Contact -------------------------------------------------- */
.contact { border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 108px) 0; }
.contact-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    padding: clamp(34px, 6vw, 60px);
    text-align: center;
    overflow: hidden;
}
.contact-card::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700; letter-spacing: -.04em;
}
.contact-card p {
    margin: 14px auto 0; max-width: 52ch;
    color: var(--text-2); font-size: 16px;
}
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 28px; }
.contact-mail {
    display: inline-block; margin-top: 24px;
    font-family: var(--mono); font-size: 13.5px; color: var(--text-3);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- 15. Footer --------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer-links { display: flex; gap: 6px; }
.footer-links a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text-2); font-size: 14px;
    transition: all .2s var(--ease);
}
.footer-links a:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel); }
.footer-note { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* ---------- 16. Back to top ---------------------------------------------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    backdrop-filter: blur(10px);
    color: var(--text); font-size: 13px;
    cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .28s var(--ease);
    z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- 17. Reveal --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ---------- 18. Responsive ----------------------------------------------- */
@media (max-width: 1000px) {
    .nav-links { display: none; }
    .burger { display: grid; }
    .nav-cta { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .terminal { order: -1; }
    .about { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .job { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
    .job-now { margin-top: 0; margin-left: 12px; }
    .job-when { display: flex; align-items: center; }
    .yt-bar .yt-link { margin-left: 0; width: 100%; justify-content: center; }
    .projects, .videos, .articles { grid-template-columns: 1fr; }
    .hero-social { flex-wrap: wrap; gap: 12px 16px; }
    .hero-social .sep { display: none; }
    .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 400px) {
    .stats { grid-template-columns: 1fr; }
}

/* ---------- 19. Préférences & impression --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav, .nav-mobile, .to-top, .progress, .filters, .search,
    .yt-bar, .videos, .more-wrap, .contact-actions { display: none !important; }
    body { background: #fff; color: #000; }
    .section { break-inside: avoid; border-top: 1px solid #ddd; }
    .project, .article, .edu-card, .skill-group { break-inside: avoid; border: 1px solid #ddd; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
}
