/* ---------- Tokens ----------
   Oxyde Clair et Oxyde Sombre, déduits par themes.js (valeurs recopiées ici
   pour le mode Système et sans JavaScript). Les autres thèmes sont appliqués en ligne. */
:root {
  --bg: #f0ede6;
  --bg-alt: #ebe7e1;
  --surface: #fdfbf7;
  --surface-2: #dfdddc;
  --fg: #242433;
  --muted: #6c6b72;
  --line: #dadadc;
  --line-strong: #c9c9cc;
  --accent: #3d5af1;
  --accent-fill: #3d5af1;
  --on-accent: #ffffff;
  --select: #cdd0e8;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -12px rgba(20,20,40,.18);
  --radius: 6px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12101b;
    --bg-alt: #08070d;
    --surface: #1c1927;
    --surface-2: #282533;
    --fg: #e2e0ed;
    --muted: #8f8d99;
    --line: #2a2835;
    --line-strong: #363441;
    --accent: #d4a54a;
    --accent-fill: #d4a54a;
    --on-accent: #0e0c15;
    --select: #312719;
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 16px 40px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12101b;
  --bg-alt: #08070d;
  --surface: #1c1927;
  --surface-2: #282533;
  --fg: #e2e0ed;
  --muted: #8f8d99;
  --line: #2a2835;
  --line-strong: #363441;
  --accent: #d4a54a;
  --accent-fill: #d4a54a;
  --on-accent: #0e0c15;
  --select: #312719;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 16px 40px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
code, .mono { font-family: var(--mono); }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

kbd {
  font: 500 .78rem/1 var(--mono);
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  padding: .3em .45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }

/* Sélecteur de thème */
.tp { position: relative; }
.tp__btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 8px 0 7px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-size: .85rem; color: var(--fg);
}
.tp__btn:hover, .tp__btn[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-2); }
.tp__btn:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.tp__btn svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sw {
  display: inline-grid; grid-template-columns: repeat(4, 1fr); flex: none;
  width: 30px; height: 18px; border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.35);
}
.sw i { display: block; }
.sw--split { grid-template-columns: 3fr 1fr 3fr 1fr; }

.tp__pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: 260px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: var(--shadow); padding: 6px;
}
.tp__list { list-style: none; margin: 0; padding: 0; outline: none; }
.tp__group { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 8px 6px; }
.tp__list [role="option"] {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 5px; cursor: pointer; font-size: .9rem;
}
.tp__list [role="option"].is-active { background: var(--surface-2); }
.tp__list:focus-visible [role="option"].is-active { box-shadow: inset 0 0 0 1px var(--accent-fill); }
.tp__list [aria-selected="true"] { color: var(--accent); font-weight: 600; }
.tp__list [aria-selected="true"]::after { content: "✓"; margin-left: auto; font-family: var(--mono); }
.tp__opt { display: flex; flex-direction: column; line-height: 1.3; }
.tp__opt small { font-weight: 400; font-size: .75rem; color: var(--muted); }

/* ---------- Accroche ---------- */
.hero { padding-block: 72px 56px; }
.release { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); margin: 0 0 22px; }
.release a {
  text-decoration: none; color: var(--accent);
  border: 1px solid currentColor; border-radius: 4px; padding: 1px 7px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; max-width: 15ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Deux systèmes, même poids */
.os {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 190px; padding: 12px 18px 12px 16px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent-fill);
  border-radius: var(--radius); background: var(--surface);
  text-decoration: none;
}
.os:hover { color: inherit; border-color: var(--fg); border-left-color: var(--accent-fill); background: var(--surface-2); }
.os__name { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.os__name::after { content: "↓"; font-family: var(--mono); font-weight: 500; color: var(--accent); }
.os__meta { font-size: .78rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
}
.btn:hover { color: var(--fg); border-color: var(--fg); }
.btn--primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); background: color-mix(in srgb, var(--accent-fill) 88%, #000); border-color: transparent; }
.btn .mono { font-size: .85em; opacity: .8; }

.shot { margin: 56px 0 0; }
.shot__tabs { display: flex; gap: 4px; margin-bottom: -1px; position: relative; }
.shot__tabs button {
  all: unset; cursor: pointer;
  font: 500 .85rem var(--sans); color: var(--muted);
  padding: 8px 14px; border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.shot__tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--fg); }
.shot__tabs button:focus-visible { outline: 2px solid var(--accent-fill); }
.shot__frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 8px; box-shadow: var(--shadow);
}
.shot__frame img { border-radius: 3px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Chiffres ---------- */
.facts { border-block: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid > div { padding: 26px 20px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.facts__grid > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { font-size: 2rem; font-weight: 500; line-height: 1; color: var(--accent); }
.facts span { font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 36px; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.section__head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Explorateur de fonctions ---------- */
.explorer {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.explorer__bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.explorer__bar .sep { opacity: .6; }
.explorer__bar span:last-child { color: var(--fg); }
.explorer__body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 420px; }
.explorer__side { list-style: none; margin: 0; padding: 10px 8px; border-right: 1px solid var(--line); background: var(--bg-alt); }
.explorer__side button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 4px; font-size: .93rem; color: var(--muted);
}
.explorer__side button::before {
  content: ""; width: 15px; height: 12px; flex: none;
  border: 1.6px solid currentColor; border-radius: 2px 2px 2px 2px;
  clip-path: polygon(0 0, 40% 0, 50% 18%, 100% 18%, 100% 100%, 0 100%);
  opacity: .8;
}
.explorer__side button:hover { color: var(--fg); background: var(--surface-2); }
.explorer__side button[aria-selected="true"] { color: var(--fg); background: var(--select); box-shadow: inset 3px 0 0 var(--accent-fill); }
.explorer__side button[aria-selected="true"]::before { color: var(--accent-fill); opacity: 1; }
.explorer__side button:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: -2px; }

.explorer__main { display: flex; flex-direction: column; min-width: 0; }
.list-head, .panel > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding-inline: 18px; }
.list-head { padding-block: 9px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.panel { margin: 0; flex: 1; }
.panel > div { padding-block: 13px; border-bottom: 1px solid var(--line); }
.panel > div:hover { background: var(--surface-2); }
.panel dt { font-weight: 600; }
.panel dd { margin: 0; color: var(--muted); }
.list-foot { padding: 9px 18px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: -1px; }

/* ---------- Performances ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pillars article { padding: 22px 24px 8px 0; }
.pillars article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars__tag { font-size: .75rem; color: var(--accent); margin: 0 0 10px; letter-spacing: .04em; }
.pillars h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.pillars p:not(.pillars__tag) { color: var(--muted); font-size: .93rem; margin: 0; }

.turbo {
  margin-top: 64px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
.turbo__intro { padding: 28px; border-right: 1px solid var(--line); }
.turbo__intro h3 { font-size: 1.35rem; font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.turbo__intro p { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }
.turbo__badge {
  font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-fill); color: var(--on-accent); padding: 3px 9px; border-radius: 4px;
}

.turbo__table { display: flex; flex-direction: column; min-width: 0; }
.turbo__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.turbo__row--head { padding-block: 10px; font-size: .75rem; color: var(--muted); background: var(--bg-alt); }
.turbo__row--head span:last-child { color: var(--accent); }
.turbo__row b { font-weight: 600; }
.turbo__row small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 3px; }
.turbo__row [role="cell"] { display: flex; flex-direction: column; gap: 7px; font-size: .8rem; color: var(--muted); }
.turbo__row [role="cell"]:last-child .mono { color: var(--fg); }
.turbo__span { grid-column: 2 / -1; font-size: .88rem !important; gap: 4px !important; }
.turbo__span b { color: var(--accent); font-weight: 500; margin-right: 4px; }
.turbo__note { grid-column: 1 / -1; margin: 0; padding: 16px 28px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: -1px; }

/* Jauge de workers : une case par worker possible, cases pleines pour ceux utilisés */
.lanes {
  --cell: 11px;
  position: relative; display: block;
  width: calc(var(--max) * var(--cell) - 3px); height: 9px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px var(--cell));
}
.lanes::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--n) * var(--cell) - 3px);
  background: repeating-linear-gradient(90deg, var(--muted) 0 8px, transparent 8px var(--cell));
}
.lanes--on::after { background: repeating-linear-gradient(90deg, var(--accent-fill) 0 8px, transparent 8px var(--cell)); }

/* ---------- Installation ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 28px; }
.tabs button { all: unset; cursor: pointer; padding: 7px 18px; border-radius: 6px; font-weight: 500; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.tabs button:focus-visible { outline: 2px solid var(--accent-fill); }

.req { font-size: .82rem; color: var(--muted); margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; }
.card--rec { border-color: var(--accent-fill); }
.card h3 { font-size: 1.15rem; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.card h3 small { font: 500 .75rem var(--mono); color: var(--accent); }
.file { font-size: .82rem; color: var(--muted); margin: 6px 0 14px; overflow-wrap: anywhere; }
.card ul { margin: 0; padding-left: 18px; }
.card li + li { margin-top: 6px; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }

.cmd { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.cmd pre { margin: 0; padding: 16px 18px; overflow-x: auto; flex: 1; min-width: 0; }
.cmd pre code { background: none; padding: 0; font-size: .88rem; white-space: pre; }
.copy { all: unset; cursor: pointer; padding: 0 18px; border-left: 1px solid var(--line); font: 500 .82rem var(--mono); color: var(--muted); }
.copy:hover { color: var(--fg); background: var(--surface-2); }
.copy:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: -2px; }
.copy.is-done { color: var(--accent); }

.opts { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .93rem; }
.opts th, .opts td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.opts th { font-weight: 400; padding-right: 24px; white-space: nowrap; width: 1%; }
.opts td { color: var(--muted); }
.opts code { white-space: nowrap; }
.fpr { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: .85rem; color: var(--muted); margin-top: 22px; }
.fpr code { overflow-wrap: anywhere; }

/* ---------- Raccourcis ---------- */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.keys h3 { font: 500 .78rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.keys ul { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.keys li > span:last-child { white-space: nowrap; color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 56px;
}
.footer__id { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.footer__logo:hover { color: inherit; }
.footer__repo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; text-decoration: none; color: var(--muted);
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg);
}
.footer__repo:hover { color: var(--fg); border-color: var(--fg); }
.footer__repo svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.footer__col h2 {
  font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--accent); }

/* Barre d'état, comme celle des panneaux d'Oxyde */
.footer__status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
}
.footer__status span:first-child { color: var(--accent); }
.footer__top { margin-left: auto; text-decoration: none; }
.footer__top:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars article:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillars article:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .tp { margin-left: auto; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .turbo { grid-template-columns: minmax(0, 1fr); }
  .turbo__intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .keys { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__id { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 48px 40px; }
  .footer__top { margin-left: 0; }
}

@media (max-width: 720px) {
  .hero { padding-block: 48px 40px; }
  .section { padding-block: 64px; }
  .explorer__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .explorer__side {
    display: flex; gap: 4px; overflow-x: auto; padding: 8px;
    border-right: 0; border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }
  .explorer__side button { white-space: nowrap; width: auto; }
  .list-head { display: none; }
  .panel > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars article, .pillars article + article { padding-left: 0; border-left: 0; }
  .pillars article + article { border-top: 1px solid var(--line); margin-top: 14px; }
  .turbo__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: 18px; }
  .turbo__row > [role="rowheader"] { grid-column: 1 / -1; }
  .turbo__row--head > :first-child { display: none; }
  .turbo__span { grid-column: 1 / -1; }
  .turbo__intro, .turbo__note { padding-inline: 18px; }
  .opts, .opts tbody, .opts tr, .opts th, .opts td { display: block; width: auto; }
  .opts th { padding-bottom: 2px; }
  .opts td { border-top: 0; padding-top: 0; }
}

@media (max-width: 440px) {
  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .facts__grid > div, .facts__grid > div + div { border-left: 0; padding-left: 0; }
  .facts__grid > div + div { border-top: 1px solid var(--line); }
  .cta .os { flex: 1 1 100%; }
}

/* ==========================================================
   Peps : retouches et animations discrètes
   Tout ce qui bouge est désactivé si le système demande moins d'animations.
   ========================================================== */

/* Mot-clé surligné dans le titre */
.hl {
  background: linear-gradient(var(--select), var(--select)) no-repeat 0 88% / 100% .32em;
  padding-inline: .04em;
}

/* Barre du haut : une ombre apparaît dès qu'on fait défiler */
.topbar { transition: box-shadow .25s ease, border-color .25s ease; }
.topbar.is-scrolled { box-shadow: 0 6px 20px -14px rgba(0,0,0,.45); }

/* Liens de navigation : soulignement qui se déroule */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent-fill); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* Boutons systèmes */
.os { transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.os:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.os__name::after { transition: transform .18s ease; }
.os:hover .os__name::after { transform: translateY(3px); }

/* Chiffres un peu plus présents */
.facts b { font-size: 2.3rem; letter-spacing: -.02em; }

/* Atouts : petit trait d'accent au-dessus de chaque colonne */
.pillars article { position: relative; }
.pillars article::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px;
  background: var(--accent-fill);
}
.pillars article + article::before { left: 24px; }

/* Cartes d'installation */
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Jauges Turbo : les cases actives sont parcourues par un reflet, comme un débit */
.lanes--on::after {
  background: linear-gradient(90deg, var(--accent-fill) 0 35%, color-mix(in srgb, var(--accent-fill) 45%, #fff) 50%, var(--accent-fill) 65% 100%) 0 0 / 300% 100%;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px var(--cell));
          mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px var(--cell));
}

@media (max-width: 720px) {
  .pillars article + article::before { left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée de l'accroche */
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes underline { from { background-size: 0 .32em; } to { background-size: 100% .32em; } }
  .hero .release, .hero h1, .hero .lede, .hero .cta, .hero .shot { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .06s; }
  .hero .lede { animation-delay: .14s; }
  .hero .cta { animation-delay: .22s; }
  .hero .shot { animation-delay: .32s; animation-duration: .9s; }
  .hl { animation: underline .7s .55s cubic-bezier(.6,0,.2,1) both; }

  /* Changement de capture */
  .shot__frame img:not([hidden]) { animation: fade .35s ease both; }

  /* Apparition au défilement (classe posée par main.js) */
  .motion .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .motion .reveal.is-in { opacity: 1; transform: none; }

  /* Jauges : les cases se remplissent une à une à l'apparition */
  .motion .lanes::after { transition: width .7s steps(var(--n), end) .25s; }
  .motion .turbo:not(.is-in) .lanes::after { width: 0; }
  .lanes--on::after { animation: flow 2.4s linear infinite; }
  @keyframes flow { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* Lignes de l'explorateur quand on change de catégorie */
  @keyframes row-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  .panel.is-entering > div { animation: row-in .32s ease both; animation-delay: calc(var(--i, 0) * 35ms); }

  /* Changement de thème en douceur (classe posée brièvement par main.js) */
  .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease !important;
  }
}

/* Mention « File Manager » à côté du logo */
.brand__tag { color: var(--accent); margin-left: -4px; white-space: nowrap; }
@media (max-width: 360px) { .brand__tag { display: none; } }
.tp__label { white-space: nowrap; }
@media (max-width: 480px) { .tp__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Sélecteur de langue : un code discret, la liste native du système s'ouvre au clic */
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 3px;
  height: 32px; padding: 0 6px 0 8px; border-radius: 8px;
  color: var(--muted); font-size: .78rem;
}
.lang:hover, .lang:focus-within { color: var(--fg); background: var(--surface-2); }
.lang:focus-within { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.lang svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font: inherit; border: 0;
}
.nav + .lang { margin-left: 8px; }
@media (max-width: 900px) { .lang { margin-left: auto; } .lang + .tp { margin-left: 4px; } }

/* Le temps de traduire (i18n.js), la page reste masquée */
.i18n-wait body { visibility: hidden; }
.brand { flex: none; }
@media (max-width: 1080px) { .nav { gap: 14px; font-size: .86rem; } .topbar__inner { gap: 18px; } }
