/* ── La porte de l'examinateur (31 octobre 2026) ──
   L'accueil : le titre, UN bouton « Commencer gratuitement », et à côté
   (ordinateur) ou dessous (téléphone) un aperçu de la salle qui suit le
   chemin aujourd'hui, score cible, examen, résidence permanente.
   La salle : plein écran, toujours sombre (on entre dans une salle
   d'examen, la lumière baisse), quel que soit le thème de la page. Les
   couleurs restent celles de la charte, version nuit. */

/* L'accueil, quand la porte est active (JS chargé, pas de repli) : une
   seule colonne centrée (piste A, choisie le 31 octobre). Le titre court,
   puis UNE scène sombre où l'examinateur, sa question et le bouton sont
   ensemble, puis le chemin jusqu'à la résidence permanente. */
.po-apercu { display: none; }
.js .hq.po-actif .hq-in { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.js .hq.po-actif .po-apercu { display: flex; }
.js .hq.po-actif .hq-carte, .js .hq.po-actif .hq-avant, .js .hq.po-actif .hq-go, .js .hq.po-actif .hq-note { display: none; }
.hq.po-actif .hq-pour { margin: 8px auto 0; max-width: none; }
.hq.po-actif h1 { font-size: clamp(31px, 5vw, 56px); line-height: 1.08; max-width: 17ch; margin: 14px auto 0; }
.hq.po-actif .hq-qui { justify-content: center; text-align: left; }

.po-apercu {
  position: relative; overflow: hidden; width: 100%; margin-top: 26px;
  flex-direction: column; align-items: center; text-align: center;
  background: #233145; color: #F2EFEA; border-radius: 16px; padding: 28px 28px 22px;
  box-shadow: none; font-family: var(--fp-police);
}
.po-apercu::before { content: none; }
.po-apercu > * { position: relative; }
.po-apercu-direct { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #C9D1DC; }
.po-apercu-direct i { width: 8px; height: 8px; border-radius: 50%; background: #E8735A; box-shadow: 0 0 0 4px rgba(232, 115, 90, 0.25); animation: po-direct 2s ease-in-out infinite; }
@keyframes po-direct { 50% { box-shadow: 0 0 0 7px rgba(232, 115, 90, 0.08); } }
.po-apercu .po-orbe { margin-top: 16px; width: 96px; height: 96px; }
.po-apercu-dit { margin: 18px auto 0; max-width: 30ch; font-family: var(--fp-police); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.25; }
.po-apercu-trad { margin: 6px 0 0; font-size: 14.5px; color: #C9D1DC; font-style: italic; }
.po-entree { margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.po-ouvrir { min-height: 60px; padding: 16px 34px; font-size: 19px; }
.po-entree-note { margin: 12px auto 0; font-size: 14.5px; color: #C9D1DC; max-width: 60ch; }
.po-entree .lien, .po-bas .lien { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.po-entree .lien { margin-top: 2px; color: #F2EFEA; font-size: 14.5px; font-weight: 600; }
.po-apercu .po-chemin-apercu { width: 100%; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }

/* ── L'orbe : l'examinateur, sans faux visage (comme OrbeExaminateur) ── */
.po-orbe { position: relative; display: block; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  /* Copie (20 nov.) : la sphère marine d'OrbeExaminateur (plateforme), plus
     la boule terre cuite : la terre cuite ne dit que la faute. */
  background: radial-gradient(circle at 35% 30%, #5A7593 0%, #3D566F 42%, #233145 100%);
  box-shadow: 0 12px 40px rgba(35, 49, 69, 0.35);
  animation: po-respire 4.5s ease-in-out infinite; }
.po-orbe > span { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid var(--po-ici, #E8E6E1); opacity: 0.25; animation: po-halo 4.5s ease-in-out infinite; }
.po-orbe-petite { width: 56px; height: 56px; }
.po-orbe-grande { width: 132px; height: 132px; }
.po-orbe-attente { animation-duration: 1.6s; }
.po-orbe.parle { animation-duration: 0.9s; }
@keyframes po-respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes po-halo { 0%, 100% { transform: scale(0.96); opacity: 0.2; } 50% { transform: scale(1.08); opacity: 0.45; } }

/* ── Le chemin : quatre étapes, la dernière au loin ── */
.po-chemin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; flex: 1; min-width: 0; }
.po-chemin::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 7px; height: 2px; background: var(--po-bord); }
.po-etape { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 3px; min-width: 0; }
.po-etape::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; margin-bottom: 6px; background: var(--po-fond); border: 2px solid var(--po-trait-fort); position: relative; z-index: 1; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.po-etape b { font-size: 12.5px; font-weight: 700; color: var(--po-fort); line-height: 1.2; }
.po-etape small { font-size: 11.5px; color: var(--po-doux); line-height: 1.25; }
.po-etape.fait::before { background: var(--po-vert); border-color: var(--po-vert); }
.po-etape.ici::before { background: var(--po-fond); border: 3px solid var(--po-ici); box-shadow: none; }
.po-etape.ici small, .po-etape.fait small { color: var(--po-texte); }
.po-etape.fin { opacity: 0.7; }
.po-chemin-apercu { padding-top: 16px; border-top: 1px solid var(--po-bord); }

/* ── La salle ── */
.po-salle {
  /* Copie (20 nov., revu le soir avec Jonathan : « ça fait très différent, de
     jour comme de nuit ») : la salle suit le thème de la page, comme l'oral de
     l'appli (OralSimulation : le papier de jour, la nuit le soir). Les --po-*
     renvoient aux jetons --fp-* de blocs.css. */
  --po-fond: var(--fp-papier); --po-carte: var(--fp-carte); --po-creux: var(--fp-creux); --po-bord: var(--fp-trait); --po-trait-fort: var(--fp-trait-fort);
  --po-texte: var(--fp-encre); --po-fort: var(--fp-titre); --po-doux: var(--fp-encre-2); --po-ici: var(--fp-repere);
  --po-or: var(--fp-action); --po-or-survol: var(--fp-action-survol); --po-sur-or: var(--fp-sur-action);
  --po-vert: var(--fp-juste); --po-vert-voile: var(--fp-juste-voile); --po-rouge: var(--fp-faute); --po-forte: var(--fp-forte);
  font-family: var(--fp-police);
  position: fixed; inset: 0; z-index: 1000; background: var(--po-fond); color: var(--po-texte);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  animation: po-entre 0.45s var(--ease);
}
.po-salle[hidden] { display: none; }
/* La salle prend le focus quand l'écran change (porte-oral.js, ecran()) : sans anneau. */
.po-salle:focus { outline: none; }
@keyframes po-entre { from { opacity: 0; } to { opacity: 1; } }
html.po-ouverte, html.po-ouverte body { overflow: hidden; }
.po-haut { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; background: linear-gradient(var(--po-fond) 75%, rgba(15, 27, 45, 0)); }
.po-fermer { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px var(--po-trait-fort); background: transparent; color: var(--po-fort); display: grid; place-items: center; cursor: pointer; }
.po-fermer:hover { box-shadow: inset 0 0 0 1.5px var(--po-fort); }
.po-corps { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 8px 16px 18px; }
.po-releve { max-width: none; }
.po-salle[data-ecran="releve"] .po-corps { max-width: 980px; }
.po-ecran { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; animation: monter 0.35s var(--ease); }
.po-ecran[hidden] { display: none; }
.po-salle h2 { font-family: var(--fp-police); font-weight: 700; letter-spacing: -0.02em; color: var(--po-fort); font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 6px 0 0; text-wrap: balance; }
.po-salle h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--po-doux); margin: 0 0 10px; }
.po-question { font-size: 17px; color: var(--po-texte); margin: 4px 0 0; }

/* Les trois cartes. */
.po-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 4px; }
.po-carte { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px 14px; border-radius: var(--r); cursor: pointer;
  background: var(--po-carte); border: 0; box-shadow: inset 0 0 0 1px var(--po-bord); color: var(--po-texte); font: inherit; transition: box-shadow 0.15s; border-radius: 16px; }
.po-carte:hover { box-shadow: inset 0 0 0 1px var(--po-trait-fort); }
.po-carte[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--po-ici); background: var(--po-carte); transform: none; }
.po-carte b { font-size: 16.5px; color: var(--po-fort); }
.po-carte small { font-size: 13.5px; color: var(--po-doux); line-height: 1.35; }
.po-barres { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.po-barres i { display: block; width: 6px; border-radius: 2px; background: var(--po-bord); }
.po-barres i:nth-child(1) { height: 7px; } .po-barres i:nth-child(2) { height: 12px; } .po-barres i:nth-child(3) { height: 18px; }
.po-carte[data-niveau="debut"] .po-barres i:nth-child(-n+1),
.po-carte[data-niveau="moyen"] .po-barres i:nth-child(-n+2),
.po-carte[data-niveau="aise"] .po-barres i { background: var(--po-ici); }
.po-parler { width: 100%; max-width: 380px; min-height: 58px; font-size: 18px; margin-top: 8px; gap: 10px; }
.po-parler:disabled { opacity: 1; background: var(--po-creux); color: var(--po-doux); cursor: default; box-shadow: none; transform: none; }
.po-voix { font-size: 13.5px; color: var(--po-doux); margin: 0; }
.po-salle .lien { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--po-texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.po-lien-ecrire { font-size: 14.5px; }
.po-bas { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--po-doux); }
.po-bas .lien { color: var(--po-doux); }
.po-salle[data-ecran="releve"] .po-bas { display: none; }

/* Connexion. */
.po-etat { font-size: 17px; color: var(--po-fort); margin-top: 18px; max-width: 30ch; }
.po-salle [data-pour="connexion"] { padding-top: 12vh; }

/* En direct. */
.po-scene { position: relative; width: 200px; height: 200px; display: grid; place-items: center; margin-top: 4px; }
.po-anneau { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.po-anneau circle { fill: none; stroke-width: 4; }
.po-anneau-fond { stroke: var(--po-creux); }
.po-anneau-temps { stroke: var(--po-ici); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.po-temps { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--po-fort); background: var(--po-fond); padding: 0 8px; }
.po-qui { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--po-doux); margin: 8px 0 0; min-height: 1.2em; }
.po-sous-titres { min-height: 3.2em; max-width: 34ch; }
.po-st-fr { font-size: 21px; line-height: 1.35; color: var(--po-fort); margin: 0; }
.po-st-en { font-size: 15px; color: var(--po-doux); margin: 4px 0 0; }
.po-st-en:empty, .po-st-fr:empty { display: none; }
.po-aide { width: 100%; text-align: left; background: var(--po-creux); border: 0; box-shadow: inset 3px 0 0 var(--po-vert); border-radius: 0 12px 12px 0; padding: 12px 16px; animation: monter 0.35s var(--ease); }
.po-aide[hidden] { display: none; }
.po-aide-titre { margin: 0; font-size: 13.5px; color: var(--po-vert); font-weight: 700; }
.po-aide-dis { margin: 6px 0 0; font-size: 19px; color: var(--po-fort); line-height: 1.35; }
.po-aide-en { margin: 4px 0 0; font-size: 14px; color: var(--po-doux); }
.po-aide-en:empty { display: none; }
.po-toi { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.po-toi li { font-size: 15px; color: var(--po-texte); padding: 8px 12px; border-left: 3px solid var(--po-trait-fort); background: var(--po-creux); border-radius: 0 10px 10px 0; animation: monter 0.3s var(--ease); }
.po-toi li.attente { color: var(--po-doux); font-style: italic; }
.po-adapte { font-size: 13px; color: var(--po-doux); margin: 0; }
.po-adapte[hidden] { display: none; }
.po-salle .btn-ghost { color: var(--po-fort); border: 0; box-shadow: inset 0 0 0 1.5px var(--po-trait-fort); background: transparent; }
.po-salle .btn-ghost:hover { background: var(--po-creux); }
.po-fini { min-height: 48px; padding: 10px 26px; }
/* « J'ai fini » (« À vous » jusqu'au 21 nov. ; contrat de parole) : l'élève rend la parole, d'un
   toucher ou de la barre d'espace. Le bouton fort de l'écran, à tous les
   niveaux, dès que l'examinateur se tait. Sous la sphère à l'ordinateur, sa
   place gardée quand il se cache (rien ne saute sous le pointeur) ; au
   téléphone, en bas, sous le pouce (plus bas, à 760 px). */
.po-avous { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.po-salle .po-avous[hidden] { display: flex !important; visibility: hidden; }
/* Le bouton au centre, « ou espace » à sa droite sans le décaler. */
.po-avous-geste { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.po-avous-geste .btn { grid-column: 2; }
.po-avous .btn { min-height: 54px; min-width: 210px; padding: 12px 30px; font-size: 17px; }
.po-espace { justify-self: start; font-size: 13px; color: var(--po-doux); white-space: nowrap; }
.po-avous-note { margin: 0; font-size: 13.5px; color: var(--po-doux); max-width: 40ch; text-wrap: balance; }
@media (hover: none), (pointer: coarse) { .po-espace { display: none; } }
/* Sous le B2 : deux vrais mots, puis 4 s de silence, et le bouton s'éclaire
   (« Tu as fini ? »), sans rien déclencher. Plus visible depuis le 21 nov.
   (Jonathan) : un anneau franc, et un halo qui respire tant qu'il attend. */
.po-avous.po-brille .btn { box-shadow: 0 0 0 3px var(--po-fond), 0 0 0 6px var(--po-ici); animation: po-brille 1.6s ease-in-out infinite; }
.po-avous.po-brille .po-avous-note { color: var(--po-fort); font-weight: 700; }
@keyframes po-brille { 50% { box-shadow: 0 0 0 3px var(--po-fond), 0 0 0 6px var(--po-ici), 0 0 0 15px color-mix(in srgb, var(--po-ici) 22%, transparent); } }

/* À l'écrit. */
.po-bulle { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: var(--po-carte); border: 1px solid var(--po-bord); border-radius: var(--r); padding: 14px 16px; }
.po-bulle p { margin: 0; font-size: 18px; color: var(--po-fort); }
.po-bulle-en { display: block; font-size: 14px; color: var(--po-doux); margin-top: 2px; }
.po-label { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--po-fort); margin-top: 4px; }
.po-texte { width: 100%; min-height: 150px; resize: vertical; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--po-trait-fort); background: var(--po-carte); color: var(--po-fort); padding: 14px; font: inherit; font-size: 17px; line-height: 1.5; }
.po-texte:focus { outline: none; box-shadow: inset 0 0 0 2px var(--po-ici); }
.po-amorces { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.po-amorce { border: 1px solid var(--po-bord); background: transparent; color: var(--po-texte); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14.5px; cursor: pointer; }
.po-amorce:hover { border-color: var(--po-trait-fort); color: var(--po-fort); }
.po-compte { align-self: flex-end; font-size: 13px; color: var(--po-doux); margin: 0; }
.po-envoyer { width: 100%; max-width: 380px; min-height: 54px; }
.po-envoyer:disabled { opacity: 1; background: var(--po-creux); color: var(--po-doux); cursor: default; box-shadow: none; transform: none; }
.po-mot { width: 100%; text-align: left; font-size: 14.5px; color: var(--po-fort); background: var(--po-creux); border-radius: 12px; padding: 10px 14px; margin: 0; }
.po-mot[hidden] { display: none; }

/* Le relevé. */
.po-releve { align-items: stretch; text-align: left; }
.po-releve-titre { text-align: center; outline: none; }
.po-tuiles { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
/* « Qui a parlé » : sa part et celle de l'examinateur, d'un coup d'œil. */
.po-part { background: var(--po-carte); border: 1px solid var(--po-bord); border-radius: var(--r); padding: 14px 16px; }
.po-part-titre { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--po-doux); }
.po-part-barre { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--po-creux); gap: 2px; }
.po-part-barre span { display: block; height: 100%; width: 0; transition: width 0.9s var(--ease); }
.po-part-toi { background: var(--po-ici); }
.po-part-ex { background: var(--po-trait-fort); }
.po-part-leg { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14.5px; color: var(--po-texte); }
.po-part-leg b { color: var(--po-fort); font-variant-numeric: tabular-nums; }
.po-part-pt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.po-part-pt-toi { background: var(--po-ici); }
.po-part-pt-ex { background: var(--po-trait-fort); margin-left: 10px; }
.po-part-sous { margin: 6px 0 0; font-size: 14px; color: var(--po-texte); line-height: 1.45; }
.po-part-ecrit .po-part-barre, .po-part-ecrit .po-part-pt, .po-part-ecrit .po-part-leg span, .po-part-ecrit #po-parole-ex { display: none; }

.po-tuile { background: var(--po-carte); border: 1px solid var(--po-bord); border-radius: var(--r); padding: 14px 16px; }
.po-tuile-etiq { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--po-doux); }
.po-tuile-val { margin: 4px 0 0; font-family: var(--fp-police); font-size: 32px; font-weight: 700; color: var(--po-fort); line-height: 1.1; font-variant-numeric: tabular-nums; }
.po-tuile-sous { margin: 6px 0 0; font-size: 13.5px; color: var(--po-texte); line-height: 1.4; }
.po-jauge { position: relative; height: 8px; border-radius: 4px; background: var(--po-creux); margin-top: 10px; overflow: visible; }
.po-jauge span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--po-ici); transition: width 0.9s var(--ease); }
.po-jauge-cible { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--po-fort); left: 50%; }
.po-colonnes { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 6px; }
.po-phrases, .po-fautes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.po-phrase { background: var(--po-carte); border: 1px solid var(--po-bord); border-radius: var(--r); padding: 12px 14px; }
.po-phrase-dit { margin: 0; font-size: 16px; color: var(--po-fort); line-height: 1.5; }
.po-phrase-dit mark { background: none; color: inherit; text-decoration: underline wavy var(--po-rouge); text-decoration-thickness: 1.5px; text-underline-offset: 5px; padding: 0; }
.po-nclc { margin-top: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--po-fort); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.po-nclc-etiq { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; color: var(--po-vert); }
.po-nclc-fr { margin: 0; }
.po-nclc svg { flex-shrink: 0; }
.po-nclc-texte { margin: 6px 0 0; padding: 10px 12px; border-radius: 0 10px 10px 0; background: var(--po-vert-voile); border-left: 3px solid var(--po-vert); font-style: italic; font-size: 15.5px; color: var(--po-fort); line-height: 1.45; animation: monter 0.3s var(--ease); }
.po-nclc-texte small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--po-doux); }
.po-nclc-texte[hidden] { display: none; }
.po-transcrit { font-size: 12.5px; color: var(--po-doux); margin: 8px 0 0; }
.po-faute { background: var(--po-carte); border: 0; box-shadow: inset 0 0 0 1.5px var(--po-rouge); border-radius: 12px; padding: 14px 16px; animation: monter 0.35s var(--ease); }
.po-faute.po-sans-faute { box-shadow: inset 0 0 0 1px var(--po-bord); }
/* La paire de la plateforme : le juste écrit AU-DESSUS de la faute barrée. */
.po-faute-paire { margin: 0; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; font-size: 16.5px; line-height: 1.4; }
.po-faute-paire s { font-size: 14.5px; color: var(--po-doux); text-decoration-color: var(--po-rouge); text-decoration-thickness: 1.5px; }
.po-faute-paire b { font-size: 18px; font-style: italic; color: var(--po-vert); }
.po-faute-fleche { display: none; }
.po-faute-pourquoi { margin: 6px 0 0; font-size: 14px; color: var(--po-texte); line-height: 1.4; }
.po-faute-pourquoi small { display: block; color: var(--po-doux); margin-top: 2px; }
.po-relit { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--po-texte); padding: 14px; border: 1px dashed var(--po-bord); border-radius: var(--r); }
.po-relit[hidden] { display: none; }
.po-points { display: inline-flex; gap: 4px; }
.po-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--po-doux); animation: po-point 1.2s ease-in-out infinite; }
.po-points i:nth-child(2) { animation-delay: 0.15s; } .po-points i:nth-child(3) { animation-delay: 0.3s; }
@keyframes po-point { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
/* Garder ses fautes : la carte forte (une par écran), le bouton or. */
.po-garder { margin-top: 16px; padding: 20px 18px; border-radius: 16px; background: var(--po-forte); border: 0; text-align: center; }
.po-garder-titre { font-family: var(--fp-police); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--po-fort); margin: 0; }
.po-dates { margin-top: 16px; }
.po-salle .hq-dates::before { background: rgba(255, 255, 255, 0.2); }
.po-salle .hq-dates li { color: var(--po-fort); }
.po-salle .hq-dates li::before { background: var(--po-forte); box-shadow: inset 0 0 0 2px var(--po-doux); }
.po-salle .hq-dates li:first-child::before { box-shadow: inset 0 0 0 2px var(--po-rouge); }
.po-salle .hq-dates li.sans-faute:first-child::before { background: var(--po-vert); box-shadow: none; }
.po-salle .hq-dates small { color: var(--po-doux); }
.po-compte-btn { width: 100%; max-width: 380px; margin-top: 18px; min-height: 56px; }
.po-garder-note { font-size: 13.5px; color: var(--po-doux); margin: 10px 0 0; }

/* Le repli vers les questions écrites : une phrase, jamais une erreur. */
.po-repli-mot { margin: 0 0 12px; font-size: 14.5px; color: var(--fp-encre); background: var(--fp-creux); box-shadow: inset 3px 0 0 var(--fp-juste); border-radius: 0 10px 10px 0; padding: 10px 12px; }
.po-repli-mot[hidden] { display: none; }

@media (min-width: 900px) {
  .po-col .po-garder { position: sticky; top: 110px; }
  .po-colonnes { grid-template-columns: 1.1fr 1fr; gap: 24px; }
  .po-haut { padding: 18px 28px 14px; }
  .po-chemin { max-width: 760px; margin: 0 auto; }
  .po-etape b { font-size: 14px; }
  .po-etape small { font-size: 12.5px; }
}
@media (max-width: 760px) {
  .js .hq.po-actif .hq-in { padding: 18px 16px 36px; }
  .hq.po-actif .hq-pour { font-size: 13px; }
  .hq.po-actif h1 { font-size: 31px; }
  .po-apercu { margin-top: 20px; padding: 24px 16px 18px; border-radius: 22px; }
  .po-apercu .po-orbe { width: 84px; height: 84px; margin-top: 14px; }
  .po-apercu-dit { font-size: 22px; margin-top: 14px; }
  .po-entree { width: 100%; }
  .po-ouvrir { width: 100%; }
  .po-apercu .po-chemin-apercu { margin-top: 16px; padding-top: 14px; }
  .po-cartes { grid-template-columns: 1fr; }
  .po-carte { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
  .po-carte .po-barres { flex-shrink: 0; }
  .po-carte b { min-width: 0; flex-shrink: 0; }
  .po-carte small { flex: 1; }
  .po-carte > span:not(.po-barres) { display: none; }
  .po-tuiles { grid-template-columns: 1fr 1fr; }
  .po-tuile-val { font-size: 28px; }
  .po-haut { padding: 12px 12px 10px; gap: 6px; }
  .po-etape b { font-size: 11.5px; }
  .po-etape small { font-size: 10.5px; }
  .po-etape.fin small { display: none; }
  .po-fermer { width: 36px; height: 36px; }
  .po-scene { width: 170px; height: 170px; }
  .po-orbe-grande { width: 112px; height: 112px; }
  .po-st-fr { font-size: 19px; }
  .po-salle[data-ecran="direct"] { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .po-avous { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; gap: 6px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--po-fond); box-shadow: 0 -1px 0 var(--po-bord); }
  .po-salle .po-avous[hidden] { display: none !important; }
  .po-avous-geste { display: flex; justify-content: center; }
  .po-espace { display: none; }
  .po-avous .btn { width: 100%; max-width: 420px; }
  .po-avous-note { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .po-orbe, .po-orbe > span, .po-points i, .po-apercu-direct i { animation: none; }
  .po-salle, .po-ecran { animation: none; }
  .po-avous.po-brille .btn { animation: none; }
}

/* Cibles tactiles : 44 px au moins (iPhone et Android), même pour les liens
   en petit (vérifié le 31 octobre sur six appareils). */
.po-salle .lien, .po-entree .lien { min-height: 44px; display: inline-flex; align-items: center; }
.po-nclc { min-height: 44px; }
.po-bas { align-items: center; }

/* Après le relevé : la lecture en plus (en second, plus calme), et le retour. */
.po-lecture { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--po-fort, var(--fp-encre)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center; text-decoration: none; }
.hq-revoir { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--fp-encre); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hq-revoir[hidden] { display: none; }

/* Le temps de parole d'un essai : 45 s, le repère au bout. */
.po-jauge-45 .po-jauge-cible { left: calc(100% - 2px); }

/* Deux pistes, toujours : un relevé sans faute n'est jamais vide. */
.po-pistes { margin-top: 14px; }
.po-pistes[hidden] { display: none; }
.po-pistes-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.po-piste { padding: 14px 16px; border-radius: 14px; background: var(--po-carte); border: 1px solid var(--po-bord); border-left: 3px solid var(--po-vert); }
.po-piste p { margin: 0; color: var(--po-fort); font-size: 15.5px; }
.po-piste .po-piste-ex { margin-top: 6px; color: var(--po-vert); font-style: italic; font-size: 15px; }

/* Ce que le compte gratuit garde pour toujours, et la version de l'essai. */
.po-gratuit { margin: 16px auto 0; max-width: 460px; text-align: left; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 0; }
.po-gratuit-titre { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--po-vert); }
.po-gratuit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.po-gratuit li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--po-texte); }
.po-gratuit li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--po-vert); border-bottom: 2px solid var(--po-vert); transform: rotate(-45deg); }
.po-version { margin: 12px auto 0; max-width: 460px; font-size: 13px; color: var(--po-doux); }
.po-entree-gratuit { display: inline-flex; align-items: flex-start; gap: 8px; margin: 10px auto 0; padding: 7px 12px; border-radius: 999px; background: rgba(181, 204, 140, 0.12); color: #D9E6C2; font-size: 13.5px; font-weight: 600; max-width: 60ch; text-align: left; }
.po-coche { flex-shrink: 0; width: 10px; height: 6px; margin-top: 5px; border-left: 2px solid #B5CC8C; border-bottom: 2px solid #B5CC8C; transform: rotate(-45deg); }
.po-dates[hidden] { display: none; }

/* ── Accueil du 3 novembre 2026 (audit 360°) : le mécanisme en titre ──
   Téléphone : le titre, la phrase, la frise du moteur, puis la porte de
   l'examinateur, puis la preuve et le visage. Ordinateur : le mécanisme à
   gauche, la porte à droite, dans le premier écran. */
.hq.po-actif .hq-sous { display: block; margin: 12px auto 0; max-width: 46ch; font-size: 17px; line-height: 1.5; }
.js .hq.po-actif .moteur { order: 0; }
.js .hq.po-actif .po-apercu { order: 1; }
.js .hq.po-actif .hq-preuve, .js .hq.po-actif .hq-preuve-produit { order: 2; }
.js .hq.po-actif .hq-qui { order: 3; }
@media (min-width: 1000px) {
  .js .hq.po-actif .hq-in {
    display: grid; max-width: var(--maxw); text-align: left; align-items: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 56px;
    grid-template-areas: "pour apercu" "titre apercu" "sous apercu" "moteur apercu" "preuve apercu" "produit apercu" "qui apercu" ". apercu";
    padding-top: 56px; padding-bottom: 72px;
  }
  .js .hq.po-actif .hq-pour { grid-area: pour; margin: 12px 0 0; }
  .js .hq.po-actif h1 { grid-area: titre; margin: 14px 0 0; max-width: 17ch; font-size: clamp(40px, 4.1vw, 52px); }
  .js .hq.po-actif .hq-sous { grid-area: sous; margin: 16px 0 0; }
  .js .hq.po-actif .moteur { grid-area: moteur; }
  .js .hq.po-actif .hq-preuve { grid-area: preuve; justify-content: flex-start; }
  .js .hq.po-actif .hq-preuve-produit { grid-area: produit; text-align: left; }
  .js .hq.po-actif .hq-qui { grid-area: qui; justify-content: flex-start; }
  .js .hq.po-actif .po-apercu { grid-area: apercu; margin-top: 12px; }
}

/* Copie (20 nov.) : sur la scène sombre de l'examinateur (pages du simulateur),
   le bouton est l'or de la plateforme, l'action sur fond sombre. */
.po-apercu .btn-main { background: #F1AC5F; color: #1A2433; box-shadow: none; }
.po-apercu .btn-main:hover { background: #F8C88C; }
.po-entree-gratuit { background: rgba(181, 204, 142, 0.12); color: #DCE7C8; }
.po-coche { border-color: #B5CC8E; }

.po-salle :focus-visible { outline: 3px solid var(--fp-focus); outline-offset: 3px; }
/* Le chemin : le plancher de la Copie, 13 px (jetons.css, --fp-t-5). */
.po-etape b { font-size: 13px; }
.po-etape small { font-size: 13px; }
@media (max-width: 760px) { .po-etape b { font-size: 13px; } .po-etape small { font-size: 12.5px; } }

/* ── La salle comme l'oral de l'appli (20 nov., revu avec Jonathan) ──
   Les trois niveaux : les choix à pastille de « Façon de passer »
   (OralSimulation), l'un sous l'autre ; le choisi cerclé d'encre. */
.po-cartes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.po-salle .po-carte {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start;
  padding: 14px 16px; border-radius: 16px; text-align: left; transform: none;
}
.po-salle .po-carte::before {
  content: ""; grid-row: 1 / span 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--po-trait-fort); background: var(--po-carte);
}
.po-salle .po-carte[aria-checked="true"]::before { box-shadow: inset 0 0 0 6px var(--po-ici); }
.po-salle .po-carte .po-barres { display: none; }
.po-salle .po-carte b { grid-column: 2; min-width: 0; font-size: 16.5px; }
.po-salle .po-carte small { grid-column: 2; font-size: 14px; }
.po-salle .po-carte > span:not(.po-barres) { grid-column: 2; }
/* En direct : la carte de l'appli, la sphère marine dedans. */
.po-salle .po-ecran[data-pour="direct"] { background: var(--po-carte); box-shadow: 0 0 0 1px var(--po-bord); border-radius: 16px; padding: 20px 16px 18px; }
.po-salle .po-temps { background: var(--po-carte); }
/* Garder ses fautes : la carte forte (une par écran), l'or y agit, comme la fin d'essai de l'appli. */
.po-garder {
  --po-fort: #FFFFFF; --po-texte: #FFFFFF; --po-doux: #C9D1DC; --po-bord: rgba(255, 255, 255, 0.2); --po-trait-fort: rgba(255, 255, 255, 0.6);
  --po-ici: #FFFFFF; --po-vert: #B5CC8E; --po-rouge: #F0A58F; --po-creux: rgba(255, 255, 255, 0.1);
  --fp-action: var(--fp-action-sur-forte); --fp-action-survol: var(--fp-action-sur-forte-survol); --fp-sur-action: var(--fp-sur-action-sur-forte); --fp-focus: var(--fp-action-sur-forte);
  color: #FFFFFF;
}
/* La scène sombre du simulateur (pages /simulateur-oral) : une carte forte, ses repères en clair. */
.po-apercu {
  --po-fond: #233145; --po-fort: #F2EFEA; --po-texte: #FFFFFF; --po-doux: #C9D1DC; --po-bord: rgba(255, 255, 255, 0.16);
  --po-trait-fort: rgba(255, 255, 255, 0.4); --po-ici: #FFFFFF; --po-vert: #B5CC8E;
}
