/* ==========================================================================
   toeic-exam.css — Interface « type ETS » des tests TOEIC (passation)
   --------------------------------------------------------------------------
   Utilisée par les tests blancs L&R / S&W, les entraînements par partie et
   les échantillons gratuits, pendant la passation uniquement. Les pages de
   résultats gardent le gabarit du site (toeic.css / toeic-sw.css).
   Toutes les classes sont préfixées « tx- » pour éviter les collisions.
   Créé le 2026-10-12.
   ========================================================================== */

:root {
  --tx-navy: #233f66;
  --tx-navy-2: #1a3150;
  --tx-blue: #2d6cb5;
  --tx-blue-soft: #e8f0fa;
  --tx-ink: #1d232b;
  --tx-ink-2: #4a5462;
  --tx-line: #c9d1dc;
  --tx-line-soft: #e3e8ef;
  --tx-paper: #ffffff;
  --tx-bg: #eef1f5;
  --tx-foot: #dfe4ea;
  --tx-red: #c0392b;
  --tx-green: #1e7d4f;
  --tx-amber: #b26a00;
  --tx-radius: 4px;
  --tx-font: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --tx-serif: Georgia, "Times New Roman", serif;
  --tx-mono: "Consolas", "Courier New", monospace;
}

/* ---------- Mode examen : on neutralise le gabarit du site ---------- */
body.tx-exam-mode { overflow: hidden; background: var(--tx-bg); }
body.tx-exam-mode #footer-placeholder,
body.tx-exam-mode > footer,
body.tx-exam-mode .site-footer,
body.tx-exam-mode #back-to-top,
body.tx-exam-mode #toeic-back-to-top,
body.tx-exam-mode .back-to-top { display: none !important; }

.tx-hidden { display: none !important; }
.tx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Coque ---------- */
.tx-exam {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column;
  background: var(--tx-bg); color: var(--tx-ink);
  font: 16px/1.5 var(--tx-font);
  -webkit-font-smoothing: antialiased;
}
.tx-exam *, .tx-exam *::before, .tx-exam *::after { box-sizing: border-box; }

.tx-bar {
  flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; min-height: 52px; padding: 6px 16px;
  background: linear-gradient(var(--tx-navy), var(--tx-navy-2)); color: #fff;
  border-bottom: 3px solid var(--tx-blue);
}
.tx-bar__left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tx-bar__product { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.tx-bar__test { font-size: .85rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-bar__center { text-align: center; }
.tx-bar__section { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.tx-bar__right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.tx-counter { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.tx-timer {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--tx-ink); border-radius: var(--tx-radius);
  padding: 3px 10px; font: 700 .95rem/1.4 var(--tx-mono); min-width: 96px; justify-content: center;
}
.tx-timer.is-low { background: #fff3cd; color: #7a4b00; }
.tx-timer.is-critical { background: #fde2e1; color: var(--tx-red); }
.tx-timer__icon { font-family: var(--tx-font); font-weight: 400; }
.tx-exit { color: #fff; opacity: .55; text-decoration: none; font-size: 1.4rem; line-height: 1; padding: 0 2px; }
.tx-exit:hover, .tx-exit:focus { opacity: 1; }

.tx-progress { flex: 0 0 4px; background: #cfd7e2; } /* 2026-10-12 : avancement continu (requestAnimationFrame) */
.tx-progress__fill { height: 100%; width: 0; background: var(--tx-blue); will-change: width; }

.tx-body { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; }
.tx-page { max-width: 1120px; margin: 0 auto; padding: 22px 20px 40px; }

.tx-foot {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 8px 16px; background: var(--tx-foot); border-top: 1px solid var(--tx-line);
}
.tx-foot__left, .tx-foot__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.tx-btn {
  appearance: none; cursor: pointer; min-width: 96px; padding: 8px 18px;
  font: 700 .95rem/1.2 var(--tx-font); color: var(--tx-ink);
  background: linear-gradient(#fdfdfd, #e6e9ee); border: 1px solid #9aa5b4; border-radius: var(--tx-radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(0,0,0,.12);
}
.tx-btn:hover { background: linear-gradient(#fff, #dde2e9); }
.tx-btn:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.tx-btn:disabled { opacity: .5; cursor: not-allowed; }
.tx-btn--primary { color: #fff; background: linear-gradient(#3b7fcf, var(--tx-blue)); border-color: #1f5a9e; }
.tx-btn--primary:hover { background: linear-gradient(#4a8bd8, #2862a6); }
.tx-btn--big { font-size: 1.05rem; padding: 12px 34px; }

.tx-volume { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--tx-ink-2); }
.tx-volume input { width: 120px; accent-color: var(--tx-blue); }

/* ---------- Écrans / panneaux ---------- */
.tx-screen { display: none; }
.tx-screen.is-active { display: block; animation: tx-fade .18s ease-out; }
@keyframes tx-fade { from { opacity: 0; } to { opacity: 1; } }

.tx-card { background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 22px 26px; box-shadow: 0 1px 3px rgba(20,40,70,.06); }
.tx-card + .tx-card { margin-top: 16px; }

.tx-h1 { font-size: 1.5rem; margin: 0 0 12px; color: var(--tx-navy); }
.tx-h2 { font-size: 1.15rem; margin: 0 0 10px; color: var(--tx-navy); text-transform: uppercase; letter-spacing: .04em; }
.tx-part-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 1.1rem; color: var(--tx-navy); }
.tx-part-title b { text-transform: uppercase; letter-spacing: .06em; }

.tx-directions { background: var(--tx-blue-soft); border: 1px solid #cddcf0; padding: 12px 16px; border-radius: var(--tx-radius); margin: 0 0 18px; color: var(--tx-ink); }
.tx-directions b { display: block; margin-bottom: 4px; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; color: var(--tx-navy); }
.tx-note { font-size: .9rem; color: var(--tx-ink-2); }
.tx-alert { background: #fff6e0; border: 1px solid #f0cf7a; color: #6b4a00; padding: 10px 14px; border-radius: var(--tx-radius); margin: 12px 0; }
.tx-alert--error { background: #fdecea; border-color: #f2b8b2; color: #8a231a; }

.tx-center { text-align: center; }
.tx-start-panel { max-width: 720px; margin: 6vh auto 0; text-align: center; }
.tx-start-panel .tx-btn { margin-top: 18px; }
/* Écran d'intro des entraînements : textes centrés comme le reste du cadre. */
.tx-start-panel .tx-note { text-align: center; font-weight: 400; }
.tx-start-panel .tx-part-title { text-align: center; justify-content: center; }

/* Choix du test (1 à 10), AVANT le bouton de lancement. */
.tx-test-picker {
  margin: 22px auto 0; max-width: 560px; padding: 14px 16px 12px;
  background: #f6f8fb; border: 1px solid var(--tx-line); border-radius: 8px;
}
.tx-test-picker__label { text-align: center; padding: 0; margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: var(--tx-ink, #1a2340); }
.tx-test-picker .test-selector {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0;
}
.tx-test-picker .test-selector__item {
  width: 38px; height: 38px; font-size: .9rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #1260d4; border: 1px solid #b9c7dc; text-decoration: none; font-weight: 700;
}
.tx-test-picker .test-selector__item:hover { background: #e9f0fb; border-color: #1260d4; color: #1260d4; }
.tx-test-picker .test-selector__item--active,
.tx-test-picker .test-selector__item--active:hover {
  background: #1260d4; color: #fff; border-color: #1260d4;
  box-shadow: 0 0 0 3px rgba(18,96,212,.2); pointer-events: none;
}
.tx-test-picker__hint { text-align: center; font-weight: 400; padding: 0; margin: 10px 0 0; font-size: .85rem; color: var(--tx-ink-2); }

/* ---------- Groupes et questions ---------- */
.tx-group { margin: 0 0 22px; }
.tx-group__head { font-weight: 700; margin: 0 0 10px; color: var(--tx-navy); }
.tx-q { background: var(--tx-paper); border: 1px solid var(--tx-line-soft); border-radius: var(--tx-radius); padding: 12px 16px; margin: 0 0 10px; }
.tx-q.is-answered { border-color: #b9cde6; }
.tx-q__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.tx-q__num { flex: 0 0 auto; font-weight: 700; min-width: 2.2em; color: var(--tx-navy); }
.tx-q__stem { font-weight: 600; }
.tx-q__mark { margin-left: auto; font-size: .8rem; color: var(--tx-ink-2); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; user-select: none; }

.tx-opts { display: flex; flex-direction: column; gap: 6px; }
.tx-opt { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border-radius: var(--tx-radius); cursor: pointer; }
.tx-opt:hover { background: #f3f6fa; }
.tx-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tx-opt__bubble {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #7d8796;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #4b5563; background: #fff;
}
.tx-opt input:checked + .tx-opt__bubble { background: var(--tx-navy); border-color: var(--tx-navy); color: #fff; }
.tx-opt input:focus-visible + .tx-opt__bubble { outline: 3px solid #f2b705; outline-offset: 2px; }
.tx-opt__text { padding-top: 2px; }
/* Parts 1-2 : bulles seules, en ligne */
.tx-opts--letters { flex-direction: row; gap: 16px; flex-wrap: wrap; align-items: center; }
/* 2026-10-12 : bulle seule (Parts 1-2) — plus d'espace vide à droite de la
   bulle ni de fond rectangulaire décentré au survol. */
.tx-opt--letter { gap: 0; padding: 2px; border-radius: 50%; }
.tx-opt--letter:hover { background: none; }
.tx-opt--letter .tx-opt__text { position: absolute; padding: 0; }
.tx-opt--letter:hover .tx-opt__bubble { border-color: var(--tx-navy); background: var(--tx-blue-soft); }
.tx-opt--letter input:checked + .tx-opt__bubble { background: var(--tx-navy); }
.tx-opt--letter .tx-opt__bubble { width: 30px; height: 30px; flex-basis: 30px; }

.tx-photo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; }
.tx-photo img { display: block; width: auto; max-width: min(100%, 640px); max-height: 46vh; object-fit: contain; border: 1px solid var(--tx-line); background: #fff; border-radius: var(--tx-radius); }
/* 2026-10-12 : bulles A-D en ligne, centrées sous la photo */
.tx-photo .tx-opts { flex-direction: row; justify-content: center; gap: 16px; }



/* ---------- Documents (Parts 3-4 graphiques, 6, 7) ---------- */
.tx-doc { background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 18px 22px; margin: 0 0 14px; font-family: var(--tx-serif); font-size: 1rem; line-height: 1.6; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tx-doc p { margin: 0 0 .7em; }
.tx-doc p:last-child { margin-bottom: 0; }
.tx-doc__title { font-family: var(--tx-font); font-weight: 700; font-size: 1.02rem; margin: 0 0 .6em; color: var(--tx-ink); }
.tx-doc--table { font-family: var(--tx-font); }
.tx-doc__pre { margin: 0; font: .86rem/1.45 var(--tx-mono); white-space: pre; overflow-x: auto; color: #111; }
.tx-blank { display: inline-block; min-width: 2.6em; padding: 0 6px; margin: 0 2px; border: 1.5px solid var(--tx-navy); border-radius: 3px; text-align: center; font: 700 .85rem/1.5 var(--tx-font); color: var(--tx-navy); background: #f4f7fb; }
.tx-doc + .tx-doc { margin-top: 10px; }

/* Lecture : document à gauche, questions à droite */
.tx-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tx-split__doc { position: sticky; top: 0; max-height: calc(100vh - 170px); overflow: auto; padding-right: 4px; }
.tx-split__qs { min-width: 0; }

/* ---------- Listening : lecteur ---------- */
/* 2026-10-12 : lecteur masqué — l'examen n'affiche aucun lecteur ; la barre
   d'avancement du haut suffit. L'élément reste dans le DOM (moteur JS). */
.tx-player { display: none !important; }
.tx-player--legacy {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 10px 14px; margin: 0 0 16px; }
.tx-player__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--tx-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.tx-player__bar { flex: 1; height: 8px; border-radius: 4px; background: #dde3ea; overflow: hidden; }
.tx-player__fill { height: 100%; width: 0; background: var(--tx-blue); transition: width .25s linear; }
.tx-player__label { font-size: .85rem; color: var(--tx-ink-2); white-space: nowrap; }
.tx-player.is-playing .tx-player__icon { animation: tx-pulse 1.4s ease-in-out infinite; }
@keyframes tx-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(45,108,181,.45); } 50% { box-shadow: 0 0 0 8px rgba(45,108,181,0); } }

/* ---------- Revue (Reading) ---------- */
.tx-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; margin: 12px 0; }
.tx-review-cell { appearance: none; border: 1px solid var(--tx-line); background: #fff; border-radius: 3px; padding: 6px 0; font: 700 .85rem var(--tx-font); cursor: pointer; color: var(--tx-ink); }
.tx-review-cell.is-answered { background: #dbe8f7; border-color: #9fbbe0; }
.tx-review-cell.is-flagged { box-shadow: inset 0 -3px 0 var(--tx-amber); }
.tx-review-cell:hover { outline: 2px solid var(--tx-blue); }
.tx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--tx-ink-2); }
.tx-legend i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--tx-line); vertical-align: -2px; margin-right: 4px; border-radius: 2px; background: #fff; }
.tx-legend i.is-answered { background: #dbe8f7; border-color: #9fbbe0; }
.tx-legend i.is-flagged { box-shadow: inset 0 -3px 0 var(--tx-amber); }

/* ---------- Speaking ---------- */
.tx-sw-task { font-weight: 700; color: var(--tx-ink); font-size: 1.15rem; margin: 0 0 12px; }
.tx-sw-stage { background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 22px; min-height: 260px; }
.tx-sw-stage img { display: block; max-width: 100%; max-height: 48vh; margin: 0 auto; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); }
.tx-sw-read { font-family: var(--tx-serif); font-size: 1.12rem; line-height: 1.75; }
.tx-sw-question { font-size: 1.05rem; font-weight: 600; margin: 14px 0 0; padding: 12px 14px; background: #f6f8fb; border: 1px solid var(--tx-line-soft); border-radius: var(--tx-radius); }

.tx-timeboxes { display: flex; justify-content: center; gap: 18px; margin: 20px 0 6px; flex-wrap: wrap; }
.tx-timebox { min-width: 230px; text-align: center; border: 2px solid #9aa5b4; border-radius: 3px; background: #f4f6f9; color: #6b7685; overflow: hidden; }
.tx-timebox__label { background: #c9d0da; color: #3b4452; font: 700 .8rem/2 var(--tx-font); letter-spacing: .1em; }
.tx-timebox__value { font: 700 1.6rem/2.2 var(--tx-mono); }
.tx-timebox.is-active { border-color: var(--tx-navy); background: #fff; color: var(--tx-ink); }
.tx-timebox.is-active .tx-timebox__label { background: var(--tx-navy); color: #fff; }
.tx-timebox.is-done { opacity: .55; }

.tx-rec { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--tx-font); color: var(--tx-red); letter-spacing: .1em; }
.tx-rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tx-red); animation: tx-blink 1s steps(2, start) infinite; }
@keyframes tx-blink { to { visibility: hidden; } }
.tx-listen { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--tx-font); color: var(--tx-navy); letter-spacing: .1em; }

/* Liste des phases d'origine (#timing-list) : indispensable au moteur
   (toeicSW.js, speaking-recorder.js) mais absente de l'examen officiel →
   masquée visuellement (2026-10-12). Même chose pour la pastille de statut :
   la boîte RESPONSE TIME active (rouge) suffit à signaler l'enregistrement. */
.tx-exam .timing-container, .tx-exam #tx-sw-status {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Writing ---------- */
.tx-wr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tx-wr-layout--single { grid-template-columns: minmax(0, 1fr); }
.tx-wtool { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; background: #eef1f5; border: 1px solid var(--tx-line); border-bottom: 0; border-radius: var(--tx-radius) var(--tx-radius) 0 0; }
.tx-wtool .tx-btn { min-width: 0; padding: 5px 12px; font-size: .85rem; }
.tx-wtool__count { margin-left: auto; font: 700 .85rem var(--tx-font); color: var(--tx-ink-2); }
.tx-exam textarea.tx-textarea, .tx-exam .tx-wr textarea {
  width: 100%; min-height: 260px; resize: vertical; padding: 12px 14px;
  font: 1rem/1.6 var(--tx-font); color: var(--tx-ink); background: #fff;
  border: 1px solid var(--tx-line); border-radius: 0 0 var(--tx-radius) var(--tx-radius);
}
.tx-exam textarea:focus { outline: 2px solid var(--tx-blue); outline-offset: -1px; }
.tx-words { display: inline-flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.tx-words span { padding: 3px 12px; border: 1px solid var(--tx-navy); border-radius: 3px; font-weight: 700; background: #f4f7fb; }
.tx-pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tx-pager button { min-width: 40px; }
.tx-pager button.is-current { background: var(--tx-navy); color: #fff; border-color: var(--tx-navy); }
.tx-pager button.is-done::after { content: " ✓"; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tx-bar { grid-template-columns: 1fr auto; }
  .tx-bar__center { display: none; }
  .tx-bar__test { display: none; }
  .tx-split, .tx-wr-layout { grid-template-columns: minmax(0, 1fr); }
  .tx-split__doc { position: static; max-height: none; }
  .tx-photo { grid-template-columns: minmax(0, 1fr); }
  .tx-page { padding: 14px 12px 28px; }
  .tx-card { padding: 16px; }
  .tx-timebox { min-width: 150px; }
  .tx-timebox__value { font-size: 1.3rem; }
  .tx-volume input { width: 80px; }
}
@media (max-width: 480px) {
  .tx-counter { font-size: .8rem; }
  .tx-btn { min-width: 0; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-screen.is-active, .tx-player.is-playing .tx-player__icon, .tx-rec::before { animation: none; }
}
@media print {
  .tx-exam { position: static; }
  .tx-bar, .tx-foot, .tx-progress { display: none; }
}

/* ---------- Écran d'attente pendant l'envoi (2026-10-12) ---------- */
.tx-wait { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 34, 56, .55); }
.tx-wait.is-on { display: flex; }
.tx-wait__card { max-width: 440px; width: 100%; background: #fff; border: 1px solid var(--tx-line); border-radius: 6px; padding: 28px 30px; text-align: center; font-family: var(--tx-font); color: var(--tx-ink); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.tx-wait__spin { width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid #d6dfeb; border-top-color: var(--tx-navy); animation: tx-spin .9s linear infinite; }
.tx-wait__title { margin: 0 0 8px; font-weight: 700; font-size: 1.1rem; color: var(--tx-navy); }
.tx-wait__text { margin: 0; font-size: .95rem; color: var(--tx-ink-2); line-height: 1.5; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tx-wait__spin { animation-duration: 2.5s; } }

/* ---------- Indication d'enregistrement (2026-10-12) ----------
   La boîte RESPONSE TIME active affiche « ● Recording… » sous le compte à
   rebours : un seul repère, au même endroit que le temps restant. */
.tx-timebox[data-role="response"]::after { content: ""; display: block; height: 0; overflow: hidden; }
.tx-timebox.is-active[data-role="response"]::after {
  content: "Recording\2026"; height: auto;
  font: 700 .8rem/1.2 var(--tx-font); letter-spacing: .06em; color: var(--tx-ink-2);
  animation: tx-rec-pulse 1.4s ease-in-out infinite;
}
@keyframes tx-rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tx-timebox.is-active[data-role="response"]::after { animation: none; } }
/* Un seul point rouge, accolé au libellé (le texte reste neutre). */
.tx-timebox.is-active[data-role="response"]::after {
  width: max-content; margin: 0 auto 8px; padding: 0 0 0 16px;
  background: radial-gradient(circle, var(--tx-red) 0 4px, transparent 4.5px) left center / 10px 10px no-repeat;
}

/* ---------- Part 2 « feuille de réponses » (2026-10-12) ----------
   Comme la feuille de réponses officielle : pas de cadre par question,
   numéros en colonnes (lecture de haut en bas), bulles alignées. */
.tx-p2-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-auto-columns: minmax(190px, max-content);
  column-gap: 48px; justify-content: start;
  background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 14px 22px; }
/* Colonnes pleines de 7 lignes (comme les colonnes de la feuille de réponses),
   remplies de haut en bas : 5 questions = une seule colonne. */
@media (max-width: 860px) { .tx-p2-grid { grid-auto-flow: row; grid-template-rows: none; grid-auto-columns: auto; } }
.tx-p2-grid .tx-q { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 0; background: none; border: 0; border-radius: 0;
}
.tx-p2-grid .tx-q.is-answered { border: 0; }
.tx-p2-grid .tx-q__head { margin: 0; flex: 0 0 2.4em; }
.tx-p2-grid .tx-opts--letters { gap: 10px; }
.tx-p2-grid .tx-opt--letter .tx-opt__bubble { width: 30px; height: 30px; flex-basis: 30px; }
.tx-photo .tx-opts { gap: 14px; }

/* MARGES LATÉRALES SUR MOBILE (14/11/2026). Même marge pour tout le site :
   --gutter, défini dans navbar-footer/critical.php (12 px à 375 px, 24 px au
   plus). Seules les marges EXTÉRIEURES de la page sont réglées ici ; le
   retrait intérieur des cartes ne change pas. Repli : l'ancienne valeur. */
@media (max-width:860px){.tx-page{padding-left:var(--gutter,12px);padding-right:var(--gutter,12px)}}
