/* vachecker.info — feuille de style commune à toutes les pages.
   Sobre, lisible, sur fond blanc : une colonne de texte, des titres à
   empattements, un seul rouge pour les liens et la marque. Polices
   hébergées ici (licences OFL dans fonts/licenses) : aucune requête vers
   un service tiers. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/newsreader-latin.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('fonts/newsreader-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --surface: #f6f5f1;
  --text: #1c1c1c;
  --muted: #5e5e5e;
  --rule: #e2e0da;
  --accent: #a3172c;
  --accent-hover: #7d1021;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --measure: 44rem;
  /* Verdicts, foncés pour rester lisibles sur fond blanc */
  --v-vrai: #2e7a3b;
  --v-partiel: #8a6200;
  --v-trompeur: #a65200;
  --v-faux: #b0261c;
  --v-nr: #3c6585;
  --v-nv: #5b6270;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
/* Place de la barre de défilement toujours réservée : une page courte ne se
   décale pas par rapport aux autres (sauf le résumé, plein écran). */
html:not(:has(.r-body)) { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── En-tête et navigation ─────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .inner {
  max-width: 62rem; margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.45rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; font-family: var(--sans); font-size: 0.9rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ── Contenu ───────────────────────────────────────────────────────────── */

/* Même gabarit sur toutes les pages : la colonne s'aligne sur l'en-tête et
   le pied de page. Les pages de lecture gardent une ligne de texte courte,
   calée à gauche ; .wide libère la largeur (fiches, démonstration, accueil). */
main { max-width: 62rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
main:not(.wide) > * { max-width: var(--measure); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); margin: 0 0 1rem; letter-spacing: -0.005em; }
h2 { font-size: 1.45rem; margin: 2.8rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.3rem; }
strong { font-weight: 600; }

.lede { font-size: 1.2rem; line-height: 1.55; color: #333; margin-bottom: 1.6rem; }
.kicker {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.6rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.more { font-family: var(--sans); font-size: 0.95rem; }

/* Bouton principal (un seul par page, au plus) ; .secondary à côté de lui */
.button {
  display: inline-block; font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--accent); padding: 0.65rem 1.3rem; border-radius: 2px; text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.button.secondary:hover { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }

/* ── Accueil ───────────────────────────────────────────────────────────
   Accroche animée, carte de vérification qui « tombe » en boucle (les vrais
   verdicts de la vidéo de démo), vidéo, compteurs. Tout s'arrête avec
   prefers-reduced-motion. */
.home .hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 2rem 3.5rem; align-items: center; margin: 0.5rem 0 3.2rem; }
.live { display: inline-flex; align-items: center; gap: 0.6rem; }
.live-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.55; } to { transform: scale(3.2); opacity: 0; } }
.hero-title { margin: 0.4rem 0 1.3rem; line-height: 1; }
.hero-q { display: block; font-family: var(--sans); font-size: clamp(1.1rem, 2.1vw, 1.45rem); font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; }
.hero-a { display: block; font-style: italic; font-size: clamp(2.7rem, 6.4vw, 5rem); letter-spacing: -0.02em; }
.hero-info { position: relative; color: var(--accent); white-space: nowrap; }
.hero-swoosh { position: absolute; left: -3%; bottom: -0.16em; width: 106%; height: 0.3em; overflow: visible; pointer-events: none; }
.hero-swoosh path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 0.9s 1.25s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: rise 0.7s var(--d, 0s) cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.home .lede { max-width: 34rem; margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }

/* La scène : la carte et ses pastilles */
.vstage { position: relative; display: grid; justify-items: center; gap: 1rem; isolation: isolate; }
.vstage::before { content: ""; position: absolute; inset: 8% 4% 14%; border-radius: 40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #9aa6b4) 32%, transparent), transparent); filter: blur(28px); transition: background 0.6s; z-index: -1; }
.vcard {
  --acc: #9aa6b4;
  width: min(100%, 26rem); min-height: 19.5rem; border-radius: 18px; overflow: hidden; font-family: var(--sans);
  color: rgba(255, 255, 255, 0.95); background: linear-gradient(180deg, #17191e, #0f1014); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(15, 16, 20, 0.32), 0 10px 34px color-mix(in srgb, var(--acc) 22%, transparent);
  opacity: 0; transform: translateX(26px) scale(0.97); filter: blur(6px);
  transition: opacity 0.55s, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.55s, box-shadow 0.6s;
}
.vcard.is-in { opacity: 1; transform: none; filter: none; }
.vcard.is-out { opacity: 0; transform: translateX(-26px) scale(0.97); filter: blur(6px); transition-duration: 0.45s; }
.vcard-bar { position: relative; height: 4px; background: var(--acc); overflow: hidden; transition: background 0.55s; }
.vcard-bar::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.3s ease-in-out infinite; }
.vcard.is-done .vcard-bar::after { display: none; }
@keyframes shimmer { to { left: 130%; } }
.vcard-in { padding: 1.05rem 1.3rem 1.15rem; }
.vcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
.vcard-brand { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: rgba(255, 255, 255, 0.82); }
.vcard-brand b { font-weight: 500; color: var(--acc); transition: color 0.55s; }
.vcard-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--acc); background: color-mix(in srgb, var(--acc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 42%, transparent); transition: color 0.55s, background 0.55s, border-color 0.55s; }
.vspin { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: rgba(255, 255, 255, 0.85); animation: spin 0.8s linear infinite; }
.vcard.is-done .vspin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.vcard-who { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); transition: color 0.55s; }
.vcard-claim { margin: 0 0 0.9rem; font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.32; color: #fff; }
.vcard-stack { display: grid; }
.vcard-stack > * { grid-area: 1 / 1; transition: opacity 0.4s, transform 0.45s; }
.vcard-check { display: flex; align-items: center; gap: 0.6rem; align-self: start; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.vcard-body { margin: 0; font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); opacity: 0; transform: translateY(6px); }
.vcard.is-done .vcard-check { opacity: 0; }
.vcard.is-done .vcard-body { opacity: 1; transform: none; }
.vcard-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.95rem; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.78rem; opacity: 0; transition: opacity 0.45s 0.15s; }
.vcard.is-done .vcard-foot { opacity: 1; }
.vcard-foot a { color: rgba(255, 255, 255, 0.72); text-decoration-color: rgba(255, 255, 255, 0.3); }
.vcard-foot a:hover { color: #fff; }
.vdots { display: flex; gap: 0.55rem; }
.vdots button { width: 0.65rem; height: 0.65rem; padding: 0; border-radius: 50%; border: 1.5px solid #c9c6bd; background: transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.vdots button[aria-current="true"] { background: var(--c); border-color: var(--c); transform: scale(1.2); }

/* Vidéo de démonstration */
.demo-video { margin: 0 0 1rem; scroll-margin-top: 1.5rem; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111; border-radius: 6px; box-shadow: 0 24px 60px rgba(15, 16, 20, 0.18); }
.demo-video figcaption { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-top: 0.55rem; line-height: 1.4; }

/* Compteurs */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; margin: 2.6rem 0 0; padding: 1.8rem 0 0; border-top: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--sans); font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) b { color: var(--accent); }
.stat span { display: block; margin-top: 0.45rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .home .hero { grid-template-columns: 1fr; margin-bottom: 2.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.home) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .hero-swoosh path { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .live-dot::after, .vcard-bar::after { display: none; }
  .vspin { animation: none; }
  .vcard, .vcard-stack > *, .vcard-foot { transition: none; }
  .vcard { filter: none; }
}

/* Étiquettes de verdict */
.verdict {
  display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 0.1rem 0.45rem; border: 1px solid currentColor;
  border-radius: 2px; vertical-align: 0.1em;
}
.v-vrai { color: var(--v-vrai); }
.v-partiel { color: var(--v-partiel); }
.v-trompeur { color: var(--v-trompeur); }
.v-faux { color: var(--v-faux); }
.v-nr { color: var(--v-nr); }
.v-nv { color: var(--v-nv); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
th { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
td:first-child { white-space: nowrap; }

/* Listes de domaines (politique des sources) */
.domains { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 1.4rem; }
.domains li { margin: 0; font-family: var(--mono); font-size: 0.82rem; background: var(--surface); border: 1px solid var(--rule); padding: 0.1rem 0.45rem; }

/* Notes et sommaire */
.toc { font-family: var(--sans); font-size: 0.92rem; background: var(--surface); padding: 0.9rem 1.2rem; margin: 0 0 2rem; }
.toc ol { margin: 0.3rem 0 0; }
.note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.8rem; }

/* ── Démonstration (relecture.html) ────────────────────────────────────── */

.intro { max-width: var(--measure); }
.debates { list-style: none; padding: 0; margin: 1.6rem 0 1.2rem; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.debates li { margin: 0; }
.debates a {
  display: block; height: 100%; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--text); text-decoration: none; background: var(--bg);
}
.debates a:hover { border-color: var(--muted); }
.debates a[aria-current] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.debate-title { display: block; font-size: 1.02rem; line-height: 1.35; }
.debate-meta { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* Lecteur YouTube, et l'overlay de l'extension par-dessus */
#stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111; }
#stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
#stage iframe, #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#facade {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  background: #161616; border: 0; color: #f3f3f3; cursor: pointer; font: inherit; padding: 1.5rem; text-align: center;
}
#facade:disabled { cursor: default; }
#facade .play {
  width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1.5px solid #f3f3f3;
  display: grid; place-items: center; font-size: 1.2rem; padding-left: 0.2rem;
}
#facade:hover:not(:disabled) .play { background: var(--accent); border-color: var(--accent); }
#facade:disabled .play { display: none; }
.facade-label { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.facade-note { font-family: var(--sans); font-size: 0.85rem; color: #b5b5b5; max-width: 34rem; }

#controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0.8rem 0 0; font-family: var(--sans); }
#controls button {
  font: inherit; font-size: 0.88rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.35rem 0.9rem; cursor: pointer;
}
#controls button:hover { border-color: var(--muted); }
#progress { font-size: 0.85rem; color: var(--muted); margin-left: auto; }

/* Frise : un repère par affirmation vérifiée, à la couleur du verdict */
#timeline { position: relative; height: 1.6rem; margin: 0.8rem 0 0.4rem; }
#timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 0.75rem; height: 2px; background: var(--rule); }
#playhead { position: absolute; top: 0.25rem; width: 2px; height: 1.1rem; background: var(--text); margin-left: -1px; pointer-events: none; }
.marker { position: absolute; top: 0.3rem; width: 6px; height: 1rem; margin-left: -3px; border: 0; border-radius: 1px; padding: 0; cursor: pointer; }
.marker:hover { transform: scaleY(1.3); }
#legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0 0 2rem; }
#legend i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 1px; margin-right: 0.4rem; }

/* Interface de l'extension : ce qui n'a pas de sens en relecture */
#fct-stop-btn, .fct-report, #fct-recap-session { display: none !important; }
#fiche-link { margin: -0.4rem 0 1.4rem; }

/* ── Fiche d'un débat (fiche.html) ─────────────────────────────────────── */

/* Thèmes (liste fixe : server/themes.py) */
.th-pouvoir_achat { --th: #e07b39; }
.th-budget { --th: #a35a2d; }
.th-economie { --th: #c9a227; }
.th-energie { --th: #8aa52b; }
.th-ecologie { --th: #3a9a5b; }
.th-immigration { --th: #1f8f8f; }
.th-securite { --th: #3c6fb6; }
.th-social { --th: #7d6bc9; }
.th-sante { --th: #d6588e; }
.th-education { --th: #a24fb0; }
.th-international { --th: #1d3f6e; }
.th-institutions { --th: #3f4b57; }
.th-societe { --th: #b9826b; }
.th-autre { --th: #c4c4c4; }
.sw { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 1px; background: var(--th, var(--muted)); margin-right: 0.45rem; vertical-align: 0.02em; flex-shrink: 0; }

.f-meta { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); margin: -0.4rem 0 1.2rem; }
.f-ai { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: -1.1rem 0 1.4rem; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; font-family: var(--sans); font-size: 0.95rem; }
.f-toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-family: var(--sans); font-size: 0.88rem; padding: 0.7rem 0; margin: 1.4rem 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
/* Une section par h2 : la règle générale (pas de filet au-dessus du premier
   h2 de son parent) les retirerait tous */
#fiche section > h2 { border-top: 1px solid var(--rule); padding-top: 1.6rem; }
#fiche #debatteurs > h2 { border-top: 0; padding-top: 0; }

.f-debs { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 1.2rem; }
.f-deb { border: 1px solid var(--rule); padding: 1rem 1.1rem 1.1rem; }
.f-deb h3 { margin: 0 0 0.15rem; }
.f-deb-meta, .f-deb-other { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 0 0 0.6rem; }
.f-idx { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.5rem 0 0.1rem; font-family: var(--sans); }
.f-idx-n { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.f-idx-m { font-size: 0.88rem; color: var(--muted); }
.f-idx-l { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin: 0 0 0.5rem; }
.f-idx-na { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0; }
.f-bar { display: flex; gap: 1px; height: 0.55rem; overflow: hidden; background: var(--surface); margin: 0.3rem 0 0.55rem; }
.f-bar i { display: block; min-width: 2px; flex-basis: 0; }
.f-bar.sm { height: 0.4rem; margin: 0.15rem 0 0.3rem; }
.f-counts { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; font-family: var(--sans); font-size: 0.82rem; }
.f-counts li { margin: 0; }
.f-deb-link { font-family: var(--sans); font-size: 0.85rem; }
.f-comps { font-family: var(--sans); font-size: 0.92rem; }
.f-howto { font-family: var(--sans); font-size: 0.9rem; background: var(--surface); padding: 0.7rem 1rem; margin: 1rem 0; }
.f-howto summary { cursor: pointer; font-weight: 600; }
.f-howto ul { margin: 0.6rem 0 0.2rem; }

.f-group { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }
.f-cards { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.f-card { border: 1px solid var(--rule); border-left: 3px solid var(--vc, var(--rule)); padding: 0.8rem 1rem; }
.f-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.3rem 0.6rem; margin: 0 0 0.45rem; font-family: var(--sans); font-size: 0.85rem; }
.f-card blockquote, .f-contra blockquote { margin: 0 0 0.5rem; font-style: italic; font-size: 1.05rem; line-height: 1.45; }
.f-why { margin: 0 0 0.45rem; font-weight: 500; }
.f-expl { margin: 0; font-size: 0.93rem; color: #444; }
.f-ts { font-family: var(--sans); font-size: 0.82rem; white-space: nowrap; }

.f-frise { display: flex; gap: 1px; height: 2.4rem; margin: 1.2rem 0 0.3rem; }
.f-frise a { display: block; min-width: 2px; flex-basis: 0; background: var(--th); }
.f-frise a:hover, .f-frise a:focus-visible { filter: brightness(1.18); }
.f-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.f-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 0.8rem 0 1.6rem; }
.f-legend span { display: inline-flex; align-items: center; }

.table-scroll { overflow-x: auto; margin: 0.8rem 0 1.6rem; }
.f-matrix { min-width: 36rem; font-family: var(--sans); font-size: 0.85rem; }
.f-matrix th[scope="row"] { font-size: 0.88rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); white-space: nowrap; }
.f-matrix td { white-space: normal; min-width: 7.5rem; }
.f-matrix td:first-of-type { white-space: nowrap; min-width: 0; color: var(--muted); }
.f-best { color: var(--accent); }
.f-cell-sub { display: block; color: var(--muted); font-size: 0.78rem; }

.f-chapters { list-style: none; padding: 0; margin: 0.6rem 0 1.6rem; font-family: var(--sans); font-size: 0.9rem; }
.f-chapters li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 0.15rem 1rem; align-items: baseline; padding: 0.5rem 0.4rem; margin: 0; border-bottom: 1px solid var(--rule); }
.f-chapters li:target { background: var(--surface); }
.f-ch-time { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.f-ch-theme { display: inline-flex; align-items: center; }
.f-ch-stats { grid-column: 2 / -1; font-size: 0.8rem; }

.f-chiffres { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); margin: 0.8rem 0 1.6rem; }
.f-chiffre { border: 1px solid var(--rule); padding: 0.8rem 1rem; }
.f-chiffre .f-card-head > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; }
.f-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0.2rem 0 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.f-vs-l { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.f-vs-n { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.f-source { border-bottom: 1px solid var(--rule); }
.f-source summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.2rem; cursor: pointer; }
.f-source summary::-webkit-details-marker { display: none; }
.f-source summary::before { content: '▸'; color: var(--muted); margin-right: 0.5rem; }
.f-source[open] summary::before { content: '▾'; }
.f-source summary > span:first-child { flex: 1; }
.f-source ul { list-style: none; padding: 0 0 0.6rem 1.2rem; margin: 0; font-size: 0.88rem; }
.f-source li { margin: 0.35rem 0; }
.f-source li a { margin: 0 0.3rem; }

.f-contra { border: 1px solid var(--rule); padding: 0.9rem 1rem; margin: 0 0 0.9rem; }
.f-contra h3 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.f-contra-sides { display: grid; gap: 0.6rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.f-props-grid { display: grid; gap: 0 1.6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.f-props { padding-left: 1.1rem; }

.f-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 1rem; font-family: var(--sans); margin: 0.8rem 0 0.6rem; }
.f-filters label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.f-filters select { font: inherit; font-size: 0.9rem; color: var(--text); background: var(--bg); border: 1px solid var(--rule); border-radius: 2px; padding: 0.3rem 0.4rem; max-width: 100%; }
#f-count { margin-left: auto; font-size: 0.85rem; color: var(--muted); }
.f-affs { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.f-affs li { margin: 0; padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--rule); }
.f-affs li:target { background: var(--surface); }
.f-aff-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin: 0 0 0.35rem; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.f-aff-head strong { color: var(--text); font-weight: 600; }
.f-aff-head span { display: inline-flex; align-items: center; }
.f-quote { margin: 0 0 0.35rem; font-style: italic; font-size: 1.04rem; line-height: 1.45; }
.f-sources { font-family: var(--sans); font-size: 0.92rem; margin: 0.6rem 0 1.6rem; border-top: 1px solid var(--rule); }

@media (max-width: 640px) {
  .f-chiffres { grid-template-columns: 1fr; }
  .f-chapters li { grid-template-columns: 1fr auto; }
  .f-ch-time { grid-column: 1 / -1; }
  .f-ch-stats { grid-column: 1 / -1; }
  #f-count { margin-left: 0; width: 100%; }
}

/* ── Pied de page ──────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.site-footer .inner { max-width: 62rem; margin: 0 auto; padding: 1.4rem 1.5rem 2.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  main { padding: 2rem 1rem 3rem; }
  .site-header .inner, .site-footer .inner { padding-left: 1rem; padding-right: 1rem; }
  .site-nav { gap: 0.2rem 1.1rem; }
  td:first-child { white-space: normal; }
}

/* ── Résumé en un écran (resume.html) ──────────────────────────────────── */
/* Canevas 1600 × 900 mis à l'échelle de la fenêtre (resume.js) : tout tient
   en un écran paysage, sans défilement. Tailles en px : celles du canevas. */

.r-body { margin: 0; background: #e7e5df; overflow: hidden; }
.r-tools { position: fixed; top: 8px; left: 12px; z-index: 2; font-family: var(--sans); font-size: 13px; }
.r-tools a { color: var(--muted); text-decoration: none; }
.r-tools a:hover { color: var(--accent); }
.r-stage { position: fixed; inset: 0; overflow: hidden; }
/* Centré par position absolue : centré par la grille, un canevas plus large
   que la fenêtre était calé à gauche avant la mise à l'échelle */
.r-canvas {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--r-scale, 1)); transform-origin: center center;
  background: var(--bg); color: var(--text); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
  padding: 40px 64px 28px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 20px;
  font-family: var(--sans); line-height: 1.3; overflow: hidden;
}
.r-loading { font-size: 28px; color: var(--muted); margin: auto; }
.r-rotate { display: none; }
.r-portrait .r-rotate { display: block; position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0; }

.r-head { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; padding-bottom: 22px; border-bottom: 2px solid var(--text); }
.r-kicker { display: flex; align-items: baseline; gap: 18px; margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-brand { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; letter-spacing: 0; text-transform: none; color: var(--text); }
.r-brand span { color: var(--accent); }
.r-title { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.08; letter-spacing: -0.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-kpis { display: flex; gap: 34px; }
.r-kpi b { display: block; font-size: 58px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-kpi span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.r-debs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.r-deb { padding: 0 44px; border-left: 1px solid var(--rule); min-width: 0; }
.r-deb:first-child { padding-left: 0; border-left: 0; }
.r-deb:last-child { padding-right: 0; }
.r-name { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sub { font-size: 15px; color: var(--muted); margin: 4px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-idx { display: flex; align-items: baseline; gap: 16px; margin: 0; }
.r-idx b { font-size: 104px; font-weight: 700; line-height: 0.84; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.r-idx b small { font-size: 46px; letter-spacing: 0; margin-left: 6px; }
.r-idx span { font-size: 26px; font-weight: 500; color: var(--muted); }
.r-idx--na { align-items: flex-end; height: 87px; }
.r-idx--na span { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--muted); }
.r-idx-l { margin: 10px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.r-bar { display: flex; gap: 2px; height: 14px; margin-bottom: 12px; }
.r-bar i { display: block; flex-basis: 0; min-width: 3px; }
.r-bar--empty { background: var(--surface); }
.r-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.r-counts b { display: block; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.r-counts span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.r-comps { display: flex; flex-wrap: wrap; gap: 6px 36px; margin: 0; font-size: 16px; color: var(--muted); min-height: 21px; }
.r-comps strong { color: var(--text); font-weight: 600; }
.r-sig { font-style: normal; font-weight: 600; color: var(--text); }

.r-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding-top: 20px; border-top: 1px solid var(--rule); min-height: 0; overflow: hidden; }
.r-block { min-width: 0; }
.r-h { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-frise { display: flex; gap: 2px; height: 34px; }
.r-frise i { display: block; flex-basis: 0; min-width: 2px; background: var(--th); }
.r-axis { display: flex; justify-content: space-between; margin: 6px 0 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.r-themes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 36px; font-size: 18px; }
.r-themes li { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.r-themes li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-themes b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-sw { flex: none; width: 14px; height: 14px; background: var(--th); }

.r-nums { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 2px 16px; align-items: baseline; }
.r-num-who { grid-column: 1 / -1; margin: 8px 0 0; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-num-who strong { color: var(--text); font-weight: 600; }
.r-num-who em { font-family: var(--serif); font-size: 17px; }
.r-num-l { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.r-num-big { display: block; font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.r-num-said { color: var(--v-faux); }
.r-num-rest { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-num-arrow { font-size: 28px; color: var(--muted); text-align: center; }
.r-sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 36px; font-size: 18px; }
.r-sources li { display: flex; gap: 10px; margin: 0; min-width: 0; }
.r-sources li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sources b { margin-left: auto; font-variant-numeric: tabular-nums; }

.r-foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.4; color: var(--muted); }
.r-url { font-family: var(--mono); white-space: nowrap; color: var(--text); }
