/* Les quiz sur le téléphone et l'iPad (quiz.js, lot « quiz sur la page », 16/11). Le quiz de RemNote au téléphone n'a
   pas pu être relevé (telephone-2026-11-16.md § 7) : c'est l'écran du Mac (static/quiz.css, static/quiz-fin.css,
   captures 2026-11-07/107-112, 123-125, bandeau d'examen 2026-11-13/023 ; static/apprendre.css « Quiz existants »)
   recopié avec ses couleurs et mesures, mis à la largeur du téléphone par SES propres règles de fenêtre étroite
   (quiz-fin.css « max-width: 760px » : en-tête et pied qui passent à la ligne, points au-dessus des boutons ;
   « max-width: 600px » : l'explication couvre la page) et, à l'iPad (768 px et plus), par sa règle « max-width:
   1100px » (explication à côté, la moitié de la largeur au plus).
   Déduit (aucune source) : le pied du téléphone tient sur une ligne (boutons sans le grand retrait du Mac, qui est
   mesuré à 1470 px), toute cible tactile fait au moins 44 px (règle de la page), les marges de sécurité de l'écran
   (encoche, barre du bas) entourent la page du quiz. */

:root {
  --qz-vert-fond: #d1ffee;
  --qz-vert: #00b16f;
  --qz-rouge-fond: #ffe5e9;
  --qz-rouge: #e6193f;
  --qz-bleu: rgb(77, 104, 255);
  --qz-gris: rgb(245, 244, 249);
  --qz-bord: rgb(234, 233, 238);
  --qz-trait: rgb(233, 233, 233);
  --qz-texte: rgb(20, 19, 24);
  --qz-texte-2: rgb(78, 76, 87);
  --qz-grise: rgb(135, 135, 140);
  --qz-orange: rgb(237, 112, 54);
  --qz-orange-fort: rgb(205, 75, 25);
  --qz-vert-bord: rgb(40, 160, 70);
  --qz-vert-fort: rgb(35, 140, 65);
}
.qz-ico { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- « Quiz existants » (static/apprendre.css) */
.qz-liste-corps { margin-top: 12px; }
.ap-existants-titre { margin: 2px 0 6px; color: #6b6a78; font: 600 12px/16px var(--rn-police); }
.ap-existant {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--cible); margin-bottom: 6px; padding: 8px 10px;
  border: 1px solid #e6e6ec; border-radius: 8px; background: #fff; text-align: left;
}
.ap-existant:active { background: #f7f7fa; }
.ap-existant-noms { display: flex; flex-direction: column; min-width: 0; }
.ap-existant-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rn-texte); font: 500 14px/20px var(--rn-police); }
.ap-existant-score, .ap-existant-reglages { color: #8e8d9b; font: 400 12px/16px var(--rn-police); }
.ap-pastille { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; flex: none; }
.ap-pastille svg { width: 15px; height: 15px; }
.ap-quiz { background: #b5fcd2; color: #005e22; }
.ap-choisir-vide { margin: 0; color: var(--rn-texte-2); font: 400 14px/20px var(--rn-police); }
.qz-message { padding: 24px 20px; }

/* ---------------------------------------------------------------- page pleine (106-112) */
body.qz-ouvert { overflow: hidden; }
.qz-page {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  padding: var(--haut) var(--droite) var(--bas) var(--gauche);
  background: var(--rn-fond);
  color: var(--qz-texte);
  font-family: var(--rn-police);
}
.qz-gauche { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qz-entete {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--qz-trait);
}
.qz-retour-page {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  width: var(--cible); height: var(--cible); margin: -6px 2px -6px -12px; border-radius: 4px; color: var(--qz-texte-2);
}
.qz-retour-page::after {   /* le trait vertical après la flèche (106, 107) */
  content: ''; position: absolute; right: -3px; top: 12px; bottom: 12px; border-right: 1px solid var(--qz-trait);
}
.qz-titre {
  margin: 0; min-width: 0; flex: 1 1 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 17px/24px var(--rn-police);
}
.qz-modes { flex: none; display: inline-flex; gap: 4px; padding: 4px; background: var(--qz-gris); border-radius: 8px; }
.qz-mode {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible); padding: 6px 12px;
  border: 1px solid transparent; border-radius: 6px; color: var(--rn-texte); font: 500 15px/20px var(--rn-police);
}
.qz-mode.actif { background: var(--rn-fond); border-color: rgb(60, 60, 72); }
.qz-mode .qz-ico { width: 14px; height: 14px; }
.qz-chrono { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--qz-texte-2); font: 400 15px/20px var(--rn-police); }

/* Z098 : bandeau unique bleu foncé de la 023 (rgb(49, 82, 121)) pour un examen blanc */
.qz-barre-examen {
  --qz-barre: rgb(49, 82, 121);
  gap: 6px 10px; min-height: 52px; padding: 8px 12px;
  background: var(--qz-barre); border-bottom: 0; color: #fff;
}
.qz-barre-examen .qz-modes { padding: 0; background: transparent; }
.qz-barre-examen .qz-mode { padding: 4px 10px; border: 0; color: rgba(255, 255, 255, .7); }
.qz-barre-examen .qz-mode.actif { background: #fff; color: var(--qz-barre); }
.qz-barre-numero { font: 700 15px/20px var(--rn-police); white-space: nowrap; }
.qz-barre-examen .qz-marquer, .qz-barre-nav, .qz-barre-fermer {
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--cible); padding: 4px 6px; border-radius: 4px;
  color: #fff; font: 700 15px/20px var(--rn-police); white-space: nowrap;
}
.qz-barre-examen .qz-marquer.actif { color: rgb(255, 196, 120); }
.qz-barre-nav:disabled { color: rgba(255, 255, 255, .45); font-weight: 500; }
.qz-barre-examen .qz-chrono { color: rgba(255, 255, 255, .85); }
.qz-barre-examen .qz-ico { width: 14px; height: 14px; }
.qz-barre-fermer { min-width: var(--cible); justify-content: center; }
.qz-barre-fin { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
/* téléphone (déduit) : la barre de la 023 sur trois lignes : les modes et « Question k sur N », puis Marquer et les
   flèches, puis chrono, « Terminer maintenant » et ✕ à droite */
@media (max-width: 767px) {
  .qz-barre-examen { gap: 4px 6px; }
  .qz-barre-numero { margin-left: auto; }
  .qz-barre-numero, .qz-barre-examen .qz-marquer, .qz-barre-nav { font-size: 14px; }
  .qz-barre-examen .qz-marquer { margin-right: auto; }
  .qz-barre-fin { flex-basis: 100%; justify-content: flex-end; }
}
.qz-numero-examen:empty { display: none; }
.qz-corps-examen { display: flex; gap: 16px; align-items: flex-start; }
.qz-corps-examen .qz-colonne { flex: 1; min-width: 0; }
.qz-items { flex: none; display: flex; flex-direction: column; gap: 6px; }
.qz-item {
  width: var(--cible); height: var(--cible); border: 1px solid var(--qz-bord); border-radius: 6px;
  color: var(--qz-texte); font: 500 14px/20px var(--rn-police);
}
.qz-item.repondu { background: var(--qz-gris); }
.qz-item.courant { border-color: rgb(49, 82, 121); box-shadow: 0 0 0 1px rgb(49, 82, 121); }
.qz-item.marque { color: rgb(205, 110, 20); }

.qz-corps { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 20px 16px 40px; }
.qz-colonne { max-width: 700px; margin: 0 auto; }
.qz-numero { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font: 400 14px/20px var(--rn-police); color: var(--qz-texte-2); }
.qz-cas { padding: 0 6px; border-radius: 4px; background: var(--qz-gris); font: 500 12px/20px var(--rn-police); }
.qz-enonce { margin: 0 0 22px; font: 400 19px/32px var(--rn-police); color: var(--qz-texte); overflow-wrap: anywhere; }
.qz-props { display: flex; flex-direction: column; gap: 14px; }
.qz-prop {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 45px;
  padding: 10px 16px 10px 18px; text-align: left;
  background: var(--rn-fond); border: 1px solid var(--qz-bord); border-radius: 6px;
  color: var(--qz-texte); font: 400 16px/22px var(--rn-police);
}
.qz-prop .qz-radio, .qz-marque { margin-right: 6px; }
.qz-radio { width: 13px; height: 13px; flex: none; border: 1px solid rgb(150, 150, 160); border-radius: 50%; background: var(--rn-fond); }
.qz-radio.coche { border: 4px solid var(--qz-bleu); }
.qz-marque { width: 16px; height: 16px; flex: none; display: flex; }
.qz-lettre { flex: none; font-weight: 700; }
.qz-prop-texte { min-width: 0; overflow-wrap: anywhere; }
.qz-prop.choisie { border-color: var(--qz-bleu); background: rgb(250, 251, 255); }
.qz-prop.bonne { border-color: var(--qz-vert-bord); box-shadow: 0 0 0 1px var(--qz-vert-bord); }
.qz-prop.bonne .qz-marque { color: var(--qz-vert-fort); }
.qz-prop.mauvaise { border-color: var(--qz-orange); box-shadow: 0 0 0 1px var(--qz-orange); }
.qz-prop.mauvaise .qz-marque { color: var(--qz-orange-fort); }
.qz-prop.grisee { color: var(--qz-grise); }
.qz-nsp {
  display: block; width: 100%; min-height: var(--cible); margin: 28px 0 0; padding: 10px;
  background: var(--rn-fond); border: 1px solid var(--qz-bord); border-radius: 6px;
  color: var(--qz-texte); font: 400 15px/20px var(--rn-police);
}
.qz-nsp.actif { border-color: var(--qz-bleu); box-shadow: 0 0 0 1px var(--qz-bleu); }
.qz-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin: 26px 0 0; }
.qz-actions.gauche { justify-content: flex-start; }
.qz-actions:empty { display: none; }
.qz-blanc, .qz-bleu, .qz-gris {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--cible);
  padding: 8px 12px; border-radius: 6px; font: 400 16px/20px var(--rn-police);
}
.qz-blanc { background: var(--rn-fond); border: 1px solid rgb(225, 225, 230); color: var(--qz-texte); }
.qz-bleu { background: var(--qz-bleu); border: 1px solid var(--qz-bleu); color: #fff; }
.qz-gris { background: var(--qz-gris); color: rgb(60, 60, 72); padding: 8px 16px; }
.qz-bleu:disabled, .qz-gris:disabled { opacity: .5; }

/* pied (107, 108) : à la largeur du téléphone, les points au-dessus (règle « 760 px » du Mac), puis Précédent à gauche
   et Terminer maintenant / Suivant à droite sur une ligne (déduit, voir l'en-tête) */
.qz-pied {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--qz-trait); background: var(--rn-fond);
}
.qz-points { order: -1; flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.qz-point { width: 6px; height: 6px; border-radius: 50%; background: rgb(160, 158, 172); }
.qz-point.courant { background: var(--qz-bleu); }
.qz-pied-droite { display: flex; gap: 6px; }
.qz-pied { gap: 8px 6px; }
.qz-pied .qz-gris, .qz-pied .qz-bleu { gap: 6px; padding: 8px; font-size: 14px; white-space: nowrap; }
.qz-pied .qz-ico { width: 14px; height: 14px; }
.qz-saisie {
  width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--qz-bord); border-radius: 6px;
  background: var(--rn-fond); color: var(--qz-texte); font: 400 16px/24px var(--rn-police); resize: vertical;
}
.qz-saisie[disabled] { background: var(--qz-gris); }
.qz-reponse { margin: 16px 0 0; }
.qz-reponse p, .qz-ta-reponse { margin: 0 0 8px; font: 400 15px/24px var(--rn-police); }
.qz-juge { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font: 500 14px/20px var(--rn-police); }
.qz-oui, .qz-non { min-height: var(--cible); border-radius: 6px; padding: 6px 12px; font: 500 13px/20px var(--rn-police); }
.qz-oui { background: var(--qz-vert-fond); color: #00784b; }
.qz-non { background: var(--qz-rouge-fond); color: var(--qz-rouge); }
.qz-ligne {
  min-height: var(--cible); border-radius: 6px; padding: 6px 12px;
  font: 500 12px/20px var(--rn-police); background: var(--rn-bleu-5); color: var(--rn-bleu-60);
}
/* static/etude.css */
.sch-marque {
  display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid var(--orange, #e3a33b); border-radius: 5px;
  background: var(--orange-fond, rgba(227, 163, 59, .14)); color: #a35a00; font: 600 11px/16px var(--rn-police); white-space: nowrap;
}
.et-note { margin: 16px 0 0; color: var(--rn-texte-2); font: 400 14px/22px var(--rn-police); }
.et-liste-titre { margin: 0 0 8px; color: var(--rn-texte-2); font: 600 14px/24px var(--rn-police); }

/* ---------------------------------------------------------------- explication (109, 110, 111) */
.qz-expl {
  flex: none; display: flex; flex-direction: column;
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: 100%;
  padding: var(--haut) var(--droite) var(--bas) 0;
  background: rgb(252, 252, 252); border-left: 1px solid rgb(230, 230, 230);
  box-shadow: 0 4px 16px rgba(65, 65, 85, .16);
}
.qz-expl-tete { flex: none; display: flex; justify-content: flex-end; align-items: center; height: 44px; padding: 0 4px; border-bottom: 1px solid var(--qz-trait); }
.qz-expl-fermer { display: flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); color: var(--qz-texte-2); }
.qz-expl-fermer .qz-ico { width: 18px; height: 18px; }
.qz-expl-corps { flex: 1; overflow: auto; padding: 12px 20px 32px; font: 400 15px/24px var(--rn-police); color: var(--qz-texte); }
.qz-expl-corps h2 { margin: 24px 0 12px; font: 700 22px/28px var(--rn-police); }
.qz-expl-corps h2:first-child { margin-top: 12px; }
.qz-expl-corps p { margin: 0 0 12px; }
.qz-expl-corps ul { margin: 0 0 12px; padding-left: 20px; }
.qz-expl-corps li { margin: 0 0 12px; }
.qz-expl-corps li .qz-ligne, .qz-expl-corps li .sch-marque { display: table; margin: 6px 0 0; }

/* ---------------------------------------------------------------- « Terminer maintenant » (123) */
.qz-confirmer-voile {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(27, 23, 47, .25);
}
.qz-confirmer { width: 448px; max-width: 100%; padding: 16px; background: var(--rn-fond); border-radius: 6px; box-shadow: 0 8px 24px rgba(20, 20, 40, .2); }
.qz-confirmer p { margin: 0 0 16px; font: 400 16px/24px var(--rn-police); color: var(--qz-texte); }
.qz-confirmer-boutons { display: flex; flex-wrap: wrap; gap: 16px; }
.qz-confirmer-boutons button { flex: 1 1 160px; padding: 5px 8px; border-radius: 4px; font-size: 15px; white-space: nowrap; }
.qz-confirmer-boutons .qz-blanc { border-color: rgb(218, 218, 218); }

/* ---------------------------------------------------------------- « Résultats de la révision » (124, 125) */
.qz-entete-fin { min-height: 56px; padding: 0 16px; }
.qz-entete-dedans { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 4px 0; }
.qz-entete-fin .qz-titre { flex: 1 1 auto; color: rgb(30, 29, 35); }
.qz-entete-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.qz-lien {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--cible); padding: 6px 8px; border-radius: 6px;
  color: rgb(78, 76, 89); font: 400 15px/20px var(--rn-police); white-space: nowrap;
}
.qz-lien .qz-ico { color: rgb(96, 96, 100); }
.qz-corps.qz-fin { padding: 48px 16px 64px; }
.qz-fin-colonne { max-width: 488px; margin: 0 auto; }
.qz-anneau { display: flex; justify-content: center; }
.qz-anneau svg { width: 84px; height: 84px; }
.qz-fin-titre { margin: 26px 0 0; text-align: center; font: 700 24px/32px var(--rn-police); color: var(--qz-texte); }
.qz-fin-sous { margin: 8px 0 0; text-align: center; font: 400 15px/22px var(--rn-police); color: rgb(98, 97, 105); }
.qz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 40px 0 0; }
.qz-stat { padding: 12px 8px; text-align: center; border: 1px solid rgb(232, 232, 232); border-radius: 8px; }
.qz-stat-valeur { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 20px/28px var(--rn-police); color: var(--qz-texte); }
.qz-stat-ico { width: 22px; height: 22px; flex: none; }
.qz-stat-cible { color: rgb(53, 92, 255); }
.qz-stat-correct { color: rgb(13, 154, 41); }
.qz-stat-temps { width: 20px; height: 20px; color: rgb(70, 48, 250); }
.qz-stat-nom { margin-top: 2px; font: 500 15px/20px var(--rn-police); color: rgb(80, 79, 87); }
.qz-fin-boutons { display: flex; flex-direction: column; gap: 12px; margin: 40px 0 0; }
.qz-large {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--cible);
  padding: 8px 12px; border: 1px solid rgb(229, 229, 229); border-radius: 6px; background: var(--rn-fond);
  color: var(--qz-texte); font: 500 16px/20px var(--rn-police);
}
.qz-large .qz-ico { width: 18px; height: 18px; }
.qz-progres { margin: 40px 0 0; }
.qz-progres-titre { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 17px/24px var(--rn-police); color: var(--qz-texte); }
.qz-progres-titre .qz-ico { width: 20px; height: 20px; }
.qz-progres-texte { margin: 4px 0 0; font: 400 13px/16px var(--rn-police); color: var(--qz-texte-2); }
.qz-a-revoir { margin: 12px 0 0; overflow: hidden; border: 1px solid rgb(238, 200, 210); border-radius: 6px; background: rgb(255, 249, 251); }
.qz-a-revoir-tete { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 16px; background: rgb(255, 230, 233); color: rgb(110, 10, 35); font: 700 15px/20px var(--rn-police); }
.qz-a-revoir-tete .qz-ico { width: 18px; height: 18px; }
.qz-a-revoir ul { list-style: none; margin: 0; padding: 6px 0; }
.qz-a-revoir li { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 14px 0 15px; font: 400 15px/20px var(--rn-police); color: rgb(85, 85, 100); }
.qz-a-revoir li .qz-ico { width: 12px; height: 12px; color: rgb(205, 35, 70); stroke-width: 1.8; }
.qz-sujet { flex: 1; min-width: 0; }
.qz-pourcent { flex: none; padding: 0 6px; border-radius: 4px; background: rgb(246, 245, 252); color: rgb(91, 90, 96); font: 500 12px/20px var(--rn-police); }
.qz-revision-titre { margin: 40px 0 16px; padding: 0 0 16px; border-bottom: 1px solid rgb(232, 232, 232); font: 600 17px/24px var(--rn-police); color: var(--qz-texte); }
.qz-liste { margin: 0; padding: 0; list-style: none; }
.qz-carte { margin: 0 0 16px; padding: 16px; background: var(--rn-gris-0); border: 1px solid var(--qz-bord); border-radius: 8px; }
.qz-carte.juste { border-color: var(--qz-vert-bord); }
.qz-carte.faux { border-color: var(--qz-orange); }
.qz-question { margin: 0 0 12px; font: 500 16px/26px var(--rn-police); }
.qz-num { color: var(--rn-texte-2); }
.qz-carte .qz-props { gap: 8px; }
.qz-revue-prop .qz-prop { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.qz-explication { margin: 6px 0 4px 34px; font: 400 14px/22px var(--rn-police); color: var(--rn-texte-2); }
.qz-explication p { margin: 0 0 4px; }
.qz-explication.non-source { border-left: 2px dashed var(--orange, #e3a33b); padding-left: 8px; }
.qz-historique { margin-top: 24px; }
.qz-historique ul { list-style: none; margin: 0; padding: 0; }
.qz-historique li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 6px 0;
  border-bottom: 1px solid var(--rn-bord); font: 400 13px/20px var(--rn-police); color: var(--rn-texte-2);
}
.qz-historique strong { color: var(--rn-texte); }

/* ---------------------------------------------------------------- iPad (768 px et plus) : la règle « 1100 px » du Mac */
@media (min-width: 768px) {
  .qz-entete { flex-wrap: nowrap; padding: 8px 24px 8px 16px; }
  .qz-titre { flex: 0 1 auto; }
  .qz-modes { margin-left: 8px; }
  .qz-corps { padding: 24px 24px 48px; }
  .qz-pied { flex-wrap: nowrap; padding: 16px 24px; }
  .qz-points { order: 0; flex: 1 1 auto; flex-basis: auto; }
  .qz-pied .qz-gris, .qz-pied .qz-bleu { padding: 8px 16px; font-size: 16px; }
  .qz-stats { gap: 20px; }
  .qz-corps.qz-fin { padding-top: 122px; }
  .qz-expl { position: static; width: min(490px, 50vw); box-shadow: none; padding-left: 0; }
  .qz-page.avec-expl .qz-entete { flex-wrap: wrap; padding: 8px 16px; }
  .qz-page.avec-expl .qz-titre { flex: 1 1 60%; }
  .qz-page.avec-expl .qz-modes { margin-left: 0; }
  .qz-page.avec-expl .qz-corps { padding: 20px 16px 40px; }
  .qz-page.avec-expl .qz-pied { flex-wrap: wrap; padding: 12px 16px; }
  .qz-page.avec-expl .qz-points { order: -1; flex-basis: 100%; }
}
