/* Ma Lecture V2 — prototype. ADN V1 : fond clair, barre sombre, cartes arrondies. */
:root {
  --bleu: #3569d4; --bleu-d: #274ea0;
  --vert: #42b883; --orange: #f2a63b; --rouge: #ef6f6f;
  --sombre: #202a44; --texte: #1e2b40; --gris: #6b7688;
  --bg: #f4f6fb; --carte: #ffffff; --bord: #e5e9f2;
  --ombre: 0 2px 10px rgba(30,43,64,.07);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--texte); line-height: 1.45; }

/* ---- Nav ---- */
#nav { background: var(--sombre); color: #fff; display: flex; align-items: center;
  gap: 6px; padding: 8px 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.nav-btn { background: transparent; color: #d7ddea; border: 0; padding: 8px 12px;
  border-radius: 10px; font-size: 15px; cursor: pointer; font-weight: 600; }
.nav-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-btn.actif { background: var(--bleu); color: #fff; }
.nav-logo { font-size: 17px; color: #fff; }
.tagv2 { background: var(--vert); color: #fff; font-size: 11px; padding: 1px 6px;
  border-radius: 6px; vertical-align: middle; }
.nav-groupe { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-profil { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nav-profil select { border-radius: 8px; border: 0; padding: 5px 8px; }

.banniere-proto { background: #fff7e6; color: #8a6d3b; text-align: center;
  font-size: 13px; padding: 6px 10px; border-bottom: 1px solid #f0e2c4; }

#view { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }

/* ---- Cartes & grille ---- */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px;
  padding: 18px; box-shadow: var(--ombre); margin-bottom: 16px; }
.grille { display: grid; gap: 16px; }
.grille-3 { grid-template-columns: 1fr 1fr 1fr; }
.grille-2 { grid-template-columns: 1fr 1fr; }
h1 { font-size: 24px; margin: 4px 0 16px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.gris { color: var(--gris); }
.petit { font-size: 13px; }

/* ---- Boutons ---- */
.btn { background: var(--bleu); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 18px; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--bleu-d); }
.btn-2 { background: #eef2fb; color: var(--bleu-d); }
.btn-2:hover { background: #e0e8fa; }
.btn-lg { font-size: 18px; padding: 16px 22px; width: 100%; }
.btn-discret { background: transparent; border: 0; color: var(--gris); cursor: pointer;
  font-size: 14px; padding: 4px 6px; }
.btn-discret:hover { color: var(--bleu); }

/* ---- Carte reco (accueil) ---- */
.reco { background: linear-gradient(120deg, #eef3ff, #ffffff); border: 2px solid var(--bleu);
  border-radius: 18px; padding: 22px; }
.reco .badge { display: inline-block; background: var(--bleu); color: #fff; font-size: 12px;
  font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.reco h2 { font-size: 26px; margin: 10px 0 4px; }

/* ---- Tuiles matières ---- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tuile { border: 1px solid var(--bord); border-radius: 14px; padding: 16px; cursor: pointer;
  background: #fff; text-align: center; transition: transform .08s; }
.tuile:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.tuile .ico { font-size: 32px; }
.tuile .nom { font-weight: 700; margin-top: 6px; }
.tuile .meta { font-size: 12px; color: var(--gris); margin-top: 3px; }

/* ---- Arbre / statuts ---- */
.dom { margin-bottom: 14px; }
.dom-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.skill-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: #fafbfe; border: 1px solid var(--bord); margin-bottom: 6px; }
.pastille { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.etat-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; color: #fff; white-space: nowrap; }
.skill-nom { flex: 1; }
.barre { height: 8px; background: #e9edf5; border-radius: 6px; overflow: hidden; width: 90px; flex: 0 0 auto; }
.barre > i { display: block; height: 100%; background: var(--vert); }
.mini-jauge { height: 6px; background: #e9edf5; border-radius: 6px; overflow: hidden; }
.mini-jauge > i { display: block; height: 100%; background: var(--bleu); }

/* ---- Séance ---- */
.seance-wrap { max-width: 640px; margin: 0 auto; }
.progress-line { height: 8px; background: #e9edf5; border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.progress-line > i { display: block; height: 100%; background: var(--bleu); transition: width .3s; }
.consigne { font-size: 14px; color: var(--gris); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.question { font-size: 30px; font-weight: 700; margin: 14px 0 22px; text-align: center; min-height: 60px; }
.choix { display: grid; gap: 12px; }
.choix button { font-size: 20px; padding: 16px; border-radius: 14px; border: 2px solid var(--bord);
  background: #fff; cursor: pointer; font-weight: 600; }
.choix button:hover { border-color: var(--bleu); }
.choix button.bon { border-color: var(--vert); background: #eafaf2; }
.choix button.mauvais { border-color: var(--rouge); background: #fdeeee; }
.num-input { font-size: 28px; padding: 12px 16px; width: 160px; text-align: center; border-radius: 12px;
  border: 2px solid var(--bord); }
.feedback { text-align: center; font-size: 20px; font-weight: 700; margin: 16px 0; min-height: 28px; }
.feedback.ok { color: var(--vert); } .feedback.ko { color: var(--rouge); }
.parent-valide { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.parent-valide button { padding: 14px 18px; border-radius: 12px; border: 2px solid var(--bord);
  background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }

/* ---- Badges / points ---- */
.badge-list { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: #eef2fb; border-radius: 20px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.points-jauge { height: 12px; background: #e9edf5; border-radius: 8px; overflow: hidden; margin-top: 6px; }
.points-jauge > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--vert)); }

/* ---- Divers ---- */
.pill-note { background: #fff7e6; border: 1px solid #f0e2c4; color: #8a6d3b; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
table.synthese { width: 100%; border-collapse: collapse; }
table.synthese td { padding: 6px 8px; border-bottom: 1px solid var(--bord); font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
input[type=text], select { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--bord); font-size: 15px; }

/* =====================  ARBRE / PARCOURS LUDIQUE  ===================== */
.arbre-grille { grid-template-columns: 2fr 1fr; align-items: start; }
.legende-etats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--gris);
  padding: 10px 14px; }
.legende-etats b { color: var(--texte); }
.legende-etats span { white-space: nowrap; }

.chemin { display: flex; flex-wrap: wrap; gap: 14px 4px; align-items: flex-start; padding: 6px 0 2px; }
.lien-noeud { align-self: flex-start; margin-top: 24px; font-size: 22px; font-weight: 800; opacity: .55; }
.noeud { width: 96px; text-align: center; cursor: pointer; position: relative; user-select: none; }
.noeud .rond { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  border: 4px solid; background: #fff; box-shadow: 0 3px 0 rgba(30,43,64,.08);
  transition: transform .12s ease, box-shadow .12s ease; }
.noeud:hover .rond { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 14px rgba(30,43,64,.15); }
.noeud.choisi .rond { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(53,105,212,.22); }
.noeud-nom { font-size: 11.5px; line-height: 1.15; margin-top: 5px; color: var(--texte);
  background: #f2f5fb; border-radius: 8px; padding: 3px 5px; }
/* remplissage joyeux selon l'état */
.rond.etat-decouverte  { background: linear-gradient(150deg, #eaf2ff, #cfe1ff); }
.rond.etat-a_renforcer { background: linear-gradient(150deg, #fdecec, #ffd9d9); }
.rond.etat-en_cours    { background: linear-gradient(150deg, #fff3df, #ffe1b0); }
.rond.etat-maitrise    { background: linear-gradient(150deg, #e5f9ef, #bdeed6); }
.rond.etat-solide      { background: linear-gradient(150deg, #d9f5e7, #a8e6c8);
  box-shadow: 0 0 14px rgba(66,184,131,.55); }
.rond.etat-locked, .rond.etat-later { background: #f2f4f8; opacity: .75; }
.noeud .cloche { position: absolute; top: -8px; right: 10px; font-size: 17px; z-index: 2;
  animation: sonne 1.6s ease-in-out infinite; }
@keyframes sonne { 0%,100% { transform: rotate(0) } 12% { transform: rotate(18deg) } 24% { transform: rotate(-14deg) } 36% { transform: rotate(8deg) } 48% { transform: rotate(0) } }
.panneau-detail { position: sticky; top: 66px; }
.skill-row.estompe { opacity: .6; }

/* Mes étoiles : évolutions façon V1 (☆ 🌱 🌿 ⭐ 🌟) */
.evo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; align-items: start; }
.evo-item { position: relative; text-align: center; padding: 10px 4px 8px; border-radius: 14px;
  border: 2px solid var(--bord); background: #fafbfe; cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease; }
.evo-item:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.evo-etoile { font-size: 30px; line-height: 1.1; }
.evo-nom { font-size: 12px; font-weight: 700; margin-top: 3px; color: var(--texte); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evo-item.etat-decouverte, .evo-item.etat-a_renforcer { border-color: #f3c1c1; background: #fdf3f3; }
.evo-item.etat-en_cours { border-color: #f0d9ae; background: #fdf8ec; }
.evo-item.etat-maitrise { border-color: #b5e5ce; background: #effaf4; }
.evo-item.etat-solide { border-color: #7fd4ab; background: #e7f8ef; box-shadow: 0 0 10px rgba(66,184,131,.35); }
.evo-item.etat-later { opacity: .55; }
.evo-cloche { position: absolute; top: -7px; right: 6px; font-size: 15px;
  animation: sonne 1.6s ease-in-out infinite; }
.badge-verrouille { opacity: .5; filter: grayscale(1); cursor: default; }
.badge-verrouille:hover { transform: none; box-shadow: none; }
.tuile-jeu { background: linear-gradient(150deg, #fff8ec, #ffeccc); border-color: #f0d9ae; }
.tuile-jeu .ico { font-size: 40px; }
/* carte jeux (home), série, date */
.carte-jeux { cursor: pointer; background: linear-gradient(120deg, #fff8ec, #ffefd2);
  border: 2px solid #f0d9ae; transition: transform .1s; }
.carte-jeux:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.jeux-bandeau { display: flex; align-items: center; gap: 14px; }
.jeux-de { font-size: 42px; }
.serie-flamme { font-size: 18px; font-weight: 800; color: #e2574c; background: #fdeeec;
  border-radius: 20px; padding: 4px 12px; }
.date-classe { font-weight: 700; color: var(--bleu-d); background: #eef2fb;
  border-radius: 12px; padding: 8px 14px; font-size: 15px; }

/* Plaisir de lire */
.ressentis { display: inline-flex; gap: 6px; margin-left: 6px; }
.ressenti-btn { font-size: 24px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--bord);
  background: #fff; cursor: pointer; }
.ressenti-btn.actif { border-color: var(--bleu); background: #eef4ff; transform: scale(1.1); }

/* Ma minute : chrono + courbe MCLM */
.chrono-grand { font-size: 96px; font-weight: 900; color: var(--bleu); line-height: 1.1;
  font-variant-numeric: tabular-nums; margin: 10px 0; }
.chrono-grand.urgent { color: var(--rouge); animation: pulseChrono 1s infinite; }
@keyframes pulseChrono { 50% { transform: scale(1.06); } }
.courbe-mclm { width: 100%; max-width: 380px; height: auto; background: #fafbff;
  border: 1px solid var(--bord); border-radius: 12px; }

/* barre de mode bien visible (accueil enfant) */
.mode-barre { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef3ff, #fff); border: 2px solid var(--bord); padding: 14px 18px; }
.mode-question { font-weight: 800; font-size: 17px; }
.mode-boutons { display: flex; gap: 10px; }
.mode-choix { font-size: 15px; font-weight: 700; line-height: 1.3; padding: 10px 22px;
  border-radius: 14px; border: 2px solid var(--bord); background: #fff; cursor: pointer; color: var(--gris); }
.mode-choix.actif { border-color: var(--bleu); background: var(--bleu); color: #fff;
  box-shadow: 0 4px 10px rgba(53,105,212,.3); }
.mode-aide { flex: 1 1 200px; }

/* arbre façon maquette : noeuds ronds reliés */
.arbre-svg { width: 100%; max-width: 900px; height: auto; display: block; margin: 0 auto;
  background: linear-gradient(180deg, #fafbff, #f3f6fc); border-radius: 14px; border: 1px solid var(--bord); }
.noeud-svg:hover circle { filter: brightness(1.08); }
.legende-maquette { display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  justify-content: center; margin: 10px 0 4px; font-size: 13.5px; font-weight: 600; }
.legende-maquette i { display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 5px; vertical-align: -1px; }
.apparait { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97) } to { opacity: 1; transform: none } }

/* vue générale : barres de progression par matière (façon maquette) */
.prog-mat { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent; transition: background .12s; }
.prog-mat:hover { background: #f3f6fc; border-color: var(--bord); }
.prog-ico { font-size: 22px; flex: 0 0 auto; }
.prog-nom { font-weight: 700; flex: 0 0 190px; }
.prog-barre { flex: 1; height: 12px; background: #e9edf5; border-radius: 8px; overflow: hidden; }
.prog-barre > i { display: block; height: 100%; border-radius: 8px; transition: width .4s ease; }
.prog-pct { font-weight: 800; width: 46px; text-align: right; }
.prog-mat .chevron { color: var(--gris); font-size: 20px; font-weight: 700; }
.btn-voir { padding: 7px 12px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.prog-mat:hover .btn-voir { background: var(--bleu); color: #fff; }

/* visite guidée (parent) */
#visite-boite { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: min(560px, 94vw); background: #fff; border: 2px solid var(--bleu);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(30,43,64,.25); padding: 16px 18px;
  z-index: 60; animation: pop .22s ease; }
#visite-boite p { margin: 10px 0 14px; font-size: 14.5px; line-height: 1.5; }
.visite-tete { display: flex; align-items: center; gap: 10px; }
.visite-tete b { font-size: 16px; flex: 1; }
.surligne { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 16px;
  box-shadow: 0 0 0 6px rgba(53,105,212,.15); }

/* bibliothèque d'exercices (parent) */
.exo-ligne { display: flex; gap: 14px; align-items: flex-start; padding: 10px 4px;
  border-bottom: 1px solid var(--bord); }
.exo-ligne:last-child { border-bottom: 0; }
.exo-nom { flex: 0 0 240px; }
.exo-apercu { flex: 1; font-size: 14.5px; }
.exo-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }

/* cap de l'année (parent) */
.cap-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; flex-wrap: wrap; }
.cap-nom { font-weight: 600; flex: 0 0 180px; }
.cap-jauge { flex: 1; min-width: 120px; height: 10px; }
.cap-pct { font-weight: 800; width: 44px; text-align: right; }

/* =====================  AGENDA DEVOIRS  ===================== */
.agenda { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.jour-case { background: #fafbfe; border: 1px solid var(--bord); border-radius: 12px;
  min-height: 92px; padding: 7px 8px 24px; cursor: pointer; position: relative; transition: background .12s; }
.jour-case:hover { background: #f0f4fc; }
.jour-case.aujourdhui { border: 2px solid var(--bleu); background: #eef4ff; }
.jour-tete { font-size: 12px; font-weight: 700; color: var(--gris); margin-bottom: 5px; }
.tag-auj { background: var(--bleu); color: #fff; font-size: 10px; border-radius: 8px; padding: 1px 6px; }
.devoir-case { background: #fff7e6; border: 1px solid #f0e2c4; border-radius: 8px;
  font-size: 12px; padding: 3px 6px; margin-bottom: 4px; }
.devoir-case.fait { background: #eafaf2; border-color: #bfe8d4; text-decoration: line-through; color: var(--gris); }
.jour-plus { position: absolute; bottom: 3px; right: 8px; color: #b9c2d0; font-weight: 700; }
.jour-case:hover .jour-plus { color: var(--bleu); }

/* =====================  PROGRAMME (parent)  ===================== */
.prog-periode { border-left: 3px solid var(--bord); margin: 12px 0; padding: 2px 0 2px 12px; }
.prog-item { padding: 3px 0; font-size: 14.5px; }

/* =====================  MASCOTTE & IMAGES  ===================== */
/* mix-blend-mode: multiply gomme les fonds blancs des images générées */
.reco { position: relative; padding-right: 150px; } /* le renard a SA zone, hors boutons */
.mascotte-reco { position: absolute; right: 16px; bottom: 12px; height: 115px; pointer-events: none;
  mix-blend-mode: multiply; transform: scaleX(-1); } /* il pointe VERS le contenu */
.mascotte-fin { height: 140px; margin-bottom: 6px; mix-blend-mode: multiply; }
/* taille relative : l'icône s'adapte au texte qui l'entoure */
.ico-mat { width: 1.5em; height: 1.5em; object-fit: contain; mix-blend-mode: multiply;
  vertical-align: -0.35em; }
.tuile .ico .ico-mat { width: 38px; height: 38px; vertical-align: middle; }
.prog-ico .ico-mat { width: 30px; height: 30px; }
.masc-jeux { height: 86px; mix-blend-mode: multiply; }
.carte-question { position: relative; }
/* en haut à droite, à côté de la consigne : jamais sur les boutons de réponse */
.masc-seance { position: absolute; top: 8px; right: 12px; height: 52px; opacity: .9;
  mix-blend-mode: multiply; pointer-events: none; }
.img-arbre { width: 100%; max-height: 120px; object-fit: contain; mix-blend-mode: multiply; margin: 4px 0; }

/* apparition douce des vues */
#view > * { animation: pop .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .noeud .cloche, #view > *, .apparait { animation: none; }
  .noeud:hover .rond, .noeud.choisi .rond { transform: none; }
}

/* =====================  MOBILE  ===================== */
@media (max-width: 820px) {
  .grille-3, .grille-2, .arbre-grille { grid-template-columns: 1fr; }
  .question { font-size: 24px; }
  .nav-groupe { order: 3; width: 100%; justify-content: space-between; }
  .agenda { grid-template-columns: repeat(2, 1fr); }
  .panneau-detail { position: static; }
  .reco { padding-right: 18px; } /* mobile : le renard disparaît, on récupère la place */
  .mascotte-reco { height: 84px; opacity: .9; }
  .exo-ligne { flex-direction: column; gap: 6px; }
  .exo-nom { flex: none; }
  .prog-nom { flex: 0 0 auto; min-width: 110px; }
  .cap-nom { flex: 0 0 100%; }
}

#nav-burger { display: none; background: transparent; border: 0; color: #fff;
  font-size: 24px; padding: 4px 10px; cursor: pointer; margin-left: auto; }

@media (max-width: 540px) {
  #view { padding: 12px 10px 70px; }
  h1 { font-size: 20px; }
  .carte { padding: 14px; border-radius: 14px; }
  /* menu hamburger : la nav se replie derrière ☰ */
  #nav { padding: 8px 10px; gap: 4px; }
  #nav-burger { display: block; }
  .nav-groupe { display: none; }
  #nav.ouvert .nav-groupe { display: flex; flex-direction: column; width: 100%;
    order: 3; align-items: stretch; gap: 2px; padding-top: 6px; }
  #nav.ouvert .nav-groupe .nav-btn { text-align: left; font-size: 16px; padding: 12px 14px; }
  /* ligne 1 : le logo seul, sans fond bouton · ligne 2 : enfant + menu ☰ */
  .nav-logo { flex: 0 0 100%; text-align: center; font-size: 17px; padding: 4px 0 2px;
    background: transparent !important; color: #fff !important; }
  .nav-profil { display: flex; margin-left: 0; width: auto; order: 1; font-size: 14px; }
  .nav-profil select { padding: 5px 8px; font-size: 14px; max-width: 150px; }
  #nav-burger { order: 2; margin-left: auto; padding: 2px 8px; }
  /* accueil / tuiles */
  .tuiles { grid-template-columns: repeat(2, 1fr); }
  .reco h2 { font-size: 21px; }
  .mascotte-reco { display: none; }
  /* séance : boutons pleins doigts */
  .question { font-size: 21px; min-height: 44px; }
  .choix button { font-size: 18px; padding: 14px 10px; }
  .num-input { width: 130px; font-size: 24px; }
  .parent-valide { flex-direction: column; }
  .parent-valide button { width: 100%; }
  /* progression / arbre / étoiles */
  .prog-mat { flex-wrap: wrap; }
  .prog-barre { flex: 1 1 100%; order: 5; }
  .btn-voir { margin-left: auto; }
  .evo-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; }
  .evo-etoile { font-size: 25px; }
  .noeud-svg text { font-size: 15px; }
  /* agenda : liste 1 colonne comme un vrai agenda de téléphone */
  .agenda { grid-template-columns: 1fr; }
  .jour-case { min-height: 52px; padding-bottom: 8px; }
  .jour-plus { bottom: 6px; }
  /* visite guidée : boîte collée en bas, pleine largeur */
  #visite-boite { bottom: 0; width: 100vw; border-radius: 16px 16px 0 0; border-bottom: 0; }
  .legende-etats { font-size: 12px; gap: 4px 10px; }
  .synthese td { font-size: 13px; }
}

/* ---- Arbre de talents (accueil) ---- */
.talent-carte .talent-mat { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.talent-carte .talent-mat + .talent-mat { border-top: 1px solid var(--bord); }
.talent-mat:hover { background: #f3f6fc; }
.talent-ico { font-size: 26px; flex: 0 0 auto; }
.talent-ico .ico-mat { width: 30px; height: 30px; vertical-align: middle; }
.talent-corps { flex: 1 1 auto; min-width: 0; }
.talent-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.talent-nom { font-weight: 800; }
.talent-pct { font-weight: 800; }
.talent-jauge { height: 10px; background: #e9edf5; border-radius: 8px; overflow: hidden; margin: 6px 0; }
.talent-jauge > i { display: block; height: 100%; border-radius: 8px; transition: width .4s ease; }
.talent-next { font-size: 13px; color: #46506a; }
.talent-act { flex: 0 0 auto; padding: 8px 14px; }

/* ---- Norme de fluence (mots/min) branchée dans l'arbre ---- */
.mclm-objectif { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px 26px; padding: 8px 12px; background: #eef4ff; border-radius: 10px; }
.mclm-txt { font-size: 13px; }
.mclm-barre { width: auto; flex: 1 1 120px; max-width: 220px; }

@media (max-width: 640px) {
  .talent-mat { flex-wrap: wrap; }
  .talent-act { margin-left: auto; }
}

/* Matières préférées (chips cliquables sur l'accueil) */
.chips-mat { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-mat { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--bord); color: #333;
  border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.chip-mat:hover { border-color: var(--bleu); }
.chip-mat.actif { background: #fff7e6; border-color: var(--orange); color: var(--bleu-d); }
.chip-mat img.ico-mat { width: 18px; height: 18px; vertical-align: middle; }

/* Voix (lecture à voix haute) */
.btn-voix { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--bleu);
  background: #eef3ff; color: var(--bleu-d); cursor: pointer; font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 6px 14px; vertical-align: middle; box-shadow: 0 2px 6px rgba(53,105,212,.18);
  transition: transform .1s, background .1s; }
.btn-voix:hover { background: #dbe6ff; transform: translateY(-1px); }
.btn-voix:active { transform: translateY(1px); }
.btn-voix-ico { font-size: 19px; }

/* Curseur « temps que j'ai aujourd'hui » */
.temps-barre { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.temps-curseur { width: 100%; accent-color: var(--bleu); }

/* Devoirs sur l'accueil (comme la V1) */
.carte-devoirs { border-left: 5px solid var(--orange); }
.devoir-row { display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-top: 1px solid var(--bord); }
.devoir-row:first-of-type { border-top: 0; }
.devoir-titre { font-weight: 600; }
.devoir-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--vert); }

/* ============ Page « Le projet » (présentation soignée) ============ */
.pjt { max-width: 960px; margin: 0 auto; }
.pjt-hero { position: relative; border-radius: 26px; overflow: hidden; color: #fff; text-align: center;
  padding: 52px 24px 46px; background: linear-gradient(135deg, #3569d4 0%, #7a5cd0 52%, #42b883 100%); }
.pjt-hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 42%),
  radial-gradient(circle at 82% 78%, rgba(255,255,255,.16), transparent 45%); pointer-events: none; }
.pjt-hero > * { position: relative; z-index: 1; }
.pjt-hero .masc { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.pjt-hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 8px 0 8px; line-height: 1.1; letter-spacing: -.5px; }
.pjt-hero .accroche { font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; margin: 0 auto 22px; opacity: .96; }
.pjt-cta { background: #fff; color: #274ea0; font-weight: 800; border: 0; border-radius: 999px;
  padding: 14px 30px; font-size: 18px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .1s; }
.pjt-cta:hover { transform: translateY(-2px); }
.pjt-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 20px 0 6px; }
.pjt-tag { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff;
  border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; backdrop-filter: blur(2px); }
.pjt-sec { text-align: center; font-size: clamp(22px, 4vw, 28px); margin: 40px 0 4px; }
.pjt-sec-sub { text-align: center; color: var(--gris); margin: 0 auto 20px; max-width: 620px; }
.pjt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pjt-card { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 24px;
  box-shadow: var(--ombre); transition: transform .12s, box-shadow .12s; }
.pjt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,43,64,.12); }
.pjt-card .em { font-size: 38px; display: block; margin-bottom: 6px; }
.pjt-card h3 { margin: 4px 0 8px; font-size: 19px; }
.pjt-card p { margin: 0; color: var(--gris); }
.pjt-card.b { border-top: 4px solid var(--bleu); }
.pjt-card.v { border-top: 4px solid var(--vert); }
.pjt-card.o { border-top: 4px solid var(--orange); }
.pjt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: st; }
.pjt-step { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 22px 20px 20px; position: relative; box-shadow: var(--ombre); }
.pjt-step::before { counter-increment: st; content: counter(st); position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(53,105,212,.4); }
.pjt-step h4 { margin: 8px 0 6px; font-size: 17px; }
.pjt-step p { margin: 0; color: var(--gris); font-size: 14px; }
.pjt-mats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pjt-mat { display: inline-flex; align-items: center; gap: 8px; background: var(--carte);
  border: 1.5px solid var(--bord); border-radius: 14px; padding: 10px 15px; font-weight: 600; }
.pjt-mat img.ico-mat { width: 22px; height: 22px; }
.pjt-parents { background: linear-gradient(135deg, #eef3ff, #e9f7f0); border: 1px solid var(--bord);
  border-radius: 20px; padding: 26px; }
.pjt-parents ul { margin: 10px 0 0; padding-left: 22px; }
.pjt-parents li { margin: 7px 0; }
.pjt-versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pjt-foot { text-align: center; color: var(--gris); margin: 34px 0 12px; }

/* ---- Illustrations page projet (avec repli emoji propre) ---- */
.pjt-em { display: inline-block; }
.pjt-illu { width: 86px; height: 86px; object-fit: contain; display: block; margin-bottom: 4px; }
.pjt-em .em { font-size: 40px; }
.pjt-hero-illu { display: block; width: 100%; max-width: 760px; margin: 18px auto 0; border-radius: 22px; }
.pjt-parents { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pjt-parents-illu { width: 220px; max-width: 40%; height: auto; flex-shrink: 0; }
.pjt-parents ul { flex: 1; min-width: 240px; }

/* ---- Décor "pandacraft" : pois pastel + blobs flottants (sans image) ---- */
.pjt { position: relative; }
.pjt::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(53,105,212,.06) 3px, transparent 4px),
    radial-gradient(circle, rgba(66,184,131,.06) 3px, transparent 4px);
  background-size: 46px 46px, 46px 46px; background-position: 0 0, 23px 23px; }
.pjt-hero { box-shadow: 0 16px 40px rgba(53,105,212,.28); }
.pjt-hero .masc { animation: pjt-float 4s ease-in-out infinite; }
@keyframes pjt-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pjt-sec { position: relative; }
.pjt-sec::after { content: ""; display: block; width: 54px; height: 5px; border-radius: 5px;
  margin: 10px auto 0; background: linear-gradient(90deg, var(--orange), var(--rose, #d0457a)); }
/* pastilles décoratives autour du héros */
.pjt-hero .deco { position: absolute; border-radius: 50%; opacity: .5; z-index: 0; }

@media (max-width: 600px) {
  .pjt-parents-illu { max-width: 60%; margin: 0 auto; }
  .pjt-illu { width: 72px; height: 72px; }
}

/* Défi minute (mis en avant sur l'accueil) */
.carte-defi { cursor: pointer; background: linear-gradient(135deg, #fff, #fff7e6);
  border-left: 5px solid var(--orange); }
.carte-defi:hover { box-shadow: 0 8px 22px rgba(242,166,59,.25); }

/* ===== Exercices enrichis (recette du 21/09 : relier, chrono, visuels) ===== */
.exo-visu { text-align: center; font-size: 58px; line-height: 1.15; margin: 10px 0 4px; }
.exo-visu .visu-svg { width: 132px; height: 132px; }
.exo-visu .visu-forme { font-size: 92px; line-height: 1; color: var(--bleu); }
.visu-table { margin: 0 auto; border-collapse: collapse; font-size: 16px; }
.visu-table th, .visu-table td { border: 2px solid var(--bord); padding: 6px 14px; text-align: center; }
.visu-table th { background: #eef3ff; text-transform: capitalize; }
.choix.compact { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.unite { font-size: 22px; font-weight: 800; margin-left: 8px; }
.assoc-cols { display: flex; gap: 26px; justify-content: center; }
.assoc-col { display: flex; flex-direction: column; gap: 10px; flex: 1; max-width: 260px; }
.assoc-btn { font-size: 19px; padding: 12px; border-radius: 12px; border: 2px solid var(--bord); background: #fff; cursor: pointer; transition: transform .12s; }
.assoc-btn:hover { border-color: var(--bleu); }
.assoc-btn.sel { border-color: var(--bleu); background: #eef3ff; }
.assoc-btn.fait { border-color: var(--vert); background: #eafaf2; }
.assoc-btn.rate { border-color: var(--rouge); background: #fdeeee; transform: translateX(3px); }
.multinum-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0; }
.multinum-q { font-size: 21px; min-width: 96px; text-align: right; font-weight: 700; }
.num-mini { width: 96px; font-size: 20px; padding: 8px; }
.multinum-ok { min-width: 76px; text-align: left; }
.chrono-big { font-size: 46px; font-weight: 800; margin: 8px 0; letter-spacing: 1px; }
.mots-vue { font-size: 30px; font-weight: 700; letter-spacing: 1px; margin: 6px 0 10px; }
.secret-mot { font-size: 40px; font-weight: 800; text-align: center; }
.secret-compte { text-align: center; font-size: 24px; color: var(--gris); font-weight: 700; }
@media (max-width: 560px) {
  .assoc-cols { gap: 12px; }
  .multinum-q { min-width: 78px; font-size: 18px; }
}

/* ===== HOME façon maquette V2/HOME.png (21/09) ===== */
.home2 { --h2bleu: #3569d4; --h2violet: #8b5cf6; }
.h2-hero { display: flex; gap: 30px; align-items: center; padding: 26px 8px 10px; flex-wrap: wrap; }
.h2-hero-txt { flex: 1.2; min-width: 300px; }
.h2-badge { display: inline-block; background: #e8f6ee; color: #1d7a4f; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.h2-hero-txt h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -1px; margin: 14px 0 12px; color: #1d2b50; }
.h2-violet { background: linear-gradient(90deg, var(--h2violet), #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2-hero-txt p { font-size: 17px; color: #45507a; max-width: 480px; }
.h2-cta { background: var(--h2bleu); color: #fff; border: 0; border-radius: 999px; padding: 15px 26px; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(53,105,212,.32); margin-top: 8px; transition: transform .15s; }
.h2-cta:hover { transform: translateY(-2px); }
.h2-cta.blanc { background: #fff; color: #4635b1; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.h2-checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: #45507a; font-weight: 600; }
.h2-hero-img { flex: 1; min-width: 260px; position: relative; text-align: center; }
.h2-hero-img > img { width: min(380px, 90%); filter: drop-shadow(0 14px 26px rgba(53,105,212,.18)); animation: pjt-float 4.5s ease-in-out infinite; }
.h2-bulle { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(31,45,90,.14); padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: #33406e; }
.h2-bulle.b1 { top: 2%; right: 0; transform: rotate(3deg); }
.h2-bulle.b2 { top: 34%; right: -2%; }
.h2-bulle.b3 { bottom: 10%; right: 2%; }
.h2-section { background: linear-gradient(180deg, #eef4ff, #f6f0ff); border-radius: 26px; padding: 26px 22px; margin-top: 26px; }
.h2-annot { text-align: center; font-style: italic; color: #7a86b3; margin: -6px 0 14px; }
.h2-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.h2-step { background: #fff; border-radius: 18px; padding: 24px 18px 16px; position: relative; box-shadow: 0 10px 24px rgba(31,45,90,.08); }
.h2-num { position: absolute; top: -14px; left: 16px; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.h2-num.n1 { background: #3b82f6; } .h2-num.n2 { background: #8b5cf6; } .h2-num.n3 { background: #ec4899; } .h2-num.n4 { background: #22a06b; }
.h2-step-ico { font-size: 34px; }
.h2-step h4 { margin: 8px 0 6px; font-size: 16.5px; color: #1d2b50; }
.h2-step p { margin: 0; font-size: 13.5px; color: #5a6491; }
.h2-exemple { background: #fff7dd; border: 1px solid #f0e2b0; border-radius: 16px; padding: 14px 18px; margin-top: 18px; font-size: 14.5px; color: #5d5333; }
.h2-pilier { border-radius: 20px; padding: 22px 20px; }
.h2-pilier.pv { background: #e9f8ef; } .h2-pilier.pp { background: #f3edff; } .h2-pilier.po { background: #fff3e2; }
.h2-pilier h3 { margin: 12px 0 8px; color: #1d2b50; }
.h2-pilier p { margin: 0; font-size: 14px; color: #55608c; }
.h2-ico { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; font-size: 26px; background: #fff; box-shadow: 0 8px 18px rgba(31,45,90,.12); }
.h2-parents { background: #eaf7ef; border-radius: 22px; padding: 22px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.h2-liste { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 280px; }
.h2-liste li { padding: 7px 0 7px 30px; position: relative; color: #35426e; font-size: 14.5px; }
.h2-liste li::before { content: "✅"; position: absolute; left: 0; }
.h2-band { background: linear-gradient(100deg, #4635b1, #3569d4); border-radius: 26px; margin-top: 34px; padding: 30px 28px; color: #fff; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.h2-band-txt { flex: 1.2; min-width: 260px; }
.h2-band-txt h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 30px); }
.h2-band-txt p { margin: 0; opacity: .92; }
.h2-band-cta { flex: 1; text-align: center; min-width: 260px; }
.h2-band-checks { margin-top: 12px; font-size: 13px; opacity: .95; }
.h2-band-fox { width: 130px; align-self: flex-end; }
.h2-footer { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 22px 8px; color: #55608c; }
.h2-footer .gris { margin-left: auto; font-size: 13px; }
.exo-titre { text-align: center; font-size: 26px; font-weight: 800; margin: 2px 0 8px; }
.modal-fond { position: fixed; inset: 0; background: rgba(20, 28, 60, .45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-boite { max-width: 460px; width: 100%; }
.chip-hw { border: 2px solid var(--bord); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.chip-hw:hover { border-color: var(--bleu); background: #eef3ff; }
@media (max-width: 700px) {
  .h2-bulle { display: none; }
  .h2-band-fox { display: none; }
}
.pills-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.pill-onglet { border: 2px solid var(--bord); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: #45507a; cursor: pointer; }
.pill-onglet:hover { border-color: var(--bleu); }
.pill-onglet.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.ico-jeu { width: 46px; height: 46px; object-fit: contain; }
.carte-question { position: relative; }
.btn-mute { position: absolute; top: 14px; right: 76px; font-size: 12.5px; z-index: 3;
  background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 4px 12px; }
.btn-mute:hover { border-color: var(--bleu); }

/* ====== LECTURE : la vitrine (héros accueil + onglet + espace) ====== */
/* « Ma séance » : pastille violette lisible sur la barre sombre (retour : invisible avant) */
.nav-btn.nav-lecture { background: #7a5cd0; color: #fff; font-weight: 800; border-radius: 999px; }
.nav-btn.nav-lecture:hover { background: #8d72dc; color: #fff; }
.nav-btn.nav-lecture.actif { background: #fff; color: #5b3fb0; }
.nav-btn.actif { background: #7a5cd0; color: #fff; }
.nav-btn.nav-dev { color: #9fb0d0; font-size: 12.5px; }
/* home concept (version finale) : la barre ne montre que le logo */
body.mode-landing .nav-groupe, body.mode-landing #nav-burger { display: none !important; }
.h2-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.h2-cta.second { background: #efeaff; color: #5b3fb0; box-shadow: none; }
.h2-cta.second:hover { background: #e3dbff; }
/* design aligné sur la maquette : le violet est la couleur d'action */
.btn { background: #7a5cd0; }
.btn:hover { background: #5b3fb0; }
.btn-2 { background: #efeaff; color: #5b3fb0; }
.btn-2:hover { background: #e3dbff; }
.btn-discret:hover { color: #5b3fb0; }
.pjt-cta { color: #5b3fb0; }

/* Carte « Ma lecture d'aujourd'hui » : le cœur de l'accueil, façon V1 */
.carte-lecture-jour { position: relative; overflow: hidden; border: 1px solid #e6ddff;
  border-left: 6px solid #7a5cd0; background: linear-gradient(120deg, #faf8ff, #fff);
  padding-right: 150px; }             /* réserve la place du renard, pas de chevauchement */
.carte-lecture-jour > *:not(img) { position: relative; z-index: 1; }
.carte-lecture-jour .mascotte-reco { z-index: 0; }
@media (max-width: 700px) { .carte-lecture-jour { padding-right: 16px; } }
.badge-lecture { background: #ede6ff; color: #5b3fb0; }
.carte-lecture-jour h2 { margin: 10px 0 2px; color: #3a2d66; }
.lj-secondaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lj-chip { background: #fff; border: 1.5px solid #e0d7f5; color: #5b3fb0; border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .12s, border-color .12s; }
.lj-chip:hover { background: #f3efff; border-color: #7a5cd0; }
.tuile-lecture { background: linear-gradient(150deg, #faf8ff, #f1ebff); border-color: #e0d7f5; }
.sous-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
/* toggles parent « en place » (matières actives) */
.mat-toggle { border: 1.5px solid var(--bord); background: #fff; border-radius: 999px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--texte); font-family: inherit; }
.mat-toggle:hover { border-color: var(--bleu); }
.mat-toggle.mat-on { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.mat-toggle.mat-on::after { content: ' ✓'; }

/* Bibliothèque (Plaisir de lire) */
.etoiles-note { display: inline-flex; gap: 2px; vertical-align: middle; }
.etoile-btn { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #d6d9e2; padding: 0 1px; }
.etoile-btn.pleine { color: #f2a63b; }
.genres-grille { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.genre-btn { background: #fff; border: 1.5px solid var(--bord); border-radius: 999px; padding: 7px 13px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; }
.genre-btn:hover { border-color: #7a5cd0; }
.genre-btn.actif { background: #7a5cd0; border-color: #7a5cd0; color: #fff; }
.etagere { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 4px; }
.livre-vignette { text-align: center; }
.livre-cover { font-size: 40px; background: linear-gradient(160deg, #faf8ff, #eee6ff); border: 1px solid #e0d7f5;
  border-radius: 10px; padding: 14px 0; box-shadow: var(--ombre); }
.livre-titre { font-size: 12.5px; font-weight: 700; margin-top: 5px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.livre-note { font-size: 13px; color: #f2a63b; letter-spacing: 1px; }
.carte-suggest { background: linear-gradient(120deg, #fff9ef, #fff); border-color: #f0e2c4; }
.genre-chip { display: inline-block; background: #ede6ff; color: #5b3fb0; border-radius: 999px;
  padding: 3px 10px; font-size: 13px; font-weight: 700; margin: 2px; }
.genre-chip.genre-neuf { background: #fdeecf; color: #9a6a17; }

/* Mur des mots + dico */
.mots-nuage { display: flex; flex-wrap: wrap; gap: 8px; }
.mot-chip { background: #fff; border: 1.5px solid var(--bord); border-radius: 999px; padding: 7px 13px;
  font-size: 14.5px; font-weight: 600; cursor: default; color: var(--texte); }
.mot-chip.a-def { cursor: pointer; }
.mot-chip.a-def:hover { border-color: #7a5cd0; background: #faf8ff; }
.mot-chip.mot-ok { background: #e7f7ef; border-color: #b7e4cd; color: #1f8a5b; }
.mot-chip.mot-dur { background: #fdeee0; border-color: #f4cfa6; color: #b56a16; }
.mot-loupe { font-size: 12px; }
.dico-pop { position: fixed; inset: 0; background: rgba(30,43,64,.45); display: none;
  align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.dico-carte { background: var(--carte); border-radius: 18px; padding: 22px 24px; max-width: 420px; width: 100%;
  position: relative; box-shadow: 0 18px 50px rgba(30,43,64,.3); text-align: center; }
.dico-fermer { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gris); }
.dico-mot { font-size: 24px; font-weight: 800; color: #5b3fb0; margin-bottom: 8px; }
.dico-def { font-size: 17px; line-height: 1.5; margin: 0 0 16px; }

/* Alphabet à réviser */
.alpha-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.alpha-case { border: 1.5px solid var(--bord); background: #fff; border-radius: 14px; padding: 12px 4px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: transform .12s, box-shadow .12s; }
.alpha-case:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.alpha-maj { font-size: 26px; font-weight: 800; line-height: 1; color: var(--texte); }
.alpha-min { font-size: 17px; color: var(--gris); }
.alpha-case.alpha-ok { background: #eafaf1; border-color: #b7e4cd; }
.alpha-case.alpha-cours { background: #fff8ec; border-color: #f4d59a; }
.alpha-case.alpha-dur { background: #fdf3f3; border-color: #f3c1c1; }
.alpha-grand { font-size: 60px; font-weight: 800; color: #5b3fb0; letter-spacing: 6px; margin-bottom: 4px; }
/* Mots-outils (par cœur) */
.mo-grille { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-case { border: 1.5px solid var(--bord); background: #fff; border-radius: 10px; padding: 9px 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; color: var(--texte); font-family: inherit; transition: transform .12s, box-shadow .12s; }
.mo-case:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.mo-case.alpha-ok { background: #eafaf1; border-color: #b7e4cd; }
.mo-case.alpha-dur { background: #fdf3f3; border-color: #f3c1c1; }
/* « à lire » (syllabes / mots / lettres) : grand et aéré, comme en V1 */
.lire-grand { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; margin: 18px 0 6px; }
.lire-grand span { font-size: 40px; font-weight: 800; letter-spacing: 2px; color: #2b2b40;
  background: #faf8ff; border: 2px solid #e6ddff; border-radius: 14px; padding: 10px 22px; }
@media (max-width: 640px) { .lire-grand span { font-size: 30px; padding: 8px 16px; } }
.lire-grand span { cursor: pointer; }
.lire-grand span:hover { border-color: #7a5cd0; }
/* marquage mot par mot (bien / mal lu) — listes à lire ET lecture rapide */
span.mot-lu { cursor: pointer; border: 2px solid transparent; border-radius: 10px; padding: 2px 8px; }
span.mot-lu.bien { background: #effaf4; border-color: #7fd4ab; color: #1f7a4d; }
span.mot-lu.mal { background: #fdf3f3; border-color: #ef9a9a; color: #c0392b; text-decoration: line-through; }
span.mot-lu.bien::after { content: " ✓"; font-size: .6em; vertical-align: middle; }
span.mot-lu.mal::after { content: " ✗"; font-size: .6em; vertical-align: middle; text-decoration: none; }
/* syllabes à cliquer dans l'ordre */
.ordre-zone { text-align: center; }
.ordre-src { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0; }
.ordre-src .syl { font-size: 30px; font-weight: 800; letter-spacing: 2px; padding: 10px 20px; border-radius: 14px; border: 2px solid #e6ddff; background: #faf8ff; cursor: pointer; }
.ordre-src .syl:disabled { opacity: .35; cursor: default; }
.ordre-dst { min-height: 58px; margin: 8px auto 10px; padding: 8px 14px; border: 2px dashed #c9d4ea; border-radius: 14px; max-width: 420px; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ordre-dst .syl-pose { font-size: 30px; font-weight: 800; letter-spacing: 2px; color: #2b2b40; }
.ordre-dst.ok { border-color: #7fd4ab; background: #effaf4; }
.ordre-dst.ko { border-color: #ef9a9a; background: #fdf3f3; }
/* mots/syllabes à lire : cochables « raté » par le parent */
.mot-lire { font-size: 40px; font-weight: 800; letter-spacing: 2px; color: #2b2b40; font-family: inherit;
  background: #faf8ff; border: 2px solid #e6ddff; border-radius: 14px; padding: 10px 22px; cursor: pointer; transition: all .12s; }
.mot-lire:hover { border-color: #7a5cd0; }
.mot-lire.rate { background: #fdecec; border-color: var(--rouge); color: var(--rouge); text-decoration: line-through; }
@media (max-width: 640px) { .mot-lire { font-size: 30px; padding: 8px 16px; } }
/* Lis avec moi (CP, façon Ratus) */
.lam-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.lam-son { position: relative; border: 1.5px solid var(--bord); background: #fff; border-radius: 16px;
  padding: 16px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit; transition: transform .12s, box-shadow .12s; }
.lam-son:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.lam-son.lam-ok { background: #eafaf1; border-color: #b7e4cd; }
.lam-son-lettre { font-size: 40px; font-weight: 800; color: #5b3fb0; line-height: 1; }
.lam-son-mot { font-size: 13px; color: var(--gris); font-weight: 600; }
.lam-son-ok { position: absolute; top: 6px; right: 8px; font-size: 14px; }
.lam-grand { font-size: 84px; font-weight: 800; color: #5b3fb0; line-height: 1; }
.lam-phrase-carte { background: linear-gradient(120deg, #faf8ff, #fff); border-color: #e6ddff; }
.lam-phrase { font-size: 30px; font-weight: 700; line-height: 1.5; color: #2b2b40; margin: 6px 0 12px; }
.graph-cible { color: #e0342b; font-weight: 800; }               /* le graphème cible, en rouge (façon Ratus) */
.lam-outils { background: linear-gradient(120deg, #fffdf0, #fff); border-color: #f0e6b8; }
.mot-outil-chip { background: #fdf3c4; border: 1.5px solid #ecd98a; color: #7a5c10; border-radius: 999px;
  padding: 8px 16px; font-size: 20px; font-weight: 700; cursor: pointer; }
.mot-outil-chip:hover { background: #fbe89a; }
/* Récompenses de lecture (paliers par nombre de livres) */
.carte-recompenses { background: linear-gradient(120deg, #fff8ec, #fff); border-color: #f0d9ae; }
.recos-echelle { display: flex; flex-wrap: wrap; gap: 12px; }
.reco-palier { flex: 1 1 90px; text-align: center; padding: 12px 6px; border-radius: 14px;
  border: 1.5px solid var(--bord); background: #fff; opacity: .6; }
.reco-palier.reco-ok { opacity: 1; background: #fff7e6; border-color: #f0c98a; }
.reco-e { font-size: 34px; line-height: 1; }
.reco-n { font-size: 12px; color: var(--gris); font-weight: 700; margin-top: 4px; }
.reco-nom { font-size: 12px; font-weight: 700; color: #8a6a2a; }
.carte-defi-semaine { border-left: 5px solid var(--vert); }
.defi-ok { background: #eafaf1; border: 1px solid #b7e4cd; color: #1f8a5b; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.defi-todo { background: #f7f9ff; border: 1px solid var(--bord); color: #45507a; border-radius: 10px; padding: 10px 12px; }

/* Lot 1 : séance du jour (plan), livre en cours, objectif, progrès */
.plan-jour { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.plan-item { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: #2b2b40; }
.plan-grand .plan-item { font-size: 21px; padding: 6px 0; }
.plan-e { font-size: 22px; }
.plan-tag { font-size: 11.5px; font-weight: 800; color: #5b3fb0; background: #ede6ff; border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.carte-livre-jour { border-left: 5px solid #7a5cd0; }
.livre-jour { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.livre-jour-cover { font-size: 38px; background: linear-gradient(160deg, #faf8ff, #eee6ff); border: 1px solid #e0d7f5; border-radius: 10px; padding: 8px 12px; }
.carte-objectif { background: linear-gradient(120deg, #fff8ec, #fff); border-color: #f0d9ae; }
.objectif-ligne { display: flex; align-items: center; gap: 14px; }
.objectif-ligne > div { flex: 1; }
.objectif-e { font-size: 40px; }
.progres-chip { background: #eafaf1; border: 1px solid #b7e4cd; color: #1f8a5b; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.liens-secondaires { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }

/* Lot 4 : textes de lecture */
.texte-lecture { text-align: left; font-size: 20px; line-height: 1.7; background: #fbfcff; border: 1px solid var(--bord);
  border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.texte-titre { font-weight: 800; color: #5b3fb0; margin-bottom: 4px; }
@media (max-width: 640px) { .texte-lecture { font-size: 17px; } }

/* Lot 5 : dashboard parent « cette semaine » + fiches imprimables */
.semaine-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.semaine-kpis > div { text-align: center; background: #f7f9ff; border-radius: 12px; padding: 10px 6px; }
.semaine-kpis b { display: block; font-size: 24px; }
.semaine-kpis span { font-size: 12px; color: var(--gris); }
@media (max-width: 640px) { .semaine-kpis { grid-template-columns: repeat(2, 1fr); } }
.fiche { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; }
.fiche h3 { margin: 16px 0 6px; color: #5b3fb0; }
.fiche-grille { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.fiche-lignes { height: 34px; margin-top: 10px;
  background: linear-gradient(#c9d4ea, #c9d4ea) left 0 top 8px / 100% 1px no-repeat,
              linear-gradient(#8aa0c8, #8aa0c8) left 0 top 24px / 100% 2px no-repeat; }
.fiche-champ { font-size: 17px; margin: 12px 0; }
.fiche-dessin { height: 180px; border: 2px dashed #c9d4ea; border-radius: 12px; }

/* Lot 3 : carnet de récompenses + coupons */
.reco-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.reco-card { border: 1.5px solid var(--bord); border-radius: 14px; padding: 14px; text-align: center; background: #fff; }
.reco-card.reco-dispo { border-color: #f0c98a; background: #fff8ec; }
.reco-card .reco-e { font-size: 36px; }
.reco-cout { font-weight: 800; color: #8a6a2a; margin: 4px 0 8px; }
.reco-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.coupons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coupon { border: 3px dashed #7a5cd0; border-radius: 16px; padding: 18px; text-align: center; background: #fff;
  page-break-inside: avoid; break-inside: avoid; }
.coupon-e { font-size: 44px; }
.coupon-titre { font-size: 20px; font-weight: 900; color: #5b3fb0; margin: 6px 0; letter-spacing: .5px; }
.coupon-sub { color: var(--gris); font-size: 14px; }
.coupon-val { font-weight: 800; margin: 10px 0; }
.coupon-lignes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #45507a; text-align: left; margin-top: 8px; }
/* impression sélective : choix des fiches / des bons */
.impr-choix { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--bord); border-radius: 10px; cursor: pointer; font-weight: 700; }
.coupon { position: relative; }
.coupon-coche { position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 700; color: #666; }
.conj-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.conj-bloc { border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; }
.conj-bloc b { display: block; font-size: 18px; margin-bottom: 6px; color: #5b3fb0; }
.conj-ligne { font-size: 15px; line-height: 2; }
.lettres-grille span { font-size: 28px; }
.fiche-dessin-grand { min-height: 320px; }
@media print {
  #nav, #fabs, #tiroir, #tiroir-fond, .banniere-proto, .no-print, #toast, .btn-mute { display: none !important; }
  .exclu-print { display: none !important; }
  /* une fiche = une page A4 entière */
  .fiche { page-break-before: always; break-before: page; min-height: 96vh; box-sizing: border-box; border: 0; margin: 0; }
  .fiche.exclu-print + .fiche, .fiche:first-of-type { page-break-before: auto; break-before: auto; }
  .fiche-dessin-grand { min-height: 45vh; }
  /* bons = bandes horizontales faciles à découper (traits pointillés ✂) */
  .coupons { display: block !important; }
  .coupon { display: flex; align-items: center; gap: 14px; width: 100%; height: 5.4cm; margin: 0 0 .5cm; padding: .4cm .6cm;
    border: 2px dashed #888; border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid; }
  .coupon::before { content: "✂"; position: absolute; left: -.2cm; top: -.45cm; font-size: 14px; color: #888; background: #fff; }
  .coupon-e { font-size: 42px; flex: 0 0 auto; }
  .coupon-titre { font-size: 18px; }
  body { background: #fff; } .carte { box-shadow: none; }
  .coupons { grid-template-columns: repeat(2, 1fr); }
}

/* Lot 3 : bibliothèque enrichie (statuts) */
.livre-vignette { cursor: pointer; }
.livre-cover { position: relative; }
.livre-statut { position: absolute; top: 4px; right: 6px; font-size: 16px; }
.livre-en_cours .livre-cover { border-color: #7a5cd0; }
.livre-a_lire .livre-cover { opacity: .7; }

/* Lot 2 : mon année (3 colonnes je sais / je progresse / je travaille) */
.annee-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.annee-3col > div > b { display: block; margin-bottom: 6px; }
@media (max-width: 700px) { .annee-3col { grid-template-columns: 1fr; } }

/* Tiroir gauche « Jeux & autres apprentissages » */
.nav-btn.nav-plus { background: #eef2fb; color: #45507a; }
#tiroir-fond { position: fixed; inset: 0; background: rgba(30,43,64,.4); opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 55; }
#tiroir { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 82vw; background: var(--carte);
  box-shadow: 4px 0 24px rgba(30,43,64,.2); z-index: 56; padding: 18px 16px; transform: translateX(-105%);
  transition: transform .22s ease; overflow-y: auto; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; font-size: 17px; margin-bottom: 4px; }
.tiroir-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gris); }
.tiroir-item { display: block; width: 100%; text-align: left; margin: 6px 0; font-size: 15.5px; }
body.tiroir-ouvert #tiroir { transform: translateX(0); }
body.tiroir-ouvert #tiroir-fond { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { .lam-phrase { font-size: 24px; } .lam-grand { font-size: 64px; } }
.prog-hero { background: linear-gradient(135deg, #7a5cd0, #5b3fb0); border: none; color: #fff; }
.prog-hero h2 { color: #fff; }
.prog-hero b { color: #fff; }

/* Lettre en évidence : cursive / MAJUSCULE / minuscule, sur des lignes (façon V1) */
.lettre-formes { margin: 14px 0 4px; text-align: center; }
.lf-img { max-width: 100%; max-height: 200px; display: block; margin: 0 auto 10px; }
.lf-set { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.lf-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lf-lignes { position: relative; width: 130px; height: 96px; border-radius: 10px;
  background:
    linear-gradient(#c9d4ea, #c9d4ea) left 0 top 24px / 100% 1.5px no-repeat,   /* ligne haute */
    linear-gradient(#8aa0c8, #8aa0c8) left 0 top 68px / 100% 2px no-repeat,      /* ligne de base */
    linear-gradient(#c9d4ea, #c9d4ea) left 0 bottom 8px / 100% 1.5px no-repeat,  /* interligne bas */
    #fbfcff;
  border: 1.5px solid #e5e9f2; display: flex; align-items: center; justify-content: center; }
.lf-cursive { font-family: 'Segoe Script', 'Comic Sans MS', 'Bradley Hand', cursive; font-size: 46px; color: #274ea0; font-weight: 600; }
.lf-print { font-family: Arial, Helvetica, sans-serif; font-size: 54px; color: #274ea0; font-weight: 700; }
.lf-nom { font-size: 12px; color: var(--gris); font-weight: 600; }
/* un mot mis en évidence (grand, centré, majuscules) */
.mot-evidence { text-align: center; text-transform: uppercase; letter-spacing: 6px;
  font-size: 44px; font-weight: 800; color: #274ea0; margin: 16px 0 8px;
  background: #faf8ff; border: 2px solid #e6ddff; border-radius: 14px; padding: 14px 10px; }
@media (max-width: 640px) { .mot-evidence { font-size: 32px; letter-spacing: 3px; } }

/* Apprendre à lire (parcours lecture par domaine) */
.apl-dom { margin-bottom: 12px; }
.apl-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.apl-skill { border: 1.5px solid var(--bord); background: #fff; border-radius: 12px; padding: 9px 13px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--texte); transition: transform .12s, box-shadow .12s; }
.apl-skill:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--ombre); }
.apl-skill[disabled] { opacity: .55; cursor: default; }
.apl-skill .apl-emo { font-size: 15px; }
.apl-skill.etat-a_renforcer, .apl-skill.etat-decouverte { border-color: #f3c1c1; background: #fdf3f3; }
.apl-skill.etat-en_cours { border-color: #f4d59a; background: #fff8ec; }
.apl-skill.etat-maitrise, .apl-skill.etat-solide { border-color: #b7e4cd; background: #eafaf1; }
.apl-skill.etat-later, .apl-skill.etat-locked { background: #f2f4f8; }

/* Boutons flottants (mots / sons difficiles) — cachés en espace parent */
#fabs { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab-pill { border: none; border-radius: 24px; color: #fff; font-size: 15px; font-family: inherit;
  font-weight: 700; padding: 12px 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .12s; }
.fab-pill:hover { transform: scale(1.06); }
.fab-mot { background: var(--orange); }
.fab-son { background: #7a5cd0; }
body.mode-parent #fabs { display: none; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--sombre); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) { #fabs { right: 8px; bottom: 8px; } .fab-pill { font-size: 13px; padding: 9px 13px; } }

/* Espace lecture */
.lecture-entete { background: linear-gradient(135deg, #f3efff, #fbf9ff); border: 1px solid #e6ddff;
  border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.lecture-entete h1 { color: #5b3fb0; }
.lc-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lc-carte { cursor: pointer; text-align: center; transition: transform .12s, box-shadow .12s; border-top: 4px solid #7a5cd0; }
.lc-carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(91,63,176,.18); }
.lc-carte .lc-ico { font-size: 40px; }
.lc-carte h3 { color: #4a3a7a; }
.lc-meta { font-size: 13px; color: #6b5ca0; font-weight: 600; }
.lc-sons { border-top-color: #7a5cd0; } .lc-minute { border-top-color: var(--orange); } .lc-plaisir { border-top-color: var(--vert); }

@media (max-width: 640px) {
  .lh-actions, .lc-grille { grid-template-columns: 1fr; }
  .lh-btn { flex-direction: row; align-items: center; gap: 10px; }
  .lh-btn .lh-ico { font-size: 22px; }
}

/* ============================================================================
   THÈME MAQUETTE 24/09 (3 visuels ChatGPT) : coque sidebar + topbar, cartes
   pastel arrondies, bleu = action, typographie ronde. Placé EN FIN de fichier
   pour primer sur les règles précédentes.
   ========================================================================== */
:root { --mq-bleu: #2f6fed; --mq-bleu-d: #1f4fc2; --mq-marine: #1e3a8a; --mq-fond: #eef4ff;
  --mq-bleu-p: #eaf2ff; --mq-vert-p: #e8f8ee; --mq-violet-p: #f1ecff; --mq-rose-p: #ffecec; --mq-orange-p: #fff3e0; }
body { font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #f3f7ff 0%, #f8fbff 100%); color: #1e2b40; }
h1, h2, h3, h4 { color: var(--mq-marine); font-weight: 800; }
.carte { border-radius: 20px; border: 1px solid #e6edfb; box-shadow: 0 6px 20px rgba(31,58,138,.06); }
.btn { background: var(--mq-bleu); border-radius: 14px; font-weight: 800; box-shadow: 0 6px 16px rgba(47,111,237,.25); }
.btn:hover { background: var(--mq-bleu-d); }
.btn-2 { background: var(--mq-bleu-p); color: var(--mq-bleu-d); box-shadow: none; }
.btn-2:hover { background: #dce9ff; }
.btn-discret:hover { color: var(--mq-bleu); }
.badge { background: var(--mq-bleu-p); color: var(--mq-bleu-d); }
.badge-lecture { background: var(--mq-bleu-p); color: var(--mq-bleu-d); }
.plan-tag { background: var(--mq-bleu-p); color: var(--mq-bleu-d); }
.points-jauge i { background: #22c55e; }
.pill-onglet.actif { background: var(--mq-bleu); border-color: var(--mq-bleu); }
.mat-toggle.mat-on { background: var(--mq-bleu); border-color: var(--mq-bleu); }
.dico-carte { border-radius: 22px; }
.dico-mot { color: var(--mq-marine); }

/* ---- coque : sidebar + contenu ---- */
.app-shell { display: flex; min-height: 100vh; }
#nav { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 232px; flex: 0 0 232px;
  background: #fff; color: #1e2b40; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 18px 14px; margin: 12px 0 12px 12px; border-radius: 22px; box-shadow: 0 8px 28px rgba(31,58,138,.08);
  box-sizing: border-box; overflow-y: auto; }
.nav-logo { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 4px 0 14px; line-height: 1;
  background: transparent !important; }
.logo-etoile { color: #f5b301; font-size: 18px; margin-bottom: -4px; }
.logo-a { font-size: 30px; font-weight: 900; color: var(--mq-bleu); letter-spacing: 1px;
  text-shadow: 0 2px 0 #cfe0ff; }
.logo-b { font-size: 15px; font-weight: 800; color: var(--mq-marine); margin-top: 2px; }
.nav-groupe { display: flex; flex-direction: column; gap: 4px; }
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: #34415e;
  font-weight: 700; font-size: 14.5px; padding: 9px 10px; border-radius: 14px; background: transparent; }
.nav-btn:hover { background: #f2f6ff; color: var(--mq-marine); }
.nav-btn.actif { background: var(--mq-bleu-p); color: var(--mq-bleu-d); }
.nav-btn.nav-lecture { background: transparent; color: #34415e; border-radius: 14px; }
.nav-btn.nav-lecture:hover { background: #f2f6ff; color: var(--mq-marine); }
.nav-btn.nav-lecture.actif { background: var(--mq-bleu-p); color: var(--mq-bleu-d); }
.nav-btn.nav-plus { background: transparent; color: #34415e; line-height: 1.15; }
.nav-btn.nav-plus .chev { margin-left: auto; color: #9aa6c2; font-size: 18px; }
.nav-btn.nav-parent { color: #6b7688; font-size: 13.5px; }
.nav-btn.nav-dev { color: #8a94ab; font-size: 12.5px; }
.nav-sep { height: 1px; background: #e6edfb; margin: 8px 4px; }
.ni { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 16px; flex: 0 0 30px; }
.ni-bleu { background: #e3edff; } .ni-rouge { background: #ffe7e7; } .ni-vert { background: #e6f7ec; }
.ni-violet { background: #efe9ff; } .ni-orange { background: #fff1de; } .ni-gris { background: #eef1f6; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 22px 0; }
.topbar-spacer { flex: 1; }
.nav-profil { margin-left: 0; background: #fff; border-radius: 999px; padding: 6px 10px 6px 12px;
  box-shadow: 0 4px 14px rgba(31,58,138,.08); font-size: 14px; }
.nav-profil select { background: transparent; font-weight: 800; color: var(--mq-marine); font-family: inherit; }
main#view { padding: 12px 22px 40px; }
#nav-burger { display: none; }

@media (max-width: 900px) {
  .app-shell { display: block; }
  #nav { position: sticky; height: auto; width: auto; flex: none; margin: 0; border-radius: 0 0 18px 18px;
    padding: 10px 12px; flex-direction: row; flex-wrap: wrap; align-items: center; z-index: 50; }
  .nav-logo { flex-direction: row; align-items: baseline; gap: 6px; margin: 0; }
  .logo-a { font-size: 22px; } .logo-b { font-size: 13px; } .logo-etoile { font-size: 14px; }
  #nav-burger { display: inline-block; margin-left: auto; background: #eaf2ff; border: 0; border-radius: 10px;
    padding: 6px 10px; font-size: 18px; color: var(--mq-marine); }
  .nav-groupe { display: none; width: 100%; margin-top: 8px; }
  #nav.ouvert .nav-groupe { display: flex; }
  .topbar { padding: 10px 14px 0; }
  main#view { padding: 10px 14px 90px; }
}

/* ---- home concept : pas de sidebar, une simple entête ---- */
body.mode-landing #nav { display: none !important; }
body.mode-landing .topbar { position: sticky; top: 0; background: rgba(248,251,255,.9); backdrop-filter: blur(6px); z-index: 20; padding: 12px 22px; }
body.mode-landing .topbar-spacer::before { content: '★ AONOH Academy'; font-weight: 900; color: var(--mq-bleu); font-size: 20px; }
body.mode-landing .nav-profil { display: flex; gap: 8px; align-items: center; }
body.mode-landing .nav-profil .nav-btn { width: auto; color: var(--mq-marine); }

/* ---- HOME ENFANT (maquette) ---- */
.hero-home { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; min-height: 190px;
  background: linear-gradient(120deg, #eaf2ff 0%, #fff7ea 60%, #ffeef2 100%); display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hero-txt { flex: 1; min-width: 0; }
.hero-txt h1 { font-size: 40px; margin: 0; color: var(--mq-marine); line-height: 1.05; }
.hero-txt h1 .bleu { color: var(--mq-bleu); }
.hero-txt .sous { font-size: 20px; font-weight: 800; color: #2b3f75; margin: 6px 0 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-pill { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13.5px; color: var(--mq-marine);
  box-shadow: 0 4px 12px rgba(31,58,138,.08); }
.hero-fox { position: relative; flex: 0 0 auto; }
.hero-fox img { height: 170px; display: block; }
.hero-bulle { position: absolute; top: 6px; left: -70px; background: #fff; border-radius: 16px; padding: 6px 12px; font-weight: 800;
  color: var(--mq-marine); box-shadow: 0 4px 12px rgba(31,58,138,.12); white-space: nowrap; }
.hero-bulle::after { content: ''; position: absolute; right: -8px; top: 12px; border: 6px solid transparent; border-left-color: #fff; }
.hero-home .mode-barre { background: rgba(255,255,255,.7); border: 0; box-shadow: none; padding: 8px 12px; margin: 10px 0 0; border-radius: 14px; }
.hero-home .mode-question { font-size: 13.5px; }
.hero-home .mode-aide { display: none; }
.home-grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.home-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.hc { padding: 18px 20px; }
.hc-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hc-tete h3 { margin: 0; font-size: 19px; }
.hc-ico { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.hc-bleu { background: var(--mq-bleu-p); } .hc-vert { background: var(--mq-vert-p); } .hc-violet { background: var(--mq-violet-p); }
.hc-rose { background: var(--mq-rose-p); } .hc-orange { background: var(--mq-orange-p); }
.hc-seance { background: linear-gradient(160deg, #f3f8ff, #ffffff); }
.hc-min { margin-left: auto; background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 800; color: var(--mq-marine); font-size: 13.5px; box-shadow: 0 3px 10px rgba(31,58,138,.08); }
.plan-num { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.plan-num .pi { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 9px 12px; font-weight: 800; color: #24355f; font-size: 16px; }
.plan-num .pn { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; flex: 0 0 30px; }
.pn1 { background: #22c55e; } .pn2 { background: #f59e0b; } .pn3 { background: #8b5cf6; } .pn4 { background: #2f6fed; }
.plan-num .pt { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--mq-bleu-d); background: var(--mq-bleu-p); border-radius: 999px; padding: 2px 9px; }
.cta-seance { width: 100%; font-size: 18px; padding: 15px 20px; }
.hc-livre .livre-jour { gap: 14px; }
.hc-livre .livre-jour-cover { font-size: 44px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(160deg, #eaf2ff, #f5efff); border: 1px solid #e0e8fb; }
.livre-vide { display: flex; align-items: center; gap: 14px; }
.livre-vide .placeholder { width: 64px; height: 84px; border: 2px dashed #c9d8f5; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #9aa6c2; font-size: 26px; }
.hc-astuce { margin-top: 10px; background: #fffbea; border-radius: 12px; padding: 8px 12px; font-size: 13px; color: #6b5a1a; }
.hc-objectif { background: linear-gradient(160deg, #f0fbf4, #ffffff); }
.hc-progresse { background: linear-gradient(160deg, #f5f1ff, #ffffff); }
.hc-defi { background: linear-gradient(160deg, #fff1f1, #ffffff); }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-tile { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; }
.stat-tile b { display: block; font-size: 22px; color: var(--mq-marine); }
.stat-tile span { font-size: 11.5px; color: #6b7688; font-weight: 700; line-height: 1.15; display: block; }
.stat-tile.t1 b { color: #16a34a; } .stat-tile.t2 b { color: #7c3aed; } .stat-tile.t3 b { color: #d97706; }
.btn-rouge { background: #ef4444 !important; box-shadow: 0 6px 16px rgba(239,68,68,.25) !important; }
.btn-rouge:hover { background: #dc2626 !important; }
.hc-defi .defi-txt { font-size: 18px; font-weight: 800; color: #b91c1c; margin: 4px 0 10px; }
.acces-rapides { padding: 16px 18px; }
.acces-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.acces-tile { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: left;
  border: 0; font-family: inherit; transition: transform .12s; }
.acces-tile:hover { transform: translateY(-2px); }
.acces-tile .ai { font-size: 22px; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); }
.acces-tile b { display: block; font-size: 14px; color: var(--mq-marine); }
.acces-tile span { font-size: 12px; color: #6b7688; }
.acces-tile .chev { margin-left: auto; color: #9aa6c2; font-size: 18px; }
.at-bleu { background: var(--mq-bleu-p); } .at-orange { background: var(--mq-orange-p); } .at-violet { background: var(--mq-violet-p); } .at-vert { background: var(--mq-vert-p); }
@media (max-width: 900px) {
  .hero-txt h1 { font-size: 30px; } .hero-fox img { height: 110px; } .hero-bulle { display: none; }
  .home-grid-2, .home-grid-3 { grid-template-columns: 1fr; }
  .acces-grille { grid-template-columns: repeat(2, 1fr); }
}
/* images optionnelles (V2/PROMPTS-IMAGES.md) + bouton déconnexion sidebar */
.nav-btn.nav-deco { color: #8a94ab; font-size: 13px; }
.nav-btn.nav-deco:hover { color: #b91c1c; background: #fff1f1; }
.logo-img { height: 58px; width: auto; display: block; margin: 0 auto 2px; }
.nav-logo.a-img .logo-a, .nav-logo.a-img .logo-b, .nav-logo.a-img .logo-etoile { display: none; }
.img-genre { height: 44px; width: auto; display: block; }
.livre-cover .img-genre { height: 40px; margin: 0 auto; }
.img-reco { height: 44px; width: auto; display: block; }
.img-reco-g { height: 64px; width: auto; display: block; margin: 0 auto; }
.son-illus { font-size: 54px; }
.son-illus .img-son { height: 130px; width: auto; display: block; margin: 0 auto; }
@media (max-width: 900px) { .nav-btn.nav-deco { width: auto; } }
/* lecture d'une liste : étiquette + 🔊 + état ✅/❌ (retour : « pas possible de mettre erreur ») */
.lire-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mot-lire { position: relative; }
.mot-etat { position: absolute; top: -10px; right: -10px; font-size: 18px; }
.mot-ecoute { background: #fff; border: 1.5px solid var(--bord); border-radius: 999px; padding: 4px 10px; font-size: 14px; cursor: pointer; }
.mot-ecoute:hover { border-color: var(--mq-bleu); }
.lire-legende { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.legende-ok { color: #16a34a; } .legende-ko { color: #dc2626; }
/* sidebar : CTA séance */
.nav-cta { margin: 2px 6px 6px 46px; background: var(--mq-bleu); color: #fff; border: 0; border-radius: 12px; padding: 8px 10px;
  font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(47,111,237,.25); }
.nav-cta:hover { background: var(--mq-bleu-d); }
@media (max-width: 900px) { .nav-cta { margin: 4px 0; width: 100%; } }
/* entêtes illustrées */
.entete-illu { display: flex; align-items: center; gap: 16px; border-radius: 22px; padding: 18px 24px; margin-bottom: 16px; min-height: 120px;
  background: linear-gradient(120deg, #eaf2ff 0%, #fff7ea 65%, #ffeef2 100%); }
.entete-illu .ei-txt { flex: 1; min-width: 0; }
.entete-illu h1 { margin: 0; font-size: 30px; }
.entete-illu p { margin: 6px 0 0; color: #34415e; font-weight: 600; }
.entete-illu .ei-img { height: 130px; width: auto; flex: 0 0 auto; }
.ei-seance { background: linear-gradient(120deg, #e3edff 0%, #f3ecff 60%, #fff3e6 100%); }
.entete-biblio { border-radius: 22px; padding: 26px 26px; margin-bottom: 16px; min-height: 120px; color: #fff;
  background: linear-gradient(90deg, rgba(30,58,138,.75), rgba(30,58,138,.15)), url('../img/illus-bibliotheque.png') center/cover, #7a5cd0; }
.entete-biblio h1 { color: #fff; margin: 0; } .entete-biblio p { margin: 6px 0 0; font-weight: 700; }
@media (max-width: 900px) { .entete-illu .ei-img { height: 90px; } .entete-illu h1 { font-size: 24px; } }
/* ma séance : étapes */
.etapes { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.etape { flex: 1 1 150px; background: #f7faff; border: 1px solid #e3ebfa; border-radius: 16px; padding: 12px; text-align: center; position: relative; }
.etape .pn { position: absolute; top: -10px; left: -6px; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.etape-e { font-size: 30px; } .etape-t { font-weight: 800; color: var(--mq-marine); margin: 4px 0; } .etape-m { font-size: 12px; color: #6b7688; margin-bottom: 4px; }
.etape-fleche { align-self: center; color: #9aa6c2; font-size: 24px; }
.gros-chiffre { font-size: 36px; font-weight: 900; color: #16a34a; } .gros-chiffre span { font-size: 16px; color: #34415e; }
.ei-astuce img { float: right; height: 80px; margin: -6px 0 0 6px; }
/* livres : où j'en suis + journal */
.ou-jen-suis { background: #f3f8ff; border: 1px solid #dbe7fb; border-radius: 16px; padding: 12px; margin: 0 0 10px; }
.journal { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 160px; overflow: auto; }
.journal-l { display: flex; gap: 8px; align-items: center; font-size: 13px; background: #fff; border-radius: 10px; padding: 5px 8px; }
.img-coupon { height: 90px; width: auto; display: block; margin: 0 auto; }
.nav-go { margin-left: auto; background: var(--mq-bleu); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 900;
  box-shadow: 0 3px 10px rgba(47,111,237,.3); }
.nav-go:hover { background: var(--mq-bleu-d); }
/* syllabes / mots à lire : texte seul, grand et espacé (retour : « le carré dans le carré ») */
.lire-grand { gap: 18px 44px; margin: 22px 0 14px; }
.lire-grand span { background: none !important; border: 0 !important; padding: 0 4px !important; font-size: 46px; color: var(--mq-marine); letter-spacing: 3px; }
@media (max-width: 640px) { .lire-grand span { font-size: 34px; } }
.etape-nom { color: var(--mq-bleu); font-weight: 900; }
/* bibliothèque : lecture en cours en haut, étagère en bois */
.biblio-encours { border-left: 5px solid #ff8a3d; }
.encours-ligne { display: flex; gap: 16px; align-items: flex-start; }
.encours-cover { flex: 0 0 auto; width: 96px; height: 128px; border-radius: 12px; background: linear-gradient(160deg, #eaf2ff, #f5efff);
  border: 1px solid #e0e8fb; display: flex; align-items: center; justify-content: center; font-size: 48px; box-shadow: 4px 6px 0 #e3d3b8; }
.img-genre-g { width: 82px; height: auto; }
.encours-info { flex: 1; min-width: 0; }
.encours-titre { font-size: 22px; font-weight: 900; color: var(--mq-marine); }
.encours-com { margin-top: 8px; background: #fffbea; border-radius: 10px; padding: 6px 10px; font-size: 13.5px; color: #6b5a1a; }
.etagere-bois { padding: 14px 12px 0; border-radius: 14px; background:
  repeating-linear-gradient(180deg, transparent 0 168px, #c8905a 168px 180px), linear-gradient(180deg, #fff8ef, #fbeedd); }
.etagere-bois .livre-vignette { height: 156px; }
.livre-ajout .livre-cover { background: #fff; border: 2px dashed #c9d8f5; color: var(--mq-bleu); font-weight: 900; }
.livre-ajout:hover .livre-cover { border-color: var(--mq-bleu); }
.gros-emoji { font-size: 84px; text-align: center; line-height: 1.1; margin: 6px 0; }
.app-version { margin-top: auto; padding: 10px 6px 0; font-size: 11px; color: #9aa6c2; text-align: center; }
/* relier : traits */
.assoc-cols { position: relative; }
.assoc-traits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.assoc-col { position: relative; z-index: 1; }
/* outils de recette : commentaires + images */
.fab-com { background: #1e3a8a; }
body.mode-parent #fabs { display: flex; } body.mode-parent #fabs .fab-mot, body.mode-parent #fabs .fab-son { display: none; }
.ctx-com { background: #f3f6fb; border-radius: 10px; padding: 8px 10px; font-size: 11.5px; white-space: pre-wrap; text-align: left; max-height: 140px; overflow: auto; }
.img-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.img-item { display: flex; gap: 10px; align-items: center; border: 1.5px solid #f3c1c1; background: #fff8f8; border-radius: 12px; padding: 8px; }
.img-item.ok { border-color: #b7e4cd; background: #f1fbf5; }
.img-vig { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-vig img { max-width: 100%; max-height: 100%; }
.img-info { flex: 1; min-width: 0; } .img-info code { font-size: 12px; font-weight: 800; }
.img-statut::before { content: '❌ manque'; font-size: 12px; color: #dc2626; font-weight: 700; }
.img-item.ok .img-statut::before { content: '✅ ok'; color: #16a34a; }
/* ===== HOME CONCEPT refaite (lp-*) ===== */
.lp { max-width: 1180px; margin: 0 auto; }
.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; background: linear-gradient(120deg, #eaf2ff, #fff6ea 70%, #ffeef2);
  border-radius: 28px; padding: 34px 36px; margin-bottom: 18px; }
.lp-badge { display: inline-block; background: #fff; color: var(--mq-bleu-d); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 12px; box-shadow: 0 3px 10px rgba(31,58,138,.08); }
.lp-hero h1 { font-size: 44px; line-height: 1.08; margin: 14px 0 10px; color: var(--mq-marine); }
.lp-hero h1 span { color: var(--mq-bleu); }
.lp-hero p { font-size: 17px; color: #34415e; margin: 0 0 18px; }
.lp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta { background: var(--mq-bleu); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font-size: 16px; font-weight: 900; cursor: pointer; font-family: inherit; box-shadow: 0 8px 20px rgba(47,111,237,.3); }
.lp-cta:hover { background: var(--mq-bleu-d); }
.lp-cta2 { background: #fff; color: var(--mq-bleu-d); box-shadow: 0 4px 12px rgba(31,58,138,.1); }
.lp-cta2:hover { background: #eef4ff; }
.lp-demo { margin-top: 10px; display: block; }
.lp-hero-img img { width: 100%; border-radius: 22px; display: block; box-shadow: 0 14px 34px rgba(31,58,138,.15); }
.lp-piliers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.lp-pilier { border-radius: 22px; padding: 18px; text-align: center; }
.lp-pilier h3 { margin: 6px 0 4px; font-size: 18px; } .lp-pilier p { margin: 0; font-size: 14px; color: #34415e; }
.lp-pil-img { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.lp-pil-im { max-height: 110px; width: auto; }
.lp-p1 { background: #fff1f1; } .lp-p2 { background: #eaf2ff; } .lp-p3 { background: #fff6e0; } .lp-p4 { background: #efe9ff; }
.lp-bloc { background: #fff; border-radius: 22px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(31,58,138,.06); }
.lp-bloc h2, .lp-parents h2 { margin: 0 0 12px; }
.lp-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-etape { position: relative; background: #f7faff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.lp-num { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--mq-bleu); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.lp-et-emo { font-size: 28px; } .lp-etape b { color: var(--mq-marine); } .lp-etape span { font-size: 13.5px; color: #4a5775; }
.lp-parents { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: center; background: #effaf3; border-radius: 22px; padding: 20px 24px; margin-bottom: 18px; }
.lp-parents ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .lp-parents li { font-size: 15px; }
.lp-par-img { font-size: 90px; text-align: center; } .lp-par-im { width: 100%; border-radius: 16px; }
.lp-final { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(110deg, #2f6fed, #7c3aed); border-radius: 24px; padding: 26px 30px; color: #fff; overflow: hidden; margin-bottom: 14px; }
.lp-final h2 { color: #fff; margin: 0 0 4px; font-size: 26px; } .lp-final p { margin: 0; color: #e6ecff; font-weight: 600; }
.lp-final .lp-cta { background: #fff; color: #3b2fb0; } .lp-final .lp-blanc { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.lp-final img { height: 110px; margin-right: 10px; }
.lp-footer { text-align: center; color: #6b7688; font-size: 13px; padding: 6px 0 20px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding: 22px; } .lp-hero h1 { font-size: 32px; }
  .lp-piliers, .lp-etapes { grid-template-columns: 1fr 1fr; } .lp-parents { grid-template-columns: 1fr; } .lp-final img { display: none; }
}
/* mode debug */
#debug-badge { position: fixed; left: 12px; bottom: 12px; z-index: 80; background: rgba(30,58,138,.9); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 5px 12px; pointer-events: none; font-family: ui-monospace, Menlo, monospace; }
.lp-pour { margin-bottom: 18px; } .lp-pour h2 { margin: 0 0 12px; }
.lp-pour-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-pour-col { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; border-radius: 22px; padding: 18px 20px; }
.lp-pour-col h3 { margin: 0 0 8px; } .lp-pour-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; } .lp-pour-col li { font-size: 14.5px; }
.lp-enfants { background: #fff6e0; } .lp-pour-col.lp-parents { background: #effaf3; margin: 0; }
.lp-pour-img { font-size: 70px; text-align: center; } .lp-pour-im { max-width: 120px; max-height: 130px; }
@media (max-width: 900px) { .lp-pour-2 { grid-template-columns: 1fr; } }
#debug-badge { left: 50%; transform: translateX(-50%); }
.fab-com { background: #dc2626; }
.fab-com:hover { background: #b91c1c; }
#debug-badge { pointer-events: auto; cursor: pointer; border: 0; }
#debug-badge:hover { background: #dc2626; }
.com-types { display: flex; gap: 8px; justify-content: center; margin: 8px 0; }
.com-type { border: 2px solid #dbe4f5; background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-family: inherit; cursor: pointer; }
.com-type.actif { border-color: #2f6fed; background: #eaf2ff; color: #1f3a8a; }
/* consigne d'exercice : ne passe plus sous « Lecture auto » ni sous le renard */
.carte-question .consigne { padding-right: 200px; line-height: 1.6; }
@media (max-width: 700px) { .carte-question .consigne { padding-right: 0; margin-top: 34px; } }
.assoc-btn.assoc-emoji { font-size: 44px; line-height: 1; padding: 8px; }
/* Menu latéral : une seule colonne, jamais de retour en 2e colonne (écrans peu hauts),
   hauteur = écran moins les marges, défilement interne si besoin, plus compact. */
@media (min-width: 901px) {
  #nav { flex-wrap: nowrap; height: calc(100vh - 24px); top: 12px; gap: 2px; padding: 14px 12px; }
  .nav-logo { flex: 0 0 auto; width: 100%; padding: 0; margin: 0 0 10px; justify-content: center; }
  .logo-img { height: 54px; margin: 0 auto; }
  .nav-groupe { flex: 0 0 auto; flex-wrap: nowrap; gap: 2px; }
  .nav-btn { padding: 7px 10px; }
  .nav-sep { margin: 6px 4px; }
  #nav .app-version { margin-top: auto; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .nav-btn { padding: 5px 10px; font-size: 13.5px; } .ni { width: 26px; height: 26px; flex-basis: 26px; font-size: 14px; }
  .logo-img { height: 44px; }
}
@media (max-width: 900px) {
  #nav { flex-wrap: wrap; align-items: center; }
  .nav-logo { flex: 0 0 auto !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
  .logo-img { height: 40px; margin: 0; }
  #nav .app-version { display: none; }
}

/* ---- mots en GRAND dans les choix (écoute → clique le mot) ---- */
.choix.choix-mots { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.choix.choix-mots button { font-size: 30px; font-weight: 800; letter-spacing: .5px; padding: 18px 26px; min-width: 110px; }
/* ---- compteur de mots pendant la minute de lecture ---- */
.flu-compteurs { display: flex; justify-content: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.flu-tap { font-size: 22px; font-weight: 800; padding: 22px 30px; border-radius: 16px; border: 2px solid #2f6fed; background: #eef4ff; color: #1d4fc4; cursor: pointer; user-select: none; }
.flu-tap:active { transform: scale(.96); background: #dce8ff; }
/* ---- bibliothèque : onglets + coups de cœur ---- */
.biblio-onglets { margin: 4px 0 14px; }
.coeur-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #f3d9e2; background: #fff7fa; border-radius: 14px; margin-bottom: 10px; }
.coeur-card .coeur-e { font-size: 34px; }
.coeur-avis { font-style: italic; color: #7a5560; margin-top: 4px; }
.decouv-row { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e3ecff; background: #f8faff; border-radius: 14px; margin-bottom: 10px; }
.decouv-row .decouv-e { font-size: 32px; }
.biblio-vide { text-align: center; padding: 26px 14px; }
.biblio-vide .bv-e { font-size: 54px; }
.reco-utilisee { opacity: .55; }
