/* Polices auto-hébergées, sous-ensemble latin (licence OFL, voir OFL-*.txt).
   Les fichiers woff2 sont des polices variables : un seul fichier couvre toutes les graisses utilisées
   (JetBrains Mono 400, 500, 700, 800 ; IBM Plex Sans 400, 500, 600, 700). */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght.83c005d49d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-wght.e2291e842c.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-italic.6de912e531.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #121722;
  --deep: #0e121b;
  --panel: #161c28;
  --panel-2: #1c2332;
  --line: #262e42;
  --line-2: #323b52;
  --text: #e8ecf3;
  --soft: #c3cad6;
  --muted: #8b95a9;
  --amber: #f5a524;
  --amber-dim: rgba(245,165,36,.14);
  --green: #5fd38d;
  --purple: #a283f0;
  --blue: #6b9bf2;
  --red: #f0716b;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --side: 272px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::selection { background: var(--amber); color: var(--deep); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

/* ───────── Barre latérale ───────── */
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  font: 400 .85rem/1.45 var(--mono);
}
.side-head { padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
.side-head .host { color: var(--amber); font-weight: 700; }
.side-head .path { color: var(--muted); }
.tree { list-style: none; margin: 0; padding: 12px 0; overflow: auto; flex: 1; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree a {
  position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 20px;
  color: var(--soft); text-decoration: none; border-left: 2px solid transparent;
}
.tree a:hover { background: var(--panel-2); color: var(--text); }
.tree a[aria-current="true"] { color: var(--amber); background: var(--amber-dim); border-left-color: var(--amber); }
.tree .ico { width: 14px; flex: none; color: var(--muted); text-align: center; }
.tree a[aria-current="true"] .ico { color: var(--amber); }
.tree .sub a { padding-left: 44px; font-size: .8rem; color: var(--muted); }
.tree .sub a::before { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tree .sub a:hover { color: var(--text); }

.status { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.6; }
.status .unit { color: var(--text); font-weight: 700; }
.status .dot { color: var(--green); }
.status .k { color: var(--muted); display: inline-block; width: 8ch; }
.status .on { color: var(--green); }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang a { display: block; background: none; color: var(--muted); font: 500 .78rem/1 var(--mono); padding: 7px 10px; text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a:focus-visible { outline-offset: -2px; }
.lang a[aria-current="true"] { background: var(--amber); color: var(--deep); font-weight: 700; }
.pdf { color: var(--soft); font-size: .78rem; text-decoration: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; }
.pdf:hover { color: var(--text); border-color: var(--muted); }

/* ───────── Contenu ───────── */
main { padding: 40px clamp(16px, 4.5vw, 64px) 40px; max-width: 1080px; width: 100%; }
section { margin-top: 88px; }
section:first-child { margin-top: 0; }

.file { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.file h2 { margin: 0; font: 700 1.6rem/1.2 var(--sans); letter-spacing: -.01em; }
.file .tab {
  font: 400 .78rem/1 var(--mono); color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line); border-bottom-color: var(--night); border-radius: 6px 6px 0 0; background: var(--panel);
}
.file::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Terminal */
.term { position: relative; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.term::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; right: 3%; width: 2px; pointer-events: none;
  background: linear-gradient(transparent, rgba(245,165,36,.5) 35%, rgba(245,165,36,.5) 65%, transparent);
  transform: rotate(16deg);
}
.term-bar { position: relative; display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: #e0625a; } .term-bar i:nth-child(2) { background: #e5b33f; } .term-bar i:nth-child(3) { background: #57c26f; }
.term-bar span { flex: 1; text-align: center; font: 400 .78rem/1 var(--mono); color: var(--muted); margin-right: 50px; }
.term-body { position: relative; padding: 30px clamp(18px, 3.4vw, 44px) 26px; font: 400 .92rem/1.6 var(--mono); }
.ps { color: var(--green); user-select: none; }
.ps b { color: var(--blue); font-weight: 400; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; animation: type 650ms steps(6) 350ms forwards; }
@keyframes type { to { width: 6ch; } }
.reveal { opacity: 0; animation: show 1ms 1150ms forwards; }
@keyframes show { to { opacity: 1; } }

.whoami h1 { margin: 20px 0 6px; font: 800 clamp(2.3rem, 6.2vw, 4.4rem)/1 var(--sans); letter-spacing: -.03em; }
.whoami .role { margin: 0; font: 600 clamp(1.05rem, 2vw, 1.4rem)/1.4 var(--sans); color: var(--soft); }
.whoami .role em { font-style: normal; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font: 500 .78rem/1 var(--mono); padding: 7px 10px; border-radius: 5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.chips li.hot { color: var(--amber); background: var(--amber-dim); border-color: rgba(245,165,36,.4); font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 24px; margin: 26px 0 0; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.neo-cmd { margin-top: 26px; white-space: nowrap; }
.neofetch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 40px; align-items: center; margin-top: 14px; }
.neofetch .kv { margin: 0; }
.hero-logo { display: block; width: 200px; height: auto; }
.logowall figure { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.logowall .logo { align-self: center; justify-self: center; height: 84px; width: auto; max-width: 70%; object-fit: contain; }
.wall-cmd { margin: 0 0 12px; font: 400 .88rem/1.5 var(--mono); color: var(--soft); }
.logowall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 28px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.logowall figure { margin: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 18px; padding: 26px 16px 20px; background: var(--deep); }
.logowall figcaption { text-align: center; font-size: .85rem; line-height: 1.45; }
.logowall figcaption b { display: block; font: 700 .9rem/1.3 var(--mono); color: var(--text); }
.logowall figcaption span { color: var(--muted); }
.logowall figure:hover { background: #111621; }
.repl { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.repl-out { margin: 0 0 6px; font-size: .86rem; color: var(--soft); white-space: pre-wrap; }
.repl-out .err { color: var(--red); }
.repl-out .cmd-echo { color: var(--text); }
.repl-out .hint { color: var(--muted); }
.repl-out a { color: var(--amber); }
.repl form { display: flex; align-items: center; gap: 10px; }
.repl input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); caret-color: var(--amber);
  font: inherit; padding: 4px 0;
}
.repl input::placeholder { color: #5c667b; }
.repl form:focus-within { box-shadow: 0 1px 0 var(--amber); }

/* git log */
.log { list-style: none; margin: 0; padding: 0; }
.commit { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 18px; padding-bottom: 44px; }
.commit:last-child { padding-bottom: 0; }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: -8px; width: 2px; background: var(--line-2); }
.commit:last-child .rail::before { display: none; }
.rail::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--muted);
}
.commit.head .rail::after { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px var(--amber-dim); }
.refs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.refs .pill { padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.refs .head { color: var(--green); }
.refs .tag { color: var(--amber); }
.commit h3 { margin: 8px 0 2px; font: 700 1.25rem/1.3 var(--sans); }
.commit .title { margin: 0; color: var(--soft); font-weight: 500; }
.commit .summary { margin: 14px 0 0; color: var(--soft); max-width: 75ch; }
.commit h4 { margin: 22px 0 6px; font: 500 .8rem/1.4 var(--mono); color: var(--blue); }
.commit h4::before { content: "@@ "; color: var(--muted); }
.commit h4::after { content: " @@"; color: var(--muted); }
.commit ul { margin: 8px 0 0; padding: 0; list-style: none; max-width: 78ch; }
.commit li { position: relative; padding-left: 22px; margin: 6px 0; }
.commit li::before { content: "+"; position: absolute; left: 2px; color: var(--green); font: 700 .95rem/1.65 var(--mono); }
.metric { font: 700 .95em var(--mono); color: var(--amber); white-space: nowrap; }
.trailer { margin: 16px 0 0; font: 400 .8rem/1.7 var(--mono); color: var(--muted); }
.trailer b { color: var(--soft); font-weight: 500; }

/* stack.tf */
.code { display: grid; grid-template-columns: auto minmax(0, 1fr); background: var(--deep); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font: 400 .86rem/1.8 var(--mono); }
.code .gutter { padding: 20px 14px 20px 18px; text-align: right; color: #4d576b; user-select: none; border-right: 1px solid var(--line); background: rgba(22,28,40,.5); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: inherit; color: var(--text); }
.code .c { color: var(--muted); font-style: italic; }
.code .k { color: var(--purple); }
.code .s { color: var(--amber); }
.code .a { color: var(--blue); }
.code .p { color: var(--muted); }
.plan-line { margin: 14px 0 0; font: 500 .85rem/1.5 var(--mono); color: var(--soft); }
.plan-line b { color: var(--green); }

/* projets */
.projects { display: grid; gap: 22px; }
.proj { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.proj-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 11px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font: 400 .78rem/1.4 var(--mono); color: var(--muted); }
.proj-bar .path b { color: var(--text); font-weight: 500; }
.proj-bar .since { color: var(--amber); }
.proj-body { padding: 22px 22px 24px; }
.proj h3 { margin: 0; font: 700 1.2rem/1.3 var(--sans); }
.proj p { margin: 8px 0 0; color: var(--soft); max-width: 78ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { font: 400 .74rem/1 var(--mono); color: var(--muted); padding: 5px 8px; border-radius: 4px; background: var(--deep); border: 1px solid var(--line); }
.claude-note { margin: 0 0 22px; font: 400 .85rem/1.5 var(--mono); color: var(--muted); }
.claude-note b { color: var(--soft); font-weight: 500; }

.diagram { display: block; width: 100%; height: auto; margin-top: 20px; }
.diagram .box { fill: var(--deep); stroke: var(--line-2); stroke-width: 1.2; }
.diagram .box.hot { stroke: var(--amber); }
.diagram .t { font: 500 12.5px var(--mono); fill: var(--text); }
.diagram .s { font: 400 10.5px var(--mono); fill: var(--muted); }
.diagram .w { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.diagram .w.hot { stroke: var(--amber); }
.diagram .w.dash { stroke-dasharray: 4 4; }

.kubectl { margin-top: 18px; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font: 400 .8rem/1.75 var(--mono); overflow-x: auto; }
.kubectl table { border-collapse: collapse; min-width: 440px; }
.kubectl th { text-align: left; font-weight: 500; color: var(--muted); padding-right: 32px; }
.kubectl td { padding-right: 32px; color: var(--soft); white-space: nowrap; }
.kubectl td.ok { color: var(--green); }
.kubectl .more { color: var(--muted); padding-top: 4px; }

/* projets phares */
.proj.flagship { border-color: var(--line-2); }
.proj.flagship .proj-body { padding: 28px clamp(18px, 3vw, 32px) 30px; }
.proj.flagship h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.proj .lede { font-size: 1.04rem; color: var(--soft); max-width: 72ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 14px 16px; border-left: 1px solid var(--line); background: var(--deep); }
.facts div:first-child { border-left: 0; }
.facts dt { font: 800 1.35rem/1.15 var(--mono); color: var(--amber); }
.facts dd { margin: 6px 0 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.gens { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gens li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--deep); }
.gens li.now { border-color: rgba(245,165,36,.5); }
.gens .v { display: inline-block; font: 700 .75rem/1 var(--mono); color: var(--muted); padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 4px; margin-bottom: 10px; }
.gens li.now .v { color: var(--deep); background: var(--amber); border-color: var(--amber); }
.gens b { display: block; font-weight: 600; }
.gens span:last-child { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.diagram .layer { fill: none; stroke: var(--line-2); stroke-dasharray: 5 5; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 22px; }
.blocks h4 { margin: 0 0 4px; font: 500 .82rem/1.4 var(--mono); color: var(--blue); }
.blocks p { margin: 0; font-size: .95rem; }
.proj.mid .proj-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.proj.mid .diagram { margin-top: 0; }
.dwrap { margin-top: 20px; }
.dwrap .diagram { margin-top: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tools { list-style: none; margin: 12px 0 0; padding: 0; }
.tools li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--soft); }
.tools li:first-child { border-top: 0; }
.tools b { color: var(--text); font-weight: 600; }

/* reviews */
.reviews { display: grid; gap: 20px; }
.review { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .74rem/1 var(--mono); color: var(--green); padding: 5px 9px; border-radius: 999px; background: rgba(95,211,141,.12); border: 1px solid rgba(95,211,141,.35); }
.review-head b { font-weight: 600; }
.review-head .who { color: var(--muted); }
.review blockquote { margin: 0; padding: 18px 22px 20px; font-size: 1.06rem; line-height: 1.65; color: var(--text); }

/* formation */
.edu { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.edu div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 1em; padding: 14px 20px; border-top: 1px solid var(--line); }
.edu div:first-child { border-top: 0; }
.edu .y { font: 500 .85rem/1.6 var(--mono); color: var(--amber); }
.edu .what b { font-weight: 600; }
.edu .what span { color: var(--muted); }

/* contact */
.contact { background: var(--deep); border: 1px solid rgba(245,165,36,.45); border-radius: 12px; padding: 28px clamp(18px, 3vw, 32px); }
.contact .run { font: 400 .9rem/1.6 var(--mono); color: var(--soft); }
.contact h3 { margin: 14px 0 6px; font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.25 var(--sans); }
.contact p { margin: 0; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 8px; font: 600 .92rem/1 var(--mono); text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--deep); }
.btn.primary:hover { background: #ffb53f; }
.copied { font: 400 .85rem/1 var(--mono); color: var(--green); align-self: center; min-height: 1em; }

.foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 .78rem/1.7 var(--mono); color: var(--muted); }
.foot p { margin: 0; }
.foot .credit { margin-top: 6px; font-size: .72rem; line-height: 1.6; color: var(--muted); }


/* ───────── Mobile ───────── */
@media screen and (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: stretch; }
  .side-head, .status, .tree .sub, .pdf { display: none; }
  .side > nav { flex: 1; min-width: 0; }
  .tree { display: flex; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .tree > li > a { white-space: nowrap; padding: 13px 14px; border-left: 0; border-bottom: 2px solid transparent; }
  .tree a[aria-current="true"] { border-bottom-color: var(--amber); }
  .side-foot { border-top: 0; border-left: 1px solid var(--line); padding: 0 12px; }
  main { padding: 24px 16px 32px; }
  section { margin-top: 64px; }
  .commit { grid-template-columns: 20px minmax(0, 1fr); gap: 0 12px; }
  .rail::before { left: 9px; } .rail::after { left: 3px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gens, .blocks, .proj.mid .proj-body { grid-template-columns: minmax(0, 1fr); }
  .dwrap { overflow-x: auto; margin-inline: -4px; padding-bottom: 6px; }
  .dwrap .diagram { width: 640px; max-width: none; }
  .edu div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .code .gutter { display: none; }
  .neofetch { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .neofetch .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .neofetch .kv dt { margin-top: 10px; }
  .neofetch .kv dt:first-child { margin-top: 0; }
  .neo-cmd { font-size: .74rem; }
  .logowall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-logo { width: 150px; }
  .term-body { font-size: .8rem; }
  .term-bar span { margin-right: 0; }
  .term::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typed { animation: none; width: 6ch; } .reveal { animation: none; opacity: 1; }
}
/* ───────── Sans JavaScript (classe retirée par site.js au démarrage) ───────── */
.no-js .repl, .no-js #copy { display: none; }
.no-js .typed { animation: none; width: 6ch; }
.no-js .reveal { animation: none; opacity: 1; }

/* ───────── Page 404 ───────── */
.nf { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.nf .term { width: min(640px, 100%); }
.nf .code-404 { margin: 0 0 18px; font: 800 clamp(3rem, 12vw, 5.5rem)/1 var(--mono); color: var(--amber); letter-spacing: -.03em; }
.nf h1 { margin: 0 0 6px; font: 700 1.4rem/1.3 var(--sans); }
.nf p { margin: 0; color: var(--soft); }
.nf .nf-block + .nf-block { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-2); }

/* ───────── Impression et PDF ───────── */
@media print {
  :root { --night: #fff; --deep: #fff; --panel: #fff; --panel-2: #f3f4f6; --line: #d5d9e0; --line-2: #c4c9d2; --text: #111; --soft: #333; --muted: #5b6270; --amber: #a85f00; --amber-dim: transparent; --green: #1d6e3f; --blue: #2a5bbf; --purple: #6b46c1; --red: #b3261e; }
  html { font-size: 12.5px; scroll-behavior: auto; }
  body { background: #fff; color: #111; font-size: 1rem; line-height: 1.5; }
  .shell { display: block; min-height: 0; }
  .side, .repl, .actions, .copied, .term-bar, .term::before, .nf .term-bar { display: none !important; }
  main { max-width: none; padding: 0; }
  section { margin-top: 26px; break-inside: auto; }
  section:first-child { margin-top: 0; }
  .file { break-after: avoid; margin-bottom: 16px; }
  .file .tab { border-bottom-color: #fff; }
  .term { border: 0; border-radius: 0; box-shadow: none; background: none; overflow: visible; }
  .term-body { padding: 0; font-size: .9rem; }
  .typed { animation: none; width: 6ch; }
  .reveal { animation: none; opacity: 1; }
  .whoami h1 { margin-top: 8px; font-size: 2.6rem; }
  .whoami .role { font-size: 1.15rem; }
  .chips li, .chips li.hot { background: none; }
  .hero-logo { width: 110px; }
  .inv { filter: invert(1) hue-rotate(180deg); }
  .neofetch { gap: 0 28px; }
  .logowall { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
  .logowall figure { padding: 14px 8px 12px; gap: 10px; }
  .logowall .logo { height: 44px; }
  .logowall figcaption { font-size: .72rem; }
  .logowall figcaption b { font-size: .78rem; }
  .code .gutter { background: none; }
  .code, .kubectl { overflow: visible; }
  .code pre { overflow: visible; white-space: pre-wrap; }
  .dwrap { overflow: visible; margin: 20px 0 0; padding: 0; }
  .dwrap .diagram { width: 100%; max-width: 100%; }
  .commit, .proj, .review, .gens li, .facts, .blocks > div, .kubectl, .edu div, .contact, .code, .logowall, .proj-bar, .trailer { break-inside: avoid; page-break-inside: avoid; }
  .commit h3, .commit h4, .proj h3, .proj-bar { break-after: avoid; }
  .proj, .review, .contact, .edu, .code, .logowall, .term { box-shadow: none; }
  .btn { border-color: #999; }
  .foot { margin-top: 28px; }
  a { color: inherit; text-decoration: none; }
}
