/* Ressources gratuites de Fit avec Romain : le système de design commun.

   Identité : celle de fitavecromain.com et de ses carrousels (noir #111, orange #F15A24,
   titres en capitales italiques « FAR Titres » = Raleway aux chiffres alignés, texte en Manrope).
   Mobile d'abord (le lien s'ouvre dans le navigateur d'Instagram), imprimable (enregistrer en PDF),
   aucune ressource externe : polices et images servies par le site lui-même.

   COMMENT CE FICHIER EST RANGÉ
   1. Fondations (polices, couleurs, base)                         FIXE
   2. Le cadre de chaque page : couverture, corps, pont, fin, pied  FIXE
   3. La bibliothèque de blocs : le corps de la page s'assemble librement avec eux
   4. Blocs ajoutés : un nouveau bloc va ici, et nulle part ailleurs
   5. Pages hors ressources (accueil, 404, bandeau des exemples)
   Chaque bloc porte son balisage, ses règles d'écran large et ses règles d'impression dans sa
   propre section : un bloc se lit, se copie et s'ajoute d'un seul tenant.

   RÈGLES POUR AJOUTER UN BLOC (section 4)
   - Seulement si aucun bloc existant ne convient, et pour une vraie ressource.
   - On ajoute, on ne modifie jamais un bloc existant ni les sections 1, 2 et 5 : des pages
     publiées en dépendent.
   - Uniquement les variables de la section 1 (couleurs, polices, rayons), aucune couleur nouvelle,
     aucune police nouvelle, aucune image chargée d'ailleurs.
   - Le bloc marche à 390 px de large sans défilement horizontal de la page, et il a ses règles
     d'impression (fond blanc, encre noire, pas de cassure au milieu).
   - En tête de section : son nom, à quoi il sert, son balisage. Puis une ligne dans
     .claude/skills/ressource-gratuite/references/page.md.
   Les pages ne contiennent aucun style à elles (pas de style=, pas de <style>) : tout est ici. */


/* =====================================================================================
   1. FONDATIONS (fixe)
   ===================================================================================== */

@font-face {
  font-family: "FAR Titres";
  src: url("/assets/fonts/far-titres-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --noir: #111111;
  --noir-2: #1b1b1b;
  --trait-sombre: #2c2c2c;
  --orange: #F15A24;          /* sa couleur : grands éléments, fonds sombres */
  --orange-encre: #B8420F;    /* le même orange, lisible en petit sur le papier (contraste 4.9) */
  --orange-pale: #FCEDE6;
  --papier: #F5F3EF;
  --papier-2: #ECE8E1;        /* fond neutre un cran plus foncé que le papier */
  --carte: #FFFFFF;
  --encre: #151515;
  --encre-2: #57534E;         /* texte secondaire sur papier (contraste 6.9) */
  --trait: #E4E0D8;
  --trait-fort: #BDB8B1;
  --clair: #F3F3F3;
  --clair-2: #BDB8B1;         /* texte secondaire sur noir (contraste 9.6) */
  --gouttiere: 20px;
  --colonne: 680px;
  --rayon: 14px;
  --rayon-petit: 12px;
  --titres: "FAR Titres", "Arial Black", sans-serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --courbe: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 750; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.colonne { width: 100%; max-width: calc(var(--colonne) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }

@media (min-width: 720px) {
  :root { --gouttiere: 40px; }
  body { font-size: 18px; }
}
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root { --papier: #FFFFFF; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; line-height: 1.5; }
  .colonne { max-width: none; padding: 0; }
}


/* =====================================================================================
   2. LE CADRE DE CHAQUE PAGE (fixe, identique sur toutes les ressources)
   ===================================================================================== */

/* ---------- 2.1 La couverture (fond noir, coupée en biais comme son site) ----------
   <header class="couverture"><div class="colonne">
     <a class="marque" …><img src="/assets/logo.png" …></a>
     <p class="surtitre">Routine gratuite · Mobilité</p>
     <h1>Titre avec un <em>mot</em> en orange</h1>
     <p class="chapeau">…</p>
     <ul class="fiche"><li>5&nbsp;minutes</li>…</ul>
   </div></header> */
.couverture {
  background: var(--noir);
  color: var(--clair);
  padding: calc(18px + env(safe-area-inset-top)) 0 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
  position: relative; overflow: hidden;
}
.couverture::before { /* le pan de lumière en biais de son site */
  content: ""; position: absolute; top: 0; bottom: 0; right: -24%; width: 50%;
  background: rgba(255, 255, 255, 0.03); transform: skewX(-18deg); pointer-events: none;
}
.couverture .colonne { position: relative; }
.couverture .colonne::after { /* le trait orange en biais, la signature de ses carrousels */
  content: ""; display: block; margin-top: 34px;
  width: 64px; height: 9px; background: var(--orange); transform: skewX(-14deg);
}
.marque { display: inline-block; text-decoration: none; }
.marque img { width: 118px; }
.surtitre {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 38px 0 16px; line-height: 1.4;
  font-family: var(--titres); font-style: italic; font-weight: 800;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange);
}
.surtitre::before { content: ""; flex: none; width: 22px; height: 2px; margin-top: 0.62em; background: currentColor; }
.couverture h1 {
  font-family: var(--titres); font-style: italic; font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(38px, 11.2vw, 76px);
  line-height: 0.98; letter-spacing: -0.005em;
  color: #FFFFFF;
}
.couverture h1 em { font-style: italic; color: var(--orange); }
.chapeau {
  margin: 20px 0 0; max-width: 34em;
  font-size: 18px; line-height: 1.55; color: var(--clair-2); font-weight: 450;
}
.fiche { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fiche li {
  border: 1px solid var(--trait-sombre); background: var(--noir-2);
  border-radius: 999px; padding: 6px 13px 6px 11px;
  font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--clair);
  display: inline-flex; align-items: center; gap: 7px;
}
.fiche li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); transform: skewX(-14deg); }

/* entrée douce de la couverture (rien d'autre ne bouge ; rien n'est caché sans elle) */
@media (prefers-reduced-motion: no-preference) {
  .couverture .surtitre, .couverture h1, .couverture .chapeau, .couverture .fiche {
    animation: monte 700ms var(--courbe) both;
  }
  .couverture h1 { animation-delay: 60ms; }
  .couverture .chapeau { animation-delay: 120ms; }
  .couverture .fiche { animation-delay: 180ms; }
}
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .couverture { padding-top: 30px; padding-bottom: 100px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%); }
  .couverture .colonne::after { margin-top: 44px; }
  .couverture h1 { font-size: 84px; }
  .marque img { width: 140px; }
  .surtitre { margin-top: 84px; font-size: 15px; }
  .chapeau { font-size: 20px; }
}
@media print {
  .couverture { background: none; color: #000000; clip-path: none; padding: 0 0 6mm; border-bottom: 2.5pt solid var(--orange); margin-bottom: 6mm; }
  .couverture .colonne::after, .couverture::before { display: none; }
  .marque { background: var(--noir); padding: 2.4mm 3mm; border-radius: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .marque img { width: 30mm; }
  .surtitre { margin: 6mm 0 2mm; color: var(--orange-encre); }
  .couverture h1 { color: #000000; font-size: 28pt; }
  .couverture h1 em { color: var(--orange-encre); }
  .chapeau { color: #333333; font-size: 12pt; }
  .fiche { margin-top: 4mm; }
  .fiche li { background: none; border-color: #BBBBBB; color: #000000; font-size: 9.5pt; }
  .couverture * { animation: none !important; }
}

/* ---------- 2.2 Le corps : une suite de sections ----------
   <main class="colonne">
     <section class="bloc">
       <h2><span class="num">01</span>Titre de la section</h2>
       … un ou plusieurs blocs de la section 3 …
     </section>
   </main>
   Une section sans titre est permise (une intro, un lien vidéo, un encadré seul). */
main { padding: 52px 0 8px; }
.bloc { margin: 0 0 46px; }
.bloc > h2, .titre-bloc {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 25px; line-height: 1.08; letter-spacing: 0;
  margin: 0 0 16px;
}
.bloc > h2 .num, .titre-bloc .num {
  display: block; margin-bottom: 6px;
  font-size: 13px; letter-spacing: 0.1em; color: var(--orange-encre); font-weight: 800;
}
.bloc > * + * { margin-top: 14px; }
.bloc > h2 + *, .bloc > .titre-bloc + * { margin-top: 0; }

@media (min-width: 720px) {
  main { padding-top: 68px; }
  .bloc { margin-bottom: 60px; }
  .bloc > h2, .titre-bloc { font-size: 30px; }
}
@media print {
  main { padding: 0; }
  .bloc { margin-bottom: 7mm; }
  .bloc > h2, .titre-bloc { font-size: 15pt; break-after: avoid; }
}

/* ---------- 2.3 Le pont vers son coaching (toujours juste avant la fin) ----------
   <section class="bloc pont">
     <p class="phrase">Tout est <em>adaptable</em>.</p>
     <p>…</p>
   </section> */
.pont {
  border-top: 1px solid var(--trait); padding-top: 30px;
}
.pont .phrase:only-child { margin-bottom: 0; font-size: clamp(21px, 5.6vw, 28px); line-height: 1.08; }   /* le pont tient en une ligne */
.pont .phrase {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 7.4vw, 38px); line-height: 1.02; margin: 0 0 16px; text-wrap: balance;
}
.pont .phrase em { font-style: italic; color: var(--orange-encre); }
@media print {
  .pont { padding-top: 5mm; break-inside: avoid; }
  .pont .phrase { font-size: 18pt; margin-bottom: 3mm; }
}

/* ---------- 2.4 La fin (le DM) et le pied ----------
   Balisage complet dans gabarits/page.html : titre-question, texte, bouton vers
   https://ig.me/m/fitavecromain, pseudo, ligne imprimée, pied (logo, site, prudence). */
.fin {
  background: var(--noir); color: var(--clair);
  margin-top: 30px; padding: 84px 0 calc(34px + env(safe-area-inset-bottom));
  clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
}
.fin h2 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 9.4vw, 56px); line-height: 0.98; color: #FFFFFF; margin: 0 0 16px;
}
.fin h2 em { font-style: italic; color: var(--orange); }
.fin p { color: var(--clair-2); font-size: 17px; max-width: 32em; }
.bouton {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 8px 8px 8px 22px;
  background: var(--orange); color: var(--noir); text-decoration: none;
  border-radius: 999px; font-weight: 800; font-size: 17px; line-height: 1.2;
  transition: transform 220ms var(--courbe), background-color 220ms var(--courbe);
}
.bouton .fleche {
  width: 40px; height: 40px; border-radius: 50%; background: var(--noir);
  display: grid; place-items: center; transition: transform 260ms var(--courbe);
}
.bouton .fleche svg { width: 16px; height: 16px; stroke: var(--orange); fill: none; stroke-width: 2.4; }
.bouton:active { transform: scale(0.98); }
@media (hover: hover) {
  .bouton:hover { background: #FF6A33; }
  .bouton:hover .fleche { transform: translateX(3px); }
}
.fin .pseudo { margin-top: 12px; font-size: 14.5px; color: var(--clair-2); }
.pied {
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--trait-sombre);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  font-size: 13.5px; color: #8A847C; line-height: 1.5;
}
.pied img { width: 92px; }
.pied a { color: var(--clair-2); text-decoration: none; }
.pied .prudence { flex-basis: 100%; }
.imprime-seulement { display: none; }

@media (min-width: 720px) {
  .fin { padding-top: 120px; clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%); }
}
@media print {
  .fin { background: none; color: #000000; clip-path: none; padding: 4mm 0 0; margin-top: 2mm; border-top: 2.5pt solid var(--orange); break-inside: avoid; }
  .fin h2 { color: #000000; font-size: 16pt; margin-bottom: 2mm; }
  .fin h2 em { color: var(--orange-encre); }
  .fin p { font-size: 10.5pt; color: #222222; }
  .fin .pseudo { display: none; }
  .bouton { display: none; animation: none !important; }
  .imprime-seulement { display: block; font-weight: 750; color: #000000; margin-top: 2mm; }
  .pied { border-top-color: #CCCCCC; color: #555555; margin-top: 3mm; padding-top: 2mm; font-size: 9pt; }
  .pied img { display: none; }
  .pied a { color: #000000; }
  .js-seulement { display: none !important; }
}


/* =====================================================================================
   3. LA BIBLIOTHÈQUE DE BLOCS
   Le corps d'une ressource s'assemble librement avec ces blocs, selon ce que Romain décrit.
   Catalogue visuel : site/_exemples/blocs/ ; mode d'emploi : references/page.md.
   ===================================================================================== */

/* ---------- 3.1 Texte ----------
   <p class="intro">2 à 3 phrases, un passage en <strong>gras</strong>.</p>
   <p>Un paragraphe simple.</p>
   <p class="discret">Une phrase secondaire, en gris.</p>
   <span class="etiquette">Petit libellé</span>  (au-dessus d'un titre de carte, d'un côté de comparatif…) */
.intro { font-size: 18px; line-height: 1.6; }
.intro strong { color: var(--encre); }
.discret { color: var(--encre-2); font-size: 15px; }
.etiquette {
  display: block; margin-bottom: 6px;
  font-size: 12px; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 800; color: var(--orange-encre);
}

/* ---------- 3.2 Puces (petit carré orange penché) ----------
   <ul class="puces"><li>Une idée, 15 mots au plus.</li>…</ul> */
.puces li { position: relative; padding-left: 22px; margin: 0 0 9px; }
.puces li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em;
  width: 8px; height: 8px; background: var(--orange); transform: skewX(-14deg);
}
.puces li:last-child { margin-bottom: 0; }
@media print {
  .puces li { margin-bottom: 1.2mm; }
  .puces li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.3 Liste numérotée courte (étapes en une ligne : préparation, marche à suivre) ----------
   <ol class="numeros"><li>Mets tout dans le mixeur.</li>…</ol>
   (.preparation est le même bloc, gardé pour les recettes) */
.numeros, .preparation { counter-reset: prep; }
.numeros li, .preparation li { counter-increment: prep; position: relative; padding-left: 34px; margin-bottom: 10px; font-size: 16px; }
.numeros li:last-child, .preparation li:last-child { margin-bottom: 0; }
.numeros li::before, .preparation li::before {
  content: counter(prep); position: absolute; left: 0; top: 0.05em;
  width: 24px; height: 24px; border-radius: 6px; background: var(--noir); color: #FFFFFF;
  font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
@media print {
  .numeros li::before, .preparation li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.4 Citation (ses mots, tels quels) ----------
   <figure class="citation">
     <blockquote><p>Une organisation peut être parfaite sur le papier…</p></blockquote>
     <figcaption>Romain</figcaption>
   </figure> */
.citation { margin: 0; padding: 4px 0 0 0; position: relative; }
.citation blockquote {
  margin: 0; padding: 0 0 0 22px; border-left: 4px solid var(--orange);
  font-size: 20px; line-height: 1.45; font-weight: 650; color: var(--encre);
}
.citation figcaption {
  margin-top: 10px; padding-left: 26px;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--orange-encre);
}
@media (min-width: 720px) { .citation blockquote { font-size: 23px; padding-left: 28px; } .citation figcaption { padding-left: 32px; } }
@media print {
  .citation { break-inside: avoid; }
  .citation blockquote { font-size: 12.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.5 Consignes (2 ou 4 petites cases : un mot en gras, une demi-phrase) ----------
   <ul class="consignes"><li><b>Lentement</b>En respirant régulièrement.</li>…</ul>
   Avec 3 cases : class="large" sur la dernière. */
.consignes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consignes li {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  padding: 14px 14px 13px; font-size: 15px; line-height: 1.4; color: var(--encre-2);
}
.consignes li b {
  display: block; margin-bottom: 3px;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 17px; line-height: 1.1; color: var(--encre);
}
.consignes li.large { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .consignes { grid-template-columns: repeat(4, 1fr); }
  .consignes li.large { grid-column: span 2; }
}
@media print {
  .consignes { grid-template-columns: repeat(4, 1fr); gap: 3mm; }
  .consignes li { padding: 3mm; font-size: 9.5pt; border-color: #CCCCCC; }
  .consignes li b { font-size: 11pt; }
}

/* ---------- 3.6 Cadre (2 à 4 cases repères : fréquence, durée, repos, moment) ----------
   <div class="cadre"><div><strong>2 à 3&nbsp;fois</strong><span>par semaine</span></div>…</div> */
.cadre { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cadre div {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 14px;
}
.cadre strong {
  display: block; font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 20px; line-height: 1.05; margin-bottom: 4px;
}
.cadre span { font-size: 14.5px; color: var(--encre-2); line-height: 1.4; display: block; }
@media print { .cadre div { border-color: #CCCCCC; } }

/* ---------- 3.7 Chiffres clés (2 à 4 repères chiffrés en grand) ----------
   <ul class="chiffres">
     <li><strong>1,6 à 2&nbsp;g</strong><span>par kilo de poids de corps et par jour</span></li>
   </ul>
   Seulement des chiffres donnés par Romain. */
.chiffres {
  display: grid; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden;
}
.chiffres li {
  display: grid; grid-template-columns: minmax(7.2em, 42%) 1fr; gap: 14px; align-items: center;
  padding: 15px 18px; position: relative;
}
.chiffres li + li { border-top: 1px solid var(--trait); }
.chiffres li::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  background: var(--orange); transform: skewY(-14deg);
}
.chiffres strong {
  display: block;
  font-family: var(--titres); font-style: italic; font-weight: 900;
  font-size: 26px; line-height: 1; color: var(--encre); font-variant-numeric: lining-nums;
}
.chiffres span { display: block; font-size: 14.5px; line-height: 1.4; color: var(--encre-2); }
@media (min-width: 720px) {
  .chiffres { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .chiffres li { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 22px 22px 20px; }
  .chiffres li + li { border-top: 0; border-left: 1px solid var(--trait); }
  .chiffres li::before { left: 22px; top: 0; bottom: auto; width: 26px; height: 5px; transform: skewX(-14deg); }
  .chiffres strong { font-size: 32px; }
}
@media print {
  .chiffres { grid-auto-flow: column; grid-auto-columns: 1fr; border-color: #CCCCCC; break-inside: avoid; }
  .chiffres li { grid-template-columns: 1fr; gap: 1mm; padding: 3mm 4mm; }
  .chiffres li + li { border-top: 0; border-left: 1pt solid #CCCCCC; }
  .chiffres li::before { display: none; }
  .chiffres strong { font-size: 18pt; }
  .chiffres span { font-size: 9.5pt; }
}

/* ---------- 3.8 Étapes (une carte numérotée par mouvement, étape, séance, jour) ----------
   <ol class="etapes">
     <li class="etape">
       <div class="etape-tete">
         <span class="etape-num">1</span>
         <div><h3>Nom</h3><span class="repere">La dose</span></div>
       </div>
       <ul class="puces">…</ul>                  (ou <p>, ou <ul class="exercices">)
       <p class="geste"><b>Astuce</b> …</p>       (facultatif)
     </li>
   </ol>
   Le numéro peut être un jour (« J1 ») ou une semaine (« S1 ») : il reste court.
   Exercices dosés, dans une étape :
   <ul class="exercices"><li><span class="ex-nom">Curls</span><span class="ex-dose">3 × 10</span>
     <span class="ex-note">facultatif</span></li></ul> */
.etapes { counter-reset: etape; display: grid; gap: 12px; }
.etape {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 20px 18px 20px; position: relative;
  break-inside: avoid;
}
.etape-tete { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.etape-num {
  flex: none; width: 38px;
  font-family: var(--titres); font-style: italic; font-weight: 900;
  font-size: 42px; line-height: 0.9; color: var(--orange);
  font-variant-numeric: lining-nums tabular-nums;
}
.etape h3 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 21px; line-height: 1.08; padding-top: 3px;
}
.etape .repere {
  display: inline-block; margin-top: 8px;
  background: var(--noir); color: #FFFFFF; border-radius: 6px;
  padding: 3px 9px 4px; font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em;
}
.etape .puces { font-size: 16px; color: var(--encre); }
.etape .geste {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--trait);
  font-size: 15px; color: var(--encre-2);
}
.etape .geste b { color: var(--orange-encre); font-weight: 750; }
.exercices { margin-top: 4px; }
.exercices li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--trait);
}
.exercices li:last-child { border-bottom: 0; padding-bottom: 0; }
.exercices .ex-nom { font-weight: 750; font-size: 16px; line-height: 1.3; }
.exercices .ex-dose { font-weight: 750; font-size: 14.5px; color: var(--orange-encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.exercices .ex-note { grid-column: 1 / -1; font-size: 15px; color: var(--encre-2); line-height: 1.45; }
@media (min-width: 720px) {
  .etape { padding: 26px 28px; }
  .etape-num { width: 50px; font-size: 52px; }
  .etape h3 { font-size: 24px; }
}
@media print {
  .etapes { grid-template-columns: 1fr 1fr; gap: 3mm; }
  .etape { padding: 3.5mm 4.5mm; border-color: #CCCCCC; box-shadow: none; }
  .etape-tete { margin-bottom: 2mm; }
  .etape-num { font-size: 26pt; width: 12mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .etape h3 { font-size: 13pt; }
  .etape .repere { background: none; color: #000000; border: 1pt solid #000000; }
}

/* ---------- 3.9 Principes (une carte numérotée par idée, avec son chiffre repère) ----------
   <ol class="principes">
     <li class="principe">
       <div class="principe-tete"><span class="etape-num">1</span><h3>Titre</h3></div>
       <div class="chiffre"><strong>10 à 20&#8239;%</strong><span>légende</span></div>   (facultatif)
       <p>…</p>
     </li>
   </ol> */
.principes { display: grid; gap: 12px; }
.principe {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 20px 18px; break-inside: avoid;
}
.principe-tete { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.principe h3 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 21px; line-height: 1.08; padding-top: 3px;
}
.chiffre {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--papier);
}
.chiffre strong {
  font-family: var(--titres); font-style: italic; font-weight: 900;
  font-size: 30px; line-height: 1; color: var(--orange-encre); white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.chiffre span { font-size: 14.5px; color: var(--encre-2); line-height: 1.35; }
@media (min-width: 720px) {
  .principe { padding: 26px 28px; }
  .principe h3 { font-size: 24px; }
}
@media print {
  .principe { padding: 3.5mm 4.5mm; border-color: #CCCCCC; box-shadow: none; }
  .principe h3 { font-size: 13pt; }
}

/* ---------- 3.10 Cartes (cartes libres : un titre, un texte ; pour tout ce qui n'est ni une étape ni un principe) ----------
   <div class="cartes">                       (class="cartes deux" : 2 colonnes sur grand écran)
     <article class="carte">
       <span class="etiquette">Épaules</span>   (facultatif)
       <h3>Titre</h3>
       <p>…</p>                                  (ou <ul class="puces">)
     </article>
   </div> */
.cartes { display: grid; gap: 12px; }
.carte {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 18px 18px 18px; break-inside: avoid;
}
.carte h3 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 20px; line-height: 1.08; margin-bottom: 10px;
}
.carte > :last-child { margin-bottom: 0; }
.carte .puces { font-size: 16px; }
@media (min-width: 720px) {
  .cartes.deux { grid-template-columns: 1fr 1fr; }
  .carte { padding: 22px 24px; }
  .carte h3 { font-size: 22px; }
}
@media print {
  .cartes.deux { grid-template-columns: 1fr 1fr; gap: 3mm; }
  .carte { padding: 3.5mm 4.5mm; border-color: #CCCCCC; }
  .carte h3 { font-size: 12.5pt; margin-bottom: 1.5mm; }
}

/* ---------- 3.11 Idées reçues (« On croit » en noir, « En vrai » en dessous) ----------
   <div class="recues"><div class="recue">
     <div class="on-croit"><small>On croit</small>L'idée reçue</div>
     <div class="en-vrai"><small>En vrai</small>Ce que dit Romain</div>
   </div></div>
   Les deux libellés peuvent changer (« Tu fais » / « Fais plutôt »). */
.recues { display: grid; gap: 12px; }
.recue { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); background: var(--carte); break-inside: avoid; }
.recue .on-croit {
  padding: 14px 18px; background: var(--noir); color: var(--clair);
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 18px; line-height: 1.15;
}
.recue .on-croit small, .recue .en-vrai small {
  display: block; margin-bottom: 4px;
  font-family: var(--texte); font-style: normal; font-weight: 700; text-transform: uppercase;
  font-size: 11.5px; letter-spacing: 0.1em; color: var(--clair-2);
}
.recue .en-vrai { padding: 14px 18px 16px; font-size: 16px; }
.recue .en-vrai small { color: var(--orange-encre); }
@media print {
  .recue { border-color: #CCCCCC; }
  .recue .on-croit { background: none; color: #000000; border-bottom: 1pt solid #CCCCCC; }
  .recue .on-croit small { color: #000000; }
}

/* ---------- 3.12 Comparatif (deux colonnes : avant / après, à éviter / à faire, maison / salle) ----------
   <div class="comparatif">
     <div class="cote"><p class="cote-titre">Sans avance</p><ul class="puces">…</ul></div>
     <div class="cote fort"><p class="cote-titre">Avec de l'avance</p><ul class="puces">…</ul></div>
   </div>
   L'ordre : le côté qu'on quitte d'abord, le côté que Romain conseille ensuite (class="fort").
   Deux côtés neutres : pas de class="fort". */
.comparatif { display: grid; gap: 10px; }
.cote {
  border-radius: var(--rayon); padding: 18px 18px 20px;
  background: var(--papier-2); border: 1px solid var(--trait);
  break-inside: avoid;
}
.cote-titre {
  margin: 0 0 12px; display: flex; align-items: center; gap: 9px;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 18px; line-height: 1.1; color: var(--encre);
}
.cote-titre::before { content: ""; flex: none; width: 14px; height: 4px; background: var(--trait-fort); transform: skewX(-14deg); }
.cote .puces li::before { background: var(--trait-fort); }
.cote .puces { font-size: 16px; color: var(--encre); }
.cote.fort { background: var(--noir); border-color: var(--noir); color: var(--clair); }
.cote.fort .cote-titre { color: #FFFFFF; }
.cote.fort .cote-titre::before, .cote.fort .puces li::before { background: var(--orange); }
.cote.fort .puces { color: var(--clair); }
.cote.fort strong { color: #FFFFFF; }
@media (min-width: 720px) {
  .comparatif { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cote { padding: 22px 24px 24px; }
}
@media print {
  .comparatif { grid-template-columns: 1fr 1fr; gap: 3mm; }
  .cote, .cote.fort { background: none; color: #000000; border: 1pt solid #CCCCCC; padding: 3.5mm 4.5mm; }
  .cote.fort { border: 1.5pt solid var(--orange); }
  .cote.fort .cote-titre, .cote.fort .puces, .cote.fort strong { color: #000000; }
  .cote-titre { font-size: 12pt; margin-bottom: 2mm; }
  .cote-titre::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.13 À retenir (résumé sur fond noir, 3 à 5 lignes) ----------
   <div class="retenir"><h2 class="titre-bloc"><span class="num">03</span>À retenir</h2>
     <ul class="puces"><li><strong>…</strong> …</li></ul></div> */
.retenir {
  background: var(--noir); color: var(--clair); border-radius: var(--rayon);
  padding: 22px 20px; break-inside: avoid;
}
.retenir .titre-bloc { color: #FFFFFF; margin-bottom: 14px; }
.retenir .titre-bloc .num { color: var(--orange); }
.retenir .puces li { color: var(--clair); }
.retenir .puces li strong { color: #FFFFFF; }
@media (min-width: 720px) { .retenir { padding: 30px 32px; } }
@media print {
  .retenir { background: none; color: #000000; border: 1pt solid #CCCCCC; }
  .retenir .titre-bloc, .retenir .puces li, .retenir .puces li strong { color: #000000; }
}

/* ---------- 3.14 Encadré (prudence, astuce, rappel) ----------
   <div class="encart"><b class="titre-encart">Si ça gêne</b>Sa consigne.</div> */
.encart {
  background: var(--orange-pale); border-radius: var(--rayon-petit);
  padding: 16px 18px 16px 20px; position: relative; overflow: hidden;
  font-size: 15.5px; line-height: 1.55;
  break-inside: avoid;
}
.encart::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.encart b.titre-encart {
  display: block; margin-bottom: 4px;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.06em; color: var(--orange-encre);
}
@media print {
  .encart { background: none; border: 1pt solid var(--orange); }
  .encart::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.15 Lien vers sa vidéo (son reel qui montre) ----------
   <a class="video" href="https://www.instagram.com/reel/<code>/">
     <span class="lecture" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M3 1.5v13l11-6.5z"/></svg></span>
     <span><span class="v-titre">Regarde la routine en vidéo</span><span class="v-sous">…</span></span>
   </a> */
.video {
  display: flex; align-items: center; gap: 14px;
  background: var(--noir); color: var(--clair); text-decoration: none;
  border-radius: var(--rayon); padding: 14px 16px;
  transition: transform 200ms var(--courbe);
}
.video:active { transform: scale(0.985); }
.video .lecture {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); display: grid; place-items: center;
}
.video .lecture svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--noir); }
.video span { display: block; line-height: 1.3; }
.video .v-titre { font-weight: 750; font-size: 16px; color: #FFFFFF; }
.video .v-sous { font-size: 14px; color: var(--clair-2); }
@media print {
  .video { display: block; background: none; color: #000000; border: 1pt solid #CCCCCC; padding: 3mm 4mm; animation: none !important; }
  .video .lecture { display: none; }
  .video .v-titre { color: #000000; }
  .video .v-sous { color: #444444; }
  .video::after { content: attr(href); display: block; margin-top: 1mm; font-size: 8.5pt; color: #444444; word-break: break-all; }
}

/* ---------- 3.16 Sommaire (raccourcis vers les parties d'une page longue, à partir de 3 parties) ----------
   <nav class="sommaire" aria-label="…"><a href="#id-de-la-partie">…</a>…</nav> */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a {
  text-decoration: none; border: 1px solid var(--trait); background: var(--carte);
  border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 650;
}
[id] { scroll-margin-top: 16px; }
@media print { .sommaire { display: none; } }

/* ---------- 3.17 Tableau (repères en lignes et colonnes ; défile dans sa boîte, jamais la page) ----------
   <div class="tableau" role="region" aria-label="Ce que montre le tableau" tabindex="0">
     <table>
       <thead><tr><th scope="col">…</th><th scope="col">…</th></tr></thead>
       <tbody><tr><th scope="row">…</th><td>…</td></tr></tbody>
     </table>
   </div>
   Au téléphone : 4 colonnes au plus, textes courts. Tableau à remplir à la main ou à cocher
   (suivi sur une semaine) : class="tableau a-remplir", cellules vides ou une case
   <input type="checkbox" class="case" aria-label="Lundi, séance"> par cellule. */
.tableau {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tableau table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tableau th, .tableau td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tableau thead th {
  background: var(--noir); color: #FFFFFF; vertical-align: bottom;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; white-space: nowrap;
}
.tableau tbody th { font-weight: 750; color: var(--encre); }
.tableau td { color: var(--encre-2); font-variant-numeric: tabular-nums; }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau.a-remplir th, .tableau.a-remplir td { border-right: 1px solid var(--trait); }
.tableau.a-remplir tr > :last-child { border-right: 0; }
.tableau.a-remplir thead th { text-align: center; padding: 10px 4px; }
.tableau.a-remplir thead th:first-child { text-align: left; padding-left: 12px; }
.tableau.a-remplir tbody th { font-size: 14px; line-height: 1.3; padding: 10px 8px 10px 12px; width: 1%; white-space: nowrap; }
.tableau.a-remplir td { text-align: center; vertical-align: middle; height: 46px; padding: 4px 2px; }
.tableau.a-remplir thead th:not(:first-child) { font-size: 10px; letter-spacing: 0.03em; }
.tableau .col-num {   /* <th><span class="col-num">1</span>Nuque</th> : le numéro de l'étape au-dessus */
  display: block; width: 22px; height: 22px; margin: 0 auto 5px; border-radius: 4px;
  background: var(--orange); color: var(--noir); transform: skewX(-10deg);
  font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 14px; line-height: 22px; letter-spacing: 0;
}
.tableau abbr { text-decoration: none; }
@media (min-width: 720px) {
  .tableau table { font-size: 16px; }
  .tableau th, .tableau td { padding: 13px 16px; }
}
@media print {
  .tableau { overflow: visible; border-color: #CCCCCC; break-inside: avoid; }
  .tableau table { font-size: 9.5pt; }
  .tableau th, .tableau td { padding: 2mm 2.5mm; border-color: #CCCCCC; }
  .tableau thead th { background: none; color: #000000; border-bottom: 1.5pt solid #000000; }
  .tableau.a-remplir td { height: 10mm; }
  .tableau .col-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.18 Checklist (cases à cocher au téléphone, cases vides sur papier) ----------
   <div class="checklist">                          (+ data-memoire="courses" : les cases restent
     <div class="checklist-groupe">                    cochées sur ce téléphone ; demande le script)
       <h3>Laitages</h3>                                (facultatif, avec ou sans groupes)
       <p class="checklist-note">…</p>                  (facultatif)
       <ul>
         <li><label><input type="checkbox" value="sere"><span>Séré maigre</span></label></li>
       </ul>
     </div>
     <button type="button" class="effacer js-seulement" data-effacer>Tout décocher</button>   (avec data-memoire)
   </div>
   Sans groupes : <ul> directement dans .checklist. Une case = un élément, 8 mots au plus.
   value : un mot court et unique par case (la mémoire s'en sert). */
.checklist { display: grid; gap: 12px; }
.checklist-groupe {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 16px 18px 8px; break-inside: avoid;
}
.checklist > ul {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 6px 18px;
}
.checklist h3 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 19px; line-height: 1.1;
}
.checklist-note { margin: 4px 0 6px; font-size: 14.5px; line-height: 1.45; color: var(--encre-2); }
.checklist li + li { border-top: 1px solid var(--trait); }
.checklist label {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 8px 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-size: 16.5px; line-height: 1.35; font-weight: 600;
}
.checklist input[type="checkbox"], .tableau input.case {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 26px; height: 26px; border-radius: 7px;
  border: 2px solid var(--trait-fort); background: var(--carte);
  display: inline-grid; place-content: center; cursor: pointer;
  transition: background-color 160ms var(--courbe), border-color 160ms var(--courbe), transform 160ms var(--courbe);
}
.checklist input[type="checkbox"]:checked, .tableau input.case:checked {
  background: var(--orange) url("/assets/coche.svg") center / 16px 16px no-repeat;
  border-color: var(--orange);
}
.checklist input[type="checkbox"]:active, .tableau input.case:active { transform: scale(0.92); }
.checklist label > span { transition: color 160ms var(--courbe); }
.checklist label > span:not(.val) { flex: 1; }
.checklist label:has(input:checked) > span:not(.val) { color: var(--encre-2); text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.checklist .val {   /* une valeur à droite de la case (protéines pour 100 g, quantité…) */
  flex: none; font-size: 14px; font-weight: 750; color: var(--orange-encre);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.effacer {
  justify-self: start; margin-top: 2px;
  background: none; border: 1px solid var(--trait-fort); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: var(--encre); cursor: pointer;
}
.effacer:active { transform: scale(0.98); }
.tableau + .effacer { margin-top: 12px; }
.js-seulement { display: none; }
.js .js-seulement { display: revert; }
.js .effacer.js-seulement { display: inline-block; }
/* Variante pastilles (choisir ce qu'on aime, sans liste à rallonge) : class="checklist pastilles" */
.checklist.pastilles .checklist-groupe { padding: 14px 14px 16px; }
.checklist.pastilles h3 { font-size: 15px; letter-spacing: 0.02em; color: var(--encre-2); margin-bottom: 10px; }
.checklist.pastilles ul { display: flex; flex-wrap: wrap; gap: 8px; }
.checklist.pastilles li + li { border-top: 0; }
.checklist.pastilles label {
  min-height: 44px; padding: 8px 15px 8px 9px; gap: 9px; border-radius: 999px;
  border: 1.5px solid var(--trait-fort); background: var(--carte); font-size: 15.5px; font-weight: 650;
  transition: background-color 160ms var(--courbe), border-color 160ms var(--courbe), color 160ms var(--courbe);
}
.checklist.pastilles input[type="checkbox"] { width: 22px; height: 22px; border-radius: 50%; background-size: 13px 13px; }
.checklist.pastilles label:has(input:checked) { background: var(--noir); border-color: var(--noir); color: #FFFFFF; }
.checklist.pastilles label:has(input:checked) > span:not(.val) { text-decoration: none; color: #FFFFFF; }
.checklist.pastilles label > span:not(.val) { flex: none; }
@media (min-width: 720px) {
  .checklist.deux { display: block; columns: 2; column-gap: 12px; }
  .checklist.deux > * { break-inside: avoid; margin-bottom: 12px; }
  .checklist.deux > .effacer { column-span: all; margin: 0; }
}
@media print {
  .checklist { display: block; columns: 2; column-gap: 5mm; }
  .checklist-groupe, .checklist > ul { border-color: #CCCCCC; padding: 2.5mm 4mm 1mm; margin-bottom: 3mm; break-inside: avoid; }
  .checklist h3 { font-size: 11.5pt; }
  .checklist-note { font-size: 9pt; margin: 0.5mm 0 1mm; }
  .checklist label { min-height: 0; padding: 1.4mm 0; font-size: 10.5pt; gap: 3mm; }
  .checklist input[type="checkbox"], .tableau input.case { width: 4.2mm; height: 4.2mm; border-width: 1pt; border-color: #555555; border-radius: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .checklist input[type="checkbox"]:checked, .tableau input.case:checked { background-size: 3mm 3mm; }
}

/* ---------- 3.19 Questions (FAQ repliable : la réponse s'ouvre au toucher) ----------
   <div class="questions">
     <details class="question">
       <summary>La question, dans les mots des gens&#8239;?</summary>
       <div class="reponse"><p>La réponse de Romain.</p></div>
     </details>
   </div>
   Sans script. Toutes les réponses s'impriment ouvertes. */
.questions { display: grid; gap: 10px; }
.question {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  break-inside: avoid;
}
.question summary {
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 15px 16px 15px 18px; font-weight: 750; font-size: 16.5px; line-height: 1.35;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: -2px; border-radius: 50%;
  background:
    linear-gradient(var(--noir), var(--noir)) center / 11px 2px no-repeat,
    linear-gradient(var(--noir), var(--noir)) center / 2px 11px no-repeat,
    var(--papier-2);
  transition: transform 260ms var(--courbe), background-color 200ms var(--courbe);
}
.question[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.question .reponse { padding: 0 18px 16px; font-size: 16px; color: var(--encre-2); }
.question .reponse > :first-child { padding-top: 12px; border-top: 1px dashed var(--trait); }
@media print {
  .question { border-color: #CCCCCC; }
  .question summary { padding: 2.5mm 4mm 1mm; font-size: 11pt; }
  .question summary::after { display: none; }
  .question::details-content { content-visibility: visible; display: block; }
  .question .reponse { display: block; padding: 0 4mm 2.5mm; font-size: 10pt; color: #222222; }
  .question .reponse > :first-child { border-top: 0; padding-top: 0; }
}

/* ---------- 3.20 Recette (en-tête, valeurs, ingrédients, préparation, astuce) ----------
   <article class="recette" id="…">
     <div class="recette-tete"><span class="num">Recette 1</span><h3>Nom</h3><p>Pour quel moment</p></div>
     <div class="valeurs"><div><strong>2&nbsp;min</strong><span>Préparation</span></div>…</div>
     <div class="recette-corps">
       <div><h4>Ingrédients</h4><ul class="ingredients">
         <li><span class="qte">100&nbsp;g</span><span>de fruits congelés</span></li></ul></div>
       <div><h4>Préparation</h4><ol class="preparation"><li>…</li></ol></div>
     </div>
     <div class="encart astuce"><b class="titre-encart">Astuce</b>…</div>   (facultatif)
   </article>
   Le bandeau .valeurs s'emploie aussi seul (2 à 4 valeurs) dans n'importe quelle carte. */
.recette {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; margin-bottom: 16px;
}
.recette-tete { padding: 20px 18px 16px; border-bottom: 1px solid var(--trait); }
.recette-tete .num { font-size: 13px; letter-spacing: 0.1em; font-weight: 800; color: var(--orange-encre); text-transform: uppercase; }
.recette h3 {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 23px; line-height: 1.06; margin: 4px 0 8px;
}
.recette-tete p { color: var(--encre-2); font-size: 15.5px; }
.valeurs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px;
  background: var(--trait); border-bottom: 1px solid var(--trait);
}
.valeurs div { padding: 12px 10px; text-align: center; background: var(--carte); }
@media (max-width: 719px) { .valeurs div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.valeurs strong {
  display: block; font-family: var(--titres); font-style: italic; font-weight: 900;
  font-size: 22px; line-height: 1.05; color: var(--encre); font-variant-numeric: lining-nums;
}
.valeurs span { overflow-wrap: normal; font-size: 12.5px; color: var(--encre-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.recette-corps { padding: 18px; display: grid; gap: 20px; }
.recette-corps h4 {
  margin: 0 0 10px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--orange-encre);
}
.recette-corps * + h4 { margin-top: 20px; }
.ingredients li {
  display: grid; grid-template-columns: 5.6em 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--trait); font-size: 16px; line-height: 1.35;
}
.ingredients li:last-child { border-bottom: 0; }
.ingredients .qte { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recette .astuce { margin: 0 18px 18px; }
@media (min-width: 720px) {
  .recette-corps { grid-template-columns: 1fr 1.15fr; gap: 28px; padding: 24px 26px; }
  .recette-tete { padding: 24px 26px 18px; }
  .recette .astuce { margin: 0 26px 26px; }
}
@media print {
  .recette { break-inside: avoid; border-color: #CCCCCC; }
}

/* ---------- 3.21 Calculateur (interactif : demande le script, voir references/page.md) ----------
   <div class="calculateur" data-calcul>
     <div class="calc-champs">
       <label class="champ">
         <span class="champ-nom">Ton poids</span>
         <span class="champ-saisie"><input type="number" inputmode="numeric" min="35" max="200" step="1"
           value="80" data-entree="poids"><span class="unite">kg</span></span>
       </label>
     </div>
     <div class="calc-resultat" aria-live="polite">
       <p class="calc-chiffre"><output data-formule="arrondi(poids * 1.6, 5)">130</output>
         à <output data-formule="arrondi(poids * 2, 5)">160</output>&nbsp;g</p>
       <p class="calc-legende">de protéines par jour, environ</p>
     </div>
     <p class="calc-erreur" hidden>Entre un poids entre 35 et 200&nbsp;kg.</p>
     <p class="calc-formule">Le calcul&nbsp;: ton poids × 1,6, puis × 2.</p>
   </div>
   Le texte de chaque <output> est le résultat pour les valeurs de départ : il s'affiche sans
   script et sur papier (le vérificateur le recalcule). */
.calculateur {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 18px; display: grid; gap: 14px; break-inside: avoid;
}
.calc-champs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.champ { display: grid; gap: 6px; }
.champ-nom { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: var(--encre-2); line-height: 1.3; }
.champ-saisie {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--trait); border-radius: var(--rayon-petit); background: var(--papier);
  padding: 0 14px; min-height: 58px;
  transition: border-color 160ms var(--courbe), background-color 160ms var(--courbe);
}
.champ-saisie:focus-within { border-color: var(--orange); background: var(--carte); }
.champ-saisie input, .champ-saisie select {
  flex: 1; min-width: 0; width: 100%; border: 0; background: none; padding: 10px 0; outline: none;
  font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 28px; line-height: 1;
  color: var(--encre); font-variant-numeric: lining-nums tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.champ-saisie select { font-family: var(--texte); font-style: normal; font-weight: 700; font-size: 17px; appearance: auto; }
.champ-saisie input::-webkit-outer-spin-button, .champ-saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.champ-saisie .unite { flex: none; font-weight: 750; font-size: 15px; color: var(--encre-2); }
.calc-resultat {
  background: var(--noir); color: var(--clair); border-radius: var(--rayon-petit);
  padding: 18px 18px 17px; position: relative; overflow: hidden;
}
.calc-resultat::before { content: ""; position: absolute; top: 0; bottom: 0; right: -18%; width: 40%; background: rgba(255, 255, 255, 0.035); transform: skewX(-18deg); pointer-events: none; }
.calc-chiffre {
  position: relative; margin: 0;
  font-family: var(--titres); font-style: italic; font-weight: 900;
  font-size: clamp(34px, 10vw, 46px); line-height: 1; color: #FFFFFF; font-variant-numeric: lining-nums;
}
.calc-chiffre output { color: var(--orange); }
.calc-legende { position: relative; margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--clair-2); }
.calc-erreur { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--orange-encre); }
.calculateur.est-invalide .calc-chiffre output { color: var(--clair-2); }
.calc-formule { margin: 0; font-size: 14px; color: var(--encre-2); }
@media (min-width: 720px) {
  .calculateur { padding: 24px; gap: 16px; }
  .calc-resultat { padding: 22px 24px; }
}
@media print {
  .calculateur { border-color: #CCCCCC; padding: 4mm; gap: 3mm; }
  .champ-saisie { background: none; border-color: #CCCCCC; min-height: 0; padding: 1mm 3mm; }
  .champ-saisie input, .champ-saisie select { font-size: 16pt; padding: 1mm 0; }
  .calc-resultat { background: none; color: #000000; border: 1.5pt solid var(--orange); padding: 3mm 4mm; }
  .calc-resultat::before { display: none; }
  .calc-chiffre { color: #000000; font-size: 20pt; }
  .calc-chiffre output { color: var(--orange-encre); }
  .calc-legende { color: #333333; font-size: 10pt; }
  .calc-formule { font-size: 9.5pt; color: #333333; }
}


/* ---------- 3.22 Calculateur : lignes de saisie (construire une journée, une semaine) ----------
   Dans .calculateur, à la place de .calc-champs :
   <div class="calc-lignes">
     <div class="calc-ligne">
       <span class="calc-ligne-nom">Petit déjeuner</span>
       <output class="calc-ligne-total" data-formule="arrondi(a1 * q1 / 100)">27</output>
       <label class="champ"><span class="champ-nom">Aliment</span><span class="champ-saisie">
         <select data-entree="a1"><option value="10.6" selected>Séré maigre</option>…</select></span></label>
       <label class="champ"><span class="champ-nom">Quantité</span><span class="champ-saisie">
         <input type="number" … data-entree="q1"><span class="unite">g</span></span></label>
     </div>
   </div>
   Jauge (dans .calc-resultat) : <div class="jauge js-seulement"><span class="jauge-barre" data-jauge="…"></span></div> */
.calc-lignes { display: grid; gap: 10px; }
.calc-ligne {
  display: grid; grid-template-columns: 1fr 6.6em; gap: 8px 10px; align-items: end;
  padding: 12px 12px 14px; border-radius: var(--rayon-petit); background: var(--papier);
}
.calc-ligne-nom {
  align-self: center;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 16px; line-height: 1.1;
}
.calc-ligne-total {
  align-self: center; justify-self: end;
  font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 20px; line-height: 1;
  color: var(--orange-encre); font-variant-numeric: lining-nums tabular-nums;
}
.calc-ligne-total::after { content: "\00a0g"; font-size: 14px; }
.calc-ligne .champ:first-of-type { grid-column: 1 / 2; }
.calc-ligne .champ-saisie { background: var(--carte); min-height: 50px; padding: 0 12px; }
.calc-ligne .champ-saisie input { font-size: 22px; }
.calc-ligne .champ-nom { font-size: 11.5px; }
.jauge {
  position: relative; margin-top: 14px; height: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.jauge-barre {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--remplissage, 0%);
  background: var(--orange); border-radius: 999px;
  transition: width 420ms var(--courbe);
}
.js .jauge.js-seulement { display: block; }
@media (min-width: 720px) {
  .calc-ligne { grid-template-columns: 9.5em 1fr 8em auto; align-items: end; }
  .calc-ligne-nom { align-self: end; padding-bottom: 16px; }
  .calc-ligne .champ:first-of-type { grid-column: auto; }
  .calc-ligne-total { order: 4; align-self: end; padding-bottom: 14px; min-width: 3.2em; text-align: right; }
}
@media print {
  .calc-ligne { background: none; border: 1pt solid #CCCCCC; padding: 2mm 3mm; break-inside: avoid; }
  .calc-ligne .champ-saisie { min-height: 0; }
  .calc-ligne .champ-saisie input { font-size: 13pt; }
}

/* ---------- 3.23 Figure légendée (une photo ou une image tirée de sa vidéo) ----------
   <figure class="figure">
     <img src="/<slug>/img/<nom>.webp" alt="Ce qu'on voit" width="540" height="720" loading="lazy" decoding="async">
     <figcaption>Ce qu'il faut regarder sur l'image.</figcaption>
   </figure>
   class="figure etroite" : une image en hauteur centrée, moins large que la colonne. */
.figure { margin: 0; break-inside: avoid; }
.figure img { width: 100%; border-radius: var(--rayon); background: var(--papier-2); }
.figure.etroite { max-width: 380px; margin-inline: auto; }
.figure figcaption, .galerie figcaption {
  display: flex; gap: 9px; align-items: baseline; margin-top: 10px;
  font-size: 14.5px; line-height: 1.45; color: var(--encre-2);
}
.figure figcaption::before, .galerie figcaption::before {
  content: ""; flex: none; width: 12px; height: 4px; transform: translateY(-3px) skewX(-14deg); background: var(--orange);
}
@media print {
  .figure img { max-height: 90mm; width: auto; max-width: 100%; }
  .figure figcaption { font-size: 9pt; }
}

/* ---------- 3.24 Galerie (2 à 6 images légendées, en grille) ----------
   <div class="galerie">
     <figure><img …><figcaption>…</figcaption></figure>
   </div>
   Deux colonnes au téléphone, trois sur grand écran (class="galerie deux" : toujours deux ;
   class="galerie trois" : trois partout, légendes de 4 mots au plus). */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.galerie.trois { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.galerie figure { margin: 0; break-inside: avoid; }
.galerie img { width: 100%; border-radius: var(--rayon-petit); background: var(--papier-2); }
.galerie figcaption { font-size: 13.5px; margin-top: 7px; }
@media (min-width: 720px) {
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
  .galerie.deux { grid-template-columns: 1fr 1fr; }
  .galerie.trois { gap: 18px 14px; }
}
@media print {
  .galerie { grid-template-columns: repeat(4, 1fr); gap: 3mm; }
  .galerie figcaption { font-size: 8.5pt; }
}

/* ---------- 3.25 Avant / après (ou départ / arrivée d'un mouvement : deux images côte à côte) ----------
   <div class="avant-apres">
     <figure><img …><figcaption>Départ</figcaption></figure>
     <figure><img …><figcaption>Arrivée</figcaption></figure>
   </div>
   Les deux images ont le même format. Une transformation de client : seulement avec son accord,
   confirmé par Romain dans le chat. */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; break-inside: avoid; }
.avant-apres figure { margin: 0; position: relative; }
.avant-apres img { width: 100%; border-radius: var(--rayon-petit); background: var(--papier-2); }
.avant-apres figcaption {
  position: absolute; left: 10px; top: 10px;
  background: var(--noir); color: #FFFFFF; border-radius: 6px; padding: 4px 9px 5px;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.04em; line-height: 1.1;
}
.avant-apres figure + figure figcaption { background: var(--orange); color: var(--noir); }
@media print {
  .avant-apres { max-width: 120mm; }
  .avant-apres figcaption { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 3.26 Étape avec image (une carte d'étape avec son image, à côté) ----------
   <li class="etape avec-image" id="mouvement-1">
     <img class="etape-image" src="/<slug>/img/nuque.webp" alt="…" width="540" height="720" loading="lazy" decoding="async">
     <div class="etape-corps">
       <div class="etape-tete"><span class="etape-num">1</span><div><h3>Nuque</h3><span class="repere">5 par sens</span></div></div>
       <ul class="puces">…</ul>
     </div>
   </li>
   Images en hauteur (3:4) de préférence. */
.etape.avec-image { display: grid; grid-template-columns: 40% 1fr; padding: 0; overflow: hidden; }
.etape-image { width: 100%; height: 100%; object-fit: cover; background: var(--papier-2); }
.etape-corps { padding: 16px 14px 16px 16px; min-width: 0; }
.etape.avec-image .etape-tete { gap: 10px; margin-bottom: 10px; }
.etape.avec-image .etape-num { width: auto; min-width: 22px; font-size: 34px; }
.etape.avec-image h3 { font-size: 18px; }
.etape.avec-image .repere { font-size: 12.5px; padding: 2px 8px 3px; }
.etape.avec-image .puces { font-size: 14.5px; line-height: 1.45; }
.etape.avec-image .puces li { padding-left: 18px; margin-bottom: 7px; }
.etape.avec-image .puces li::before { left: 1px; width: 7px; height: 7px; }
@media (min-width: 720px) {
  .etape.avec-image { grid-template-columns: 190px 1fr; }
  .etape-corps { padding: 24px 26px; }
  .etape.avec-image .etape-num { font-size: 44px; }
  .etape.avec-image h3 { font-size: 22px; }
  .etape.avec-image .puces { font-size: 16px; }
}
@media print {
  .etape.avec-image { grid-template-columns: 26mm 1fr; padding: 0; }
  .etape-corps { padding: 3mm 4mm; }
  .etape.avec-image .etape-num { font-size: 20pt; }
  .etape.avec-image h3 { font-size: 12pt; }
  .etape.avec-image .puces { font-size: 9.5pt; }
}

/* ---------- 3.27 Frise (des étapes dans le temps : semaines, jours, phases) ----------
   <ol class="frise">
     <li><span class="frise-temps">Semaine 1</span><strong>Ce qu'on fait</strong><p>…</p></li>
   </ol>
   Verticale au téléphone, horizontale sur grand écran (4 étapes au plus). */
.frise { position: relative; display: grid; gap: 0; }
.frise li { position: relative; padding: 0 0 22px 34px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { /* le trait */
  content: ""; position: absolute; left: 8px; top: 6px; bottom: -6px; width: 2px; background: var(--trait);
}
.frise li:last-child::before { display: none; }
.frise li::after { /* le repère */
  content: ""; position: absolute; left: 1px; top: 3px; width: 16px; height: 16px;
  background: var(--orange); transform: skewX(-14deg); border-radius: 3px;
}
.frise .frise-temps { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--orange-encre); line-height: 1.3; }
.frise strong {
  display: block; margin: 3px 0 4px;
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 19px; line-height: 1.1;
}
.frise p { font-size: 15px; color: var(--encre-2); }
@media (min-width: 720px) {
  .frise { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
  .frise li { padding: 30px 0 0; }
  .frise li::before { left: 20px; right: -18px; top: 8px; bottom: auto; width: auto; height: 2px; }
  .frise li::after { left: 0; top: 0; }
}
@media print {
  .frise { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4mm; }
  .frise li { padding: 6mm 0 0; break-inside: avoid; }
  .frise li::before { left: 5mm; right: -4mm; top: 1.6mm; bottom: auto; width: auto; height: 1pt; }
  .frise li::after { left: 0; top: 0; width: 3.5mm; height: 3.5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .frise strong { font-size: 11pt; }
  .frise p { font-size: 9pt; }
}

/* ---------- 3.28 Schéma (un dessin SVG fait pour la ressource : silhouette, courbe, barres, assiette) ----------
   <figure class="schema">
     <svg viewBox="0 0 360 240" role="img" aria-labelledby="schema-1-titre">
       <title id="schema-1-titre">Ce que montre le schéma</title>
       … formes avec les classes ci-dessous, jamais de couleur écrite dans le dessin …
     </svg>
     <figcaption>…</figcaption>
   </figure>
   Classes du dessin : s-fond (aplat clair), s-fond-2 (aplat un cran plus foncé), s-trait (contour),
   s-trait-fin, s-pointille, s-orange (aplat orange), s-orange-trait, s-noir, s-blanc,
   s-texte, s-texte-fort, s-texte-blanc, s-titre (capitales italiques), s-chiffre (gros chiffre).
   Une zone cliquable : <a href="#id-de-l-etape" class="s-lien"><rect class="s-zone" …/>…</a> (aller à l'étape,
   sans script ; le rect s-zone, invisible, couvre le repère et son libellé pour le doigt).
   Recettes de dessin dans references/page.md. */
.schema { margin: 0; break-inside: avoid; }
.schema svg { display: block; width: 100%; max-width: 560px; margin-inline: auto; height: auto; overflow: visible; }
.schema.encadre { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 14px 14px; }
.schema figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--encre-2); }
.schema .s-fond { fill: var(--papier-2); }
.schema .s-fond-2 { fill: var(--trait); }
.schema .s-carte { fill: var(--carte); }
.schema .s-trait { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schema .s-trait-fin { fill: none; stroke: var(--trait-fort); stroke-width: 1.2; stroke-linecap: round; }
.schema .s-pointille { fill: none; stroke: var(--trait-fort); stroke-width: 1.4; stroke-dasharray: 3 4; stroke-linecap: round; }
.schema .s-orange { fill: var(--orange); }
.schema .s-orange-pale { fill: var(--orange-pale); }
.schema .s-orange-trait { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.schema .s-noir { fill: var(--noir); }
.schema .s-blanc { fill: #FFFFFF; }
.schema .s-texte { fill: var(--encre-2); font-family: var(--texte); font-size: 12px; font-weight: 600; }
.schema .s-texte-fort { fill: var(--encre); font-family: var(--texte); font-size: 13px; font-weight: 800; }
.schema .s-texte-blanc { fill: #FFFFFF; font-family: var(--texte); font-size: 12px; font-weight: 800; }
.schema .s-titre { fill: var(--encre); font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 14px; text-transform: uppercase; }
.schema .s-chiffre { fill: var(--noir); font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 15px; }
.schema .s-milieu { text-anchor: middle; }
.schema .s-fin { text-anchor: end; }
.schema .s-lien { cursor: pointer; }
.schema .s-zone { fill: transparent; }   /* agrandit la zone qu'on touche : un rect s-zone en premier dans le lien */
.schema .s-lien:focus-visible { outline: none; }
.schema .s-lien:focus-visible .s-orange, .schema .s-lien:hover .s-orange { fill: var(--noir); }
.schema .s-lien:focus-visible .s-chiffre, .schema .s-lien:hover .s-chiffre { fill: var(--orange); }
.schema .s-lien .s-orange, .schema .s-lien .s-chiffre { transition: fill 160ms var(--courbe); }
@media print {
  .schema { max-width: 100mm; }
  .schema svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .schema figcaption { font-size: 9pt; }
}

/* ---------- 3.29 Sources (les données qui ne viennent pas de Romain, toujours citées) ----------
   <div class="sources"><p class="sources-titre">Sources</p>
     <ol><li>Base de données suisse des valeurs nutritives, OSAV, version 7.1 (2026).
       <a href="https://naehrwertdaten.ch/fr/">naehrwertdaten.ch</a></li></ol></div>
   Tout en bas du corps, juste avant le pont. Rien d'externe n'entre dans une page sans être
   passé par la validation de Romain. */
.sources { font-size: 13.5px; line-height: 1.5; color: var(--encre-2); }
.sources-titre { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--encre); }
.sources ol { list-style: decimal; padding-left: 1.3em; }
.sources li + li { margin-top: 4px; }
.sources a { color: var(--orange-encre); text-underline-offset: 2px; }
.appel { font-size: 0.72em; font-weight: 800; color: var(--orange-encre); vertical-align: super; line-height: 0; text-decoration: none; }
@media print { .sources { font-size: 8.5pt; } .sources a::after { content: " (" attr(href) ")"; word-break: break-all; } }

/* ---------- 3.30 À valider (PAGES D'EXEMPLE SEULEMENT) ----------
   <div class="a-valider"> … un bloc dont le contenu ne vient pas de Romain … </div>
   Dans une vraie ressource, tout est validé par Romain avant publication : ce bloc y est
   interdit (le vérificateur le refuse hors de site/_exemples/). */
.a-valider { position: relative; border: 1.5px dashed var(--orange); border-radius: calc(var(--rayon) + 6px); padding: 28px 8px 8px; }
.a-valider::before {
  content: "À valider par Romain · source citée"; position: absolute; left: 12px; top: -1px; transform: translateY(-50%);
  background: var(--papier); padding: 0 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 800; color: var(--orange-encre); white-space: nowrap;
}
@media print { .a-valider { border: 0; padding: 0; } .a-valider::before { display: none; } }


/* ---------- 3.31 Boutons secondaires (dans un bloc interactif ; le seul bouton d'action reste celui de la fin) ----------
   <button type="button" class="bouton-clair">Précédent</button>
   <button type="button" class="bouton-noir">Un autre exemple</button> */
.bouton-clair, .bouton-noir {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 750; line-height: 1.2; cursor: pointer;
  transition: transform 160ms var(--courbe), background-color 160ms var(--courbe);
}
.bouton-clair { background: var(--carte); color: var(--encre); border: 1px solid var(--trait-fort); }
.bouton-noir { background: var(--noir); color: #FFFFFF; border: 1px solid var(--noir); }
.bouton-clair:active, .bouton-noir:active { transform: scale(0.97); }
.bouton-clair:disabled, .bouton-noir:disabled { opacity: 0.35; cursor: default; transform: none; }
@media (hover: hover) { .bouton-noir:hover { background: #2A2A2A; } .bouton-clair:hover { border-color: var(--encre); } }
.js .bouton-clair.js-seulement, .js .bouton-noir.js-seulement { display: inline-flex; }
.sans-js { display: block; }
.js .sans-js { display: none; }
@media print { .bouton-clair, .bouton-noir { display: none !important; } }

/* ---------- 3.32 Journées types (interactif : des journées tirées de ce que la personne a coché, réglables) ----------
   <div class="repartition" data-repartition data-aliments="#aliments" data-journees="4"
        data-cible-min="arrondi(poids * 1.6, 5)" data-cible-max="arrondi(poids * 2, 5)"
        data-repas-doubles="midi soir" data-repas-facultatifs="collation"
        data-msg-rien="…" data-msg-poids="…" data-msg-court="… {total} … {min} …" data-msg-long="… {total} … {max} …">
     <div class="repartition-tete">
       <div class="onglets js-seulement" role="tablist" aria-label="Tes journées" data-rep="onglets"></div>
       <button type="button" class="bouton-clair js-seulement" data-rep-action="regenerer">Une autre journée</button>
     </div>
     <ol class="repas-liste">
       <li class="repas" data-repas-ligne="matin" data-nom="Petit déjeuner" data-quand="au petit déjeuner"
           data-vide="Pas besoin" data-exemple="oeufs:165">
         <div class="repas-tete"><span class="repas-nom">Petit déjeuner</span><span class="repas-g">21&nbsp;g</span></div>
         <div class="repas-item"><div class="repas-texte"><p class="repas-quoi">3 œufs</p><p class="repas-repere">165&nbsp;g</p></div></div>
       </li>
     </ol>
     <div class="calc-resultat">… <output data-rep="total">139</output> … <output data-rep="min">130</output> …
       <div class="jauge js-seulement"><span class="jauge-barre"></span><span class="jauge-repere"></span></div></div>
     <p class="calc-erreur" data-rep="message" hidden></p>
   </div>
   Les aliments : des cases (dans le bloc visé par data-aliments) avec data-de="de blanc de poulet",
   data-proteines (pour 100 g, source citée), data-ref (id de la base), data-repas="midi soir",
   data-portions="100:la taille de ta paume;130:un filet moyen;160:un gros filet" (des portions
   qu'on mange vraiment, chacune avec son ordre d'idée), data-mesure="unite" quand l'aliment se
   compte (« 3 œufs », « un pot de séré maigre » : le repère passe devant, les grammes derrière), et
   data-role="complement" pour ce qui accompagne un plat (légumineuses). Le contenu écrit dans la page
   est la journée de départ, juste (le vérificateur la recalcule) : il s'affiche sans script et sur
   papier ; le script le remplace par les journées réglables. */
.repartition {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 16px; display: grid; gap: 14px; break-inside: avoid;
}
.repartition-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.onglets { gap: 6px; flex-wrap: wrap; }
.js .onglets.js-seulement { display: flex; }
.onglets { align-items: center; }
.onglets-titre { margin-right: 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--orange-encre); }
.onglet {
  min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--titres); font-style: italic;
  background: var(--papier); border: 1px solid var(--trait); color: var(--encre-2);
  font-size: 18px; font-weight: 900; line-height: 1;
  transition: background-color 160ms var(--courbe), color 160ms var(--courbe);
}
.onglet[aria-selected="true"] { background: var(--noir); border-color: var(--noir); color: #FFFFFF; }
.repas-liste { display: grid; gap: 8px; }
.repas { background: var(--papier); border-radius: var(--rayon-petit); padding: 12px 12px 12px 14px; }
.repas-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.repas-nom {
  font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 14px; line-height: 1.15; letter-spacing: 0.02em; color: var(--encre-2);
}
.repas-g {
  font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 20px; line-height: 1;
  color: var(--orange-encre); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.repas-item { display: grid; gap: 8px; }
.repas-item + .repas-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--trait-fort); }
.repas-texte { min-width: 0; }
.repas-quoi { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 750; color: var(--encre); }
.repas-repere { margin: 2px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--encre-2); }
.repas-reglages { display: flex; align-items: center; gap: 8px; }
.repas-choix {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--trait-fort); background: var(--carte); font-size: 15px; font-weight: 650;
}
.pas {
  flex: none; width: 48px; height: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--noir); background: var(--noir); color: #FFFFFF;
  font-size: 24px; font-weight: 700; line-height: 1; display: inline-grid; place-items: center;
  transition: transform 140ms var(--courbe), opacity 140ms var(--courbe);
}
.pas-moins { background: var(--carte); color: var(--encre); border-color: var(--trait-fort); }
.repas-reglages .pas:first-of-type:not(:only-of-type) { margin-left: auto; }
.pas:active { transform: scale(0.94); }
.pas:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.repas.est-vide { opacity: 0.6; }
.repas.est-vide .repas-quoi { font-weight: 500; color: var(--encre-2); font-size: 15px; }
.repartition.est-incomplet .calc-chiffre output { color: var(--clair-2); }
.repartition .calc-erreur { margin: 0; }
.jauge-repere {   /* le trait du repère sur la jauge */
  position: absolute; top: -3px; bottom: -3px; left: var(--repere, 80%); width: 2px; background: #FFFFFF; opacity: 0.85;
}
.repartition.est-en-attente .repartition-tete, .repartition.est-en-attente .repas-liste,
.repartition.est-en-attente .calc-resultat, .repartition.est-en-attente .calc-formule { display: none; }
.repartition.est-en-attente .calc-erreur {
  padding: 18px; border-radius: var(--rayon-petit); background: var(--papier);
  border: 1.5px dashed var(--trait-fort); color: var(--encre); font-size: 16px; text-align: center;
}
.declic.est-en-attente, .choix.est-en-attente { display: none; }
@media (min-width: 720px) {
  .repartition { padding: 24px; gap: 16px; }
  .repas { padding: 14px 16px 14px 18px; }
  .repas-item { grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
  .repas-reglages { min-width: 300px; justify-content: flex-end; }
}
@media print {
  .repartition { border-color: #CCCCCC; padding: 4mm; }
  .repas { background: none; border: 1pt solid #CCCCCC; padding: 2mm 3mm; break-inside: avoid; }
  .repas-quoi { font-size: 11pt; }
  .repas-g { font-size: 13pt; }
  .repas-reglages, .onglets, .repartition-tete { display: none !important; }
}

/* ---------- 3.33 Déclic (la conclusion que la personne doit tirer, avec ses propres chiffres) ----------
   <div class="declic">
     <p class="etiquette">Ta journée, en une phrase</p>
     <p class="declic-phrase"><output data-rep="phrase">…</output>.</p>
     <p class="declic-chute">C'est tout.</p>
   </div> */
.declic {
  position: relative; overflow: hidden; border-radius: var(--rayon);
  background: var(--orange-pale); padding: 22px 20px 22px 24px; break-inside: avoid;
}
.declic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.declic .etiquette { margin-bottom: 10px; }
.declic.est-incomplet .declic-chute { display: none; }
.declic-phrase { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 750; color: var(--encre); text-wrap: pretty; }
.declic-chute {
  margin: 14px 0 0; font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 26px; line-height: 1.05; color: var(--orange-encre);
}
@media (min-width: 720px) { .declic { padding: 30px 32px; } .declic-phrase { font-size: 24px; } .declic-chute { font-size: 32px; } }
@media print {
  .declic { background: none; border: 1.5pt solid var(--orange); padding: 4mm 5mm; }
  .declic::before { display: none; }
  .declic-phrase { font-size: 13pt; }
  .declic-chute { font-size: 15pt; }
}

/* ---------- 3.34 Choix (une question, deux réponses ; le bouton touché dévoile sa suite) ----------
   <div class="choix">
     <p class="choix-question">Alors&#8239;?</p>
     <div class="choix-boutons js-seulement">
       <button type="button" data-choix="simple">Plus simple que je pensais</button>
       <button type="button" data-choix="dur">Toujours compliqué pour moi</button></div>
     <p class="choix-reponse" data-choix-pour="simple">…</p>
     <p class="choix-reponse" data-choix-pour="dur" hidden>…</p>
   </div>
   Sans script : les boutons sont cachés, la première réponse est visible. */
.choix { display: grid; gap: 12px; }
.choix-question {
  margin: 0; font-family: var(--titres); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 22px; line-height: 1.1;
}
.js .choix-boutons.js-seulement { display: grid; }
.choix-boutons { grid-template-columns: 1fr 1fr; gap: 8px; }
.choix-boutons button {
  min-height: 56px; padding: 12px 14px; border-radius: var(--rayon-petit);
  background: var(--carte); border: 1.5px solid var(--trait-fort); color: var(--encre);
  font-size: 15.5px; font-weight: 750; line-height: 1.25; cursor: pointer; text-align: center;
  transition: background-color 160ms var(--courbe), border-color 160ms var(--courbe), transform 160ms var(--courbe);
}
.choix-boutons button:active { transform: scale(0.97); }
.choix-boutons button[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: #FFFFFF; }
.choix-reponse { margin: 0; font-size: 17px; line-height: 1.5; }
.js .choix:not(:has([aria-pressed="true"])) .choix-reponse { display: none; }
@media print { .choix-boutons { display: none !important; } .choix-reponse { font-size: 10.5pt; } }


/* =====================================================================================
   4. BLOCS AJOUTÉS
   Un nouveau bloc se met ici, avec le même format d'en-tête que la section 3 (nom, usage,
   balisage), ses règles d'écran large et d'impression, et la date d'ajout. Voir les règles
   en tête de fichier.
   ===================================================================================== */


/* =====================================================================================
   5. PAGES HORS RESSOURCES
   ===================================================================================== */

/* La page d'accueil neutre et la 404 */
.accueil { min-height: 100vh; min-height: 100dvh; background: var(--noir); color: var(--clair); display: grid; place-items: center; padding: 40px var(--gouttiere); text-align: center; }
.accueil img { width: 170px; margin: 0 auto 26px; }
.accueil p { color: var(--clair-2); font-size: 16px; margin: 0 0 6px; }
.accueil a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* Bandeau des exemples (jamais sur une vraie ressource) */
.exemple-bandeau {
  background: var(--orange); color: var(--noir); text-align: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; padding: 7px var(--gouttiere);
}
@media print { .exemple-bandeau { display: none; } }
