/* ==========================================================================
   Jardin de l'être · feuille de style commune des graines
   --------------------------------------------------------------------------
   À charger dans chaque graine :
     <link rel="stylesheet" href="/assets/css/graines.css">
   Chaque page ne garde dans son propre <style> que ses composants uniques
   (minuteur, miroir, outils interactifs…).

   Les couleurs (palettes, rôles, recoloration des illustrations) sont dans
   couleurs.css, partagé avec le site et l'admin : c'est le seul fichier à
   modifier pour changer la charte chromatique.
   ========================================================================== */

@import url("couleurs.css");

/* Polices hébergées sur le site, les mêmes que style.css (aucun appel à Google Fonts) */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
/* Hébreu (Frank Ruhl Libre) et arabe (Amiri), limités à leurs caractères : le texte latin n'est pas touché.
   Déclarés aussi sous Lora et Hanken Grotesk, pour qu'un mot hébreu ou arabe glissé dans une phrase ait la bonne police. */
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 300 900; font-display: swap; src: url("../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
/* Mêmes descripteurs (style, graisse) que les faces latines ci-dessus : sinon le navigateur écarte Lora et Hanken. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }


/* --------------------------------------------------------------------------
   1. Typographie et espacements
   Mêmes principes que le site : cinq tailles de texte, du blanc entre les
   parties, aucun trait fin ni cadre de 1px (les blocs se distinguent par
   une légère différence de fond).
   -------------------------------------------------------------------------- */

:root {
  --titres: "Lora", Georgia, "Times New Roman", serif;
  --texte: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hebreu: "Frank Ruhl Libre", "Times New Roman", serif;
  --arabe: "Amiri", "Times New Roman", serif;

  /* Les cinq tailles */
  --step-small: 15px;
  --step-body: clamp(17px, 15px + 0.4vw, 20px);
  --step-lead: clamp(20px, 17px + 0.7vw, 26px);
  --step-head: clamp(28px, 20px + 1.6vw, 40px);
  --step-title: clamp(36px, 20px + 3.4vw, 64px);

  --space-1: 8px;
  --space-2: 20px;
  --space-3: clamp(24px, 4vw, 40px);
  --space-4: clamp(48px, 32px + 3vw, 80px);
  --space-partie: clamp(80px, 48px + 5vw, 144px);
  --colonne: 680px;
  --radius-sm: 4px;
  --radius-md: 10px;
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--step-body);
  line-height: 1.65;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: var(--space-4);
  -webkit-font-smoothing: antialiased;
}

main, footer { max-width: var(--colonne); margin-inline: auto; }

h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
h1, h2 { text-wrap: balance; font-family: var(--titres); }
p { text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--souligne);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-fort); }
:root[data-palette="jaune"] a { text-decoration-thickness: 3px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

em.terme { font-style: italic; color: var(--titre); }
strong, b { font-weight: 600; }


/* --------------------------------------------------------------------------
   3. Hiérarchie des textes
   -------------------------------------------------------------------------- */

.titre-couverture { font-family: var(--titres); font-size: var(--step-title); line-height: 1.04; font-weight: 400; letter-spacing: -0.02em; color: var(--titre); }
.titre-1 { font-family: var(--titres); font-size: var(--step-head); line-height: 1.12; font-weight: 400; letter-spacing: -0.015em; color: var(--titre); }
.titre-2 { font-family: var(--titres); font-size: var(--step-lead); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--titre); }
.titre-3 { font-family: var(--texte); font-size: var(--step-body); line-height: 1.4; font-weight: 600; color: var(--titre); }
/* Repères de partie : en minuscules, discrets, sans espacement de lettres */
.surtitre { font-size: var(--step-small); line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre-douce); }
.legende { font-size: var(--step-small); line-height: 1.45; color: var(--encre-douce); }


/* --------------------------------------------------------------------------
   4. Rythme vertical
   -------------------------------------------------------------------------- */

.flux { display: flex; flex-direction: column; gap: var(--space-2); }
.bloc-titre { display: flex; flex-direction: column; gap: 6px; }
section.partie { margin-top: var(--space-partie); }
.flux > .bloc-titre:first-child { margin-bottom: var(--space-1); }
.flux > .sous { margin-top: var(--space-3); }

/* Un intertitre colle à ce qu'il annonce : plus d'air au-dessus qu'en dessous
   (12px sous le titre, contre 20px entre deux paragraphes) */
.flux > .bloc-titre.sous,
.flux > .titre-3 { margin-bottom: -8px; }
.flux > .titre-3:not(:first-child) { margin-top: var(--space-2); }
/* Sauf devant un glossaire : l'intertitre annonce une liste de termes, pas une phrase ; il garde l'écart normal (20px) */
.flux > .bloc-titre.sous:has(+ dl.notions) { margin-bottom: 0; }

/* Les encarts qui se suivent (exercices, précautions) respirent : 40px entre deux */
.flux > .encart:not(.citation) + .encart:not(.citation) { margin-top: var(--space-2); }

/* Une illustration se détache du texte et garde sa légende tout près */
.flux > .illus-centre { margin: var(--space-2) auto 0; }
.flux > .illus-centre + .legende { margin-top: -8px; }

/* Le titre d'abord : « Partie 1 · Théorie » ou « Exercice 1 · 5 minutes » passe dessous, comme une précision */
.bloc-titre:has(> .surtitre + :is(h2, h3)),
.exercice-tete:has(> .surtitre + :is(h2, h3)) { flex-direction: column-reverse; justify-content: flex-end; }
/* Quand le repère est le seul intitulé d'un encart (« À retenir »), il devient son titre.
   S'il précède un vrai titre (« Un récit de Rûmî » puis le titre du récit), il reste un simple repère. */
.encart > .surtitre:first-child:not(:has(+ :is(h2, h3, h4))) { font-family: var(--titres); font-size: var(--step-lead); line-height: 1.25; font-weight: 500; color: var(--titre); }


/* --------------------------------------------------------------------------
   5. Couverture
   Le titre ouvre la page ; la catégorie passe sous la promesse, avec la durée.
   -------------------------------------------------------------------------- */

header.couverture { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
header.couverture > .titre-couverture { order: -1; }
header.couverture > .promesse { order: -1; }
header.couverture > .surtitre { margin-bottom: -12px; }
.promesse { font-size: var(--step-lead); line-height: 1.45; color: var(--encre); max-width: 34em; }
.meta-formation { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.illus { width: 100%; max-width: 260px; height: auto; display: block; margin-top: var(--space-2); }
.illus-centre { margin: var(--space-1) auto; }


/* --------------------------------------------------------------------------
   6. Sommaire
   -------------------------------------------------------------------------- */

nav.sommaire { background: var(--surface); border-radius: var(--radius-md); padding: calc(var(--space-2) + 8px) var(--space-3); margin-top: var(--space-4); }
nav.sommaire ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
nav.sommaire li { display: flex; gap: 14px; align-items: baseline; padding-block: 4px; }
nav.sommaire .num { font-weight: 400; color: var(--encre-douce); font-size: var(--step-small); min-width: 1.4em; font-variant-numeric: tabular-nums; }
nav.sommaire a { color: var(--titre); text-decoration: none; }
nav.sommaire a:hover { color: var(--accent); text-decoration: underline; }


/* --------------------------------------------------------------------------
   7. Listes
   -------------------------------------------------------------------------- */

/* Puces */
ul.puces { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.puces li { position: relative; padding-left: 22px; }
ul.puces li::before {
  content: ""; position: absolute; left: 2px; top: .7em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--puce);
  box-shadow: 0 0 0 1.5px var(--puce-contour); /* contour visible seulement dans la piste « jaune » */
}

/* Étapes numérotées */
ol.etapes { list-style: none; padding: 0; counter-reset: etape; display: flex; flex-direction: column; gap: 16px; }
ol.etapes li { counter-increment: etape; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
ol.etapes li::before {
  content: counter(etape);
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--titre); color: var(--fond);
  font-weight: 600; font-size: var(--step-small);
  display: grid; place-items: center; margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* Glossaire : séparé par l'espace, sans traits */
dl.notions { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
dl.notions div { display: flex; flex-direction: column; gap: 4px; }
/* Le terme reste un cran sous l'intertitre (.titre-2) : même voix (Lora), mais taille du texte et graisse plus marquée,
   pour qu'un « Les notions clés » posé juste au-dessus ne se confonde pas avec le premier terme */
dl.notions dt { font-family: var(--titres); font-size: var(--step-body); line-height: 1.35; font-weight: 600; color: var(--titre); }
dl.notions dt span { font-family: var(--texte); font-size: var(--step-small); font-weight: 400; color: var(--encre-douce); margin-left: 6px; }
dl.notions dd { margin: 0; }

/* Repères chronologiques : un fil de 2px dans un ton du fond */
ol.reperes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; border-left: 2px solid var(--surface); margin-left: 4px; }
ol.reperes li { position: relative; padding-left: 22px; display: flex; flex-direction: column; }
ol.reperes li::before { content: ""; position: absolute; left: -6px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--titre); }
ol.reperes .date { font-size: var(--step-small); font-weight: 600; color: var(--encre-douce); letter-spacing: 0; }

/* Lectures */
ul.lectures { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ul.lectures li { display: flex; flex-direction: column; }
ul.lectures .auteur { font-size: var(--step-small); color: var(--encre-douce); }
ul.lectures cite { font-family: var(--titres); font-style: italic; font-size: var(--step-body); color: var(--titre); }


/* --------------------------------------------------------------------------
   8. Encarts
   -------------------------------------------------------------------------- */

.encart { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.encart.citation { background: transparent; padding-inline: 0; }
.encart.citation blockquote { font-family: var(--titres); font-style: italic; font-size: var(--step-lead); line-height: 1.45; color: var(--titre); text-wrap: pretty; }
.encart.retenir { background: var(--surface-forte); }
.encart.precaution { background: var(--alerte); border: 0; }

.exercice-tete { display: flex; flex-direction: column; gap: 4px; }


/* Lecteur des pratiques guidées (script : /assets/js/lecteur-audio.js, ajouté par le site)
   Posé en bas d'un encart de pratique. Sans script, le lecteur du navigateur reste visible. */
.lecteur-audio { margin-top: 12px; background: var(--surface-claire); border-radius: var(--radius-md); padding: 14px 16px; }
.lecteur-audio audio { width: 100%; display: block; }
.lecteur-audio.pret { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; }
.lecteur-audio.pret audio { display: none; }
.lecteur-audio button { -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; display: grid; place-items: center; }
.lecteur-audio button:disabled { cursor: default; opacity: .45; }
.lecteur-audio button svg { display: block; }
.lecteur-lire { width: 52px; height: 52px; border-radius: 50%; background: var(--aplat); color: var(--titre); transition: background-color .2s ease, transform .2s ease; }
.lecteur-lire svg { width: 24px; height: 24px; }
.lecteur-lire:not(:disabled):hover { background: color-mix(in srgb, var(--aplat), var(--touche) 35%); }
.lecteur-lire:not(:disabled):active { transform: scale(.96); }
/* En attente des données : le bouton respire doucement */
.lecteur-audio.charge .lecteur-lire { animation: lecteur-souffle 1.6s ease-in-out infinite; }
@keyframes lecteur-souffle { 50% { opacity: .55; } }
.lecteur-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lecteur-libelle { font-size: var(--step-body); line-height: 1.35; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur-temps { font-size: var(--step-small); color: var(--encre-douce); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lecteur-audio.indisponible .lecteur-libelle { font-size: var(--step-small); color: var(--encre-douce); white-space: normal; }
.lecteur-barre { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; }
.lecteur-recul { width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--titre); }
.lecteur-recul svg { width: 24px; height: 24px; }
.lecteur-recul:not(:disabled):hover { background: var(--surface); }
/* Barre d'avancement : la partie écoutée prend la touche vive des dessins (le jaune des icônes) */
.lecteur-barre input[type="range"] { --rempli: var(--touche); --avance: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.lecteur-barre input[type="range"]:disabled { cursor: default; }
.lecteur-barre input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--rempli) var(--avance), var(--filet) var(--avance)); }
.lecteur-barre input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--titre); }
.lecteur-barre input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--filet); }
.lecteur-barre input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--rempli); }
/* Piste « jaune » : la touche y est blanche, la partie écoutée reprend le jaune vif */
:root[data-palette="jaune"] .lecteur-barre input[type="range"] { --rempli: var(--aplat); }
.lecteur-barre input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--titre); }
.lecteur-barre input[type="range"]:disabled::-webkit-slider-thumb { background: var(--filet); }
.lecteur-barre input[type="range"]:disabled::-moz-range-thumb { background: var(--filet); }
@media (max-width: 420px) {
  .lecteur-audio.pret { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .lecteur-lire { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .lecteur-lire { transition: none; }
  .lecteur-audio.charge .lecteur-lire { animation: none; }
}


/* --------------------------------------------------------------------------
   9. Rythme de la semaine
   -------------------------------------------------------------------------- */

.semaine-wrap { overflow-x: auto; }
table.semaine { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
table.semaine th, table.semaine td { text-align: left; padding: 12px 14px; border: 0; vertical-align: top; }
table.semaine th { font-size: var(--step-small); letter-spacing: 0; text-transform: none; color: var(--encre-douce); font-weight: 600; }
table.semaine tbody tr:nth-child(odd) { background: var(--surface); }
table.semaine td:first-child { font-weight: 600; color: var(--titre); white-space: nowrap; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
table.semaine td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }


/* --------------------------------------------------------------------------
   10. Ornement lotus et pied de page
   Le lotus reste, seul, sans les deux traits qui l'encadraient.
   -------------------------------------------------------------------------- */

/* Le lotus marque la grande respiration : un peu moins d'air de chaque côté qu'entre deux parties,
   pour que l'ensemble ne fasse pas un trou */
.lotus { display: flex; justify-content: center; margin-top: var(--space-4); }
.lotus + section.partie { margin-top: var(--space-4); }
.lotus::before, .lotus::after { content: none; }
.lotus svg { width: 46px; height: auto; flex: none; }

footer { margin-top: var(--space-4); border-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
footer a { color: var(--encre-douce); }


/* --------------------------------------------------------------------------
   11. Composants que les graines redéfinissent dans leur propre <style>
   Ces règles sont un cran plus précises (préfixe main ou body) pour
   l'emporter sur les copies écrites dans chaque page, sans modifier les
   46 fichiers. Elles n'imposent que ce qui relève des principes communs :
   pas de capitales espacées, pas de traits fins ni de cadres de 1px.
   -------------------------------------------------------------------------- */

body > footer { border-top: 0; padding-top: 0; }

/* Blocs côte à côte : repère, nom, texte. Classe de référence : .balance (ou .trois).
   Les autres noms (.symboles des cycles anatomie, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps)
   sont des blocs identiques créés avant la règle : ils reçoivent la même mise en page.
   Deux blocs : deux colonnes dès 600px, noms et textes alignés d'une colonne à l'autre.
   Trois blocs : empilés à toutes les tailles, comme sur mobile (trois colonnes seraient trop étroites à 18px dans 680px). */
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) { display: flex; flex-direction: column; gap: var(--space-3); margin-block: 8px; }
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) > :is(div, li) { min-width: 0; padding-top: 14px; gap: 6px; }
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) .nom { line-height: 1.25; text-wrap: balance; }
/* Le trait de couleur devient un court repère au-dessus du surtitre */
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) > :is(div, li) { position: relative; border-top-style: none; }
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) > :is(div, li)::before {
  content: ""; position: absolute; top: 0; left: 0; width: 48px;
  border-top: 2px solid; border-top-color: inherit;
}
@media (min-width: 600px) {
  main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps):not(:has(> :nth-child(3))) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 7vw, 64px);
  }
  main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps):not(:has(> :nth-child(3))) > :is(div, li) {
    display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 6px; align-content: start;
  }
}

/* Chiffres clés (.chiffres) : deux par ligne dès 480px, empilés en dessous ; le même repère court que les blocs côte à côte.
   Un nombre impair de chiffres : le dernier prend toute la largeur. */
main .chiffres { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) clamp(40px, 7vw, 64px); margin-block: 8px; }
main .chiffres > div { position: relative; min-width: 0; border-top-style: none; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
main .chiffres > div::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; border-top: 2px solid; border-top-color: inherit; }
main .chiffres .nombre { font-family: var(--titres); font-size: var(--step-head); font-weight: 600; line-height: 1.1; color: var(--titre); }
main .chiffres p { font-size: var(--step-body); line-height: 1.55; }
@media (min-width: 480px) {
  main .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .chiffres > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

main table.semaine th, main table.semaine td { padding: 12px 14px; border: 0; }
main table.semaine th { font-size: var(--step-small); letter-spacing: 0; text-transform: none; color: var(--encre-douce); font-weight: 600; }

/* Petites étiquettes (dates, chapitres) : minuscules, discrètes */
main ol.reperes .date,
main ol.frise .date,
main ol.frise .quand,
main .carte .chap { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--encre-douce); }

/* Frises : un fil de 2px dans un ton du fond, des points pleins */
main ol.frise { border-left-color: var(--surface); }
main ol.frise li::before { border: 0; background: var(--titre); width: 10px; height: 10px; left: -6px; }
main ol.frise li.bascule::before { background: var(--touche); }

/* Cartes et blocs cadrés : un fond à la place du contour */
main .carte { border: 0; background: var(--surface-claire); }
main .guide:has(.guide-choix) { border: 0; background: var(--surface-claire); }
main .carte .geste { border-top: 0; padding-top: 4px; }
main .encart.recit,
main .encart.echo { border: 0; background: var(--surface-claire); border-radius: var(--radius-md); padding: var(--space-3); }
main .kanji div { border: 0; background: var(--surface-claire); }
main .decompose > div { border-top: 0; background: var(--surface-claire); border-radius: var(--radius-md); padding: 14px 16px; }

/* Tailles ramenées à l'échelle commune : petits textes à 15px, noms et formules à la taille des sous-titres */
main .carte .source, main .kanji .sens, main .kanji .lecture, main .caractere .parts p.legende,
main .cycle span, main .outil, main .guide-choix button, main .guide-phase .temps,
main ol[class] .nom span, main .lancer, main .vitriol .temps, main .tirage .compte { font-size: var(--step-small); }
main ol[class] .nom, main .vitriol .mot { font-size: var(--step-lead); }
main .decompose p { font-size: var(--step-body); }
main table.semaine, main table.semaine td { font-size: var(--step-small); }
main :is(.balance, .trois, .symboles, .rythmes, .contraste, .traditions, ol.niveaux, ol.temps) .nom, main ol.frise .lieu, main ol.frise .quoi, main ol.reperes .lieu,
main .formules p, main .carte .maxime, main .carte .parole, main .carte .grand-nom,
main .encart.recit .titre-3 { font-size: var(--step-lead); }

/* Pastilles et boutons de choix : remplis, sans contour */
main .cycle span,
main .outil,
main .guide-choix button { border: 0; background: var(--surface); font-weight: 600; }
main .outil[aria-pressed="true"],
main .guide-choix button[aria-pressed="true"] { background: var(--titre); color: var(--fond); }


/* --------------------------------------------------------------------------
   12. Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
