/* Pas de chat : rose poudré, ballerine, encre prune.
   Le texte rose utilise --rose-encre, assez foncé pour se lire ; les roses
   clairs ne servent qu'aux aplats (même piège que l'or d'Emy sur blanc). */

:root {
  --fond: #FBF3F1;
  --carte: #FFFFFF;
  --ballerine: #F9E3E6;
  --poudre: #EFC9CF;
  --rose: #DE97A3;
  --rose-encre: #9A3F55;
  --rose-encre-2: #7F3046;
  --encre: #4A2B33;
  --encre-douce: #765960;
  --ligne: #F1DADE;
  --ombre: 0 8px 28px rgba(154, 63, 85, 0.09);
  --rayon: 24px;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; }
html.grand { font-size: 21px; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: var(--texte); font-weight: 500; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 108px); }
h1, h2 { font-family: var(--titre); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--encre); }
h1 { font-size: 1.85rem; line-height: 1.12; }
h2 { font-size: 1.28rem; line-height: 1.2; margin-bottom: 8px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }
button, input { font: inherit; color: inherit; }
a.btn-principal, a.btn-secondaire, label.btn-secondaire { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.petit { font-size: 0.86rem; color: var(--encre-douce); }
.grand-texte { font-size: 1.1rem; }
.surtitre { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rose-encre); margin: 0 0 4px; }
.meta { color: var(--encre-douce); font-size: 0.95rem; }
.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête ---------- */
.entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 2px 16px; }
.entete .surtitre { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--encre-douce); font-weight: 700; }
.entete .surtitre::first-letter { text-transform: uppercase; }
.icone-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--carte); box-shadow: var(--ombre); color: var(--rose-encre); flex: none; font-size: 1.6rem; line-height: 1; }

/* ---------- Cartes ---------- */
.carte { background: var(--carte); border-radius: var(--rayon); padding: 18px 18px; margin-bottom: 14px; box-shadow: var(--ombre); }
.carte.accent { background: var(--ballerine); box-shadow: none; border: 1.5px solid var(--poudre); }
.carte.vedette { background: linear-gradient(160deg, #FFFFFF 0%, var(--ballerine) 100%); border: 1.5px solid var(--poudre); }
.carte.vedette h2 { font-size: 1.6rem; margin-bottom: 6px; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.rangee.centre { justify-content: center; }
.rangee > .btn-principal, .rangee > .btn-secondaire { flex: 1 1 auto; width: auto; margin: 0; }

/* ---------- Boutons ---------- */
.btn-principal, .btn-secondaire {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; border-radius: 999px; padding: 12px 22px; margin-top: 12px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; text-align: center;
}
.btn-principal { background: var(--rose-encre); color: #fff; box-shadow: 0 6px 18px rgba(154, 63, 85, 0.28); }
.btn-principal:active { background: var(--rose-encre-2); transform: scale(0.98); }
.btn-principal .patte { width: 26px; height: 26px; fill: #fff; }
.btn-principal.petit { min-height: 50px; font-size: 0.98rem; padding: 10px 18px; flex: 0 0 auto; }
.btn-secondaire { background: var(--ballerine); color: var(--rose-encre); border: 1.5px solid var(--poudre); }
.btn-secondaire:active { transform: scale(0.98); }
.lien { display: block; margin: 12px auto 0; padding: 10px 8px; font-weight: 700; color: var(--rose-encre); text-decoration: underline; text-underline-offset: 3px; text-align: center; min-height: 44px; }
.lien.danger { color: #8E2A2A; }

/* ---------- Dessins ---------- */
.patte { fill: var(--rose); }
.chat { width: 60px; height: 60px; }
.chat .tete { fill: var(--ballerine); stroke: var(--encre); stroke-width: 2.4; stroke-linejoin: round; }
.chat .oreille { fill: var(--poudre); }
.chat path:not(.tete):not(.oreille):not(.nez) { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat .moustache { stroke: var(--encre-douce) !important; stroke-width: 1.6 !important; }
.chat .nez { fill: var(--rose-encre); }
.chat .plein { fill: var(--encre); }
.chat-assis { width: 120px; height: 138px; display: block; margin: 0 auto; }
.chat-assis .corps { fill: var(--poudre); stroke: var(--encre); stroke-width: 2.2; stroke-linejoin: round; }
.chat-assis .queue { fill: none; stroke: var(--encre); stroke-width: 7; stroke-linecap: round; }
.chat-assis .trait { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; }
.chat-assis .nez { fill: var(--rose-encre); }
.chat-dort { width: 150px; height: 90px; display: block; margin: 0 auto 6px; }
.chat-dort .corps { fill: var(--poudre); stroke: var(--encre); stroke-width: 2.2; stroke-linejoin: round; }
.chat-dort .queue { fill: none; stroke: var(--encre); stroke-width: 6; stroke-linecap: round; }
.chat-dort .trait { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; }
.chat-dort .nez { fill: var(--rose-encre); }
.chat-dort .zz { font-family: var(--titre); font-size: 13px; fill: var(--rose-encre); font-weight: 600; }
.chat-dort .zz.petit { font-size: 10px; }
.ballerines { width: 92px; height: 78px; flex: none; }
.ballerines .chausson { fill: var(--poudre); stroke: var(--encre); stroke-width: 2.2; }
.ballerines .ouverture { fill: var(--ballerine); stroke: var(--encre); stroke-width: 1.6; }
.ballerines .ruban { fill: none; stroke: var(--rose-encre); stroke-width: 2.2; stroke-linecap: round; }
.grande-patte { width: 92px; height: 92px; display: block; margin: 0 auto; fill: var(--rose); }

/* ---------- Humeurs (chats) ---------- */
.humeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.humeurs button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 14px; border-radius: 20px; background: var(--fond); border: 1.5px solid var(--ligne); font-weight: 800; font-size: 0.92rem; line-height: 1.2; text-align: center; min-height: 116px; }
.humeurs button:active { background: var(--ballerine); border-color: var(--rose); }
.humeurs .chat { width: 58px; height: 58px; }
.ligne-matin { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ligne-matin .chat { width: 44px; height: 44px; flex: none; }
.ligne-matin p { margin: 0; flex: 1; font-size: 0.95rem; }
.ligne-matin .lien { margin: 0; padding: 6px; font-size: 0.9rem; }

/* ---------- Semaine ---------- */
.bande { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0 4px; }
.jour { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jour .lettre { font-size: 0.78rem; font-weight: 800; color: var(--encre-douce); }
.jour .rond { width: min(40px, 10vw); height: min(40px, 10vw); border-radius: 50%; display: grid; place-items: center; background: var(--fond); border: 1.5px solid var(--ligne); font-weight: 800; font-size: 0.9rem; color: var(--encre-douce); }
.bande.grande .jour .rond { width: min(44px, 10.4vw); height: min(44px, 10.4vw); }
.jour.actif .rond { background: var(--ballerine); border-color: var(--rose); }
.jour .rond .patte { width: 26px; height: 26px; fill: var(--rose-encre); }
.jour.aujourdhui .rond { border: 2.5px solid var(--rose-encre); color: var(--rose-encre); }
.jour.futur .rond { opacity: 0.55; }
.sous-bande { margin: 10px 0 0; color: var(--encre-douce); font-size: 0.95rem; }
.sous-bande strong { color: var(--encre); }

.mois-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mois-tete h2 { margin: 0; text-transform: capitalize; }
.mois-tete .icone-btn { width: 44px; height: 44px; box-shadow: none; background: var(--fond); }
.grille-mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.grille-mois > span { font-size: 0.75rem; font-weight: 800; color: var(--encre-douce); padding-bottom: 2px; }
.case { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--fond); font-weight: 700; font-size: 0.85rem; color: var(--encre-douce); }
.case.actif { background: var(--ballerine); }
.case .patte { width: 70%; height: 70%; fill: var(--rose-encre); }
.case.aujourdhui { outline: 2.5px solid var(--rose-encre); outline-offset: -2px; color: var(--rose-encre); }
.case.futur { opacity: 0.5; }

/* ---------- Carte vedette ---------- */
.vedette-tete { display: flex; align-items: center; gap: 14px; }
.vedette-tete .grande-patte { width: 64px; height: 64px; margin: 0; flex: none; }
.liste-faits { list-style: none; padding: 0; margin: 12px 0 0; }
.liste-faits li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ligne); font-weight: 700; }
.liste-faits li:first-child { border-top: 0; }
.liste-faits li span { flex: 1; }
.liste-faits .patte { width: 24px; height: 24px; fill: var(--rose-encre); flex: none; }
.liste-faits .lien { margin: 0; padding: 4px; font-size: 0.85rem; min-height: 0; }
.repos { text-align: center; }

/* ---------- Danse et tapis ---------- */
.carte-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 2px; }
.carte-tete > div { flex: 1; min-width: 0; }
.carte-tete h2 { margin-bottom: 4px; }
.carte-tete p { margin: 0; }
.dessin-tapis { width: 86px; height: 66px; flex: none; }
.dessin-tapis .ruban { fill: none; stroke: var(--rose-encre); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dessin-tapis .tete-chat { fill: var(--poudre); stroke: var(--encre); stroke-width: 2; }
.dessin-tapis .oreilles { fill: var(--poudre); stroke: var(--encre); stroke-width: 1.6; stroke-linejoin: round; }
.dessin-tapis .socle { fill: var(--poudre); stroke: var(--encre); stroke-width: 2; }
.dessin-tapis .trait-tapis { stroke: var(--encre); stroke-width: 1.4; stroke-dasharray: 4 5; }
.danse { display: flex; gap: 12px; align-items: flex-start; }
.danse-corps { flex: 1; min-width: 0; }
.danse .rangee { margin-top: 8px; }
.danse .rangee > * { margin-top: 0; }
.fait-ligne { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--rose-encre); }
.fait-ligne .patte { width: 22px; height: 22px; fill: var(--rose-encre); flex: none; }

/* ---------- Champs ---------- */
.champ { width: 100%; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--poudre); background: #fff; padding: 12px 16px; font-size: 1.1rem; font-weight: 700; color: var(--encre); outline: none; }
.champ:focus { border-color: var(--rose-encre); box-shadow: 0 0 0 4px var(--ballerine); }
.champ.court { width: 9em; flex: 0 0 auto; }
.unite { font-weight: 800; color: var(--encre-douce); }
.rangee .champ { flex: 1 1 100px; width: auto; min-width: 0; }

/* ---------- Accueil ---------- */
.accueil { text-align: center; padding-top: 18px; }
.accueil h1 { margin: 12px 0 10px; font-size: 2.1rem; }
.accueil .carte { text-align: left; }
.accueil .champ { margin: 8px 0 0; text-align: center; }
.accueil .chat { width: 88px; height: 88px; }
.regle p { font-size: 1.02rem; }
.question { font-weight: 800; margin-bottom: 10px; }
.choix-2 { display: grid; gap: 8px; }
.choix { min-height: 54px; border-radius: 16px; border: 1.5px solid var(--ligne); background: var(--fond); font-weight: 800; padding: 10px 14px; text-align: center; }
.choix[aria-pressed="true"] { background: var(--ballerine); border-color: var(--rose-encre); color: var(--rose-encre); }
.etapes { margin: 0; padding-left: 1.3em; }
.etapes li { margin-bottom: 8px; }

/* ---------- Séance ---------- */
.seance { padding-top: 2px; }
.seance-haut { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 15; background: var(--fond);
  padding: calc(env(safe-area-inset-top) + 10px) 0 10px; margin: calc(-14px - env(safe-area-inset-top)) 0 10px; }
.chrono { display: inline-flex; align-items: center; gap: 5px; flex: none; background: var(--ballerine); color: var(--rose-encre); border: 1.5px solid var(--poudre);
  border-radius: 99px; padding: 5px 11px 5px 8px; font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.chrono .ic { width: 18px; height: 18px; }
.seance-haut .icone-btn { width: 44px; height: 44px; }
.barre { flex: 1; height: 10px; background: var(--ballerine); border-radius: 99px; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--rose); border-radius: 99px; transition: width 0.4s ease; }
.compte { font-weight: 800; color: var(--encre-douce); font-size: 0.9rem; min-width: 2.6em; text-align: right; }
.demo { border-radius: var(--rayon); overflow: hidden; margin: 6px 0 14px; background: var(--ballerine); }
.demo video { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: var(--ballerine); }
.demo-dessin { display: grid; place-items: center; height: 150px; background: radial-gradient(circle at 50% 110%, var(--poudre) 0%, var(--ballerine) 58%); }
.demo-dessin .chat-assis { width: 96px; height: 110px; }
.nom-exo { font-size: 1.9rem; margin-bottom: 4px; }
.pose { color: var(--encre-douce); font-weight: 700; margin-bottom: 12px; }
.niveau { background: var(--ballerine); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.pastille { display: inline-block; background: var(--rose-encre); color: #fff; font-weight: 800; font-size: 0.8rem; border-radius: 99px; padding: 3px 12px; margin-bottom: 6px; }
.niveau-texte { font-weight: 800; margin: 0; font-size: 1.05rem; }
.clin { font-family: var(--titre); font-style: italic; color: var(--rose-encre); font-size: 1.1rem; margin: -4px 0 10px; }
.consignes { padding-left: 1.4em; margin: 0 0 10px; font-size: 1.05rem; }
.consignes li { margin-bottom: 8px; padding-left: 4px; }
.consignes li::marker { color: var(--rose-encre); font-weight: 800; }
.attention { background: #FFF7E9; border-left: 4px solid #D9A55B; border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; }
.cible { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 6px; }
.cible-chiffre { font-family: var(--titre); font-size: 4.2rem; line-height: 1; color: var(--rose-encre); font-weight: 600; }
.cible-mot { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.minuteur-zone { display: flex; flex-direction: column; align-items: center; margin: 16px 0 6px; }
.minuteur-zone .btn-secondaire, .minuteur-zone .btn-principal { width: auto; min-width: 200px; }
.cercle { --p: 0; width: 168px; height: 168px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%), conic-gradient(var(--rose-encre) calc(var(--p) * 360deg), var(--ballerine) 0); }
.cercle span { font-family: var(--titre); font-size: 3.4rem; line-height: 1; color: var(--rose-encre); font-weight: 600; }
.cercle small { font-weight: 800; color: var(--encre-douce); }

.btn-patte { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px auto 0; width: 156px; height: 156px; border-radius: 50%;
  background: var(--rose-encre); color: #fff; font-weight: 800; font-size: 1.05rem; justify-content: center; box-shadow: 0 10px 26px rgba(154, 63, 85, 0.32); }
.btn-patte .patte { width: 72px; height: 72px; fill: #fff; transition: transform 0.25s ease; }
.btn-patte:active { transform: scale(0.96); }
.btn-patte.appel { animation: appel 1.2s ease-in-out infinite; }
.btn-patte.tamponne { background: var(--poudre); color: var(--rose-encre); }
.btn-patte.tamponne .patte { fill: var(--rose-encre); animation: tampon 0.5s ease; }
@keyframes appel { 0%, 100% { box-shadow: 0 10px 26px rgba(154, 63, 85, 0.32); } 50% { box-shadow: 0 0 0 14px rgba(222, 151, 163, 0.35); } }
@keyframes tampon { 0% { transform: scale(1.6) rotate(-14deg); opacity: 0; } 60% { transform: scale(0.9) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

.proposition { text-align: center; background: var(--ballerine); box-shadow: none; border: 1.5px solid var(--poudre); }
.proposition .chat { width: 64px; height: 64px; }
.proposition .niveau-texte { background: #fff; border-radius: 14px; padding: 10px 12px; margin: 8px 0 4px; }

.fin { text-align: center; padding-top: 24px; }
.fin h1 { margin: 14px 0 8px; font-size: 2.1rem; }
.fin .humeurs { margin: 18px 0 0; }
.fin .carte { text-align: left; margin-top: 14px; }
.tampon-arrive { animation: tampon 0.7s ease; width: 120px; height: 120px; }
.messages { margin: 0; padding-left: 1.2em; }
.messages li { margin-bottom: 6px; }
.messages li::marker { color: var(--rose); }

/* ---------- Test ---------- */
.compteur { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 26px 0 10px; }
.compteur span { font-family: var(--titre); font-size: 4.6rem; color: var(--rose-encre); min-width: 1.6em; text-align: center; line-height: 1; }
.rond-btn { width: 70px; height: 70px; border-radius: 50%; background: var(--ballerine); border: 1.5px solid var(--poudre); color: var(--rose-encre); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.resultats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.resultats > div, .chiffres > div { display: flex; flex-direction: column; align-items: center; }
.resultats > div { background: var(--carte); border-radius: 20px; padding: 14px 8px; box-shadow: var(--ombre); }
.gros { font-family: var(--titre); font-size: 2.6rem; line-height: 1.05; color: var(--rose-encre); font-weight: 600; }
.resultats small, .chiffres small { font-weight: 800; color: var(--encre-douce); font-size: 0.85rem; text-align: center; }

/* ---------- Progrès ---------- */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chiffres .gros { font-size: 2.2rem; }
.jauge { height: 14px; background: var(--ballerine); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.jauge span { display: block; height: 100%; background: var(--rose); border-radius: 99px; }
.barres { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 10px; }
.barres .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.barres .col { width: 100%; max-width: 38px; background: var(--rose); border-radius: 10px 10px 4px 4px; }
.barres .v { font-weight: 800; font-size: 0.85rem; color: var(--rose-encre); }
.barres .lbl { font-size: 0.68rem; color: var(--encre-douce); font-weight: 700; white-space: nowrap; }
.progres-exos { list-style: none; padding: 0; margin: 0; }
.progres-exos li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--ligne); }
.progres-exos li:first-child { border-top: 0; padding-top: 0; }
.progres-exos span { color: var(--encre-douce); font-size: 0.92rem; }
.progres-exos span.monte { color: var(--rose-encre); font-weight: 800; }
.courbe { width: 100%; height: auto; margin-top: 6px; }
.courbe polyline { fill: none; stroke: var(--rose-encre); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.courbe circle { fill: #fff; stroke: var(--rose-encre); stroke-width: 2.5; }
.courbe text { font-size: 11px; fill: var(--encre-douce); font-family: var(--texte); font-weight: 700; }

/* ---------- Réglages ---------- */
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--ligne); text-align: left; font-weight: 700; }
.interrupteur:first-of-type { border-top: 0; }
.glissiere { width: 56px; height: 32px; border-radius: 99px; background: var(--ligne); position: relative; flex: none; transition: background 0.2s; }
.glissiere span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transition: transform 0.2s; }
.interrupteur[aria-checked="true"] .glissiere { background: var(--rose-encre); }
.interrupteur[aria-checked="true"] .glissiere span { transform: translateX(24px); }

/* ---------- Puces (feuille) ---------- */
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.puce { min-height: 48px; padding: 8px 16px; border-radius: 99px; background: var(--fond); border: 1.5px solid var(--ligne); font-weight: 800; }
.puce[aria-pressed="true"] { background: var(--ballerine); border-color: var(--rose-encre); color: var(--rose-encre); }

/* ---------- Onglets ---------- */
#onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--ligne); }
#onglets[hidden] { display: none; }
#onglets button { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 16px; font-weight: 800; font-size: 0.8rem; color: var(--encre-douce); }
#onglets button[aria-current="page"] { color: var(--rose-encre); background: var(--ballerine); }

/* ---------- Feuille ---------- */
.feuille-fond { position: fixed; inset: 0; z-index: 40; background: rgba(74, 43, 51, 0.35); display: flex; align-items: flex-end; justify-content: center; }
.feuille-fond[hidden] { display: none; }
.feuille { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--fond); border-radius: 28px 28px 0 0; padding: 22px 18px calc(env(safe-area-inset-bottom) + 20px); text-align: center; animation: monte 0.25s ease; }
.feuille h2 { font-size: 1.45rem; margin: 6px 0 12px; }
.feuille .question { text-align: left; }
.feuille .puces { justify-content: flex-start; }
.feuille .chat { width: 64px; height: 64px; }
.feuille .ballerines { width: 84px; }
.feuille .liste-faits { text-align: left; }
.feuille .btn-patte { width: 132px; height: 132px; margin-top: 4px; }
.feuille .btn-patte .patte { width: 60px; height: 60px; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Bannière et toast ---------- */
.banniere-maj { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%); z-index: 50; background: var(--encre); color: #fff; border-radius: 99px; padding: 12px 20px; font-weight: 800; box-shadow: var(--ombre); width: max-content; max-width: calc(100% - 32px); }
.banniere-maj[hidden] { display: none; }
#toast { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 96px); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--encre); color: #fff; border-radius: 99px; padding: 12px 20px; font-weight: 800; max-width: calc(100% - 32px); text-align: center; }
#toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
