/* Design « La boîte » (design system : https://claude.ai/artifact/2XxJwm1Py7iGLrdpG2MRY2).
   Chargé après styles.css, qui vient du site et reste tel quel : ce fichier redéfinit ses variables.
   Thème Jour = clair, thème Soir = sombre, selon le réglage de l'appareil. Plan et notes : DESIGN.md. */

/* Jetons du design system, thème Jour */
:root{
  --kraft:#E8DCC8; --kraft-fonce:#BFA982; --case:#A88F65; --bristol:#FFFDF7; --bristol-pale:#EFE7D6;
  --graphite:#24211D; --crayon:#5E574D; --reglure:#C9D6EE; --marge:#E6A49A;
  --surligneur:#F7E15A; --on-surligneur:#24211D; --correcteur:#A9301A;
  --action:#24211D; --on-action:#FFFDF7; --action-ombre:#8E7A5C; --bristol-ombre:#CBB894; --focus:#2F5BD3;
  --font-display:"Young Serif",Georgia,serif;
  --font-texte:"Rethink Sans","Segoe UI",system-ui,sans-serif;
  --espace-1:4px; --espace-2:8px; --espace-3:12px; --espace-4:16px; --espace-5:20px; --espace-6:28px;
  --rayon-fiche:4px; --rayon-boite:8px; --rayon-onglet-haut:12px; --rayon-onglet-bas:5px; --rayon-rond:999px;
  --ombre-fiche:0 2px 0 #CBB894;
  --ombre-fiche-levee:0 3px 0 #CBB894,0 10px 24px rgba(60,40,10,.12);
  --ombre-bouton:0 4px 0 #8E7A5C;
  --ombre-bouton-secondaire:0 4px 0 #CBB894;
  --incline-gauche:-0.7deg; --incline-droite:0.4deg;
  /* Couleurs propres à l'appli, absentes du design system */
  --reglure-legere:rgba(160,185,230,.35);
  --su-fond:#F7E15A;
  --reprendre-fond:#EFE7D6;
}

/* Jetons du design system, thème Soir */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --kraft:#1E1A15; --kraft-fonce:#3A3127; --case:#2B241C; --bristol:#2C2620; --bristol-pale:#4A4136;
  --graphite:#F2EBDD; --crayon:#B9AE9C; --reglure:#3B4456; --marge:#7A3D33;
  --surligneur:#E9D244; --on-surligneur:#24211D; --correcteur:#FF8A70;
  --action:#F2EBDD; --on-action:#1E1A15; --action-ombre:#6E5F48; --bristol-ombre:#0F0D0A; --focus:#8FB0FF;
  --ombre-fiche:0 2px 0 #0F0D0A;
  --ombre-fiche-levee:0 3px 0 #0F0D0A,0 10px 24px rgba(0,0,0,.4);
  --ombre-bouton:0 4px 0 #6E5F48;
  --ombre-bouton-secondaire:0 4px 0 #0F0D0A;
  --reglure-legere:rgba(59,68,86,.6);
  /* Le texte clair du Soir reste lisible sur ces fonds ; le vrai surligneur (texte sombre) arrive à l'étape 3 */
  --su-fond:#4A4320;
  --reprendre-fond:#43302A;
}}
:root[data-theme="dark"]{
  --kraft:#1E1A15; --kraft-fonce:#3A3127; --case:#2B241C; --bristol:#2C2620; --bristol-pale:#4A4136;
  --graphite:#F2EBDD; --crayon:#B9AE9C; --reglure:#3B4456; --marge:#7A3D33;
  --surligneur:#E9D244; --on-surligneur:#24211D; --correcteur:#FF8A70;
  --action:#F2EBDD; --on-action:#1E1A15; --action-ombre:#6E5F48; --bristol-ombre:#0F0D0A; --focus:#8FB0FF;
  --ombre-fiche:0 2px 0 #0F0D0A;
  --ombre-fiche-levee:0 3px 0 #0F0D0A,0 10px 24px rgba(0,0,0,.4);
  --ombre-bouton:0 4px 0 #6E5F48;
  --ombre-bouton-secondaire:0 4px 0 #0F0D0A;
  --reglure-legere:rgba(59,68,86,.6);
  --su-fond:#4A4320;
  --reprendre-fond:#43302A;
}

/* Variables de styles.css, branchées sur les jetons. Ces sélecteurs pèsent autant que ceux
   du thème sombre de styles.css et viennent après : ils l'emportent dans les deux thèmes. */
:root:not([data-theme="light"]),:root[data-theme]{
  --paper:var(--kraft); --sheet:var(--bristol); --ink:var(--graphite); --ink-soft:var(--crayon);
  --line:var(--kraft-fonce);
  --rule:var(--reglure-legere); --rule-strong:var(--reglure); --margin-line:var(--marge);
  --accent:var(--action); --accent-ink:var(--on-action); --accent-soft:var(--bristol-pale); --accent-mid:var(--kraft-fonce);
  --heart:var(--correcteur); --bad:var(--correcteur); --bad-bg:var(--reprendre-fond);
  --good:var(--graphite); --good-bg:var(--su-fond);
  --f-display:var(--font-display); --f-body:var(--font-texte);
  --r:var(--rayon-fiche);
}
/* En Soir, le kraft foncé disparaît presque sur le bristol : bordures et « Un peu » du calendrier plus clairs */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--line:var(--bristol-pale); --accent-mid:var(--action-ombre)}}
:root[data-theme="dark"]{--line:var(--bristol-pale); --accent-mid:var(--action-ombre)}

/* Young Serif n'existe qu'en une graisse : pas de faux gras sur les titres */
html{font-synthesis-weight:none}

/* Anneau de focus du design system : bleu, 2 px, décalé de 3 px */
button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,label:focus-within{outline-color:var(--focus);outline-offset:3px}
.opt input:focus-visible+span{outline-color:var(--focus)}

/* ---------- Étape 2 : boutons et fiches ---------- */

/* Boutons en onglet d'intercalaire, ombre dure qui s'écrase à l'appui */
.btn{border-radius:var(--rayon-onglet-haut) var(--rayon-onglet-haut) var(--rayon-onglet-bas) var(--rayon-onglet-bas);min-height:48px;box-shadow:var(--ombre-bouton);transition:transform .08s ease,box-shadow .08s ease}
.btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--action-ombre)}
.btn:disabled{box-shadow:none}
.btn.big{min-height:56px;font-family:var(--f-body);font-weight:700}
.btn.ghost{background:var(--bristol);box-shadow:var(--ombre-bouton-secondaire)}
.btn.ghost:active:not(:disabled){box-shadow:0 1px 0 var(--bristol-ombre)}
.btn-mini{border-radius:8px 8px var(--rayon-onglet-bas) var(--rayon-onglet-bas);box-shadow:0 2px 0 var(--bristol-ombre);transition:transform .08s ease,box-shadow .08s ease}
.btn-mini:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 var(--bristol-ombre)}
/* Liens : le bouton « discret » du design system */
.link-btn{text-decoration-thickness:2px;text-underline-offset:4px}

/* Fiches bristol posées sur le kraft : pas de bordure, une ombre dure */
.today,.chap,.stats,.tool,.news,.methods,.chart,.fiche{border-color:transparent;border-radius:var(--rayon-fiche);box-shadow:var(--ombre-fiche)}
.news{background:var(--bristol)}
/* La liste des chapitres : des fiches légèrement de travers, en alternance */
.chaps>.chap:nth-child(odd){transform:rotate(var(--incline-gauche))}
.chaps>.chap:nth-child(even){transform:rotate(var(--incline-droite))}
/* Éléments posés sur une fiche : papier coupé, coins presque droits */
.opt>span,.edt-list li,.chap-picks>li,.mat-row,.imp-list li,.sm-prevus li,.sm-chip,.jr-s,.dots button,.ec-choices li,.jour-bilan,.exo-enonce,
.field input,.field select,select,.saisie,.mat-name,.ec-field select,textarea{border-radius:var(--rayon-fiche)}

/* Pas d'étiquettes en capitales */
.stat span,.step-title .n,.chip,.label-sm,.tag,.lbl,table.hist th,.exo-n,.jr-tab th,.etat,.sm-prevus-t{text-transform:none;letter-spacing:normal}

@media (prefers-reduced-motion:reduce){.btn,.btn-mini{transition:none}}
/* Noms de matières dans les cases à cocher : Young Serif est plus large que l'ancienne police, les noms longs débordaient */
.seg.subjects{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}
.seg.subjects .opt>span{font-family:var(--f-body);font-weight:700;font-size:15px;text-align:center}
/* Fiches de chapitres : cochée = fiche posée, de travers ; décochée = fiche à plat, sans ombre, au contour en pointillé.
   Plus de cadre noir ni de bord de couleur : la matière est déjà écrite en couleur au-dessus du titre.
   (Un fond bristol pâle pour les décochées ferait passer le nom des matières sous 4,5:1.) */
.chap,.chap.is-sel{border-color:transparent;box-shadow:var(--ombre-fiche)}
.chaps>.chap:not(.is-sel){border-color:var(--line);border-style:dashed;box-shadow:none;transform:none}

/* ---------- Étape 3 : le quiz ---------- */

/* La fiche de question, tenue en main : levée, un peu de travers, sans fond Seyès */
.sheet{border-color:transparent;border-radius:var(--rayon-fiche);background-image:none;box-shadow:var(--ombre-fiche-levee);padding:0 var(--espace-5) var(--espace-5)}
/* Inclinée tant qu'on cherche ; posée à plat dès que la réponse s'affiche, et pour les exercices :
   une fiche haute inclinée déborderait de l'écran du téléphone */
#quiz-card{transform:rotate(var(--incline-gauche))}
#quiz-card:has(.answer,.exo-zone,#qfeedback:not(:empty)){transform:none}
/* En-tête souligné d'un trait de marge : type, ♥, difficulté, matière et chapitre */
.sheet .qmeta{margin:0 calc(-1 * var(--espace-5)) var(--espace-4);padding:14px var(--espace-5) 10px;border-bottom:2px solid var(--marge);font-size:13.5px;line-height:18px;color:var(--crayon)}
.qmeta .tag{background:none;padding:0;border-radius:0;font-size:13.5px;color:var(--graphite)}
.qmeta .tag.mat{box-shadow:none;color:var(--mc,var(--graphite))}
.pc-difficulte{display:inline-flex;gap:var(--espace-1)}
.pc-point{width:8px;height:8px;border-radius:var(--rayon-rond);box-shadow:inset 0 0 0 1.5px var(--graphite)}
.pc-point-plein{background:var(--graphite)}
/* L'énoncé se lit comme un cours imprimé */
.qtext{font-family:var(--f-display);font-weight:400;font-size:21px;line-height:28px}

/* Les choix : des lignes de réglure, plus de cadres ni de lettres sur téléphone */
.choices{gap:0}
.choice{border:0;border-bottom:1px solid var(--reglure);border-radius:0;background:transparent;padding:12px 4px;min-height:52px;align-items:center;font-size:18px;line-height:24px;font-weight:500}
@media (hover:hover){.choice:hover:not(:disabled){border-color:var(--reglure);background:var(--bristol-pale)}}
.choice .k,.choice.is-good .k,.choice.is-bad .k,.choice.is-picked .k{width:auto;height:auto;background:none;color:var(--crayon);font-size:13px}
@media (hover:none){.choice .k{display:none}}
.choice .t{padding:1px 4px;border-radius:2px;background:linear-gradient(var(--surligneur),var(--surligneur)) no-repeat 0 0/0% 100%}
/* Juste : le surligneur passe sur le texte (0,6 s), avec une coche */
@keyframes pc-surligne{from{background-size:0% 100%}to{background-size:100% 100%}}
.choice.is-good,.choice.is-bad{background:transparent;border-color:var(--reglure)}
.choice.is-good .t{color:var(--on-surligneur);background-size:100% 100%}
.choices:not(:has(.is-bad)) .choice.is-good .t{animation:pc-surligne .6s ease-out}
/* Faux : barré au correcteur, avec une croix ; la bonne réponse est surlignée sans animation */
.choice.is-bad .t{color:var(--crayon);text-decoration:line-through;text-decoration-color:var(--correcteur);text-decoration-thickness:2px}
.choice.is-good::after,.choice.is-bad::after{content:"";flex:none;width:22px;height:22px;margin-left:auto;-webkit-mask:var(--marque) center/contain no-repeat;mask:var(--marque) center/contain no-repeat}
.choice.is-good::after{background:var(--graphite);--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E")}
.choice.is-bad::after{background:var(--correcteur);--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}
.choice.is-picked{background:var(--bristol-pale);border-color:var(--reglure)}

/* La correction, sous les choix, séparée par une ligne de réglure, sans cadre */
.feedback,.feedback.ok,.feedback.ko{margin-top:var(--espace-5);padding:14px 0 0;border:0;border-top:2px solid var(--reglure);border-radius:0;background:transparent}
.verdict{font-family:var(--f-display);font-weight:400;font-size:20px}
.answer{border-left:0;border-top:2px solid var(--reglure);border-radius:0;background:transparent;padding:12px 0 0}
.others{border-top-color:var(--reglure)}

/* Sous la fiche : le passage de case, puis le seul bouton principal, sur toute la largeur */
#next-row{flex-direction:column;align-items:stretch;gap:var(--espace-4);margin-top:var(--espace-6)}
#next-row .btn{width:100%;min-height:56px;font-size:18px}
@keyframes pc-saut{0%{transform:translate(0,0) rotate(0)}45%{transform:translate(29px,-24px) rotate(10deg)}100%{transform:translate(58px,0) rotate(0)}}
.pc-passage{display:flex;align-items:center;gap:14px;font:400 15px/20px var(--f-body);color:var(--graphite)}
.pc-passage-cases{display:flex;gap:6px;align-items:flex-end;height:40px;flex:none}
.pc-passage-case{width:52px;height:26px;background:var(--kraft-fonce);border-radius:3px;position:relative}
.pc-saut{position:absolute;left:10px;top:-12px;width:32px;height:20px;background:var(--bristol);border-radius:2px;box-shadow:var(--ombre-fiche);animation:pc-saut .5s cubic-bezier(.3,.7,.4,1) .6s both}

@media (prefers-reduced-motion:reduce){
  .choices:not(:has(.is-bad)) .choice.is-good .t{animation:none}
  .pc-saut{animation:none;transform:translate(58px,0)}
}
/* En Soir, le kraft foncé et le bristol se perdent sur le carton sombre : cases plus claires, fiche cernée */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pc-passage-case{background:var(--action-ombre)}
  :root:not([data-theme="light"]) .pc-saut{box-shadow:inset 0 0 0 1.5px var(--crayon)}}
:root[data-theme="dark"] .pc-passage-case{background:var(--action-ombre)}
:root[data-theme="dark"] .pc-saut{box-shadow:inset 0 0 0 1.5px var(--crayon)}

/* ---------- Étape 4 : accueil et bilan ---------- */

/* Boîte de Leitner (composant Boite du design system), remplie par js/boite.js */
.pc-boite{max-width:480px;background:var(--kraft-fonce);border-radius:var(--rayon-boite);padding:12px 10px 10px;display:flex;flex-direction:column;gap:var(--espace-2);font-family:var(--font-texte)}
.pc-boite-cases,.pc-boite-noms{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.pc-boite-cases{height:118px;align-items:end}
.pc-case{height:100%;background:var(--case);border-radius:var(--rayon-fiche);display:flex;flex-direction:column;justify-content:flex-end;gap:3px;padding:0 5px 4px;box-sizing:border-box}
.pc-case-parcoeur{background:var(--graphite)}
.pc-tranche{display:block;height:7px;border-radius:1px;background:var(--bristol-pale)}
.pc-case-ouverte .pc-tranche{background:var(--bristol)}
.pc-tranche-avancee,.pc-case-ouverte .pc-tranche-avancee{background:var(--surligneur)}
.pc-fiche-sortie{display:block;height:46px;margin-bottom:2px;transform:translateY(-14px);background:var(--bristol);border-radius:2px;box-shadow:var(--ombre-fiche)}
.pc-case-nom{font:400 11.5px/14px var(--font-texte);color:var(--graphite);text-align:center;display:flex;flex-direction:column}
.pc-case-nom-ouverte{font-weight:700}
.pc-case-nom b{font-weight:700}
/* En Soir, les tranches et la fiche du design system (bristol sombre) disparaissent dans les cases : tranches plus claires, fiche cernée */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .pc-tranche{background:var(--action-ombre)}
  :root:not([data-theme="light"]) .pc-case-ouverte .pc-tranche{background:var(--crayon)}
  :root:not([data-theme="light"]) .pc-case-parcoeur .pc-tranche{background:var(--bristol-pale)}
  :root:not([data-theme="light"]) .pc-tranche-avancee,:root:not([data-theme="light"]) .pc-case-ouverte .pc-tranche-avancee,:root:not([data-theme="light"]) .pc-case-parcoeur .pc-tranche-avancee{background:var(--surligneur)}
  :root:not([data-theme="light"]) .pc-fiche-sortie{box-shadow:inset 0 0 0 1.5px var(--crayon),var(--ombre-fiche)}
}
:root[data-theme="dark"] .pc-tranche{background:var(--action-ombre)}
:root[data-theme="dark"] .pc-case-ouverte .pc-tranche{background:var(--crayon)}
:root[data-theme="dark"] .pc-case-parcoeur .pc-tranche{background:var(--bristol-pale)}
:root[data-theme="dark"] .pc-tranche-avancee,:root[data-theme="dark"] .pc-case-ouverte .pc-tranche-avancee,:root[data-theme="dark"] .pc-case-parcoeur .pc-tranche-avancee{background:var(--surligneur)}
:root[data-theme="dark"] .pc-fiche-sortie{box-shadow:inset 0 0 0 1.5px var(--crayon),var(--ombre-fiche)}
.pc-accueil-boite{margin-top:var(--espace-5)}
.pc-accueil-boite h2{margin:0 0 var(--espace-3);font-family:var(--f-display);font-weight:400;font-size:20px;line-height:26px}
.pc-boite-legende{max-width:480px;margin:var(--espace-3) 0 0;font-size:13.5px;line-height:18px;color:var(--crayon)}
.pc-bilan-boite{margin-top:var(--espace-5)}
.pc-bilan-boite .pc-case-nom b{font-size:15px;line-height:20px}

/* Série en bâtons de comptage (composant Serie) : « 4 jours de suite » sur une ligne, sans flamme */
.streak{gap:var(--espace-1);color:var(--graphite)}
.streak svg{margin-right:var(--espace-2);color:var(--graphite)}
.streak.is-off svg{display:none}
.streak b{font-family:var(--f-body);font-size:15px;font-weight:700;line-height:20px}
.streak span{font-size:15px;line-height:20px;color:var(--graphite)}
.streak span br{display:none}

/* Bilan : la note en grand (style « nombre »), le progrès au surligneur, l'objectif du jour sur une fiche */
.score b{font-weight:400;line-height:58px}
.score .sur{font-weight:400}
.delta.up{background:var(--surligneur);color:var(--on-surligneur)}
.jour-bilan,.jour-bilan.ok{border-color:transparent;border-radius:var(--rayon-fiche);box-shadow:var(--ombre-fiche)}

/* ---------- Étape 5 : icônes ---------- */

/* Icônes maison à gauche du libellé (js/boite.js : ICONES_BOUTONS) */
.pc-icone{flex:none;display:block}
.btn.pc-avec-icone{display:inline-flex;align-items:center;justify-content:center;gap:var(--espace-2)}
.link-btn.pc-avec-icone{display:inline-flex;align-items:center;gap:6px;text-align:left}
/* Écritures comptables justes et fausses : coche et croix maison au lieu de ✓ et ✗ */
.jr-tab tr.ok td:first-child::before,.jr-tab tr.ko td:first-child::before{content:"";display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px;background:currentColor;
  -webkit-mask:var(--marque) center/contain no-repeat;mask:var(--marque) center/contain no-repeat}
.jr-tab tr.ok td:first-child::before{--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E")}
.jr-tab tr.ko td:first-child::before{--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}

/* ---------- Étape 6a : emploi du temps, cours du jour, Écrire, Outils, Profil, connexion ---------- */

/* Choix de la matière (cours du jour, ajout d'une colle ou d'un DS) : noms longs sur 2 colonnes, comme « Série à la carte » */
.seg.edt-mats{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}
.seg.edt-mats .opt>span{font-size:15px;line-height:19px}
/* Matières des Outils : plus de bord de couleur, la pastille cochée dit la couleur */
.mat-row{border-left-width:1px;border-left-color:var(--line);border-radius:var(--rayon-fiche)}
/* Retirer un cours de la semaine type : croix maison, cible de 32 px */
.sm-x{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;font-size:0}
.sm-x::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.sm-chip{border-radius:var(--rayon-fiche)}

/* ---------- Étape 6b : exercices, compta, examen blanc, fiche à trous, avec tes mots, oral ---------- */

/* Plus de bords de couleur à gauche : des fiches à bord fin, comme partout ailleurs */
.exo-etape,.missed li,.mine,.aide-ind{border:1px solid var(--line);border-radius:var(--rayon-fiche)}
.exo-etape.ok,.exo-etape.ko{border-left-color:var(--line)}
.mine,.aide-ind{padding:10px 12px}
.feedback,.ec-reglages,.ec-oral{border-radius:var(--rayon-fiche)}
.ec-oral{border-color:var(--line)}
/* Étape d'exercice juste ou fausse : coche ou croix après « Étape 1 sur 4 » (le verdict reste écrit dans l'étape) */
.exo-etape.ok .exo-n::after,.exo-etape.ko .exo-n::after{content:"";display:inline-block;width:13px;height:13px;margin-left:6px;vertical-align:-2px;
  -webkit-mask:var(--marque) center/contain no-repeat;mask:var(--marque) center/contain no-repeat}
.exo-etape.ok .exo-n::after{background:var(--good);--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E")}
.exo-etape.ko .exo-n::after{background:var(--bad);--marque:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}
/* Examen blanc : une question répondue est une case remplie, comme sur une grille de QCM */
.dots button.done{background:var(--action);border-color:var(--action);color:var(--on-action)}
/* Supprimer une ligne d'écriture : même croix maison que la semaine type */
.jr-x{display:inline-flex;align-items:center;justify-content:center;width:36px;font-size:0}
.jr-x::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- Audit téléphone (3/11) ---------- */

/* Sous 16 px, l'iPhone zoome la page quand on touche le champ : cases où l'on colle un texte, choix de la voix */
textarea:not([readonly]),.ec-field select{font-size:16px}
/* Bandeaux de l'accueil : sur un téléphone, les boutons passent sous le texte au lieu de l'écraser en colonne étroite */
@media (max-width:520px){.news{flex-wrap:wrap}.news-body{flex-basis:100%}}
/* Au doigt, 44 px de zone à toucher. Liens : la hauteur elle-même (une zone agrandie en dehors volait le toucher du bouton
   voisin, à 6 px) ; petits boutons et liens légaux : zone agrandie autour, sans changer leur dessin */
@media (pointer:coarse){
  .link-btn{min-height:44px}
  .btn-mini,.liens-legaux a{position:relative}
  .btn-mini::after{content:"";position:absolute;inset:-8px -4px}
  .liens-legaux a::after{content:"";position:absolute;inset:-13px -4px}
}
/* Au doigt, un appui long sur un bouton ne sélectionne pas son texte (les champs et le texte des cours, si) */
@media (pointer:coarse){button,.btn,summary,label.opt{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
