/* French Path Canada · les blocs communs de la refonte (9 novembre 2026).

   Jonathan : « que toutes les pages soient faites de la même manière ».
   Une seule feuille, posée sur les 269 pages par scripts/entete_pied.py,
   après site.css (accueil, /formules, /coaching) ou pages.css (le reste) :
   elle lit les couleurs des deux (--card ou --paper pour la carte, --strong
   ou --text-strong pour le texte fort), mode nuit compris.

   Les pièces, préfixe bl- :
     - le haut court : un surtitre, le titre, une phrase, UNE action ;
     - la carte, le bloc court (titre, une phrase, un visuel ou une liste) ;
     - le repli (<details>) : titre + résumé + rond, le reste au toucher ;
     - la frise de la faute qui pâlit (aujourd'hui, demain, 3, 7, 14 j) ;
     - l'échelle des niveaux 4, 7, 9 ;
     - les deux portes (parler, écouter-lire) ;
     - les prix dépliables (0, 12, 29, 69 $) et la carte conseillée ;
     - le tableau des formules en lignes qui s'ouvrent.
   Texte sur couleur vive : --bl-sur-vif (navy très sombre), jamais blanc. */

/* ═══════════════════════════════════════════════════════════════════════════
   LE SOCLE « COPIE » (20 nov. 2026) : le site parle la langue de la plateforme.

   Le visiteur passe de la page de vente à l'essai, puis à l'application : il
   ne doit plus sentir de rupture. Mêmes valeurs que la zone .fp de la
   plateforme (src/styles/jetons.css, maquette copie-marine validée le
   13 nov.), posées ici une fois pour les 297 pages : blocs.css est chargé
   partout, après site.css ou pages.css, qui y renvoient leurs anciens noms.

   Une couleur, un rôle (Jonathan, 13 nov.) :
     marine      = agir (les boutons) et le texte
     terre cuite = la faute, rien d'autre
     sauge       = le juste, l'acquis, Jonathan, le conseil
     or          = le bouton sur fond sombre (carte forte, mode nuit)
     crème       = le papier
   Police : Atkinson Hyperlegible Next (fichiers de la plateforme, licence
   SIL OFL 1.1, assets/fonts/atkinson/OFL.txt), servie par le site.
   Formes : carte 16 px au trait, bouton 14 px, pas d'ombre. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/atkinson/atkinson-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/atkinson/atkinson-next-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 { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/atkinson/atkinson-next-latin-ext-italique.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/atkinson/atkinson-next-latin-italique.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; }

:root {
  --fp-police: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Le papier */
  --fp-papier: #F7F5F2; --fp-carte: #FFFFFF; --fp-creux: #EFEDE9;
  --fp-trait: #C2C0AA; --fp-trait-fort: #8A8878;
  /* L'encre */
  --fp-encre: #233145; --fp-encre-2: #5F6573; --fp-titre: #233145;
  /* Agir : UNE action forte par écran */
  --fp-action: #233145; --fp-action-survol: #2F415A; --fp-sur-action: #FFFFFF;
  --fp-lien: #233145; --fp-focus: #233145;
  /* La carte forte : une par écran, l'or y agit */
  --fp-forte: #233145; --fp-sur-forte: #FFFFFF; --fp-sur-forte-2: #C9D1DC;
  --fp-action-sur-forte: #F1AC5F; --fp-action-sur-forte-survol: #F8C88C; --fp-sur-action-sur-forte: #1A2433;
  /* La faute : terre cuite, et rien d'autre de cette couleur */
  --fp-faute: #AF5232; --fp-faute-voile: #FDF1EC; --fp-faute-sur-forte: #F0A58F;
  /* Le juste, l'acquis, Jonathan, le conseil : la sauge */
  --fp-juste: #4F6234; --fp-juste-plein: #4F6234; --fp-juste-voile: #F0F4EA;
  --fp-prof: #4F6234; --fp-sur-prof: #FFFFFF;
  /* « Ici », la carte choisie : un repère à l'encre */
  --fp-repere: #233145; --fp-repere-voile: #EFEDE9;
  /* Option C (Jonathan, 21 nov. 2026) : une teinte par épreuve, SEULEMENT dans la tuile du picto (voile en fond,
     trait pour le dessin), là où les épreuves se côtoient. Jamais un texte, un bouton ni une bordure. */
  --fp-ep-ecoute: #2F63A8; --fp-ep-ecoute-voile: #E4EDF9; --fp-ep-lecture: #1E7268; --fp-ep-lecture-voile: #DFF1ED;
  --fp-ep-ecrit: #8A6A10; --fp-ep-ecrit-voile: #F6EDD2; --fp-ep-oral: #74466D; --fp-ep-oral-voile: #F1E7EF;
  --fp-ligne-cahier: #E6E3D8; --fp-marge: #E3A893;
  /* Cinq tailles de texte, sept espaces, trois rayons (jetons.css) */
  --fp-t-1: 1.75rem; --fp-t-2: 1.25rem; --fp-t-3: 1rem; --fp-t-4: 0.875rem; --fp-t-5: 0.8125rem;
  --fp-r-carte: 16px; --fp-r-action: 14px; --fp-cible: 44px;
  --fp-vite: 140ms; --fp-courbe: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fp-papier: #0F1B2D; --fp-carte: #1A2739; --fp-creux: #16202F;
    --fp-trait: #3A4B63; --fp-trait-fort: #7C8BA1;
    --fp-encre: #E8E6E1; --fp-encre-2: #A9AFBD; --fp-titre: #F2EFEA;
    --fp-action: #F1AC5F; --fp-action-survol: #F8C88C; --fp-sur-action: #1A2433;
    --fp-lien: #E8E6E1; --fp-focus: #F1AC5F;
    --fp-forte: #2B3B52;
    --fp-faute: #EE9076; --fp-faute-voile: rgba(217, 116, 85, 0.16);
    --fp-juste: #B5CC8E; --fp-juste-plein: #B5CC8E; --fp-juste-voile: rgba(130, 154, 91, 0.16);
    --fp-prof: #B5CC8E; --fp-sur-prof: #16202F;
    --fp-repere: #E8E6E1; --fp-repere-voile: #16202F;
    --fp-ep-ecoute: #9EC1F0; --fp-ep-ecoute-voile: #1F3350; --fp-ep-lecture: #86D2C4; --fp-ep-lecture-voile: #173A38; --fp-ep-ecrit: #E8CB72; --fp-ep-ecrit-voile: #3A321C; --fp-ep-oral: #D6B5D0; --fp-ep-oral-voile: #33283A;
    --fp-ligne-cahier: #3B4E69; --fp-marge: #C96F54;
  }
}
:root[data-theme="dark"] {
  --fp-papier: #0F1B2D; --fp-carte: #1A2739; --fp-creux: #16202F;
  --fp-trait: #3A4B63; --fp-trait-fort: #7C8BA1;
  --fp-encre: #E8E6E1; --fp-encre-2: #A9AFBD; --fp-titre: #F2EFEA;
  --fp-action: #F1AC5F; --fp-action-survol: #F8C88C; --fp-sur-action: #1A2433;
  --fp-lien: #E8E6E1; --fp-focus: #F1AC5F;
  --fp-forte: #2B3B52;
  --fp-faute: #EE9076; --fp-faute-voile: rgba(217, 116, 85, 0.16);
  --fp-juste: #B5CC8E; --fp-juste-plein: #B5CC8E; --fp-juste-voile: rgba(130, 154, 91, 0.16);
  --fp-prof: #B5CC8E; --fp-sur-prof: #16202F;
  --fp-repere: #E8E6E1; --fp-repere-voile: #16202F;
  --fp-ep-ecoute: #9EC1F0; --fp-ep-ecoute-voile: #1F3350; --fp-ep-lecture: #86D2C4; --fp-ep-lecture-voile: #173A38; --fp-ep-ecrit: #E8CB72; --fp-ep-ecrit-voile: #3A321C; --fp-ep-oral: #D6B5D0; --fp-ep-oral-voile: #33283A;
  --fp-ligne-cahier: #3B4E69; --fp-marge: #C96F54;
}

/* Les noms des blocs, rendus à leur rôle (ils lisaient l'orange pour tout). */
:root {
  --bl-carte: var(--fp-carte);
  --bl-fond2: var(--fp-creux);
  --bl-trait: var(--fp-trait);
  --bl-fort: var(--fp-titre);
  --bl-texte: var(--fp-encre);
  --bl-doux: var(--fp-encre-2);
  --bl-vif: var(--fp-action);           /* agir : marine de jour, or de nuit */
  --bl-vif-texte: var(--fp-encre);      /* un lien, un repli : l'encre, soulignée */
  --bl-or: var(--fp-encre-2);           /* une étiquette : l'encre seconde */
  --bl-sauge: var(--fp-juste);
  --bl-sauge-lave: var(--fp-juste-voile);
  --bl-vif-lave: var(--fp-repere-voile);
  --bl-sur-vif: var(--fp-sur-action);
  /* Décision A de Jonathan (20 nov.) : plus de teinte par épreuve, les quatre noms mènent à l'encre. */
  --bl-ecoute: var(--fp-encre); --bl-lecture: var(--fp-encre); --bl-ecrit: var(--fp-encre); --bl-oral: var(--fp-encre);
  --bl-ecoute-lave: var(--fp-creux); --bl-oral-lave: var(--fp-creux); --bl-ecrit-lave: var(--fp-creux);
  /* La faute qui pâlit : la terre cuite s'efface, le jour J est juste (sauge). */
  --bl-r0: var(--fp-faute); --bl-r1: var(--fp-faute); --bl-r3: var(--fp-faute); --bl-r7: var(--fp-faute); --bl-r14: var(--fp-faute); --bl-rok: var(--fp-juste-plein);
  --bl-r: 16px;
}

/* Le logo : le F et sa feuille d'érable, sur un carré marine, partout
   (l'en-tête et le pied de chaque page). Le balisage garde son « FP » caché
   aux lecteurs d'écran (aria-hidden) : on ne réécrit pas 297 pages, on
   change la marque. */
.logo-mark, .pg-logo-mark, .pied-logo-mark {
  font-size: 0 !important; color: transparent !important;
  background: #233145 url("/assets/fpc-icon-90.png") center / 76% no-repeat !important;
}
:root[data-theme="dark"] :is(.logo-mark, .pg-logo-mark, .pied-logo-mark) { background-color: #2B3B52 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.logo-mark, .pg-logo-mark, .pied-logo-mark) { background-color: #2B3B52 !important; } }

/* Une seule famille de caractères : les anciens titres en Playfair et le
   texte en DM Sans passent à Atkinson. */
body { font-family: var(--fp-police); }
h1, h2, h3, h4 { font-family: var(--fp-police); font-weight: 700; letter-spacing: -0.015em; }

/* ── Les bases ── */
.bl-sec { padding: 40px 0; }
.bl-sec + .bl-sec { border-top: 1px solid var(--bl-trait); }
.bl-eb { font-size: var(--fp-t-5); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fp-encre-2); margin: 0; }
.bl-h2 { font-family: var(--fp-police); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; color: var(--bl-fort); margin: 8px 0 0; text-wrap: balance; }
.bl-h1 { font-family: var(--fp-police); font-weight: 700; font-size: clamp(31px, 4.6vw, 52px); line-height: 1.1; color: var(--bl-fort); margin: 10px 0 0; text-wrap: balance; }
.bl-phrase { font-size: 17px; line-height: 1.55; color: var(--bl-texte); margin: 12px 0 0; max-width: 60ch; }
.bl-petit { font-size: 14px; color: var(--bl-doux); margin: 12px 0 0; }
.bl-petit a { color: inherit; text-underline-offset: 3px; }
.bl-carte { background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: var(--bl-r); padding: 16px; }
.bl-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-coche { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--bl-sauge); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bl-jo { display: inline-block; background: var(--fp-prof); color: var(--fp-sur-prof); font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 99px; vertical-align: 2px; }
.bl-btn-calme { background: transparent; color: var(--fp-encre); border: 0; box-shadow: inset 0 0 0 1.5px var(--fp-trait-fort); }
.bl-btn-calme:hover { background: var(--fp-creux); box-shadow: inset 0 0 0 1.5px var(--fp-encre); }

/* Le rond du repli : un chevron dans un cercle, qui se retourne ouvert. */
.bl-rond { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bl-trait); display: grid; place-items: center; }
.bl-rond::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--bl-fort); border-bottom: 2px solid var(--bl-fort); transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
details[open] > summary .bl-rond::before { transform: translateY(2px) rotate(225deg); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary:focus-visible { outline: 3px solid var(--fp-focus); outline-offset: 3px; border-radius: 12px; }

/* ── Le repli : titre + résumé + rond, le reste au toucher ── */
.bl-repli { background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: var(--bl-r); margin: 12px 0 0; }
.bl-repli > summary { display: flex; align-items: center; gap: 14px; padding: 16px; }
.bl-repli-t { flex: 1; display: grid; gap: 3px; min-width: 0; }
.bl-repli-t b, .bl-repli-t h2, .bl-repli-t h3 { font-family: var(--fp-police); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--bl-fort); margin: 0; }
.bl-repli-t > span { font-size: 14px; color: var(--bl-doux); line-height: 1.45; }
.bl-repli-d { padding: 0 16px 18px; }
.bl-repli-d > :first-child { margin-top: 0; }
/* La page la plus courte possible (Jonathan, 21 nov. 2026 : « que la page soit la moins longue possible, pour toutes
   les pages ») : à l'ordinateur, les questions fréquentes (quatre et plus) se rangent sur deux colonnes ; ouverte,
   une question ne pousse que sa colonne. */
@media (min-width: 1000px) {
  section:has(> details.bl-q ~ details.bl-q ~ details.bl-q ~ details.bl-q) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  section:has(> details.bl-q ~ details.bl-q ~ details.bl-q ~ details.bl-q) > :not(details.bl-q) { grid-column: 1 / -1; }
  section:has(> details.bl-q ~ details.bl-q ~ details.bl-q ~ details.bl-q) > details.bl-q { margin: 0; }
}
/* Même chose pour la foire aux questions des formules et du coaching (.faq de site.css, une colonne de 760 px). */
@media (min-width: 1000px) { .faq { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
/* Le titre du tableau des formules, et les questions des formules et du coaching, plus serrés au téléphone. */
.bl-fo-t { margin: 1.4rem 0 0.6rem; font-size: 20px; line-height: 1.3; }
@media (max-width: 719px) { .bl-fo-t { margin: 1rem 0 0.5rem; font-size: 18px; } .faq summary { padding: 14px 16px; } .faq .rep { padding: 0 16px 16px; } .faq { gap: 8px; } }
/* Au téléphone, les cartes de l'index des guides en lignes compactes : le titre suffit à choisir. */
@media (max-width: 719px) { .sj-cards .sj-card-d { display: none; } .sj-cards { gap: 8px; } }

/* « Lire la suite » : le long texte d'un bloc court. */
.bl-suite { margin: 12px 0 0; }
.bl-suite > summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--bl-vif-texte); padding: 4px 0; }
.bl-suite > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.bl-suite[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.bl-suite[open] > summary .bl-suite-ouvrir { display: none; }
.bl-suite:not([open]) > summary .bl-suite-fermer { display: none; }

/* ── La liste à coches ── */
.bl-coches { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.bl-coches li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; color: var(--bl-texte); }
.bl-coches li .bl-coche { position: absolute; left: 0; top: 2px; }
.bl-coches li b { color: var(--bl-fort); }

/* ── La frise : la faute qui pâlit, jusqu'au jour J ── */
.bl-frise { list-style: none; margin: 0; padding: 14px 8px 12px; display: flex; position: relative; background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: var(--bl-r); }
.bl-frise::before { content: ''; position: absolute; left: 9%; right: 9%; top: 21px; height: 2px; background: var(--bl-trait); }
.bl-frise li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; text-align: center; }
.bl-frise .bl-pt { width: 15px; height: 15px; border-radius: 50%; background: var(--bl-r0); box-shadow: 0 0 0 3px var(--bl-carte); }
/* Les jours et la faute en couleurs propres à la frise (audit V5 du 11
   novembre 2026) : 4,5:1 au moins pour le jour et pour la faute de demain
   (opacité 0,8) ; la suite pâlit exprès, l'aria-label de la frise dit tout. */
.bl-frise { --bl-frise-j: var(--fp-encre-2); --bl-frise-s: var(--fp-faute); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bl-frise { --bl-frise-j: var(--fp-encre-2); --bl-frise-s: var(--fp-faute); } }
:root[data-theme="dark"] .bl-frise { --bl-frise-j: var(--fp-encre-2); --bl-frise-s: var(--fp-faute); }
.bl-frise .bl-j { font-size: 11.5px; color: var(--bl-frise-j); white-space: nowrap; }
.bl-frise s { font-size: 11.5px; color: var(--bl-frise-s); white-space: nowrap; }
.bl-frise li:nth-child(2) .bl-pt { background: var(--bl-r1); } .bl-frise li:nth-child(2) s { opacity: 0.8; }
.bl-frise li:nth-child(3) .bl-pt { background: var(--bl-r3); } .bl-frise li:nth-child(3) s { opacity: 0.6; }
.bl-frise li:nth-child(4) .bl-pt { background: var(--bl-r7); } .bl-frise li:nth-child(4) s { opacity: 0.42; }
.bl-frise li:nth-child(5) .bl-pt { background: var(--bl-r14); } .bl-frise li:nth-child(5) s { opacity: 0.25; }
.bl-frise li:nth-child(6) .bl-pt { background: var(--bl-rok); }
.bl-frise .bl-juste { font-size: 12px; font-weight: 700; color: var(--bl-sauge); white-space: nowrap; }
@media (max-width: 380px) { .bl-frise s, .bl-frise .bl-juste, .bl-frise .bl-j { font-size: 10.5px; } }

/* ── L'échelle des niveaux 4, 7, 9 ── */
.bl-niv { margin-top: 18px; }
.bl-niv-ligne { position: relative; height: 36px; margin: 0 4px; }
.bl-niv-ligne::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 9px; background: linear-gradient(90deg, var(--bl-trait) 0 40%, var(--bl-vif) 40% 100%); }
.bl-niv-ligne span { position: absolute; top: 5px; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bl-carte); border: 2px solid var(--bl-doux); color: var(--bl-fort); }
.bl-niv-ligne .bl-n4 { left: 16%; }
.bl-niv-ligne .bl-n7 { left: 50%; background: var(--bl-vif); border-color: var(--bl-vif); color: var(--bl-sur-vif); }
.bl-niv-ligne .bl-n9 { left: 83%; border-color: var(--fp-encre-2); color: var(--fp-encre-2); }
.bl-niv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--bl-texte); }
.bl-niv-cols b { display: block; font-size: 15px; color: var(--bl-fort); }
.bl-niv-cols .bl-n7 b { color: var(--bl-vif-texte); }
.bl-niv-cols .bl-n9 b { color: var(--fp-encre); }

/* ── Les deux portes ── */
.bl-portes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bl-porte { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer;
  background: var(--bl-carte); border: 1px solid var(--bl-trait); border-top: 4px solid var(--bl-oral); border-radius: var(--bl-r); padding: 16px; transition: transform 0.15s, box-shadow 0.15s; }
.bl-porte:hover { box-shadow: inset 0 0 0 1px var(--fp-trait-fort); }
.bl-porte:focus-visible { outline: 3px solid var(--bl-vif); outline-offset: 3px; }
.bl-porte svg { width: 28px; height: 28px; fill: none; stroke: var(--bl-oral); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bl-porte b { font-size: 18px; color: var(--bl-fort); margin-top: 6px; }
.bl-porte small { font-size: 14px; color: var(--bl-doux); line-height: 1.4; }
.bl-porte.bl-ecoute { border-top-color: var(--bl-ecoute); }
.bl-porte.bl-ecoute svg { stroke: var(--bl-ecoute); }

/* ── Les prix dépliables (maquette l05) ── */
.bl-prix { display: grid; gap: 12px; margin-top: 18px; }
.bl-px { background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: var(--bl-r); }
.bl-px > summary { display: flex; align-items: center; gap: 14px; padding: 16px; }
.bl-px-m { flex: none; min-width: 74px; font-family: var(--fp-police); font-weight: 700; font-size: 30px; line-height: 1; color: var(--bl-fort); }
.bl-px-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bl-px-t > b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 17px; color: var(--bl-fort); }
.bl-px-r { font-size: 14.5px; color: var(--bl-doux); line-height: 1.4; }
.bl-px-badge { font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--fp-repere); color: var(--fp-papier); border-radius: 99px; padding: 2px 9px; }
.bl-px-fort { border: 2px solid var(--fp-repere); }
.bl-px-d { padding: 0 16px 18px; }
.bl-px-plus { font-size: 14.5px; color: var(--bl-doux); margin: 0; }
.bl-px-d .px-local { display: block; font-size: 13.5px; color: var(--bl-doux); margin-top: 12px; }
.bl-px-go { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
.bl-px-pied { font-size: 15px; color: var(--bl-doux); margin: 16px 0 0; line-height: 1.6; }
.bl-px-pied a { color: var(--bl-fort); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .bl-prix { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  .bl-px { display: flex; flex-direction: column; }
  .bl-px > summary { flex-direction: column; align-items: flex-start; gap: 10px; cursor: default; }
  .bl-px > summary .bl-rond { display: none; }
  .bl-px[open] { display: flex; }
  .bl-px-d { flex: 1; display: flex; flex-direction: column; }
  .bl-px-go { margin-top: auto; }
  .bl-px-d .bl-coches { margin-bottom: 18px; }
}

/* ── /formules : « Ton examen est dans… » et la carte conseillée ── */
.bl-choix { margin-top: 18px; }
.bl-choix-q { font-size: 15px; color: var(--bl-doux); margin: 0; }
.bl-puces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-width: 560px; }
.bl-puce { font: inherit; font-size: 15px; font-weight: 700; color: var(--bl-fort); background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--fp-trait-fort); border-radius: 99px; padding: 8px 6px; cursor: pointer; }
.bl-puce[aria-pressed="true"] { background: var(--fp-encre); box-shadow: none; color: var(--fp-papier); }
.bl-puce:focus-visible { outline: 3px solid var(--bl-vif); outline-offset: 2px; }
.bl-conseil { margin-top: 16px; background: var(--bl-carte); border: 2px solid var(--fp-repere); border-radius: 20px; padding: 18px; display: grid; gap: 10px; max-width: 640px; }
.bl-conseil[hidden] { display: none; }
.bl-conseil .bl-eb { color: var(--bl-vif-texte); }
.bl-conseil-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bl-conseil-nom { font-family: var(--fp-police); font-size: 22px; font-weight: 700; color: var(--bl-fort); margin: 0; }
.bl-conseil-px { margin: 0; text-align: right; }
.bl-conseil-px b { font-family: var(--fp-police); font-weight: 700; font-size: 34px; line-height: 1; color: var(--bl-fort); }
.bl-conseil-px .px-local { display: block; font-size: 13px; color: var(--bl-doux); }
.bl-conseil-r { font-size: 16px; color: var(--bl-texte); margin: 0; line-height: 1.5; }
.bl-semaines { list-style: none; margin: 2px 0 0; padding: 0; display: flex; gap: 6px; }
/* Copie : les épreuves ne se colorent plus (S'entraîner de la plateforme) ; des cases creuses à l'encre. */
.bl-semaines li { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; padding: 7px 4px; border-radius: 8px; background: var(--fp-creux); color: var(--fp-encre); border-top: 0; }
.bl-semaines li.bl-ep-oral { background: var(--fp-creux); }
.bl-conseil-go { display: flex; justify-content: center; margin-top: 4px; }

/* ── /formules : le tableau en lignes qui s'ouvrent ── */
.bl-table { margin-top: 22px; background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: 20px; padding: 6px 14px 10px; max-width: 760px; }
.bl-tr > summary, .bl-th { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 50px) 22px; align-items: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--bl-trait); }
.bl-tr:last-child > summary { border-bottom: 0; }
.bl-tn { font-size: 15px; color: var(--bl-fort); line-height: 1.3; }
.bl-tc { position: relative; text-align: center; font-size: 13px; font-weight: 700; color: var(--bl-fort); line-height: 1.2; display: flex; justify-content: center; align-items: center; border-radius: 8px; min-height: 30px; }
.bl-tc.bl-non { color: var(--bl-doux); font-size: 20px; }
.bl-th .bl-tc { font-size: 14px; font-weight: 700; color: var(--bl-doux); text-decoration: none; padding: 6px 0; }
.bl-th .bl-tc:hover { color: var(--bl-fort); }
.bl-table[data-col="gratuit"] [data-c="gratuit"], .bl-table[data-col="semaine"] [data-c="semaine"],
.bl-table[data-col="sprint"] [data-c="sprint"], .bl-table[data-col="preparation"] [data-c="preparation"] { background: var(--bl-vif-lave); }
.bl-table[data-col="gratuit"] .bl-th [data-c="gratuit"], .bl-table[data-col="semaine"] .bl-th [data-c="semaine"],
.bl-table[data-col="sprint"] .bl-th [data-c="sprint"], .bl-table[data-col="preparation"] .bl-th [data-c="preparation"] { color: var(--bl-vif-texte); }
.bl-tr .bl-rond { width: 22px; height: 22px; border: 0; }
.bl-tr .bl-rond::before { width: 6px; height: 6px; border-width: 0 1.6px 1.6px 0; border-color: var(--bl-doux); }
.bl-te { font-size: 14.5px; color: var(--bl-texte); line-height: 1.5; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--bl-trait); }
.bl-tg { font-size: var(--fp-t-5); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fp-encre-2); margin: 16px 0 0; }
.bl-an { font-size: 15px; color: var(--bl-doux); margin: 14px 0 0; max-width: 760px; }
.bl-an a { color: var(--bl-fort); text-underline-offset: 3px; }
.bl-confiance { display: grid; gap: 10px; margin-top: 22px; max-width: 760px; }
.bl-confiance p { margin: 0; }
@media (max-width: 420px) {
  .bl-table { padding: 4px 10px 8px; }
  .bl-tr > summary, .bl-th { grid-template-columns: minmax(0, 1fr) repeat(4, 46px) 16px; gap: 2px; }
  .bl-tn { font-size: 14px; }
  .bl-tc { font-size: 12px; }
}

/* ── Les pages de lecture (guides, sujets, outils) : le haut court et les
   blocs. Posés par scripts/presentation.py ── */
.bl-haut-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 6px; }
.bl-haut-action .bl-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 13px 22px; border-radius: var(--fp-r-action); background: var(--fp-action); color: var(--fp-sur-action); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: none; }
.bl-haut-action .bl-go:hover { background: var(--fp-action-survol); }
.bl-haut-action small { font-size: 14px; color: var(--bl-doux); }
@media (max-width: 767px) { .bl-haut-action .bl-go { width: 100%; } }
.bl-chapo { margin: 0; }
.bl-chapo > summary { display: block; }
.bl-chapo:not([open]) > summary .bl-chapo-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-chapo > summary .bl-chapo-plus { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--bl-vif-texte); margin-top: 4px; }
.bl-chapo[open] > summary .bl-chapo-plus { display: none; }
.bl-bloc { background: var(--bl-carte); border: 1px solid var(--bl-trait); border-radius: var(--bl-r); padding: 18px 18px 14px; margin: 16px 0 0; }
.bl-bloc > h2:first-child, .bl-bloc > h2:first-of-type { margin-top: 0; }
.bl-bloc > .bl-suite { border-top: 1px solid var(--bl-trait); padding-top: 8px; }
.bl-bloc > .bl-suite > :not(summary):first-of-type { margin-top: 10px; }
.bl-px-go, .bl-conseil-go { white-space: normal; text-align: center; line-height: 1.25; }
@media (min-width: 900px) { .bl-px-go { font-size: 15.5px; padding: 12px 14px; } }
.bl-puce { white-space: nowrap; font-size: 14.5px; padding: 9px 4px; }
.bl-confiance .px-garantie { flex-wrap: wrap; }
.bl-confiance .px-garantie > span { flex: 1 1 220px; }
/* /formules à l'ordinateur : la carte conseillée à gauche (elle reste à
   l'écran), le tableau à droite. */
@media (min-width: 1000px) {
  .bl-fo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
  .bl-fo-g { position: sticky; top: 130px; }
  .bl-fo .bl-table { margin-top: 18px; }
}
.bl-semaines li { overflow-wrap: anywhere; } .bl-tc { overflow-wrap: anywhere; }
/* Le sommaire d'un guide, replié. */
.bl-sommaire > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-sommaire > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; margin-left: auto; }
.bl-sommaire[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.bl-sommaire-n { font-size: 13px; color: var(--bl-doux); }
.bl-sommaire > summary .toc-title { margin: 0; }
.bl-sommaire > ol { margin-top: 10px; }
/* Le chapô replié : le lien sous les trois lignes. */
.bl-chapo > summary .bl-chapo-t { margin-bottom: 0; }
.bl-chapo > summary .bl-chapo-plus::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
/* Les chiffres en tête de page (« L'essentiel », « en un coup d'œil ») : plus serrés au téléphone. */
@media (max-width: 767px) {
  .reponse-grille { gap: 8px !important; }
  .reponse-grille > div { padding: 10px 12px !important; }
  .reponse-grille .n { font-size: 24px !important; }
  .reponse-grille .l { font-size: 13.5px !important; line-height: 1.35 !important; }
}
.bl-bloc:has(> .calc), .bl-bloc:has(> .sj-cards) { background: none; border: 0; padding: 0; }
/* La page d'un sujet : l'énoncé et « Écris-le » d'abord, les chiffres
   ensuite (le haut tient dans le premier écran). */
.sjp-fiche { display: flex; flex-direction: column; }
.sjp-fiche > .sjp-enonce-t { order: 1; margin-top: 0; }
.sjp-fiche > .sjp-enonce { order: 2; }
.sjp-fiche > .sjp-action { order: 3; }
.sjp-fiche > .reponse-q { order: 4; margin-top: 18px; }
.sjp-fiche > .reponse-grille { order: 5; }
.sjp-fiche > .reponse-q { margin-top: 20px !important; }
/* /coaching (9 novembre 2026) : trois rythmes, côte à côte à l'ordinateur. */
@media (min-width: 900px) { .bl-prix.bl-prix-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-sec .bl-prix { max-width: 980px; }
.co-diag { max-width: 760px; }
.co-diag > summary .bl-px-m { min-width: 64px; }
.co-avis { margin-top: 16px; }
.co-avis figure { opacity: 1 !important; transform: none !important; }
.co-avis-plus { margin-top: 6px; }
.co-haut .co-eb { color: var(--gold-on-dark, #F8C88C); }
.bl-confiance .garantie { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.bl-confiance .garantie svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--bl-sauge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-tete .co-eb { font-size: 12.5px; letter-spacing: 0.12em; } .bl-repli > summary { text-align: left; }
/* /coaching, les trois portes du haut (11 novembre 2026, point 16, option A) :
   la première séance en seule action forte (couleur vive, texte en
   --on-accent), le diagnostic et « Choisis ton rythme » en lignes calmes.
   Sur fond nuit dans les deux thèmes. */
.co-portes { display: grid; gap: 10px; margin-top: 28px; max-width: 560px; }
.co-porte { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px; text-decoration: none; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; transition: background 0.2s, border-color 0.2s; }
.co-porte:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(241, 172, 95, 0.5); }
a.co-porte[target="_blank"]::after { content: none; }
.co-porte-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.co-porte-q { font-size: 14px; color: var(--muted-on-dark); line-height: 1.35; }
.co-porte-r { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.co-porte-f { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.co-porte-forte { background: var(--fp-action-sur-forte); border-color: transparent; color: var(--fp-sur-action-sur-forte); padding: 17px 20px; box-shadow: none; }
.co-porte-forte:hover { background: var(--fp-action-sur-forte-survol); border-color: transparent; }
.co-porte-forte .co-porte-q { color: var(--fp-sur-action-sur-forte); opacity: 0.82; }
.co-porte-forte .co-porte-r { color: var(--fp-sur-action-sur-forte); font-size: 18px; }
.co-porte-forte .co-porte-f { opacity: 1; width: 20px; height: 20px; }
/* La séance et le diagnostic, l'un sous l'autre dans « Commence ici ». */
.co-depart { display: grid; gap: 12px; max-width: 760px; }

/* ── La frise qui s'anime (Jonathan, 9 novembre 2026) ──
   Une seule fois, quand elle entre à l'écran : les points s'allument de
   gauche à droite (700 ms chacun, ralenti le 11 nov. à la demande de Jonathan), « si j'aurais » pâlit au fil des jours,
   « si j'avais » arrive en dernier, au jour J. site.js pose .bl-anime
   (état de départ) puis .bl-joue. Sans script, ou avec « réduire les
   animations », la frise est montrée finie. */
.bl-frise.bl-anime:not(.bl-joue) .bl-pt { opacity: 0.18; transform: scale(0.55); }
.bl-frise.bl-anime:not(.bl-joue) s, .bl-frise.bl-anime:not(.bl-joue) .bl-juste { opacity: 0; }
.bl-frise.bl-joue .bl-pt { animation: bl-allume 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(var(--bl-i) * 700ms + 300ms); }
.bl-frise.bl-joue s { animation: bl-pali 0.7s ease both; animation-delay: calc(var(--bl-i) * 700ms + 500ms); }
.bl-frise.bl-joue .bl-juste { animation: bl-juste 0.9s ease both; animation-delay: calc(var(--bl-i) * 700ms + 600ms); }
.bl-frise li:nth-child(1) { --bl-i: 0; --bl-o: 1; } .bl-frise li:nth-child(2) { --bl-i: 1; --bl-o: 0.8; }
.bl-frise li:nth-child(3) { --bl-i: 2; --bl-o: 0.6; } .bl-frise li:nth-child(4) { --bl-i: 3; --bl-o: 0.42; }
.bl-frise li:nth-child(5) { --bl-i: 4; --bl-o: 0.25; } .bl-frise li:nth-child(6) { --bl-i: 5; --bl-o: 1; }
@keyframes bl-allume { from { opacity: 0.18; transform: scale(0.55); } 60% { opacity: 1; transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }
@keyframes bl-pali { from { opacity: 0; } to { opacity: var(--bl-o); } }
@keyframes bl-juste { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bl-frise .bl-pt, .bl-frise s, .bl-frise .bl-juste { animation: none !important; }
}
/* Côté anglais, le sigle français une fois par écran, en petit, là où
   « CLB » apparaît en premier et en grand (Jonathan, 9 novembre 2026). */
.bl-nclc { font-size: 0.72em; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--bl-doux); white-space: nowrap; }
.acc-eb .bl-nclc { color: var(--hero-text, var(--bl-doux)); font-size: 0.9em; }

/* ═══════════════════════════════════════════════════════════════════════════
   LA BARRE DE L'APPLI SUR TOUT LE SITE (refonte « Copie », 20 nov. 2026)
   Jonathan : « le menu en bas n'est pas le même que sur la plateforme ».
   C'est maintenant le même : les quatre entrées d'OngletsCopie.jsx (Aujourd'hui,
   S'entraîner, Mes fautes, Mon niveau), leurs dessins, les formes de
   copie.css (.fp-onglets) : en bas jusqu'à 1 199 px, en rail à gauche, logo en
   tête, au-delà. Écrite par scripts/entete_pied.py sur les 297 pages.
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-lang="fr"] .barre-ep [data-l="en"], html[data-lang="en"] .barre-ep [data-l="fr"], html:not([data-lang]) .barre-ep [data-l="fr"] { display: none !important; }
.barre-ep {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 56;
  background: var(--fp-carte); border-top: 1px solid var(--fp-trait);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.barre-ep .be-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; }
.barre-ep .be-logo { display: none; }
.barre-ep a:not(.be-logo) {
  position: relative; min-height: 63px; padding: 0 2px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 600 0.75rem/1.2 var(--fp-police); color: var(--fp-encre-2); text-decoration: none; white-space: nowrap;
}
.barre-ep a span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.barre-ep svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.barre-ep a:not(.be-logo):hover { color: var(--fp-encre); }
.barre-ep a:focus-visible { outline: 3px solid var(--fp-focus); outline-offset: -3px; border-radius: 10px; }
/* « Ici » : le trait de plume sous l'entrée (copie.css) ; jamais sur le site, qui n'est pas une section de l'appli. */
.barre-ep a[aria-current="page"] { color: var(--fp-encre); }
.barre-ep a[aria-current="page"]::after { content: ""; position: absolute; bottom: 9px; width: 18px; height: 2.5px; border-radius: 2px; background: var(--fp-repere); transform: rotate(-4deg); }
/* Le groupe « S'entraîner » du menu d'ordinateur dirait la même chose que la barre. */
@media (min-width: 1000px) { .menu-site .menu-gr:has(.menu-pan-ep) { display: none; } }
/* « Se connecter » dans l'en-tête des pages de contenu (entete_pied.py, poser_pg), comme sur l'accueil : à
   l'ordinateur seulement (au téléphone, il est dans le menu), jamais pour un élève connecté (il voit « Revenir à mon
   entraînement »). 21 nov. 2026. */
.pg-nav .connexion { display: none; }
@media (min-width: 1000px) { .pg-nav .connexion { display: inline-flex; align-items: center; white-space: nowrap; } }
html.fpc-session .pg-nav .connexion { display: none; }
@media (max-width: 1199px) {
  /* La place sous la page, pour que le pied et le dernier bouton ne finissent pas sous la barre. */
  body:has(.barre-ep) { padding-bottom: calc(63px + env(safe-area-inset-bottom, 0px)); }
  body:has(.barre-ep) .fpc-ask-launcher, body:has(.barre-ep) .ask-launcher { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  body:has(.barre-ep) .fpc-ask-panel, body:has(.barre-ep) .ask-panel { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
  body:has(.fpc-ask-launcher, .ask-launcher) .pied-site .pied-legal { padding-right: 72px; }
  body:has(.barre-ep) .retour-app.retour-bas { display: none !important; }
  /* Jamais pendant le menu plein écran, l'examinateur ouvert, ou une saisie (le clavier monte). */
  html.menu-ouvert .barre-ep, html.po-ouverte .barre-ep,
  html:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus) .barre-ep { display: none; }
}
/* Le rail de l'appli : le logo en tête, les quatre entrées en lignes, la page à côté. */
@media (min-width: 1200px) {
  .barre-ep { right: auto; top: 0; bottom: 0; width: 232px; border-top: 0; border-right: 1px solid var(--fp-trait); padding: 16px 12px; overflow-y: auto; }
  .barre-ep .be-in { display: flex; flex-direction: column; gap: 4px; max-width: none; margin: 0; }
  /* Les mesures du logo de l'appli (.fp-logo) : carré de 28 px, 8 px d'écart, 16 px. */
  .barre-ep .be-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 8px 12px; font: 700 1rem/1.2 var(--fp-police); letter-spacing: -0.01em; color: var(--fp-encre); text-decoration: none; white-space: nowrap; }
  .barre-ep .be-logo span { overflow: visible; }
  .barre-ep .be-logo-mark { width: 28px; height: 28px; flex: none; border-radius: 7px; background: #233145 url("/assets/fpc-icon-90.png") center / 75% no-repeat; }
  .barre-ep a:not(.be-logo) { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px; font-size: 0.9375rem; }
  .barre-ep a:not(.be-logo):hover { background: var(--fp-creux); }
  .barre-ep a[aria-current="page"] { background: var(--fp-creux); }
  .barre-ep a[aria-current="page"]::after { display: none; }
  body:has(.barre-ep) { padding-left: 232px; }
  /* Le menu du haut à côté du rail (21 nov. 2026, signalé par Jonathan : « le cadre passe en dessous du bandeau sur
     le côté »). Sur les pages à .topbar (accueil, /en, formules, coaching), le menu est collé au rail : le dernier
     panneau (« Comprendre le TCF »), ouvert vers la gauche, passait sous le rail, et sortait de l'écran à 1 200 px.
     Il s'ouvre donc vers la droite, où la place ne manque pas. Sur les pages de contenu (.pg-header), le menu est à
     droite et le panneau reste ouvert vers la gauche. Par sécurité, l'en-tête passe au-dessus du rail (57 > 56),
     sous la bulle de question (60) et le menu du téléphone. */
  body:has(.barre-ep) .topbar .menu-gr:last-of-type .menu-pan { left: -14px; right: auto; }
  body:has(.barre-ep) .topbar, body:has(.barre-ep) .pg-header { z-index: 57; }
  /* La rangée des vidéos d'élèves de /a-propos sort de la colonne de texte, sur la largeur de l'écran moins 40 px :
     avec le rail, c'est la largeur à côté du rail (elle débordait de 6 px à 1 200 px). */
  body:has(.barre-ep) .apropos-eleves .videos { width: min(980px, calc(100vw - 232px - 40px)); }
  /* Le rail porte le logo : l'en-tête ne garde que le menu du site, la langue, le thème et le compte. */
  body:has(.barre-ep) .topbar .logo, body:has(.barre-ep) .pg-header .pg-logo { display: none; }
  html.po-ouverte .barre-ep { display: none; }
}
:root[data-theme="dark"] .barre-ep .be-logo-mark { background-color: #2B3B52; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .barre-ep .be-logo-mark { background-color: #2B3B52; } }

/* L'en-tête de l'appli : la langue, le thème et le menu en carrés arrondis de
   44 px au trait renforcé ; le menu réduit à son icône (« ≡ », puis « × »). */
.topbar .icon-btn, .pg-nav a.pg-lang, .pg-theme {
  width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none;
  display: inline-grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--fp-encre); box-shadow: inset 0 0 0 1.5px var(--fp-trait-fort);
  font: 700 0.875rem/1 var(--fp-police); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
}
/* Le bouton du menu (posé par site.js ou theme.js, montré sous 1 000 px seulement) : même carré. */
.menu-btn {
  width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; justify-content: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--fp-encre); box-shadow: inset 0 0 0 1.5px var(--fp-trait-fort); cursor: pointer;
}
.topbar .icon-btn:hover, .pg-nav a.pg-lang:hover, .pg-theme:hover, .menu-btn:hover { background: var(--fp-creux); }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.menu-btn i { display: none; }

/* Le remboursement du mois, sous son bouton (accueil, 20 nov.) : une phrase calme. */
.bl-px-remb { margin: 10px 0 0; font-size: var(--fp-t-5); line-height: 1.45; color: var(--fp-encre-2); text-align: center; }
/* Les deux titres de l'index des guides, serrés (la page la plus courte possible, 21 nov. 2026). */
/* presentation.py les range dans un .bl-bloc. */
.bl-bloc > h2.gi-t, .pg-main > h2.gi-t { margin: 0 0 0.6rem; font-size: 20px; line-height: 1.3; }
.bl-bloc:has(> h2.gi-t) { margin-top: 0.9rem; }
/* Les pictos d'épreuve en couleur (option C) : la tuile prend le voile, le dessin le trait. Dans le menu (S'entraîner,
   et le simulateur d'oral parmi les outils) et sur les cartes « Ce mois-ci » des sujets, là où les épreuves se
   côtoient ; la page d'une seule épreuve garde ses pictos à l'encre (pas de classe ep-). La page en cours garde
   l'encre pleine du menu. */
.menu-ic.ep-ecoute, .sj-ic.ep-ecoute { background: var(--fp-ep-ecoute-voile); color: var(--fp-ep-ecoute); }
.menu-ic.ep-lecture, .sj-ic.ep-lecture { background: var(--fp-ep-lecture-voile); color: var(--fp-ep-lecture); }
.menu-ic.ep-ecrit, .sj-ic.ep-ecrit { background: var(--fp-ep-ecrit-voile); color: var(--fp-ep-ecrit); }
.menu-ic.ep-oral, .sj-ic.ep-oral { background: var(--fp-ep-oral-voile); color: var(--fp-ep-oral); }
.menu-site a.menu-item[aria-current="page"] .menu-ic[class*="ep-"] { background: var(--fp-encre); color: var(--fp-papier); }
