/* Le Calepin du terrain : feuille de style commune à tout le site.
   Bloc sténo du reporter : papier vert pâle, réglure fine, marge rouge, encre bleue en
   seul accent.

   Source unique : ce fichier vit avec les scripts de publication, qui en écrivent une
   copie à la racine du site. Ne pas éditer la copie du site à la main.

   Trois partis pris :
   1. Mode sombre : chaque couleur existe en paire claire et sombre, le navigateur choisit.
   2. Tailles de texte en rem : la page suit le réglage « texte plus grand » du lecteur.
   3. Téléphone d'abord : les règles de base valent pour un petit écran, les colonnes
      n'arrivent qu'à partir d'une certaine largeur (min-width).

   Chaque page qui lie cette feuille porte dans son <head> :
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="color-scheme" content="light dark">
   Les quatre polices sont déclarées plus bas et servies depuis /polices/ : aucune page ne
   doit plus appeler Google Fonts. */

/* ---------- Polices hébergées sur le site ----------
   Archivo, Source Serif 4, JetBrains Mono et Caveat, sous licence SIL Open Font License 1.1
   (textes dans /polices/). Seuls les alphabets latins sont servis ; chaque navigateur ne
   télécharge que la tranche de caractères dont la page a besoin. */
/* Archivo, normal, latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/polices/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo, normal, latin */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/polices/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Caveat, normal, latin-ext */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/polices/caveat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat, normal, latin */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/polices/caveat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono, normal, latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/polices/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono, normal, latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/polices/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono, normal, latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/polices/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono, normal, latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/polices/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Serif 4, italic, latin-ext */
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/polices/source-serif-4-italique-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4, italic, latin */
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/polices/source-serif-4-italique-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Serif 4, normal, latin-ext */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/polices/source-serif-4-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4, normal, latin */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/polices/source-serif-4-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Couleurs ---------- */
:root {
  /* Valeurs brutes, par paires. */
  --paper-clair: #eef1e8;    --paper-sombre: #121513;
  --sheet-clair: #f7f8f2;    --sheet-sombre: #191d1a;
  --ink-clair: #1a1d1b;      --ink-sombre: #e6e9e2;
  --muted-clair: #5b625c;    --muted-sombre: #9aa29b;
  --rule-clair: #d3d9cc;     --rule-sombre: #2d332e;
  --line-clair: #dfe5d6;     --line-sombre: #222823;
  --pen-clair: #1f3fbf;      --pen-sombre: #86a2ff;
  --pen-ink-clair: #ffffff;  --pen-ink-sombre: #0c1020;
  --pen-soft-clair: #e2e7f7; --pen-soft-sombre: #1c2340;
  --margin-clair: #b03a32;   --margin-sombre: #e0766d;
  --live-clair: #26754a;     --live-sombre: #62c48f;
  --soon-clair: #865c05;     --soon-sombre: #e0a640;

  /* Jetons employés par les composants. Clair par défaut. */
  --paper: var(--paper-clair);       /* fond de page */
  --sheet: var(--sheet-clair);       /* feuille du calepin */
  --ink: var(--ink-clair);           /* texte */
  --muted: var(--muted-clair);       /* texte secondaire */
  --rule: var(--rule-clair);         /* filets */
  --line: var(--line-clair);         /* réglure du papier */
  --pen: var(--pen-clair);           /* encre bleue : liens, accent */
  --pen-ink: var(--pen-ink-clair);   /* texte posé sur l'encre bleue */
  --pen-soft: var(--pen-soft-clair); /* fond teinté de bleu */
  --margin: var(--margin-clair);     /* rouge de la marge */
  --live: var(--live-clair);         /* état « en service » */
  --soon: var(--soon-clair);         /* état « à venir » */

  /* Blocs encrés : leur fond et leur bord suivent le thème de la page. Ces deux jetons
     n'emploient pas light-dark() exprès, sinon ils se résoudraient d'après le thème
     sombre que le bloc force à l'intérieur. */
  --encre-fond: var(--ink-clair);
  --encre-bord: var(--ink-clair);

  /* Le navigateur accorde ses propres éléments (fond par défaut, champs, barres de
     défilement) au réglage clair ou sombre de l'appareil. */
  color-scheme: light dark;
  accent-color: var(--pen);
}

/* Repli prescrit par le guide : navigateurs qui ne connaissent pas light-dark(). */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: var(--paper-sombre);
    --encre-fond: var(--paper-sombre);
    --encre-bord: var(--rule-sombre);
    --sheet: var(--sheet-sombre);
    --ink: var(--ink-sombre);
    --muted: var(--muted-sombre);
    --rule: var(--rule-sombre);
    --line: var(--line-sombre);
    --pen: var(--pen-sombre);
    --pen-ink: var(--pen-ink-sombre);
    --pen-soft: var(--pen-soft-sombre);
    --margin: var(--margin-sombre);
    --live: var(--live-sombre);
    --soon: var(--soon-sombre);
  }
}

/* Voie moderne : la couleur suit color-scheme, y compris sur un bloc qui le fixerait. */
@supports (color: light-dark(white, black)) {
  :root {
    --paper: light-dark(var(--paper-clair), var(--paper-sombre));
    --sheet: light-dark(var(--sheet-clair), var(--sheet-sombre));
    --ink: light-dark(var(--ink-clair), var(--ink-sombre));
    --muted: light-dark(var(--muted-clair), var(--muted-sombre));
    --rule: light-dark(var(--rule-clair), var(--rule-sombre));
    --line: light-dark(var(--line-clair), var(--line-sombre));
    --pen: light-dark(var(--pen-clair), var(--pen-sombre));
    --pen-ink: light-dark(var(--pen-ink-clair), var(--pen-ink-sombre));
    --pen-soft: light-dark(var(--pen-soft-clair), var(--pen-soft-sombre));
    --margin: light-dark(var(--margin-clair), var(--margin-sombre));
    --live: light-dark(var(--live-clair), var(--live-sombre));
    --soon: light-dark(var(--soon-clair), var(--soon-sombre));
  }
}

/* ---------- Polices et mesures ---------- */
:root {
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gouttiere: 1rem;      /* retrait horizontal des blocs, 1.375rem sur grand écran */
  --reglure: 2rem;        /* pas de la réglure du papier */
  --lecture: 60ch;        /* longueur de ligne maximale d'un texte courant */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding-block: 0 3rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap { max-width: 65rem; margin-inline: auto; }

a { color: var(--pen); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.1; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; }
.kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pen);
}
/* Emplacement à produire : étiquette en pointillés. */
.ph {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--soon); border: 1px dashed currentColor; padding: .15em .5em;
  justify-self: start; width: fit-content; max-width: 100%;
}

/* ---------- Le calepin : feuille, spirale, en-tête ---------- */
.site {
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom,
    transparent 0, transparent calc(var(--reglure) - 1px),
    var(--line) calc(var(--reglure) - 1px), var(--line) var(--reglure));
  border-block: 1px solid var(--rule);
}
.spiral {
  height: 14px;
  background-image: radial-gradient(circle at 50% 100%, var(--paper) 4px, transparent 5px);
  background-size: 22px 14px;
  border-bottom: 1px solid var(--rule);
}
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .875rem var(--gouttiere);
  background: var(--sheet); border-bottom: 1px solid var(--rule);
}
.site-nav .logo {
  font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: 1.1rem;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  flex-basis: 100%;
}
.site-nav a:not(.logo) {
  font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink); text-decoration: none; padding-block: .35rem;
  display: inline-flex; align-items: center; min-block-size: 24px;
}
@media (pointer: coarse) {
  .site-nav a:not(.logo) { min-block-size: 44px; }
}
.site-nav a:not(.logo):hover, .site-nav a[aria-current] {
  color: var(--pen); text-decoration: underline; text-decoration-thickness: 2px;
}

/* Colonne à marge rouge. */
.main { border-left: 2px solid var(--margin); margin-left: .5rem; }

/* ---------- Accroche ---------- */
.hero { padding: 2rem var(--gouttiere) 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .875rem; }
.hero .eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 4.8rem);
  font-stretch: 68%; font-weight: 800; text-transform: uppercase; line-height: .95;
}
.hero h1 span { color: var(--pen); }
.hero .sub { font-size: clamp(1.08rem, .95rem + .6vw, 1.3rem); max-width: 31em; }

/* ---------- Les rubriques ---------- */
.rubriques {
  margin-inline: var(--gouttiere);
  display: grid; grid-template-columns: 1fr;
  border: 2px solid var(--ink); background: var(--sheet);
}
.rubrique {
  padding: .875rem .75rem;
  display: grid; grid-template-columns: 1fr; gap: .25rem; align-content: start;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.rubrique:last-child { border-bottom: 0; }
.rubrique:hover { background: var(--pen-soft); }
.rubrique h3 { font-size: 1.3rem; font-stretch: 72%; text-transform: uppercase; font-weight: 800; }
.rubrique h3::after { content: " →"; color: var(--margin); }
.rubrique p { font-size: .9rem; color: var(--muted); line-height: 1.4; }
/* Une rubrique pas encore ouverte : ni flèche, ni survol. */
.rubrique.attente { color: var(--muted); }
.rubrique.attente:hover { background: none; }
.rubrique.attente h3::after { content: none; }
.rubrique .c {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pen);
}

/* ---------- Blocs ---------- */
.block { padding: 1.875rem var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem .875rem; }
.block-head h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.85rem);
  font-stretch: 78%; font-weight: 800; text-transform: uppercase;
}
.block-head .mono { color: var(--muted); }
.block > p, .prose p { max-width: var(--lecture); }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.375rem; }
.pile { display: grid; grid-template-columns: minmax(0, 1fr); gap: .625rem; align-content: start; }

/* Liste de fiches, numérotée par le navigateur (01, 02, 03…). */
.fiches { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: fiche; }
.fiches li {
  display: grid; grid-template-columns: 2.4em 1fr; gap: .625rem;
  padding: .625rem 0; border-bottom: 1px solid var(--rule);
  counter-increment: fiche;
}
.fiches li::before {
  content: counter(fiche, decimal-leading-zero);
  font-family: var(--display); font-stretch: 62%; font-weight: 800; font-size: 1.5rem;
  color: var(--margin); line-height: 1; font-variant-numeric: tabular-nums;
}
.fiches strong {
  font-family: var(--display); font-stretch: 86%; font-size: 1.05rem;
  display: block; line-height: 1.2;
}
.fiches a { color: inherit; text-decoration-color: var(--rule); }
.fiches a:hover { color: var(--pen); }
.fiches span { display: block; font-size: .9rem; line-height: 1.45; color: var(--muted); margin-top: .15rem; }

/* Encart du radar. */
.radar {
  border: 1px solid var(--rule); background: var(--paper);
  padding: .875rem; display: grid; gap: .5rem; align-content: start;
}
.radar h3 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.radar .date { color: var(--muted); }
.radar strong { font-family: var(--display); font-stretch: 86%; font-size: 1.05rem; line-height: 1.25; }
.radar ul { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--muted); }

/* Consigne à copier. */
.consigne {
  font-family: var(--mono); font-size: .8rem; line-height: 1.55; white-space: pre-wrap;
  background: var(--pen-soft); color: var(--ink);
  border-left: 3px solid var(--pen); padding: .75rem .875rem; margin: 0; overflow-x: auto;
}

/* Boutons. */
.row { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.btn {
  font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  background: var(--pen); color: var(--pen-ink);
  border: 0; padding: .7rem .95rem; cursor: pointer; display: inline-block;
}

/* ---------- Blocs encrés : toujours sombres ---------- */
/* À l'encre sur page claire, en creux sur page sombre. Le bloc force le thème sombre à
   l'intérieur (guide component-specific-light-dark-theme) : un champ de formulaire posé
   là sera sombre lui aussi. Les jetons y sont redéclarés en version sombre, pour les
   navigateurs sans light-dark(), et la couleur du texte est reposée, comme le guide
   l'exige pour toute propriété héritée. */
.inscription, .story {
  color-scheme: dark;
  --paper: var(--paper-sombre);
  --sheet: var(--sheet-sombre);
  --ink: var(--ink-sombre);
  --muted: var(--muted-sombre);
  --rule: var(--rule-sombre);
  --line: var(--line-sombre);
  --pen: var(--pen-sombre);
  --pen-ink: var(--pen-ink-sombre);
  --pen-soft: var(--pen-soft-sombre);
  --margin: var(--margin-sombre);
  --live: var(--live-sombre);
  --soon: var(--soon-sombre);
  background: var(--encre-fond);
  color: var(--ink);
  accent-color: var(--pen);
}

.inscription {
  border: 1px solid var(--encre-bord);
  padding: 1.375rem var(--gouttiere); margin-inline: var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem;
}
.inscription .kicker { color: var(--margin); }
.inscription h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.4vw, 1.9rem);
  font-stretch: 76%; font-weight: 800; text-transform: uppercase;
}
.inscription p { max-width: var(--lecture); }

.story {
  border-top: 1px solid var(--encre-bord);
  padding: 2rem var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
}
.story .label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.story h2 {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem);
  font-stretch: 70%; font-weight: 800; text-transform: uppercase; margin-top: .5rem;
}
.story .txt { display: grid; gap: .75rem; max-width: var(--lecture); }
.story a { color: inherit; }
.sig { font-family: var(--hand); font-size: 2rem; line-height: 1; }

/* ---------- Pied ---------- */
.site-foot {
  padding: 1rem var(--gouttiere); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  color: var(--muted); background: var(--sheet); border-top: 1px solid var(--rule);
}
.site-foot .mono:first-child { flex-basis: 100%; }

/* ---------- À partir de la tablette ---------- */
@media (min-width: 38em) {
  :root { --gouttiere: 1.375rem; }
  body { padding-inline: 1rem; }
  .site { margin-top: 1.25rem; border: 1px solid var(--rule); }
  .site-nav .logo { flex-basis: auto; margin-right: auto; }
  .main { margin-left: 1.375rem; }
  .hero { padding-top: 2.5rem; }
  .site-foot .mono:first-child { flex-basis: auto; margin-right: auto; }
}

@media (min-width: 48em) {
  .two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.75rem; padding-block: 2.5rem; }
}

/* ---------- Grand écran : les rubriques côte à côte ---------- */
@media (min-width: 52em) {
  .rubriques { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .rubrique { border-bottom: 0; border-right: 1px solid var(--rule); gap: .375rem; }
  .rubrique:last-child { border-right: 0; }
}

/* ---------- Pages de rubrique : en-tête, fiche chiffrée, sections, colophon ---------- */
/* Pièces communes aux pages que fabriquent les scripts (le radar, la cuisine) et aux
   rubriques à venir. */
.masthead {
  padding: 2rem var(--gouttiere) 1.75rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
}
.masthead .kicker { display: block; margin-bottom: .875rem; }
.masthead h1 {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 4.8rem);
  font-stretch: 68%; font-weight: 800; text-transform: uppercase; line-height: .95;
}
.masthead h1 em { font-style: normal; color: var(--pen); }
.masthead h1 sup { font-size: .4em; vertical-align: .9em; }
.tagline { margin-top: .875rem; font-size: clamp(1.08rem, .95rem + .6vw, 1.3rem); max-width: 31em; }

/* Fiche chiffrée, sur le modèle de l'encart du radar. Chaque rubrique en change le titre. */
.press-card { border: 1px solid var(--rule); background: var(--paper); padding: .875rem; }
.press-card::before {
  content: "Fiche"; display: block; margin-bottom: .25rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.press-stat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid var(--rule);
}
.press-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.press-stat-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.press-stat-value {
  font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.2rem;
  font-variant-numeric: tabular-nums; text-align: right;
}
.press-stat-value.big { font-size: 2rem; line-height: 1; color: var(--margin); }

/* Titre de section, suivi d'un trait d'encre. */
.section-header { display: flex; align-items: baseline; gap: .875rem; margin-bottom: 1.25rem; }
.section-number { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); }
.section-header h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.85rem);
  font-stretch: 78%; font-weight: 800; text-transform: uppercase;
}
.section-header h2 em { font-style: normal; color: var(--pen); }
.section-rule { flex: 1; height: 2px; background: var(--ink); align-self: center; }

.main code { font-family: var(--mono); font-size: .85em; background: var(--pen-soft); padding: .05em .3em; }
.main pre {
  font-family: var(--mono); font-size: .8rem; line-height: 1.55;
  background: var(--pen-soft); color: var(--ink); border-left: 3px solid var(--pen);
  padding: .75rem .875rem; margin: 1rem 0; overflow-x: auto;
}
.main pre code { background: none; padding: 0; font-size: inherit; }

/* Colophon et boutons de passage d'une page à l'autre. */
.colophon {
  padding: 1.5rem var(--gouttiere); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
}
.colophon-texte { max-width: var(--lecture); font-size: .9rem; color: var(--muted); }
.colophon-texte p + p { margin-top: .6rem; }
.colophon-ia { font-style: italic; }
.pager { display: flex; flex-wrap: wrap; gap: .625rem; }
.btn-red { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

@media (min-width: 48em) {
  .masthead { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-top: 2.5rem; }
  .colophon { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

@media print {
  .site-nav, .site-foot, .pager, .spiral { display: none; }
  .site { background-image: none; border: 0; }
}

/* ====================================================================================
   Le renouveau du 2026-11-15. Dans un calepin de reporter, la marge travaille : on y
   note la date, la source et le doute. Ici aussi. Et tout ce qui est montré porte un
   tampon d'état.
   ==================================================================================== */

/* ---------- Le bloc sténo se feuillette vers le haut ---------- */
/* Transition entre deux pages, sans JavaScript. Les navigateurs qui ne la connaissent pas
   changent de page comme avant. Coupée pour qui a demandé moins de mouvement. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 200ms ease-in both feuille-part; }
  ::view-transition-new(root) { animation: 280ms ease-out both feuille-arrive; }
}
@keyframes feuille-part { to { opacity: 0; transform: translateY(-1.25rem); } }
@keyframes feuille-arrive { from { opacity: 0; transform: translateY(1.25rem); } }

/* ---------- La marge qui travaille ---------- */
:root { --marge: .5rem; }
.main.marges { margin-left: var(--marge); }
.marge {
  display: block; margin-bottom: .3rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.marge a { color: inherit; }
/* Une note à la main : réservée aux annotations courtes, jamais au texte courant. */
.marge.plume {
  font-family: var(--hand); font-size: 1.3rem; line-height: 1.05;
  letter-spacing: 0; text-transform: none; color: var(--margin);
}
@media (min-width: 38em) { :root { --marge: 1.375rem; } }
@media (min-width: 62em) {
  :root { --marge: 8.5rem; }
  .wrap.large { max-width: 74rem; }
  .a-marge { position: relative; }
  .a-marge > .marge {
    position: absolute; top: .15rem; margin: 0;
    right: calc(100% + var(--retrait, var(--gouttiere)) + .875rem);
    width: calc(var(--marge) - 1.5rem); text-align: right;
  }
  .a-marge > .marge.plume { top: -.1rem; transform: rotate(-4deg); transform-origin: right center; }
}

/* ---------- Tampons d'état ---------- */
.tampon {
  display: inline-block; flex-shrink: 0;
  font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  padding: .12em .5em; border: 2px solid currentColor; border-radius: 3px;
  color: var(--live); transform: rotate(-2.5deg);
}
.tampon.essai { color: var(--soon); transform: rotate(2deg); }
.tampon.pause, .tampon.attente { color: var(--muted); transform: rotate(-1deg); }

/* ---------- Accroche : entrée en scène, trait de stylo ---------- */
.hero .signature { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); }
.hero .signature a { color: var(--ink); }
.souligne { position: relative; white-space: nowrap; }
.souligne svg { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .5em; overflow: visible; }
.souligne path {
  fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .entre { animation: entre .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .souligne path { animation: trace .8s .75s ease-out both; }
}
@keyframes entre { from { opacity: 0; transform: translateY(.6rem); } }
@keyframes trace { from { stroke-dashoffset: 340; } }

.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: end; }
@media (min-width: 52em) { .duo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; } }

/* La fiche chiffrée accepte un tampon en guise de valeur. */
.press-stat .tampon { font-size: .7rem; }
.press-stat:has(.tampon) { align-items: center; }
.press-card.sans-titre::before { content: none; }
.press-card h3 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); margin-bottom: .25rem;
}

/* ---------- Le radar du jour, sur l'accueil ---------- */
.du-jour { border: 2px solid var(--ink); background: var(--sheet); }
.du-jour-tete {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .875rem;
  padding: .75rem .875rem; border-bottom: 1px solid var(--rule);
}
.du-jour-tete h2 { font-size: 1.3rem; font-stretch: 72%; font-weight: 800; text-transform: uppercase; margin-right: auto; }
.du-jour ol { list-style: none; margin: 0; padding: 0; counter-reset: breve; }
.du-jour li { counter-increment: breve; border-bottom: 1px solid var(--rule); }
.du-jour li a {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .625rem; align-items: baseline;
  padding: .6rem .875rem; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 86%; font-weight: 600; font-size: 1.05rem; line-height: 1.25;
}
.du-jour li a::before {
  content: counter(breve, decimal-leading-zero);
  font-stretch: 62%; font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--margin);
}
.du-jour li a:hover { background: var(--pen-soft); }
.du-jour .analyse-du-jour { padding: .75rem .875rem; display: grid; gap: .25rem; }
.du-jour .analyse-du-jour a { color: var(--ink); font-family: var(--display); font-stretch: 86%; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }

/* ---------- La règle du calepin : quatre engagements, à l'encre ---------- */
.regle { padding: 2rem var(--gouttiere); display: grid; gap: 1.5rem; margin-inline: var(--gouttiere); }
/* Le titre au-dessus, les quatre engagements sur toute la largeur. */
.regle.story { grid-template-columns: minmax(0, 1fr); }
.regle-tete { display: grid; gap: .4rem; }
.regle h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); font-stretch: 74%; font-weight: 800; text-transform: uppercase; }
.regle ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.regle li { display: grid; gap: .3rem; align-content: start; padding-top: .75rem; border-top: 2px solid var(--margin); }
.regle strong { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.regle li span { font-size: .95rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 38em) { .regle ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .regle ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Entrées datées : journal, parcours, ratés ---------- */
.entrees { list-style: none; margin: 0; padding: 0; display: grid; }
.entrees > li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .3rem; max-width: calc(var(--lecture) + 4rem); }
.entrees > li:first-child { padding-top: 0; }
.entrees > li:last-child { border-bottom: 0; }
.entrees h3 { font-size: 1.2rem; font-stretch: 84%; font-weight: 700; line-height: 1.2; }
.entrees .ou { font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); }
.entrees p { font-size: .98rem; }
.entrees .lecon { border-left: 3px solid var(--margin); padding-left: .75rem; font-size: .95rem; }
.entrees .lecon b {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--margin); font-weight: 600;
}
.ligne-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.ligne-titre h3 { margin-right: auto; }

/* ---------- Deux colonnes franches : ce que je confie, ce que je garde ---------- */
.franc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.franc > div { border: 1px solid var(--rule); background: var(--paper); padding: .875rem; display: grid; gap: .5rem; align-content: start; }
.franc h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.franc .oui h3 { color: var(--live); }
.franc .non h3 { color: var(--margin); }
.franc ul { margin: 0; padding-left: 1.1em; display: grid; gap: .4rem; font-size: .98rem; }
@media (min-width: 48em) { .franc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Étiquettes de métier ---------- */
.metier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.metier h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.metier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.metier li { font-family: var(--mono); font-size: .76rem; padding: .15rem .5rem; border: 1px solid var(--rule); background: var(--sheet); }
@media (min-width: 48em) { .metier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Certificat ---------- */
.certificat { border: 2px solid var(--ink); background: var(--sheet); padding: 1rem; display: grid; gap: .5rem; max-width: 48rem; }
.certificat h3 { font-size: 1.3rem; font-stretch: 80%; font-weight: 800; line-height: 1.15; }
.certificat .ou { font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); }
.certificat .note { font-family: var(--display); font-stretch: 62%; font-weight: 800; font-size: 2.4rem; line-height: .9; color: var(--margin); font-variant-numeric: tabular-nums; }
.certificat .ligne-titre { align-items: flex-start; }

/* ---------- Le plan de l'atelier : cinq postes, de l'entrée à la sortie ---------- */
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 2px solid var(--ink); background: var(--sheet); }
.plan li { padding: .875rem .75rem; border-bottom: 1px solid var(--rule); display: grid; gap: .25rem; align-content: start; }
.plan li:last-child { border-bottom: 0; }
.plan strong { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.plan strong::after { content: " ↓"; color: var(--margin); }
.plan li:last-child strong::after { content: none; }
.plan span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.block > p.plan-socle { max-width: none; }
.plan-socle { border: 1px solid var(--rule); border-top: 0; background: var(--paper); padding: .75rem; font-size: .95rem; margin-top: -1rem; }
.plan-socle b { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pen); font-weight: 600; }
@media (min-width: 52em) {
  .plan { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plan li { border-bottom: 0; border-right: 1px solid var(--rule); }
  .plan li:last-child { border-right: 0; }
  .plan strong::after { content: " →"; }
}

/* ---------- L'équipe d'agents, les règles de travail ---------- */
.equipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.equipe li { border: 1px solid var(--rule); background: var(--paper); padding: .75rem .875rem; display: grid; gap: .25rem; align-content: start; }
.equipe .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pen); }
.equipe strong { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.equipe .quoi { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.equipe.methodes li { border: 0; border-top: 2px solid var(--margin); background: none; padding: .75rem 0 0; }
@media (min-width: 38em) { .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .equipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Retours d'expérience : le correctif, puis le conseil au lecteur ---------- */
.entrees .pour-toi { border-left: 3px solid var(--pen); padding-left: .75rem; font-size: .95rem; }
.entrees .pour-toi b {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pen); font-weight: 600;
}


/* Un bloc encré qui ferme la page garde un peu d'air sous lui. */
.main > .inscription:last-child { margin-bottom: 1.875rem; }

/* ---------- La lettre : formulaire d'inscription ---------- */
.inscription form { display: grid; gap: .6rem; max-width: 30rem; }
.inscription label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.inscription input[type="email"] {
  width: 100%; font: inherit; font-size: 1rem; padding: .6rem .75rem;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 0;
}
.inscription input[type="email"]:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; border-color: var(--pen); }
.inscription .petit { font-size: .85rem; color: var(--muted); }
.inscription .petit a { color: inherit; }
.inscription .erreur { font-size: .9rem; color: var(--margin); }
.inscription button[disabled] { opacity: .6; cursor: progress; }
/* Le piège à robots : un champ que seuls les robots remplissent. */
.inscription .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Le récépissé ---------- */
.recepisse {
  margin: 2.5rem var(--gouttiere); max-width: 30rem; padding: 1.5rem 1.25rem; position: relative;
  background: var(--paper); border: 1.5px dashed var(--muted); display: grid; gap: .875rem;
  transform: rotate(-.6deg);
}
.recepisse h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); font-stretch: 68%; font-weight: 800; text-transform: uppercase; line-height: .95; }
.recepisse .tampon { position: absolute; right: 1rem; top: 1rem; font-size: 1rem; transform: rotate(8deg); }
.recepisse dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; font-family: var(--mono); font-size: .8rem; }
.recepisse dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.recepisse dd { margin: 0; }
.recepisse .plume { font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; color: var(--pen); }
.recepisse .attention { border-left: 3px solid var(--pen); padding-left: .75rem; }
.recepisse .attention b { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pen); font-weight: 600; }
