/* Ichor, la une refaite le 29/09/2026 (version 9, après quatre juges neufs). Styles écrits de zéro : une page produit (titres
   courts et massifs, un visuel par idée, des cartes), dans l'esprit d'Apple, sans rien lui emprunter. Aucune norme ni
   gabarit extérieur. Mouvement : transform et opacity seulement ; tout se fige en image finale si le lecteur a réduit le
   mouvement, et aucun délai d'entrée ne survit à l'entrée (classe `pose`). */

/* ---------- Jetons ---------- */
:root {
  color-scheme: light dark;
  --papier: #ffffff;
  --papier-2: #f5f5f7;
  --carte: #ffffff;
  --encre: #1d1d1f;
  --encre-2: #6e6e73;
  --trait: #d2d2d7;
  --trait-2: #e8e8ed;
  --voile: rgba(0, 0, 0, .04);
  --action: #0066cc;
  --hausse: #0f7b80;
  --hausse-mot: #0f7b80;
  --baisse: #d55e00;
  --baisse-mot: #b34700;
  --rien: #6e6e73;
  --zone: rgba(29, 29, 31, .10);
  --film: #000000;
  --film-carte: #1c1c1e;
  --film-carte-2: #2c2c2e;
  --hero: #000000;
  --film-encre: #f5f5f7;
  --film-encre-2: #a1a1a6;
  --film-trait: #424245;
  /* Les familles de futurs, v10 : deux familles à deux intensités, le bleu pour le calme (foncé, clair), le rose pour le
     danger (clair pour la secousse, soutenu pour le choc). validate_palette.js (skill dataviz), 29/09, fond #000000, toutes
     paires : séparation daltonienne ΔE 9,7 au pire (bleu foncé contre rose soutenu), vision normale ΔE 20,0 au pire,
     contraste 3:1 et plus. La bande de clarté et le plancher de chroma échouent exprès : ce sont deux rampes, pas huit
     teintes. L'orange est gardé pour la baisse seule (juge premium, tour 2 : baisse et secousse avaient la même teinte).
     Le gris de l'imprévu porte une trame en plus de sa couleur (seul, il se confond avec le rose chez un deutéranope). */
  --f-calme: #1c5cab;
  --f-calme2: #6da7ec;
  --f-secousse: #f7b8d3;
  --f-choc: #c93a74;
  --f-residuelle: #8e8e93;
  --rayon: 28px;
  --rayon-2: 18px;
  --rayon-3: 12px;
  --courbe: cubic-bezier(.25, .1, .25, 1);
  --ressort: cubic-bezier(.2, .8, .2, 1);
  --police: "Ichor", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --marge: max(22px, env(safe-area-inset-left));
  --largeur: 1080px;
  --barre: 52px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #000000;
    --papier-2: #101012;
    --carte: #1c1c1e;
    --encre: #f5f5f7;
    --encre-2: #a1a1a6;
    --trait: #424245;
    --trait-2: #2c2c2e;
    --voile: rgba(255, 255, 255, .06);
    --action: #2997ff;
    --hausse: #3fc7c0;
    --hausse-mot: #3fc7c0;
    --baisse: #ff7a45;
    --baisse-mot: #ff7a45;
    --rien: #a1a1a6;
    --zone: rgba(245, 245, 247, .14);
    /* en sombre, les chapitres alternent : le papier passe au gris très sombre et le film des futurs reste noir, où son bleu
       foncé garde 3,1:1 (sur #1d1d1f, il tombait à 2,5:1 : validate_palette.js, 29/09) */
    --film: #000000;
    --film-carte: #1c1c1e;
    --film-carte-2: #2c2c2e;
    --hero: #111113;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--barre) + 16px); }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.47 var(--police); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "calt";
}
p, h1, h2, h3, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 8px; }
.evitement { position: absolute; left: -9999px; top: 0; }
.evitement:focus { left: 12px; top: 12px; z-index: 100; background: var(--papier); padding: 10px 14px; border-radius: 10px; }
.cadre { max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- Barre ---------- */
.barre {
  position: sticky; top: 0; z-index: 50; min-height: var(--barre); container: barre / inline-size;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--marge);
  background: color-mix(in srgb, var(--papier) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--encre) 9%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .barre { background: var(--papier); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nom-ichor { color: var(--encre); font-weight: 700; font-size: 20px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; }
.nom-ichor:hover { text-decoration: none; }
.nom-semaine { font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--encre-2); white-space: normal; display: inline-block; }
/* v20 D68 : à 320, la semaine et ses dates tiennent sur deux lignes courtes au lieu de disparaître. 30/09 (banc des écrans sur
   la fusion v20) : AVANT 12 px sous 360 px (sous le plancher de 13 px, 110 fautes : chaque page à 320 dans les deux thèmes) et
   aucun retour à la ligne permis (débordement horizontal de toutes les pages à 390 avec le texte à 200 %) ; APRÈS 13 px, et
   un retour permis ENTRE « semaine 40 » et les dates, jamais à l'intérieur de l'un ou de l'autre */
.nom-ichor { min-width: 0; }
/* v21 V05 : en boîte flexible, l’espace avant le point était avalée (« semaine 40· du ») et le texte lu se coupait en deux
   lignes ; en ligne, « semaine 40 · » reste d’un bloc (espace insécable avant le point) et les dates passent à la ligne
   d’un bloc après lui */
.nom-semaine { min-width: 0; }
.nom-semaine-num { white-space: nowrap; }
.nom-semaine-dates { white-space: normal; display: inline-block; }  /* à 200 %, les dates passent à la ligne entre elles ; chacune reste insécable */
@media (max-width: 359px) { .nom-semaine { line-height: 1.2; } .nom-semaine-dates { display: block; } .nom-semaine-sep { display: none; } }
.barre-liens { display: none; margin-left: auto; gap: 22px; }
/* inline-block, pas inline-flex : un lien flex avale l'espace entre ses morceaux (« Les29valeurs », capture du 29/09) */
.barre-liens a { color: var(--encre); font-size: 13px; opacity: .78; letter-spacing: 0; min-height: 44px; display: inline-block; padding: 1em 0; line-height: 1.4; white-space: nowrap; }
.barre-liens a:hover { opacity: 1; text-decoration: none; }
.barre-liens a[aria-current] { opacity: 1; font-weight: 600; }
.menu { margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: flex-end;
  font-size: 15px; font-weight: 600; color: var(--action);
}
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-fermer, .menu[open] .menu-ouvrir { display: none; }
.menu[open] .menu-fermer { display: inline; }
.menu .feuille {
  position: fixed; left: 0; right: 0; top: var(--barre); max-height: calc(100dvh - var(--barre)); overflow: auto;
  background: var(--papier); padding: 8px var(--marge) 28px; box-shadow: 0 28px 48px rgba(0, 0, 0, .18);
  border-radius: 0 0 var(--rayon) var(--rayon);
}
.menu-liste a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--trait-2); color: var(--encre); }
.menu-liste li:last-child a { border-bottom: 0; }
.menu-liste a:hover { text-decoration: none; }
.menu-liste a[aria-current] .menu-nom { color: var(--action); }
.menu-nom { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.menu-dit { font-size: 14px; color: var(--encre-2); letter-spacing: 0; }
@container barre (min-width: 62em) { .barre-liens { display: flex; gap: 18px; } .menu { display: none; } }

/* ---------- Titres et textes ---------- */
/* Hiérarchie (juges perception et premium, 29/09) : le titre de la page reste au moins 1,2 fois plus grand que ceux des
   chapitres, à toutes les largeurs. */
.sourcil { font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--encre-2); margin-bottom: 10px; }
.titre-une {
  font-size: clamp(34px, 9.6vw, 80px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance; max-width: 18ch;
}
.titre-une.longue { font-size: clamp(32px, 8.8vw, 68px); max-width: 22ch; }
.titre-une .t2, .titre-chapitre .t2 { color: var(--encre-2); display: block; margin-top: .16em; }
@media (max-width: 767px) {
  .titre-une { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.2; }
  .titre-une.longue { font-size: clamp(32px, 8.8vw, 40px); line-height: 1.2; max-width: none; }
  .titre-une.longue .t2 { display: inline; margin: 0; font-size: .8em; }  /* 04/10 (C1) : sans césure, la phrase de S41 tenait sur 4 lignes à 390 ; la suite grise en 0,8 em la ramène à 3 (mesuré à 320 et 390) */
}
.titre-chapitre { font-size: clamp(28px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; max-width: 22ch; }
.chapeau { margin-top: 18px; font-size: clamp(19px, 1.9vw, 21px); line-height: 1.42; letter-spacing: -.016em; color: var(--encre-2); max-width: 40ch; text-wrap: pretty; }
.chapitre-tete { margin-bottom: 24px; }
.lien-fleche { display: inline-block; padding: .6em 0; line-height: 1.4; min-height: 44px; font-size: 17px; font-weight: 500; color: var(--action); letter-spacing: -.01em; }
.premiere-visite { margin-top: 14px; }
.edition-passee { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--rayon-3); background: var(--papier-2); font-size: 15px; color: var(--encre); }
.edition-passee .lien-fleche { font-size: 15px; padding: 0 0 0 6px; min-height: 0; }

/* ---------- Chapitres ---------- */
.chapitre { padding: 48px 0; }
@media (min-width: 1024px) { .chapitre { padding: 100px 0; } }
.papier { background: var(--papier); }
@media (prefers-color-scheme: dark) { .papier { background: var(--papier-2); } .papier .carte { background: var(--carte); } .papier .schema-lire { background: var(--carte); } }
.papier-2 { background: var(--papier-2); }
.film { background: var(--film); color: var(--film-encre); }
/* 29/09 (v19, C25) : le film et la carte du rendez-vous sont sombres dans les DEUX thèmes ; leurs marques de sens prennent les
   jetons du thème sombre. En clair, elles gardaient ceux du papier blanc : sur noir, #0f7b80 donnait 4,17:1, #b34700 3,82:1,
   #6e6e73 4,14:1, sous 4,5:1 pour un texte (calcul WCAG du 29/09) ; les valeurs sombres donnent 8,12 à 10,14:1 */
.film, .film-carte { --hausse: #3fc7c0; --hausse-mot: #3fc7c0; --baisse: #ff7a45; --baisse-mot: #ff7a45; --rien: #a1a1a6; }
/* 04/10 (C1, besoins des chantiers 1 et 6) : sur le film, le bleu d'un lien et de la distance réglée au levier est celui du
   thème sombre (#0066cc sur noir tombe sous 4,5 pour 1) ; une feuille ouverte depuis le film reste blanche, avec son bleu */
.film .lien-fleche, .film-carte .lien-fleche, .film .lv-valeur, .film-carte .lv-valeur { color: #2997ff; }
.film .feuille .lien-fleche { color: var(--action); }
.film .sourcil, .film .chapeau, .film .titre-chapitre .t2 { color: var(--film-encre-2); }
.carte { background: var(--papier-2); border-radius: var(--rayon); }
.papier-2 .carte { background: var(--carte); }

/* ---------- Le mot défini (lexique) ---------- */
.mot {
  background: none; border: 0; padding: 12px 4px; margin: -12px -4px; cursor: pointer; color: inherit; font: inherit;
  min-height: 44px; /* v22 CO12 : la cible de 44 px vient du rembourrage, plus d'une largeur minimale (deux blancs autour des mots courts) */
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
.mot:hover { text-decoration-color: currentColor; }

/* ---------- 1. Ouverture ---------- */
.ouverture { padding: 32px 0 40px; }
@media (min-width: 768px) { .ouverture { padding: 64px 0 56px; } }
@media (min-width: 1024px) { .ouverture { padding: 88px 0 44px; } }
.ouverture .sourcil { margin-bottom: 12px; }
.film-carte {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 30px;
  background: var(--hero); color: var(--film-encre); border-radius: var(--rayon);
  padding: 26px 20px 18px;
}
/* 04/10 (C1, audit A3 §5.1) : en sombre, la carte du rendez-vous était un gris presque noir sur le noir de la page, bordée
   d'un trait de 1 px : elle se perdait. Elle prend une élévation : une surface plus claire en haut, un bord clair, un liseré
   de lumière sur son arête haute. Ses textes restent ceux du film (#f5f5f7, #a1a1a6 : 7 pour 1 et plus sur #1d1d20). */
@media (prefers-color-scheme: dark) {
  .film-carte { background: linear-gradient(180deg, #1d1d20 0%, #121214 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 6px rgba(255, 255, 255, .03); }
}
@media (min-width: 768px) { .film-carte { margin-top: 44px; padding: 40px 44px 28px; } }
.film-haut { display: grid; gap: 28px; }
@media (min-width: 900px) { .film-haut { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: start; gap: 48px; } }
.film-sourcil { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--film-encre-2); }
.dans:empty { display: none; }
.dans { font-size: 13px; font-weight: 600; letter-spacing: 0; color: #fff; background: #3a3a3c; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex: none; }  /* 04/10 (C1, besoin 7) : « dans 3 jours » d'un seul tenant */
.film-jour { margin-top: 10px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
/* l'heure, pleine, sans dégradé de texte (juge vérité, 29/09). Elle peut passer à la ligne après « h », et seulement là
   (le balisage y place une coupure permise, les autres espaces sont insécables) : à 200 % de texte sur un téléphone, « 14 h 30 »
   sur une ligne mesurerait environ 354 px pour 306 px de place ; se replier plutôt que déborder (WCAG 1.4.4). */
.film-heure { font-size: clamp(48px, 13vw, 100px); line-height: 1; font-weight: 700; letter-spacing: -.05em; margin: .14em 0 .12em; color: #f5f5f7; }
.film-quoi { font-size: clamp(19px, 2vw, 24px); font-weight: 500; letter-spacing: -.018em; color: var(--film-encre); }
.film-premier { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--film-encre-2); max-width: 46ch; }
.k-premier { flex: none; display: inline-block; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2.5px solid #ffd60a; }
.k-decisif { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.k-maintenant { flex: none; display: inline-block; width: 3px; height: 12px; border-radius: 1px; background: #ff453a; }
/* ce qui peut se passer au rendez-vous */
.eventail { padding: 22px 20px 20px; border-radius: var(--rayon-2); background: #1c1c1e; container: eventail / inline-size; }
/* 13 em de contenu : 221 px à 100 % (le téléphone de 390 en a 266, il garde la disposition large), 442 px à 200 % */
@container eventail (max-width: 13em) {
  .ev-issue { grid-template-columns: 10px minmax(0, 1fr); }
  .ev-p { grid-column: 2; width: auto; }
  .ev-texte { grid-column: 1 / -1; }
}
@media (prefers-color-scheme: dark) { .eventail { background: #2a2a2d; } }  /* 04/10 : distinct de la carte, plus claire en sombre */
.ev-titre { font-size: 15px; font-weight: 600; color: var(--film-encre); letter-spacing: -.01em; margin-bottom: 12px; }
.ev-barre { display: flex; gap: 3px; height: 10px; margin-bottom: 16px; }
.ev-part { border-radius: 5px; }
.ev-0, .ev-cle.ev-0 { background: #f5f5f7; }
.ev-1, .ev-cle.ev-1 { background: rgba(245, 245, 247, .62); }
.ev-2, .ev-cle.ev-2 { background: rgba(245, 245, 247, .36); }
.ev-3 { background: rgba(245, 245, 247, .16); }
.ev-issues { display: grid; gap: 4px; }
.ev-issue { width: 100%; display: grid; grid-template-columns: 10px auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 10px; margin: 0 -10px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--courbe), opacity .2s var(--courbe); }
.ev-issue:hover { background: rgba(255, 255, 255, .06); }
.ev-issue[aria-pressed="true"] { background: rgba(255, 255, 255, .1); }
.eventail.choisi .ev-issue[aria-pressed="false"] { opacity: .45; }
.eventail.choisi .ev-part { opacity: .25; transition: opacity .2s var(--courbe); }
.eventail.choisi .ev-part.choisie { opacity: 1; }
.ev-cle { width: 10px; height: 10px; border-radius: 3px; margin-top: 7px; }
.ev-p { width: 1.25em; font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ev-texte { display: grid; gap: 2px; }
.ev-nom { font-size: 15px; line-height: 1.35; color: var(--film-encre); }
.ev-reac { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.eventail .sens-hausse { color: #3fc7c0; }
.eventail .sens-baisse { color: #ff7a45; }
.eventail .sens-rien { color: var(--film-encre-2); }
.eventail .sens-inconnu { color: var(--film-encre-2); }
.ev-dit { margin-top: 14px; font-size: 13px; color: var(--film-encre-2); letter-spacing: 0; }
.film-bas { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 13px; color: var(--film-encre-2); letter-spacing: 0; }
.ps-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ps-legende li { display: inline-flex; align-items: center; gap: 7px; }
.ps-legende .ps-evt { position: static; transform: none; flex: none; }

/* La semaine sur la carte du rendez-vous (04/10, C1) : la langue de la page de la semaine (`page_semaine.frise`), en court et
   immobile. Cinq jours côte à côte ; un point par rendez-vous (gros : un impact fort pour les calendriers) ; une épingle par
   moment (jaune le premier test, blanche le test décisif) ; dessous, la capsule de chaque moment, nommée par son titre court,
   qui mène à sa page. AVANT : deux étiquettes posées au-dessus et au-dessous de la bande (6,4 em et 4 em de marge, environ
   140 px au téléphone) et une cascade de points animée ; les capsules disent l'heure et le nom de chaque moment. */
.piste-semaine { margin-top: 22px; font-size: 13px; }
.ps-cadre { position: relative; }
.ps-jours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.ps-jour { display: grid; line-height: 1.2; font-size: 13px; color: var(--film-encre-2); letter-spacing: 0; min-width: 0; }
.ps-jour-num { color: var(--film-encre); font-weight: 600; }
/* sous 480 px, l'initiale du jour, comme les calendriers en français (à 200 % de texte, « mar. » touchait « mer. ») */
.ps-jour-court { display: none; }
@media (max-width: 479px) { .ps-jour-long { display: none; } .ps-jour-court { display: inline; } }
.ps-rail {
  position: relative; height: 60px; border-radius: 14px;
  background:
    linear-gradient(90deg, transparent calc(20% - 2px), var(--hero) calc(20% - 2px), var(--hero) calc(20% + 2px), transparent calc(20% + 2px),
      transparent calc(40% - 2px), var(--hero) calc(40% - 2px), var(--hero) calc(40% + 2px), transparent calc(40% + 2px),
      transparent calc(60% - 2px), var(--hero) calc(60% - 2px), var(--hero) calc(60% + 2px), transparent calc(60% + 2px),
      transparent calc(80% - 2px), var(--hero) calc(80% - 2px), var(--hero) calc(80% + 2px), transparent calc(80% + 2px)),
    #1c1c1e;
}
@media (prefers-color-scheme: dark) { .ps-rail { background-color: #2a2a2d; } }
.ps-passe { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 14px 0 0 14px; background: rgba(0, 0, 0, .45); pointer-events: none; z-index: 0; }
.ps-evt {
  position: absolute; z-index: 2; left: var(--t); bottom: calc(8px + var(--v) * 11px); transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 245, 247, .5);
}
.ps-fort { width: 10px; height: 10px; background: #f5f5f7; }
.ps-pin { position: absolute; z-index: 1; left: var(--t); top: 13px; bottom: 5px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(245, 245, 247, .3); }
.ps-pin::before { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--film-encre-2); }
.ps-pin-decisif { background: rgba(255, 255, 255, .7); }
.ps-pin-decisif::before { top: -8px; width: 15px; height: 15px; margin-left: -7.5px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.ps-pin-premier { background: rgba(255, 214, 10, .7); }
.ps-pin-premier::before { top: -7px; width: 13px; height: 13px; margin-left: -6.5px; background: #1c1c1e; box-shadow: inset 0 0 0 2.5px #ffd60a; }
.ps-maintenant { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--t); width: 2px; margin-left: -1px; background: #ff453a; border-radius: 1px; }
/* les capsules des moments : deux colonnes au téléphone, autant qu'il en tient au-delà */
.ps-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5em), 1fr)); gap: 8px; margin-top: 14px; }
.ps-caps li { display: flex; min-width: 0; }
.ps-cap {
  flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding: 7px 10px 7px 12px; border-radius: 14px;
  background: #2c2c2e; color: var(--film-encre); font-size: 13px; line-height: 1.3; letter-spacing: 0; transition: background-color .2s var(--courbe);
}
.ps-cap:hover { background: #3a3a3c; text-decoration: none; }
.ps-cap:focus-visible { outline: 3px solid #2997ff; outline-offset: 2px; }
.ps-cap-point { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--film-encre-2); }
.ps-cap-texte { flex: 1; display: grid; min-width: 0; }
.ps-cap-quand { font-weight: 650; color: var(--film-encre-2); }
.ps-cap-titre { overflow-wrap: anywhere; }
.ps-cap-fleche { flex: none; font-size: 17px; line-height: 1; color: var(--film-encre-2); }
.ps-cap-decisif { background: #f5f5f7; color: #000; }
.ps-cap-decisif:hover { background: #fff; }
.ps-cap-decisif .ps-cap-point { width: 11px; height: 11px; background: #000; }
.ps-cap-decisif .ps-cap-quand, .ps-cap-decisif .ps-cap-fleche { color: #3a3a3c; }
.ps-cap-premier { box-shadow: inset 0 0 0 1.5px #ffd60a; }
.ps-cap-premier .ps-cap-point { width: 11px; height: 11px; background: transparent; box-shadow: inset 0 0 0 2.5px #ffd60a; }
/* la version miniature (tuile « La semaine ») */
.ps-mini .ps-rail { height: 46px; background:
    linear-gradient(90deg, transparent calc(20% - 2px), var(--carte) calc(20% - 2px), var(--carte) calc(20% + 2px), transparent calc(20% + 2px),
      transparent calc(40% - 2px), var(--carte) calc(40% - 2px), var(--carte) calc(40% + 2px), transparent calc(40% + 2px),
      transparent calc(60% - 2px), var(--carte) calc(60% - 2px), var(--carte) calc(60% + 2px), transparent calc(60% + 2px),
      transparent calc(80% - 2px), var(--carte) calc(80% - 2px), var(--carte) calc(80% + 2px), transparent calc(80% + 2px)),
    var(--papier-2); }
.ps-mini .ps-evt { background: color-mix(in srgb, var(--encre) 45%, transparent); bottom: calc(8px + var(--v) * 9px); width: 6px; height: 6px; }
.ps-mini .ps-fort { background: var(--encre); width: 8px; height: 8px; }
.ps-mini .ps-jour { color: var(--encre-2); }
.ps-mini .ps-jour-num { color: var(--encre); }
.ps-mini .ps-passe { background: color-mix(in srgb, var(--papier) 50%, transparent); }

/* ---------- 2. Les huit monnaies ---------- */
.balance-grille { display: grid; gap: 24px; align-items: start; }
.balance-carte { max-width: 760px; }
@media (min-width: 1200px) { .balance-grille { grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 32px; } }
.balance-carte { padding: 16px 8px 16px; container: balance / inline-size; }
@media (min-width: 768px) { .balance-carte { padding: 30px 20px 26px; } }
.carte-dit { font-size: 15px; color: var(--encre-2); padding: 0 10px 10px; letter-spacing: -.005em; max-width: 60ch; }
.rangees { display: grid; gap: 2px; }
/* 04/10 (C1, audit A3 §5.1 et §6.1) : la piste de chaque monnaie a sa propre ligne, de bord à bord de la carte, à toutes les
   largeurs. AVANT : à 390, la piste tenait la colonne du milieu, environ 150 px, et l'écart du yen 54 au dollar australien 44
   tenait en quelques dizaines de pixels ; à 1 440, environ un quart de la carte. APRÈS : au-dessus de la piste, le nom, le
   code et le sens à gauche, le nombre à droite ; la piste dessous, sur toute la largeur (mesures au rapport C1). La page des
   devises garde son nombre et son sens à droite (`.lecture .sens`, replié sous le nombre). */
.rangee {
  width: 100%; display: grid; align-items: center; column-gap: 12px; row-gap: 6px;
  grid-template-columns: 2.1em minmax(0, 1fr) auto .8em; grid-template-areas: "plaque nom lecture chevron" "piste piste piste piste";
  min-height: 58px; padding: 10px .6em 12px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .2s var(--courbe);
}
.rangee .plaque { min-width: 2.25em; min-height: 2.25em; border-radius: 10px; font-size: 14px; }
.rangee .lecture { max-width: 7.4em; }
.rangee .lecture .sens { white-space: normal; text-align: end; }
.identite .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
/* trois étages quand la carte fait moins de 17 em de contenu : à 200 % de texte sur un téléphone, jamais à 100 % */
@container balance (max-width: 17em) {
  .rangee { grid-template-columns: 2.1em minmax(0, 1fr) .8em; grid-template-areas: "plaque nom chevron" "lecture lecture lecture" "piste piste piste"; }
  .rangee .lecture { max-width: none; justify-items: start; }
  .rangee .lecture .sens { text-align: start; }
  .identite .meta .sens { white-space: normal; }  /* à 200 %, le sens passe à la ligne au lieu de couvrir le chevron (banc des écrans, 04/10) */
}
@container balance (min-width: 40em) {
  .rangee { column-gap: 16px; padding: 12px .8em 14px; }
  .rangee .plaque { font-size: 15px; }
}
.rangee:hover { background: var(--voile); }
.rangee:active { transform: scale(.995); }
.plaque {
  grid-area: plaque; min-width: 38px; min-height: 38px; padding: 0 .25em; border-radius: 11px; display: grid; place-items: center;
  background: var(--papier); color: var(--encre); font-size: 15px; font-weight: 650; letter-spacing: -.02em;
  box-shadow: 0 0 0 1px var(--trait-2) inset; white-space: nowrap;
}
.papier-2 .plaque, .feuille .plaque { background: var(--papier-2); }
.identite { grid-area: nom; display: grid; line-height: 1.2; min-width: 0; }
.nom-devise { font-size: 17px; font-weight: 600; letter-spacing: -.018em; overflow-wrap: break-word; hyphens: manual; }
.code { font-size: 13px; color: var(--encre-2); letter-spacing: .01em; font-weight: 500; }
.lecture { grid-area: lecture; display: grid; justify-items: end; align-content: center; line-height: 1.25; min-width: 0; }
.proba { font-size: 22px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 720px) { .proba { font-size: 24px; } }
.sens { font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.sens-baisse { color: var(--baisse-mot); }
.sens-hausse { color: var(--hausse-mot); }
.sens-rien { color: var(--encre-2); font-weight: 500; }
.chevron { grid-area: chevron; color: var(--encre-2); font-size: 22px; line-height: 1; justify-self: end; }
.piste { grid-area: piste; position: relative; height: 28px; }
/* la règle : un rail, et une graduation à chaque dixième de l'échelle (tous les 5 points de 25 à 75 : les deux du milieu
   bordent la bande grise). Aucun nombre : les bornes sont écrites une fois, sous les rangées. */
.piste::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--trait-2), var(--trait-2)) 0 50% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--trait) 0 1px, transparent 1px 10%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, transparent calc(100% - 1px), var(--trait) calc(100% - 1px)) 0 0 / 100% 100% no-repeat;
}
.zone { position: absolute; left: var(--g); width: var(--l); top: 50%; height: 18px; margin-top: -9px; border-radius: 9px; background: var(--zone); }
.trait { position: absolute; left: var(--x); top: 1px; bottom: 1px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--encre-2); }
.segment { position: absolute; left: var(--g); width: var(--l); top: 50%; height: 5px; margin-top: -2.5px; border-radius: 2.5px; }
.segment-baisse { background: var(--baisse); }
.segment-hausse { background: var(--hausse); }
.segment-rien { background: var(--rien); opacity: .55; }
/* la voie : la piste entière, pour qu'un point se déplace par `transform` (un pourcentage de sa largeur, celle de la piste) */
.voie { position: absolute; inset: 0; pointer-events: none; }
.point { position: absolute; left: var(--x); top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; box-shadow: 0 0 0 3px var(--papier-2); }
.rangee .point { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.papier-2 .point { box-shadow: 0 0 0 3px var(--carte); }
.point-rien { background: var(--rien); }
.point-baisse { background: var(--baisse); }
.point-hausse { background: var(--hausse); }
.point-conteste { background: var(--papier-2); border: 3px solid var(--rien); }
.point-conteste.point-baisse { border-color: var(--baisse); }
.point-conteste.point-hausse { border-color: var(--hausse); }
/* l'échelle : sous les rangées, sur toute la largeur de leurs pistes (04/10, C1 : elles vont de bord à bord) */
.echelle { padding: 2px .6em 0; }
.echelle-piste { display: block; position: relative; height: 20px; font-size: 13px; color: var(--encre-2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.echelle-piste > span { position: absolute; left: var(--x); transform: translateX(-50%); }
.echelle-piste > span:first-child { transform: none; }
.echelle-piste > span:last-child { transform: translateX(-100%); }
@container balance (min-width: 40em) { .echelle { padding: 2px .8em 0; } }
/* « Partir de la base » (D21) : un geste du membre, montré par le script seulement si le mouvement n'est pas réduit */
.base-geste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px .6em 0; }
.bouton-base {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--papier); box-shadow: 0 0 0 1px var(--trait-2); color: var(--action); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .15s var(--courbe), box-shadow .2s var(--courbe);
}
.bouton-base:hover { box-shadow: 0 0 0 1px var(--trait); }
.bouton-base:active { transform: scale(.97); }
.base-dit { flex: 1 1 14em; font-size: 14px; line-height: 1.4; color: var(--encre-2); }
.lire { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 10px 0; margin-top: 12px; border-top: 1px solid var(--trait-2); font-size: 14px; color: var(--encre-2); letter-spacing: -.005em; }
.lire-plus { margin: 4px 10px 0; font-size: 14px; color: var(--encre-2); }
.lire-plus summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--action); }
.lire-plus summary::-webkit-details-marker { display: none; }
.lire-plus summary::after { content: " ›"; white-space: pre; }
.lire-plus[open] summary::after { content: " ⌄"; }
.lire-plus .lire { border-top: 0; padding: 4px 0 0; margin: 0; }
.lire-plus .classement-officiel { margin: 14px 0 0; }
.lire li { display: block; min-width: 0; }
.lire li > span[aria-hidden] { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.lire-trait { width: 2px; height: 16px; border-radius: 1px; background: var(--encre-2); }
.lire-zone { width: 28px; height: 14px; border-radius: 7px; background: var(--zone); }
.lire-point { width: 14px; height: 14px; border-radius: 50%; }
.lire-baisse { background: var(--baisse); }
.lire-hausse { background: var(--hausse); }
.lire-conteste { border: 3px solid var(--rien); }
.classement-officiel { margin: 14px 10px 0; font-size: 14px; line-height: 1.5; color: var(--encre-2); max-width: 70ch; }
.co-titre { display: block; font-weight: 600; color: var(--encre); margin-bottom: 2px; }
/* le schéma « comment lire une rangée », à côté des rangées dès 1024 px */
.schema-lire { display: none; }
@media (min-width: 1200px) {
  .schema-lire { display: grid; gap: 18px; position: sticky; top: calc(var(--barre) + 28px); padding: 30px 28px 28px; border-radius: var(--rayon); background: var(--papier-2); }
}
.schema-titre { font-size: 15px; font-weight: 600; color: var(--encre-2); letter-spacing: -.01em; }
.schema-piste { display: grid; gap: 12px; }
/* hors d'une rangée, la piste n'a pas de zone de grille nommée « piste » : sans ce retour à `auto`, le navigateur créait une
   colonne implicite et le schéma débordait (banc des écrans, 29/09 : 1 108 px pour 1 024) */
.schema-piste .piste { grid-area: auto; }
.schema-lire { min-width: 0; }
.piste-grande { height: 44px; margin-bottom: 6px; }
.piste-grande::before { height: 16px; margin-top: -8px; background-size: 100% 7px, 100% 100%, 100% 100%; }
.piste-grande .zone { height: 26px; margin-top: -13px; border-radius: 13px; }
.piste-grande .segment { height: 6px; margin-top: -3px; border-radius: 3px; }
.piste-grande .point { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.renvoi { display: block; font-size: 15px; line-height: 1.35; color: var(--encre); }
.renvoi i { display: inline-block; vertical-align: middle; margin-right: 10px; }
.renvoi-base i { width: 2px; height: 18px; border-radius: 1px; background: var(--encre-2); margin: 0 22px 0 12px; }
.renvoi-zone i { width: 26px; height: 14px; border-radius: 7px; background: var(--zone); }
.renvoi-point i { width: 16px; height: 16px; border-radius: 50%; background: var(--rien); margin: 0 15px 0 5px; }
.renvoi-conteste i { background: transparent; box-shadow: inset 0 0 0 3px var(--rien); }
.schema-dit { font-size: 15px; line-height: 1.5; color: var(--encre-2); }

/* ---------- Feuilles (fiches, mots) ---------- */
.feuille, .feuille-mot {
  position: fixed; margin: auto; inset: 0; width: min(560px, calc(100vw - 24px)); max-height: min(84dvh, 760px);
  padding: 0; border: 0; border-radius: var(--rayon); background: var(--carte); color: var(--encre);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .28), 0 0 0 1px color-mix(in srgb, var(--encre) 8%, transparent);
  overflow: auto; overscroll-behavior: contain;
}
/* v19 C98 : une feuille ouverte en popover n'est pas modale (le focus et le toucher atteignent la page) : elle ne se peint
   pas modale, aucun voile ni flou derrière elle. */
.feuille::backdrop, .feuille-mot::backdrop { background: transparent; }
@supports not selector(:popover-open) {
  [popover].feuille, [popover].feuille-mot { position: static; inset: auto; width: auto; max-height: none; margin: 16px; box-shadow: none; }
  [popover] .feuille-fermer { display: none; }
}
@media (max-width: 599px) {
  .feuille, .feuille-mot { inset: auto 0 0 0; width: 100%; max-height: 88dvh; border-radius: var(--rayon) var(--rayon) 0 0; }
}
.feuille-tete {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px;
  background: var(--carte);
  border-bottom: 1px solid var(--trait-2);
}
.feuille-titre { font-size: 21px; font-weight: 650; letter-spacing: -.02em; flex: 1; min-width: 0; }
.feuille-fermer {
  flex: none; min-height: 48px; min-width: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--papier-2); color: var(--action);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.feuille-fermer:hover { background: var(--trait-2); }
.feuille-corps { padding: 22px 20px 28px; display: grid; gap: 26px; }
.fd-grand { display: flex; align-items: baseline; gap: 6px; }
.fd-nombre { font-size: 64px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.fd-sur { font-size: 21px; font-weight: 500; color: var(--encre-2); }
.fd-dit { margin-top: 8px; font-size: 17px; color: var(--encre-2); }
.fd-dit .sens { margin-left: 4px; font-size: 15px; }
.fd-grille-titre { font-size: 15px; font-weight: 600; color: var(--encre-2); margin-bottom: 12px; }
.fd-titre { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.fd-p { font-size: 17px; line-height: 1.5; color: var(--encre); }
.fd-note { color: var(--encre-2); font-size: 15px; margin-top: 8px; }
.fd-banque { margin-bottom: 8px; }
.fd-banque .logo { height: 34px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; box-shadow: 0 0 0 1px var(--trait-2); }
.fd-banque-nom { font-size: 17px; font-weight: 600; }
/* la feuille d'un mot du lexique */
.feuille-mot { padding: 24px 22px 22px; width: min(440px, calc(100vw - 24px)); }
.feuille-mot-titre { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 10px; padding-right: 96px; }
.feuille-mot-def { font-size: 17px; line-height: 1.5; }
.feuille-mot-exemple { margin-top: 12px; font-size: 15px; color: var(--encre-2); }
.feuille-mot-source { margin-top: 12px; font-size: 13px; color: var(--encre-2); letter-spacing: 0; }
.feuille-mot .feuille-fermer { position: absolute; top: 14px; right: 14px; }

/* La grille de cent (fiche d'une monnaie) */
.grille-cent { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 300px; }
.case { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--encre) 7%, transparent); display: block; }
.grille-cent, .grille-legende { --plein: color-mix(in srgb, var(--encre) 70%, transparent); }
.ordinal { font-size: max(13px, .75em); vertical-align: .38em; line-height: 0; }  /* 04/10 (C1, besoin 4) : jamais sous 13 px */
.case-pleine { background: var(--plein); }
.case-part { background: linear-gradient(90deg, var(--plein) var(--f), color-mix(in srgb, var(--encre) 7%, transparent) var(--f)); }
.case-repere { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--encre); }
.grille-legende { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--encre-2); }
.grille-legende > span { display: inline-flex; align-items: center; gap: 8px; }
.grille-legende .case { width: 14px; flex: none; }
.grille-legende .case-repere { box-shadow: 0 0 0 2px var(--carte), 0 0 0 3.5px var(--encre); margin: 0 2px; }

/* ---------- 3. Les futurs : une scène ---------- */
/* La grille reste à l'écran pendant qu'on lit les futurs (dès 1024 px) ; chaque futur allume ses cases quand il passe au
   centre (script) ou quand on le touche. Sans script, sans mouvement ou sous 1024 px : la grille puis la liste. */
.scene-futurs { display: grid; gap: 32px; align-items: start; }
.scene-fixe { display: grid; place-items: start; }
@media (min-width: 1024px) {
  .scene-futurs { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; }
  .scene-fixe { position: sticky; top: calc(var(--barre) + 8vh); }
  .scene-active .etape { min-height: 36vh; display: flex; align-items: center; }
  .scene-active .etape:first-child { min-height: 30vh; align-items: flex-start; }
}
.gaufre { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: min(100%, 440px); }
.gc { display: block; aspect-ratio: 1; border-radius: 22%; background: var(--f); transition: opacity .3s var(--courbe), transform .3s var(--courbe); }
.f-calme { --f: var(--f-calme); }
.f-calme2 { --f: var(--f-calme2); }
.f-secousse, .f-secousse2 { --f: var(--f-secousse); }
.f-choc, .f-choc2 { --f: var(--f-choc); }
.f-residuelle, .f-residuelle2 { --f: var(--f-residuelle); }
/* le reste porte une trame en plus de sa couleur (secondaire, pour les lecteurs daltoniens) */
.gc.f-residuelle, .gc.f-residuelle2, .fut-cle.f-residuelle, .f-residuelle .fut-cle, .f-residuelle2 .fut-cle, .gc-mini.f-residuelle, .gc-mini.f-residuelle2 {
  background: repeating-linear-gradient(135deg, var(--f-residuelle) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1.5px var(--f-residuelle);
}
.gc.f-choc, .gc.f-choc2, .gc-mini.f-choc, .f-choc .fut-cle {
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 0 18%, transparent 20%), var(--f-choc);
}
.gaufre.focalise .gc { opacity: .16; }
.gaufre.focalise .gc.actif { opacity: 1; }
.gaufre.montre-calme .gc.casse { opacity: .16; transform: scale(.82); }
.futurs-liste { display: grid; gap: 6px; }
.futur {
  width: 100%; display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: start; gap: 4px 12px;
  padding: 14px 16px; border: 0; border-radius: var(--rayon-2); background: var(--film-carte); color: var(--film-encre); text-align: left; cursor: pointer;
  transition: background-color .2s var(--courbe), opacity .2s var(--courbe);
}
.futur:hover { background: var(--film-carte-2); }
.futur[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--f); }
.futurs-liste.focalise .futur[aria-pressed="false"] { opacity: .55; }
.fut-cle { width: 14px; height: 14px; border-radius: 4px; background: var(--f); margin-top: 9px; }
.fut-p { width: 1.25em; font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.fut-corps { display: grid; gap: 4px; padding-top: 3px; }
.fut-nom { font-size: 17px; font-weight: 600; letter-spacing: -.016em; line-height: 1.3; }
.fut-mouv { font-size: 14px; line-height: 1.4; color: var(--film-encre-2); letter-spacing: -.004em; }
@media (max-width: 599px) {
  .futur { padding: 10px 12px; grid-template-columns: 12px auto minmax(0, 1fr); }
  .fut-p { font-size: 26px; }
  .fut-nom { font-size: 16px; }
}
.fut-hausse span { color: #3fc7c0; }
.fut-baisse span { color: #ff7a45; }
.fut-divergence { margin-top: 18px; max-width: 44ch; }
.fut-divergence > p { font-size: clamp(19px, 1.9vw, 21px); line-height: 1.42; letter-spacing: -.016em; color: var(--film-encre-2); text-wrap: pretty; }
.fut-raison { margin-top: 8px; }
.fut-raison > summary { display: flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; color: inherit; cursor: pointer; }
.fut-raison-texte { font-size: 17px; line-height: 1.5; color: var(--film-encre-2); }
.calme-conviction { margin-top: 10px; font-size: clamp(19px, 1.9vw, 21px); line-height: 1.42; font-weight: 600; letter-spacing: -.016em; }
.ecrite { margin-top: 12px; font-size: 15px; color: var(--encre-2); }
.gaufre { scroll-margin-top: calc(var(--barre) + 12px); }
/* 04/10 (C1) : aucune césure automatique dans un titre (« mal-gré » au téléphone, v1 de S41) ; un mot trop long pour la
   ligne passe à la ligne sans tiret plutôt que de déborder */
h1, h2, .titre-une, .titre-chapitre, .calme-titre, .tuile-titre { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.etape-calme { margin-top: 24px; }
.calme { width: 100%; padding: 22px 20px; border-radius: var(--rayon); background: var(--film-carte); display: grid; gap: 14px; }
@media (min-width: 768px) { .calme { padding: 36px 40px; } }
.calme-titre { font-size: clamp(20px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.calme-nombre { font-size: 1.3em; letter-spacing: -.04em; }
.calme-dit { font-size: 17px; color: var(--film-encre-2); max-width: 56ch; }
.calme-lignes { display: grid; gap: 8px; font-size: 16px; line-height: 1.4; color: var(--film-encre); }
.calme-famille { font-weight: 600; }
.calme-lignes li { display: flex; gap: 10px; align-items: flex-start; }
.calme-lignes strong { font-weight: 700; }
.gc-mini { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--f); margin-top: 5px; }
.bouton {
  justify-self: start; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f5f5f7; color: #1d1d1f; font-size: 17px; font-weight: 600; letter-spacing: -.015em;
  transition: transform .15s var(--courbe), background-color .2s var(--courbe);
}
.bouton:hover { background: #ffffff; }
.bouton:active { transform: scale(.97); }
.bouton .b-cacher, .bouton[aria-pressed="true"] .b-montrer { display: none; }
.bouton[aria-pressed="true"] .b-cacher { display: inline; }

/* ---------- 4. La suite : tuiles (bento dès 1024 px, galerie au téléphone) ---------- */
.tuiles { display: grid; gap: 16px; }
@media (max-width: 767px) {
  .tuiles { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--marge);
    margin: 0 calc(-1 * var(--marge)); padding: 4px var(--marge) 14px; scrollbar-width: none; }
  .tuiles::-webkit-scrollbar { display: none; }
  .tuile { scroll-snap-align: start; min-height: 250px; }
}
@media (min-width: 768px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .suite .pagination { display: none; } }
@media (min-width: 1024px) {
  .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tuile-comprendre { grid-row: span 2; }
  .tuile-climat { grid-column: span 2; }
}
.tuile {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px; min-height: 300px;
  padding: 30px 28px 26px; border-radius: var(--rayon); background: var(--carte); color: var(--encre); overflow: hidden;
  transition: transform .35s var(--ressort), box-shadow .35s var(--ressort);
}
.tuile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.tuile-sourcil { font-size: 15px; font-weight: 600; color: var(--encre-2); letter-spacing: -.01em; padding-right: 44px; }
.tuile-titre { font-size: clamp(26px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.tuile-dit { font-size: 15px; line-height: 1.45; color: var(--encre-2); max-width: 40ch; }
.tuile-instrument { align-self: end; margin-top: 18px; display: grid; gap: 10px; }
.tuile-comprendre .tuile-instrument { align-self: start; margin-top: 28px; }
.tuile-comprendre .mini-cent { max-width: 100%; }
.tuile-fleche { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--papier-2); color: var(--encre-2); font-size: 20px; }
.tuile:hover .tuile-fleche { color: var(--action); }
.tuile-legende { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--encre-2); letter-spacing: 0; }
.tuile-mini { display: inline-flex; align-items: center; gap: 6px; }
.cle-seuil { width: 18px; height: 0; border-top: 2px dashed currentColor; opacity: .8; }
.vix-courbe { width: 100%; height: 110px; color: var(--encre); overflow: visible; }
.tuile-climat .vix-courbe { height: 150px; }
.vix-ligne { fill: none; stroke: var(--encre); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.vix-seuil { stroke: var(--encre-2); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.vix-dernier { fill: var(--encre); stroke: var(--carte); stroke-width: 3; vector-effect: non-scaling-stroke; }
/* les trois parts des valeurs : trois intensités d'encre, du plus engagé au moins engagé (v10 : le bleu est le calme des
   futurs, une couleur ne dit qu'une idée) */
.partition { display: flex; gap: 3px; height: 28px; }
.part { border-radius: 6px; }
.part-0 { background: var(--encre); }
.part-1 { background: color-mix(in srgb, var(--encre) 45%, transparent); }
.part-2 { background: color-mix(in srgb, var(--encre) 14%, transparent); }
.partition-mots { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--encre-2); }
.part-mot { display: inline-flex; align-items: center; gap: 6px; }
.part-cle { width: 12px; height: 12px; border-radius: 3px; }
.mini-cent { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 240px; }
.mini-cent i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--encre) 10%, transparent); }
.mini-cent i.plein { background: var(--rien); }
.pagination { display: flex; justify-content: center; gap: 0; margin-top: 2px; white-space: nowrap; }
.point-page { width: 44px; min-width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.point-page::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--encre) 22%, transparent); transition: background-color .2s var(--courbe), transform .2s var(--courbe); }
.point-page.actif::before { background: var(--encre); transform: scale(1.15); }

/* ---------- 5. À retenir ---------- */
.retenir { padding: 32px 0 40px; background: var(--papier); }
@media (min-width: 1024px) { .retenir { padding: 88px 0 100px; } }
.retenir-titre { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.retenir-lignes { display: grid; border-top: 1px solid var(--trait-2); }
.retenir-lignes li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--trait-2); font-size: 18px; line-height: 1.4; letter-spacing: -.016em; }
@media (min-width: 600px) { .retenir-lignes li { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: baseline; } }
.ret-quoi { font-size: 15px; font-weight: 600; color: var(--encre-2); letter-spacing: -.005em; }
.retenir-dit { margin-top: 22px; font-size: 15px; color: var(--encre-2); max-width: 60ch; }
/* 04/10 (C1, besoin 2) : à 1 440, les lignes faisaient environ 110 signes ; 860 px les ramènent sous 80 */
@media (min-width: 1024px) { .retenir-titre, .retenir-lignes { max-width: 860px; } }

/* ---------- Pied ---------- */
.pied { background: var(--papier-2); color: var(--encre-2); font-size: 13px; letter-spacing: 0; line-height: 1.5; padding: 28px var(--marge) 44px; border-top: 1px solid var(--trait-2); }
.pied p { max-width: calc(var(--largeur)); margin: 0 auto; }

/* ---------- Mouvement (seulement si le lecteur ne l'a pas réduit) ---------- */
/* 04/10 (C1) : la loi du 27/09 (D21, D48) : `transform` et `opacity` seulement, 600 ms au plus, aucun trajet automatique, le
   nombre écrit à l'arrivée. AVANT : les points des monnaies partaient seuls de la base et glissaient 0,9 s en animant `left`,
   leurs nombres déjà écrits ; la grille des futurs se remplissait case par case (une idée éliminée par les trois juges) ; la
   marque « maintenant » glissait en animant `left`. APRÈS : chaque point se pose à sa place d'un fondu ; le trajet depuis la
   base est un geste du membre (« Partir de la base ») ; la grille entre d'un seul fondu ; la frise de la une est immobile.
   Les délais d'entrée ne valent que pour l'entrée : dès que le chapitre est posé (classe `pose`), un toucher répond aussitôt. */
@media (prefers-reduced-motion: no-preference) {
  .anime .apparait { opacity: 0; transform: translateY(14px); transition: opacity .3s var(--courbe), transform .3s var(--ressort); }
  .anime .vu .apparait, .anime .ouverture .apparait.vu { opacity: 1; transform: none; }
  .anime [data-anime]:not(.pose) .apparait:nth-child(2) { transition-delay: .08s; }
  /* les points des monnaies : un fondu sur place, dans l'ordre des rangées */
  .anime .balance:not(.vu) .point { opacity: 0; transform: scale(.4); }
  .anime .balance:not(.vu) .segment { opacity: 0; }
  .anime .balance .point { transition: opacity .3s var(--courbe) calc(.15s + var(--r) * 45ms), transform .4s var(--ressort) calc(.15s + var(--r) * 45ms); }
  .anime .balance .segment { transition: opacity .3s var(--courbe) calc(.2s + var(--r) * 45ms), transform .6s var(--ressort); }
  .anime .balance.pose .point, .anime .balance.pose .segment { transition-delay: 0s; }
  /* « Partir de la base » : chaque point saute sur son trait (sa base), les nombres s'effacent ; puis il rejoint sa place en
     600 ms (`transform` de sa voie) et son nombre s'écrit à l'arrivée (script : classes `depart` puis `arrive`) */
  .balance-carte .voie { transition: transform .6s var(--ressort); }
  .balance-carte .segment { transform-origin: var(--o, 0%) 50%; }
  .balance-carte.depart .voie { transform: translateX(var(--d, 0%)); transition: none; }
  .balance-carte.depart .segment { transform: scaleX(0); transition: none; }
  .balance-carte.depart .proba, .balance-carte.depart .sens { opacity: 0; transition: none; }
  .balance-carte.arrive .proba, .balance-carte.arrive .sens { transition: opacity .25s var(--courbe) .6s; }
  /* la grille des futurs entre d'un seul fondu */
  .anime .futurs:not(.vu) .gaufre { opacity: 0; transform: translateY(18px) scale(.97); }
  .anime .futurs .gaufre { transition: opacity .5s var(--courbe) .1s, transform .6s var(--ressort) .1s; }
}
@media (prefers-reduced-motion: reduce) { .gc, .futur, .tuile, .bouton, .rangee, .point-page, .ps-cap, .bouton-base { transition: none; } }

/* ---------- Impression et contraste forcé ---------- */
@media (forced-colors: active) {
  .point, .gc, .fut-cle, .gc-mini, .lire-point, .case-base, .zone, .k-decisif, .k-premier { forced-color-adjust: none; }
}
@media print { .barre, .menu, .bouton, .tuile-fleche, .pagination { display: none; } .film, .film-carte { background: #fff; color: #000; } }

/* 29/09 (famille devises) : un nombre posé au bord d'une échelle ne se casse jamais (« 75 » coupé en « 7 » / « 5 » à 390) */
.echelle-piste > span { white-space: nowrap; }

/* 29/09 : un mot défini et la ponctuation qui le suit ne se séparent jamais d'une ligne à l'autre */
.lie { white-space: nowrap; }

/* ------------------------------------------------------------------------------------------ le levier (03/10) --
   Le curseur de la distance de risque, le schéma des deux barres et les multiples calculés au navigateur. Un élément
   [data-levier-js] reste caché tant que le lecteur n'a pas réglé le curseur : aucun nombre avant son choix. */
[data-levier-js][hidden] { display: none !important; }
.lv-zone { padding: 56px 0 64px; }
@media (min-width: 1024px) { .lv-zone { padding: 72px 0 88px; } }
.lv-carte { padding: 22px 20px; }
@media (min-width: 768px) { .lv-carte { padding: 30px 28px; } }
@media (min-width: 900px) { .lv-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: start; } }
.lv-dit { font-size: 17px; line-height: 1.55; margin: 0 0 12px; }
.lv-texte .lv-dit:last-child { margin-bottom: 0; }
.lv-schema { margin: 18px 0 0; }
@media (min-width: 900px) { .lv-schema { margin-top: 0; } }
.lv-reglage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; margin: 0 0 6px; }
.lv-reglage label { font-size: 15px; line-height: 1.35; color: var(--encre-2); }
.lv-valeur { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--action); white-space: nowrap; }
.lv-curseur { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; accent-color: var(--action); cursor: pointer; }
.lv-chemin { font-size: 15px; line-height: 1.5; color: var(--encre-2); margin: 0 0 12px; }
.lv-cles { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.lv-cles li { font-size: 15px; line-height: 1.4; }
.lv-cles .lv-valeur { font-size: 15px; }
.lv-cle { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 8px; }
.lv-cle-d { background: var(--action); }
.lv-cle-m { background: var(--encre); }
/* 04/10 (C1, audit A3 §5.6) : au repos, avant le premier réglage du lecteur, les deux barres sont dessinées en contour
   (la distance en bleu, ce qui se règle ; le mouvement en gris) et « Réglez votre distance » est écrit dessus. AVANT : le
   mouvement était peint en bloc plein, un rectangle noir sans repère. Aucune proportion n'est montrée avant le réglage (D48). */
.lv-dessin { display: grid; }
.lv-dessin > * { grid-area: 1 / 1; }
.lv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lv-repos {
  align-self: center; justify-self: center; max-width: 100%; margin: 0; padding: 3px 14px; border-radius: 999px;
  background: var(--papier); box-shadow: 0 0 0 1px var(--trait-2); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--encre-2); text-align: center;
}
.lv-schema.regle .lv-repos { opacity: 0; }
.lv-schema:not(.regle) .lv-barre { transform: none; fill: transparent; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.lv-schema:not(.regle) .lv-barre-d { stroke: var(--action); }
.lv-schema:not(.regle) .lv-barre-m { stroke: var(--encre-2); }
.lv-schema:not(.regle) .lv-traits { opacity: 0; }
.lv-barre { transform-box: fill-box; transform-origin: 0 50%; }
.lv-barre-d { fill: var(--action); transform: scaleX(var(--kd, 0)); }
.lv-barre-m { fill: var(--encre); transform: scaleX(var(--km, 1)); }
.lv-traits line { stroke: var(--carte); stroke-width: 2.5; }
.lv-fin { margin: 10px 0 0; font-size: 17px; line-height: 1.45; }
.lv-fin output, .lv-x output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--encre); }
.lv-note { font-size: 15px; line-height: 1.5; color: var(--encre-2); margin: 14px 0 0; }
.lv-module { padding: 8px 0; }
.lv-table-cadre { overflow-x: auto; margin: 6px 0 0; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.lv-table caption { caption-side: top; text-align: left; font-size: 15px; line-height: 1.45; color: var(--encre-2); padding: 0 0 8px; }
.lv-table th, .lv-table td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-top: 1px solid var(--trait-2); }
.lv-table thead th { font-size: 13px; font-weight: 600; color: var(--encre-2); border-top: 0; }
.lv-table tbody th { font-weight: 600; white-space: nowrap; }
.lv-x { display: block; font-size: 14px; color: var(--encre-2); white-space: nowrap; }
.lv-sans { font-size: 14px; color: var(--encre-2); }
.lv-repli { margin: 18px 0 0; border-top: 1px solid var(--trait-2); }
.lv-module .lv-repli { margin-top: 0; }
.lv-repli > summary { cursor: pointer; padding: 14px 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--action); }
.lv-corps { padding: 0 0 6px; }
@keyframes lv-apparait { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .lv-barre-d, .lv-barre-m { transition: transform .6s var(--ressort), fill .3s var(--courbe); }
  .lv-repos { transition: opacity .25s var(--courbe); }
  .lv-schema.premier .lv-traits line { animation: lv-apparait .3s var(--courbe) .6s both; }
  .lv-schema.premier .lv-fin { animation: lv-apparait .35s var(--courbe) .6s both; }
}

/* Panel S41 (03/10), point 7 : la chance que ça bouge, avant le sens (carte du rendez-vous de la une, chaque page de moment).
   La barre s'étire depuis zéro ; le nombre n'apparaît qu'à sa valeur finale (aucune valeur intermédiaire lisible). */
.bouge { margin: .75em 0 18px; }  /* sous le titre du chapitre : à 200 %, il le chevauchait de 3 px (banc d’écrans, 1440) */
.bouge .bg-q { margin: 0; font-weight: 600; }
.bouge .bg-n { margin: 2px 0 8px; }
.bouge .bg-chiffre { font-size: 1.75em; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .08em; }
.bouge .bg-barre { display: block; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--encre) 12%, transparent); overflow: hidden; }
.bouge .bg-plein { display: block; height: 100%; width: var(--x); border-radius: inherit; background: var(--encre); transform-origin: left center; }
.bouge .bg-dit { margin: 8px 0 0; font-size: .92em; }
@media (prefers-reduced-motion: no-preference) {
  .anime .bouge.vu .bg-plein { transition: transform .6s var(--courbe); }
  .anime .bouge:not(.vu) .bg-plein { transform: scaleX(0); }
  .anime .bouge.vu .bg-chiffre { transition: opacity .25s var(--courbe) .6s; }
  .anime .bouge:not(.vu) .bg-chiffre { opacity: 0; }
}

/* 04/10 (C1, besoins 5 et 6) : la jauge « D'abord : ça bouge ? » et le levier posés sur le film (sombre dans les deux thèmes)
   prennent l'encre du film. AVANT : peints en `--encre`, presque noirs sur le noir de la carte en thème clair (la jauge de la
   une était invisible). */
.film .bouge .bg-barre, .film-carte .bouge .bg-barre { background: rgba(245, 245, 247, .16); }
.film .bouge .bg-plein, .film-carte .bouge .bg-plein { background: var(--film-encre); }
.film .lv-barre-m, .film-carte .lv-barre-m { fill: var(--film-encre); }
.film .lv-barre-d, .film-carte .lv-barre-d { fill: #2997ff; }
.film .lv-cle-m, .film-carte .lv-cle-m { background: var(--film-encre); }
.film .lv-cle-d, .film-carte .lv-cle-d { background: #2997ff; }
.film .lv-traits line, .film-carte .lv-traits line { stroke: var(--film); }
.film .lv-fin output, .film .lv-x output, .film-carte .lv-fin output, .film-carte .lv-x output { color: var(--film-encre); }
.film .lv-reglage label, .film .lv-chemin, .film .lv-note, .film .lv-sans, .film .lv-x,
.film-carte .lv-reglage label, .film-carte .lv-chemin, .film-carte .lv-note, .film-carte .lv-sans, .film-carte .lv-x { color: var(--film-encre-2); }
.film .lv-curseur, .film-carte .lv-curseur { accent-color: #2997ff; }
.film .lv-repos, .film-carte .lv-repos { background: var(--film-carte); box-shadow: 0 0 0 1px var(--film-trait); color: var(--film-encre-2); }
.film .lv-schema:not(.regle) .lv-barre-m, .film-carte .lv-schema:not(.regle) .lv-barre-m { stroke: var(--film-encre-2); }
.film .lv-schema:not(.regle) .lv-barre-d, .film-carte .lv-schema:not(.regle) .lv-barre-d { stroke: #2997ff; }

/* ---------- Passer d'une page à l'autre (04/10, C1, D13) ----------
   En CSS seul : le navigateur fond une page dans l'autre (300 ms), et la plaque de la monnaie touchée devient l'en-tête de sa
   page (la plaque du titre `h1` d'une page de monnaie). Côté départ, la plaque nommée est celle de la fiche ouverte (la une) ou
   celle du lien qui a le focus (la liste des devises) ; une seule à la fois, sinon le navigateur renonce à la transition.
   Coupé si le lecteur a réduit le mouvement ; ignoré par un navigateur qui ne connaît pas ces transitions. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
h1 .plaque { view-transition-name: plaque; }
a.rangee:focus .plaque { view-transition-name: plaque; }
.feuille:popover-open .feuille-tete .plaque { view-transition-name: plaque; }
:root:has(a.rangee:focus .plaque) h1 .plaque { view-transition-name: none; }
