/* ══════════════════════════════════════════════════════════════════════════
   FRP Manager — site vitrine et documentation
   Reprise de la carte OG : fond presque noir, halo et trame verts, grands
   titres serrés, pastilles et captures dans une fenêtre qui déborde.
   Sombre par défaut, clair au choix du visiteur (bouton de l'en-tête).
   Mêmes polices et même vert que le panel (panel/templates/assets/css/app.css).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
  --paper: #050906;
  --surface: #0a100d;
  --surface-2: #0e1613;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #eef5f1;
  --ink-2: #a3b1aa;
  --ink-3: #79867f;
  --accent: #2ee6a0;
  --accent-strong: #6ff5c4;
  --accent-ink: #43e8ac;
  --accent-soft: rgba(46, 230, 160, .10);
  --accent-fg: #04140d;
  --warn-soft: rgba(251, 191, 36, .10);
  --warn-ink: #fbbf24;
  --info-soft: rgba(96, 165, 250, .10);
  --info-ink: #93c5fd;
  --code-bg: #060b09;
  --code-ink: #ccd8d2;
  --frame: #080d0b;
  --frame-2: #0c1310;
  --frame-line: rgba(255, 255, 255, .10);
  --grid: rgba(46, 230, 160, .055);
  --glow: rgba(46, 230, 160, .10);
  --glow-strong: rgba(46, 230, 160, .17);
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 90px -30px rgba(0, 0, 0, .85);
  --focus: 0 0 0 3px rgba(46, 230, 160, .45);

  --wrap: 1200px;
  --narrow: 880px;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f9f7;
  --surface: #ffffff;
  --surface-2: #edf3f0;
  --line: #dfe7e3;
  --line-strong: #c4d1cb;
  --ink: #07120c;
  --ink-2: #43514b;
  --ink-3: #58665f;
  --accent: #0d9f6e;
  --accent-strong: #0a7f58;
  --accent-ink: #04714e;
  --accent-soft: rgba(13, 159, 110, .09);
  --accent-fg: #ffffff;
  --warn-soft: rgba(217, 119, 6, .10);
  --warn-ink: #92400e;
  --info-soft: rgba(37, 99, 235, .08);
  --info-ink: #1d4ed8;
  --grid: rgba(13, 159, 110, .075);
  --glow: rgba(13, 159, 110, .09);
  --glow-strong: rgba(13, 159, 110, .13);
  --shot-shadow: 0 1px 2px rgba(7, 18, 12, .06), 0 30px 70px -30px rgba(7, 18, 12, .35);
  --focus: 0 0 0 3px rgba(13, 159, 110, .35);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(1100px 620px at 6% -6%, var(--glow), transparent 62%),
    radial-gradient(900px 520px at 108% 38%, var(--glow), transparent 64%),
    var(--paper);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
::selection { background: var(--accent); color: var(--accent-fg); }
/* Contour plein : reste visible en contraste forcé, contrairement au seul
   box-shadow, et garde un rapport suffisant sur les deux thèmes. */
/* Solid outline: stays visible in forced colors, unlike a lone box-shadow,
   and keeps enough contrast in both themes. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, pre, .mono { font-family: var(--font-mono); }
:not(pre) > code {
  font-size: .86em;
  padding: .12em .38em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
/* Dans un tableau, le code reste d’un seul tenant : le tableau défile de côté plutôt que de couper les mots. */
/* In a table, code stays in one piece: the table scrolls sideways rather than breaking words. */
td code, th code { white-space: nowrap; overflow-wrap: normal; }
/* Petit écran : les colonnes de texte gardent une largeur mini, le tableau défile de côté. */
/* Small screen: text columns keep a minimum width, the table scrolls sideways. */
@media (max-width: 640px) { .table td { min-width: 12em; } }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.03em; margin: 0; }
p { margin: 0 0 1em; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
     stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px;
        background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--narrow); }

/* ── En-tête ────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 24px;
          display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none;
         font-weight: 700; font-size: 17.5px; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; color: var(--accent);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 70%, transparent))
          drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 38%, transparent));
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a {
  padding: 8px 13px; border-radius: 999px; color: var(--ink-2); text-decoration: none;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.nav > a:hover { color: var(--ink); background: var(--surface-2); }
.nav > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav > a.nav-cta {
  margin-left: 8px; padding: 9px 17px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600;
  box-shadow: 0 8px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.nav > a.nav-cta:hover, .nav > a.nav-cta[aria-current="page"] {
  background: var(--accent-strong); color: var(--accent-fg);
}
.nav-tools { display: flex; align-items: center; gap: 2px; margin-left: 12px; padding-left: 12px;
             border-left: 1px solid var(--line); }
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s, margin .15s;
}
.lang-menu[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--surface-2); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  min-width: 172px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .8);
}
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none;
}
.lang-menu li a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu li a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.lang-menu li a[aria-current="true"]::after { content: "✓"; font-size: 12px; }
.theme, .nav-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer;
}
.theme:hover, .nav-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme .i-dark { display: none; }
:root[data-theme="dark"] .theme .i-light { display: none; }
:root[data-theme="dark"] .theme .i-dark { display: block; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle .i { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 2;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  }
  .nav.open { display: flex; }
  .top:has(.nav.open) .season-garland { display: none; }
  .nav > a { padding: 11px 12px; font-size: 16px; }
  .nav > a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-tools { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .lang-menu { flex: 1; }
  .lang-menu summary { width: 100%; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); }
  .lang-menu ul { position: static; margin-top: 6px; box-shadow: none; }
}

/* ── Boutons ────────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Sur les écrans tactiles, les commandes et les liens de documentation
   gardent une cible d'au moins 44 px. */
/* On touch screens, controls and documentation links keep a 44 px target. */
@media (pointer: coarse) {
  .theme, .nav-toggle, .season { width: 44px; height: 44px; }
  .lang-menu summary, .lang-menu li a { min-height: 44px; }
  .nav > a { min-height: 44px; }
  .btn, .tab-list button { min-height: 44px; }
  .docs-side ul a { min-height: 44px; }
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--ink);
  font: 600 15.5px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { color: var(--ink); border-color: var(--accent); background: var(--surface); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
  box-shadow: 0 12px 40px -14px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover {
  background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-fg);
  transform: translateY(-1px);
}
.btn .i { width: 18px; height: 18px; }

/* ── Accueil : héros ────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 64px; }
/* Trame discrète : le réseau sur lequel les ports sont tracés */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(1100px 700px at 38% 18%, #000 0%, rgba(0, 0, 0, .55) 48%, transparent 80%);
  -webkit-mask-image: radial-gradient(1100px 700px at 38% 18%, #000 0%, rgba(0, 0, 0, .55) 48%, transparent 80%);
}
/* Les deux lueurs vertes de la carte OG */
.hero::after {
  content: ""; position: absolute; inset: -12% 0 -42%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 600px at 10% 16%, var(--glow-strong), transparent 68%),
    radial-gradient(900px 700px at 96% 72%, var(--glow), transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: center; }
.hero-version { margin: 0 0 20px; }
.hero-version a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); text-decoration: none;
  font: 500 13px/1 var(--font-mono);
}
.hero-version a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 78px); font-weight: 700; line-height: .98;
  letter-spacing: -.045em; max-width: 12ch; margin: 0 0 24px; text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-bottom: 30px; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-meta {
  margin: 30px 0 0; padding-top: 20px; max-width: 46em;
  border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-3);
}
/* La fenêtre peut déborder du texte, mais jamais de l'écran : elle s'arrête
   dans la marge droite de la page, même sur les largeurs intermédiaires. */
/* The window may overflow the text, but never the screen: it stops in the
   page's right gutter, even at intermediate widths. */
.hero-visual { position: relative; justify-self: start;
               width: min(880px, calc(100% + max(0px, (100vw - var(--wrap)) / 2))); }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4% 0 4%; z-index: 0;
  background: radial-gradient(closest-side, var(--glow-strong), transparent 75%);
  filter: blur(24px);
}
.hero-window { position: relative; z-index: 1; }

/* Le chemin d'un port, en bande sous le héros */
.hero-route { margin-top: 56px; }
.route { margin: 0; }
.route ol {
  list-style: none; margin: 0; padding: 20px 26px;
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .9);
}
.route-node { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.route-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.route-ico .i { width: 22px; height: 22px; }
.route-addr { display: block; font-weight: 600; font-size: 16.5px; color: var(--ink); overflow-wrap: anywhere; }
.route-addr.mono { font-family: var(--font-mono); font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; }
.route-label { display: block; font-size: 13.5px; color: var(--ink-3); }
.route-link { position: relative; flex: 0 0 clamp(90px, 12vw, 160px); height: 46px; margin: 0; padding: 0;
              display: flex; align-items: center; justify-content: center; }
.route-link::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}
.route-link span {
  position: relative; padding: 3px 9px; border-radius: 999px;
  background: var(--surface); color: var(--ink-3);
  font-size: 11px; font-style: normal; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.route figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); padding-left: 4px; }

/* Captures dans une fenêtre (toujours sombre : c'est l'interface du panel) */
.window {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--frame); border: 1px solid var(--frame-line); box-shadow: var(--shot-shadow);
}
.window-bar {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 15px;
  background: var(--frame-2); border-bottom: 1px solid var(--frame-line);
}
.window-bar .wd { width: 10px; height: 10px; border-radius: 50%; background: #2a3630; }
.window-bar .wd:nth-child(1) { background: #f26d6d; }
.window-bar .wd:nth-child(2) { background: #f2c14e; }
.window-bar .wd:nth-child(3) { background: #48d18a; }
.window-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06);
  color: #8c9a94; font: 500 11.5px/1 var(--font-mono);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 9vw, 112px) 0; }
.section + .section, .hero + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.035em;
  line-height: 1.05; margin-bottom: 16px; text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0; }
.section-ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.note { color: var(--ink-3); font-size: 14.5px; margin: 24px 0 0; }

/* Fonctionnalités : texte et capture en alternance, dans une carte */
.feature {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 52px); align-items: center;
  padding: clamp(22px, 3vw, 36px); margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
}
.feature-flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.feature-flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 12px; }
.feature p { color: var(--ink-2); font-size: 16px; margin: 0; }
/* Le <picture> qui porte la capture ne doit pas ajouter de ligne de base */
/* The <picture> holding the screenshot must not add a baseline gap */
.shot picture, .hero-window picture, .demo-launch picture { display: block; }
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--frame-line); background: var(--frame);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .9);
}
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid;
          grid-template-columns: minmax(0, 1fr); gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.checks .i { color: var(--accent); margin-top: 3px; width: 17px; height: 17px; }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.more-item {
  padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color .15s, transform .15s, background .15s;
}
.more-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); background: var(--surface-2); }
.more-item .i {
  width: 20px; height: 20px; color: var(--accent); margin-bottom: 16px;
  padding: 10px; box-sizing: content-box; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.more-item h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.more-item p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* Démo intégrée */
.section-demo { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 4%, transparent) 55%, transparent); }
.demo-frame { position: relative; box-shadow: 0 50px 120px -50px color-mix(in srgb, var(--accent) 30%, transparent), var(--shot-shadow); }
.demo-launch { display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--frame); }
.demo-launch img { width: 100%; opacity: .45; filter: saturate(.6) contrast(1.05); transition: opacity .2s, filter .2s; }
.demo-launch:hover img { opacity: .62; filter: saturate(.9); }
.demo-launch .btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 16.5px; padding: 14px 24px; box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.demo-frame iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: var(--frame); }
.demo-full { margin: 18px 0 0; font-size: 14.5px; }
.demo-full a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.demo-full a:hover { color: var(--accent); }

/* Démarrage : onglets et étapes */
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 28px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.tab-list button {
  border: 0; background: none; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font: 500 14.5px/1.2 var(--font-sans); color: var(--ink-2);
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid;
         grid-template-columns: minmax(0, 1fr); gap: 22px; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  font: 600 14px/1 var(--font-mono);
}
.steps p { margin: 0 0 10px; font-weight: 500; color: var(--ink); }

/* Blocs de code (copiables) */
.code { position: relative; margin: 0 0 1.2em; }
.code pre {
  margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px;
  background: var(--code-bg); color: var(--code-ink);
  border: 1px solid var(--frame-line);
  font-size: 14px; line-height: 1.6;
}
.code .copy {
  position: absolute; top: 8px; right: 8px; padding: 5px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .06); color: #c6d3cc;
  font: 500 13px/1 var(--font-sans); opacity: 0; transition: opacity .15s;
}
.code:hover .copy, .code .copy:focus-visible, .code .copy.done { opacity: 1; }
@media (hover: none) { .code .copy { opacity: 1; } }
.code .copy.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* Tableaux */
.table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); }
tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td:nth-child(2) { color: var(--ink-3); }
.compare td:last-child { color: var(--ink); background: var(--accent-soft); }
.compare thead th:last-child { color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface-2)); }

/* Sécurité */
.section-security { background: var(--surface); }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sec-grid > div {
  position: relative; padding: 26px 22px 22px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.sec-grid > div::before {
  content: ""; position: absolute; left: 22px; top: 0; width: 30px; height: 2px;
  border-radius: 0 0 2px 2px; background: var(--accent);
}
.sec-grid h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.sec-grid p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
.callout {
  display: flex; gap: 12px; align-items: flex-start; margin: 36px 0 0; padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--warn-ink) 22%, transparent); border-radius: 14px;
  background: var(--warn-soft); color: var(--ink); font-size: 15px;
}
.callout .i { color: var(--warn-ink); margin-top: 2px; }
.callout-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info-ink) 22%, transparent); margin: 0 0 28px; }
.callout-info .i { color: var(--info-ink); }

/* Questions */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 36px 17px 0; position: relative;
  font-weight: 600; font-size: 16.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 23px; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq details p { color: var(--ink-2); margin: 0 0 20px; max-width: 68ch; font-size: 15px; }

/* Dernier appel */
.final { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.final-in {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 26px;
  background: radial-gradient(620px 320px at 12% 0%, var(--glow-strong), transparent 72%), var(--surface);
}
.final h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 10px; }
.final p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 36em; }

/* ── Documentation ──────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.docs-side, .docs-toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start;
                        max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; font-size: 14.5px; }
.docs-side-title { font-weight: 600; font-size: 12.5px; color: var(--ink-3); margin: 0 0 12px;
                   text-transform: uppercase; letter-spacing: .09em; }
.docs-side-title a { color: inherit; text-decoration: none; }
.docs-side ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
/* Le conteneur défile (overflow), donc il coupe ce qui dépasse à gauche : la marge
   négative qui aligne le texte des liens est portée par le conteneur, avec un
   padding égal, pour que les coins arrondis du lien actif ne soient pas rognés.
   The container scrolls (overflow), so it clips what sticks out on the left: the
   negative margin that aligns the links' text is carried by the container, with
   an equal padding, so the active link's rounded corners are not clipped. */
.docs-side { margin-left: -10px; padding-left: 10px; }
.docs-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.docs-side a:hover { background: var(--surface-2); color: var(--ink); }
.docs-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-toc ul { border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent;
              color: var(--ink-3); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.docs-toc .toc-3 a { padding-left: 26px; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--accent); border-left-color: var(--accent); }
/* Sommaire repliable : seulement sur téléphone (voir la requête plus bas). */
/* Collapsible table of contents: phones only (see the query below). */
.docs-summary { display: none; }

/* Docs : pleine largeur de l’écran, qui s’adapte aux petits écrans (grille ci-dessous). */
/* Docs: full screen width, adapting to small screens (grid below). */
.wrap.docs, .wrap.docs-index, body.page-docs .top-in { max-width: none; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.prose { max-width: none; min-width: 0; }
.prose h1 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 22px; }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 2.2em 0 .6em; padding-top: .4em; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.5em 0 .4em; }
.prose .anchor { color: inherit; text-decoration: none; }
.prose .anchor:hover::after { content: " #"; color: var(--ink-3); font-weight: 400; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin: 0 0 1.2em; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
                    background: var(--surface); border-radius: var(--radius); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose > ul:first-of-type:has(a[href^="#"]) { display: none; }  /* sommaire en tête de page : doublon du « Sur cette page » */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
           text-decoration: none; color: var(--ink); font-weight: 500; max-width: 48%; }
.pager a:hover { border-color: var(--accent); }
.pager .prev::before { content: "‹ "; color: var(--ink-3); }
.pager .next { margin-left: auto; text-align: right; }
.pager .next::after { content: " ›"; color: var(--ink-3); }

@media (max-width: 1180px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .docs-side { order: 1; position: static; max-height: none; margin-left: 0; padding-left: 0; padding-bottom: 16px; overflow: visible; border-bottom: 1px solid var(--line); }
  .prose { order: 3; }
  /* Le sommaire prend la place de la colonne de droite, replié par défaut
     pour laisser le contenu commencer tôt. */
  /* The summary takes the right column's place, closed by default so the
     content starts early. */
  .docs-summary {
    display: block; order: 2; margin: 0;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    overflow: hidden;
  }
  /* Le <summary> garde son affichage natif : display:flex lui ferait perdre
     son rôle de divulgation pour les lecteurs d'écran. */
  /* The <summary> keeps its native display: flex would drop its disclosure
     role for screen readers. */
  .docs-summary summary {
    position: relative; min-height: 52px; padding: 17px 48px 17px 16px;
    cursor: pointer; list-style: none;
    color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.2;
  }
  .docs-summary summary::-webkit-details-marker { display: none; }
  .docs-summary summary::after {
    content: ""; position: absolute; right: 20px; top: 20px; width: 8px; height: 8px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(45deg); transition: transform .2s, top .2s;
  }
  .docs-summary[open] summary::after { transform: rotate(-135deg); top: 24px; }
  .docs-summary ul { margin: 0; padding: 6px 8px 10px; border-top: 1px solid var(--line); }
  .docs-summary li { margin: 0; }
  .docs-summary a {
    display: flex; align-items: center; min-height: 44px; padding: 6px 10px;
    border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14.5px;
  }
  .docs-summary .toc-3 a { padding-left: 24px; font-size: 14px; }
  .docs-summary a:hover { background: var(--surface-2); color: var(--ink); }
  .docs-summary a.active { color: var(--accent); background: var(--accent-soft); }

  /* Une seule rangée défilante : le sommaire ne mange plus la première
     moitié de l'écran d'un téléphone. */
  /* One scrollable row: the docs menu no longer eats the first half of a
     phone screen. */
  .docs-side ul {
    display: flex; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * clamp(16px, 3vw, 48px));
    padding: 2px clamp(16px, 3vw, 48px) 8px;
    -webkit-overflow-scrolling: touch;
  }
  .docs-side li { flex: 0 0 auto; }
  .docs-side-title a { display: inline-flex; align-items: center; min-height: 44px; }
  .docs-side ul a { display: inline-flex; align-items: center; min-height: 44px;
                    margin: 0; padding: 8px 12px; background: var(--surface-2); white-space: nowrap; }
  .docs-side ul::-webkit-scrollbar { height: 4px; }
  .docs-side ul::-webkit-scrollbar-track { background: transparent; }
  .docs-side ul::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
}

.docs-index { padding-top: 64px; padding-bottom: 96px; }
.docs-index h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.035em; margin-bottom: 16px; }
.doc-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.doc-list a { display: grid; gap: 4px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc-list strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.doc-list span { color: var(--ink-2); font-size: 15px; }
.doc-list a:hover strong { color: var(--accent); }

.notfound { padding-top: 96px; padding-bottom: 120px; }
.notfound-code { font: 500 16px/1 var(--font-mono); color: var(--accent); margin-bottom: 16px; }
.notfound h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.035em; margin-bottom: 14px; }
.notfound > p { color: var(--ink-2); font-size: 18px; max-width: 44ch; margin-bottom: 28px; }
.notfound-lang { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.notfound-lang h2 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }

/* ── Pied de page ───────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 58px 24px 64px;
           display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot p { color: var(--ink-2); margin: 14px 0 0; max-width: 44ch; }
.foot .foot-release, .foot .foot-version { color: var(--ink-3); font-size: 13px; }
.foot .foot-version { font-family: var(--font-mono); color: var(--accent); }
.foot h2 { font: 600 12px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase;
           color: var(--ink-3); margin: 2px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--accent); }

/* ── Petits écrans ──────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { max-width: none; }
  .hero-visual { justify-self: stretch; width: 100%; margin-left: 0; }
  .hero-route { margin-top: 40px; }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-flip .feature-text { order: 0; }
  .more, .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 1160px) {
  .route ol { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .route-node { flex: none; }
  .route-link { flex: none; display: block; height: 44px; width: auto; margin-left: 21px; padding-left: 30px; }
  .route-link::before {
    left: 0; right: auto; top: 2px; bottom: 2px; width: 2px; height: auto;
    border-top: 0; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px);
    opacity: .55;
  }
  .route-link span { display: inline-flex; align-items: center; height: 44px; padding: 0; background: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.68; }
  .wrap, .top-in { padding: 0 18px; }
  .hero { padding-top: 44px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-version { margin-bottom: 16px; }
  .hero-meta { margin-top: 24px; }
  .section { padding: 64px 0; }
  .feature { padding: 18px; border-radius: 18px; }
  .more, .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .compare tbody th { width: auto; }
  .demo-launch .btn { font-size: 15px; padding: 12px 16px; white-space: nowrap; }
  .demo-frame iframe { height: 72vh; }
  .final-in { padding: 28px 22px; border-radius: 20px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .window-url { display: none; }
  .route-addr.mono { font-size: 14px; }
  /* Lecture au téléphone : un peu plus d'air, des paragraphes plus lisibles,
     et aucun flocon animé par-dessus le texte. */
  /* Phone reading: a little more air, more readable paragraphs, and no
     animated snow over the copy. */
  .lead { line-height: 1.6; }
  .hero-meta { font-size: 15px; }
  .feature p { font-size: 16.5px; line-height: 1.65; }
  .more-item p, .sec-grid p { font-size: 15.5px; line-height: 1.6; }
  .checks li { font-size: 15.5px; line-height: 1.6; }
  .faq summary { font-size: 17px; }
  .faq details p, .callout { font-size: 16px; }
  .faq details p { line-height: 1.7; }
  .prose p, .prose li { line-height: 1.7; text-wrap: pretty; }
  .season-fx { display: none; }
}

/* Code dans le texte courant : discret, sans cadre qui casse la ligne */
.feature p code, .lead code, .faq code, .callout code, .note code, .compare code {
  padding: 0; border: 0; background: none; color: var(--ink); font-size: .9em; overflow-wrap: normal;
}
.feature p code, .lead code { color: var(--accent); }

/* Une longue commande ne doit jamais élargir la page : les grilles gardent des colonnes compressibles */
.steps, .checks { grid-template-columns: minmax(0, 1fr); }
.steps > li, .feature-text, .hero-text, .hero-visual, .route { min-width: 0; }

/* Fil d'Ariane des pages de documentation */
.crumbs { margin: 0 0 20px; font-size: 13px; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ── Saisons : Halloween, Noël (data-season posé par seasonJS, site.go) ── */
/* Seasons: Halloween, Christmas (data-season set by seasonJS, site.go)     */
:root[data-season="halloween"] {
  --accent: #fb923c;
  --accent-strong: #fdba74;
  --accent-ink: #fb923c;
  --accent-soft: rgba(251, 146, 60, .13);
  --accent-fg: #2a1205;
  --glow: rgba(251, 146, 60, .10);
  --glow-strong: rgba(251, 146, 60, .16);
  --focus: 0 0 0 3px rgba(251, 146, 60, .4);
}
:root[data-season="noel"] {
  --accent: #f87171;
  --accent-strong: #fca5a5;
  --accent-ink: #f87171;
  --accent-soft: rgba(248, 113, 113, .13);
  --accent-fg: #3b0a0a;
  --glow: rgba(248, 113, 113, .10);
  --glow-strong: rgba(248, 113, 113, .16);
  --focus: 0 0 0 3px rgba(248, 113, 113, .4);
}
:root[data-season="halloween"][data-theme="light"] {
  --accent: #ea580c;
  --accent-strong: #c2410c;
  --accent-ink: #9a3412;
  --accent-soft: rgba(234, 88, 12, .10);
  --accent-fg: #ffffff;
  --glow: rgba(234, 88, 12, .08);
  --glow-strong: rgba(234, 88, 12, .12);
  --focus: 0 0 0 3px rgba(234, 88, 12, .4);
}
:root[data-season="noel"][data-theme="light"] {
  --accent: #c81e1e;
  --accent-strong: #a31616;
  --accent-ink: #9b1c1c;
  --accent-soft: rgba(200, 30, 30, .09);
  --accent-fg: #ffffff;
  --glow: rgba(200, 30, 30, .07);
  --glow-strong: rgba(200, 30, 30, .11);
  --focus: 0 0 0 3px rgba(200, 30, 30, .35);
}
.season {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid transparent; background: none; cursor: pointer; font-size: 17px; line-height: 1;
}
.season:hover { background: var(--surface-2); }
.season[aria-pressed="false"] { filter: grayscale(1); opacity: .55; }

/* Lueurs de saison derrière la page */
/* Seasonal glows behind the page */
:root[data-season="halloween"] body {
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(124, 58, 237, .16), transparent 65%),
    radial-gradient(800px 480px at -5% 10%, rgba(234, 88, 12, .14), transparent 65%),
    var(--paper);
}
:root[data-season="noel"] body {
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(22, 163, 74, .13), transparent 65%),
    radial-gradient(800px 480px at -5% 10%, rgba(200, 30, 30, .12), transparent 65%),
    var(--paper);
}

/* Toile d'araignée dans le coin, araignée suspendue à l'en-tête */
/* Spider web in the corner, spider hanging from the header */
.season-web { position: fixed; top: var(--header-h); left: 0; z-index: 20; width: 190px; height: 190px;
              color: var(--ink-3); opacity: .32; pointer-events: none; }
.season-web svg { width: 100%; height: 100%; }
.season-spider { position: absolute; top: 100%; right: 13%; width: 1px; height: 90px;
                 background: var(--ink-3); opacity: .8; pointer-events: none; transform-origin: top;
                 animation: season-dangle 5s ease-in-out infinite; }
.season-spider span { position: absolute; bottom: -14px; left: -11px; font-size: 22px; line-height: 1; }
@keyframes season-dangle {
  0%, 100% { height: 70px; transform: rotate(3deg); }
  50%      { height: 150px; transform: rotate(-3deg); }
}

/* Guirlande lumineuse sous l'en-tête */
/* Light garland under the header */
.season-garland { position: absolute; left: 0; right: 0; top: calc(100% - 5px); height: 12px; overflow: hidden;
                  display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
/* Le fil relie les ampoules : sans lui, sur téléphone, ce ne sont que des points. */
/* The wire links the bulbs: without it, on a phone, they are just dots. */
.season-garland::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 5px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink-3) 58%, transparent), transparent);
}
.season-garland i { position: relative; width: 8px; height: 11px; border-radius: 50% 50% 45% 45%; background: #ef4444;
                    box-shadow: 0 0 8px 2px currentColor; color: #ef4444;
                    animation: season-blink 1.6s ease-in-out infinite; }
.season-garland i:nth-child(4n+2) { background: #22c55e; color: #22c55e; animation-delay: .4s; }
.season-garland i:nth-child(4n+3) { background: #facc15; color: #facc15; animation-delay: .8s; }
.season-garland i:nth-child(4n)   { background: #3b82f6; color: #3b82f6; animation-delay: 1.2s; }
@keyframes season-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; box-shadow: none; } }

/* Sur téléphone, une guirlande plus courte et plus légère : 40 ampoules
   collées les unes aux autres ne ressemblent plus à une guirlande. */
/* On phones, a shorter, lighter garland: 40 bulbs pressed together no longer
   look like a garland. */
@media (max-width: 800px) {
  .season-garland i:nth-child(n+29) { display: none; }
}
@media (max-width: 640px) {
  .season-garland { height: 10px; padding: 0 18px; }
  .season-garland::before { left: 18px; right: 18px; top: 4px; }
  .season-garland i { width: 7px; height: 10px; box-shadow: 0 0 5px 1px currentColor; }
  .season-garland i:nth-child(n+19) { display: none; }
}
@media (max-width: 400px) {
  .season-garland i:nth-child(n+13) { display: none; }
}

/* Rangée de décorations au-dessus du pied de page */
/* Row of decorations above the footer */
.foot { position: relative; }
.season-ground { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; justify-content: space-around;
                 font-size: 30px; line-height: 1; transform: translateY(8px); pointer-events: none; }

/* Chauves-souris et neige : par-dessus la page, sans gêner les clics */
/* Bats and snow: over the page, without blocking clicks */
.season-fx { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
/* Documentation : pas de flocons ni de chauves-souris par-dessus le texte */
/* Documentation: no snow or bats over the text */
body.page-docs .season-fx { display: none; }
.season-fx span { position: absolute; line-height: 1; opacity: .8; will-change: transform; }
:root[data-season="noel"] .season-fx span {
  top: -24px; color: #4f6a7e; animation: season-snow linear infinite;
}
:root[data-season="noel"][data-theme="dark"] .season-fx span { color: #fff; }
:root[data-season="halloween"] .season-fx span {
  left: 0; animation: season-bat linear infinite;
}
.season-fx b { display: block; font-weight: 400; animation: season-flap ease-in-out infinite alternate; }
@keyframes season-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes season-snow {
  from { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(24px, 52vh) rotate(180deg); }
  to   { transform: translate(-12px, 106vh) rotate(360deg); }
}
@keyframes season-bat {
  from { transform: translate(-60px, 0); }
  25%  { transform: translate(25vw, -40px); }
  50%  { transform: translate(50vw, 20px); }
  75%  { transform: translate(75vw, -30px); }
  to   { transform: translate(calc(100vw + 60px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .season-fx { display: none; }
  .season-spider, .season-garland i { animation: none; }
}
