/* =========================================================
   Tristan Carron — feuille de style v2 « terminal edition »
   ADN conservé : terracotta #D89584 · encre #211d3a · Fraunces
   Ajouts : JetBrains Mono, fenêtres terminal, git log, palette ⌘K
   ========================================================= */

:root {
    /* palette d'origine */
    --terra:       #D89584;
    --terra-soft:  #e6b5a7;
    --terra-deep:  #b56b56;
    --terra-tint:  #D8958430;
    --ink:         #211d3a;
    --ink-soft:    #4a456b;
    --blood:       #d60c0c;

    --bg:          #fbfaf8;
    --surface:     #ffffff;
    --surface-2:   #f4f0ec;
    --line:        #e7e0d9;
    --text:        #2a2733;
    --muted:       #6b6678;

    /* terminal — toujours sombre */
    --term-bg:     #17142a;
    --term-bar:    #211d3a;
    --term-line:   rgba(255,255,255,.09);
    --term-text:   #e7e3f0;
    --term-dim:    #8e88a6;
    --ok:          #6fcf97;
    --str:         #e9c58f;
    --err:         #ff8a7a;

    --f-display: "Fraunces", Georgia, serif;
    --f-body:    "Manrope", system-ui, sans-serif;
    --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --radius:      18px;
    --radius-sm:   12px;
    --shadow-card: 0 18px 40px -22px rgba(33,29,58,.45);
    --shadow-offset: 10px 10px 0 0 rgba(33,29,58,.10);
    --shadow-term: 0 40px 80px -30px rgba(10,8,25,.75), 0 0 0 1px rgba(255,255,255,.06);
    --ease:        cubic-bezier(.22,.61,.36,1);
    --maxw:        1180px;
    --nav-h:       70px;
}

[data-theme="dark"] {
    --terra:       #dd9a88;
    --terra-soft:  #ecc0b4;
    --terra-deep:  #e8ab97;
    --terra-tint:  #dd9a8820;
    --ink:         #f3f0f7;
    --ink-soft:    #c9c4d6;

    --bg:          #120f1a;
    --surface:     #1c1828;
    --surface-2:   #221d31;
    --line:        #322c44;
    --text:        #dcd8e6;
    --muted:       #9a94ab;

    --term-bg:     #0e0c17;
    --term-bar:    #18152a;

    --shadow-card:  0 22px 48px -24px rgba(0,0,0,.75);
    --shadow-offset: 10px 10px 0 0 rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0; font-family: var(--f-body); color: var(--text); background: var(--bg);
    line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
    transition: background .35s, color .35s;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.01em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
b { color: var(--ink); font-weight: 700; }
::selection { background: var(--terra); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.skip {
    position: fixed; top: 10px; left: 10px; z-index: 3000; background: var(--ink); color: var(--bg);
    padding: 10px 16px; border-radius: 10px; font-weight: 700; transform: translateY(-160%); transition: transform .25s;
}
.skip:focus { transform: none; }

.grain {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .025; }

.caret {
    display: inline-block; width: .55em; height: 1.05em; vertical-align: -.16em; margin-left: 2px;
    background: var(--terra); animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--f-body); font-weight: 700; font-size: .92rem; line-height: 1;
    padding: .9em 1.45em; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
    transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s, gap .3s;
}
.btn svg { flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--terra); color: #fff; box-shadow: 0 12px 26px -12px var(--terra-deep); }
.btn--solid:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: #211d3a; border-color: #fff; transform: translateY(-3px); }
.btn--ghost:hover svg { transform: none; }
.btn--line { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--line:hover { border-color: var(--terra); color: var(--terra-deep); transform: translateY(-3px); }
.btn--line:hover svg { transform: none; }
.btn--block { display: flex; width: 100%; }
.btn--back { background: transparent; color: var(--ink); padding: .4em 0; font-family: var(--f-mono); font-size: .86rem; border: 0; margin-bottom: 18px; }
.btn--back:hover { color: var(--terra-deep); }
.btn--back:hover svg { transform: translateX(-3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.muted-inline { color: var(--muted); font-family: var(--f-body); }

/* ---------- TAGS ---------- */
.tag {
    display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
    padding: 4px 10px; border-radius: 7px; background: var(--surface-2); color: var(--ink);
    border: 1px solid var(--line); white-space: nowrap; letter-spacing: -.01em;
}

/* ---------- NAV ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
    display: flex; align-items: center; border-bottom: 1px solid transparent;
    transition: background .4s, box-shadow .4s, border-color .4s;
}
.nav.is-scrolled, body:not([data-page="home"]) .nav {
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; }
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; }
.nav__mark {
    width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px;
    background: var(--terra); color: #fff; font-family: var(--f-display); font-weight: 900; font-size: 1.05rem;
    box-shadow: var(--shadow-offset); transition: transform .4s var(--ease);
}
.nav__brand:hover .nav__mark { transform: rotate(-6deg) scale(1.05); }
.nav__mark--sm { width: 34px; height: 34px; font-size: .95rem; }
.nav__name { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); white-space: nowrap; }
.nav__path { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__path .caret { width: .5em; height: .95em; }

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
    font-weight: 600; font-size: .92rem; position: relative; color: var(--text); padding: 4px 0;
    display: inline-flex; align-items: baseline; gap: 5px; transition: color .25s;
}
.nav__num { font-family: var(--f-mono); font-size: .66rem; color: var(--terra-deep); font-weight: 500; }
.nav__links a:not(.nav__cv)::after {
    content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--terra); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--terra-deep); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cv { border: 1.5px solid var(--terra); color: var(--terra-deep) !important; padding: 6px 14px !important; border-radius: 999px; font-family: var(--f-mono); font-size: .8rem !important; }
.nav__cv:hover { background: var(--terra); color: #fff !important; }

/* transparent sur le hero */
body[data-page="home"] .nav:not(.is-scrolled) .nav__name,
body[data-page="home"] .nav:not(.is-scrolled) .nav__links a,
body[data-page="home"] .nav:not(.is-scrolled) .langs__current,
body[data-page="home"] .nav:not(.is-scrolled) .theme-toggle,
body[data-page="home"] .nav:not(.is-scrolled) .kbar-btn { color: #fff; }
body[data-page="home"] .nav:not(.is-scrolled) .nav__path { color: rgba(255,255,255,.6); }
body[data-page="home"] .nav:not(.is-scrolled) .nav__num { color: var(--terra-soft); }
body[data-page="home"] .nav:not(.is-scrolled) .nav__cv { color: #fff !important; border-color: rgba(255,255,255,.55); }
body[data-page="home"] .nav:not(.is-scrolled) :is(.langs__current, .theme-toggle, .kbar-btn) { border-color: rgba(255,255,255,.35); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--terra); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.kbar-btn, .theme-toggle, .langs__current {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; flex: none;
    background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--text);
    cursor: pointer; font: 700 .8rem var(--f-body); transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.kbar-btn:hover, .theme-toggle:hover, .langs__current:hover { border-color: var(--terra); }
.kbar-btn__k { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; opacity: .8; background: none; color: inherit; box-shadow: none; padding: 0; min-width: 0; }
.theme-toggle { width: 34px; padding: 0; justify-content: center; }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

.langs { position: relative; }
.langs__current img { border-radius: 4px; }
.langs__current svg { transition: transform .3s; }
.langs.is-open .langs__current svg { transform: rotate(180deg); }
.langs__menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; list-style: none; margin: 0; padding: 7px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 44px -20px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
}
.langs.is-open .langs__menu { opacity: 1; visibility: visible; transform: none; }
.langs__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--text); transition: background .2s; }
.langs__menu a:hover { background: var(--terra-tint); }
.langs__menu img { border-radius: 4px; }
.langs__menu code { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
body[data-page="home"] .nav:not(.is-scrolled):not(.is-menu) .nav__burger span { background: #fff; }
.nav.is-menu .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-menu .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-menu .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__scrim { position: fixed; inset: 0; background: rgba(20,18,35,.5); z-index: 998; }

/* ---------- TERMINAL (composant) ---------- */
.term {
    background: var(--term-bg); color: var(--term-text); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-term); font-family: var(--f-mono); font-size: .82rem; line-height: 1.7; text-align: left;
}
.term__bar, .card__bar, .browser__bar, .file__bar {
    display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--term-bar);
    border-bottom: 1px solid var(--term-line);
}
.term__bar i, .card__bar i, .browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; flex: none; }
.term__bar i:nth-child(2), .card__bar i:nth-child(2), .browser__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3), .card__bar i:nth-child(3), .browser__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin: 0 auto; padding-right: 40px; color: var(--term-dim); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__body { padding: 18px 20px 20px; }
.term__line { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term__line--wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-prompt { color: var(--terra); font-weight: 700; }
.t-acc { color: var(--terra); font-weight: 700; }
.t-dim { color: var(--term-dim); }
.t-ok  { color: var(--ok); }
.t-str { color: var(--str); }
.t-key { color: var(--terra-soft); }
.t-err { color: var(--err); }
a.t-acc:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    color: #fff; padding: calc(var(--nav-h) + 40px) 28px 100px; overflow: hidden; isolation: isolate; background: #1a1730;
}
.hero__bg {
    position: absolute; inset: -4%; z-index: -3;
    background: url("../../IMG/cover_2.jpg") center/cover no-repeat;
    filter: saturate(.85); transform: translate3d(0, var(--py, 0), 0) scale(1.04);
}
.hero__veil {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(70% 70% at 78% 40%, rgba(216,149,132,.22), transparent 60%),
        linear-gradient(100deg, rgba(23,20,42,.94) 0%, rgba(33,29,58,.78) 45%, rgba(33,29,58,.55) 100%),
        linear-gradient(180deg, transparent 60%, rgba(23,20,42,.9) 100%);
}
.hero__grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__inner {
    width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { animation: rise .9s var(--ease) both; }
.status {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px; border-radius: 999px;
    background: rgba(111,207,151,.1); border: 1px solid rgba(111,207,151,.35); color: #c8f0d8;
    font-size: .82rem; font-weight: 700; margin-bottom: 26px; transition: background .3s, transform .3s var(--ease);
}
.status:hover { background: rgba(111,207,151,.18); transform: translateY(-2px); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(111,207,151,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111,207,151,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(111,207,151,0); } }

.hero__prompt { font-family: var(--f-mono); font-size: .92rem; color: rgba(255,255,255,.72); margin: 0 0 10px; }
.hero__user { color: var(--ok); }
.hero__cwd  { color: var(--terra-soft); }
.hero__cmd  { color: #fff; }
.hero__title {
    font-size: clamp(3.4rem, 8.4vw, 7.2rem); font-weight: 900; line-height: .92; letter-spacing: -.035em;
    text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero__dot { color: var(--terra); }
.hero__role { margin: 26px 0 32px; display: grid; gap: 6px; }
.hero__role-fixed { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; color: rgba(255,255,255,.92); }
.hero__rotate { font-family: var(--f-mono); font-size: clamp(.92rem, 1.5vw, 1.08rem); color: var(--terra-soft); min-height: 1.7em; }
.hero__rotate-gt { color: rgba(255,255,255,.45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: .78rem; color: rgba(255,255,255,.65); }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta a:hover { color: #fff; }

.term--hero { animation: rise 1s .15s var(--ease) both; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .6s var(--ease); }
.term--hero:hover { transform: none; }
.nf { display: grid; grid-template-columns: 132px 1fr; gap: 22px; margin: 14px 0 10px; align-items: start; }
.nf__logo { position: relative; }
.nf__logo img { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; object-position: top; background: var(--terra); filter: grayscale(.15) contrast(1.05); }
.nf__logo::after {
    content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply;
}
.nf__info { margin: 0; min-width: 0; }
.nf__head { font-weight: 700; color: #fff; }
.nf__rule { margin: 0 0 2px; color: var(--term-dim); }
.nf__row { display: flex; gap: 8px; min-width: 0; }
.nf__row dt { color: var(--terra); font-weight: 700; flex: none; min-width: 52px; }
.nf__row dt::after { content: ":"; color: var(--term-dim); }
.nf__row dd { margin: 0; color: var(--term-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf__row dd.t-ok { color: var(--ok); }
.nf__swatches { display: flex; margin-top: 10px; }
.nf__swatches i { width: 20px; height: 12px; }
.nf__swatches i:nth-child(1) { background: #211d3a; } .nf__swatches i:nth-child(2) { background: #ff5f57; }
.nf__swatches i:nth-child(3) { background: #6fcf97; } .nf__swatches i:nth-child(4) { background: #e9c58f; }
.nf__swatches i:nth-child(5) { background: #4a456b; } .nf__swatches i:nth-child(6) { background: #b56b56; }
.nf__swatches i:nth-child(7) { background: #D89584; } .nf__swatches i:nth-child(8) { background: #f6f4f1; }
/* animation d'apparition neofetch (pilotée par JS) */
.js .term--hero .nf, .js .term--hero .term__line--last { opacity: 0; }
.js .term--hero.is-done .nf { opacity: 1; transition: opacity .1s; }
.js .term--hero.is-done .nf__row, .js .term--hero.is-done .nf__head, .js .term--hero.is-done .nf__rule, .js .term--hero.is-done .nf__swatches, .js .term--hero.is-done .nf__logo { animation: lineIn .35s var(--ease) both; }
.js .term--hero.is-done .term__line--last { opacity: 1; transition: opacity .2s .9s; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.hero__scroll {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.7);
    font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em;
}
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.section--tint { max-width: none; background: var(--terra-tint); position: relative; }
.section--tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--tint::before, .section--tint::after {
    content: ""; position: absolute; left: 0; right: 0; height: 60px; max-width: none;
    background: var(--bg); -webkit-mask: var(--tri) center/100% 100% no-repeat; mask: var(--tri) center/100% 100% no-repeat;
}
.section--tint::before { top: -1px; --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 100,0 50,10'/%3E%3C/svg%3E"); }
.section--tint::after  { bottom: -1px; --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpolygon points='0,10 100,10 50,0'/%3E%3C/svg%3E"); }

.section__head { text-align: center; margin-bottom: 54px; }
.section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900; color: var(--ink); }
.section__sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.02rem; }
.sec-cmd {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .8rem;
    color: var(--muted); margin-bottom: 14px; letter-spacing: -.01em;
}
.sec-cmd__n { background: var(--terra); color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-size: .72rem; }
.sec-cmd__p { color: var(--terra-deep); font-weight: 700; }
.anchor { position: absolute; top: 0; }

/* ---------- PRESENTATION + STATS ---------- */
.present { max-width: var(--maxw); margin: 0 auto; padding: 100px 28px 40px; text-align: center; }
.present__text { max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.present__comment { font-family: var(--f-mono); font-size: .86rem; color: var(--terra-deep); margin: 0 0 22px; }
.present__text { font-family: var(--f-display); font-size: clamp(1.55rem, 3.4vw, 2.4rem); font-weight: 400; line-height: 1.3; color: var(--ink); margin: 0; }
.present__text b { color: var(--terra-deep); font-weight: 600; }
.stats { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); transition-delay: var(--d, 0ms); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 10px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* tuile « 1984 » : le premier ordinateur */
.stat--boot { position: relative; overflow: hidden; background: var(--terra-tint); padding: 24px 18px 22px; }
.stat--boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(33,29,58,.04) 0 1px, transparent 1px 4px); }
.stat__boot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; color: var(--terra-deep); margin-bottom: 10px; }
.stat__boot svg { color: var(--terra-deep); }
.stat--boot .stat__num { color: var(--terra-deep); font-size: clamp(2.4rem, 4.6vw, 3.3rem); letter-spacing: -.02em; }
.stat--boot .stat__label { color: var(--ink); }
.stat__pill { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; color: #fff; background: var(--terra-deep); padding: 3px 11px; border-radius: 999px; }
.stat__pill .caret { width: .45em; height: .9em; background: #fff; }
[data-theme="dark"] .stat__pill { color: #1a1625; }
[data-theme="dark"] .stat__pill .caret { background: #1a1625; }
[data-theme="dark"] .stat--boot::after { background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0,.9fr) 1.1fr; gap: 70px; align-items: center; }
.about__photo { position: relative; margin: 0; }
.about__photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); position: relative; z-index: 2; }
.about__photo-accent { position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--terra); border-radius: var(--radius); z-index: 1; }
.about__photo-tag {
    position: absolute; z-index: 3; left: -14px; bottom: 26px; font-family: var(--f-mono); font-size: .76rem;
    background: var(--term-bg); color: var(--term-text); padding: 8px 13px; border-radius: 9px; box-shadow: var(--shadow-card);
}
.about__text h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; color: var(--ink); margin-bottom: 18px; }
.about__text .lead { font-size: 1.08rem; color: var(--text); margin: 0; }
.about__text .lead b { color: var(--terra-deep); }
.about__text .muted { color: var(--muted); font-size: .95rem; margin: 16px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.checks__ic { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-deep); font-size: .74rem; font-weight: 900; margin-top: 2px; }

/* ---------- STACK ---------- */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.file {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; transition-delay: var(--d, 0ms);
}
.file:hover { transform: translateY(-5px); box-shadow: var(--shadow-offset), var(--shadow-card); border-color: var(--terra-soft); }
.file__bar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.file__ic { color: var(--terra-deep); font-weight: 700; }
.file__name { color: var(--ink); font-weight: 500; }
.file__count { margin-left: auto; background: var(--terra-tint); color: var(--terra-deep); border-radius: 999px; padding: 0 8px; font-size: .7rem; font-weight: 700; }
.file__body { padding: 20px 20px 22px; }
.file__body h3 { font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.file__comment { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); margin: 6px 0 16px; }
.file__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.file:hover .tag { border-color: var(--terra-soft); }

.spoken {
    margin-top: 28px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; justify-content: center;
    padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.spoken__label { font-family: var(--f-mono); font-size: .76rem; color: var(--terra-deep); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.spoken__item { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; }
.spoken__item b { font-weight: 700; }
.spoken__item em { font-style: normal; color: var(--muted); font-size: .82rem; }
.spoken__bar { width: 70px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.spoken__bar i { display: block; height: 100%; background: var(--terra); border-radius: 6px; }

/* ---------- GIT LOG ---------- */
.log { list-style: none; margin: 0 auto; padding: 0 0 0 42px; max-width: 880px; position: relative; }
.log::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--terra), var(--line) 85%); border-radius: 2px; }
.commit { position: relative; padding: 0 0 38px; }
.commit:last-child { padding-bottom: 0; }
.commit__node { position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--terra); }
.commit:first-child .commit__node { background: var(--terra); box-shadow: 0 0 0 6px var(--terra-tint); }
.commit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--f-mono); font-size: .76rem; margin-bottom: 8px; }
.commit__hash { color: var(--str); background: none; padding: 0; font-weight: 500; }
[data-theme="light"] .commit__hash, :root:not([data-theme]) .commit__hash { color: #a07428; }
.commit__ref { color: #fff; background: var(--terra-deep); padding: 1px 8px; border-radius: 6px; font-weight: 700; }
[data-theme="dark"] .commit__ref { color: #1a1625; }
.commit__dur { margin-left: auto; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.commit__role { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--ink); }
.commit__co { margin: 4px 0 12px; font-weight: 700; color: var(--terra-deep); }
.commit__co span { color: var(--muted); font-weight: 500; }
.commit__diff { list-style: none; margin: 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; gap: 5px; }
.commit__diff li { display: flex; gap: 10px; font-size: .93rem; }
.commit__diff li span { font-family: var(--f-mono); color: var(--ok); font-weight: 700; }
[data-theme="light"] .commit__diff li span { color: #2f9a5e; }

.commit__period { color: var(--text); font-weight: 500; }
.commit__mode { color: var(--muted); padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.commit__co--place { margin-bottom: 16px; }
/* plusieurs postes dans la même entreprise : une « branche » */
.branch { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 16px; }
.branch::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 18px; width: 2px; background: var(--terra-soft); border-radius: 2px; }
.branch__item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px 16px; }
.branch__node { position: absolute; left: -26px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--terra-soft); }
.branch__item:first-child .branch__node { background: var(--terra); border-color: var(--terra); }
.branch__role { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; color: var(--ink); margin: 2px 0 0; }
.branch__item .commit__meta { margin-bottom: 4px; }
.branch__item .commit__diff { margin-top: 10px; background: var(--surface-2); border-color: transparent; padding: 10px 14px; }
.branch__item .commit__dur { margin-left: auto; }

.aside-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 64px; }
.mini { background: var(--term-bg); color: var(--term-text); border-radius: var(--radius-sm); padding: 22px 24px; font-size: .9rem; box-shadow: var(--shadow-card); }
.mini__cmd { font-family: var(--f-mono); font-size: .8rem; color: var(--terra); margin: 0 0 14px; font-weight: 700; }
.mini__cmd span { color: var(--term-dim); font-weight: 400; }
.mini__cmd--sp { margin-top: 22px; }
.oneline { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.oneline li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; }
.oneline code { font-family: var(--f-mono); color: var(--str); font-size: .78rem; background: none; padding: 0; }
.oneline b { color: #fff; font-weight: 700; }
.oneline span { color: var(--term-text); opacity: .9; }
.oneline em { font-style: normal; font-family: var(--f-mono); font-size: .74rem; color: var(--term-dim); white-space: nowrap; }
.oneline--tags li { grid-template-columns: 58px 1fr; }
.oneline--tags code { color: var(--ok); }
.mini__note { margin: 16px 0 0; font-size: .84rem; color: var(--term-dim); font-style: italic; }
.hobbies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.mini .tag { background: rgba(255,255,255,.06); border-color: var(--term-line); color: var(--term-text); }

/* ---------- PROJETS ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 40px !important; }
.filters__cmd { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); margin-right: 4px; }
.filter {
    display: inline-flex; align-items: center; gap: 8px; font: 600 .86rem var(--f-body); color: var(--text);
    padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer;
    transition: .25s var(--ease);
}
.filter span { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.filter:hover { border-color: var(--terra); transform: translateY(-2px); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter.is-active span { background: var(--terra); color: #fff; }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .35s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-offset), var(--shadow-card); border-color: var(--terra-soft); }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.card__bar { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 8px 12px; }
.card__bar i { width: 9px; height: 9px; }
.card__path { margin-left: 8px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.3) 50%, transparent 60%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.card:hover .card__shine { transform: translateX(100%); }
.card__badge {
    position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
    background: rgba(23,20,42,.88); backdrop-filter: blur(6px); color: #fff; font-family: var(--f-mono);
    font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.card__badge--wip { left: auto; right: 12px; background: #e9c58f; color: #3b2a0c; }
.card__badge--static { position: static; margin-top: 16px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.card__name b { color: var(--terra-deep); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags .tag { font-size: .68rem; padding: 3px 8px; }
.card__cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; color: var(--terra-deep); font-weight: 700; font-size: .86rem; transition: gap .3s var(--ease); }
.card:hover .card__cta { gap: 12px; }
.addons-note { text-align: center; margin-top: 30px !important; font-family: var(--f-mono); font-size: .86rem; color: var(--terra-deep); }

/* =========================================================
   UNIVERS DE PROJETS — une couleur, une icône, un style de carte
   apps (terracotta) · sites (bleu acier) · jeux (vert) · addons LOTRO (or)
   ========================================================= */
.cat--web     { --c: #b56b56; --c-bg: rgba(216,149,132,.17); }
.cat--website { --c: #3b7398; --c-bg: rgba(84,145,186,.15); }
.cat--game    { --c: #2f8a57; --c-bg: rgba(111,207,151,.17); }
.cat--addon   { --c: #9a6d17; --c-bg: rgba(224,178,92,.22); }
[data-theme="dark"] .cat--web     { --c: #e8ab97; }
[data-theme="dark"] .cat--website { --c: #8cc0e0; }
[data-theme="dark"] .cat--game    { --c: #7fdca6; }
[data-theme="dark"] .cat--addon   { --c: #e9c58f; }

/* index des univers */
.cat-index__label { text-align: center; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin: -16px 0 18px; }
.cat-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; transition-delay: var(--d, 0ms);
}
.cat-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.cat-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c-bg); z-index: -1; transition: transform .5s var(--ease); }
.cat-tile:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: 8px 8px 0 0 var(--c-bg), var(--shadow-card); }
.cat-tile:hover::after { transform: scale(1.35); }
.cat-tile__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--c-bg); color: var(--c); margin-bottom: 8px; }
.cat-tile__path { font-family: var(--f-mono); font-size: .72rem; color: var(--c); font-weight: 500; }
.cat-tile__title { font-family: var(--f-display); font-size: 1.32rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.cat-tile__desc { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.cat-tile__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.cat-tile__count { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cat-tile__go { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--c); transition: .3s var(--ease); }
.cat-tile:hover .cat-tile__go { background: var(--c); color: #fff; border-color: var(--c); transform: translateY(2px); }

/* en-tête d'univers */
.pcat__head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 38px !important; padding-bottom: 26px; border-bottom: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.pcat__ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 8px 8px 0 0 var(--c-bg); }
[data-theme="dark"] .pcat__ic { color: #15121f; }
.pcat__cmd { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.pcat__n { background: var(--c); color: #fff; font-weight: 700; padding: 1px 7px; border-radius: 6px; font-size: .7rem; }
[data-theme="dark"] .pcat__n { color: #15121f; }
.pcat__titles h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 900; color: var(--ink); margin: 6px 0 4px; }
.pcat__titles p { margin: 0; color: var(--muted); max-width: 640px; }
.pcat__titles p b { color: var(--c); }
.pcat__count { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; color: var(--c); background: var(--c-bg); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

/* grilles d'univers */
.pgrid { display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); }
.pgrid > * { grid-column: span 2; }
.pgrid--n5 > :nth-child(-n+2) { grid-column: span 3; }       /* 5 cartes : 2 + 3 */
.pgrid--n4 > *, .pgrid--n2 > * { grid-column: span 3; }       /* 4 ou 2 cartes : 2 par ligne */
.pgrid--n1 > * { grid-column: 1 / -1; }

/* éléments communs aux nouvelles cartes */
.card__desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.card .card__tags .tag { border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.card__cta { color: var(--c) !important; }
.card:hover { border-color: var(--c); }
.card .spinner { width: 10px; height: 10px; border-width: 1.6px; }

/* 1) APPLICATIONS : fenêtre d'appli */
.card__plat { margin-left: auto; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; color: var(--c); background: var(--c-bg); padding: 1px 8px; border-radius: 999px; }

/* 2) SITES : navigateur avec URL */
.card__browser { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card__browser i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; flex: none; }
.card__browser i:nth-child(2) { background: #febc2e; } .card__browser i:nth-child(3) { background: #28c840; }
.card__url { flex: 1; min-width: 0; margin-left: 6px; display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__url svg { color: var(--ok); flex: none; }
.card__live { flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: .64rem; font-weight: 700; color: #2f8a57; text-transform: uppercase; letter-spacing: .06em; }
.card__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
[data-theme="dark"] .card__live { color: var(--ok); }
.card--site .card__media { aspect-ratio: 16 / 9.5; }

/* 3) JEUX : bande sombre « arcade » */
.pcat--dark { background: #15122a !important; color: #e7e3f0; }
.pcat--dark::before, .pcat--dark::after { background: var(--bg); }
.pcat--dark .pcat__titles h2 { color: #fff; }
.pcat--dark .pcat__titles p, .pcat--dark .pcat__cmd { color: #a49ebb; }
.pcat--dark.cat--game { --c: #7fdca6; --c-bg: rgba(111,207,151,.16); }
.pcat--dark .pcat__ic, .pcat--dark .pcat__n { color: #10241a; }
.pcat--dark { background-image: radial-gradient(60% 50% at 85% 10%, rgba(111,207,151,.10), transparent 70%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) !important; background-size: auto, 40px 40px, 40px 40px !important; }
.card--game { background: #1e1a35; border-color: rgba(255,255,255,.08); color: #e7e3f0; }
.card--game .card__name { color: #fff; }
.card--game .tag { background: rgba(255,255,255,.06); color: #dcd8e6; border-color: rgba(255,255,255,.12) !important; }
.card--game:hover { box-shadow: 0 0 0 1px var(--c), 0 20px 50px -20px rgba(111,207,151,.35); }
.card--game .card__media { aspect-ratio: 16 / 10; }
.card--game .card__media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); pointer-events: none; }
.card__chips { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.card__chip { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(15,12,30,.82); color: #fff; backdrop-filter: blur(4px); }
.card__chip--warn { color: #ffd48a; display: inline-flex; align-items: center; gap: 5px; }
.card__chip--new { background: var(--ok); color: #10241a; }
.card__chip .spinner { width: 9px; height: 9px; border-width: 1.5px; }
.card__play {
    position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center;
    border-radius: 50%; background: var(--c); color: #10241a; font-size: 1.2rem; padding-left: 4px;
    box-shadow: 0 0 0 8px rgba(111,207,151,.22); transform: scale(.85); opacity: 0; transition: .35s var(--ease);
}
.card--game:hover .card__play { transform: none; opacity: 1; }
.card__press { margin-left: auto; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; color: #8e88a6; animation: blink 1.4s steps(1) infinite; }

/* 4) ADDONS LOTRO : cartes horizontales, téléchargements en grand */
.pcat--addon .pcat__head { position: relative; }
.card--addon { flex-direction: row; background: linear-gradient(135deg, var(--surface), var(--c-bg)); }
.pgrid--addon > * { grid-column: 1 / -1 !important; }
.card--addon .card__media { flex: 0 0 44%; aspect-ratio: 640 / 436; border-right: 1px solid var(--line); }
.card--addon .card__body { padding: 30px 34px 28px; gap: 10px; justify-content: center; }
.card--addon .card__desc { font-size: .95rem; max-width: 520px; }
.card--addon:nth-child(even) { flex-direction: row-reverse; }
.card--addon:nth-child(even) .card__media { border-right: 0; border-left: 1px solid var(--line); }
.card__game { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .08em; }
.card--addon .card__name { font-size: 1.7rem; font-weight: 900; }
.card__dl { font-size: .86rem; color: var(--muted); font-weight: 600; }
.card__dl b { display: block; font-family: var(--f-display); font-size: 2.3rem; font-weight: 900; color: var(--c); line-height: 1; letter-spacing: -.02em; }

.pcat__ic--logo { background: transparent !important; box-shadow: none !important; width: 96px; height: 96px; }
.pcat__ic--logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); transition: transform .8s var(--ease); }
.pcat__head:hover .pcat__ic--logo img { transform: rotate(-12deg) scale(1.05); }
.pcat__studio { margin-top: 8px !important; font-family: var(--f-mono); font-size: .76rem; color: #a49ebb; }
.pcat__studio b { color: var(--c); }
.pcat__studio span { color: #8e88a6; }
.pcat__studio--addon { color: var(--muted); font-family: var(--f-body); font-size: .92rem; }
.pcat__studio--addon b { color: var(--c); font-family: var(--f-mono); }
/* logo image dans le menu (option BRAND_LOGO) */
.nav__logo { width: 40px; height: 40px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: transform .5s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-10deg) scale(1.06); }
.nav__logo--sm { width: 34px; height: 34px; }

/* page projet : étiquette d'univers */
.proj__banner .proj__kicker { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.proj__banner .proj__kicker:hover { color: var(--terra-soft); }
.proj__kicker-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--c); color: #fff; }
.proj__banner .cat--web { --c: #D89584; } .proj__banner .cat--website { --c: #5a96bd; }
.proj__banner .cat--game { --c: #3fae70; } .proj__banner .cat--addon { --c: #c9962f; }

@media (max-width: 1040px) {
    .cat-index { grid-template-columns: repeat(2, 1fr); }
    .pgrid { grid-template-columns: repeat(2, 1fr); }
    .pgrid > *, .pgrid--n5 > :nth-child(-n+2), .pgrid--n4 > *, .pgrid--n2 > * { grid-column: span 1; }
    .pgrid--n5 > :first-child, .pgrid--n3 > :first-child { grid-column: 1 / -1; }
    .pgrid--addon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cat-index { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-tile { padding: 16px 14px 14px; }
    .cat-tile__desc { display: none; }
    .cat-tile__title { font-size: 1.08rem; }
    .pcat__head { grid-template-columns: auto 1fr; gap: 14px; }
    .pcat__ic { width: 50px; height: 50px; border-radius: 14px; }
    .pcat__ic--logo { width: 64px; height: 64px; }
    .pcat__count { grid-column: 1 / -1; justify-self: start; }
    .pgrid { grid-template-columns: 1fr; gap: 18px; }
    .pgrid > *, .pgrid--n5 > :first-child, .pgrid--n3 > :first-child { grid-column: auto; }
    .card--addon, .card--addon:nth-child(even) { flex-direction: column; }
    .card--addon:nth-child(even) .card__media { border-left: 0; }
    .card--addon .card__body { padding: 20px 18px; }
    .card--addon .card__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
    .card__play { opacity: 1; transform: none; width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* ---------- CONTACT ---------- */
.contact__card {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; max-width: 1080px; margin: 0 auto;
    background: linear-gradient(135deg, var(--surface), var(--terra-tint)); border: 1px solid var(--line);
    border-radius: 26px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-card);
}
.contact__body h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.contact__body p { color: var(--muted); margin: 0 0 26px; font-size: 1.02rem; }
.term--mail { transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.term--mail:hover { transform: none; }
.copy { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--term-line); background: rgba(255,255,255,.05); color: var(--term-dim); cursor: pointer; transition: .2s; }
.copy:hover { color: #fff; border-color: var(--terra); }
.copy.is-ok { color: var(--ok); border-color: var(--ok); }

/* ---------- FOOTER + STATUSBAR ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ink); line-height: 1.2; }
.footer__brand span { font-size: .8rem; color: var(--muted); }
.footer__made { margin: 0 auto; color: var(--muted); font-size: .9rem; }
.heart { color: var(--blood); }
.footer__links { display: flex; gap: 18px; font-size: .88rem; font-weight: 600; }
.footer__links a:hover { color: var(--terra-deep); }
.statusbar { display: flex; align-items: center; gap: 2px; background: #211d3a; color: #cfcae0; font-family: var(--f-mono); font-size: .7rem; height: 26px; padding: 0 0 0 0; overflow: hidden; }
[data-theme="dark"] .statusbar { background: #0b0913; }
.statusbar__item { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; height: 100%; white-space: nowrap; }
.statusbar__item--accent { background: var(--terra); color: #fff; }
.statusbar__spacer { flex: 1; }
.statusbar__top:hover { background: rgba(255,255,255,.1); }

/* ---------- PALETTE DE COMMANDES ---------- */
.kbar { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: start center; padding: 14vh 16px 16px; background: rgba(12,10,22,.55); backdrop-filter: blur(4px); animation: fade .2s; }
.kbar[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.kbar__panel { width: min(620px, 100%); background: var(--term-bg); color: var(--term-text); border-radius: 16px; box-shadow: var(--shadow-term); overflow: hidden; font-family: var(--f-mono); animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.kbar__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--term-line); }
.kbar__prompt { color: var(--terra); font-weight: 700; }
.kbar__input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 500 1rem var(--f-mono); }
.kbar__input input::placeholder { color: var(--term-dim); }
.kbar kbd { font-family: var(--f-mono); font-size: .68rem; color: var(--term-dim); border: 1px solid var(--term-line); border-radius: 5px; padding: 1px 6px; background: none; box-shadow: none; min-width: 0; }
.kbar__list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.kbar__group { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--term-dim); padding: 10px 10px 4px; }
.kbar__item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: .86rem; }
.kbar__item small { margin-left: auto; color: var(--term-dim); font-size: .72rem; white-space: nowrap; }
.kbar__item.is-sel { background: rgba(216,149,132,.16); color: #fff; }
.kbar__item.is-sel small { color: var(--terra-soft); }
.kbar__item::before { content: "›"; color: var(--term-dim); }
.kbar__item.is-sel::before { color: var(--terra); }
.kbar__empty { padding: 18px 12px; color: var(--err); font-size: .84rem; }
.kbar__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--term-line); font-size: .7rem; color: var(--term-dim); }

.toast {
    position: fixed; left: 50%; bottom: 44px; z-index: 2100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--term-bg); color: var(--term-text); font-family: var(--f-mono); font-size: .8rem; padding: 10px 16px; border-radius: 10px;
    box-shadow: var(--shadow-term); transition: .3s var(--ease);
}
.toast::before { content: "✓ "; color: var(--ok); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- PAGE PROJET ---------- */
.proj__banner { position: relative; min-height: 340px; margin-top: var(--nav-h); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: #1a1730; }
.proj__banner-img { position: absolute; inset: -20px; z-index: -3; background-size: cover; background-position: center; filter: blur(3px) saturate(.9); }
.proj__banner-veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(23,20,42,.95), rgba(33,29,58,.7) 60%, rgba(181,107,86,.45)); }
.proj__banner-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 50px 28px 44px; }
.crumbs { font-family: var(--f-mono); font-size: .8rem; color: rgba(255,255,255,.6); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a:hover { color: var(--terra-soft); }
.crumbs b { color: #fff; font-weight: 500; }
.proj__kicker { display: inline-block; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .2em; color: var(--terra-soft); margin-bottom: 12px; }
.proj__title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 900; color: #fff; max-width: 900px; }
.proj__title b { color: var(--terra); }

.proj__layout { max-width: var(--maxw); margin: 0 auto; padding: 44px 28px 30px; display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 50px; align-items: start; }
.readme { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.readme__tab { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--f-mono); font-size: .78rem; color: var(--ink); font-weight: 500; }
.readme__tab svg { color: var(--muted); }
.readme__body { padding: 26px 28px 10px; }
.proj__content p { margin: 0 0 16px; }
.proj__content ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.proj__content ul.keys li, .proj__content ul.cmds li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
kbd { font-family: var(--f-mono); font-weight: 700; min-width: 30px; text-align: center; padding: 3px 9px; background: #211d3a; color: #fff; border-radius: 7px; font-size: .78rem; box-shadow: 0 2px 0 rgba(0,0,0,.35); flex: none; }
code { font-family: var(--f-mono); background: var(--terra-tint); color: var(--terra-deep); padding: 3px 8px; border-radius: 6px; font-size: .82rem; font-weight: 500; flex: none; }
.proj__content .warn { background: var(--terra-tint); border: 1px solid var(--terra-soft); color: var(--terra-deep); padding: 12px 16px; border-radius: 12px; font-weight: 600; }

.proj__media { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.browser { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-offset), var(--shadow-card); background: var(--term-bg); }
.browser__bar { padding: 9px 12px; }
.browser__bar i { width: 10px; height: 10px; }
.browser__url { flex: 1; margin-left: 8px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); color: var(--term-dim); font-family: var(--f-mono); font-size: .7rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.browser__view { position: relative; display: block; }
.browser__view img, .browser__view video { width: 100%; display: block; }
.proj__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(33,29,58,.4); opacity: 0; transition: opacity .35s; }
.browser__view:hover .proj__play { opacity: 1; }
.notice { display: flex; gap: 10px; align-items: center; padding: 11px 15px; border-radius: 12px; font-size: .84rem; font-weight: 600; margin: 0; }
.notice--warn { background: #fdeceb; color: #b23b2e; border: 1px solid #f3c2bc; }
.notice--wip { background: #fff7e6; color: #8f6514; border: 1px solid #f0dca8; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pkg { background: var(--term-bg); border-radius: var(--radius-sm); overflow: hidden; }
.pkg__file { margin: 0; padding: 9px 16px; font-family: var(--f-mono); font-size: .72rem; color: var(--term-dim); border-bottom: 1px solid var(--term-line); background: var(--term-bar); }
.pkg__code { margin: 0; padding: 14px 18px; font-family: var(--f-mono); font-size: .8rem; line-height: 1.6; color: var(--term-text); overflow-x: auto; }

.pager { max-width: var(--maxw); margin: 10px auto 0; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pager__item { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: .3s var(--ease); }
.pager__item:hover { border-color: var(--terra); transform: translateY(-3px); box-shadow: var(--shadow-offset); }
.pager__item--next { text-align: right; }
.pager__dir { font-family: var(--f-mono); font-size: .76rem; color: var(--terra-deep); }
.pager__name { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }

/* ---------- 404 ---------- */
.error { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; padding: calc(var(--nav-h) + 30px) 24px 60px; overflow: hidden; isolation: isolate; background: #1a1730; }
.error__bg { position: absolute; inset: 0; z-index: -3; background: url("../../IMG/cover_2.jpg") center/cover; }
.error__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(23,20,42,.88), rgba(33,29,58,.8) 60%, rgba(181,107,86,.5)); }
.error__content { position: relative; z-index: 1; width: min(640px, 100%); display: grid; justify-items: center; gap: 22px; }
.error__code { font-family: var(--f-display); font-weight: 900; font-size: clamp(5.5rem, 20vw, 11rem); line-height: .85; color: #fff; letter-spacing: -.04em; }
.error__code span { color: var(--terra); display: inline-block; animation: glitch 3s infinite steps(1); }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 94% { transform: translate(-4px, 2px) skewX(8deg); } 96% { transform: translate(3px, -2px); } }
.term--err { width: 100%; }
.error__content h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .term--hero, .term--mail { transform: none; }
    .caret { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
    .nav__path { display: none; }
    .nav__num { display: none; }
    .nav__links { gap: 18px; }
}
@media (max-width: 1040px) {
    .hero__inner { grid-template-columns: 1fr; }
    .term--hero { transform: none; max-width: 620px; }
    .hero { padding-bottom: 110px; }
    .stack, .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .about__grid { grid-template-columns: 1fr; gap: 50px; }
    .about__photo { max-width: 480px; }
    .aside-grid { grid-template-columns: 1fr; }
    .contact__card { grid-template-columns: 1fr; }
    .proj__layout { grid-template-columns: 1fr; gap: 32px; }
    .proj__media { position: static; max-width: 560px; }
    .kbar-btn__k { display: none; }
    .kbar-btn { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
    .nav__links {
        position: fixed; top: var(--nav-h); right: 0; bottom: 0; width: min(82vw, 330px); z-index: 999;
        flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: 16px;
        transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
    }
    .nav.is-menu .nav__links { transform: none; }
    .nav.is-menu { background: var(--bg) !important; }
    .nav.is-menu .nav__name { color: var(--ink) !important; }
    .nav.is-menu :is(.langs__current, .theme-toggle, .kbar-btn) { color: var(--text) !important; border-color: var(--line) !important; }
    .nav__links a { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--text) !important; }
    .nav__links .nav__num { display: inline; }
    .nav__links a::after { display: none; }
    html body .nav.nav .nav__links a.nav__cv.nav__cv { margin-top: 14px; justify-content: center; border: 1.5px solid var(--terra) !important; color: var(--terra-deep) !important; }
    .nav__burger { display: flex; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat--boot { grid-column: 1 / -1; }
    .stat:nth-child(2n) { border-left: 0; }
    .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    :root { --nav-h: 62px; }
    .nav__inner { padding: 0 16px; gap: 10px; }
    .nav__name { font-size: 1rem; }
    .langs__current span, .langs__current > svg { display: none; }
    .langs__current { width: 34px; padding: 0; justify-content: center; }
    .hero { padding: calc(var(--nav-h) + 26px) 16px 96px; }
    .hero__title { font-size: clamp(3rem, 15vw, 4.2rem); }
    .hero__actions .btn { flex: 1 1 auto; }
    .term { font-size: .74rem; }
    .term__body { padding: 14px 14px 16px; }
    .nf { grid-template-columns: 1fr; gap: 14px; }
    .nf__logo img { width: 84px; height: 84px; }
    .nf__row dt { min-width: 46px; }
    .section { padding: 80px 16px; }
    .present { padding: 76px 16px 20px; }
    .stack, .grid--3 { grid-template-columns: 1fr; }
    .log { padding-left: 30px; }
    .log::before { left: 7px; }
    .commit__node { left: -30px; }
    .commit__dur { margin-left: 0; }
    .oneline li { grid-template-columns: auto 1fr; }
    .oneline em { grid-column: 2; }
    .contact__card { padding: 26px 18px; border-radius: 20px; }
    .term--mail { transform: none; }
    .about__photo { margin-right: 10px; }
    .about__photo-accent { inset: 12px -10px -12px 12px; }
    .about__photo-tag { left: 10px; }
    .footer__inner { flex-direction: column; text-align: center; padding: 24px 16px; }
    .footer__made { margin: 0; }
    .statusbar__item:nth-child(n+4):not(.statusbar__top) { display: none; }
    .proj__banner { min-height: 280px; }
    .proj__banner-inner { padding: 34px 16px 32px; }
    .proj__layout { padding: 30px 16px 20px; }
    .readme__body { padding: 20px 18px 6px; }
    .pager { grid-template-columns: 1fr; padding: 0 16px; }
    .pager__item--next { text-align: left; }
    .filters__cmd { width: 100%; text-align: center; }
}

/* ---------- DARK : ajustements ponctuels ---------- */
[data-theme="dark"] .btn--solid { color: #1a1625; }
[data-theme="dark"] .btn--solid:hover { background: #fff; color: #1a1625; }
[data-theme="dark"] .filter.is-active { background: var(--terra); border-color: var(--terra); color: #1a1625; }
[data-theme="dark"] .filter.is-active span { background: #1a1625; color: var(--terra); }
[data-theme="dark"] .notice--warn { background: rgba(178,59,46,.16); color: #f0a99f; border-color: rgba(240,120,105,.4); }
[data-theme="dark"] .notice--wip { background: rgba(169,121,27,.16); color: #e8c777; border-color: rgba(240,200,120,.4); }
[data-theme="dark"] .commit__node { background: var(--bg); }
[data-theme="dark"] .commit:first-child .commit__node { background: var(--terra); }
[data-theme="dark"] .about__photo-tag { border: 1px solid var(--line); }
[data-theme="dark"] .mini, [data-theme="dark"] .pkg, [data-theme="dark"] .term, [data-theme="dark"] .browser { box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
[data-theme="light"] .commit__hash { color: #a07428; }
