/* Une colonne de lecture, Arial seule, fond blanc et un gris très clair pour alterner les sections.
   Pas de filets : les blocs se séparent par l'espace et le changement de fond.
   Cinq tailles : le mot (display), titre, chapeau, texte, petit. */
:root {
  --paper: #ffffff;
  --band: #f3f2ef;
  --ink: #0a0a0a;
  --ink-2: #333333;
  --gray: #5f5f5f;
  --ref: #c9c8c4;

  --accent: #f0502d;
  --accent-ink: #b8361a;
  --accent-wash: #fde9e4;

  --b-gauche: #e0457b;
  --b-centre: #e8a317;
  --b-droite: #2f74c0;
  --b-extreme_droite: #5a3e8e;
  --b-other: #9a9a96;

  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --t-display: clamp(64px, 11vw, 168px);
  --t-title: clamp(26px, 2.6vw, 36px);
  --t-lead: clamp(19px, 1.6vw, 22px);
  --t-body: 16px;
  --t-small: 13px;

  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(72px, 9vw, 160px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --dur: 600ms;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.5;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--margin); }

/* barre du haut --------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); }
.top-row { display: flex; align-items: center; gap: var(--gap); min-height: 56px; }
.logo { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.views { display: flex; gap: 4px; margin-left: auto; }
.views a { text-decoration: none; padding: 8px 14px; border-radius: 999px; opacity: .8; transition: opacity .15s, background .15s; }
.views a:hover { opacity: 1; color: var(--paper); background: #2a2a2a; }
.views a[aria-current="page"] { opacity: 1; background: var(--paper); color: var(--ink); }
.weeknav { display: flex; align-items: center; gap: 10px; margin-left: clamp(8px, 3vw, 48px); white-space: nowrap; }
.wk-btn { background: none; border: 0; color: var(--paper); font-size: 20px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: background .15s, transform .12s; }
.wk-btn:hover:not(:disabled) { background: #2a2a2a; }
.wk-btn:active:not(:disabled) { transform: scale(.94); }
.wk-btn:disabled { opacity: .3; cursor: default; }
.wk-select { background: #1d1d1d; color: var(--paper); border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; max-width: 46ch; cursor: pointer; }

.banner { background: var(--accent-wash); color: #7a240f; padding-block: 12px; }
.banner .wrap { display: block; padding-right: max(var(--margin), calc(100% - 72ch)); }

/* le mot ---------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 96px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: var(--gap); }
.hero-side { padding-top: 1.2em; }
.status { font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }
.side-meta { margin-top: 12px; color: var(--gray); }
.side-meta b { color: var(--ink); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); align-items: start; }
.word {
  grid-column: 1 / -1;
  font-size: var(--t-display); font-weight: 700; letter-spacing: -0.05em; line-height: .9;
  overflow-wrap: normal; margin-left: -0.04em;
}
.word .part { display: inline-block; white-space: nowrap; }
.lead { font-size: var(--t-lead); line-height: 1.35; margin-top: clamp(24px, 3vw, 44px); max-width: 44ch; }
.lead b { color: var(--accent-ink); }
.body-text { max-width: 62ch; margin-top: 12px; color: var(--ink-2); }
.hero .body-text b { color: var(--ink); }
.quote { font-size: var(--t-lead); line-height: 1.4; max-width: 52ch; margin-top: clamp(24px, 3vw, 44px); padding-left: 20px; position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; background: var(--accent); }
.quote footer { margin-top: 14px; font-size: var(--t-small); color: var(--gray); display: flex; gap: 12px; align-items: center; }
.quote footer b { color: var(--ink); font-size: var(--t-body); }
mark { background: var(--accent-wash); color: inherit; padding-inline: 1px; }
.hero-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.fig figcaption { font-weight: 700; margin-bottom: 12px; }

/* sections -------------------------------------------------------------------- */
.band { background: var(--band); padding-block: var(--section); }
.plain { padding-block: var(--section); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
h2 { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { margin-top: 12px; color: var(--ink-2); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gap) * 2); }
.two h2 { margin-bottom: 8px; }
.two h2 + .body-text { margin-top: 0; margin-bottom: 20px; }

/* sujets ---------------------------------------------------------------------- */
.stories { list-style: none; padding: 0; display: grid; gap: clamp(28px, 3vw, 48px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.story h3 { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.story.lead-story h3 { color: var(--accent); }
.story h3 button { all: unset; cursor: pointer; }
.story h3 button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.story h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.story .facts { margin-top: 8px; }
.story .words { margin-top: 6px; color: var(--ink-2); }
.meter { height: 10px; margin-top: 14px; background: var(--paper); }
.meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; }
.story.lead-story .meter i { background: var(--accent); }
.excerpt { padding: 14px 16px; background: var(--paper); }
.excerpt + .excerpt { margin-top: 8px; }
.excerpt p { color: var(--ink); max-width: 68ch; }
.excerpt footer, .who { font-size: var(--t-small); color: var(--gray); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.excerpt footer b, .who b { color: var(--ink); font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* camps ----------------------------------------------------------------------- */
.blocs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap); }
.bloc { padding-top: 14px; position: relative; }
.bloc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.bloc-name { font-weight: 700; font-size: var(--t-lead); margin-top: 6px; }
.bloc-meta { color: var(--gray); font-size: var(--t-small); margin-bottom: 14px; }
.b-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; background: none; border: 0; padding: 8px 0; text-align: left; cursor: pointer; }
.b-row .w { font-weight: 700; overflow-wrap: anywhere; }
.b-row .n { color: var(--gray); }
.b-row .bar { grid-column: 1 / -1; height: 6px; background: var(--band); }
.b-row .bar i { display: block; height: 100%; background: var(--c); transform-origin: left; }
.b-row:hover .w { text-decoration: underline; }
.b-row:active { transform: translateY(1px); }
.empty { color: var(--gray); }

/* tableaux (de vrais tableaux : ils gardent leurs lignes) ----------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; }
thead th { font-size: var(--t-small); color: var(--gray); font-weight: 400; }
tbody tr { border-top: 1px solid var(--ref); } /* taste-skill-ignore : lignes d'un vrai tableau */
.people .camp th { padding-top: 24px; font-size: var(--t-lead); font-weight: 700; }
.people .camp { border-top: 0; }
.people td.num, .coverage td.num, thead th.num { text-align: right; white-space: nowrap; }
.people .topics { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.people .topics span b { font-weight: 700; }
.people .muted, .coverage .muted { color: var(--gray); }
.people button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.people button:focus-visible { outline: 2px solid var(--accent); }

/* listes ---------------------------------------------------------------------- */
.l-row { width: 100%; display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; gap: 12px; align-items: center; background: none; border: 0; padding: 8px 0; text-align: left; cursor: pointer; }
.l-row .w { font-weight: 700; overflow-wrap: anywhere; }
.l-row .num { color: var(--gray); white-space: nowrap; }
.l-row:hover .w { text-decoration: underline; }

/* méthode --------------------------------------------------------------------- */
.method p { margin-top: 14px; max-width: 62ch; }
.method p b { display: block; margin-bottom: 2px; }
.ok { color: #1f6b3a; }

/* pied ------------------------------------------------------------------------ */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 96px) 32px; }
.foot-name { font-size: clamp(48px, 9vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: .9; }
.foot-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 28px; opacity: .8; }

/* graphiques ------------------------------------------------------------------ */
.chart svg { display: block; overflow: visible; }
.tick { font-size: var(--t-small); fill: var(--gray); }
.tick.strong { fill: var(--ink); font-weight: 700; }
.val { font-size: var(--t-small); font-weight: 700; fill: var(--ink); }
.b-ref { fill: var(--ref); }
.b-now { fill: var(--accent); }
.b-ink { fill: var(--ink); }
.base { stroke: var(--ink); }
.ref-line { stroke: var(--ink); stroke-dasharray: 3 3; }
.ref-txt { font-size: var(--t-small); fill: var(--gray); }
.hit { fill: transparent; }

/* tiroir ---------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 10, 10, .35); opacity: 0; transition: opacity .2s; z-index: 30; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); z-index: 31;
  overflow-y: auto; padding: 24px var(--margin) 48px; transform: translateX(100%); transition: transform .26s var(--ease);
}
.drawer.open { transform: none; }
.drawer-close { background: var(--ink); color: var(--paper); border: 0; padding: 8px 14px; cursor: pointer; }
.drawer h2 { margin-top: 20px; font-size: var(--t-title); }
.drawer h3 { font-size: var(--t-body); margin: 28px 0 10px; }
.drawer .facts { margin-top: 10px; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: var(--paper); padding: 8px 10px; font-size: var(--t-small); max-width: 280px; }

/* apparition ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.grow { transform: scaleX(0); transition: transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.in .grow, .grow.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .grow { transform: none; transition: opacity 200ms linear; }
  .drawer { transition: none; }
}

/* téléphone ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .views a { padding: 6px 10px; }
  .wk-select { max-width: 30vw; }
  .weeknav { margin-left: auto; }
  .hero-grid, .hero-charts, .two, .story, .hero-main { grid-template-columns: minmax(0, 1fr); }
  .hero-side { padding-top: 0; order: 2; }
  .blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top-row { flex-wrap: wrap; padding-block: 8px; }
  .weeknav { width: 100%; margin-left: 0; }
  .wk-select { flex: 1; max-width: none; }
  .blocs { grid-template-columns: minmax(0, 1fr); }
  .l-row { grid-template-columns: minmax(0, 1fr) auto; }
  .l-row .c { display: none; }
}

/* portraits ------------------------------------------------------------------- */
.face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; display: inline-block; background: var(--band); }
.face-m { width: 44px; height: 44px; }
.face-l { width: 52px; height: 52px; }
.noface { background: var(--ref); }
.face-row + .face-row { margin-top: 14px; }
.face-camp { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.face-camp span { font-weight: 400; color: var(--gray); }
.faces { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faces li { position: relative; transition: transform .15s var(--ease); }
.faces li:hover { transform: translateY(-2px); }
.faces li.off .face { filter: grayscale(1); opacity: .3; }
.faces .n { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--paper); font-size: var(--t-small); font-weight: 700; display: grid; place-items: center; padding-inline: 5px; }
.faces li.off .n { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.who-cell { display: flex; gap: 12px; align-items: center; }
.who-cell small { display: block; color: var(--gray); font-size: var(--t-small); }
.credits { margin-top: 24px; font-size: var(--t-small); color: var(--gray); max-width: 72ch; }
.body-text, .section-head p { color: var(--ink); }

@media (max-width: 640px) {
  .people thead { display: none; }
  .people tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 10px; }
  .people td { padding: 0; }
  .people td:nth-child(3), .people td:nth-child(4) { grid-column: 1 / -1; }
  .people .camp th { display: block; }
}

/* pourquoi ce mot ----------------------------------------------------------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.5); }
.why h3 { font-size: var(--t-lead); font-weight: 700; margin-bottom: 12px; }
.why p + p { margin-top: 10px; }
.big-num { font-size: clamp(48px, 6vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.note { color: var(--gray); font-size: var(--t-small); margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; }
.checks li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: #1f6b3a; }
.checks li.no::before { content: "✗"; color: var(--accent-ink); }
.checks li span { font-weight: 700; }

/* détail d'un sujet --------------------------------------------------------- */
.calc { margin-top: 14px; }
.calc summary { cursor: pointer; font-weight: 700; }
.calc summary:hover { color: var(--accent-ink); }
.calc p { margin: 8px 0; color: var(--ink-2); }
table.mini { font-size: var(--t-small); max-width: 420px; }
table.mini th, table.mini td { padding: 4px 10px 4px 0; }

/* tableau des mots ---------------------------------------------------------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.search input, .explore-row input { font: inherit; padding: 10px 14px; border: 1px solid var(--ref); border-radius: 999px; background: var(--paper); min-width: 260px; }
.audit th button { all: unset; cursor: pointer; }
.audit th button:hover { color: var(--ink); text-decoration: underline; }
.audit th button:focus-visible { outline: 2px solid var(--accent); }
.audit tr.out td { color: var(--gray); }
.audit tr.out td b { color: var(--ink-2); }
.audit td { font-size: 15px; }
button.link { all: unset; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
button.link:focus-visible { outline: 2px solid var(--accent); }
.warn { color: var(--accent-ink); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
pre { background: var(--ink); color: var(--paper); padding: 14px 16px; overflow-x: auto; margin-top: 12px; font-size: var(--t-small); line-height: 1.5; }

/* explorer ------------------------------------------------------------------ */
.view-title { font-size: clamp(40px, 6vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: .95; margin-bottom: 28px; }
.explore-head { padding-bottom: 40px; }
.field-label { display: block; font-weight: 700; margin-bottom: 10px; }
.explore-row { display: flex; gap: 10px; flex-wrap: wrap; }
.explore-row input { flex: 1; font-size: var(--t-lead); padding: 14px 20px; }
.btn { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; cursor: pointer; transition: transform .12s, background .15s; }
.btn:hover { background: #2a2a2a; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); margin-top: 16px; } /* taste-skill-ignore : contour du bouton secondaire */
.explore-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.explore-options label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
#explore-results .lead { margin: 0 0 28px; max-width: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: middle; }
.explore-two { margin-top: 56px; }
.spaced { margin: 56px 0 16px; }
#explore-docs { display: grid; gap: 8px; }
.grid-table td, .grid-table th { padding: 6px 8px 6px 0; }
.heatcell { background: rgba(10, 10, 10, var(--a)); color: var(--ink); text-align: center; }
.heatcell.dark { color: var(--paper); }

/* collecte ------------------------------------------------------------------ */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 32px; }
.facts-row div { display: grid; gap: 4px; align-content: start; }
.facts-row b { font-size: var(--t-lead); }
.facts-row span { color: var(--gray); }
.alerts { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 12px; }
.alerts li { background: var(--accent-wash); color: #7a240f; padding: 10px 14px; }
.heat { overflow-x: auto; margin-top: 16px; }
.log { min-height: 120px; white-space: pre-wrap; }

@media (max-width: 900px) {
  .why, .facts-row { grid-template-columns: minmax(0, 1fr); }
}
.key { display: inline-block; width: 14px; height: 4px; margin-right: 8px; vertical-align: middle; }
.lead b.plain-b { color: var(--ink); }
