/* Polices servies par le site lui-meme.
   Auparavant chargees chez Google : une requete bloquante vers un tiers avant
   le premier pixel, et l'adresse IP du visiteur transmise a chaque visite,
   ce que la politique de confidentialite ne promettait pas. IBM Plex Sans est
   une police variable : un seul fichier couvre 400 a 700. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/IBMPlexSans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/IBMPlexSans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* Sous-ensemble : cette police ne sert qu'aux petits reperes chiffres
     (« 01 », « A », « Question 1 / 10 »). Les deux fichiers complets pesaient
     30 Ko pour une vingtaine de signes reellement affiches ; celui-ci en fait
     5 et supprime une requete du chemin critique. Un signe absent retombe
     proprement sur la police monospace du systeme. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/IBMPlexMono-600-chiffres.woff2) format('woff2');
  unicode-range: U+0020-002F, U+0030-0039, U+003A, U+0041-0044, U+0051, U+0065, U+0069, U+006E, U+006F, U+0073, U+0074, U+0075;
}

/* Charte « Nature & Épuré » — les mêmes jetons que l'app Flutter.
   Relevés dans docs/design-nature-tokens.md, pas estimés à l'œil. */
:root {
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f2f5f0;
  --border: #e6e9ef;
  --border-strong: #e1e9de;
  --track: #eef1f5;

  --texte: #0d1b2a;
  /* Les deux gris ont ete assombris par rapport aux jetons de l'app : sur le
     fond clair du site, #6b7a8a tombait a 4,1 de contraste et #8fa0af a 2,5,
     sous le seuil AA de 4,5 pour du texte de taille normale. La mention
     d'independance en bas des pages, elle, doit rester lisible. */
  --texte-2: #586878;
  --texte-3: #617183;

  --vert: #2e7d32;
  --vert-doux: #eaf3ec;
  --bleu: #1976d2;
  --bleu-doux: #e6eff9;
  --orange: #ff8a3d;
  --orange-doux: #fbebdd;
  --violet: #7e57c2;

  /* Variantes lisibles des couleurs d'accent. Les teintes de la charte sont
     faites pour des aplats et des bordures ; en petit texte sur fond clair,
     l'orange tombe a 2,4 de contraste. Ces quatre-la passent AA et servent
     partout ou une couleur d'accent peint un chiffre, une icone ou un libelle. */
  --vert-texte: #2e7d32;
  --bleu-texte: #1565c0;
  --orange-texte: #c2410c;
  --violet-texte: #6741ab;

  --r-carte: 16px;
  --r-tuile: 14px;
  --ombre: 0 3px 10px rgba(13, 27, 42, 0.04);
  --ombre-forte: 0 10px 30px rgba(13, 27, 42, 0.10);
  --large: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--texte);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.conteneur { width: min(100% - 40px); max-width: var(--large); margin-inline: auto; }

/* --- barre de navigation --------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .conteneur { display: flex; align-items: center; gap: 26px; height: 62px; }
.marque { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; text-decoration: none; }
.marque svg { width: 26px; height: 26px; fill: var(--texte); }
.nav-liens { display: flex; gap: 22px; margin-left: auto; }
.nav-liens a { color: var(--texte-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-liens a:hover { color: var(--vert); }

/* --- boutons ----------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-tuile);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.bouton-primaire {
  background: var(--vert); color: #fff;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.28);
}
.bouton-primaire:hover { background: #276d2b; }
.bouton-secondaire { background: var(--surface); color: var(--texte); border-color: var(--border-strong); }
.bouton-secondaire:hover { border-color: var(--vert); color: var(--vert); }

/* --- héros ------------------------------------------------------------- */
.heros { position: relative; overflow: hidden; padding: 74px 0 66px; }
.heros::before {
  content: ""; position: absolute; inset: 0;
  background: url("hero.jpg") center 55% / cover no-repeat;
  background-image: image-set(url("hero.webp") type("image/webp"), url("hero.jpg") type("image/jpeg"));
}
.heros::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 20, 33, 0.90) 0%, rgba(9, 20, 33, 0.72) 45%, rgba(9, 20, 33, 0.30) 100%);
}
.heros .conteneur { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.heros h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 14px 0 16px; letter-spacing: -0.4px; }
.heros p.chapo { color: rgba(255, 255, 255, 0.86); font-size: 17px; margin: 0 0 26px; max-width: 34em; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500;
}
.heros-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.heros-actions .bouton-secondaire { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.heros-actions .bouton-secondaire:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.chiffres { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.chiffres div { color: rgba(255, 255, 255, 0.78); font-size: 13px; max-width: 12em; }
.chiffres strong { display: block; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.1; }

/* Cadre du telephone.
   La hauteur vient de l'image, jamais d'un attribut : c'est ce qui ecrasait
   l'apercu en une bande verticale. */
.telephone {
  justify-self: center;
  width: 252px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #33404f 0%, #0d1b2a 38%, #060d15 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  animation: flotte 7s ease-in-out infinite;
}
/* Le reflet oblique, discret, qui empeche l'ecran de paraitre colle. */
.telephone::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 31px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 34%);
}
.telephone img { border-radius: 31px; display: block; width: 100%; }

@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* --- sections ---------------------------------------------------------- */
section { padding: 76px 0; }
.oeil { color: var(--vert); font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
section h2 { font-size: clamp(24px, 3.2vw, 33px); line-height: 1.18; margin: 10px 0 0; letter-spacing: -0.3px; }
.intro-section { max-width: 34ch; margin-bottom: 38px; }
.intro-section.centre { max-width: 46ch; margin-inline: auto; text-align: center; }

.grille { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.carte {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte); padding: 22px; box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1),
              box-shadow .3s ease, border-color .3s ease;
}
/* Le filet de couleur qui se deroule en haut de la carte au survol. */
.carte::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--vert));
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.2, .7, .3, 1);
}
/* Une lueur tres basse, dans le coin, pour donner du volume au survol. */
.carte::after {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--accent, var(--vert)); opacity: 0;
  filter: blur(46px); pointer-events: none;
  transition: opacity .35s ease;
}
.carte:hover, .carte:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(13, 27, 42, 0.12);
  border-color: var(--border-strong);
}
.carte:hover::before, .carte:focus-within::before { transform: scaleX(1); }
.carte:hover::after, .carte:focus-within::after { opacity: .09; }
.carte h3 { margin: 14px 0 6px; font-size: 16px; position: relative; }
.carte p { margin: 0; color: var(--texte-2); font-size: 14.5px; position: relative; }

/* Tuile d'icone : un trait, pas un emoji. Elle se remplit au survol. */
.tuile {
  position: relative;
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-doux, var(--vert-doux));
  color: var(--accent, var(--vert));
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}
.tuile svg {
  width: 22px; height: 22px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.carte:hover .tuile, .carte:focus-within .tuile {
  background: var(--accent, var(--vert)); color: #fff;
  transform: translateY(-2px) rotate(-4deg);
}

/* Cartes de la section « L'epreuve » : un reperage chiffre plutot qu'une icone. */
.carte-chiffree h3 { margin-top: 0; padding-right: 40px; }
.carte-chiffree .rang {
  position: absolute; top: 16px; right: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; font-weight: 600; color: var(--texte-3);
  transition: color .3s ease;
}
.carte-chiffree:hover .rang { color: var(--accent, var(--vert)); }

/* Apparition a l'entree dans l'ecran. Sans JS, rien n'est cache. */
.js .revele { opacity: 0; transform: translateY(16px); }
.js .revele.vu {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--i, 0) * 65ms);
}

@media (prefers-reduced-motion: reduce) {
  .telephone { animation: none; }
  .carte, .carte::before, .carte::after, .tuile { transition: none; }
  .carte:hover, .carte:focus-within { transform: none; }
  .js .revele { opacity: 1; transform: none; }
}

/* --- étapes ------------------------------------------------------------ */
.etapes { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: etape; }
.etape {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte); padding: 24px; box-shadow: var(--ombre);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}
.etape:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(13, 27, 42, 0.10); }
.etape .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--vert-doux); color: var(--vert);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.etape h3 { margin: 15px 0 6px; font-size: 16.5px; }
.etape p { margin: 0; color: var(--texte-2); font-size: 14.5px; }

/* --- tarifs ------------------------------------------------------------ */
.tarifs { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-inline: auto; }
.tarif { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-carte); padding: 26px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.tarif.vedette { border-color: var(--vert); box-shadow: var(--ombre-forte); }
.tarif .etiquette { display: inline-block; background: var(--vert-doux); color: var(--vert); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; margin-bottom: 12px; align-self: flex-start; }
.tarif .etiquette.grise { background: var(--track); color: var(--texte-2); }
.tarif h3 { margin: 0 0 4px; font-size: 18px; }
.tarif .prix { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.tarif .prix-note { color: var(--texte-3); font-size: 13px; margin-bottom: 18px; }
.tarif ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.tarif li { display: flex; gap: 10px; font-size: 14.5px; color: var(--texte-2); }
.tarif li::before { content: "✓"; color: var(--vert); font-weight: 700; }
.tarif li.absent { color: var(--texte-3); }
.tarif li.absent::before { content: "—"; color: var(--texte-3); }
.tarif .bouton { margin-top: auto; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.final .stores { justify-content: center; }
.tarif .stores { margin-top: auto; flex-direction: column; }
.tarif .stores .bouton { margin-top: 0; }

/* --- FAQ --------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-tuile); padding: 4px 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--vert); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--texte-2); font-size: 14.5px; }

/* --- appel final ------------------------------------------------------- */
.final { background: var(--texte); color: #fff; border-radius: 22px; padding: 52px 32px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.74); max-width: 46ch; margin: 12px auto 26px; }
.final .bouton-secondaire { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.note-stores { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-top: 18px; }

/* --- pied de page ------------------------------------------------------ */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; margin-top: 20px; }
footer .conteneur { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer a { color: var(--texte-2); text-decoration: none; font-size: 13.5px; }
footer a:hover { color: var(--vert); }
.pied-liens { display: flex; gap: 18px; flex-wrap: wrap; }
.copyright { color: var(--texte-3); font-size: 13px; }

/* --- pages légales ------------------------------------------------------ */
.doc { max-width: 720px; margin-inline: auto; }
.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 40px 0 10px; }
.doc h3 { font-size: 16px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--texte-2); font-size: 15px; }
.doc .maj { color: var(--texte-3); font-size: 13.5px; }
.doc .avertissement {
  background: var(--orange-doux); border: 1px solid var(--orange);
  border-radius: var(--r-tuile); padding: 14px 16px; font-size: 14px; color: var(--texte);
}

/* --- écrans étroits ------------------------------------------------------ */
@media (max-width: 1040px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grille, .etapes, .tarifs { grid-template-columns: 1fr; }
  .heros { padding: 52px 0 48px; }
  .heros .conteneur { grid-template-columns: 1fr; gap: 34px; }
  /* L'apercu reste : c'est la seule image du produit avant le pied de page,
     et l'ecrasante majorite des visites arrive par telephone. */
  .telephone { width: 214px; }
  .nav .conteneur { gap: 14px; }
  .nav-liens {
    margin-left: auto; gap: 16px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .nav-liens::-webkit-scrollbar { display: none; }
  .nav-liens a { white-space: nowrap; }
  section { padding: 56px 0; }
}
/* Sous 620 px, une barre a demi coupee se lit comme un bug, pas comme un
   defilement. On ne garde que l'entree qui merite d'etre atteinte en un geste. */
@media (max-width: 620px) {
  .nav-liens { overflow: visible; mask-image: none; }
  .nav-liens a:not(.nav-appel) { display: none; }
  /* Selecteur aligne sur `.nav-liens a`, sinon la couleur grise des liens de
     navigation l'emporte et le libelle se retrouve a 1,1 de contraste sur le
     fond vert. */
  .nav-liens a.nav-appel {
    background: var(--vert); color: #fff; padding: 8px 14px;
    border-radius: 999px; font-weight: 600; font-size: 13.5px;
  }
  .nav-liens a.nav-appel:hover { color: #fff; background: #276d2b; }
}

.note-officielle {
  margin-top: 22px;
  font-size: 14px;
  color: var(--texte-2);
}
.note-officielle a { color: var(--vert); }

.ecrans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  align-items: start;
}
.ecran { margin: 0; }
.ecran img {
  width: 100%;
  height: auto;
  border-radius: var(--r-carte);
  border: 1px solid var(--border);
  box-shadow: var(--ombre);
  background: var(--surface);
}
.ecran figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--texte-2);
}

.intro-texte {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--texte-2);
}
.intro-section.centre .intro-texte { text-align: center; }

/* ---- Page d'entrainement gratuit ---- */
.qcm-tete { padding: 56px 0 8px; }
.qcm-tete h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 10px 0 14px; }
.qcm-tete .chapo { max-width: 680px; color: var(--texte-2); font-size: 17px; }
.rappel-regle {
  max-width: 680px; margin-top: 18px; padding: 14px 16px;
  background: var(--vert-doux); border-radius: var(--r-tuile);
  font-size: 15px; color: var(--texte);
}
.qcm { padding: 28px 0 64px; }
.q {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte); box-shadow: var(--ombre);
  padding: 22px 22px 18px; margin-bottom: 20px;
}
.q-tete { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.q-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .04em; color: var(--texte-3);
}
.q-theme {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-alt); color: var(--texte-2);
}
.q-enonce { font-size: 18px; line-height: 1.4; margin: 0 0 16px; }
.opts { display: grid; gap: 9px; }
.opt {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--r-tuile); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.opt input { margin: 2px 0 0; accent-color: var(--vert); }
.opt .lettre {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--texte-3); min-width: 14px;
}
.opt.montre-juste { border-color: var(--vert); background: var(--vert-doux); }
.opt.montre-juste .lettre { color: var(--vert); }
.opt.montre-faux { border-color: #d98686; background: #fbeeee; }
.corrige {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.corrige .reponse { margin: 0 0 8px; }
.corrige .expl { margin: 0 0 10px; color: var(--texte); }
.corrige .src { margin: 0; font-size: 13px; color: var(--texte-2); }
.corrige .src a { color: var(--vert); }
.qcm-actions { margin-top: 26px; text-align: center; }
.score { margin-top: 16px; font-size: 18px; font-weight: 600; }
.bouton:disabled { opacity: .5; cursor: default; }

.appel-qcm {
  margin-top: 30px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.appel-qcm span { font-size: 14px; color: var(--texte-2); max-width: 420px; }

/* --- tete de section sur deux colonnes ---------------------------------- */
.tete-section {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px;
  align-items: end; margin-bottom: 38px;
}
.tete-section .intro-section { margin-bottom: 0; }
.tete-texte { margin: 0; color: var(--texte-2); font-size: 15.5px; max-width: 46ch; }
@media (max-width: 900px) {
  .tete-section { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
}

/* La barre collante recouvrait le titre des sections atteintes par ancre. */
section[id], [id] { scroll-margin-top: 78px; }

/* --- pages de contenu ---------------------------------------------------- */
.fil { font-size: 13px; color: var(--texte-3); margin-bottom: 18px; }
.fil a { color: var(--texte-2); text-decoration: none; }
.fil a:hover { color: var(--vert); }
.fil span { margin: 0 6px; }

.article { max-width: 740px; }
.article > h2 {
  font-size: clamp(21px, 2.6vw, 26px); line-height: 1.22;
  margin: 52px 0 12px; letter-spacing: -0.2px; color: var(--texte);
}
.article > h3 { font-size: 17px; margin: 30px 0 8px; color: var(--texte); }
.article p { color: var(--texte-2); font-size: 16px; margin: 0 0 15px; }
.article strong { color: var(--texte); font-weight: 600; }
/* Les liens du corps se colorent en vert, mais pas les boutons : `.article a`
   pese plus lourd que `.bouton-primaire` et repeignait son libelle en vert sur
   fond vert, donc illisible. */
.article a:not(.bouton) { color: var(--vert); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { color: var(--texte-2); font-size: 16px; margin-bottom: 8px; }
.article li::marker { color: var(--texte-3); }

/* Sommaire : une page longue sans plan se ferme au bout de trois lignes. */
.sommaire {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte); padding: 18px 20px; box-shadow: var(--ombre);
  margin: 26px 0 8px;
}
.sommaire h2 {
  font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--texte-3); margin: 0 0 10px; font-weight: 700;
}
.sommaire ol { margin: 0; padding-left: 20px; }
.sommaire li { margin-bottom: 6px; font-size: 15px; }
.sommaire a { color: var(--texte); text-decoration: none; }
.sommaire a:hover { color: var(--vert); }

.encadre {
  border-left: 3px solid var(--vert); background: var(--vert-doux);
  border-radius: 0 var(--r-tuile) var(--r-tuile) 0;
  padding: 15px 18px; margin: 22px 0;
}
.encadre p { margin: 0; color: var(--texte); font-size: 15px; }
.encadre p + p { margin-top: 10px; }
.encadre.alerte { border-left-color: var(--orange); background: var(--orange-doux); }
.encadre.sobre { border-left-color: var(--bleu); background: var(--bleu-doux); }

.tableau { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.tableau th, .tableau td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tableau th { color: var(--texte); font-weight: 600; background: var(--surface-alt); }
.tableau td { color: var(--texte-2); }
.tableau tr:last-child td { border-bottom: none; }
.tableau-large { overflow-x: auto; margin: 20px 0; }
.tableau-large .tableau { margin: 0; min-width: 520px; }

/* Blocs de sous-themes du programme officiel. */
.programme { display: grid; gap: 10px; margin: 18px 0 6px; }
.programme li {
  list-style: none; margin: 0; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-tuile); color: var(--texte);
  font-size: 15px; display: flex; gap: 12px; align-items: baseline;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1);
}
.programme li:hover { border-color: var(--border-strong); transform: translateX(3px); }
.programme { padding-left: 0; }
.programme .puce {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--accent, var(--vert)); flex: none;
}

.sources-officielles {
  margin: 40px 0 0; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte);
}
.sources-officielles h2 { font-size: 15px; margin: 0 0 12px; }
.sources-officielles ul { margin: 0; padding-left: 20px; }
.sources-officielles li { font-size: 14.5px; margin-bottom: 7px; }

.appel-page {
  margin: 44px 0 0; padding: 26px;
  background: var(--texte); color: #fff; border-radius: var(--r-carte);
}
.appel-page h2 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.appel-page p { color: rgba(255, 255, 255, 0.76); font-size: 15px; margin: 0 0 18px; }
.appel-page .bouton-secondaire {
  background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.3);
}
.appel-page .bouton-secondaire:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.appel-page .duo { display: flex; gap: 10px; flex-wrap: wrap; }

.maj-page { color: var(--texte-3); font-size: 13.5px; margin-top: 30px; }

/* Colonne de lecture des pages de contenu : 1080 px pour la navigation,
   780 px pour le texte. Au-dela, l'oeil perd la ligne suivante. */
.conteneur-article { max-width: 780px; }
