/* Les cartes sur le téléphone et l'iPad (lot « cartes sur la page », 16/11) : accueil (038 téléphone, 044 iPad) et file
   de révision (040 / 041 téléphone, 047 / 048 iPad, 039 pause, 045 fin). Mesures et couleurs du relevé
   telephone-2026-11-16.md § 4 et 5 ; classes du texte d'une carte (fc-*) dessinées comme static/file-revision.css
   (puces, « ? », flèches, choix multiple). Toute cible tactile garde 44 px au moins (base.css). Déduit : ce que les
   captures ne mesurent pas (écarts, tailles de l'iPad au-delà de ce qui est écrit) suit le téléphone. */

/* ---------------------------------------------------------------- accueil (038, 044) */
.cm-page { padding: 0 16px 24px; }
.cm-haut { display: flex; align-items: center; gap: 12px; padding: 20px 0 16px; }
.cm-barre { display: flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); }
.cm-barre .cm-ic-tel { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rn-bord);
  border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); background: var(--rn-fond); }
.cm-barre .cm-ic-tel svg { width: 22px; height: 22px; }
.cm-barre .cm-ic-ipad { display: none; color: var(--rn-texte-2); }
.cm-barre .cm-ic-ipad svg { width: 20px; height: 20px; }
.cm-titre { margin: 0; font-size: 28px; line-height: 36px; font-weight: 800; }
.cm-fond { margin: 0 -16px; padding: 0 16px 24px;
  background: linear-gradient(226.435deg, rgba(255, 233, 233, .365) 3.7%, rgba(245, 252, 255, .15) 46.6%, rgba(221, 242, 255, .58) 90.1%); }
.cm-h2 { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 20px; line-height: 28px; font-weight: 600; }
.cm-h2 svg { width: 22px; height: 22px; color: var(--rn-bleu-60); flex: none; }
.cm-cartes-haut { display: grid; gap: 24px; margin-bottom: 16px; }
.cm-carte { position: relative; padding: 24px 24px 20px; border: 1px solid var(--rn-bord); border-radius: 12px; background: var(--rn-fond);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05); overflow: hidden; }
.cm-carte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgb(75, 115, 255); }
.cm-carte.serie::before { background: rgb(0, 150, 30); }
.cm-carte.apprendre::before { background: rgb(0, 150, 30); }
.cm-nombre { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; font-size: 16px; font-weight: 500; color: var(--rn-texte-2); }
.cm-grand { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--rn-texte); }
.cm-jauge { height: 8px; margin-bottom: 64px; border-radius: 999px; background: var(--rn-bord-fort); overflow: hidden; }
.cm-jauge i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgb(54, 120, 255), rgb(0, 170, 255)); }
.cm-bouton { width: 100%; min-height: 48px; border-radius: 6px; background: rgb(80, 108, 247); color: #fff; font-size: 16px; font-weight: 500; }
.cm-bouton:disabled { background: var(--rn-gris-5); color: var(--rn-texte-3); cursor: default; }
.cm-serie-haut { display: flex; flex-direction: column; gap: 4px; }
.cm-serie-haut .cm-nombre { margin: 0; }
.cm-alerte { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgb(255, 248, 217); color: rgb(208, 61, 0); font-size: 12px; font-weight: 600; }
.cm-alerte svg { width: 12px; height: 12px; }
.cm-semaine { display: flex; gap: 8px; height: 140px; margin: 12px 0 8px; }
.cm-barres { flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.cm-jour { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 18px; font-size: 12px; color: var(--rn-texte-2); }
.cm-jour i { display: block; width: 18px; min-height: 4px; margin-bottom: 8px; border-radius: 999px; background: var(--rn-bord-fort); }
.cm-jour i.fait { background: rgb(80, 150, 255); }
.cm-jour i.atteint { background: rgb(0, 82, 255); }
.cm-jour.aujourdhui span { color: var(--rn-texte); font-weight: 600; }
.cm-axe { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 26px; font-size: 11px; color: var(--rn-texte-2); }
.cm-legende { display: flex; justify-content: flex-end; gap: 12px; font-size: 12px; color: var(--rn-texte-2); }
.cm-legende span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: rgb(80, 150, 255); }
.cm-docs { padding-top: 24px; }
.cm-groupe { font-size: 18px; }
.cm-liste { display: grid; gap: 8px; margin-bottom: 16px; }
.cm-doc { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 8px 4px 16px; border: 1px solid var(--rn-bord); border-radius: 8px; background: var(--rn-fond); }
.cm-doc-titre { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pastille { min-height: var(--cible); padding: 0 12px; border-radius: 6px; color: var(--rn-texte-2); font-size: 14px; font-weight: 500; }
.cm-pastille::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: rgb(237, 92, 140); }
.cm-pastille.apprendre::before { background: rgb(0, 150, 30); }
.cm-message, .cm-attente { padding: 24px 0; color: var(--rn-texte-2); text-align: center; }
.cm-attente { padding: 8px 0; font-size: 13px; }

/* ---------------------------------------------------------------- file (040, 041 ; iPad 047, 048) */
.cm-file { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.cf-haut { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 4px; }
.cf-fermer, .cf-vide { display: flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); }
.cf-fermer svg { width: 24px; height: 24px; }
.cf-compte { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 4px; background: rgb(231, 231, 239);
  font-size: 14px; font-weight: 600; }
.cf-compte svg { width: 18px; height: 18px; color: rgb(54, 88, 255); }
.cf-ligne { position: relative; height: 26px; margin: 0 0 4px; }
.cf-ligne::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgb(225, 225, 232); }
.cf-ligne i { position: absolute; left: 0; top: 12px; height: 2px; width: 0; background: rgb(46, 139, 87); }
.cf-cible { position: absolute; right: 6px; top: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 1px solid rgb(255, 207, 213); border-radius: 50%; background: var(--rn-fond); color: rgb(54, 88, 255); }
.cf-cible svg { width: 14px; height: 14px; }
.cf-carte { flex: 1; padding: 8px 16px 16px; }
.cf-texte { font-size: 16px; line-height: 24px; }
.cf-bas { position: sticky; bottom: 0; padding: 12px 16px calc(16px + var(--bas)); background: var(--rn-fond); }
.cf-afficher { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: 6px;
  background: rgb(75, 105, 255); color: #fff; font-size: 18px; font-weight: 500; }
.cf-afficher svg { width: 22px; height: 22px; }
.cf-afficher.blanc { background: var(--rn-fond); color: var(--rn-texte); border: 1px solid var(--rn-bord-fort); }
.cf-bulle { margin: 0 0 8px; font-size: 14px; color: var(--rn-texte-2); text-align: center; }
.cf-notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cf-notes.n3 { grid-template-columns: repeat(3, 1fr); }
.cf-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 79px; padding: 8px 2px;
  border: 1px solid var(--rn-bord); border-radius: 4px; background: var(--rn-fond); }
.cf-note .cf-icone { width: 28px; height: 28px; }
.cf-note[data-note="passer"] .cf-icone { color: rgb(80, 108, 247); }
.cf-note strong { display: none; font-size: 14px; font-weight: 400; }
.cf-note small { padding: 0 4px; border: 1px solid var(--rn-bord-fort); border-radius: 4px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.cf-note.propose { border-color: rgb(0, 110, 11); background: rgb(250, 255, 252); }
.cf-note:disabled { opacity: .4; }
.cf-notes.n3 .cf-note strong { display: block; }
.cf-consigne { margin: 0 0 8px; font-size: 14px; color: var(--rn-texte-2); }
.cf-explication { margin: 24px -16px 0; padding: 16px 24px; background: rgb(247, 251, 255); }
.cf-explication h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: rgb(34, 119, 179); }
.cf-explication p { margin: 0; font-size: 14px; line-height: 20px; }
.cf-ecran { padding: 120px 16px 24px; text-align: center; }
.cf-ecran h2 { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 700; }
.cf-ecran p { margin: 0 0 16px; font-size: 16px; line-height: 24px; color: var(--rn-texte-2); }
.cf-ecran-blanc, .cf-ecran-bleu { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px;
  border-radius: 6px; font-size: 16px; font-weight: 500; }
.cf-ecran-blanc { min-height: 50px; border: 1px solid var(--rn-bord-fort); background: var(--rn-fond); }
.cf-ecran-bleu { min-height: 48px; background: rgb(77, 104, 255); color: #fff; }
.cf-ecran svg { width: 20px; height: 20px; }
.cf-bilan { margin: 16px 0; padding: 16px; border: 1px solid var(--rn-bord); border-radius: 8px; text-align: left; }
.cf-bilan p { margin: 0 0 8px; font-size: 14px; }
.cf-bilan-fait b { margin-right: 8px; font-size: 28px; color: rgb(0, 131, 22); }
.cf-bilan-jauge { height: 8px; border-radius: 999px; background: var(--rn-bord-fort); overflow: hidden; }
.cf-bilan-jauge i { display: block; height: 100%; width: 0; background: rgb(0, 150, 30); }
.cf-question { margin-top: 24px !important; color: var(--rn-texte) !important; font-weight: 600; }

/* ---------------------------------------------------------------- texte d'une carte (file-revision.css du Mac) */
.fc-chemin { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--rn-texte-2); }
.fc-chemin svg { width: 14px; height: 14px; flex: none; }
.fc-chemin-seul { display: inline-flex; padding: 4px 10px; border-radius: 6px; background: var(--rn-gris-5); font-size: 16px; line-height: 24px; color: var(--rn-texte); }
.fc-chemin-seul svg { width: 16px; height: 16px; }
.fc-puces, .fc-puces ul { margin: 0; padding-left: 20px; list-style: disc; }
.fc-puces li { padding: 4px 0; }
.fc-parent { font-weight: 600; }
.fc-parent > ul { font-weight: 400; }
.fc-fleche { color: var(--rn-texte-2); }
.fc-question, .fc-demande { display: inline-block; padding: 0 12px; border-radius: 4px; background: rgb(232, 236, 255); color: rgb(18, 44, 175);
  font-size: 14px; font-weight: 600; }
.fc-trou { padding: 0 4px; border-radius: 4px; background: rgb(232, 236, 255); }
.fc-concept { font-weight: 600; }
.fc-attribut { font-style: italic; }
.fc-cache { color: var(--rn-texte-3); }
.fc-detail { color: var(--rn-texte-2); }
.fc-indice, .fc-indice-trou { color: rgb(54, 88, 255); }
.fc-indice { margin: 0 0 8px; font-size: 14px; }
.fc-marque { padding: 0 4px; border-radius: 4px; background: var(--rn-gris-5); color: var(--rn-texte-2); font-size: 12px; }
.fc-multi { list-style: none; padding-left: 4px !important; }
.fc-multi-nb { display: inline-block; padding: 0 10px; border-radius: 4px; background: rgb(232, 236, 255); color: rgb(18, 44, 175); font-size: 14px; font-weight: 600; }
.fc-multi-revele { background: rgb(255, 248, 217); }
.fc-multi-case { display: flex; align-items: center; gap: 8px; }
.fc-multi-x { display: flex; align-items: center; justify-content: center; flex: none; width: var(--cible); height: var(--cible); position: relative; }
.fc-multi-x::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 4px; background: rgb(231, 231, 239); }
.fc-multi-x svg { position: relative; width: 14px; height: 14px; stroke: rgb(214, 64, 43); stroke-width: 2; }
.fc-qcm { margin: 8px 0 0 -20px; padding-left: 16px; border-left: 2px solid var(--rn-bord); display: grid; gap: 8px; }
.fc-qcm-prop { display: block; width: 100%; text-align: left; min-height: 48px; padding: 10px 8px; border: 1px solid rgb(231, 231, 239); border-radius: 8px;
  background: var(--rn-fond); font-weight: 400; }
.fc-qcm-tete { display: flex; align-items: center; gap: 10px; }
.fc-qcm-rond { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--rn-gris-30); border-radius: 50%; }
.fc-qcm-texte { flex: 1; }
.fc-qcm-num { padding: 0 6px; border: 1px solid rgb(231, 231, 239); border-radius: 4px; color: rgb(145, 145, 168); font: 12px/18px var(--rn-police); }
.fc-qcm-prop.choisie.bonne { border-color: rgb(0, 110, 11); background: rgb(250, 255, 252); }
.fc-qcm-prop.choisie.mauvaise { border-color: rgb(214, 100, 43); background: rgb(255, 247, 240); }
.fc-qcm-prop.bonne { border-color: rgb(0, 110, 11); }
.fc-verdict { font-size: 14px; font-weight: 600; }
.fc-verdict.bonne { color: rgb(0, 131, 22); }
.fc-verdict.mauvaise { color: rgb(214, 100, 43); }
.fc-qcm-expl { margin: 8px 0 0 26px; font-size: 14px; line-height: 20px; color: var(--rn-texte-2); }
.fc-qcm-info { margin: 0; }
.fc-code { margin: 0; font-size: 13px; white-space: pre-wrap; }

/* ---------------------------------------------------------------- iPad (044, 047, 048) : pas de barre d'onglets */
@media (min-width: 768px) {
  .cm-page { padding: 0 16px 24px; }
  .cm-haut { flex-wrap: wrap; gap: 0; padding: 0 0 12px; }
  .cm-barre .cm-ic-tel { display: none; }
  .cm-barre .cm-ic-ipad { display: flex; }
  .cm-titre { flex-basis: 100%; }
  .cm-cartes-haut { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cf-carte, .cf-bas { padding-left: 16px; padding-right: 16px; }
  .cf-note { min-height: 104px; }
  .cf-note strong { display: block; }
}

/* Lot « cartes, restes » (16/11) : multiligne « un à la fois » (A035, file-carte.css .fr-multi-liste / .fr-multi-plus),
   images d'un import (.fr-medias), analyses du dos (file-revision.css .fr-analyse-titre, .fr-contexte, .fr-insight-image,
   .fr-verif). Valeurs du Mac ramenées à l'échelle du bloc du téléphone (déduit : texte 14 px comme .cf-explication p). */
.fc-puces ol.fc-multi-liste { margin: 4px 0 2px; padding-left: 21px !important; list-style: decimal inside; font-weight: 400; }
.fc-multi-liste > li::marker { content: counter(list-item) ".  "; }
.fc-multi-ligne.oubliee { color: #c2410c; }
.fc-multi-revele-liste { color: inherit; }
.fc-multi-plus { margin: 24px 0 0 5px; color: rgb(140, 140, 155); }
.fc-medias { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fc-media { max-width: min(420px, 100%); max-height: 240px; border-radius: 8px; }
.cf-explication h3.cf-analyse-titre { margin-top: 14px; }
.cf-contexte { margin: 0; padding: 0 0 0 20px; list-style: disc; font-size: 14px; line-height: 20px; }
.cf-contexte li { margin: 0 0 6px; }
.cf-insight-image { margin: 4px 0 0; }
.cf-insight-image img { display: block; max-width: min(480px, 100%); max-height: 160px; border-radius: 8px; object-fit: contain; }
.cf-insight-image figcaption { margin-top: 6px; font-size: 12px; line-height: 17px; color: rgb(115, 115, 140); overflow-wrap: anywhere; }
.cf-insight-image figcaption a { color: rgb(34, 119, 179); text-decoration: none; }
.cf-explication p.cf-verif-ok { color: #13995b; }
.cf-explication p.cf-verif-relire { color: #b4531b; }
