/* Lecteur des QCM « cartes-réponses » — variante D de la planche validée par Tom (08/10/2026).
   Couleurs du site : bleu #287495, corail #e85a5e, vert-bleu #00897b. Tout est préfixé lzq-/lz-
   pour ne rien hériter des boutons du thème ; les règles qui visent un <p> ou un <a> sont
   précédées de .lz-qcm / .lz-prog / .lz-board, sinon le thème (.course_container p, a:hover…)
   l'emporte par sa spécificité. Le thème impose aussi `.course_container p { font-size: 16px
   !important }` : les tailles de texte des <p> du lecteur portent donc !important. */
.lz-qcm, .lz-prog, .lz-board {
  --lzq-blue: #287495; --lzq-coral: #e85a5e; --lzq-teal: #00897b; --lzq-ink: #1d2733; --lzq-muted: #5d6b7a;
  --lzq-line: #dfe6ec; --lzq-sky: #f0f7ff; --lzq-good: #1f9d6b;
  color: var(--lzq-ink);
}
.lz-qcm *, .lz-prog *, .lz-board * { box-sizing: border-box; }
.lz-qcm { margin: 24px 0; scroll-margin-top: 90px; }
.lz-qcm img { max-width: 100%; height: auto; }
.lz-qcm table { display: block; max-width: 100%; overflow-x: auto; }
.lzq { background: #fff; border: 1px solid var(--lzq-line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 22px rgba(20, 40, 60, .08); max-width: 720px; }
.lzq-hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--lzq-sky); border-bottom: 1px solid #dde8f2; font-weight: 800; font-size: 13px; }
.lzq-fire { color: #d9480f; }
.lzq-xp { color: var(--lzq-blue); }
.lz-qcm .lzq-muted, .lz-prog .lzq-muted, .lz-board .lzq-muted { color: var(--lzq-muted); font-weight: 600; }
.lz-qcm p.lzq-muted, .lz-prog p.lzq-muted, .lz-board p.lzq-muted { margin: 0; font-size: 15px !important; line-height: 1.45; }
.lzq-combo { background: #ffd166; color: #5a3d00; border-radius: 99px; padding: 1px 8px; font-size: 12px; }
.lzq-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lzq-prog { height: 8px; background: #e6eef4; border-radius: 99px; overflow: hidden; }
.lzq-prog b { display: block; height: 100%; background: var(--lzq-blue); border-radius: 99px; transition: width .3s; }
.lz-qcm .lzq-count, .lz-prog .lzq-count, .lz-board .lzq-count { margin: 0; font-size: 13px !important; line-height: 1.4; color: var(--lzq-muted); font-weight: 700; }
.lzq-q { font-size: 17.5px; font-weight: 800; line-height: 1.4; outline: none; overflow-wrap: anywhere; }
.lz-qcm .lzq-q p { margin: 0 0 8px; color: inherit; font-size: inherit !important; line-height: inherit; }
.lz-qcm .lzq-q p:last-child { margin: 0; }
.lzq-chs { display: grid; gap: 10px; }
.lz-qcm .lzq-ch {
  display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; margin: 0; padding: 10px 12px;
  border: 2px solid var(--lzq-line); border-radius: 14px; background: #fff; box-shadow: none;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--lzq-ink);
  text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer;
}
.lz-qcm .lzq-ch:hover:not(:disabled) { border-color: #b9c8d4; }
.lz-qcm .lzq-ch[aria-pressed="true"] { border-color: var(--lzq-blue); background: var(--lzq-sky); }
.lzq-l { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 2px solid #c4d0da; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--lzq-muted); }
.lz-qcm .lzq-ch[aria-pressed="true"] .lzq-l { background: var(--lzq-blue); border-color: var(--lzq-blue); color: #fff; }
.lzq-t { min-width: 0; overflow-wrap: anywhere; }
.lz-qcm .lzq-t p { margin: 0; color: inherit; font-size: inherit !important; line-height: inherit; }
.lz-qcm .lzq-ch.good { border-color: var(--lzq-good); background: #e9f8f1; }
.lz-qcm .lzq-ch.good .lzq-l { background: var(--lzq-good); border-color: var(--lzq-good); color: #fff; }
.lz-qcm .lzq-ch.bad { border-color: var(--lzq-coral); background: #fdeeee; }
.lz-qcm .lzq-ch.bad .lzq-l { background: var(--lzq-coral); border-color: var(--lzq-coral); color: #fff; }
.lz-qcm .lzq-ch:disabled { cursor: default; opacity: 1; }
.lzq-fb { border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.lzq-fb.ok { background: #e9f8f1; color: #145c3f; }
.lzq-fb.ko { background: #fdeeee; color: #8a2a2d; }
.lzq-fb > b { display: block; font-size: 15px; margin-bottom: 2px; }
.lz-qcm .lzq-fb p { margin: 4px 0 0; color: inherit; font-size: inherit !important; line-height: inherit; }
.lzq-right { margin-top: 4px; font-weight: 700; }
.lzq-pop { color: var(--lzq-blue); display: inline-block; animation: lzq-up .7s ease-out; }
@keyframes lzq-up { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.lz-qcm .lzq-next, .lz-prog .lzq-next, .lz-board .lzq-next {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 13px 16px; border: 0; border-radius: 14px;
  background: var(--lzq-coral); color: #fff; font: inherit; font-size: 16px; font-weight: 800; line-height: 1.5;
  text-align: center; text-decoration: none; cursor: pointer;
}
.lz-qcm .lzq-next:disabled { opacity: .45; cursor: default; }
.lz-qcm .lzq-ch:focus-visible, .lzq-next:focus-visible, .lzq-again:focus-visible, .lzq-link:focus-visible, .lz-prog button:focus-visible {
  outline: 3px solid var(--lzq-blue); outline-offset: 2px;
}
.lzq-end { padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lzq-medal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; line-height: 1.2; color: #3b2a00; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
.lzq-medal.or { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b705); }
.lzq-medal.argent { background: radial-gradient(circle at 35% 30%, #fff, #b8c2cc); }
.lzq-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffe0c2, #c77b3b); }
.lzq-medal.aucune { background: #eef1f4; color: var(--lzq-muted); }
.lz-qcm .lzq-score, .lz-prog .lzq-score, .lz-board .lzq-score { font-size: 17px; color: var(--lzq-ink); }
.lz-qcm .lzq-gain, .lz-prog .lzq-gain, .lz-board .lzq-gain { margin: 0; font-size: 15px !important; line-height: 1.45; font-weight: 800; color: var(--lzq-blue); }
.lz-qcm .lzq-warn, .lz-prog .lzq-warn, .lz-board .lzq-warn { margin: 0; font-size: 15px !important; line-height: 1.45; font-weight: 700; color: #8a2a2d; }
.lz-qcm .lzq-line, .lz-prog .lzq-line, .lz-board .lzq-line { margin: 0; font-size: 14px !important; line-height: 1.45; color: var(--lzq-ink); }
.lzq-end-detail { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lzq-lvl { width: 100%; text-align: left; font-size: 13px; color: var(--lzq-muted); font-weight: 700; }
.lzq-track { height: 10px; background: #e6eef4; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.lzq-track b { display: block; height: 100%; background: linear-gradient(90deg, var(--lzq-blue), var(--lzq-teal)); }
.lzq-invite { width: 100%; display: flex; flex-direction: column; gap: 8px; background: #fff8e6; border: 1px dashed #e0b44c; border-radius: 12px; padding: 12px; text-align: left; }
.lzq-invite span { font-size: 14px; }
.lz-qcm .lzq-link, .lz-prog .lzq-link, .lz-board .lzq-link { font-weight: 700; color: var(--lzq-blue); }
.lzq-invite .lzq-link { align-self: center; }
.lz-qcm .lzq-again { background: none; border: 0; padding: 6px; color: var(--lzq-blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.lz-qcm .lzq-off, .lz-prog .lzq-off, .lz-board .lzq-off { margin: 0; padding: 12px 16px; border: 1px solid var(--lzq-line); border-radius: 12px; font-size: 15px !important; line-height: 1.45; color: var(--lzq-muted); }
.lz-qcm .lzq-retry .lzq-off { margin-bottom: 12px; } /* message de panne passagère, puis bouton « Réessayer » */
.lz-qcm .lzq-pill, .lz-prog .lzq-pill, .lz-board .lzq-pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; line-height: 1.4; background: #eef1f4; color: var(--lzq-muted); }
.lz-qcm .lzq-pill.or, .lz-prog .lzq-pill.or, .lz-board .lzq-pill.or { background: #fff3b0; color: #6b4e00; }
.lz-qcm .lzq-pill.argent, .lz-prog .lzq-pill.argent, .lz-board .lzq-pill.argent { background: #e3e8ee; color: #3d4452; }
.lz-qcm .lzq-pill.bronze, .lz-prog .lzq-pill.bronze, .lz-board .lzq-pill.bronze { background: #ffe0c2; color: #7a4313; }
@media (max-width: 480px) {
  .lzq-body { padding: 14px 12px; }
  .lzq-q { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lzq-prog b { transition: none; }
  .lzq-pop { animation: none; }
}
/* « Ma progression » (/mon-profil/) — même carte blanche que les .lz-profile-card du gabarit du profil */
.lz-prog { background: #fff; border-radius: 16px; padding: 30px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 10px; }
.lz-prog:empty { display: none; }
.lz-prog h2 { margin: 0 0 8px; padding: 0 0 12px; border-bottom: 1px solid #f0f0f0; font-family: 'Nunito', sans-serif; font-size: 18px; color: #1a1a2e; }
.lz-prog .lzq-goal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.lz-prog .lzq-goal [role="group"] { display: flex; gap: 6px; }
.lz-prog .lzq-goal button { min-height: 44px; margin: 0; padding: 0 12px; border: 2px solid var(--lzq-line); border-radius: 10px; background: #fff; box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-transform: none; color: var(--lzq-ink); cursor: pointer; }
.lz-prog .lzq-goal button[aria-pressed="true"] { border-color: var(--lzq-blue); background: var(--lzq-sky); color: var(--lzq-blue); }
.lz-prog .lzq-medals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lz-prog .lzq-medals li { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 0 0 6px; font-size: 14px; border-bottom: 1px solid #eef1f4; }
.lz-prog .lzq-medals li span:first-child { min-width: 0; overflow-wrap: anywhere; }
/* Classement de la semaine (/qcm/) */
.lz-board { margin-bottom: 18px; }
.lz-board:empty { display: none; }
.lz-board .lzq-board-in { border: 1px solid var(--lzq-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lz-board .lzq-board-in > b { font-size: 17px; }
.lz-board .lzq-board-in ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.lz-board .lzq-board-in li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.lz-board .lzq-board-in li.me { background: var(--lzq-sky); font-weight: 800; }
.lz-board .lzq-rk { font-weight: 800; color: var(--lzq-muted); text-align: center; }
.lz-board .lzq-nm { overflow-wrap: anywhere; }
.lz-board .lzq-pt { font-weight: 800; color: var(--lzq-blue); }
.lz-board .lzq-board-in p { margin: 0; font-size: 14px !important; line-height: 1.45; color: var(--lzq-ink); }
.lz-board .lzq-board-in p.lzq-muted { color: var(--lzq-muted); }
.lz-board .lzq-board-in > span.lzq-muted { font-size: 13px; line-height: 1.4; }
/* Médaille ou meilleur score sur une carte de /qcm/ : à côté des étiquettes du gabarit (.lz-qcm-tag) */
.lz-qcm-tags .lzq-pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; line-height: 1.4; background: #eef1f4; color: #5d6b7a; }
.lz-qcm-tags .lzq-pill.or { background: #fff3b0; color: #6b4e00; }
.lz-qcm-tags .lzq-pill.argent { background: #e3e8ee; color: #3d4452; }
.lz-qcm-tags .lzq-pill.bronze { background: #ffe0c2; color: #7a4313; }
@media (max-width: 768px) { .lz-prog { padding: 20px; } }
/* Message « tes points de visiteur sont sur ton compte » : fixé en bas d'écran, même style que le bandeau de retour
   (.lzq-return, Laza_App_Qcm_Site::banner_html). Se ferme au clic ou après 8 s (lz-qcm.js). */
.lzq-toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9999; background: #e85a5e; color: #fff; font-weight: 800; line-height: 1.4; text-align: center; padding: 14px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); cursor: pointer; }
.lzq-toast::after { content: "×"; margin-left: 10px; opacity: .8; }
@media (min-width: 600px) { .lzq-toast { left: auto; max-width: 420px; } }

/* Tests BAC et orientation (spec du 09/10/2026) : texte de fin écrit dans Watu, au format du lecteur. */
.lzq-etiq { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lzq-muted); }
.lz-qcm .lzq-res { width: 100%; border: 1px solid var(--lzq-line); border-radius: 14px; padding: 16px 14px; background: #fbfdff; text-align: center; overflow-wrap: anywhere; }
.lz-qcm .lzq-res * { max-width: 100%; }
.lz-qcm .lzq-res [style*="font-size"] { font-size: inherit !important; }
.lz-qcm .lzq-res h1, .lz-qcm .lzq-res h2, .lz-qcm .lzq-res h3, .lz-qcm .lzq-res h4 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: var(--lzq-blue); }
.lz-qcm .lzq-res h5, .lz-qcm .lzq-res h6 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.lz-qcm .lzq-res p { margin: 0 0 8px; font-size: 15px !important; line-height: 1.5; }
.lz-qcm .lzq-res p:last-child { margin-bottom: 0; }
.lz-qcm .lzq-corr { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--lzq-line); text-align: left; }
.lz-qcm .lzq-corr summary { cursor: pointer; font-weight: 700; color: var(--lzq-blue); }
.lz-qcm .lzq-corr summary:focus-visible { outline: 3px solid var(--lzq-blue); outline-offset: 2px; }
.lz-qcm .lzq-corr .show-question { margin-top: 12px; }
.lz-qcm .lzq-corr ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.lz-qcm .lzq-corr li, .lz-qcm .lzq-corr li p { margin: 0; font-size: 14px !important; }
.lz-qcm .lzq-corr li.correct-answer { color: var(--lzq-good); font-weight: 700; }
.lz-qcm .lzq-corr li.user-answer::after { content: " · ta réponse"; color: var(--lzq-muted); font-weight: 400; }
.lz-qcm .lzq-limit { width: 100%; margin: 0; background: #f4f6f8; border-radius: 12px; padding: 12px; font-size: 15px; text-align: left; }
