@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); }

:root {
  --bleu: #0B1F3A; --orange: #F59E0B; --ambre: #B45309; --creme: #FFF8EB; --blanc: #FFFFFF;
  --vert: #15803D; --texte: #0B1F3A; --ombre: rgba(11,31,58,.14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--creme); color: var(--texte); font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 1rem; padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
#app { max-width: 560px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; padding: 14px 0 18px; outline: none; }
:focus-visible { outline: 4px solid var(--bleu); outline-offset: 3px; border-radius: 8px; }
h1, h2 { margin: 0; }
h1 { font-weight: 800; font-size: 2.2rem; margin: 6px 0 2px; }
.h-mini { font-size: 1.15rem; margin: 0; text-align: center; }
.sous { margin: 0 0 14px; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; }
.cale { width: 52px; flex: none; }
.retour { background: var(--blanc); border: 0; border-radius: 999px; width: 52px; height: 52px; font-size: 1.5rem; box-shadow: 0 2px 6px var(--ombre); color: var(--bleu); flex: none; }
.points { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pt { width: 12px; height: 12px; border-radius: 50%; background: #CBBF9F; }
.pt.fait { background: var(--vert); } .pt.ici { background: var(--ambre); transform: scale(1.3); }

.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.carte { background: var(--blanc); border: 0; border-radius: 22px; padding: 18px 10px; box-shadow: 0 3px 10px var(--ombre); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--bleu); font: inherit; font-weight: 800; font-size: 1.05rem; min-height: 128px; justify-content: center; }
.carte .emo { font-size: 2.6rem; line-height: 1; }
.carte small { display: block; font-weight: 600; font-size: .9rem; }
.etoiles-txt { color: var(--ambre); font-weight: 800; font-size: .95rem; }
.carte.revision { flex-direction: row; gap: 14px; width: 100%; margin-bottom: 14px; min-height: 84px; background: var(--orange); text-align: left; justify-content: flex-start; padding: 12px 18px; }
.carte.revision .emo { font-size: 2.2rem; }
.ok-rev { margin: 0 0 14px; font-weight: 800; color: var(--vert); }
.liste { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--blanc); border: 0; border-radius: 20px; padding: 0 20px; min-height: 72px; font: inherit; font-weight: 800; font-size: 1.1rem; color: var(--bleu); box-shadow: 0 3px 10px var(--ombre); text-align: left; }
.etoiles { color: var(--ambre); letter-spacing: 2px; white-space: nowrap; }
.det { margin-top: 18px; font-weight: 600; font-size: .95rem; }
.det summary { cursor: pointer; padding: 10px 0; font-weight: 800; }
.det p { margin: 6px 0; line-height: 1.5; }

.scene { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 10px 0; }
.phase { font-size: 1rem; font-weight: 800; background: var(--bleu); color: var(--blanc); border-radius: 999px; padding: 6px 16px; }
.question { font-size: 1.4rem; font-weight: 800; }
.consigne { font-size: 1.1rem; margin: 0; }
.gros { font-weight: 800; line-height: 1; letter-spacing: .05em; color: var(--bleu); margin: 4px 0; word-break: break-word; }
.emoji { font-size: 5.5rem; line-height: 1; }
.decoupe { font-size: 1.7rem; color: var(--ambre); font-weight: 800; letter-spacing: .12em; }
.mot { font-size: 1.5rem; }

.equation { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tuile { min-width: 1.5em; padding: 0 .12em; font-size: clamp(3.5rem, 17vh, 7.5rem); font-weight: 800; line-height: 1.15; background: var(--blanc); color: var(--bleu); border: 4px solid transparent; border-radius: 22px; box-shadow: 0 3px 10px var(--ombre); font-family: inherit; }
button.tuile { cursor: pointer; }
.tuile.on { border-color: var(--bleu); background: var(--orange); transform: scale(1.06); }
.tuile.fait { background: #DCFCE7; border-color: var(--vert); }
.tuile.oups { border-color: var(--ambre); animation: secoue .35s; }
.tuile.res { background: var(--bleu); color: var(--blanc); }
.op { font-size: clamp(2rem, 8vh, 4rem); font-weight: 800; }
.cache { visibility: hidden; }

.haut-parleur { width: 112px; height: 112px; border-radius: 50%; border: 0; background: var(--orange); color: var(--bleu); font-size: 3rem; box-shadow: 0 6px 0 #B45309, 0 10px 18px var(--ombre); margin: 6px 0 10px; }
.haut-parleur.petit { width: 72px; height: 72px; font-size: 2rem; box-shadow: 0 4px 0 #B45309; }
.haut-parleur:active { transform: translateY(3px); }
.haut-parleur.joue { animation: pouls .7s ease-in-out infinite alternate; }
@keyframes pouls { to { transform: scale(1.08); } }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .tuile.on { transform: none; } }

.actions { display: flex; gap: 12px; width: 100%; }
.btn { flex: 1; min-height: 64px; border: 0; border-radius: 20px; font: inherit; font-weight: 800; font-size: 1.1rem; box-shadow: 0 3px 10px var(--ombre); }
.btn.vert { background: var(--vert); color: #fff; }
.btn.clair { background: var(--blanc); color: var(--bleu); }
.btn.orange { background: var(--orange); color: var(--bleu); }
.aide { font-size: .9rem; margin: 8px 0 0; font-weight: 600; max-width: 34em; }
.msg { min-height: 1.6em; margin: 0; font-weight: 800; font-size: 1.15rem; }

.choix { display: grid; gap: 12px; width: 100%; }
.choix button { min-height: 84px; border-radius: 22px; border: 4px solid transparent; background: var(--blanc); color: var(--bleu); font: inherit; font-weight: 800; box-shadow: 0 3px 10px var(--ombre); font-size: clamp(2.2rem, 7vh, 3.2rem); }
.choix button.long { font-size: 1.5rem; }
.choix button.oups { border-color: var(--ambre); animation: secoue .35s; opacity: .8; }
.choix button.indice { border-color: var(--vert); }
.choix button.bon { background: var(--vert); color: #fff; }
.etoiles-grandes .etoiles { font-size: 3.2rem; letter-spacing: 6px; }
.signature { margin-top: auto; padding-top: 18px; text-align: center; font-size: .8rem; letter-spacing: .18em; font-weight: 800; color: #4B5563; }
.installer { align-self: center; margin-top: 12px; flex: none; padding: 0 22px; }

/* ---- jeux, album, studio ---- */
.serie { margin: 0 0 12px; font-weight: 800; font-size: 1.1rem; color: var(--ambre); }
.carte.jeu { background: #E0F2FE; }
.carte.discret { background: #F5EEDB; font-size: .95rem; min-height: 104px; }
.ligne small { display: block; font-weight: 600; font-size: .9rem; margin-top: 2px; }
.ligne[disabled] { opacity: .6; }
.ciel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; width: 100%; padding: 8px 0; }
.ballon { position: relative; min-height: 130px; border: 0; border-radius: 50% 50% 48% 48%; font: inherit; font-weight: 800; font-size: clamp(2.2rem, 8vh, 3.4rem); color: var(--bleu); box-shadow: inset -8px -10px 0 rgba(0,0,0,.08), 0 6px 14px var(--ombre); animation: flotte 3s ease-in-out infinite alternate; }
.ballon::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 2px; height: 22px; background: var(--bleu); opacity: .5; }
.ballon.b0 { background: #FCA5A5; } .ballon.b1 { background: #93C5FD; } .ballon.b2 { background: #FDE68A; } .ballon.b3 { background: #86EFAC; }
.ballon.pop { animation: eclate .35s forwards; }
.ballon.oups { animation: secoue .35s; opacity: .55; }
@keyframes flotte { to { transform: translateY(-12px); } }
@keyframes eclate { 50% { transform: scale(1.25); } 100% { transform: scale(0); opacity: 0; } }
.memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cm { aspect-ratio: 3 / 4; border: 0; border-radius: 16px; background: var(--bleu); color: var(--blanc); font: inherit; font-weight: 800; font-size: clamp(1.4rem, 7vw, 2.4rem); box-shadow: 0 3px 10px var(--ombre); }
.cm.vis { background: var(--blanc); color: var(--bleu); border: 3px solid var(--orange); }
.cm.ok { background: #DCFCE7; border-color: var(--vert); }
.emplacements { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.emp { min-width: 64px; min-height: 70px; padding: 0 10px; border: 3px dashed var(--bleu); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.emp.plein { border-style: solid; background: #DCFCE7; border-color: var(--vert); }
.tuiles-mot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tm { min-width: 72px; min-height: 72px; border: 0; border-radius: 18px; background: var(--orange); color: var(--bleu); font: inherit; font-weight: 800; font-size: 2rem; box-shadow: 0 4px 0 #B45309; }
.tm[disabled] { opacity: .35; box-shadow: none; }
.tm.oups { animation: secoue .35s; }
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.vignette { background: var(--blanc); border-radius: 16px; padding: 8px 2px; text-align: center; box-shadow: 0 2px 6px var(--ombre); opacity: .7; }
.vignette.gagne { opacity: 1; background: #FEF3C7; }
.vignette .st { display: block; font-size: 2.2rem; }
.vignette small { font-size: .75rem; font-weight: 600; }
.sticker-grand { font-size: 3rem; vertical-align: middle; }
.gr { font-size: 1rem; margin: 18px 0 6px; font-weight: 800; }
.lv { display: flex; align-items: center; gap: 8px; background: var(--blanc); border-radius: 14px; padding: 6px 10px; margin-bottom: 8px; box-shadow: 0 2px 6px var(--ombre); }
.lv .lib { flex: 1; display: flex; flex-direction: column; text-align: left; }
.lv .lib b { font-size: 1.2rem; }
.lv .lib small { font-size: .8rem; font-weight: 600; }
.bv { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--creme); font-size: 1.3rem; flex: none; }
.bv.vide { background: none; }
.bv.rec.on { background: var(--bleu); color: var(--blanc); animation: pouls .7s ease-in-out infinite alternate; }
.confettis { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confettis i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: tombe 2.2s linear forwards; }
@keyframes tombe { to { transform: translateY(105vh) rotate(540deg); } }

/* ---- navigation précédent / suivant ---- */
.nav-items { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 10px; }
.btn.petit { flex: 1; min-height: 52px; font-size: .95rem; padding: 0 6px; }
.btn[disabled] { opacity: .4; box-shadow: none; }
.compteur { font-weight: 800; font-size: .95rem; white-space: nowrap; padding: 0 4px; }

/* ---- BILO, jardin, parcours, parent, guide ---- */
.bilo { display: flex; align-items: center; gap: 10px; background: var(--blanc); border-radius: 22px; padding: 8px 14px 8px 8px; margin: 0 0 14px; box-shadow: 0 3px 10px var(--ombre); }
.bilo-svg { width: 76px; height: 76px; flex: none; }
.bulle-bilo { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.scene > .bilo { width: 100%; }
.jardin { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fleur { background: var(--blanc); border: 0; border-radius: 14px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 2px 6px var(--ombre); font: inherit; color: var(--bleu); opacity: .65; min-height: 64px; }
.fleur.pousse { opacity: 1; background: #F0FDF4; }
.fleur .f { font-size: 1.7rem; line-height: 1.1; }
.fleur b { font-size: .95rem; }
.dico { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mot-carte { background: var(--blanc); border: 0; border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 10px var(--ombre); font: inherit; color: var(--bleu); }
.mot-carte .em { font-size: 2.6rem; line-height: 1.1; }
.mot-carte b { font-size: 1.3rem; }
.mot-carte small { color: var(--ambre); font-weight: 800; }
.mot-carte.verrou { opacity: .55; box-shadow: none; background: #F5EEDB; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.chiffres div { background: var(--blanc); border-radius: 16px; padding: 10px 4px; text-align: center; box-shadow: 0 2px 6px var(--ombre); }
.chiffres b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--bleu); line-height: 1.1; }
.chiffres small { font-size: .8rem; font-weight: 600; }
.insignes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.insigne { background: #F5EEDB; border-radius: 16px; padding: 10px 8px; text-align: center; opacity: .7; }
.insigne.ok { background: #FEF3C7; opacity: 1; }
.insigne .ic { display: block; font-size: 2rem; }
.insigne b { display: block; font-size: .95rem; }
.insigne small { font-size: .78rem; font-weight: 600; }
.carte-info { background: var(--blanc); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 2px 8px var(--ombre); }
.carte-info p { margin: 6px 0 0; font-weight: 600; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .95rem; }
.chip.vert { background: #DCFCE7; color: #14532D; } .chip.amb { background: #FEF3C7; color: #78350F; } .chip.ora { background: #FFEDD5; color: #7C2D12; }
.vide { font-weight: 600; font-size: .9rem; }
.conseils { margin: 6px 0 14px; padding-left: 20px; line-height: 1.5; font-weight: 600; font-size: .95rem; }
.barre-g { height: 10px; background: #E5D9BF; border-radius: 10px; overflow: hidden; margin: 6px 0; }
.barre-g i { display: block; height: 100%; background: var(--vert); }
@media print { .retour, .actions, .haut, .signature, .nav-items { display: none !important; } body { background: #fff; } }

/* ---- correctifs visuels (revue de captures) ---- */
[tabindex="-1"]:focus { outline: none; }
.op.egal { flex-basis: 100%; text-align: center; line-height: 1; margin: -4px 0; }
