/*
VOICE : joyeux et rassurant pour l'enfant, clair et calme pour le parent
IDEA : un cahier d'aventures, chaque domaine est un monde a explorer
PICTURE : personnages originaux en SVG qui reagissent aux reponses
COLOUR and TYPE : soleil, ciel, corail, menthe sur fond creme; Fredoka (titres) et Nunito (texte)
LAYOUT : grandes tuiles tactiles, boutons epais, une colonne sur telephone
*/
:root {
  color-scheme: light;
  --fond: #FFF8EC;
  --carte: #FFFFFF;
  --encre: #1B1F3B;
  --doux: #5E6386;
  --ligne: #EDE4D3;
  --soleil: #FFC83D; --soleil-f: #E0A500;
  --ciel: #4DA3FF; --ciel-f: #2B7FD9;
  --corail: #FF6B6B; --corail-f: #DB4848;
  --menthe: #2EC4A6; --menthe-f: #169E84;
  --lilas: #A78BFA; --lilas-f: #7F62E0;
  --mandarine: #FF9F43; --mandarine-f: #E07B1A;
  --principal: #2B7FD9; --principal-f: #1C5FAA;
  --vert: #1E9E6A; --vert-pale: #E2F7EE;
  --jaune-pale: #FFF2CC; --brun: #8A5A00;
  --rouge: #D63B3B; --rouge-pale: #FFE7E3;
  --gris-pale: #F3EEE5;
  --r: 22px;
  --titre: "Fredoka", "Baloo 2", system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 500 16px/1.55 "Nunito", system-ui, sans-serif; color: var(--encre);
  background: var(--fond) radial-gradient(circle at 1px 1px, rgba(27, 31, 59, .06) 1.2px, transparent 0) 0 0 / 22px 22px;
}
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0 0 .35em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
a { color: var(--principal); }
.lead { font-size: 1.12rem; color: var(--doux); margin: 0 0 1rem; max-width: 60ch; }
.muet { color: var(--doux); }
.petit-txt { font-size: .92rem; margin: .4rem 0 1rem; }
.chargement { text-align: center; padding: 5rem 1rem; color: var(--doux); font-weight: 700; }
.ico { flex: none; vertical-align: middle; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 16px;
  font: 700 1rem/1 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  background: var(--carte); color: var(--encre); border: 2px solid var(--ligne);
  box-shadow: 0 4px 0 var(--ligne); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ligne); }
.btn.principal { background: var(--principal); border-color: var(--principal); color: #fff; box-shadow: 0 4px 0 var(--principal-f); }
.btn.principal:active { box-shadow: 0 1px 0 var(--principal-f); }
.btn.danger { color: var(--rouge); border-color: #F5C9C3; box-shadow: 0 4px 0 #F5C9C3; }
.btn.blanc { background: #fff; border-color: #fff; color: var(--encre); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.btn.grand { min-height: 56px; padding: 14px 26px; font-size: 1.1rem; border-radius: 18px; }
.btn.petit { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn.plein { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, .choix-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--mandarine); outline-offset: 2px; }
.rangee { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rangee.centre { justify-content: center; }
.rangee.serre { gap: 10px; }
.btn-rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--carte); border: 2px solid var(--ligne); color: var(--doux); text-decoration: none; flex: none; }

/* ---------- En-tete ---------- */
.bandeau-demo { background: var(--jaune-pale); color: var(--brun); text-align: center; font-size: .88rem; font-weight: 700; padding: 8px 16px; }
.haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(4vw, 16px); position: sticky; top: 0; z-index: 5; background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); font: 700 1.45rem var(--titre); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lien-nav { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; color: var(--encre); text-decoration: none; font: 700 .95rem "Nunito", sans-serif; background: none; border: 0; cursor: pointer; min-height: 44px; }
.lien-nav:hover, .lien-nav.actif { background: var(--carte); box-shadow: inset 0 0 0 2px var(--ligne); }
.lien-nav.discret { color: var(--doux); font-size: .9rem; }
.moi { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font: 600 1.3rem var(--titre); }
.compteur-etoiles { display: inline-flex; align-items: center; gap: 6px; background: var(--soleil); color: var(--encre); padding: 8px 14px; border-radius: 999px; font: 700 1.1rem var(--titre); box-shadow: 0 3px 0 var(--soleil-f); }
.compteur-etoiles.pop { animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.25) rotate(-6deg); } }

main.page { max-width: 1120px; margin: 0 auto; padding: 24px max(4vw, 16px) 72px; }
.carte { background: var(--carte); border: 2px solid var(--ligne); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.retour { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.entete-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.entete-page .lead { margin: 0; }
.titre-avatar { display: flex; align-items: center; gap: 14px; }

/* ---------- Accueil public ---------- */
.hero-public { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) max(4vw, 16px); }
.hero-public h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; }
.scene { position: relative; aspect-ratio: 1 / .85; border-radius: 40px; background: linear-gradient(160deg, #DDEEFF, #FFE9C2); overflow: hidden; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .04); }
.flotte { position: absolute; animation: flotter 4s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(27, 31, 59, .15)); }
.flotte svg { width: 100%; height: auto; }
.f1 { left: 8%; top: 12%; width: 24%; animation-delay: -1s; }
.f2 { left: 34%; top: 30%; width: 34%; }
.f3 { right: 6%; top: 10%; width: 26%; animation-delay: -2s; }
.f4 { right: 12%; bottom: 8%; width: 20%; animation-delay: -3s; }
.chiffre { position: absolute; font: 700 clamp(1.6rem, 4vw, 2.6rem) var(--titre); color: #fff; text-shadow: 0 3px 0 rgba(27, 31, 59, .18); animation: flotter 5s ease-in-out infinite; }
.c1 { left: 10%; bottom: 14%; color: var(--corail); } .c2 { left: 46%; top: 8%; color: var(--ciel-f); animation-delay: -2s; }
.c3 { right: 38%; bottom: 10%; color: var(--menthe-f); animation-delay: -1s; } .c4 { left: 24%; top: 58%; color: var(--lilas-f); animation-delay: -3s; }
.c5 { right: 4%; top: 52%; color: var(--mandarine-f); animation-delay: -4s; }
@keyframes flotter { 50% { transform: translateY(-10px); } }
.bande { padding: clamp(36px, 6vw, 72px) max(4vw, 16px); max-width: 1180px; margin: 0 auto; }
.bande.pale { max-width: none; background: #fff; border-block: 2px solid var(--ligne); }
.bande.pale > * { max-width: 1180px; margin-inline: auto; }
.titre-section { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 28px; }
.titre-section.gauche { text-align: left; font-size: 1.6rem; margin: 34px 0 16px; }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.etape { background: var(--carte); border: 2px solid var(--ligne); border-radius: var(--r); padding: 24px; }
.etape p, .atout p { color: var(--doux); margin: 0; }
.num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soleil); font: 700 1.4rem var(--titre); margin-bottom: 12px; box-shadow: 0 4px 0 var(--soleil-f); }
.etape:nth-child(2) .num { background: var(--ciel); color: #fff; box-shadow: 0 4px 0 var(--ciel-f); }
.etape:nth-child(3) .num { background: var(--menthe); color: #fff; box-shadow: 0 4px 0 var(--menthe-f); }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.atout .ico { color: var(--principal); margin-bottom: 8px; }
.atout:nth-child(1) .ico { color: var(--soleil-f); } .atout:nth-child(3) .ico { color: var(--corail); } .atout:nth-child(4) .ico { color: var(--menthe-f); }
.pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px max(4vw, 16px); color: var(--doux); font-size: .9rem; }

/* ---------- Formulaires ---------- */
.auth { display: grid; place-items: center; padding: clamp(24px, 6vw, 64px) 16px; }
.auth-carte { width: min(460px, 100%); text-align: center; }
.auth-perso { margin: -6px auto 6px; animation: flotter 4s ease-in-out infinite; }
.auth-carte .lead { margin-inline: auto; }
.auth-bas { margin-top: 18px; color: var(--doux); font-size: .95rem; }
.formulaire { display: grid; gap: 14px; text-align: left; }
.champ { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
input, select { font: 600 16px "Nunito", sans-serif; padding: 12px 14px; min-height: 48px; border: 2px solid var(--ligne); border-radius: 14px; background: #fff; color: var(--encre); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--principal); box-shadow: 0 0 0 4px rgba(43, 127, 217, .15); }
input:disabled { background: var(--gris-pale); color: var(--doux); }
.err-form { color: var(--rouge); font-weight: 700; margin: 0; min-height: 0; }
.err-form:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.form-enfant { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.apercu { position: sticky; top: 90px; text-align: center; background: linear-gradient(160deg, #E4F1FF, #FFF0D1); }
.apercu svg { animation: flotter 4s ease-in-out infinite; }
.apercu-nom { font: 600 1.6rem var(--titre); margin: 6px 0 0; }
.choix-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tuile input, .pastille-coul input { position: absolute; opacity: 0; pointer-events: none; }
.tuile span { display: grid; place-items: center; aspect-ratio: 1; border: 3px solid var(--ligne); border-radius: 18px; cursor: pointer; background: #fff; transition: transform .1s; }
.tuile span svg { width: 80%; height: auto; }
.tuile input:checked + span { border-color: var(--principal); background: #EAF3FF; transform: scale(1.05); }
.tuile input:focus-visible + span, .pastille-coul input:focus-visible + span { outline: 3px solid var(--mandarine); outline-offset: 2px; }
.choix-couleurs { display: flex; flex-wrap: wrap; gap: 12px; }
.pastille-coul span { display: block; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ligne); }
.pastille-coul input:checked + span { box-shadow: 0 0 0 3px var(--encre); }

/* ---------- Tableau parent ---------- */
.grille-enfants { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.enfant-carte { margin: 0; border-top: 8px solid var(--soleil); }
.enfant-carte.coul-ciel { border-top-color: var(--ciel); } .enfant-carte.coul-corail { border-top-color: var(--corail); }
.enfant-carte.coul-menthe { border-top-color: var(--menthe); } .enfant-carte.coul-lilas { border-top-color: var(--lilas); }
.enfant-carte.coul-mandarine { border-top-color: var(--mandarine); }
.enfant-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.enfant-tete h2 { margin: 0; font-size: 1.6rem; }
.enfant-tete .muet { font-size: .9rem; }
.jauge { height: 12px; background: var(--gris-pale); border-radius: 99px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--vert); border-radius: 99px; transition: width .5s; }
.jauge.claire { background: rgba(255, 255, 255, .35); }
.jauge.claire i { background: #fff; }
.actions-carte { display: flex; justify-content: space-between; gap: 4px; margin-top: 12px; }
.btn-ico { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 8px 4px; border-radius: 12px; color: var(--doux); text-decoration: none; font: 700 .8rem "Nunito", sans-serif; background: none; border: 0; cursor: pointer; min-height: 44px; }
.btn-ico:hover { background: var(--gris-pale); color: var(--encre); }
.btn-ico.danger:hover { background: var(--rouge-pale); color: var(--rouge); }
.enfant-ajout { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; margin: 0; border: 3px dashed var(--ligne); background: transparent; color: var(--doux); text-decoration: none; font: 600 1.2rem var(--titre); }
.enfant-ajout:hover { border-color: var(--principal); color: var(--principal); background: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--carte); border: 2px solid var(--ligne); border-radius: 18px; padding: 16px; }
.kpi b { display: block; font: 700 2.2rem var(--titre); line-height: 1; }
.kpi span { color: var(--doux); font-weight: 700; font-size: .9rem; }
.kpi.st-acquis b { color: var(--vert); } .kpi.st-en_cours b { color: var(--brun); } .kpi.st-a_travailler b { color: var(--rouge); } .kpi.st-a_tester b { color: var(--doux); }
.titre-domaine { display: flex; align-items: center; gap: 10px; }
.titre-domaine.coul-ciel .ico { color: var(--ciel-f); } .titre-domaine.coul-corail .ico { color: var(--corail-f); }
.titre-domaine.coul-menthe .ico { color: var(--menthe-f); } .titre-domaine.coul-lilas .ico { color: var(--lilas-f); }
.defile { overflow-x: auto; }
.tab-notions { width: 100%; border-collapse: collapse; }
.tab-notions th, .tab-notions td { padding: 11px 8px; border-bottom: 1px solid var(--ligne); text-align: left; }
.tab-notions th { font-size: .82rem; color: var(--doux); font-weight: 800; }
.tab-notions tr:last-child td { border-bottom: 0; }
.tab-notions .num { text-align: right; white-space: nowrap; }
.tab-notions small { color: var(--doux); }
.lien { font-weight: 800; text-decoration: none; white-space: nowrap; }
.pastille { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.pastille.st-acquis { background: var(--vert-pale); color: var(--vert); }
.pastille.st-en_cours { background: var(--jaune-pale); color: var(--brun); }
.pastille.st-a_travailler { background: var(--rouge-pale); color: var(--rouge); }
.pastille.st-a_tester { background: var(--gris-pale); color: var(--doux); }
.grille-compte { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grille-compte .carte { margin: 0; }
.zone-danger { margin-top: 20px; border-color: #F5C9C3; }
.zone-danger p { color: var(--doux); }
.vide { text-align: center; }

/* ---------- Espace enfant ---------- */
.accueil-enfant { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); padding: clamp(22px, 4vw, 40px); border-radius: 32px; background: linear-gradient(135deg, var(--soleil), #FFE08A); box-shadow: 0 8px 0 var(--soleil-f); }
.accueil-enfant.coul-ciel { background: linear-gradient(135deg, var(--ciel), #9ACBFF); box-shadow: 0 8px 0 var(--ciel-f); }
.accueil-enfant.coul-corail { background: linear-gradient(135deg, var(--corail), #FFA3A3); box-shadow: 0 8px 0 var(--corail-f); }
.accueil-enfant.coul-menthe { background: linear-gradient(135deg, var(--menthe), #86E5D2); box-shadow: 0 8px 0 var(--menthe-f); }
.accueil-enfant.coul-lilas { background: linear-gradient(135deg, var(--lilas), #CDBEFF); box-shadow: 0 8px 0 var(--lilas-f); }
.accueil-enfant.coul-mandarine { background: linear-gradient(135deg, var(--mandarine), #FFC890); box-shadow: 0 8px 0 var(--mandarine-f); }
.perso-grand { flex: none; animation: flotter 3.5s ease-in-out infinite; }
.perso-grand svg { filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .15)); }
.accueil-texte { flex: 1; }
.accueil-texte h1 { color: var(--encre); margin-bottom: 4px; }
.niveau { font: 600 1.2rem var(--titre); margin: 0 0 8px; }
.barre-niveau { position: relative; height: 26px; background: rgba(255, 255, 255, .5); border-radius: 99px; overflow: hidden; max-width: 420px; margin-bottom: 18px; }
.barre-niveau i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.barre-niveau span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: .9rem; }
.btn.mission { min-height: 64px; padding: 16px 30px; font: 600 1.35rem var(--titre); background: var(--encre); color: #fff; border: 0; border-radius: 22px; box-shadow: 0 6px 0 #000; }
.btn.mission:active { box-shadow: 0 2px 0 #000; }
.mondes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.monde { position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 22px; background: var(--ciel); box-shadow: 0 6px 0 var(--ciel-f); }
.monde.coul-corail { background: var(--corail); box-shadow: 0 6px 0 var(--corail-f); }
.monde.coul-menthe { background: var(--menthe); box-shadow: 0 6px 0 var(--menthe-f); }
.monde.coul-lilas { background: var(--lilas); box-shadow: 0 6px 0 var(--lilas-f); }
.monde::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.monde-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); margin-bottom: 12px; }
.monde h3 { font-size: 1.4rem; }
.monde p { margin: 6px 0 14px; font-weight: 700; opacity: .95; }
.lien-blanc { color: #fff; font-weight: 800; font-size: .9rem; }
.trophees { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.trophee { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; border-radius: 20px; background: var(--gris-pale); color: #B8B0A0; font-weight: 800; font-size: .88rem; border: 2px dashed #DDD3C1; }
.trophee.gagne { background: #fff; color: var(--encre); border: 2px solid var(--soleil); box-shadow: 0 4px 0 var(--soleil); }
.trophee.gagne .ico { color: var(--soleil-f); }

/* ---------- Questions ---------- */
.session { max-width: 760px; margin: 0 auto; }
.session-haut { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.piste { position: relative; flex: 1; height: 16px; background: var(--gris-pale); border-radius: 99px; }
.piste i { display: block; height: 100%; background: linear-gradient(90deg, var(--menthe), var(--ciel)); border-radius: 99px; transition: width .4s; }
.coureur { position: absolute; top: 50%; transform: translate(-50%, -55%); transition: left .4s; }
.compte-q { font: 600 1.1rem var(--titre); color: var(--doux); white-space: nowrap; }
.question { position: relative; overflow: visible; padding: clamp(22px, 4vw, 36px); border-width: 3px; box-shadow: 0 8px 0 var(--ligne); }
.question.coul-ciel { border-color: #BFDDFF; } .question.coul-corail { border-color: #FFC9C9; }
.question.coul-menthe { border-color: #B5EDE1; } .question.coul-lilas { border-color: #DCD1FF; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; background: var(--gris-pale); color: var(--doux); font-size: .9rem; font-weight: 800; }
.enonce { font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 700; }
.gros { display: inline-block; font: 600 clamp(1.8rem, 5vw, 2.4rem) var(--titre); margin-top: 10px; }
.visuel { display: flex; justify-content: center; margin: 20px 0 4px; overflow-x: auto; }
.visuel-svg { max-width: 100%; height: auto; }
.visuel-svg .grille { stroke: #E3DACB; stroke-width: 1; }
.visuel-svg .axe { stroke: var(--encre); stroke-width: 2; }
.visuel-svg .etiq { font: 700 13px "Nunito", sans-serif; fill: var(--doux); }
.visuel-svg .etiq-petit { font: 700 11px "Nunito", sans-serif; fill: var(--doux); }
.visuel-svg .point { fill: var(--corail); stroke: #fff; stroke-width: 3; }
.visuel-svg .plein { fill: var(--ciel); }
.visuel-svg .vide { fill: #E6F2FF; stroke: #BFDDFF; }
.visuel-svg .forme { fill: #FFF2CC; stroke: var(--soleil-f); stroke-width: 3; }
.visuel-svg .trait { stroke: var(--encre); stroke-width: 5; stroke-linecap: round; }
.visuel-svg .marque { fill: none; stroke: var(--corail); stroke-width: 3.5; }
.visuel-svg .barre.b0 { fill: var(--ciel); } .visuel-svg .barre.b1 { fill: var(--corail); }
.visuel-svg .barre.b2 { fill: var(--menthe); } .visuel-svg .barre.b3 { fill: var(--lilas); }
.tab-donnees { border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 1.05rem; border: 2px solid var(--ligne); border-radius: 14px; overflow: hidden; }
.tab-donnees th, .tab-donnees td { padding: 9px 18px; border-bottom: 1px solid var(--ligne); text-align: left; }
.tab-donnees th { background: var(--gris-pale); }
.tab-donnees tr:last-child td { border-bottom: 0; }
.zone-rep { margin-top: 24px; }
.saisie { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.saisie input { width: 200px; min-height: 64px; font: 700 2rem var(--titre); text-align: center; border-width: 3px; border-radius: 18px; }
.unite { font: 600 1.4rem var(--titre); color: var(--doux); }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choix-btn { min-height: 64px; padding: 14px; border-radius: 18px; font: 600 1.3rem var(--titre); cursor: pointer; background: #fff; color: var(--encre); border: 3px solid var(--ligne); box-shadow: 0 5px 0 var(--ligne); transition: transform .08s; }
.choix-btn:hover:not(:disabled) { transform: translateY(-2px); }
.choix-btn.c0:hover:not(:disabled) { border-color: var(--ciel); box-shadow: 0 5px 0 var(--ciel); }
.choix-btn.c1:hover:not(:disabled) { border-color: var(--corail); box-shadow: 0 5px 0 var(--corail); }
.choix-btn.c2:hover:not(:disabled) { border-color: var(--menthe); box-shadow: 0 5px 0 var(--menthe); }
.choix-btn.c3:hover:not(:disabled) { border-color: var(--lilas); box-shadow: 0 5px 0 var(--lilas); }
.choix.grands .choix-btn { font-size: 2.4rem; min-height: 90px; }
.choix-btn:disabled { cursor: default; }
.bon { border-color: var(--vert) !important; background: var(--vert-pale) !important; color: var(--vert) !important; box-shadow: 0 5px 0 var(--vert) !important; }
.mauvais { border-color: var(--rouge) !important; background: var(--rouge-pale) !important; color: var(--rouge) !important; box-shadow: 0 5px 0 var(--rouge) !important; animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.retro { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 18px; border-radius: 20px; animation: monte .3s ease-out; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } }
.retro.ok { background: var(--vert-pale); }
.retro.ko { background: var(--jaune-pale); }
.retro-perso { flex: none; }
.retro-txt strong { font: 600 1.3rem var(--titre); }
.retro.ok strong { color: var(--vert); }
.retro.ko strong { color: var(--brun); }
.retro-txt p { margin: 6px 0 14px; }
.plus-etoile { display: inline-flex; align-items: center; gap: 2px; background: var(--soleil); color: var(--encre); padding: 2px 10px; border-radius: 99px; font-size: 1rem; vertical-align: middle; animation: pop .5s; }
.confettis { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.confettis i { position: absolute; width: 10px; height: 14px; border-radius: 3px; animation: confetti 1.1s ease-out forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Resultats ---------- */
.resultat { position: relative; max-width: 640px; margin: 10px auto; text-align: center; overflow: visible; }
.resultat-perso { animation: flotter 3s ease-in-out infinite; }
.gros-score { font: 700 3.4rem var(--titre); margin: 0; line-height: 1; }
.etoiles-gagnees { display: inline-flex; align-items: center; gap: 6px; background: var(--soleil); padding: 8px 18px; border-radius: 99px; font: 600 1.15rem var(--titre); box-shadow: 0 4px 0 var(--soleil-f); }
.liste-res { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.liste-res li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--ligne); }
.liste-res li span:nth-child(2) { font-weight: 800; }

/* ---------- Dialogue et notifications ---------- */
.voile { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(27, 31, 59, .5); animation: monte .2s; }
.dialogue { width: min(440px, 100%); margin: 0; }
.dialogue p { color: var(--doux); }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 16px; background: var(--encre); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); animation: monte .25s; transition: opacity .4s; }
.toast.succes { background: var(--vert); }
.toast.erreur { background: var(--rouge); }
.toast.sort { opacity: 0; }

@media (max-width: 860px) {
  .hero-public { grid-template-columns: minmax(0, 1fr); }
  .form-enfant { grid-template-columns: minmax(0, 1fr); }
  .apercu { position: static; }
}
@media (max-width: 600px) {
  .nav .lien-nav span { display: none; }
  .logo span { font-size: 1.2rem; }
  .accueil-enfant { flex-direction: column; text-align: center; }
  .barre-niveau { margin-inline: auto; }
  .perso-grand svg { width: 110px; height: 110px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choix-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab-notions th:nth-child(4), .tab-notions td:nth-child(4) { display: none; }
  .retro { flex-direction: column; }
  .saisie input { width: 100%; }
  .entete-page .btn { width: 100%; }
  .enfant-ajout { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Methode et lecons ---------- */
.methode { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pilier { border-radius: var(--r); padding: 22px; color: #fff; }
.pilier b { font: 600 1.5rem var(--titre); }
.pilier p { margin: 8px 0 0; opacity: .95; }
.pilier.p1 { background: var(--ciel); box-shadow: 0 6px 0 var(--ciel-f); }
.pilier.p2 { background: var(--menthe); box-shadow: 0 6px 0 var(--menthe-f); }
.pilier.p3 { background: var(--corail); box-shadow: 0 6px 0 var(--corail-f); }
.pilier.p4 { background: var(--lilas); box-shadow: 0 6px 0 var(--lilas-f); }
.pastille.st-maitrise { background: var(--soleil); color: var(--encre); }
.pastille.st-reviser { background: #E7DEFF; color: #5B3FC4; }
.pastille.st-lecon { background: #E6F2FF; color: var(--ciel-f); }
.puce-revision { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: #fff; font: 800 .85rem "Nunito", sans-serif; vertical-align: middle; }
.tag-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tag-ligne .tag { margin: 0; }
.btn-indice { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 2px solid var(--soleil); background: #FFF7DD; color: var(--brun); font: 800 .9rem "Nunito", sans-serif; cursor: pointer; }
.btn-indice.utilise { background: var(--soleil); }
.btn-indice:disabled { opacity: .5; cursor: default; }
.note-aide { display: block; font: 700 .9rem "Nunito", sans-serif; color: var(--brun); margin-top: 4px; }
.rappel { text-align: left; max-width: 560px; }
.sur-titre { margin: 0 0 6px; font: 800 .82rem "Nunito", sans-serif; text-transform: none; color: var(--doux); letter-spacing: .02em; }
.idee { font: 600 1.2rem/1.35 var(--titre); background: #FFF7DD; border-left: 6px solid var(--soleil); padding: 12px 16px; border-radius: 12px; margin: 6px 0 14px; }
.exemple-mini { background: var(--gris-pale); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.exemple-mini ol { margin: 8px 0 0; padding-left: 20px; }
.texte-lecon { font-size: 1.15rem; font-weight: 700; margin: 4px 0 8px; }
.points-lecon { flex: 1; display: flex; gap: 6px; }
.points-lecon i { flex: 1; height: 12px; border-radius: 99px; background: var(--gris-pale); }
.points-lecon i.fait { background: var(--menthe); }
.points-lecon i.actif { background: var(--ciel); }
.bas-lecon { margin-top: 22px; }
.pas-exemple { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: pas; display: grid; gap: 10px; }
.pas-exemple li { counter-increment: pas; display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; font-weight: 700; background: var(--gris-pale); padding: 12px 14px; border-radius: 14px; animation: monte .3s ease-out; }
.pas-exemple li::before { content: counter(pas); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--menthe); color: #fff; font: 700 1rem var(--titre); }
.bulle-perso { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.bulle-perso p { position: relative; margin: 0; background: #FFF0F0; border: 2px solid #FFC9C9; padding: 14px 16px; border-radius: 18px; font-weight: 800; font-size: 1.1rem; }
.choix.verticaux { grid-template-columns: minmax(0, 1fr); }
.choix.verticaux .choix-btn { font: 700 1.05rem "Nunito", sans-serif; text-align: left; min-height: 56px; }
.fin-lecon { text-align: center; }
.fin-lecon .idee { text-align: left; }
.entete-monde { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.entete-monde h1 { color: #fff; margin: 0; }
.entete-monde p { margin: 4px 0 0; }
.chemin-notions { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; display: grid; gap: 14px; }
.chemin-notions::before { content: ""; position: absolute; left: 44px; top: 20px; bottom: 20px; width: 6px; border-radius: 99px; background: repeating-linear-gradient(var(--ligne) 0 12px, transparent 12px 20px); }
.etape-notion { position: relative; display: flex; align-items: center; gap: 16px; background: var(--carte); border: 2px solid var(--ligne); border-radius: 20px; padding: 14px 16px; }
.etape-notion .rond { flex: none; position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem var(--titre); background: var(--gris-pale); color: var(--doux); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ligne); }
.etape-notion.faite .rond { background: var(--soleil); color: var(--encre); }
.notion-corps { flex: 1; }
.notion-corps h3 { margin: 0 0 6px; }
.notion-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Dessins pedagogiques */
.visuel { flex-wrap: wrap; gap: 12px; }
.visuel-svg .bloc-m rect { fill: #4DA3FF; stroke: #2B7FD9; stroke-width: 1.5; }
.visuel-svg .haut-bloc { fill: #9ACBFF; stroke: #2B7FD9; stroke-width: 1.5; }
.visuel-svg .cote-bloc { fill: #2B7FD9; }
.visuel-svg .bloc-c { fill: #FF9F43; stroke: #E07B1A; stroke-width: 1.5; }
.visuel-svg .bloc-d { fill: #2EC4A6; stroke: #169E84; stroke-width: 1.5; }
.visuel-svg .bloc-u { fill: #FF6B6B; stroke: #DB4848; stroke-width: 1.5; }
.visuel-svg .ligne-bloc { stroke: rgba(255, 255, 255, .6); stroke-width: .8; }
.visuel-svg .bond { fill: none; stroke: var(--corail); stroke-width: 3; stroke-linecap: round; }
.visuel-svg .etiq-bond { font: 800 13px "Nunito", sans-serif; fill: var(--corail-f); }
.visuel-svg .etiq-fraction { font: 700 26px "Fredoka", sans-serif; fill: var(--encre); }
.visuel-svg .sac { fill: #FFF7DD; stroke: var(--soleil-f); stroke-width: 3; }
.visuel-svg .bille { fill: var(--corail); }
.visuel-svg .bille.b2 { fill: var(--ciel); }
.visuel-svg .sac-tissu { fill: #F3E3C7; stroke: #C9A877; stroke-width: 3; }
.visuel-svg .sac-noeud { fill: none; stroke: #C9A877; stroke-width: 4; stroke-linecap: round; }
.visuel-svg .face-av { fill: #9ACBFF; stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.visuel-svg .face-haut { fill: #CFE6FF; stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.visuel-svg .face-cote { fill: #4DA3FF; stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.visuel-svg .arete-arr { fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 5 4; }
.visuel-svg .sommet { fill: var(--corail); stroke: #fff; stroke-width: 2; }
.visuel-svg .lettre { font: 700 130px "Fredoka", sans-serif; fill: var(--ciel); }
.visuel-svg .axe-sym { stroke: var(--corail); stroke-width: 3; stroke-dasharray: 8 6; }
.visuel-svg .grille-forte { stroke: var(--soleil-f); stroke-width: 1.5; }
.visuel-svg .plein-b { fill: var(--menthe); }
.visuel-svg .chemin { fill: none; stroke: var(--ciel); stroke-width: 5; stroke-linecap: round; }
.visuel-svg .chemin.c2 { stroke: var(--menthe); }
.tab-pos { border-collapse: separate; border-spacing: 4px; margin: 4px auto; }
.tab-pos th { font: 800 .75rem "Nunito", sans-serif; padding: 6px 8px; border-radius: 8px; color: #fff; }
.tab-pos td { font: 700 2rem var(--titre); text-align: center; padding: 6px 10px; border-radius: 10px; background: var(--gris-pale); min-width: 70px; }
.tab-pos .p0 { background-color: #4DA3FF; } .tab-pos .p1 { background-color: #FF9F43; } .tab-pos .p2 { background-color: #2EC4A6; } .tab-pos .p3 { background-color: #FF6B6B; }
.tab-pos td.p0, .tab-pos td.p1, .tab-pos td.p2, .tab-pos td.p3 { background: var(--gris-pale); }
.tab-pos td.surligne { background: var(--soleil); box-shadow: 0 0 0 3px var(--soleil-f); }
.colonnes { border-collapse: collapse; margin: 4px auto; font: 600 2rem var(--titre); }
.colonnes td { width: 1.1em; text-align: center; padding: 0 2px; }
.colonnes .retenue td { font-size: 1rem; color: var(--corail); height: 1.2em; }
.colonnes .ligne-op td { border-bottom: 3px solid var(--encre); }
.colonnes .total td { color: var(--vert); }
.escalier { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.escalier span { font: 700 1.6rem var(--titre); background: var(--ciel); color: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 4px 0 var(--ciel-f); }
.escalier i { font-style: normal; font-weight: 800; color: var(--corail-f); }
@media (max-width: 600px) {
  .etape-notion { flex-wrap: wrap; }
  .notion-actions { width: 100%; justify-content: stretch; }
  .notion-actions .btn { flex: 1; }
  .tab-pos td { min-width: 0; font-size: 1.5rem; }
  .tab-pos th { font-size: .65rem; padding: 4px; }
}

/* ---------- Ateliers ---------- */
.atelier { max-width: 980px; margin: 0 auto; }
.depart { display: flex; gap: 20px; align-items: center; }
.depart svg { flex: none; animation: flotter 3.5s ease-in-out infinite; }
.question-depart { font: 600 clamp(1.5rem, 3.5vw, 2rem)/1.2 var(--titre); margin: 4px 0 10px; }
.consigne { font: 600 1.35rem/1.3 var(--titre); margin: 2px 0 16px; }
.zone-moteur { background: #FBF8F2; border: 2px dashed var(--ligne); border-radius: 20px; padding: clamp(12px, 2.5vw, 22px); }
.statut-defi { margin-top: 16px; }
.statut-defi .retro { margin-top: 0; }
.m-btn { min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--ligne); background: #fff; color: var(--encre); font: 800 1rem "Nunito", sans-serif; cursor: pointer; box-shadow: 0 3px 0 var(--ligne); transition: transform .08s; }
.m-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ciel); }
.m-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ligne); }
.m-btn:disabled { opacity: .4; cursor: default; }
.m-btn.accent { background: var(--mandarine); border-color: var(--mandarine); color: #fff; box-shadow: 0 3px 0 var(--mandarine-f); }
.m-btn.doux { background: transparent; box-shadow: none; color: var(--doux); }
.m-ligne-btn { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
.m-ligne-btn.serre { gap: 6px; }
.m-reglage { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: #fff; border: 2px solid var(--ligne); border-radius: 16px; padding: 4px 6px 4px 12px; }
.m-reglage b { font: 700 1.3rem var(--titre); min-width: 1.6em; text-align: center; }
.m-lecture { text-align: center; margin-bottom: 12px; }
.m-lecture b { display: block; font: 700 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--titre); }
.m-lecture span { color: var(--doux); font-weight: 700; }
.m-note { text-align: center; color: var(--doux); font-weight: 700; font-size: .92rem; margin: 10px 0 0; }
.m-question { font-weight: 800; text-align: center; margin: 0 0 8px; }
.m-msg { font-weight: 800; padding: 8px 14px; border-radius: 12px; }
.m-msg.ok { background: var(--vert-pale); color: var(--vert); }
.m-msg.ko { background: var(--jaune-pale); color: var(--brun); }
.m-svg { width: 100%; height: auto; display: block; margin: 0 auto; }
.m-svg.cliquable [data-a] { cursor: pointer; }
.visuel-svg .m-part:hover { opacity: .85; }
.visuel-svg .cible-clic { fill: transparent; }
.visuel-svg .cible-clic:hover { fill: rgba(255, 159, 67, .25); }
.visuel-svg .cible-trait { stroke: transparent; stroke-width: 22; stroke-linecap: round; cursor: pointer; }
.visuel-svg .cible-trait:hover { stroke: rgba(255, 159, 67, .25); }
.visuel-svg .arete { stroke: var(--encre); stroke-width: 3; }
.visuel-svg .arete-touchee { stroke: var(--mandarine); stroke-width: 7; stroke-linecap: round; }
.visuel-svg .sommet-libre { fill: #fff; stroke: var(--encre); stroke-width: 3; }
.visuel-svg .sommet-touche { fill: var(--mandarine); stroke: #fff; stroke-width: 3; }
.visuel-svg .etiq-cible { font: 800 13px "Nunito", sans-serif; fill: var(--corail-f); }
.visuel-svg .case-aire { fill: #E6F2FF; stroke: #9ACBFF; stroke-width: 1.5; }
.visuel-svg .contour { fill: none; stroke: var(--ciel-f); stroke-width: 3; }
.visuel-svg .tour-rect { fill: #FFF7DD; stroke: var(--mandarine); stroke-width: 6; stroke-linejoin: round; }
.visuel-svg .repere { fill: var(--mandarine-f); }
.visuel-svg .bras { stroke: var(--ciel-f); }
.visuel-svg .coin-feuille { fill: rgba(255, 200, 61, .25); stroke: var(--soleil-f); stroke-width: 2; stroke-dasharray: 6 4; }
/* blocs */
.m-bacs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.m-bac { background: #fff; border: 2px solid var(--ligne); border-radius: 16px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.m-bac.trop { border-color: var(--corail); background: #FFF4F2; }
.m-bac-titre { margin: 0; font-weight: 800; font-size: .85rem; color: var(--doux); }
.m-pile { flex: 1; min-height: 70px; display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-end; justify-content: center; padding: 6px 0; }
.m-pile em { font-style: normal; font-weight: 800; color: var(--doux); align-self: center; }
.bl { display: block; border-radius: 2px; }
.bl-m { width: 30px; height: 30px; background: #4DA3FF; box-shadow: 3px -3px 0 #2B7FD9; border-radius: 3px; }
.bl-c { width: 26px; height: 26px; background: #FF9F43 repeating-linear-gradient(90deg, transparent 0 2.2px, rgba(255, 255, 255, .5) 2.2px 2.6px), #FF9F43; border: 1px solid #E07B1A; }
.bl-d { width: 7px; height: 30px; background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 2.6px, rgba(255, 255, 255, .55) 2.6px 3px); border: 1px solid #169E84; }
.bl-u { width: 9px; height: 9px; background: #FF6B6B; border: 1px solid #DB4848; }
.m-compte { margin: 2px 0; font: 700 1.6rem var(--titre); }
.m-bac.trop .m-compte { color: var(--corail-f); }
.m-ctrl { display: flex; gap: 6px; justify-content: center; align-items: center; }
.m-echanges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.m-echanges:empty { display: none; }
/* comparer */
.m-compare { margin: 0 auto; border-collapse: separate; border-spacing: 6px; }
.m-compare th { font-size: .78rem; color: var(--doux); font-weight: 800; }
.m-compare .m-nom { font: 700 1.1rem var(--titre); color: var(--encre); text-align: right; padding-right: 8px; }
.m-compare td { width: 64px; height: 56px; text-align: center; font: 700 1.8rem var(--titre); border-radius: 12px; background: var(--gris-pale); }
.m-compare td.cache { color: #C9C0B0; }
.m-compare td.vu { background: #E6F2FF; }
.m-compare td.diff { background: var(--soleil); box-shadow: 0 0 0 3px var(--soleil-f); }
/* groupes */
.m-sacs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0; }
.m-sac { width: 92px; min-height: 92px; border-radius: 50%; background: #FFF7DD; border: 3px solid var(--soleil-f); display: flex; flex-wrap: wrap; gap: 4px; align-content: center; justify-content: center; padding: 14px; }
.m-sac.vide { border-style: dashed; background: transparent; }
.m-sac i, .m-pile-billes i { width: 14px; height: 14px; border-radius: 50%; background: var(--corail); display: block; }
.m-pile-billes { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 360px; margin: 0 auto 10px; }
.m-rangees { display: grid; gap: 8px; justify-content: center; margin: 8px 0; }
.m-rangees i { width: 22px; height: 22px; border-radius: 50%; background: var(--ciel); display: block; animation: monte .25s; }
.m-rangees i.r2 { background: var(--corail); }
/* patron, symetrie */
.m-patron { display: grid; gap: 4px; max-width: 330px; margin: 0 auto; }
.m-case { aspect-ratio: 1; border-radius: 6px; border: 2px solid #E3DACB; background: #fff; cursor: pointer; padding: 0; min-height: 36px; }
.m-case.on { background: var(--ciel); border-color: var(--ciel-f); }
.m-miroir { display: grid; gap: 4px; max-width: 420px; margin: 0 auto; }
.m-axe { background: var(--corail); border-radius: 4px; grid-row: span 1; }
.m-case.g.on { background: var(--menthe); border-color: var(--menthe-f); }
.m-case.fixe { cursor: default; }
.m-case.fixe:not(.on) { background: #F6F2EA; }
/* tri */
.m-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 52px; }
.m-item { min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--ligne); background: #fff; font: 800 1rem "Nunito", sans-serif; color: var(--encre); cursor: pointer; box-shadow: 0 3px 0 var(--ligne); }
.m-item.sel { border-color: var(--mandarine); background: #FFF0E0; transform: translateY(-3px); }
.m-bacs-tri { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.m-bac-tri { min-height: 120px; border-radius: 18px; border: 3px dashed var(--ciel); background: #F2F8FF; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: var(--encre); }
.m-bac-tri b { font: 600 1.15rem var(--titre); }
.m-bac-tri span { display: flex; flex-wrap: wrap; gap: 4px; }
.m-bac-tri em { font-style: normal; font-size: .85rem; font-weight: 800; background: #fff; border-radius: 99px; padding: 3px 10px; }
/* quadri */
.m-filtres { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.m-filtre { min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--ligne); background: #fff; font: 800 .95rem "Nunito", sans-serif; cursor: pointer; color: var(--encre); }
.m-filtre.on { background: var(--ciel); border-color: var(--ciel-f); color: #fff; }
.m-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.m-fig { text-align: center; border-radius: 16px; padding: 8px; background: #fff; border: 2px solid var(--ligne); transition: opacity .2s, transform .2s; font-weight: 800; }
.m-fig.gardee { border-color: var(--soleil-f); box-shadow: 0 4px 0 var(--soleil); }
.m-fig.eteinte { opacity: .25; transform: scale(.95); }
/* tour, sac, sondage, metres, magasin */
.m-tour { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; margin: 8px 0; }
.m-etage { display: flex; gap: 3px; }
.m-etage i { width: 30px; height: 30px; border-radius: 4px; background: var(--menthe); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .12); display: block; }
.m-etage.e2 i { background: var(--ciel); }
.m-sac-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.m-tirages { background: #fff; border-radius: 16px; padding: 14px; border: 2px solid var(--ligne); }
.m-barre-tir { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.m-barre-tir span { height: 22px; border-radius: 99px; min-width: 4px; transition: width .3s; flex: none; max-width: 70%; }
.pastille-bille { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none; }
.m-sondage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.m-sondage .tab-donnees { margin: 0; }
.m-sondage .m-ctrl { gap: 4px; }
.m-sondage .m-btn { min-height: 36px; min-width: 36px; padding: 4px 10px; }
.m-metres { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.m-metre { position: relative; height: 34px; border-radius: 8px; background: var(--soleil); border: 2px solid var(--soleil-f); }
.m-metre span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: .8rem; background: rgba(255, 255, 255, .8); padding: 0 6px; border-radius: 6px; }
.m-metre.vue-dm { background: repeating-linear-gradient(90deg, var(--soleil) 0 calc(10% - 2px), var(--encre) calc(10% - 2px) 10%); }
.m-metre.vue-cm { background: repeating-linear-gradient(90deg, var(--soleil) 0 calc(1% - 1px), rgba(27, 31, 59, .55) calc(1% - 1px) 1%); }
.m-magasin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.m-rayons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-article { background: #fff; border: 2px solid var(--ligne); border-radius: 16px; padding: 12px; text-align: center; display: grid; gap: 6px; }
.m-article b { font: 600 1.15rem var(--titre); }
.m-prix { font: 700 1.4rem var(--titre); color: var(--vert); }
.m-ticket { background: #fff; border: 2px dashed var(--doux); border-radius: 12px; padding: 14px; font-weight: 700; }
.m-ticket ol { padding-left: 18px; margin: 6px 0; }
.m-compte-inline { font-weight: 800; }
@media (max-width: 700px) {
  .m-sac-zone, .m-sondage, .m-magasin { grid-template-columns: minmax(0, 1fr); }
  .depart { flex-direction: column; text-align: center; }
  .m-compare td { width: 48px; height: 46px; font-size: 1.4rem; }
}
.m-fig span { display: block; font-size: .82rem; overflow-wrap: anywhere; }

/* ---------- Coach, voix, sons ---------- */
.ligne-ecoute { display: flex; align-items: flex-start; gap: 10px; }
.ligne-ecoute > :first-child { flex: 1; }
.btn-ecouter { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #BFDDFF; background: #EAF4FF; color: var(--ciel-f); cursor: pointer; }
.btn-ecouter:hover { background: var(--ciel); color: #fff; }
.btn-bascule { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 10px; border-radius: 99px; border: 2px solid var(--ligne); background: #fff; color: var(--doux); font: 800 .85rem "Nunito", sans-serif; cursor: pointer; }
.btn-bascule.on { background: var(--menthe); border-color: var(--menthe-f); color: #fff; }
.coach { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 12px; }
.coach .avatar-svg { flex: none; }
.coach.parle .avatar-svg { animation: hop .45s; }
@keyframes hop { 40% { transform: translateY(-8px) rotate(-4deg); } }
.coach-bulle { position: relative; flex: 1; background: #FFF7DD; border: 2px solid var(--soleil); border-radius: 18px 18px 18px 4px; padding: 10px 14px; }
.coach-bulle p { margin: 0; font-weight: 800; font-size: 1.02rem; line-height: 1.4; }
.coach.parle .coach-bulle { animation: monte .3s ease-out; }
.btn-indice-coach { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 2px solid var(--soleil-f); background: #fff; color: var(--brun); font: 800 .9rem "Nunito", sans-serif; cursor: pointer; }
.btn-indice-coach.apparait { animation: pop .5s; }
/* L'element a essayer : halo pulsant et petite main */
.pulse { position: relative; animation: halo 1.4s ease-in-out infinite; z-index: 1; }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, .7); } 50% { box-shadow: 0 0 0 8px rgba(255, 159, 67, 0); } }
button.pulse::after { content: ""; position: absolute; right: -10px; bottom: -14px; width: 26px; height: 26px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V11m0-1a1.5 1.5 0 0 1 3 0v4.5c0 3.5-2.5 6.5-6 6.5h-1c-2.2 0-3.6-1-4.8-2.6L3.6 14.6a1.5 1.5 0 0 1 2.3-1.9L9 15' fill='%23fff' stroke='%231B1F3B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: tape 1.4s ease-in-out infinite; }
@keyframes tape { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -6px); } }
.visuel-svg .pulse { animation: none; filter: drop-shadow(0 0 6px rgba(255, 159, 67, .9)); }
i.bl.pulse { animation: halo 1.4s ease-in-out infinite; }
.bl.touchable { cursor: pointer; }
.bl.touchable:hover { transform: translateY(-2px); }
.bl.glow { outline: 2px solid var(--soleil); outline-offset: 1px; animation: brille 1.2s ease-in-out infinite; }
@keyframes brille { 50% { outline-color: var(--mandarine); transform: translateY(-2px); } }
.m-bacs-tri.attente .m-bac-tri { animation: halo 1.4s ease-in-out infinite; border-style: solid; }
.visuel-svg .etiq-grand { font: 800 16px "Nunito", sans-serif; fill: var(--encre); }
.visuel-svg .drapeau { fill: var(--corail); }
.visuel-svg .drapeau-mat { stroke: var(--encre); stroke-width: 2; }
.m-sondage .tab-donnees { width: 100%; }
.m-sondage .tab-donnees th, .m-sondage .tab-donnees td { padding: 6px 8px; }
@media (max-width: 600px) {
  .m-bac { padding: 6px 4px; border-radius: 12px; }
  .m-bac-titre { font-size: .7rem; }
  .m-pile { min-height: 56px; gap: 2px; }
  .bl-m { width: 18px; height: 18px; box-shadow: 2px -2px 0 #2B7FD9; }
  .bl-c { width: 17px; height: 17px; }
  .bl-d { width: 5px; height: 20px; }
  .bl-u { width: 7px; height: 7px; }
  .m-compte { font-size: 1.3rem; }
  .m-ctrl .m-btn { min-width: 36px; min-height: 40px; padding: 4px 8px; }
  .m-echanges .m-btn { width: 100%; }
  .coach .avatar-svg { width: 42px; height: 42px; }
  .coach-bulle p { font-size: .95rem; }
  .btn-bascule span { display: none; }
  .haut.enfant .lien-nav.discret { padding: 6px; font-size: .8rem; }
}
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .haut.enfant { flex-wrap: nowrap; }
  .haut.enfant .nav { flex-wrap: nowrap; gap: 4px; }
  .haut.enfant .lien-nav.discret span { display: none; }
  .moi { font-size: 1.1rem; gap: 6px; }
  .moi svg { width: 36px; height: 36px; }
  .compteur-etoiles { padding: 6px 10px; font-size: 1rem; }
}

/* ---------- Atelier guide (Regarde, Ensemble, A toi) ---------- */
.guide { max-width: 760px; margin: 0 auto; }
.guide-scene { text-align: center; padding: clamp(16px, 3vw, 28px); border-width: 3px; }
.guide-etape { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 99px; background: var(--encre); color: #fff; font: 600 1rem var(--titre); }
.guide-perso { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 14px; }
.guide-perso #g-avatar { flex: none; }
.guide-perso #g-avatar svg { animation: flotter 3.5s ease-in-out infinite; }
.guide-bulle { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; background: #FFF7DD; border: 3px solid var(--soleil); border-radius: 22px 22px 22px 6px; padding: 12px 14px; min-height: 76px; }
.guide-bulle p { flex: 1; margin: 0; font: 600 clamp(1.15rem, 3.2vw, 1.4rem)/1.3 var(--titre); }
.guide-bulle.parle { animation: monte .3s ease-out; }
.g-compteur { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: var(--mandarine); color: #fff; font-size: .95rem; }
.guide-titre { font: 700 clamp(2rem, 7vw, 2.8rem) var(--titre); margin: 0; color: var(--ciel-f); }
.guide-nombre { font: 700 clamp(2.6rem, 9vw, 3.6rem)/1 var(--titre); margin: 4px 0 12px; min-height: 1em; }
.guide-bacs { display: grid; gap: 12px; }
.g-bac { position: relative; border-radius: 22px; padding: 12px 8px 14px; background: #fff; border: 3px solid var(--ligne); min-height: 210px; display: flex; flex-direction: column; transition: opacity .25s, transform .25s; }
.g-bac.actif { border-color: var(--mandarine); background: #FFF6EC; cursor: pointer; animation: halo 1.4s ease-in-out infinite; }
.g-bac.actif:active { transform: scale(.98); }
.g-bac.eteint { opacity: .45; }
.g-bac.montre { border-color: var(--corail); box-shadow: 0 0 0 6px rgba(255, 107, 107, .25); }
.g-bac.trop .g-compte { color: var(--corail-f); }
.g-bac-nom { margin: 0; font: 600 1.15rem var(--titre); color: var(--doux); }
.g-pile { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-end; justify-content: center; padding: 10px 4px; min-height: 120px; }
.g-compte { font: 700 2.2rem var(--titre); }
.g-toucher { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; background: var(--mandarine); color: #fff; font: 800 .85rem "Nunito", sans-serif; white-space: nowrap; animation: tape 1.4s ease-in-out infinite; }
.gb { display: block; border-radius: 3px; }
.gb-u { width: 22px; height: 22px; background: #FF6B6B; border: 2px solid #DB4848; }
.gb-d { width: 14px; height: 100px; background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, .55) 8px 10px); border: 2px solid #169E84; }
.gb-c { width: 60px; height: 60px; background: #FF9F43; border: 2px solid #E07B1A; }
.gb.glow { outline: 3px solid var(--soleil); outline-offset: 2px; cursor: pointer; animation: brille 1s ease-in-out infinite; }
.g-calque { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.g-calque .vol { position: fixed; margin: 0; }
.g-calque .gb-d.grand { background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 calc(10% - 2px), rgba(255, 255, 255, .55) calc(10% - 2px) 10%); }
.guide-ajout { margin-top: 26px; padding: 10px; border-radius: 16px; background: #F2F8FF; border: 2px dashed var(--ciel); }
.guide-ajout p { margin: 0 0 6px; font-weight: 800; color: var(--doux); }
.guide-ajout > div { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.g-a-ajouter { display: inline-flex; align-items: flex-end; gap: 3px; }
.g-a-ajouter .gb-d { height: 50px; width: 9px; }
.g-a-ajouter .gb-u { width: 13px; height: 13px; }
.g-a-ajouter b { margin-left: 6px; font-size: .9rem; }
.guide-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.guide-actions:empty { margin: 0; }
.g-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.g-choix .choix-btn { font-size: 1.8rem; min-height: 72px; }
.g-choix.vertical { grid-template-columns: minmax(0, 1fr); }
.g-choix.vertical .choix-btn { font: 700 1.05rem "Nunito", sans-serif; text-align: left; }
@media (max-width: 600px) {
  .guide-perso #g-avatar svg { width: 60px; height: 60px; }
  .g-bac { min-height: 180px; }
  .gb-u { width: 18px; height: 18px; }
  .gb-d { width: 12px; height: 84px; }
}

/* ---------- Guide visuel : cartes en images et main animee ---------- */
.guide-scene { position: relative; }
.guide-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.guide-etape { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.v-carte { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-radius: 22px; background: #FFF7DD; border: 3px solid var(--soleil); margin-bottom: 8px; }
.v-n { font: 700 clamp(2rem, 7vw, 2.8rem)/1 var(--titre); }
.v-op { font: 700 clamp(1.8rem, 6vw, 2.4rem)/1 var(--titre); color: var(--mandarine-f); }
.v-u, .v-d { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: flex-end; max-width: 150px; justify-content: center; }
.v-u i { width: 16px; height: 16px; border-radius: 3px; background: #FF6B6B; border: 2px solid #DB4848; display: block; }
.v-d i { width: 11px; height: 54px; border-radius: 3px; background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, .55) 4px 5.4px); border: 2px solid #169E84; display: block; }
.v-q { font: 700 2.4rem var(--titre); color: var(--doux); width: 48px; height: 54px; align-items: center; border: 3px dashed var(--doux); border-radius: 12px; }
.v-alerte { font: 700 1.5rem var(--titre); color: #fff; background: var(--corail); padding: 6px 14px; border-radius: 99px; animation: pop .5s; }
.v-ok { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--vert); color: #fff; animation: pop .5s; }
.v-pastilles { display: inline-flex; gap: 8px; width: 100%; justify-content: center; }
.v-pastilles i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #DB4848; background: #fff; display: block; transition: background .2s; }
.v-pastilles i.on { background: #FF6B6B; animation: pop .35s; }
.v-trophee { width: 100%; color: var(--soleil-f); animation: pop .6s; }
.g-bac-nom { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.g-bac-nom .v-u i { width: 14px; height: 14px; }
.g-bac-nom .v-d i { height: 28px; width: 9px; }
.g-trop { position: absolute; top: 8px; right: 8px; color: var(--corail-f); animation: pop .5s; }
.g-main { position: absolute; z-index: 30; width: 48px; height: 48px; pointer-events: none; transition: left .45s ease, top .45s ease; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V11m0-1a1.5 1.5 0 0 1 3 0v4.5c0 3.5-2.5 6.5-6 6.5h-1c-2.2 0-3.6-1-4.8-2.6L3.6 14.6a1.5 1.5 0 0 1 2.3-1.9L9 15' fill='%23fff' stroke='%231B1F3B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: pointe 1.2s ease-in-out infinite; }
@keyframes pointe { 0%, 100% { margin-top: 0; } 50% { margin-top: 10px; } }
.g-main[hidden] { display: none !important; }
.guide-ajout { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.g-plateau-ico { color: var(--ciel-f); }
.g-a-ajouter .v-d i { height: 42px; }
.v-choix { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 90px; }
.v-choix .v-n, .v-choix .v-op { font-size: 2rem; }
.guide-actions .btn.principal.grand:only-child { min-width: 140px; }
@media (max-width: 600px) {
  .v-carte { gap: 8px; padding: 10px; min-height: 80px; }
  .v-u { max-width: 110px; }
  .v-u i { width: 13px; height: 13px; }
  .v-d i { height: 44px; width: 9px; }
}

/* ---------- Parcours : echelle de comprehension ---------- */
.parcours { max-width: 820px; }
.echelle { flex: 1; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.echelle li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: var(--gris-pale); color: #B9B1A3; font-weight: 800; font-size: .68rem; text-align: center; line-height: 1.1; }
.echelle li.fait { background: var(--vert-pale); color: var(--vert); }
.echelle li.actif { background: var(--encre); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 0 #000; }
.v-t { font: 700 clamp(1.05rem, 3vw, 1.3rem)/1.3 "Nunito", sans-serif; max-width: 34ch; }
.v-f { display: inline-flex; gap: 2px; height: 34px; }
.v-f i { width: 22px; border-radius: 4px; background: #E6F2FF; border: 2px solid #9ACBFF; display: block; }
.v-f i.on { background: var(--ciel); border-color: var(--ciel-f); }
.v-c i { width: 30px; height: 30px; border-radius: 3px; background: #FF9F43; border: 2px solid #E07B1A; display: block; }
.v-m i { width: 30px; height: 30px; border-radius: 4px; background: #4DA3FF; box-shadow: 3px -3px 0 #2B7FD9; display: block; }
.v-c, .v-m { display: inline-flex; flex-wrap: wrap; gap: 5px; max-width: 170px; justify-content: center; }
.p-zone { margin-top: 8px; transition: opacity .2s; }
.p-zone.bloque { pointer-events: none; }
.p-zone .zone-moteur { border-style: solid; }
.v-col { border-collapse: collapse; font: 700 2.4rem var(--titre); }
.v-col td { width: 1.2em; text-align: center; }
.v-col .r td { font-size: 1.2rem; color: var(--corail); }
.v-col .o td { border-bottom: 4px solid var(--encre); }
.v-col .t td { color: var(--vert); }
.v-choix .v-t { font-size: 1rem; }
@media (max-width: 600px) {
  .echelle li span { display: none; }
  .echelle li { padding: 7px 0; }
  .v-c i, .v-m i { width: 20px; height: 20px; }
}

/* ---------- Jeux ---------- */
.jeux-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.jeu-tuile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 24px; background: var(--ciel); color: #fff; text-decoration: none; box-shadow: 0 6px 0 var(--ciel-f); }
.jeu-tuile:hover { transform: translateY(-2px); }
.jeu-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none; }
.jeu-info { flex: 1; display: grid; }
.jeu-info b { font: 600 1.4rem var(--titre); }
.jeu-info span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.btn-jeu { background: var(--ciel); border-color: var(--ciel); color: #fff; box-shadow: 0 4px 0 var(--ciel-f); }
.jeu { max-width: 720px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
/* carte des niveaux */
.j-carte-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.j-titre-ico svg { width: 120px; height: auto; }
.j-total { display: inline-flex; align-items: center; gap: 6px; background: var(--soleil); padding: 8px 16px; border-radius: 99px; font: 600 1.2rem var(--titre); box-shadow: 0 4px 0 var(--soleil-f); }
.j-chemin { list-style: none; margin: 0; padding: 10px 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
.j-chemin li { display: flex; justify-content: center; }
.j-noeud { width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--ciel); color: #fff; display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; box-shadow: 0 7px 0 var(--ciel-f); font: inherit; }
.j-noeud b { font: 700 2rem/1 var(--titre); }
.j-noeud.fait { background: var(--menthe); box-shadow: 0 7px 0 var(--menthe-f); }
.j-noeud.suivant { animation: halo 1.4s ease-in-out infinite; background: var(--mandarine); box-shadow: 0 7px 0 var(--mandarine-f); }
.j-noeud.ferme { background: #E8E1D6; color: #B7AE9F; box-shadow: 0 7px 0 #D6CDBF; cursor: default; }
.j-etoiles { display: flex; gap: 2px; }
.j-etoiles i, .j-essais i, .j-grosses-etoiles i { display: block; width: 14px; height: 14px; background: rgba(255, 255, 255, .35); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.j-etoiles i.on, .j-essais i.on { background: var(--soleil); }
.j-parent { background: #fff; border: 2px solid var(--ligne); border-radius: 20px; padding: 16px 18px; }
.j-parent-titre { display: flex; align-items: center; gap: 8px; font: 600 1.15rem var(--titre); margin: 0 0 6px; color: var(--brun); }
.j-parent p { margin: 6px 0; }
/* niveau */
.j-niveau { position: relative; touch-action: none; }
.j-barre { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.j-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--encre); color: #fff; font: 700 1.4rem var(--titre); }
.j-essais { display: flex; gap: 4px; margin-left: auto; }
.j-essais i { width: 26px; height: 26px; background: #E8E1D6; }
.j-route { position: relative; height: 190px; border-radius: 22px; background: linear-gradient(#DDEEFF 0 70%, #C9C2B4 70% 72%, #E8E1D6 72%); overflow: hidden; }
.j-camion { position: absolute; left: 50%; top: 18px; width: min(360px, 92%); transform: translateX(-50%); }
.j-camion-svg { width: 100%; height: auto; display: block; }
.j-camion.survol .j-soute { box-shadow: 0 0 0 4px var(--mandarine); background: #FFF6EC; }
.j-soute { position: absolute; left: 3.5%; top: 15%; width: 63%; height: 60%; border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 6px; flex-wrap: nowrap; transition: background .2s; }
.j-case { display: block; border: 2.5px dashed #9C9385; border-radius: 3px; }
.j-case.d { width: 12px; height: 74px; }
.j-case.u { width: 16px; height: 16px; }
.j-case.pleine.d { background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, .55) 6px 7.4px); border: 2px solid #169E84; }
.j-case.pleine.u { background: #FF6B6B; border: 2px solid #DB4848; }
.j-cases-u { display: flex; flex-wrap: wrap; gap: 3px; max-width: 110px; align-content: flex-end; justify-content: center; }
.j-charge { display: flex; flex-wrap: wrap; gap: 3px; align-items: flex-end; justify-content: center; max-width: 80%; }
.j-charge .jb.d { height: 60px; width: 10px; }
.j-charge .jb.u { width: 13px; height: 13px; }
.j-compteur { position: absolute; top: 4px; right: 6px; font: 700 1.2rem var(--titre); color: var(--doux); }
.j-etiquette { position: absolute; top: -6px; right: 4%; background: var(--encre); color: #fff; font: 700 1.6rem var(--titre); padding: 4px 14px; border-radius: 14px; box-shadow: 0 4px 0 #000; }
.j-etiquette.stock { top: -18px; right: 10px; background: var(--vert); box-shadow: 0 4px 0 #116B47; }
.j-milieu { display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 20px; margin: 14px 0; flex-wrap: wrap; }
.j-machine { width: 130px; padding: 6px; border-radius: 22px; transition: transform .15s, background .2s; }
.j-machine.survol { background: #FFE9D2; transform: scale(1.08); box-shadow: 0 0 0 4px var(--mandarine); }
.j-machine-svg { width: 100%; height: auto; display: block; }
.j-colonnes table { border-collapse: collapse; font: 700 2.2rem var(--titre); }
.j-colonnes td { width: 1.6em; text-align: center; padding: 0 2px; }
.j-colonnes .r td { font-size: 1.1rem; color: var(--corail); height: 1.3em; }
.j-colonnes .barre { text-decoration: line-through; text-decoration-color: var(--corail); text-decoration-thickness: 3px; color: var(--doux); }
.j-colonnes .o td { border-bottom: 4px solid var(--encre); }
.j-colonnes .t td { color: var(--vert); height: 1.2em; }
.j-colonnes .moins { margin-right: 4px; }
.j-stock { position: relative; background: #8B5E3C; border-radius: 20px; padding: 16px 12px 12px; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .2); }
.j-tablette { min-height: 92px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; justify-content: center; padding: 8px; background: #A87648; border-radius: 12px; }
.j-tablette.u { min-height: 70px; margin-top: 10px; }
.jb { display: block; border-radius: 4px; }
.jb.d { width: 18px; height: 84px; background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 calc(10% - 2px), rgba(255, 255, 255, .55) calc(10% - 2px) 10%); border: 2px solid #169E84; }
.jb.u { width: 26px; height: 26px; background: #FF6B6B; border: 2px solid #DB4848; }
.piece { cursor: grab; touch-action: none; transition: transform .1s; }
.piece:hover { transform: translateY(-3px); }
.piece.prise { opacity: .25; }
.fantome { position: fixed; z-index: 60; pointer-events: none; margin: 0; transform: scale(1.12); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .3)); }
.j-main-demo { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; }
.j-main-demo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V11m0-1a1.5 1.5 0 0 1 3 0v4.5c0 3.5-2.5 6.5-6 6.5h-1c-2.2 0-3.6-1-4.8-2.6L3.6 14.6a1.5 1.5 0 0 1 2.3-1.9L9 15' fill='%23fff' stroke='%231B1F3B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.demo-bloc { opacity: .75; }
.j-devine { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; padding: 10px; border-radius: 18px; background: #FFF7DD; border: 3px solid var(--soleil); }
.j-devine b { font: 700 2rem var(--titre); }
.j-devine .j-choix { display: flex; gap: 8px; }
.j-devine .choix-btn { min-width: 74px; font-size: 1.6rem; }
.j-devine:not(.actif) .choix-btn { opacity: .4; pointer-events: none; }
.j-devine.actif { animation: halo 1.4s ease-in-out 3; }
.j-fin { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(255, 248, 236, .85); border-radius: 22px; }
.j-fin-carte { position: relative; background: #fff; border: 3px solid var(--ligne); border-radius: 28px; padding: 24px 28px; text-align: center; box-shadow: 0 10px 0 var(--ligne); animation: pop .5s; }
.j-grosses-etoiles { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.j-grosses-etoiles i { width: 58px; height: 58px; background: #E8E1D6; animation: pop .5s both; }
.j-grosses-etoiles i.on { background: var(--soleil); }
.j-eq { font: 700 2.4rem var(--titre); margin: 6px 0 14px; }
.j-reste { display: flex; gap: 5px; align-items: flex-end; justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; max-width: 260px; }
.j-reste .jb.d { height: 60px; width: 13px; }
.j-reste .jb.u { width: 18px; height: 18px; }
.j-fin-btns { display: flex; gap: 12px; justify-content: center; }
@media (max-width: 600px) {
  .j-noeud { width: 76px; height: 76px; }
  .j-route { height: 160px; }
  .jb.d { width: 15px; height: 70px; }
  .jb.u { width: 22px; height: 22px; }
  .j-case.d { height: 58px; width: 10px; }
  .j-case.u { width: 13px; height: 13px; }
  .j-machine { width: 104px; }
}
.j-case { border-width: 3px; }
.j-case.u { width: 24px; height: 24px; border-color: #FF8A8A; background: rgba(255, 107, 107, .08); }
.j-case.d { width: 15px; height: 82px; border-color: #5ED6BE; background: rgba(46, 196, 166, .08); }
.j-case:not(.pleine) { animation: attente 1.6s ease-in-out infinite; }
@keyframes attente { 50% { transform: translateY(-3px); } }
.j-cases-u { max-width: 150px; gap: 4px; }
@media (max-width: 600px) { .j-case.u { width: 19px; height: 19px; } .j-case.d { width: 12px; height: 64px; } }

/* ---------- Jeu : design ludique ---------- */
.j-carte-tete { gap: 10px; }
.j-bouton-rond { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--encre); box-shadow: 0 5px 0 var(--ligne), inset 0 0 0 3px var(--ligne); cursor: pointer; }
.j-bouton-rond.accent { background: var(--mandarine); color: #fff; box-shadow: 0 5px 0 var(--mandarine-f); animation: halo 1.6s ease-in-out infinite; }
.j-bouton-rond.ferme { color: #B7AE9F; cursor: default; }
.j-bouton-rond:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ligne); }
.j-paysage { position: relative; background: linear-gradient(#E7F4FF, #F2FBEF); border-radius: 28px; padding: 14px 8px 8px; border: 3px solid #fff; box-shadow: 0 6px 0 var(--ligne); }
.j-route-carte { position: absolute; left: 8px; top: 14px; pointer-events: none; overflow: visible; }
.j-route-fond { fill: none; stroke: #C9C2B4; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.j-route-ligne { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 12 12; stroke-linecap: round; stroke-linejoin: round; }
.j-chemin { position: relative; z-index: 1; }
.j-chemin li { position: relative; }
.j-noeud { position: relative; z-index: 2; border: 4px solid #fff; }
.j-noeud.nouveau:not(.ferme)::after { content: ""; position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--corail) no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); border: 3px solid #fff; }
.j-mini-camion { position: absolute; z-index: 3; width: 58px; left: 50%; top: -16px; transform: translateX(-50%); animation: flotter 2.2s ease-in-out infinite; pointer-events: none; }
.j-mini-camion svg { width: 100%; height: auto; }
.j-deco { position: absolute; z-index: 0; width: 42px; right: -6px; bottom: -14px; pointer-events: none; }
.j-maison { width: 100%; height: auto; }
/* scene du niveau */
.j-route { background: linear-gradient(#BFE2FF 0 66%, #9C9385 66% 68%, #7A7468 68%); }
.j-soleil { position: absolute; right: 18px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--soleil); box-shadow: 0 0 0 8px rgba(255, 200, 61, .3); }
.j-nuage { position: absolute; top: 22px; width: 70px; height: 22px; border-radius: 99px; background: #fff; opacity: .9; animation: nuage 22s linear infinite; }
.j-nuage::before { content: ""; position: absolute; left: 14px; top: -12px; width: 32px; height: 28px; border-radius: 50%; background: #fff; }
.j-nuage.n2 { top: 50px; width: 52px; animation-duration: 30s; animation-delay: -12s; opacity: .7; }
@keyframes nuage { from { left: -90px; } to { left: 110%; } }
.j-chaussee { position: absolute; left: 0; right: 0; bottom: 14%; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 44px); animation: route 1.2s linear infinite; opacity: .8; }
@keyframes route { to { background-position: -44px 0; } }
.j-camion { z-index: 2; }
.j-roue { transform-box: fill-box; transform-origin: center; animation: roue 1s linear infinite; }
@keyframes roue { to { transform: rotate(360deg); } }
.j-chauffeur { position: absolute; left: 72.5%; top: 33%; width: 13%; pointer-events: none; }
.j-chauffeur svg { width: 100%; height: auto; display: block; }
.j-soute { background: rgba(255, 255, 255, .0); }
.j-niveau.selection .j-soute, .j-niveau.selection .j-machine { animation: halo 1.2s ease-in-out infinite; }
.j-niveau.selection .j-soute { background: #FFF6EC; box-shadow: 0 0 0 3px var(--mandarine); }
.piece.choisi { outline: 4px solid var(--mandarine); outline-offset: 3px; transform: translateY(-8px) scale(1.08); animation: brille 1s ease-in-out infinite; }
.dans { cursor: pointer; }
.j-machine { cursor: pointer; }
.j-marteau { transform-box: fill-box; }
.j-etincelle { position: fixed; z-index: 70; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--soleil); box-shadow: 0 0 8px var(--soleil); pointer-events: none; }
.j-fumee { position: fixed; z-index: 70; width: 26px; height: 26px; border-radius: 50%; background: #E3DACB; pointer-events: none; }
.j-fin-perso { margin: -4px 0 4px; animation: flotter 2.4s ease-in-out infinite; }
.j-stock { background: linear-gradient(#9A6B44, #7E5535); }
.j-tablette { box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
/* garage */
.j-vitrine { position: relative; width: min(360px, 90%); margin: 24px auto; padding: 18px; border-radius: 28px; background: radial-gradient(circle at 50% 80%, #fff, #E7F4FF); box-shadow: 0 6px 0 var(--ligne); }
.j-vitrine .j-chauffeur { left: calc(18px + 72.5% * .9); top: calc(18px + 33% * .78); width: 12%; }
.j-peintures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 420px; margin: 0 auto; }
.j-peinture { position: relative; aspect-ratio: 1; border-radius: 26px; border: 4px solid #fff; background: #fff; box-shadow: 0 6px 0 var(--ligne); cursor: pointer; display: grid; place-items: center; }
.j-peinture.on { box-shadow: 0 0 0 4px var(--encre), 0 6px 0 var(--ligne); }
.j-pot { width: 58%; height: 58%; border-radius: 50% 50% 40% 40%; background: var(--c); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .15); }
.j-peinture.ferme .j-pot { filter: grayscale(1) opacity(.35); }
.j-prix { position: absolute; bottom: 8px; display: inline-flex; align-items: center; gap: 2px; font: 800 .9rem "Nunito", sans-serif; background: var(--soleil); padding: 2px 8px; border-radius: 99px; }
/* defi pour le parent */
.j-ed-ico { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); }
.j-ed-bloc { background: #fff; border-radius: 24px; padding: 14px; margin: 12px 0; box-shadow: 0 6px 0 var(--ligne); border: 3px solid var(--ligne); }
.j-ed-bloc.camion { border-color: #BFDDFF; }
.j-ed-titre { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; color: var(--doux); }
.j-ed-titre b { font: 700 2.4rem var(--titre); color: var(--encre); }
.j-reglage { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.j-pm { flex: none; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--ciel); color: #fff; display: grid; place-items: center; box-shadow: 0 5px 0 var(--ciel-f); cursor: pointer; }
.j-pm:disabled { background: #E8E1D6; box-shadow: 0 5px 0 #D6CDBF; color: #B7AE9F; }
.j-pm:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ciel-f); }
.j-apercu { flex: 1; min-height: 64px; display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; justify-content: center; background: #F7F2E9; border-radius: 14px; padding: 6px; }
.j-apercu .jb.d { width: 12px; height: 54px; }
.j-apercu .jb.u { width: 18px; height: 18px; }
.j-apercu em { font: 700 1.6rem var(--titre); color: #C9C0B0; font-style: normal; align-self: center; }
.j-ed-action { display: flex; justify-content: center; margin: 16px 0; }
.j-ed-action .btn { min-width: 140px; }
.j-ed-non { display: inline-flex; align-items: center; gap: 8px; color: var(--corail-f); font: 700 1.6rem var(--titre); }
.j-passer { text-align: center; padding: 30px 10px; }
.j-passer-scene { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--encre); }
.j-tablette-ico { color: var(--ciel-f); animation: passe 1.6s ease-in-out infinite; }
@keyframes passe { 0%, 100% { transform: translateX(-20px) rotate(-8deg); } 50% { transform: translateX(20px) rotate(8deg); } }
.j-passer-eq b { font: 700 3rem var(--titre); }
@media (prefers-reduced-motion: reduce) { .j-roue, .j-chaussee, .j-nuage { animation: none !important; } }

/* ---------- Camion ergonomique : grande remorque, cases bien visibles ---------- */
.j-route { height: auto; min-height: 220px; display: flex; align-items: flex-end; justify-content: center; padding: 20px 8px 0; }
.j-camion { position: relative; left: auto; top: auto; width: auto; transform: none; display: flex; align-items: flex-end; margin: 0 auto 30px; }
.j-remorque { position: relative; min-width: 190px; min-height: 132px; padding: 14px; background: #fff; border: 4px solid #1B1F3B; border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; transition: background .2s, box-shadow .2s; }
.j-camion.survol .j-remorque { background: #FFF6EC; box-shadow: 0 0 0 5px var(--mandarine); }
.j-cabine { position: relative; width: 82px; height: 96px; margin-left: -4px; background: var(--cab); border: 4px solid #1B1F3B; border-radius: 0 34px 14px 0; }
.j-vitre { position: absolute; top: 10px; left: 10px; right: 14px; height: 44px; background: #E8F3FF; border: 3px solid #1B1F3B; border-radius: 6px 20px 6px 6px; display: grid; place-items: end center; overflow: hidden; }
.j-vitre svg { width: 42px; height: 42px; margin-bottom: -6px; }
.j-phare { position: absolute; right: -4px; bottom: 16px; width: 10px; height: 12px; border-radius: 3px; background: var(--soleil); border: 2px solid #1B1F3B; }
.j-roue-h { position: absolute; bottom: -20px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #E3DACB 0 7px, #1B1F3B 8px); border: 3px solid #1B1F3B; }
.j-roue-h::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed #5E6386; animation: roue 1.2s linear infinite; }
.j-roue-h.r1 { left: 22px; } .j-roue-h.r2 { left: calc(100% - 82px - 70px); } .j-roue-h.r3 { right: 18px; }
.j-camion .j-etiquette { top: -18px; left: 10px; right: auto; }
.j-groupe-d { display: flex; gap: 7px; align-items: flex-end; }
.j-grille-u { display: grid; grid-template-columns: repeat(5, auto); gap: 6px; align-content: end; justify-content: center; }
.j-case { display: block; border-radius: 7px; border: 3px dashed; animation: attente 1.6s ease-in-out infinite; }
.j-case.u { width: 32px; height: 32px; border-color: #FF9D9D; background: rgba(255, 107, 107, .07); }
.j-case.d { width: 22px; height: 104px; border-color: #6FDCC6; background: rgba(46, 196, 166, .07); }
.j-case.pleine { animation: none; border-style: solid; }
.j-case.pleine.u { background: #FF6B6B; border-color: #DB4848; }
.j-case.pleine.d { background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 calc(10% - 2px), rgba(255, 255, 255, .55) calc(10% - 2px) 10%); border-color: #169E84; }
.j-charge { display: flex; gap: 14px; align-items: flex-end; justify-content: center; min-height: 104px; max-width: none; }
.j-charge .jb.d { width: 22px; height: 104px; }
.j-charge .jb.u { width: 32px; height: 32px; }
.j-vide-ico { width: 60px; height: 60px; border-radius: 14px; border: 3px dashed #C9C0B0; }
.j-compteur { position: absolute; top: -18px; right: 10px; padding: 2px 12px; border-radius: 12px; background: #fff; border: 3px solid #1B1F3B; font: 700 1.3rem var(--titre); color: var(--encre); }
.j-compteur small { font-size: .9rem; color: var(--doux); }
.j-compteur.ok { background: var(--vert); color: #fff; border-color: #116B47; }
.j-compteur.ok small { color: #DFF7EC; }
.jb.d { width: 22px; height: 104px; }
.jb.u { width: 32px; height: 32px; border-radius: 6px; }
.j-tablette { min-height: 120px; gap: 10px; }
.j-tablette.u { min-height: 60px; }
.j-tablette .j-grille-u { gap: 7px; }
.piece { cursor: pointer; }
.piece:active { transform: scale(.92); }
.j-machine { cursor: pointer; border-radius: 26px; }
.j-machine:hover { transform: scale(1.04); }
.j-machine:active { transform: scale(.96); }
.j-machine.vide { opacity: .45; }
.dans { cursor: pointer; }
.dans:active { transform: scale(.9); }
@media (max-width: 600px) {
  .j-remorque { min-width: 150px; min-height: 112px; padding: 10px; gap: 10px; }
  .j-cabine { width: 66px; height: 84px; }
  .j-vitre { height: 38px; }
  .j-vitre svg { width: 36px; height: 36px; }
  .j-roue-h { width: 32px; height: 32px; bottom: -17px; }
  .j-roue-h.r2 { left: calc(100% - 66px - 58px); }
  .j-case.u, .j-charge .jb.u, .jb.u { width: 27px; height: 27px; }
  .j-case.d, .j-charge .jb.d, .jb.d { width: 18px; height: 86px; }
  .j-grille-u { gap: 4px; }
  .j-groupe-d { gap: 5px; }
  .j-charge { min-height: 86px; gap: 10px; }
}

/* ===== Mode accompagnateur (parent) ===== */
.j-niveau { position: relative; }
.j-acc-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 2px dashed #C9BFAE; background: #fff; color: var(--doux); font: 700 .9rem "Nunito", sans-serif; cursor: pointer; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.j-acc-btn::before { content: ""; position: absolute; inset: 0; background: var(--jaune-pale); transform: scaleX(0); transform-origin: left; }
.j-acc-btn > * { position: relative; }
.j-acc-btn.charge::before { transform: scaleX(1); transition: transform .7s linear; }
.j-acc-btn em { display: none; font-style: normal; color: var(--brun); }
.j-acc-btn.astuce span { display: none; }
.j-acc-btn.astuce em { display: inline; }
.j-acc-btn.petit { min-height: 40px; padding: 4px 10px 4px 8px; font-size: .8rem; }
.j-fin-carte .j-acc-btn { position: absolute; top: -18px; right: -6px; }
.j-carte-parent { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0 0 12px; }
.j-pastille-seance { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--mandarine); color: #fff; font: 700 .8rem "Nunito", sans-serif; }

.j-acc { position: absolute; inset: 0; z-index: 40; background: rgba(27, 31, 59, .35); display: flex; align-items: flex-end; border-radius: 22px; }
.j-acc-feuille { width: 100%; max-height: 92%; overflow: auto; background: #fff; border-radius: 24px 24px 18px 18px; padding: 14px 18px 20px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); animation: monte .25s; font-size: .95rem; }
.j-acc-tete { display: flex; align-items: center; gap: 8px; position: sticky; top: -14px; background: #fff; padding: 4px 0 8px; }
.j-acc-tete b { font: 600 1.1rem var(--titre); }
.j-acc-tete .btn-rond { margin-left: auto; }
.j-acc-niv { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--encre); color: #fff; font: 700 1rem var(--titre); flex: none; }
.j-acc-cle { background: var(--mandarine); color: #fff; font: 800 .72rem "Nunito", sans-serif; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.j-acc-direct { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.j-acc-direct span { display: inline-flex; align-items: center; gap: 4px; background: var(--gris-pale); border-radius: 99px; padding: 4px 10px; font-size: .85rem; }
.j-acc-conseil { background: var(--vert-pale); border-left: 4px solid var(--vert); padding: 8px 12px; border-radius: 10px; margin: 0 0 6px; font-weight: 700; }
.j-acc-feuille h4 { margin: 14px 0 4px; font: 600 .95rem var(--titre); color: var(--brun); }
.j-acc-feuille p { margin: 0; }
.j-acc-phrase { background: var(--jaune-pale); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.j-acc-crans { margin: 0; padding-left: 22px; }
.j-acc-crans li { margin: 4px 0; }

.j-bilan { display: flex; flex-direction: column; gap: 12px; }
.j-bilan h2 { margin: 0; font: 600 1.3rem var(--titre); }
.j-b-bloc { background: #fff; border: 2px solid var(--ligne); border-radius: 20px; padding: 14px 16px; }
.j-b-bloc.accent { border-color: var(--soleil); background: #FFFBEF; }
.j-b-bloc h3 { margin: 0 0 8px; font: 600 1.05rem var(--titre); }
.j-b-bloc p { margin: 6px 0; }
.j-b-resume { color: var(--doux); }
.j-b-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.j-b-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--vert-pale); }
.j-b-liste li.hesite { background: var(--jaune-pale); }
.j-b-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: #fff; font: 700 .95rem var(--titre); flex: none; }
.j-b-txt { display: flex; flex-direction: column; flex: 1; }
.j-b-txt small { color: var(--doux); font-weight: 700; }
.j-b-liste li.hesite small { color: var(--brun); }
.j-b-et { display: flex; gap: 2px; }
.j-b-et i { display: block; width: 14px; height: 14px; background: #E8E1D6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.j-b-et i.on { background: var(--soleil); }
.j-b-reco + .j-b-reco { border-top: 1px solid var(--ligne); margin-top: 8px; padding-top: 8px; }
.j-b-guide summary { cursor: pointer; font: 600 1.05rem var(--titre); min-height: 32px; }
.j-b-guide h4 { margin: 12px 0 2px; font: 600 .95rem var(--titre); color: var(--brun); }
.j-b-guide ol { margin: 4px 0; padding-left: 22px; }

/* ===== Sequence courte : objets -> ecran -> papier ===== */
.seq { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.s-tete { display: flex; align-items: center; gap: 10px; }
.s-etapes { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; }
.s-etapes li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 14px; background: #fff; border: 2px solid var(--ligne); font: 700 .85rem "Nunito", sans-serif; color: var(--doux); }
.s-etapes li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gris-pale); font-size: .8rem; }
.s-etapes li.on { border-color: var(--principal); color: var(--encre); background: #EAF3FF; }
.s-etapes li.on b { background: var(--principal); color: #fff; }
.s-etapes li.fait b { background: var(--vert); color: #fff; }
.s-carte { background: #fff; border: 2px solid var(--ligne); border-radius: 22px; padding: 16px 18px; }
.s-carte h2, .s-titre { margin: 0 0 4px; font: 600 1.35rem var(--titre); }
.s-pour { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--brun); font-weight: 800; font-size: .9rem; }
.s-liste { margin: 10px 0 0; padding-left: 22px; }
.s-liste li { margin: 8px 0; }
.s-objets { display: flex; align-items: flex-end; gap: 4px; padding: 12px; background: var(--gris-pale); border-radius: 16px; }
.s-objets b { margin-left: auto; font: 700 1.6rem var(--titre); }
.s-suite { width: 100%; justify-content: center; }
.s-passer { background: none; border: 0; color: var(--doux); text-decoration: underline; font: 700 .9rem "Nunito", sans-serif; min-height: 44px; cursor: pointer; }
.s-points { display: flex; justify-content: center; gap: 8px; }
.s-points i { width: 12px; height: 12px; border-radius: 50%; background: var(--ligne); }
.s-points i.on { background: var(--principal); transform: scale(1.3); }
.s-points i.fait { background: var(--vert); }
.s-calcul { text-align: center; font: 600 2.6rem/1.1 var(--titre); }
.s-calcul span { display: inline-block; min-width: 1.6em; padding: 0 8px; border-radius: 12px; background: var(--jaune-pale); color: var(--brun); }
.s-calcul span.ok { background: var(--vert-pale); color: var(--vert); animation: pop .4s; }
.s-consigne { text-align: center; margin: 0; font-size: 1.15rem; }
.s-table { display: flex; gap: 16px; align-items: flex-start; min-height: 130px; padding: 14px; background: #fff; border: 3px solid var(--ligne); border-radius: 22px; }
.s-zone-d { display: flex; flex-wrap: wrap; gap: 6px; flex: 1.1; }
.s-zone-u { display: grid; grid-template-columns: repeat(5, 30px); gap: 6px; align-content: start; }
.sb { display: block; border-radius: 5px; }
.sb.d { width: 22px; height: 100px; background: #2EC4A6 repeating-linear-gradient(0deg, transparent 0 calc(10% - 2px), rgba(255, 255, 255, .55) calc(10% - 2px) 10%); border: 2px solid #169E84; }
.sb.u { width: 30px; height: 30px; background: #FF6B6B; border: 2px solid #DB4848; }
.sb.touche { cursor: pointer; transition: transform .1s; }
.sb.touche:active { transform: scale(.9); }
.sb.parti { opacity: .18; filter: grayscale(1); pointer-events: none; }
.s-objets .sb.d { width: 16px; height: 72px; } .s-objets .sb.u { width: 20px; height: 20px; }
.s-defaire .sb.d { width: 8px; height: 30px; } .s-defaire .sb.u { width: 10px; height: 10px; }
.s-compte { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--doux); }
.s-compte b { font: 700 1.3rem var(--titre); color: var(--encre); margin-left: 4px; }
.s-defaire { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; font-weight: 800; }
.s-defaire span { margin-left: 6px; }
.s-defaire.appel { border-color: var(--mandarine); background: #FFF1E3; animation: halo 1.4s ease-in-out infinite; }
.s-msg { margin: 0; min-height: 3em; padding: 10px 14px; border-radius: 14px; background: var(--gris-pale); font-size: 1.05rem; text-align: center; }
.s-msg:empty { display: none; }
.s-msg.ok { background: var(--vert-pale); }
.s-msg.non { background: var(--rouge-pale); }
.s-msg.aide, .s-msg.info { background: var(--jaune-pale); }
.s-ecrit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border: 2px dashed var(--ligne); border-radius: 16px; }
.s-ecrit > span { color: var(--doux); font-weight: 800; font-size: .85rem; }
.s-col { border-collapse: collapse; font: 600 1.7rem/1.15 var(--titre); }
.s-col td { width: 1.4em; text-align: center; padding: 0 2px; }
.s-col .h td { font-size: 1rem; color: var(--corail-f); height: 1.1em; }
.s-col td.barre { text-decoration: line-through; text-decoration-color: var(--corail); text-decoration-thickness: 3px; }
.s-col .o td { border-bottom: 3px solid var(--encre); }
.s-col .o span { position: absolute; margin-left: -1em; }
.s-col .t td { height: 1.2em; color: var(--vert); }
.s-papier { display: flex; justify-content: center; padding: 14px; background: #fff repeating-linear-gradient(0deg, transparent 0 31px, #DCE8F5 31px 32px); border: 2px solid var(--ligne); border-radius: 18px; }
.s-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 0 auto; width: 100%; }
.s-pave button { min-height: 58px; border-radius: 16px; border: 2px solid var(--ligne); background: #fff; font: 600 1.5rem var(--titre); color: var(--encre); box-shadow: 0 4px 0 var(--ligne); cursor: pointer; display: grid; place-items: center; }
.s-pave button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ligne); }
.s-pave .valider { background: var(--vert); border-color: var(--vert); color: #fff; box-shadow: 0 4px 0 #157A51; }
.s-fin { text-align: center; }
.s-conseil { background: var(--jaune-pale); padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.s-fin-btns { display: flex; gap: 10px; } .s-fin-btns .btn { flex: 1; justify-content: center; }

/* ===== La boulangerie : paquets de 10 et biscuits seuls ===== */
.bq { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; padding: 5px; border-radius: 8px; background: #D9A066; border: 2px solid #A86E35; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.bq b { width: 12px; height: 12px; border-radius: 50%; background: #F6D7A7; border: 1px solid #C08A4E; }
.bs { display: block; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8B5A2B 0 2px, transparent 3px), radial-gradient(circle at 65% 60%, #8B5A2B 0 2px, transparent 3px), radial-gradient(circle at 40% 70%, #8B5A2B 0 2px, transparent 3px), #F6D7A7; border: 2px solid #C08A4E; }
.bq.touche, .bs.touche { cursor: pointer; transition: transform .1s; }
.bq.touche:active, .bs.touche:active { transform: scale(.9); }
.bq.parti, .bs.parti { opacity: .18; filter: grayscale(1); pointer-events: none; }
.bq.cible, .bs.cible { animation: halo 1.6s ease-in-out infinite; }
.s-objets .bq { grid-template-columns: repeat(2, 8px); gap: 2px; padding: 3px; } .s-objets .bq b { width: 8px; height: 8px; } .s-objets .bs { width: 20px; height: 20px; }
.s-defaire .bq { grid-template-columns: repeat(2, 4px); gap: 1px; padding: 2px; border-width: 1px; } .s-defaire .bq b { width: 4px; height: 4px; } .s-defaire .bs { width: 10px; height: 10px; border-width: 1px; background: #F6D7A7; }
.s-zone { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; transition: background .2s; }
.s-zone:first-child { flex: 1.1; }
.s-zone small { font-weight: 800; color: var(--doux); font-size: .78rem; }
.s-zone.regarde { background: var(--jaune-pale); box-shadow: 0 0 0 3px var(--soleil); }
.s-table .s-zone-u { grid-template-columns: repeat(5, 30px); }
.s-table .s-zone-d { gap: 6px; }
.s-client { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brun); font-size: 1.05rem; }
.s-question { border-radius: 20px; padding: 14px 16px; background: #fff; border: 3px solid var(--principal); }
.s-question.a { border-color: var(--mandarine); background: #FFF6EC; }
.s-question:empty { display: none; }
.s-q-txt { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
.s-q-txt svg { vertical-align: -4px; margin-right: 4px; }
.s-question.a .s-q-txt { margin: 0; }
.s-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-choix button { min-height: 58px; border-radius: 16px; border: 2px solid var(--ligne); background: #fff; font: 600 1.5rem var(--titre); color: var(--encre); box-shadow: 0 4px 0 var(--ligne); cursor: pointer; }
.s-choix:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.s-choix.txt { grid-template-columns: 1fr; }
.s-choix.txt button { font: 700 1.05rem "Nunito", sans-serif; min-height: 52px; text-align: left; padding: 0 16px; }
.s-choix:has(> :nth-child(2):last-child).txt { grid-template-columns: repeat(2, 1fr); }
.s-choix:has(> :nth-child(2):last-child).txt button { text-align: center; font-size: 1.3rem; }
.s-choix button.bon { background: var(--vert); border-color: var(--vert); color: #fff; box-shadow: 0 4px 0 #157A51; opacity: 1; }
.s-choix button.faux { background: var(--rouge-pale); border-color: var(--corail); opacity: .6; animation: secoue .3s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.s-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 1rem; }
.s-note:empty { display: none; }
.s-note.ok { background: var(--vert-pale); } .s-note.non { background: var(--rouge-pale); } .s-note.info { background: var(--jaune-pale); }
.s-continuer { width: 100%; justify-content: center; margin-top: 10px; min-height: 52px; }
.s-saisie { text-align: center; font: 600 2.2rem var(--titre); background: var(--jaune-pale); border-radius: 14px; padding: 4px; color: var(--brun); }
.s-hes { margin: 4px 0 8px; padding-left: 20px; } .s-hes li { margin: 3px 0; }

/* ===== Anti-devinette et niveaux d'aide ===== */
.s-choix.txt.deux { grid-template-columns: repeat(2, 1fr); }
.s-choix.txt.deux button { text-align: center; font-size: 1.3rem; }
.s-question.pause .s-choix button, .s-question.pause .s-pave button { opacity: .45; pointer-events: none; }
.s-question.pause .s-saisie.faux { background: var(--rouge-pale); color: var(--corail-f); animation: secoue .3s; }
.s-saisie.ok { background: var(--vert-pale); color: var(--vert); }
.s-question .s-pave { margin-top: 10px; }
.bq[data-n], .bs[data-n] { position: relative; }
.bq[data-n]::after, .bs[data-n]::after { content: attr(data-n); position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--encre); color: #fff; font: 700 .75rem/22px "Nunito", sans-serif; text-align: center; z-index: 2; animation: pop .3s backwards; }
.s-niveau { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-niveau .s-points { justify-content: flex-start; display: flex; gap: 8px; }
.s-points i.rate { background: var(--soleil); }
.s-badge { padding: 5px 12px; border-radius: 99px; font: 800 .85rem "Nunito", sans-serif; }
.s-badge.n0 { background: #EAF3FF; color: var(--principal); }
.s-badge.n1 { background: var(--jaune-pale); color: var(--brun); }
.s-badge.n2 { background: var(--vert-pale); color: var(--vert); }

/* ===== Seance 2 (cartons de 100), colonnes interactives, images dans les choix ===== */
.bc { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: #B97A3E repeating-linear-gradient(90deg, transparent 0 8px, rgba(0, 0, 0, .1) 8px 9px); border: 2px solid #7E4F22; color: #fff; font: 700 .85rem var(--titre); }
.bc span { background: rgba(0, 0, 0, .25); padding: 1px 4px; border-radius: 4px; }
.bc.touche { cursor: pointer; } .bc.parti { opacity: .18; filter: grayscale(1); pointer-events: none; } .bc.cible { animation: halo 1.6s ease-in-out infinite; }
.bc[data-n] { position: relative; }
.bc[data-n]::after { content: attr(data-n); position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--encre); color: #fff; font: 700 .75rem/22px "Nunito", sans-serif; text-align: center; }
.s-zone-c { display: flex; flex-wrap: wrap; gap: 8px; }
.s-table.k3 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; }
.s-table.k3 .z2 { grid-column: 1 / -1; }
.s-table.k3 .bq { grid-template-columns: repeat(2, 7px); gap: 2px; padding: 3px; }
.s-table.k3 .bq b { width: 7px; height: 7px; }
.s-table.k3 .s-zone-d { gap: 5px; }
.s-table.k3 .s-zone-u { grid-template-columns: repeat(5, 22px); gap: 4px; }
.s-table.k3 .bs { width: 22px; height: 22px; }
.s-ouvrir { display: flex; gap: 8px; } .s-ouvrir .btn { flex: 1; }
.mini { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; margin-right: 4px; }
.mini .bs { width: 12px; height: 12px; border-width: 1px; background: #F6D7A7; }
.mini .bq { grid-template-columns: repeat(2, 3px); gap: 1px; padding: 2px; border-width: 1px; border-radius: 3px; }
.mini .bq b { width: 3px; height: 3px; border: 0; }
.mini .bc { width: 16px; height: 16px; border-width: 1px; border-radius: 3px; font-size: 0; }
.mini .bc span { display: none; }
.s-choix.txt button { display: flex; align-items: center; gap: 4px; }
.s-choix.txt.deux button { justify-content: center; }
.s-choix button.choisi { background: #EAF3FF; border-color: var(--principal); color: var(--principal); opacity: 1; }
.s-seances { display: flex; gap: 8px; }
.s-seances button { flex: 1; min-height: 48px; border-radius: 14px; border: 2px solid var(--ligne); background: #fff; font: 700 1rem "Nunito", sans-serif; color: var(--doux); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.s-seances button.on { border-color: var(--principal); background: #EAF3FF; color: var(--encre); }
.s-seances button:disabled { opacity: .55; cursor: not-allowed; }
.s-petit { margin: -4px 0 0; font-size: .85rem; color: var(--doux); text-align: center; }
.s-etapes li.saute { opacity: .4; }
.s-badge.rev { background: var(--lilas, #E9E2FB); color: #6B4FB8; }
.s-rev { margin: 8px 0 0; color: var(--doux); }
.s-rev svg { vertical-align: -3px; margin-right: 4px; }
.s-debloque { display: inline-flex; align-items: center; gap: 6px; background: var(--jaune-pale); padding: 6px 12px; border-radius: 99px; font-weight: 800; }
.s-col.trois td { width: 1.3em; }
.s-col td.tap { cursor: pointer; border-radius: 8px; background: #FFF1E3; box-shadow: 0 0 0 2px var(--mandarine); animation: halo 1.4s ease-in-out infinite; }
.s-col td.tap.barre { animation: none; }
.s-col .t td.actif { background: var(--jaune-pale); box-shadow: inset 0 0 0 2px var(--soleil); border-radius: 6px; }
.s-col .h em { font-style: normal; color: var(--mandarine); animation: pop .5s infinite alternate; }
.s-ouvrir .s-defaire { flex-direction: column; gap: 2px; min-height: 66px; padding: 6px; }
.s-ouvrir .s-defaire span { margin: 0; }
.s-table.k3 .z0 { min-width: 0; }

/* ===== Demonstrations et images de probleme ===== */
.s-demo-titre { display: flex; align-items: center; gap: 8px; font: 600 1.2rem var(--titre); }
.s-demo-titre .s-passer { margin-left: auto; min-height: 36px; }
.s-legende { margin: 0; min-height: 3.2em; padding: 12px 14px; border-radius: 16px; background: #fff; border: 3px solid var(--soleil); font-size: 1.15rem; text-align: center; }
.s-legende:empty { visibility: hidden; }
.s-deux { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 8px 10px; border-radius: 14px; background: var(--gris-pale); }
.s-deux > div { display: flex; align-items: center; gap: 8px; }
.s-deux > div > span:first-child { width: 96px; flex: none; font-weight: 800; font-size: .9rem; color: var(--doux); }
.s-deux .q { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.s-deux b { font: 700 1.2rem var(--titre); }
.s-col i.ret { font-style: normal; color: var(--principal); }

/* ===== Addition : biscuits apportes et paquets fabriques ===== */
.bs.nouveau { background: radial-gradient(circle at 35% 35%, #6B3E1A 0 2px, transparent 3px), radial-gradient(circle at 65% 60%, #6B3E1A 0 2px, transparent 3px), #FFC27A; border-color: #D9822B; }
.bq.nouveau { background: #F0A350; border-color: #C26E1C; }
.bq.nouveau b { background: #FFDDB0; }
.bc.nouveau { background-color: #D98B3E; }
.bq.fabrique, .bc.fabrique { box-shadow: 0 0 0 3px var(--vert); }
.s-legende-mini { display: flex; gap: 14px; justify-content: center; font-size: .85rem; font-weight: 800; color: var(--doux); margin-bottom: -6px; }
.s-legende-mini span { display: inline-flex; align-items: center; gap: 5px; }
.s-legende-mini .pt { width: 14px; height: 14px; border-radius: 50%; background: #F6D7A7; border: 2px solid #C08A4E; }
.s-legende-mini .pt.nouveau { background: #FFC27A; border-color: #D9822B; }

/* ======================================================================
   Sequences : design calme. 5 couleurs : farine, encre, accent, juste, faux.
   L'ardoise du calcul est le seul element fort ; les biscuits apportent la chaleur.
   ====================================================================== */
.seq {
  --s-fond: #F5F6FA; --s-carte: #FFFFFF; --s-encre: #23283F; --s-doux: #6A6F86; --s-ligne: #E3E5EE;
  --s-accent: #3552D8; --s-accent-pale: #EEF1FD; --s-juste: #2E9466; --s-faux: #D9534F;
  color: var(--s-encre); gap: 14px;
}
.seq .s-carte, .seq .s-question, .seq .s-table, .seq .s-papier, .seq .s-legende {
  background: var(--s-carte); border: 0; border-radius: 22px; box-shadow: 0 1px 0 var(--s-ligne), 0 6px 18px rgba(35, 40, 63, .06);
}
/* Etapes du haut : neutres, l'etape en cours en encre */
.seq .s-etapes li { background: transparent; border: 0; color: var(--s-doux); padding: 6px 2px; }
.seq .s-etapes li b { background: var(--s-ligne); color: var(--s-doux); }
.seq .s-etapes li.on { background: transparent; color: var(--s-encre); }
.seq .s-etapes li.on b { background: var(--s-encre); color: #fff; }
.seq .s-etapes li.fait b { background: var(--s-ligne); color: var(--s-juste); }
.seq .s-niveau .s-points i { width: 10px; height: 10px; background: var(--s-ligne); }
.seq .s-points i.fait { background: var(--s-encre); }
.seq .s-points i.rate { background: var(--s-doux); opacity: .45; }
.seq .s-points i.on { background: var(--s-accent); transform: none; box-shadow: 0 0 0 3px var(--s-accent-pale); }
.seq .s-badge, .seq .s-badge.n0, .seq .s-badge.n1, .seq .s-badge.n2, .seq .s-badge.rev { background: transparent; color: var(--s-doux); padding: 0; font-weight: 700; }
/* L'ardoise */
.seq .s-calcul { background: var(--s-encre); color: #fff; border-radius: 22px; padding: 18px 16px 16px; font-size: 2.7rem; letter-spacing: .02em; box-shadow: inset 0 0 0 6px #2E3452; }
.seq .s-calcul span { background: rgba(255, 255, 255, .1); color: #fff; border-radius: 12px; }
.seq .s-calcul span.ok { background: transparent; color: #7FE0B0; }
.seq .s-client { color: var(--s-doux); font-size: 1.05rem; }
.seq .s-client b { color: var(--s-encre); }
/* Le comptoir */
.seq .s-zone small { color: var(--s-doux); font-weight: 700; }
.seq .s-zone.regarde { background: var(--s-accent-pale); box-shadow: none; }
.seq .s-compte, .seq .s-compte b { color: var(--s-doux); }
.seq .s-compte b { color: var(--s-encre); }
.seq .bq.cible, .seq .bs.cible, .seq .bc.cible { animation: none; outline: 3px solid var(--s-accent); outline-offset: 2px; }
.seq .bq.fabrique, .seq .bc.fabrique { box-shadow: 0 0 0 3px var(--s-encre); }
/* Questions */
.seq .s-question { padding: 18px; }
.seq .s-question.a { background: var(--s-carte); border-left: 5px solid var(--s-accent); }
.seq .s-q-txt { font-size: 1.2rem; line-height: 1.35; }
.seq .s-choix button, .seq .s-pave button {
  background: var(--s-carte); color: var(--s-encre); border: 2px solid var(--s-ligne); box-shadow: none; border-radius: 16px; transition: border-color .15s, transform .1s;
}
.seq .s-choix button:active, .seq .s-pave button:active { transform: scale(.97); box-shadow: none; }
.seq .s-choix button:focus-visible, .seq .s-pave button:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 2px; }
.seq .s-choix button.bon { background: var(--s-juste); border-color: var(--s-juste); color: #fff; box-shadow: none; }
.seq .s-choix button.faux { background: var(--s-carte); border-color: var(--s-faux); color: var(--s-faux); opacity: .7; }
.seq .s-choix button.choisi { background: var(--s-accent-pale); border-color: var(--s-accent); color: var(--s-accent); }
.seq .s-pave .valider { background: var(--s-accent); border-color: var(--s-accent); color: #fff; box-shadow: none; }
.seq .s-saisie { background: var(--s-fond); color: var(--s-encre); border-radius: 14px; }
.seq .s-saisie.ok { background: var(--s-fond); color: var(--s-juste); }
.seq .s-question.pause .s-saisie.faux { background: var(--s-fond); color: var(--s-faux); }
/* Retours : fond neutre, une barre de couleur seulement */
.seq .s-note, .seq .s-note.ok, .seq .s-note.non, .seq .s-note.info { background: var(--s-fond); border-left: 4px solid var(--s-doux); border-radius: 10px; }
.seq .s-note.ok { border-left-color: var(--s-juste); }
.seq .s-note.non { border-left-color: var(--s-faux); }
.seq .s-note.info { border-left-color: var(--s-accent); }
/* Boutons */
.seq .btn.principal { background: var(--s-accent); border-color: var(--s-accent); box-shadow: 0 4px 0 #2338A6; }
.seq .btn:not(.principal) { background: var(--s-carte); color: var(--s-encre); border-color: var(--s-ligne); box-shadow: 0 3px 0 var(--s-ligne); }
.seq .s-defaire.appel { background: var(--s-accent-pale); border-color: var(--s-accent); animation: none; }
.seq .s-passer { color: var(--s-doux); }
/* Papier et colonnes */
.seq .s-papier { background: var(--s-carte) repeating-linear-gradient(0deg, transparent 0 31px, #ECEEF5 31px 32px); }
.seq .s-col .h td, .seq .s-col i.ret { color: var(--s-accent); }
.seq .s-col td.barre { text-decoration-color: var(--s-doux); }
.seq .s-col .t td { color: var(--s-encre); }
.seq .s-col td.tap { background: var(--s-accent-pale); box-shadow: 0 0 0 2px var(--s-accent); animation: none; }
.seq .s-col .t td.actif { background: var(--s-accent-pale); box-shadow: inset 0 0 0 2px var(--s-accent); }
.seq .s-col .h em { color: var(--s-accent); animation: none; }
.seq .s-ecrit { border: 0; background: transparent; }
/* Carte parent, seances, demos */
.seq .s-pour { color: var(--s-doux); }
.seq .s-objets { background: var(--s-fond); }
.seq .s-conseil { background: var(--s-fond); border-left: 4px solid var(--s-accent); }
.seq .s-seances button { border: 2px solid var(--s-ligne); color: var(--s-doux); }
.seq .s-seances button.on { border-color: var(--s-encre); background: var(--s-carte); color: var(--s-encre); }
.seq .s-legende { font-size: 1.2rem; }
.seq .s-demo-titre { color: var(--s-encre); }
.seq .s-deux { background: var(--s-fond); }
.seq .s-debloque { background: var(--s-accent-pale); color: var(--s-accent); }
.seq .s-legende-mini { color: var(--s-doux); }
@media (prefers-reduced-motion: reduce) { .seq * { animation: none !important; transition: none !important; } }
.seq .s-choix button:disabled { opacity: 1; }
.seq .s-choix button.faux:disabled { opacity: .55; }
body:has(.seq) { background: #F5F6FA; background-image: none; }

/* ===== Methode japonaise : cerises et cadre de 10 ===== */
.jp-scene { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 18px 12px; min-height: 150px; }
.jp-cerise { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; width: 150px; justify-items: center; }
.jp-haut { grid-column: 1 / -1; font: 600 2rem var(--titre); color: var(--s-encre, #23283F); }
.jp-cerise svg { grid-column: 1 / -1; width: 120px; height: 44px; fill: none; stroke: var(--s-ligne, #E3E5EE); stroke-width: 3; stroke-linecap: round; }
.jp-cerise.ouverte svg { stroke: var(--s-encre, #23283F); }
.jp-c { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--s-ligne, #E3E5EE); font: 600 1.4rem var(--titre); color: var(--s-encre, #23283F); background: #fff; }
.jp-cerise:not(.ouverte) .jp-c { visibility: hidden; }
.jp-c.dix { border-color: var(--s-accent, #3552D8); color: var(--s-accent, #3552D8); }
.jp-cadre { display: grid; grid-template-columns: repeat(5, 30px); gap: 6px; padding: 8px; border-radius: 12px; border: 3px solid var(--s-accent, #3552D8); }
.jp-cadre i { width: 30px; height: 30px; border-radius: 50%; background: var(--s-accent, #3552D8); }
.jp-cadre i.parti { background: transparent; box-shadow: inset 0 0 0 2px var(--s-ligne, #E3E5EE); }
.jp-cadre.cible i.touche { cursor: pointer; }
.jp-cadre.cible { box-shadow: 0 0 0 4px var(--s-accent-pale, #EEF1FD); }
.jp-cahier { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; font: 500 1.35rem var(--titre); color: var(--s-encre, #23283F); }
.jp-cahier:empty { display: none; }
.seq .e-gros { display: block; text-align: center; font: 600 2.4rem var(--titre); background: var(--s-encre); color: #fff; border-radius: 18px; padding: 10px; }

/* ======================================================================
   Lecons : theme « jeu video doux ». Ciel pastel, cartes rondes et epaisses,
   gros boutons en relief, un guide (le petit nuage) et une carte de progression.
   ====================================================================== */
.seq, .parcours {
  --s-fond: #F2F8FF; --s-carte: #FFFFFF; --s-encre: #2B2D5C; --s-doux: #7A7FA8; --s-ligne: #D7E6F7;
  --s-accent: #3E8EE6; --s-accent-pale: #E6F3FF; --s-juste: #2FA877; --s-faux: #F07A55;
  --g-ciel: #6FB8FF; --g-menthe: #6BD3A6; --g-peche: #FFB08A; --g-lilas: #B3A2FF; --g-citron: #FFD666; --g-relief: #C9DCF2;
  gap: 16px;
}
body:has(.seq) {
  background:
    radial-gradient(120px 46px at 12% 9%, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(90px 34px at 20% 7%, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(140px 50px at 86% 22%, rgba(255,255,255,.9) 60%, transparent 62%),
    radial-gradient(100px 38px at 78% 20%, rgba(255,255,255,.9) 60%, transparent 62%),
    linear-gradient(180deg, #CFE9FF 0%, #EAF5FF 45%, #FFF6EC 100%) fixed;
}
/* Cartes : rondes, epaisses, avec un relief sous le bord */
.seq .s-carte, .seq .s-question, .seq .s-table, .seq .s-papier, .seq .s-legende, .seq .s-ecrit {
  background: #fff; border: 3px solid var(--s-ligne); border-radius: 28px; box-shadow: 0 6px 0 var(--g-relief);
}
.seq .s-question { padding: 20px; }
.seq .s-question.a { border-color: var(--g-citron); box-shadow: 0 6px 0 #F0C64A; background: #FFFDF3; border-left-width: 3px; }
.seq .s-question.entre { animation: g-entre .38s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes g-entre { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
.seq .s-q-txt { font: 600 1.3rem/1.35 var(--titre); color: var(--s-encre); }
/* Le calcul : un grand panneau blanc borde de ciel */
.seq .s-calcul { background: #fff; color: var(--s-encre); border: 4px solid var(--g-ciel); box-shadow: 0 8px 0 #9FCFFF; border-radius: 30px; font-size: 2.8rem; padding: 16px; }
.seq .s-calcul span { background: #FFF1E8; color: #E0784F; border-radius: 16px; }
.seq .s-calcul span.ok { background: #E3F7EE; color: var(--s-juste); }
.seq .e-gros { background: #fff; color: var(--s-encre); border: 4px solid var(--g-ciel); box-shadow: 0 6px 0 #9FCFFF; }
/* Boutons : gros, en relief, qui s'enfoncent */
.seq .btn, .seq .s-choix button, .seq .s-pave button { font-family: var(--titre); font-weight: 600; border-radius: 20px; border: 3px solid var(--s-ligne); background: #fff; color: var(--s-encre); box-shadow: 0 5px 0 var(--g-relief); transition: transform .08s, box-shadow .08s; }
.seq .btn:active, .seq .s-choix button:active, .seq .s-pave button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--g-relief); }
.seq .btn.principal, .seq .s-pave .valider { background: var(--g-ciel); border-color: #4F9FEF; color: #fff; box-shadow: 0 6px 0 #3E7FCC; font-size: 1.2rem; }
.seq .btn.principal:active { box-shadow: 0 2px 0 #3E7FCC; }
.seq .s-choix button { min-height: 62px; font-size: 1.5rem; }
.seq .s-choix.txt button { font: 600 1.1rem var(--titre); }
.seq .s-choix button.bon { background: var(--g-menthe); border-color: #4FBE8D; color: #fff; box-shadow: 0 5px 0 #3FA677; }
.seq .s-choix button.faux { background: #FFF1EA; border-color: var(--g-peche); color: #D9653F; box-shadow: 0 5px 0 #F2C3AC; opacity: 1; }
.seq .s-choix button.choisi { background: var(--s-accent-pale); border-color: var(--g-ciel); color: var(--s-accent); }
.seq .s-saisie { background: var(--s-fond); border: 3px dashed var(--s-ligne); border-radius: 18px; font-size: 2.4rem; }
.seq .s-note, .seq .s-note.ok, .seq .s-note.non, .seq .s-note.info { border: 0; border-radius: 16px; padding: 10px 14px; font-weight: 700; }
.seq .s-note.ok { background: #E3F7EE; color: #1F7D57; }
.seq .s-note.non { background: #FFF1EA; color: #B9532F; }
.seq .s-note.info, .seq .s-note { background: #EEF4FF; color: var(--s-encre); }
.seq .s-zone.regarde { background: #FFF8D9; box-shadow: 0 0 0 3px var(--g-citron); }
.seq .bq.cible, .seq .bs.cible, .seq .bc.cible { outline: 3px solid var(--g-ciel); outline-offset: 3px; animation: g-sautille 1.2s ease-in-out infinite; }
@keyframes g-sautille { 50% { transform: translateY(-4px); } }
.seq .s-legende { border-color: var(--g-citron); box-shadow: 0 6px 0 #F0C64A; background: #FFFDF3; font: 600 1.2rem var(--titre); }
.seq .s-conseil { background: #FFFDF3; border-left: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--g-citron); }
.seq .s-tete, .seq .s-niveau .s-badge { display: none; }

/* ---------- Plan de la lecon : une petite carte de niveaux ---------- */
.g-plan { display: flex; align-items: flex-start; gap: 8px; }
.g-quit { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--s-ligne); box-shadow: 0 4px 0 var(--g-relief); color: var(--s-doux); }
.g-carte { position: relative; flex: 1; }
.g-carte ol { position: relative; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.g-carte li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; text-align: center; }
.g-carte li small { font: 700 .7rem/1.1 "Nunito", sans-serif; color: var(--s-doux); }
.g-noeud { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--s-ligne); color: var(--s-doux); box-shadow: 0 4px 0 var(--g-relief); transition: transform .3s; }
.g-carte li.fait .g-noeud { background: var(--g-menthe); border-color: #4FBE8D; color: #fff; box-shadow: 0 4px 0 #3FA677; }
.g-carte li.ici .g-noeud { background: var(--g-ciel); border-color: #4F9FEF; color: #fff; box-shadow: 0 4px 0 #3E7FCC, 0 0 0 6px rgba(111, 184, 255, .3); transform: scale(1.15); }
.g-carte li.ici small { color: var(--s-encre); font-weight: 800; }
.g-carte li.saute { opacity: .4; }
.g-chemin { position: absolute; top: 18px; left: 28px; right: 28px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--s-ligne) 0 8px, transparent 8px 14px); }
.g-chemin i { display: block; height: 100%; border-radius: 3px; background: var(--g-menthe); transition: width .9s cubic-bezier(.3, .8, .3, 1); }
.g-detail { margin: -4px 0 0; text-align: center; font: 700 .95rem "Nunito", sans-serif; color: var(--s-doux); min-height: 1.4em; }
.g-detail:empty { visibility: hidden; }

/* ---------- Ecran de transition ---------- */
.g-trans { min-height: 78vh; }
.g-bulle-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.g-guide { display: inline-block; animation: g-saut .9s ease-out .2s both; filter: drop-shadow(0 6px 0 rgba(62, 127, 204, .18)); }
@keyframes g-saut { 0% { transform: translateY(20px) scale(.8); opacity: 0; } 60% { transform: translateY(-10px) scale(1.05); opacity: 1; } 100% { transform: none; } }
.g-bulle { position: relative; background: #fff; border: 3px solid var(--s-ligne); border-radius: 30px; box-shadow: 0 6px 0 var(--g-relief); padding: 20px 22px; text-align: center; max-width: 420px; animation: g-entre .45s .35s both; }
.g-bulle::before { content: ""; position: absolute; top: -14px; left: 50%; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom: 14px solid var(--s-ligne); }
.g-bulle h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 8px; font: 600 1.7rem var(--titre); color: var(--s-encre); }
.g-bulle h2 svg { color: var(--s-accent); }
.g-bulle p { margin: 0; font-size: 1.1rem; }
.g-fini { display: inline-flex; align-items: center; gap: 6px; background: #E3F7EE; color: #1F7D57; padding: 5px 14px; border-radius: 99px; font-weight: 800; margin-bottom: 12px !important; }
.g-fini svg { color: #2FA877; }
.g-suite { color: var(--s-doux); font-weight: 700; }
.g-trans .s-suite { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .g-guide, .g-bulle, .seq .s-question.entre, .g-chemin i { animation: none !important; transition: none !important; } }

/* ======================================================================
   SITE ENTIER : theme « jeu video doux » (meme univers que les lecons)
   ====================================================================== */
:root {
  --fond: #F2F8FF; --carte: #FFFFFF; --encre: #2B2D5C; --doux: #6E739E; --ligne: #D7E6F7; --relief: #C9DCF2;
  --soleil: #FFD666; --soleil-f: #E9B53C;
  --ciel: #6FB8FF; --ciel-f: #3E7FCC;
  --corail: #FF9C9C; --corail-f: #E06C6C;
  --menthe: #6BD3A6; --menthe-f: #3FA677;
  --lilas: #B3A2FF; --lilas-f: #8C78E6;
  --mandarine: #FFB08A; --mandarine-f: #E08A60;
  --principal: #3E8EE6; --principal-f: #2E6FC0;
  --vert: #2FA877; --vert-pale: #E3F7EE; --jaune-pale: #FFF6D6; --brun: #8A6400; --rouge: #D9653F; --rouge-pale: #FFF1EA; --gris-pale: #EEF3FA;
  --r: 26px;
}
body {
  background:
    radial-gradient(120px 46px at 10% 120px, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(90px 34px at 18% 104px, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(150px 52px at 88% 260px, rgba(255,255,255,.85) 60%, transparent 62%),
    radial-gradient(100px 38px at 80% 248px, rgba(255,255,255,.85) 60%, transparent 62%),
    linear-gradient(180deg, #CFE9FF 0%, #EAF5FF 40%, #FFF6EC 100%) fixed;
}
.bandeau-demo { background: rgba(255, 246, 214, .9); color: #7A5A00; }
.haut { background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 0; }
/* Cartes et boutons epais, en relief */
.carte, .etape-notion { border: 3px solid var(--ligne); border-radius: 28px; box-shadow: 0 6px 0 var(--relief); }
.btn { border-width: 3px; border-color: var(--ligne); border-radius: 20px; font-family: var(--titre); font-weight: 600; box-shadow: 0 5px 0 var(--relief); }
.btn:active { box-shadow: 0 1px 0 var(--relief); }
.btn.principal { background: var(--principal); border-color: var(--principal); box-shadow: 0 5px 0 var(--principal-f); }
.btn.mission { background: var(--principal); box-shadow: 0 6px 0 var(--principal-f); font-size: 1.3rem; }
.btn.mission:active { box-shadow: 0 2px 0 var(--principal-f); }
.btn.danger { color: var(--rouge); border-color: #F6CDBB; box-shadow: 0 5px 0 #F6CDBB; }
input, select, textarea { border-radius: 16px !important; border-width: 3px !important; border-color: var(--ligne) !important; }
/* Espace enfant : la bulle d'accueil */
.accueil-enfant, .accueil-enfant[class*="coul-"] { background: #fff; border: 3px solid var(--ligne); box-shadow: 0 8px 0 var(--relief); color: var(--encre); }
.accueil-enfant .perso-grand { background: radial-gradient(circle, #E6F3FF 0 60%, transparent 61%); border-radius: 50%; animation: g-flotte 4s ease-in-out infinite; }
@keyframes g-flotte { 50% { transform: translateY(-6px); } }
.barre-niveau { background: #EEF3FA !important; }
.barre-niveau i { background: linear-gradient(90deg, var(--soleil), #FFC24A) !important; }
/* Mes mondes : des iles blanches avec une couleur chacune */
.monde, .monde[class*="coul-"] { --m: var(--ciel); --mf: var(--ciel-f); --mp: #E6F3FF; background: #fff; color: var(--encre); border: 3px solid var(--ligne); box-shadow: 0 6px 0 var(--relief); }
.monde.coul-corail { --m: var(--corail); --mf: var(--corail-f); --mp: #FFECEC; }
.monde.coul-menthe { --m: var(--menthe); --mf: var(--menthe-f); --mp: #E3F7EE; }
.monde.coul-lilas { --m: var(--lilas); --mf: var(--lilas-f); --mp: #F0ECFF; }
.monde::after { background: var(--mp); opacity: .9; }
.monde-ico { background: var(--m); color: #fff; box-shadow: 0 4px 0 var(--mf); position: relative; z-index: 1; }
.monde h3, .monde p { position: relative; z-index: 1; }
.monde p { color: var(--doux); }
.monde .jauge { background: var(--mp) !important; }
.monde .jauge i { background: var(--m) !important; }
.monde .btn.blanc { background: var(--m); border-color: var(--m); color: #fff; box-shadow: 0 5px 0 var(--mf); }
.monde .lien-blanc { color: var(--mf); }
.entete-monde h1 { color: var(--encre); }
.entete-monde { padding: 18px 20px; border-radius: 28px; }
/* Mes jeux et trophees */
.jeu-tuile { background: #fff; color: var(--encre); border: 3px solid var(--ligne); box-shadow: 0 6px 0 var(--relief); }
.jeu-tuile .jeu-ico { background: var(--ciel); color: #fff; box-shadow: 0 4px 0 var(--ciel-f); }
.jeu-tuile > svg { color: var(--principal); }
.trophee { background: rgba(255,255,255,.6); border: 3px dashed var(--ligne); color: #A9B2C8; }
.trophee.gagne { border: 3px solid var(--soleil); box-shadow: 0 5px 0 var(--soleil-f); }
/* Monde : une carte de niveaux qui serpente */
.chemin-notions { padding-left: 0; gap: 18px; }
.chemin-notions::before { left: 50px; width: 8px; background: repeating-linear-gradient(rgba(255,255,255,.95) 0 14px, transparent 14px 24px); filter: drop-shadow(0 0 0 var(--ligne)); }
.etape-notion { background: #fff; padding: 14px 16px 14px 14px; transition: transform .2s; }
.etape-notion:nth-child(4n+2) { margin-left: 18px; } .etape-notion:nth-child(4n+3) { margin-left: 30px; } .etape-notion:nth-child(4n) { margin-left: 14px; }
.etape-notion .rond { width: 58px; height: 58px; font-size: 1.35rem; background: #fff; color: var(--doux); border: 3px solid var(--ligne); box-shadow: 0 5px 0 var(--relief); }
.etape-notion.faite .rond { background: var(--soleil); border-color: #F2C445; color: #7A5A00; box-shadow: 0 5px 0 var(--soleil-f); }
.etape-notion.ici { border-color: var(--ciel); box-shadow: 0 6px 0 #9FCFFF; }
.etape-notion.ici .rond { background: var(--ciel); border-color: #4F9FEF; color: #fff; box-shadow: 0 5px 0 var(--ciel-f), 0 0 0 7px rgba(111,184,255,.3); animation: g-flotte 2.4s ease-in-out infinite; }
.etape-notion .ici-etiquette { display: inline-block; margin-bottom: 4px; font: 800 .8rem "Nunito", sans-serif; color: var(--principal); }
@media (max-width: 560px) {
  .etape-notion { flex-wrap: wrap; }
  .etape-notion:nth-child(n) { margin-left: 0; }
  .etape-notion:nth-child(4n+2), .etape-notion:nth-child(4n) { margin-left: 12px; } .etape-notion:nth-child(4n+3) { margin-left: 22px; }
  .notion-actions { width: 100%; justify-content: stretch; } .notion-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .accueil-enfant .perso-grand, .etape-notion.ici .rond { animation: none; } }
.entete-monde.monde::after { display: none; }
.entete-monde .monde-ico { flex: none; margin: 0; }
.entete-monde h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); overflow-wrap: anywhere; }
.monde .btn.blanc { background: var(--mf); border-color: var(--mf); box-shadow: 0 5px 0 color-mix(in srgb, var(--mf) 70%, #000); }
.tab-notions .num, .tab-notions th.num { display: table-cell; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font: inherit; margin: 0; color: inherit; }
.kpi { border: 3px solid var(--ligne); border-radius: 24px; box-shadow: 0 5px 0 var(--relief); background: #fff; }

/* ===== Soustraction : blocs base 10 dans un tableau C | D | U ===== */
.cdu { --cu: #FFC94D; --cuf: #D9A21E; --cd: #6FB8FF; --cdf: #3E7FCC; --cc: #6BD3A6; --ccf: #3FA677; }
/* unite : petit cube */
.cdu .bs { width: 26px; height: 26px; border-radius: 5px; background: var(--cu); border: 2px solid var(--cuf); box-shadow: inset -3px -3px 0 rgba(0,0,0,.08); }
/* dizaine : barre de 10 cubes */
.cdu .bq { display: flex; flex-direction: column; gap: 0; padding: 0; width: 22px; border-radius: 5px; background: var(--cd); border: 2px solid var(--cdf); grid-template-columns: none; }
.cdu .bq b { width: 100%; height: 9px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid rgba(255,255,255,.6); }
.cdu .bq b:last-child { border-bottom: 0; }
/* centaine : plaque de 10 x 10 */
.cdu .bc { width: 64px; height: 64px; border-radius: 6px; background: var(--cc) repeating-linear-gradient(0deg, transparent 0 5.6px, rgba(255,255,255,.55) 5.6px 6.4px), var(--cc); border: 2px solid var(--ccf);
  background-image: repeating-linear-gradient(0deg, transparent 0 5.6px, rgba(255,255,255,.55) 5.6px 6.4px), repeating-linear-gradient(90deg, transparent 0 5.6px, rgba(255,255,255,.55) 5.6px 6.4px); }
.cdu .bc span { display: none; }
.cdu .s-table .s-zone-u { grid-template-columns: repeat(5, 26px); gap: 5px; }
.cdu .s-table.k3 .bq { width: 16px; } .cdu .s-table.k3 .bq b { height: 7px; }
.cdu .s-table.k3 .bc { width: 54px; height: 54px; }
.cdu .s-table.k3 .s-zone-u { grid-template-columns: repeat(5, 22px); }
.cdu .s-table.k3 .bs { width: 22px; height: 22px; }
/* en-tetes de colonnes du tableau */
.cdu .s-table { gap: 0; padding: 0; overflow: hidden; }
.cdu .s-table .s-zone { border-radius: 0; padding: 10px; min-height: 150px; }
.cdu .s-table .s-zone + .s-zone { border-left: 3px solid var(--s-ligne); }
.cdu .s-table.k3 .s-zone.z2 { border-bottom: 3px solid var(--s-ligne); }
.cdu .s-table.k3 .s-zone.z1 { border-left: 0; }
.cdu .s-zone small { align-self: stretch; text-align: center; font: 600 .95rem var(--titre); padding: 4px 6px; margin: -10px -10px 6px; color: #fff; }
.cdu .s-zone.z0 small { background: var(--cu); color: #6B4E00; }
.cdu .s-zone.z1 small { background: var(--cd); }
.cdu .s-zone.z2 small { background: var(--cc); }
/* miniatures (choix, echauffement) */
.cdu .mini .bs { width: 11px; height: 11px; border-width: 1px; border-radius: 2px; }
.cdu .mini .bq { width: 7px; border-width: 1px; border-radius: 2px; } .cdu .mini .bq b { height: 3px; border-bottom-width: 0; }
.cdu .mini .bc { width: 18px; height: 18px; border-width: 1px; background-image: none; }
.cdu .s-objets .bq { width: 12px; } .cdu .s-objets .bq b { height: 6px; }
.cdu .s-objets .bs { width: 16px; height: 16px; } .cdu .s-objets .bc { width: 44px; height: 44px; }
.cdu .bs[data-n]::after, .cdu .bq[data-n]::after, .cdu .bc[data-n]::after { z-index: 3; }
.cdu .bs.parti, .cdu .bq.parti, .cdu .bc.parti { opacity: .2; filter: grayscale(1); }

/* ===== Operation posee avec retenue ===== */
.op-pose { border-collapse: collapse; font: 600 2.6rem/1.25 var(--titre); color: var(--s-encre, #2B2D5C); margin: 0 auto; }
.op-pose td { min-width: 1.5em; text-align: right; padding: 4px 10px 4px 4px; position: relative; border-radius: 12px; }
.op-pose td.actif { background: #FFF8D9; }
.op-pose sup { font-size: .5em; color: #E0784F; vertical-align: .9em; margin-right: 1px; }
.op-pose tr.bas td { border-bottom: 4px solid var(--s-encre, #2B2D5C); border-radius: 0; }
.op-pose tr.bas td.actif { border-radius: 0; }
.op-pose tr.bas i { position: absolute; left: -.55em; font-style: normal; }
.op-pose sub { position: absolute; left: -.1em; top: -.2em; font-size: .42em; color: #E0784F; background: #FFF1E8; border-radius: 8px; padding: 0 4px; line-height: 1.3; }
.op-pose tr.res td { color: var(--s-juste, #2FA877); height: 1.3em; }
.notion-actions { flex-wrap: wrap; }
.notion-actions .btn-jeu { flex: 1 1 100%; justify-content: center; background: #fff; color: var(--principal); border-color: var(--ciel); box-shadow: 0 5px 0 #9FCFFF; }
/* addition : le 2e nombre est raye pour le distinguer du 1er ; les blocs faits par echange sont entoures */
.cdu .bs.nouveau, .cdu .bq.nouveau, .cdu .bc.nouveau { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 3px, transparent 3px 7px); }
.cdu .bs.nouveau { background-color: var(--cu); border-color: var(--cuf); }
.cdu .bq.nouveau { background-color: var(--cd); border-color: var(--cdf); }
.cdu .bc.nouveau { background-color: var(--cc); }
.cdu .bq.fabrique, .cdu .bc.fabrique { box-shadow: 0 0 0 3px #E0784F; }
.cdu .s-legende-mini .pt { border-radius: 4px; background: var(--cu); border-color: var(--cuf); }
.cdu .s-legende-mini .pt.nouveau { background: var(--cu) repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 2px, transparent 2px 5px); border-color: var(--cuf); }

/* ===== Abonnement ===== */
.abo { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.abo h1 { font: 600 clamp(1.7rem, 5vw, 2.4rem)/1.15 var(--titre); margin: 0; }
.abo-sous { color: var(--doux); font-size: 1.1rem; margin: 0; }
.abo-verrou { align-self: center; display: inline-flex; align-items: center; gap: 6px; background: #FFF6D6; color: #7A5A00; padding: 6px 14px; border-radius: 99px; font-weight: 800; margin: 0; }
.forfaits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: center; }
.forfait { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 20px 20px; }
.forfait.vedette { border-color: var(--ciel); box-shadow: 0 6px 0 #9FCFFF; }
.forfait h2 { margin: 0; font: 600 1.3rem var(--titre); }
.forfait .prix { margin: 0; color: var(--doux); } .forfait .prix b { font: 600 2.4rem var(--titre); color: var(--encre); }
.forfait .equiv { margin: 0 0 10px; color: var(--vert); font-weight: 800; }
.forfait .ruban { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--soleil); color: #6B4E00; padding: 4px 14px; border-radius: 99px; font-weight: 800; font-size: .85rem; white-space: nowrap; box-shadow: 0 3px 0 var(--soleil-f); }
.abo-liste { list-style: none; margin: 0 auto; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.abo-liste li { display: flex; align-items: center; gap: 8px; } .abo-liste svg { color: var(--vert); flex: none; }
.abo-petit { color: var(--doux); font-size: .9rem; margin: 0; }
.abo-ok { background: var(--vert-pale); color: #1F7D57; padding: 12px; border-radius: 16px; font-weight: 800; }
.etape-notion.verrou { background: rgba(255,255,255,.7); }
.etape-notion.verrou .rond { background: #EEF3FA; color: var(--doux); }
.etape-notion.verrou h3 { color: var(--doux); }
.abo-compte p { margin: 0 0 12px; }

/* ===== Exercices a l'infini ===== */
.x-liste, .x-paliers { display: flex; flex-direction: column; gap: 12px; }
.x-methode, .x-palier { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--s-encre); cursor: pointer; padding: 16px; transition: transform .08s, box-shadow .08s; }
.x-methode:active, .x-palier:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--g-relief); }
.x-methode.choisie { border-color: var(--g-ciel); box-shadow: 0 6px 0 #9FCFFF; }
.x-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-txt b { font: 600 1.15rem var(--titre); }
.x-txt span { color: var(--s-doux); font-size: .95rem; }
.x-txt small { color: var(--s-juste); font-weight: 800; }
.x-mini { flex: none; display: grid; justify-items: end; padding: 6px 10px; border-radius: 14px; background: var(--s-fond); font: 600 1.15rem/1.1 var(--titre); min-width: 76px; }
.x-mini .h { font-size: .7rem; color: var(--s-accent); letter-spacing: .3em; }
.x-mini .barre { text-decoration: line-through; text-decoration-color: var(--s-doux); }
.x-mini .b { border-bottom: 3px solid var(--s-encre); }
.x-mini .r { color: var(--s-juste); }
.x-num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--s-accent-pale); color: var(--s-accent); font: 600 1.25rem var(--titre); }
.x-palier.fini .x-num { background: var(--g-citron); color: #7A5A00; }
.x-palier.conseil { border-color: var(--g-ciel); box-shadow: 0 6px 0 #9FCFFF; }
.x-palier em { margin-left: auto; font-style: normal; font-weight: 800; font-size: .8rem; color: var(--s-accent); background: var(--s-accent-pale); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.x-barre { display: flex; justify-content: space-around; background: #fff; border: 3px solid var(--s-ligne); border-radius: 20px; box-shadow: 0 4px 0 var(--g-relief); padding: 8px; font-weight: 700; color: var(--s-doux); }
.x-barre b { font: 600 1.3rem var(--titre); color: var(--s-encre); margin-left: 4px; }
.x-pap { display: flex; justify-content: center; }
.x-op { border-collapse: collapse; font: 600 2.6rem/1.2 var(--titre); color: var(--s-encre); }
.x-op td { min-width: 1.45em; text-align: center; padding: 2px 6px; position: relative; border-radius: 10px; }
.x-op td.actif { background: #FFF8D9; }
.x-op tr.h td { font-size: 1rem; color: var(--s-accent); height: 1.2em; background: none; }
.x-op tr.h i.ret { font-style: normal; background: #E6F3FF; border-radius: 6px; padding: 0 5px; }
.x-op tr.a td.barre { color: var(--s-doux); text-decoration: line-through; text-decoration-thickness: 3px; }
.x-op tr.a td.tap { box-shadow: 0 0 0 3px var(--g-ciel); background: #E6F3FF; animation: g-sautille 1.2s ease-in-out infinite; }
.x-op tr.a td { cursor: pointer; }
.x-op sup { font-size: .45em; color: #E0784F; vertical-align: .9em; }
.x-op tr.b td { border-bottom: 4px solid var(--s-encre); border-radius: 0; }
.x-op tr.b td.actif { border-radius: 0; }
.x-op i.sg { position: absolute; left: -.5em; font-style: normal; }
.x-op sub { position: absolute; left: -.05em; top: -.15em; font-size: .4em; color: #E0784F; background: #FFF1E8; border-radius: 8px; padding: 0 4px; line-height: 1.3; }
.x-op tr.r td { color: var(--s-juste); height: 1.25em; }
.x-actions, .x-suite { display: flex; gap: 10px; } .x-actions .btn, .x-suite .btn { flex: 1; justify-content: center; }
.x-suite { margin-top: 10px; }

/* ===== Ateliers (28 notions) : plan nomme, transitions, fin claire ===== */
.parcours { position: relative; display: flex; flex-direction: column; gap: 12px; }
.parcours .g-plan { margin-bottom: 0; }
.parcours .g-detail { margin: 0; font-size: 1rem; color: var(--encre); background: rgba(255,255,255,.75); border-radius: 14px; padding: 8px 12px; }
.p-trans { position: absolute; inset: 70px 0 auto 0; z-index: 30; display: flex; flex-direction: column; gap: 16px; padding: 10px 0 30px; min-height: 70vh;
  background: linear-gradient(180deg, rgba(234,245,255,.97), rgba(255,246,236,.97)); border-radius: 28px; }
.p-trans .btn { align-self: stretch; margin: 0 6px; justify-content: center; }
.p-fin { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.p-fin h2 { margin: 0; font: 600 1.6rem var(--titre); }
.p-fin-titre { margin: 0; color: var(--doux); font-weight: 800; }
.p-retiens { text-align: left; background: #FFF8D9; border-radius: 18px; padding: 12px 14px; box-shadow: inset 0 0 0 2px var(--soleil); }
.p-retiens b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--titre); font-weight: 600; }
.p-retiens p { margin: 6px 0 0; font-size: 1.05rem; }
.p-fin-suite { margin: 0; color: var(--doux); }
.carte-problemes { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 18px 0 6px; color: var(--encre); text-decoration: none; }
.cp-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--lilas); color: #fff; box-shadow: 0 4px 0 var(--lilas-f); flex: none; }
.cp-txt { display: flex; flex-direction: column; flex: 1; } .cp-txt b { font: 600 1.3rem var(--titre); } .cp-txt span { color: var(--doux); }
.carte-problemes > svg { color: var(--principal); }

/* ===== Exercices de toutes les notions + Problemes ===== */
.x-enonce { padding: 16px 18px; }
.x-enonce .x-q { margin: 0; font-size: 1.15rem; line-height: 1.5; color: var(--s-encre); }
.x-enonce .visuel { margin-top: 12px; display: flex; justify-content: center; }
.x-enonce .visuel svg { max-width: 100%; height: auto; }
.x-expl { color: var(--s-doux); font-size: .95rem; }
.x-maitrise { font-style: normal; font-size: .72rem; font-weight: 800; color: #7A5A00; background: var(--g-citron); padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
.pb-histoire { font-size: 1.2rem !important; }
.pb-etape { margin: 10px 0 0; color: var(--s-accent); font-weight: 700; }
.pb-modele { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pb-ligne { display: flex; gap: 4px; }
.pb-part { display: grid; place-items: center; min-width: 38px; height: 44px; border-radius: 12px; background: #DDEBFF; box-shadow: inset 0 0 0 2px #9FC3F5; font: 600 1.05rem var(--titre); color: #1F3F6B; }
.pb-part.b { background: #FFE9D6; box-shadow: inset 0 0 0 2px #F2B98A; color: #6B3A12; }
.pb-part.inc { background: #FFF6CC; box-shadow: inset 0 0 0 2px #E8C34A; color: #7A5A00; }
.pb-vide { min-width: 38px; }
.pb-tout { display: flex; align-items: center; gap: 8px; font: 600 1.05rem var(--titre); color: var(--s-encre); }
.pb-tout i { flex: 1; height: 0; border-top: 2px dashed #A8B4C6; }
.pb-tout.inc span { background: #FFF6CC; padding: 2px 12px; border-radius: 99px; box-shadow: inset 0 0 0 2px #E8C34A; }
.s-choix .pb-op { display: block; font: 700 1.8rem var(--titre); line-height: 1; }
.s-choix button small { display: block; font-size: .78rem; font-weight: 600; opacity: .8; margin-top: 4px; }
.journal .lead { margin-top: 0; }

/* =====================================================================
   Habillage v2 « Paysage doux » : un vrai décor illustré (ciel, collines,
   chemin d'étoiles), des mondes en cartes-paysages, des boutons bombés.
   La couleur vit dans les dessins ; le reste reste blanc et calme.
   ===================================================================== */
body:has(.haut.enfant) {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C240 70 420 90 640 120 C860 150 1080 80 1440 100 L1440 220 L0 220Z' fill='%23DDF2E6'/%3E%3Cpath d='M0 160 C300 130 600 150 900 170 C1140 186 1300 160 1440 156 L1440 220 L0 220Z' fill='%23C6EAD6'/%3E%3C/svg%3E") bottom / 100% 160px no-repeat fixed,
    linear-gradient(180deg, #E4F1FF 0, #F4F9FF 340px, #FBFDFF 100%);
}
.haut.enfant { background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid rgba(215, 230, 247, .8); }

/* Boutons bombés : un reflet en haut, un relief en bas */
.btn.principal, .btn.mission, .monde .btn.blanc, .seq .btn.principal, .s-pave .valider {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%);
}
.btn { letter-spacing: .01em; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #FFD666; outline-offset: 3px; }

/* --- Accueil : la scène --- */
.accueil-enfant.v2 { display: block; padding: 0; overflow: hidden; text-align: left; border: 0; box-shadow: 0 10px 30px rgba(62, 127, 204, .16), 0 2px 0 #D7E6F7; border-radius: 30px; }
.ae-scene { position: relative; line-height: 0; }
.ae-scene .scene { width: 100%; height: auto; aspect-ratio: 360 / 170; display: block; }
.accueil-enfant.v2 .perso-grand { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); background: none; animation: g-flotte 4s ease-in-out infinite; }
.accueil-enfant.v2 .perso-grand svg { width: 104px; height: 104px; filter: drop-shadow(0 8px 6px rgba(43, 45, 92, .18)); }
.accueil-enfant.v2 .accueil-texte { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.accueil-enfant.v2 h1 { margin: 0; font-size: 2rem; text-align: center; }
.accueil-enfant.v2 .niveau { margin: 0; text-align: center; color: var(--doux); font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.accueil-enfant.v2 .niveau svg { color: #E9B53C; }
.accueil-enfant.v2 .btn.mission { width: 100%; justify-content: center; }

/* --- Mondes : cartes-paysages --- */
.mondes { gap: 16px; }
.monde.v2 { padding: 0; background: #fff; border: 0; color: var(--encre); box-shadow: 0 8px 24px rgba(62, 127, 204, .12), 0 2px 0 #D7E6F7; border-radius: 26px; overflow: hidden; }
.monde.v2::before, .monde.v2::after { display: none; }
.monde-scene { display: block; line-height: 0; }
.monde-scene .banniere { width: 100%; height: 118px; display: block; }
.monde-corps { padding: 4px 18px 18px; }
.monde-tete { display: flex; align-items: center; gap: 12px; margin-top: -26px; }
.monde.v2 .monde-ico { width: 52px; height: 52px; border-radius: 16px; margin: 0; border: 3px solid #fff; flex: none; }
.monde.v2 h3 { margin: 22px 0 0; font-size: 1.35rem; }
.monde.v2 .jauge { margin-top: 12px; height: 10px; border-radius: 99px; }
.monde.v2 p { margin: 6px 0 12px; font-size: .95rem; }
.monde.v2 .rangee { align-items: center; }

/* --- Carte Problèmes --- */
.carte-problemes { border-radius: 26px; box-shadow: 0 8px 24px rgba(140, 120, 230, .14), 0 2px 0 #E1DAFF; border: 0; background: linear-gradient(120deg, #fff 55%, #F4F1FF); }
.cp-ico { width: 84px; height: 64px; background: #F4F1FF; box-shadow: none; border-radius: 18px; }
.cp-ico .cp-dessin { width: 72px; height: 54px; }

/* --- Titres de section --- */
.titre-section.gauche { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.titre-section.gauche::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #D7E6F7, transparent); }

/* --- Trophées : médaillons --- */
.trophee { border-radius: 22px; }
.trophee.gagne { background: linear-gradient(180deg, #FFF6D6, #FFE9A8); box-shadow: 0 4px 0 #E9B53C; }

/* --- Cartes de leçon et d'exercice : un peu plus de douceur --- */
.seq .carte, .x-enonce { box-shadow: 0 8px 22px rgba(62, 127, 204, .1), 0 2px 0 #D7E6F7; border: 0; }
.s-question.q { box-shadow: 0 8px 22px rgba(62, 127, 204, .1), 0 2px 0 #D7E6F7; }
.x-barre { border: 0; box-shadow: 0 6px 18px rgba(62, 127, 204, .1), 0 2px 0 #D7E6F7; }

@media (min-width: 720px) {
  .accueil-enfant.v2 { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
  .accueil-enfant.v2 .accueil-texte { justify-content: center; padding: 24px 28px; }
  .accueil-enfant.v2 h1, .accueil-enfant.v2 .niveau { text-align: left; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .accueil-enfant.v2 .perso-grand { animation: none; } }
a.x-methode, a.x-methode * { text-decoration: none; color: inherit; }
a.x-methode .x-txt span { color: var(--s-doux); }
.entete-monde.v2 { display: block; padding: 0; overflow: hidden; background: #fff; border: 0; color: var(--encre); box-shadow: 0 8px 24px rgba(62, 127, 204, .12), 0 2px 0 #D7E6F7; border-radius: 26px; }
.entete-monde.v2::before, .entete-monde.v2::after { display: none; }
.em-scene { line-height: 0; } .em-scene .banniere { width: 100%; height: 110px; display: block; }
.em-corps { display: flex; gap: 14px; align-items: flex-start; padding: 0 18px 16px; }
.entete-monde.v2 .monde-ico { width: 56px; height: 56px; border-radius: 18px; margin-top: -24px; border: 3px solid #fff; }
.entete-monde.v2 h1 { margin: 10px 0 2px; font-size: 1.7rem; }
.entete-monde.v2 p { margin: 0; color: var(--doux); font-weight: 700; font-size: .95rem; }
.pb-modele.comp { gap: 8px; }
.pb-rang { display: flex; align-items: center; gap: 8px; }
.pb-rang > b { width: 64px; flex: none; font-size: .85rem; color: var(--s-doux); text-align: right; }
.pb-rang .pb-ligne { flex: 1; }
.pb-ecart { display: grid; place-items: center; min-width: 60px; height: 30px; border-radius: 10px; border: 2px dashed #E8C34A; background: #FFF6CC; color: #7A5A00; font: 600 .95rem var(--titre); }
.g-carte li.ici small { margin-top: 6px; }
@media (min-width: 720px) {
  .entete-monde.v2 { position: relative; min-height: 130px; display: flex; align-items: center; }
  .entete-monde.v2 .em-scene { position: absolute; inset: 0 0 0 auto; width: 460px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
  .entete-monde.v2 .em-scene .banniere { height: 100%; }
  .entete-monde.v2 .em-corps { position: relative; padding: 22px 24px; align-items: center; max-width: 60%; }
  .entete-monde.v2 .monde-ico { margin-top: 0; }
  .entete-monde.v2 h1 { margin-top: 0; }
}
