[hidden] { display: none !important; }
/* Duramen Prep, habillage « Ruban de chantier » (choisi par le Maître le 02/12). Les règles html[data-tema="b"]
   portent la marque ; les directions a et c, rejetées, sont retirées (captures dans design/directions/). */
@font-face { font-family: "Anybody"; src: url(/s/polices/Anybody.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/s/polices/Figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --titre: "Anybody", system-ui, sans-serif;
  --texte-police: "Figtree", system-ui, sans-serif;
  --juste: #17703c; --juste-fond: #e3f3e8;
  --faux: #b42318; --faux-fond: #fdeceb;
  --r: 0; --gouttiere: clamp(20px, 4vw, 48px); --max: 1240px;
  --vite: 180ms; --doux: cubic-bezier(.2, .8, .2, 1);
}
html[data-tema="b"] { --fond: #ffffff; --surface: #ffffff; --encre: #0d0d0d; --doux-texte: #555; --ligne: #0d0d0d;
  --marque: #ffffff; --sur-marque: #0d0d0d; --accent: #e65100; --sur-accent: #0d0d0d; --bouton: #0d0d0d; --sur-bouton: #fff; --etire: 140%; }

*, *::before, *::after { box-sizing: border-box; }
* { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h, 68px) + 12px); scroll-padding-bottom: calc(var(--pied-h, 0px) + 12px); }
body { text-rendering: geometricPrecision; margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.55 var(--texte-police); -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
input, textarea { user-select: text; -webkit-user-select: text; }
.copiable { user-select: all; -webkit-user-select: all; -webkit-touch-callout: default; }
h1, h2, h3 { font-family: var(--titre); font-stretch: var(--etire); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(28px, 8.4vw, 64px); font-weight: 800; hyphens: manual; overflow-wrap: break-word; }
@media (min-width: 761px) { h1 { font-size: clamp(34px, 5.2vw, 64px); } }
/* Téléphone : le mot le plus long du titre (--mot, calculé au rendu) tient sur la ligne, jamais coupé au milieu. */
@media (max-width: 760px) { html h1[style*="--mot"] { font-size: min(var(--h1-taille, clamp(28px, 8.4vw, 64px)), calc((100vw - 2 * var(--gouttiere)) / (var(--mot) * 1.1))); } }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 750; }
/* Titre de plus de 4 mots (long() dans rendu.py) et sous-titres des guides : police du texte en gras, la police d'affiche
   reste au nom et aux titres courts ; au plus 3 lignes à 1440 et 4 sur téléphone (03/12 03:08). */
html h1.titre-long { font-family: var(--texte-police); font-stretch: normal; font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.15; font-size: clamp(26px, 3.1vw, 42px); hyphens: manual; }
.prose h2 { font-family: var(--texte-police); font-stretch: normal; font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.h1-suite { font: 750 clamp(19px, 1.9vw, 24px)/1.3 var(--texte-police); margin: -0.2em 0 0.7em; max-width: 30ch; }
/* Pas de text-wrap: pretty (03/12 05:30) : dans WebKit il rééquilibre tout le paragraphe et laisse des lignes courtes au
   milieu (81 paragraphes sur 598 au téléphone Safari, pied de page ISA vu par le Superviseur) ; coupure normale partout. */
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r);
  border: 2px solid var(--bouton); color: var(--bouton); background: transparent; font: 650 16px/1 var(--texte-police); text-decoration: none;
  cursor: pointer; transition: transform var(--vite) var(--doux), background var(--vite); }
.bouton:active { transform: scale(.97); }
.bouton-plein { background: var(--bouton); color: var(--sur-bouton); }
.lien { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 600 15px var(--texte-police); color: var(--doux-texte);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- en-tête */
.entete { display: flex; align-items: center; gap: 28px; padding: 0 var(--gouttiere); padding-top: env(safe-area-inset-top);
  min-height: 68px; background: var(--fond); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 10; }
/* Clavier ouvert sur téléphone : l'en-tête collant mangerait le quart de la hauteur visible ; il défile avec la page. */
@media (max-width: 760px) { body:has(input:focus, textarea:focus, select:focus) .entete { position: static; } }
.marque { display: flex; align-items: baseline; min-height: 44px; gap: 0.3em; text-decoration: none; font: 800 22px/44px var(--titre); font-stretch: var(--etire); letter-spacing: -0.015em; color: var(--encre); }
.marque-prep { color: var(--accent); letter-spacing: 0; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 12px 12px; min-height: 44px; display: flex; align-items: center; text-decoration: none; font-weight: 600; color: var(--doux-texte); border-radius: 0; }
.nav a[aria-current] { color: var(--encre); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.entete-fin { display: flex; align-items: center; gap: 14px; }
.langue-court { display: none; }
.langue { font-weight: 600; text-decoration: none; padding: 12px 6px; min-height: 44px; display: flex; align-items: center; }
.entete .bouton { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------- accueil */
.ouverture { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(32px, 6vw, 72px) var(--gouttiere); max-width: var(--max); margin: 0 auto; }
@media (min-width: 980px) { .ouverture { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 56px; } }
.chapo { font-size: clamp(18px, 1.8vw, 21px); color: var(--doux-texte); max-width: 34ch; }
.chapo-large { max-width: 60ch; }
.bloc { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gouttiere); }


html[data-tema="b"] h1 { font-weight: 900; text-transform: none; }
html[data-tema="b"] .ouverture-question .q { border: 3px solid var(--encre); border-radius: 0; padding: 28px; box-shadow: 10px 10px 0 var(--accent); }
html[data-tema="b"] .bouton { border-radius: 0; }
html[data-tema="b"] .bouton-plein { box-shadow: 4px 4px 0 var(--accent); }


/* ---------- domaines */
.domaines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ligne); }
@media (min-width: 760px) { .domaines { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; } }
.domaines a { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0;
  border-bottom: 1px solid var(--ligne); text-decoration: none; }
.domaine-nom { font-weight: 650; font-size: 18px; }
.domaine-poids { display: flex; align-items: center; gap: 10px; }
.barre { height: 8px; flex: 1; background: linear-gradient(90deg, var(--marque) calc(var(--p) * 100%), var(--ligne) 0); border-radius: 0; }
html[data-tema="b"] .barre { background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), #eee 0); border-radius: 0; height: 10px; }
.domaine-pct { font-variant-numeric: tabular-nums; color: var(--doux-texte); font-weight: 600; min-width: 3.2ch; text-align: right; }
.domaine-score { font-weight: 750; font-variant-numeric: tabular-nums; }
.domaine-score[data-ok="1"] { color: var(--juste); }

/* ---------- examen et offre */
.examen-bloc { display: grid; gap: 32px; }
@media (min-width: 900px) { .examen-bloc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.chiffres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; background: var(--encre); border: 2px solid var(--encre); border-radius: 0; overflow: hidden; margin: 0; }
.chiffres div { background: var(--fond); padding: 22px; }
.chiffres dt { color: var(--doux-texte); font-weight: 600; font-size: 15px; }
.chiffres dd { margin: 4px 0 0; font: 800 clamp(30px, 4vw, 44px)/1 var(--titre); font-stretch: var(--etire); font-variant-numeric: tabular-nums; }
.offre-bloc { border-top: 1px solid var(--ligne); }
.inclus { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; max-width: 62ch; }
.inclus li { padding-left: 30px; position: relative; font-size: 18px; }
.inclus li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border: solid var(--juste); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { min-height: 60px; display: flex; align-items: center; font-weight: 650; font-size: 18px; cursor: pointer; list-style: none; padding-right: 32px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; width: 10px; height: 10px; border: solid var(--doux-texte); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--vite) var(--doux); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details div { padding: 0 0 20px; max-width: 70ch; color: var(--encre); }

/* ---------- question */
.q { position: relative; }
.q-domaine { font-weight: 700; color: var(--doux-texte); margin-bottom: 10px; font-size: 15px; }
.q-texte { font: 650 clamp(20px, 2.2vw, 25px)/1.35 var(--texte-police); letter-spacing: 0; margin-bottom: 4px; font-stretch: 100%; }
.q-autre { color: var(--doux-texte); font-style: normal; border-left: 0; margin: 0 0 18px; font-size: 17px; }
.opts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.opt { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-align: left; cursor: pointer;
  background: var(--fond); color: var(--encre); border: 2px solid var(--ligne); border-radius: var(--r); font: 500 17px/1.35 var(--texte-police);
  transition: border-color var(--vite), background var(--vite), transform var(--vite) var(--doux); }
html[data-tema="b"] .opt { border-radius: 0; border-color: var(--encre); }
.opt:active:not([aria-disabled]) { transform: scale(.985); }
@media (hover: hover) { .opt:hover:not([aria-disabled]) { border-color: var(--encre); } }
.opt-lettre { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 0; background: var(--surface); font-weight: 750; font-size: 15px; }
html[data-tema="b"] .opt-lettre { border-radius: 0; background: var(--encre); color: #fff; }
.opt[data-etat="bonne"] { border-color: var(--juste); background: var(--juste-fond); }
.opt[data-etat="bonne"] .opt-lettre { background: var(--juste); color: #fff; }
.opt[data-etat="choisie"] { border-color: var(--faux); background: var(--faux-fond); }
.opt[data-etat="choisie"] .opt-lettre { background: var(--faux); color: #fff; }
.opt[aria-disabled] { cursor: default; }
.explication summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; color: var(--doux-texte); }
.serie.js .explication summary { display: none; }
.serie.js .q:not([data-repondu]) .explication { display: none; }
.explication p { max-width: 68ch; }
.verdict { font-weight: 750; font-size: 18px; margin-top: 6px; }
.verdict span { display: none; }
.q:not([data-repondu]) .verdict-neutre, .q[data-repondu="juste"] .verdict-juste, .q[data-repondu="faux"] .verdict-faux { display: inline; }
.verdict-juste { color: var(--juste); }
.verdict-faux { color: var(--faux); }
.source { color: var(--doux-texte); font-size: 15px; }
.q .suivant { margin-top: 8px; }
.q-bascule { display: block; margin-bottom: 10px; }

/* ---------- page d'entraînement */
.entrainement { display: grid; grid-template-columns: minmax(0, 1fr); max-width: var(--max); margin: 0 auto; padding: 28px var(--gouttiere) 64px; gap: 48px; }
@media (min-width: 1100px) { .entrainement { grid-template-columns: 290px minmax(0, 1fr); } }
.cote { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere); }
.cote::-webkit-scrollbar { display: none; }
.cote[data-suite="d"] { mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.cote[data-suite="g"] { mask-image: linear-gradient(90deg, transparent, #000 40px); }
.cote[data-suite="dg"] { mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.cote ol { display: flex; gap: 6px; }
.cote li { flex: none; }
.cote a { border: 2px solid var(--encre); }
.cote a .cote-poids { display: none; }
@media (min-width: 1100px) {
  .cote { display: block; position: sticky; top: 96px; align-self: start; overflow: visible; margin: 0; padding: 0; }
  .cote ol { display: block; }
  .cote a { border: 0; }
  .cote a .cote-poids { display: inline; }
}
.cote ol { list-style: none; margin: 0; padding: 0; }
.cote a { display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; padding: 8px 14px; text-decoration: none; border-radius: 0; font-weight: 550; }
.cote a[aria-current] { background: var(--marque); color: var(--sur-marque); }
html[data-tema="b"] .cote a[aria-current] { background: var(--encre); color: #fff; border-radius: 0; }
.cote-poids { font-variant-numeric: tabular-nums; opacity: .7; }
.serie { max-width: 760px; }
.serie-tete h1 { --h1-taille: clamp(30px, 4vw, 46px); font-size: var(--h1-taille); }
.serie-info { color: var(--doux-texte); font-weight: 600; }
.avance { height: 6px; background: var(--ligne); border-radius: 0; margin: 8px 0 32px; overflow: hidden; display: none; }
.serie.js .avance { display: block; }
/* Piste claire : noire (--ligne du thème b), la barre vide se lisait « terminé » dès la question 1 (03/12, œil neuf). */
html[data-tema="b"] .avance { background: #e2e2e2; }
.avance-barre { display: block; height: 100%; width: 100%; background: var(--marque); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 320ms var(--doux); }
html[data-tema="b"] .avance-barre { background: var(--accent); }
.serie:not(.js) .q + .q { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--ligne); }
.serie-score { font: 800 40px/1.1 var(--titre); font-stretch: var(--etire); }
.vide { font-size: 19px; }

/* ---------- pied */
.pied { border-top: 1px solid var(--ligne); padding: 32px var(--gouttiere) calc(32px + env(safe-area-inset-bottom)); color: var(--doux-texte); font-size: 15px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.pied-liens a { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; text-decoration: none; }
.pied-marque { max-width: 80ch; }

@media (max-width: 760px) {
  /* Trois colonnes : le bouton d'achat a la sienne sur la 1re ligne, il ne peut plus recouvrir la marque (03/12 : « Acceso
     completo $45 » mordait « Prep » à 390 px ; SPEC L41). La langue prend la dernière colonne sur la 2e ligne. */
  .entete { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "marque bouton bouton" "nav nav langue"; gap: 0 12px; min-height: 0; }
  .entete-fin { display: contents; }
  .marque { grid-area: marque; justify-self: start; min-width: 0; min-height: 60px; font-size: 19px; line-height: 60px; }
  .entete .bouton { grid-area: bouton; justify-self: end; white-space: nowrap; padding: 0 12px; }
  .nav { grid-area: nav; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: -8px; gap: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 8px; white-space: nowrap; font-size: 15px; }
  .langue { grid-area: langue; min-width: 44px; justify-content: center; }
  .langue-long { display: none; }
  .langue-court { display: inline; }
  .domaines a { grid-template-columns: minmax(0, 1fr) 90px; }
  .domaine-score { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- pages simples */
.etroit { max-width: 640px; }
.formulaire, .carte-achat { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; font-weight: 600; }
.champ input { min-height: 52px; padding: 0 14px; }
.champ input, .champ textarea { font: 400 17px var(--texte-police); padding: 12px 14px; border: 2px solid var(--ligne); border-radius: var(--r); background: var(--fond); color: var(--encre); }
.champ textarea { resize: vertical; line-height: 1.45; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); }
.champ [aria-invalid="true"] { border-color: var(--accent); }
.recap { display: grid; gap: 4px 0; margin: 0 0 24px; }
.recap dt { font-weight: 700; margin-top: 12px; }
.recap dd { margin: 0; overflow-wrap: anywhere; }
.formulaire + .formulaire { margin-top: 12px; }
.champ input[aria-invalid] { border-color: var(--faux); }
.erreur { color: var(--faux); font-weight: 600; margin: 0; }
.offre { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .offre { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.carte-achat { border: 2px solid var(--encre); border-radius: 0; padding: clamp(18px, 5vw, 28px); }
html[data-tema="b"] .carte-achat { border-radius: 0; box-shadow: 10px 10px 0 var(--accent); }
.achat-prix { font: 850 64px/1 var(--titre); font-stretch: var(--etire); margin: 0; }
.achat-une-fois { font-weight: 650; margin: 0; }
.achat-note { color: var(--doux-texte); font-size: 15px; margin: 0; }
.copiable { font: 600 17px var(--texte-police); background: var(--surface); padding: 14px 16px; border-radius: var(--r); word-break: break-all; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
@media (max-width: 600px) {
  /* overflow-wrap: anywhere réduisait la largeur minimale des cellules à une lettre : le tableau coupait « Pregu|ntas »,
     « $36|9 », « 15|% » au téléphone (03/12, SPEC L42). break-word ne coupe qu'un mot plus large que la colonne entière. */
  .prose th, .prose td { padding: 8px 6px; overflow-wrap: break-word; }
  [data-cle="glosario"] .prose table, [data-cle="glosario"] .prose tbody { display: block; }
  /* glossaire : chaque ligne devient une fiche (anglais | espagnol, puis la définition sur toute la largeur) */
  [data-cle="glosario"] .prose thead { display: none; }
  /* Deux colonnes tant qu'un terme de 9em y tient, sinon l'anglais puis l'espagnol l'un sous l'autre : à 320 px,
     « compartmentalization » se coupait en deux (03/12, outils/rendu/coupes.py). Jamais de césure (SPEC L28, L42). */
  [data-cle="glosario"] .prose tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
  [data-cle="glosario"] .prose td { border: 0; padding: 0; overflow-wrap: break-word; }
  [data-cle="glosario"] .prose td:nth-child(2) { font-weight: 700; }
  [data-cle="glosario"] .prose td:nth-child(3) { grid-column: 1 / -1; color: var(--doux-texte); font-size: 15px; }
}
/* Sur téléphone, l'espagnol dit « Acceso $45 » : « Acceso completo $45 » ne laissait pas sa place à la marque (SPEC L41).
   L'anglais tient entier à 320 px (outils/rendu/entete.py) et garde « Full ». */
@media (max-width: 440px) { :lang(es) .acces-mot { display: none; } }
@media (max-width: 420px) {
  .marque { font-size: 16px; }
  .entete .bouton { padding: 0 10px; }
}
/* Menu du téléphone avec compte (quatre liens) : il tient entier de 360 à 760 px, sans défiler (03/12 : « Progr » coupé à 390).
   « Practice exam » devient « Exam » sous 440 px, et le texte passe à 14 px sous 380 px. */
.nav-court { display: none; }
@media (max-width: 440px) { .nav-long { display: none; } .nav-court { display: inline; } }
@media (max-width: 380px) { .nav a { font-size: 14px; } }
/* Le fondu de fin de menu ne sert qu'où le menu défile : au-dessus de 360 px il tient entier (outils/rendu/entete.py), et un
   fondu permanent grisait « Progress » comme un mot coupé (planche téléphone du 03/12, SPEC L41). */
@media (max-width: 359px) { .nav { mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); } }
@media (max-width: 360px) {
  .marque-prep { display: none; }
  .examen-barre .bouton, .examen-grille-bouton { padding: 0 10px; }
  .examen-temps { font-size: 18px; }
  .examen-grille-bouton svg { display: none; }
}
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.prose td a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-fin { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- liste des examens */
.genres { display: grid; gap: 16px; margin: 32px 0 48px; }
@media (min-width: 760px) { .genres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.genre { border: 2px solid var(--ligne); border-radius: 0; padding: 24px; display: grid; gap: 16px; align-content: start; }
.genre:last-child { border-color: var(--encre); }
html[data-tema="b"] .genre { border-radius: 0; border-color: var(--encre); }
.genre h2 { font-size: 24px; margin: 0; }
.genre-chiffres { display: flex; gap: 28px; margin: 0; }
.genre-chiffres dt { color: var(--doux-texte); font-size: 15px; font-weight: 600; }
.genre-chiffres dd { margin: 0; font: 800 34px/1.1 var(--titre); font-stretch: var(--etire); font-variant-numeric: tabular-nums; }
.liste-examens { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ligne); }
.liste-examens a { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(5ch, auto); gap: 16px; min-height: 56px; align-items: center; border-bottom: 1px solid var(--ligne); text-decoration: none; }
.liste-date { color: var(--doux-texte); }
.liste-score { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-ok="1"].liste-score, .rd-pct[data-ok="1"], .resultat-pct[data-ok="1"] { color: var(--juste); }

/* ---------- examen en cours */
.p-examen main { display: flex; }
.examen { display: flex; flex-direction: column; width: 100%; min-height: 100dvh; }
.examen-barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px var(--gouttiere); padding-top: max(10px, env(safe-area-inset-top));
  background: var(--fond); border-bottom: 1px solid var(--ligne); }
.examen-compteur { font-weight: 700; font-variant-numeric: tabular-nums; }
.examen-temps { margin-left: auto; margin-right: auto; font: 800 26px/1 var(--titre); font-stretch: var(--etire); font-variant-numeric: tabular-nums; }
.examen-temps[data-bas="1"] { color: var(--faux); }
.examen-barre .bouton { min-height: 44px; padding: 0 16px; }
.examen-grille-bouton { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.examen-grille-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform var(--vite) var(--doux); }
.examen-grille-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .examen-temps { font-size: 20px; }
  .examen-barre { gap: 8px; }
  .examen-barre .bouton { padding: 0 12px; }
  .examen-pied .bouton { min-width: 0; flex: 1; }
}
.grille { padding: 16px var(--gouttiere); border-bottom: 1px solid var(--ligne); max-height: 50dvh; overflow: auto; }
.case { min-height: 44px; border: 1.5px solid var(--ligne); background: var(--fond); color: var(--encre); border-radius: 0; font: 600 15px var(--texte-police); font-variant-numeric: tabular-nums; cursor: pointer; position: relative; }
.case { border-color: var(--doux-texte); border-style: dashed; }
.case[data-repondu="1"] { background: var(--encre); color: #fff; border: 1.5px solid var(--encre); }
.case[data-marque="1"]::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--faux); }
.case[aria-current] { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 1; }
.examen-questions { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 32px var(--gouttiere); }
.eq { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.eq-texte { font: 650 clamp(20px, 2.2vw, 25px)/1.35 var(--texte-police); margin-bottom: 14px; padding: 0; }
.eq-n { color: var(--doux-texte); }
.eq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.eq-opt:has(input:checked) { border: 3px solid var(--encre); background: var(--accent); color: var(--sur-accent); box-shadow: 6px 6px 0 var(--encre); }
.eq-opt:has(input:checked) .opt-lettre { background: var(--encre); color: #fff; }
.eq-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.examen-pied { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gouttiere) max(12px, env(safe-area-inset-bottom));
  background: var(--fond); border-top: 1px solid var(--ligne); }
@media (min-width: 601px) { .examen-pied .bouton { min-width: 130px; } }
.examen-pied .bouton:disabled { opacity: .35; }
.marque-q { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; cursor: pointer; }
.marque-q input { width: 22px; height: 22px; accent-color: var(--faux); }
dialog.confirmer { border: 3px solid var(--encre); border-radius: 0; box-shadow: 10px 10px 0 var(--accent); padding: 28px; max-width: min(420px, calc(100vw - 48px)); background: var(--fond); color: var(--encre); }
dialog.confirmer::backdrop { background: rgb(0 0 0 / .45); }
.confirmer-texte { font-size: 19px; font-weight: 650; }

/* ---------- résultat, progrès, rose */
.resultat-tete, .progres-tete { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .resultat-tete, .progres-tete { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.resultat-pct { font: 850 clamp(64px, 9vw, 104px)/1 var(--titre); font-stretch: var(--etire); margin: 0 0 12px; font-variant-numeric: tabular-nums; color: var(--faux); }
.resultat-domaines { list-style: none; padding: 0; margin: 32px 0; border-top: 1px solid var(--ligne); }
.resultat-domaines li > *, .resultat-domaines li { min-height: 52px; }
.resultat-domaines li, .resultat-domaines a { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 16px; align-items: center; text-decoration: none; }
.resultat-domaines > li { border-bottom: 1px solid var(--ligne); }
.resultat-domaines li:has(> a) { display: block; }
.rd-chiffres { color: var(--doux-texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-pct { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.rose { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.rose svg { width: 100%; height: auto; display: block; }
.rose-cerne { fill: none; stroke: var(--ligne); stroke-width: 1; }
.rose-rayon { stroke: var(--fond); stroke-width: 2; }
.rose-part { fill: var(--accent); }
.rose-part[data-ok="1"] { fill: var(--marque); }
html[data-tema="b"] .rose-part[data-ok="1"] { fill: var(--encre); }
.rose-part[data-vide="1"] { fill: var(--ligne); }
.rose-seuil { fill: none; stroke: var(--encre); stroke-width: 2.5; stroke-dasharray: 6 4; }
.rose-coeur { fill: var(--fond); stroke: var(--encre); stroke-width: 2; }
.corrige-tete { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 48px 0 8px; }
.corrige-tete h2 { margin: 0; }
.filtre { display: flex; border: 2px solid var(--encre); }
.filtre label { position: relative; }
.filtre input { position: absolute; opacity: 0; pointer-events: none; }
.filtre span { display: block; min-height: 44px; padding: 11px 18px; font-weight: 650; cursor: pointer; }
.filtre input:checked + span { background: var(--encre); color: #fff; }
.filtre input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.resultat:has(.filtre input[value="faux"]:checked) .corrige-q[data-juste="1"] { display: none; }
.resultat:has(.filtre input[value="faux"]:checked) .corrige-q[data-juste="sans"],
.resultat:has(.filtre input[value="sans"]:checked) .corrige-q:not([data-juste="sans"]) { display: none; }
.corrige-signe[data-juste="sans"] svg { stroke: var(--doux-texte); }
/* Le graphique dit ce qu'il montre (03/12, œil neuf : « trois parts orange, je ne sais pas ce que je regarde »). */
.rose-legende { margin-top: 10px; font-size: 15px; color: var(--doux-texte); max-width: 36ch; }
/* Au téléphone, les trois filtres l'un sous l'autre : côte à côte, « Sin responder (21) » tenait sur 3 lignes (03/12, œil neuf). */
@media (max-width: 440px) {
  .filtre { display: grid; width: 100%; }
  .filtre label + label { border-top: 2px solid var(--encre); }
}
.corrige { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--encre); }
.corrige-q { border-bottom: 1px solid var(--ligne); }
.corrige-q summary { list-style: none; display: grid; grid-template-columns: 24px 3.2ch minmax(0, 1fr) 24px; gap: 10px; align-items: start; padding: 16px 0; min-height: 44px; cursor: pointer; }
.corrige-q summary::-webkit-details-marker { display: none; }
.corrige-signe svg, .corrige-fleche { width: 24px; height: 24px; fill: none; stroke-width: 2.5; stroke-linecap: square; }
.corrige-signe[data-juste="1"] svg { stroke: var(--juste); }
.corrige-signe[data-juste="0"] svg { stroke: var(--faux); }
.corrige-fleche { stroke: var(--encre); transition: transform var(--vite) var(--doux); }
.corrige-q details[open] .corrige-fleche { transform: rotate(180deg); }
.corrige-q .eq-n { font-variant-numeric: tabular-nums; padding-top: 1px; }
.corrige-texte { font-weight: 650; font-size: 18px; line-height: 1.4; }
.corrige-opts { list-style: none; padding: 0; margin: 0 0 12px calc(24px + 3.2ch + 20px); display: grid; gap: 6px; }
.corrige-opts li { display: flex; gap: 12px; align-items: center; padding: 8px 12px; }
.corrige-opts li[data-etat="bonne"] { background: var(--juste-fond); }
.corrige-opts li[data-etat="bonne"] .opt-lettre { background: var(--juste); color: #fff; }
.corrige-opts li[data-etat="choisie"] { background: var(--faux-fond); }
.corrige-opts li[data-etat="choisie"] .opt-lettre { background: var(--faux); color: #fff; }
.corrige-sans, .corrige-w { margin-left: calc(28px + 2.5em + 24px); }
.corrige-sans { color: var(--faux); font-weight: 650; }
.corrige-w { color: var(--encre); max-width: 70ch; padding-bottom: 20px; }
@media (max-width: 600px) { .corrige-opts, .corrige-sans, .corrige-w { margin-left: 0; } }
.lien-prive { margin-top: 48px; }
.guide-autres { margin-top: 56px; border-top: 3px solid var(--encre); padding-top: 16px; }
.guide-autres h2 { font-size: 22px; margin: 0 0 8px; }
.guide-autres ul { list-style: none; padding: 0; margin: 0; }
.guide-autres a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ligne); color: inherit; font-weight: 600; text-decoration: none; }
.guide-autres a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.reprendre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 32px; padding: 20px 24px; border: 3px solid var(--encre); box-shadow: 8px 8px 0 var(--accent); color: inherit; text-decoration: none; }
.reprendre-quoi { display: flex; flex-direction: column; gap: 2px; font-size: 18px; }
.reprendre-quoi b { font-family: var(--titre); font-stretch: 130%; font-size: 22px; }
.effacer { margin-top: 56px; border-top: 2px solid var(--encre); padding-top: 8px; }
.effacer summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--doux-texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.effacer summary::-webkit-details-marker { display: none; }
.effacer form { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 8px 0; }
.effacer p { margin: 0; }
.bouton-danger { background: var(--faux); color: #fff; border-color: var(--faux); }
.p-accueil h1 { --h1-taille: clamp(34px, 3.6vw, 52px); font-size: var(--h1-taille); }
html[data-tema="b"] .p-accueil h1 { font-stretch: 122%; }

/* Factures : lisibles à l'écran, propres à l'impression (sans en-tête ni pied du site) */
.factures-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.facture-client { margin: 24px 0; border: 3px solid var(--encre); padding: 0 20px; }
.facture-client summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.facture-client form { display: grid; gap: 12px; padding-bottom: 20px; max-width: 560px; }
.facture-client textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 0; }
.facture { margin: 32px 0; padding: 32px; border: 3px solid var(--encre); background: #fff; color: #0d0d0d; break-inside: avoid; }
.facture-haut { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 3px solid #0d0d0d; padding-bottom: 16px; }
.facture-haut h2 { margin: 0 0 6px; font-size: 24px; }
.facture-haut p { margin: 0; }
.facture-marque { font-family: var(--titre); font-stretch: 130%; font-weight: 800; font-size: 20px; }
.facture-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 24px 0; }
.facture-parties h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.facture-parties p { margin: 0; overflow-wrap: anywhere; }
.facture-lignes { width: 100%; border-collapse: collapse; }
.facture-lignes th, .facture-lignes td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #0d0d0d; vertical-align: top; }
.facture-lignes td:nth-child(n+2), .facture-lignes th:nth-child(n+2), .facture-lignes tfoot td { text-align: right; white-space: nowrap; }
.facture-lignes tfoot th, .facture-lignes tfoot td { font-weight: 800; border-bottom: 3px solid #0d0d0d; }
.facture-mentions { margin: 16px 0 0; font-size: 14px; }
.lien-factures { margin-top: 24px; }
@media print {
  .entete, .pied, .factures-tete .bouton, .facture-client, .lien-evitement { display: none !important; }
  .facture { border: 0; padding: 0; margin: 0 0 24px; box-shadow: none; }
  .facture + .facture { break-before: page; }
  body { background: #fff; }
}
.corrige-ferme { margin-top: 32px; }
.serie-score-vif:not(:empty)::before { content: " · "; }
.bouton-discret { border-color: transparent; background: transparent; text-decoration: underline; }
@media (max-width: 600px) { .examen-pied { gap: 8px; } .examen-pied .bouton { padding: 0 10px; } .examen-pied .marque-q { gap: 6px; } }

/* Un bouton sur deux lignes garde son texte centré (03/12, œil neuf : « Prueba un simulacro gratis de 25 preguntas » à gauche). */
.bouton { text-align: center; }
/* Choix traduits sous « See in English » (03/12). */
.opt-autre { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--doux-texte); }
.opt-autre[hidden] { display: none; }
.opt[data-etat] .opt-autre { color: inherit; opacity: .85; }
/* Légende de la grille d'examen (03/12, œil neuf : cases noires, pointillées, à point rouge sans explication). */
.grille-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.grille-legende { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: 15px; color: var(--doux-texte); }
.grille-legende span { display: inline-flex; align-items: center; gap: 8px; }
.case-mini { position: relative; display: inline-block; width: 18px; height: 18px; border: 1.5px dashed var(--doux-texte); }
.case-mini[data-repondu="1"] { background: var(--encre); border: 1.5px solid var(--encre); }
.case-mini[data-marque="1"]::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--faux); }
