/* Thème "ciel de ferme" (23/08/2026, sur retour direct : "le haut de la page, je trouve ça
   beau, je veux ça pareil sur toute la page") — le dégradé bleu ciel -> or, qui n'habillait
   jusque-là que le bandeau du haut, devient le fond de TOUTE la page (couleurs FIXES,
   volontairement PAS de variante sombre : la beauté demandée est ce dégradé précis, pas un
   thème qui change selon la préférence système — voir règle body ci-dessous). Le contenu
   flotte par-dessus dans des panneaux "verre" translucides (--bg-card, --glass-bg) pour
   rester lisible quel que soit l'endroit du dégradé visible derrière.
   Note : la palette --sky/--leaf/--accent reste utilisée en dur dans les schémas de contraste ;
   pas de bloc dark-mode ici, contrairement aux autres pages du site (hub, docs.html) qui
   gardent, elles, leur bascule clair/sombre.
   Contrôle de contraste (23/08/2026) : --accent-strong et --text-faint assombris par
   rapport à leurs valeurs d'origine (#c97a00, #5e747a) — calculées au ratio WCAG réel contre
   le pire cas (panneau verre à 0.55 par-dessus chaque étape du dégradé), pas juste contre du
   blanc pur. Les liens et titres de carte utilisaient l'ancien --accent-strong à seulement
   ~2.5:1, bien sous le minimum de 4,5:1 pour du texte normal. */
:root {
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-border: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --text: #1f2b30;
  --text-dim: #3d5158;
  --text-faint: #48606a;
  --accent: #ffb400;
  --accent-strong: #8a5300;
  --accent-text: #241500;
  --leaf: #2fa83e;
  --leaf-text: #1c7a28;
  --leaf-deep: #16651f;
  --alert-text: #a3231f;
  --sky: #1f97d4;
  --sky-text: #0d6ea3;
  --pill-bg: rgba(255, 255, 255, 0.55);
  --pill-border: rgba(255, 255, 255, 0.75);
  --focus: #0d6ea3;
  --radius: 14px;
  --sun: #ffb400;
  --plum: #b0479c;
  --shadow: 0 1px 2px rgba(31, 43, 48, 0.08), 0 8px 24px rgba(31, 43, 48, 0.14);
  --nav-bg-translucent: rgba(255, 255, 255, 0.78);
  --nav-h: 52px;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Le dégradé "ciel de ferme" du bandeau, maintenant fond de toute la page : étiré sur toute
   sa hauteur (background-size: 100% 100%) pour rester un seul dégradé continu du haut en
   bas, quelle que soit la longueur de la page — demande explicite de l'utilisateur ("le
   haut de la page, soit pareil sur toute la page"). Note : background-attachment: fixed
   semblait plus simple pour ça, mais provoque un vrai bug de rendu (fond qui disparaît en
   blanc au défilement, probablement lié aux backdrop-filter des panneaux verre) — cette
   approche l'évite complètement. */
body {
  margin: 0;
  background: linear-gradient(160deg, #48c6f4 0%, #7fd9ce 32%, #ffd766 68%, #ffa72e 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--text);
  font-family: "Work Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, summary { font-family: "Fredoka", "Work Sans", sans-serif; text-wrap: balance; }

a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sun);
  color: #3a2600;
  padding: 0.6em 1em;
  border-radius: 0 0 8px 0;
  z-index: 20;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Contenu présent pour les lecteurs d'écran uniquement (légendes de tableaux, contexte
   supplémentaire) — invisible à l'écran sans être ignoré par les technologies d'assistance. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Barre d'identité : mes autres projets + langue ---------- */
.portfolio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em;
  padding: 0.55em 1.1em;
  font-size: 0.82rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-faint);
}
.portfolio-bar ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portfolio-bar li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5em;
  color: var(--text-faint);
}
.portfolio-bar a { color: var(--text-dim); text-decoration: none; }
.portfolio-bar a:hover, .portfolio-bar a:focus-visible { color: var(--accent-strong); text-decoration: underline; }
.portfolio-bar [aria-current="page"] { color: var(--accent-strong); font-weight: 600; }
.portfolio-bar #lang-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.portfolio-bar #lang-toggle:hover, .portfolio-bar #lang-toggle:focus-visible { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Nav de section (barre collante + scrollspy) ---------- */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
  padding: 0.65em 1em;
  background: var(--nav-bg-translucent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-card-border);
  box-shadow: 0 2px 12px rgba(31, 43, 48, 0.1);
  min-height: var(--nav-h);
}
.quick-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.quick-nav a:hover, .quick-nav a:focus-visible { color: var(--text); background: var(--pill-bg); }
.quick-nav a[aria-current="true"] {
  color: var(--accent-text);
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 180, 0, 0.35);
}
/* Petite séparation visuelle avant le lien vers l'autre page (docs.html) : contrairement
   aux autres, ce n'est pas un saut dans la page mais un vrai changement de page. */
.quick-nav a[href="docs.html"] { margin-left: 0.5em; border-left: 1px solid var(--bg-card-border); padding-left: 1em; border-radius: 0 999px 999px 0; }

/* Le bandeau n'a plus son propre fond dégradé : il flotte directement sur le dégradé de
   body, désormais commun à toute la page. Les couleurs de texte restent fixes (pas les
   variables de thème), calées sur ce dégradé précis. */
header {
  max-width: 820px;
  margin: 1.2em auto 0;
  padding: 2.8em 1.5em 2.4em;
  text-align: center;
  position: relative;
}
header .emoji { font-size: clamp(2.6rem, 6vw, 3.6rem); display: block; margin-bottom: 0.2em; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
header h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1c2e17;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
}
header p.tagline { margin: 0 auto; max-width: 52ch; color: #253b2a; font-size: 1.08rem; font-weight: 500; }
header p.tagline strong { color: #12210f; }

.status-pill {
  display: inline-block;
  margin-top: 1em;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #2a1c00;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4em 1em;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 1.4em;
}

/* ---------- Bandeau de statistiques ---------- */
.stat-strip {
  max-width: 820px;
  margin: 2em auto 0;
  padding: 0 1.5em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  text-align: center;
}
.stat-strip .stat {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1em 0.6em;
  box-shadow: var(--shadow);
}
.stat-strip .stat strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--accent-strong);
}
.stat-strip .stat span { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
}

.intro {
  max-width: 820px;
  margin: 1em auto 1.5em;
  padding: 0.8em 1.5em;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.intro code, main code {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: var(--text);
}

/* Grand panneau "verre dépoli" qui porte tout le contenu principal, pour rester lisible
   par-dessus le dégradé vif de la page tout en le laissant transparaître légèrement. */
main {
  max-width: 820px;
  margin: 1.5em auto 2em;
  padding: 1.6em 1.8em 2.6em;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

h2.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 0.5em;
  margin: 2.5em 0 1.2em;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
h2.section-title:first-of-type { margin-top: 0; }

.install-steps { margin: 0 0 2em; padding-left: 1.4em; color: var(--text-dim); }
.install-steps li { margin-bottom: 0.5em; }

/* ---------- Grille de cartes de fonctionnalités ---------- */
/* Vraie liste (ul/li) plutôt qu'une simple div : un lecteur d'écran annonce "liste de N
   éléments" en y entrant, et permet de sauter d'une fonctionnalité à l'autre au lieu de
   n'avoir aucun repère de structure entre les cartes. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1em;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-grid > li { margin: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.2em 1.4em;
  margin-bottom: 1em;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease, opacity 0.4s ease, translate 0.4s ease;
}
.feature-grid .card { margin-bottom: 0; }
details.card:hover, details.card:focus-within {
  border-color: var(--pill-border);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 26px rgba(240, 169, 78, 0.1);
}
.card h3 { margin: 0 0 0.4em; color: var(--accent-strong); font-size: 1.1rem; }
.card p { margin: 0.4em 0; color: var(--text-dim); }

/* Animation d'apparition au défilement. Le contenu est TOUJOURS visible par défaut : l'animation
   ne fait que rejouer une entrée en fondu quand l'élément arrive à l'écran, elle ne conditionne
   jamais sa visibilité.

   Deux versions précédentes ont échoué sur ce point. La première masquait les cartes en CSS pur
   et comptait sur le script pour les révéler : sans JavaScript, toute la documentation du mod
   restait invisible pour toujours. La seconde ne masquait plus qu'avec .js-reveal-active, mais
   dépendait encore de l'IntersectionObserver pour révéler — or celui-ci ne s'exécute pas dans un
   onglet en arrière-plan, ce qui pouvait laisser une page entièrement blanche.

   Ici, plus aucun cas de figure ne peut cacher le contenu : pas de JavaScript, observateur qui
   ne se déclenche jamais, animation désactivée pour cause de préférence système — dans tous les
   cas le texte est là. C'est une décoration, elle doit se comporter comme telle. */
.reveal.is-visible { animation: reveal-in 0.4s ease both; }

@keyframes reveal-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

details.card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::before {
  content: "▸";
  color: var(--leaf-text);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
details.card[open] summary::before { transform: rotate(90deg); }
details.card ul { margin: 0.8em 0 0.2em; padding-left: 1.3em; color: var(--text-dim); }
details.card ul li { margin-bottom: 0.5em; }
details.card ul li strong { color: var(--text); }

.status-row { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.6em 0 1.6em; }
.status-row .pill { border-radius: 999px; padding: 0.35em 0.9em; font-size: 0.82rem; border: 1px solid transparent; }
.pill.ok { background: rgba(95, 174, 58, 0.16); border-color: rgba(143, 214, 106, 0.35); color: var(--leaf-text); }
.pill.wip { background: rgba(240, 169, 78, 0.14); border-color: rgba(255, 191, 107, 0.35); color: var(--accent-strong); }
.pill.todo { background: var(--pill-bg); border-color: var(--pill-border); color: var(--text-faint); }

table.keys { width: 100%; border-collapse: collapse; margin: 0.6em 0 1.6em; font-size: 0.92rem; }
table.keys th, table.keys td {
  text-align: left;
  padding: 0.5em 0.7em;
  border-bottom: 1px solid var(--bg-card-border);
}
table.keys th { color: var(--text-faint); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.keys td:first-child { white-space: nowrap; color: var(--accent-strong); font-weight: 600; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  /* Fond --leaf-text et non --leaf : blanc sur --leaf ne donnait que 3,09:1, en dessous du
     minimum AA de 4,5:1 — et c'est le bouton le plus important du site, sur le site d'un mod
     d'accessibilité. --leaf-text monte à 5,44:1, --leaf-deep (survol) à 7,2:1. */
  background: var(--leaf-text);
  color: #fff;
  text-decoration: none;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta:hover { background: var(--leaf-deep); transform: translateY(-1px); }
/* Couleurs fixes (pas les variables de thème) : ce bouton vit directement sur le dégradé
   vif de la page — il lui faut un contraste garanti quel que soit l'endroit du dégradé
   visible derrière. Un fond pâle assorti au dégradé (comme avant) s'y fondait presque. */
.cta.secondary { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); color: #24170a; }
.cta.secondary:hover { background: #fff; transform: translateY(-1px); }

footer {
  max-width: 820px;
  margin: 0 auto 2em;
  padding: 1.4em 1.5em;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
footer a { color: var(--text-dim); }
footer .privacy { margin-top: 0.6em; font-size: 0.8rem; }

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed;
  right: 1.2em;
  bottom: 1.2em;
  z-index: 15;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

@media (max-width: 600px) {
  .portfolio-bar { justify-content: center; }
  .portfolio-bar ul { justify-content: center; }
  .quick-nav { justify-content: flex-start; overflow-x: auto; }
}

/* ---------- Règles propres à la page de documentation ---------- */
.note {
  background: var(--pill-bg); border: 1px solid var(--pill-border);
  border-radius: 10px; padding: 0.8em 1em; font-size: 0.9em; color: var(--text-dim);
  margin: 0.8em 0;
}
.note strong { color: var(--text); }
/* Vraie liste pour le groupe de sous-thèmes (agriculture, boutiques...) : un lecteur
   d'écran annonce "liste de N éléments" au lieu de n'offrir aucun repère de structure. */
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list > li { margin: 0; }
.toc { columns: 2; column-gap: 2em; list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.4em; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .toc { columns: 1; } }

/* Le bouton de téléchargement de la page Démarrer : même composant .cta que l'accueil,
   simplement dégagé du texte qui suit. */
.download-cta { margin: 0 0 1.2em; }

/* ---------- Feuille de route (roadmap.html) ----------
   L'état de chaque point est écrit EN TOUTES LETTRES dans la page ; la couleur et le liseré ne
   font que le redoubler pour qui voit. Une pastille colorée seule serait invisible au lecteur
   d'écran — et indistinguable pour un daltonien. */
.legend-list { list-style: none; padding: 0; margin: 0.8em 0 0; }
.legend-list li {
  margin: 0 0 0.5em;
  padding-left: 0.9em;
  border-left: 5px solid var(--text-faint);
}
.legend-todo     { border-left-color: var(--sky-text) !important; }
.legend-fix      { border-left-color: var(--alert-text) !important; }
.legend-optimize { border-left-color: var(--accent-strong) !important; }
.legend-ok       { border-left-color: var(--leaf-text) !important; }

.roadmap-headline { font-size: 1.15rem; }
.stage-progress { color: var(--text-dim); font-weight: 600; margin-top: -0.4em; }

.roadmap-list { margin: 1em 0 0; padding-left: 1.4em; }
.roadmap-item {
  margin: 0 0 1.4em;
  padding: 0.7em 0 0.7em 1em;
  border-left: 5px solid var(--text-faint);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.roadmap-item > p { margin: 0 0 0.4em; }
.roadmap-item > p:last-child { margin-bottom: 0; }

.status-todo     { border-left-color: var(--sky-text); }
.status-fix      { border-left-color: var(--alert-text); }
.status-optimize { border-left-color: var(--accent-strong); }
.status-ok       { border-left-color: var(--leaf-text); }

.status-line { font-weight: 700; }
.status-tag { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.status-todo     .status-tag { color: var(--sky-text); }
.status-fix      .status-tag { color: var(--alert-text); }
.status-optimize .status-tag { color: var(--accent-strong); }
.status-ok       .status-tag { color: var(--leaf-text); }

.crit-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--alert-text);
}
.crit-tag::before { content: "⚠ "; }

/* Un retour de jeu est la seule information de cette page qui vienne d'un essai réel : il mérite
   de se détacher du reste, qui n'est encore que du prévisionnel. */
.roadmap-note {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 0.5em 0.7em;
}

/* ---- Feuille de route : filtres et étapes repliables --------------------------------------- */

/* Sans ces deux commandes, la page est un mur de cent trente points d'affilée où l'on cherche
   « ce qu'il me reste à tester ». Les cases filtrent par statut, les étapes se replient : on
   ouvre celle où l'on en est, et rien d'autre. Ce sont de vraies cases à cocher et de vrais
   éléments <details>, donc annoncés comme tels par le lecteur d'écran sans rien simuler. */
.filters {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1em 1.3em;
  margin: 1.5em 0;
}
.filters-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.7em;
}
.filter-boxes { display: flex; flex-wrap: wrap; gap: 0.5em 1.2em; }
.filter-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  padding: 0.3em 0.6em 0.3em 0.4em;
  border-radius: 8px;
  border-left: 5px solid var(--text-faint);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.filter-box input { width: 1.1em; height: 1.1em; accent-color: var(--focus); cursor: pointer; }
.filter-todo     { border-left-color: var(--sky-text); }
.filter-fix      { border-left-color: var(--alert-text); }
.filter-optimize { border-left-color: var(--accent-strong); }
.filter-ok       { border-left-color: var(--leaf-text); }

.filter-actions { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 0.9em; }
.filter-actions button {
  font: inherit;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
}
.filter-actions button:hover { background: #fff; }
#filter-remaining {
  background: var(--leaf-text);
  border-color: var(--leaf-text);
  color: #fff;
}
#filter-remaining:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); }

.filter-result { margin: 0.8em 0 0; font-weight: 600; color: var(--text-dim); }

.stage {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 0.9em;
  overflow: hidden;
}
.stage > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em 1em;
  padding: 0.9em 1.2em;
  cursor: pointer;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.stage > summary:hover { background: rgba(255, 255, 255, 0.55); }
.stage[open] > summary { border-bottom: 1px solid var(--bg-card-border); }
.stage-count {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.stage-body { padding: 0.2em 1.2em 1.2em; }
.stage-intro { color: var(--text-dim); }

/* La note est le gros du texte et ne sert qu'après coup : repliée, elle cesse de s'interposer
   entre « ce qu'il faut faire » et « ce qu'on doit entendre », qui sont l'essentiel. */
.item-note {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 0.4em 0.7em;
  margin-top: 0.5em;
}
.item-note > summary { cursor: pointer; font-weight: 600; color: var(--text-dim); font-size: 0.92rem; }
.item-note > p { margin: 0.5em 0 0.2em; }

/* Masquage par le filtre. `hidden` ne suffit pas : les éléments de liste ont un `display`
   propre qui l'emporte sur la valeur par défaut de l'attribut. */
.roadmap-item[hidden], .stage[hidden] { display: none !important; }

/* La barre de navigation de cette page porte onze étapes numérotées : elle déborde sur un écran
   étroit, on la laisse défiler horizontalement plutôt que de la tasser illisiblement. */
@media (max-width: 900px) {
  .quick-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}
