/* Parcours de l'île : conte interactif (aucun style en ligne, la politique de sécurité les interdit) */
.jeu-conte { max-width: 720px; margin: 0 auto; }
.barre-etapes { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.barre-etapes li { flex: 1; height: 6px; border-radius: 999px; background: var(--trait); }
.barre-etapes li.fait { background: var(--couleur); }
.barre-etapes li.actuel { background: var(--couleur); opacity: .55; }
.zone-jeu { min-height: 200px; }
.decor { display: block; width: 100%; height: auto; max-height: 52vh; border-radius: 14px; border: 3px solid var(--couleur); background: #fff; }
.zone { cursor: pointer; }
.zone .halo { fill: transparent; stroke: transparent; stroke-width: 3; }
.zone:hover .halo, .zone:focus-visible .halo { stroke: #fff; stroke-dasharray: 5 4; }
.zone.trouve .halo { stroke: #fff; stroke-width: 4; fill: rgba(255, 255, 255, .25); }
.zone:focus-visible { outline: none; }
.compteur { margin: 6px 0 0; font-weight: 700; font-size: .95rem; }
.chrono { margin: 2px 0 6px; font-weight: 700; color: var(--erreur); }
.conteur {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; cursor: pointer;
  background: var(--carte); border: 1px solid var(--trait); border-left: 6px solid var(--couleur); border-radius: 12px;
}
.visage { font-size: 2.2rem; line-height: 1; }
.parole { flex: 1; min-width: 0; }
.texte-conteur { margin: 0 0 6px; min-height: 3.2em; font-size: 1.05rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.gros-bouton, .suite {
  display: inline-block; margin: 6px 8px 0 0; padding: 12px 18px; font: inherit; font-weight: 700; color: #fff;
  background: var(--marque-claire); border: 1px solid var(--marque-claire); border-radius: 10px; cursor: pointer; touch-action: manipulation;
}
.gros-bouton:disabled { opacity: .5; cursor: not-allowed; }
.panneau { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 12px 14px; }
.panneau h2 { margin-top: 4px; }
.choix { display: grid; gap: 8px; }
.choix-bouton {
  padding: 12px 14px; font: inherit; font-weight: 600; text-align: left; color: var(--texte); background: var(--fond);
  border: 2px solid var(--trait); border-radius: 10px; cursor: pointer;
}
.choix-bouton:hover:not(:disabled) { border-color: var(--couleur); }
.choix-bouton.juste { border-color: var(--vert); background: rgba(40, 170, 100, .15); }
.choix-bouton.faux { border-color: var(--erreur); background: rgba(200, 60, 60, .12); }
.choix-bouton.choisi { border-color: var(--couleur); background: color-mix(in srgb, var(--couleur) 18%, var(--carte)); }
.bloc-choix { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.bloc-choix legend { font-weight: 800; padding: 0; margin-bottom: 4px; }
.decor-fleur { max-height: 36vh; }
.volet-fleur { transition: transform .25s ease; transform-origin: 200px 140px; }
.volet-fleur.leve { transform: rotate(-35deg) translate(-8px, -6px); }
.jauge { position: relative; height: 22px; margin: 8px 0; background: var(--trait); border-radius: 999px; overflow: hidden; }
.jauge-zone { position: absolute; top: 0; bottom: 0; background: rgba(40, 170, 100, .55); }
.jauge-curseur { position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--texte); border-radius: 3px; }
.polli .gros-bouton { width: 100%; padding: 16px; user-select: none; -webkit-user-select: none; }
.medaille-grande { font-size: 5rem; text-align: center; animation: gagne .8s ease both; }
@keyframes gagne { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .medaille-grande { animation: none; } .volet-fleur { transition: none; } }
.fin { text-align: center; }
.fin .bouton { margin: 6px 4px; }
[hidden] { display: none !important; }
.photo { margin: 10px 0 0; }
.photo img { display: block; width: 100%; max-height: 38vh; object-fit: cover; border-radius: 12px; border: 3px solid var(--couleur); }
.photo figcaption { margin-top: 4px; font-size: .75rem; color: var(--discret); }
/* Mini-jeu « gagner sa vie » : la canne, la bourse, le marché */
.champ { max-height: 40vh; touch-action: manipulation; cursor: pointer; user-select: none; -webkit-user-select: none; }
.canne { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .22s ease-in, opacity .45s ease; }
.canne.coupee { transform: rotate(78deg) translateY(10px); opacity: .08; }
.canne .entaille { opacity: 0; }
.canne.c1 .entaille { opacity: .55; }
.canne.c2 .entaille { opacity: 1; }
.hache { pointer-events: none; transform-box: fill-box; transform-origin: 85% 85%; }
.hache.frappe { animation: coup-hache .16s ease-out; }
@keyframes coup-hache { from { transform: rotate(-55deg); } to { transform: rotate(0); } }
.chrono-barre { height: 14px; margin: 8px 0; background: var(--trait); border-radius: 999px; overflow: hidden; }
.chrono-barre .rempli { height: 100%; width: 0; background: var(--erreur); }
.tas { margin: 2px 0; min-height: 1.6em; font-size: 1.1rem; line-height: 1.3; word-break: break-all; }
.frapper { width: 100%; padding: 18px; font-size: 1.15rem; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.recap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; font-weight: 700; }
.recap .fleche { opacity: .55; }
.recap .gain { color: var(--vert); }
.bourse { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0; min-height: 22px; }
.piece { width: 16px; height: 16px; border-radius: 50%; background: #e8b923; border: 2px solid #b78a0c; box-sizing: border-box; }
.piece.depensee { background: var(--trait); border-color: var(--trait); opacity: .55; }
.piece.manque { background: transparent; border: 2px dashed var(--erreur); }
.evt { margin: 4px 0; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--erreur) 10%, var(--carte)); font-weight: 600; }
.etal { margin: 10px 0; }
.tuiles { display: flex; gap: 8px; }
.tuile {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; font: inherit; text-align: center;
  color: var(--texte); background: var(--fond); border: 2px solid var(--trait); border-radius: 12px; cursor: pointer; touch-action: manipulation;
}
.tuile .grand-icone { font-size: 2rem; line-height: 1.1; }
.tuile .petit { font-size: .78rem; opacity: .85; }
.tuile .prix { font-weight: 800; font-size: .95rem; }
.tuile:hover { border-color: var(--couleur); }
.tuile.choisi { border-color: var(--couleur); background: color-mix(in srgb, var(--couleur) 18%, var(--carte)); }
@media (prefers-reduced-motion: reduce) { .canne { transition: none; } .hache.frappe { animation: none; } }
.outil-actuel { margin: 2px 0 6px; font-weight: 700; font-size: .9rem; color: var(--discret); }
/* v0.9.12 : énergie, imprévus, catégories de dépenses */
.energie-barre { height: 14px; margin: 4px 0 8px; background: var(--trait); border-radius: 999px; overflow: hidden; }
.energie-barre .niveau { height: 100%; width: 100%; background: #e8b923; transition: width .1s linear; }
.evt.imprevu { border-left: 6px solid var(--erreur); }
.bloc-choix.etal { border-left: 6px solid var(--trait); padding-left: 8px; }
.bloc-choix.cat-utile { border-left-color: var(--vert); }
.bloc-choix.cat-efficace { border-left-color: var(--couleur); }
.bloc-choix.cat-futile { border-left-color: #c77dd6; border-left-style: dashed; }
.puce-cat { display: inline-block; margin-bottom: 4px; padding: 1px 8px; font-size: .75rem; font-weight: 700; border-radius: 999px; background: var(--trait); }
@media (prefers-reduced-motion: reduce) { .energie-barre .niveau { transition: none; } }
/* v0.10.0 : jauges de précision, scores, page de score partageable */
.jauge-zone.bien { background: rgba(40, 170, 100, .35); }
.jauge-zone.parfait { background: rgba(20, 130, 70, .9); }
.points-geste { margin: 4px 0; font-weight: 800; color: var(--vert); min-height: 1.4em; }
.carte-score { text-align: center; }
.palier { font-weight: 800; }
.etapes-score { list-style: none; padding: 0; margin: 10px auto; max-width: 420px; }
.etapes-score li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--trait); }
.bilan-score { list-style: none; padding: 0; margin: 10px 0; }
.bilan-score li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--trait); }
.total-score { font-size: 2.2rem; font-weight: 900; margin: 4px 0; }
.dessin-plante { display: block; width: 100%; max-height: 26vh; background: #eef7e4; border-radius: 12px; border: 3px solid var(--couleur); }
.indice { margin: 6px 0 10px; padding: 10px 12px; background: var(--fond); border-left: 5px solid var(--couleur); border-radius: 8px; font-size: 1.05rem; }
.partage-score { margin: 12px 0; }
.champ-lien { width: 100%; box-sizing: border-box; padding: 10px; margin: 6px 0; font: inherit; border: 2px solid var(--trait); border-radius: 8px; background: var(--fond); color: var(--texte); }

/* La fièvre du premier mois et ses réponses */
.reponses-fievre { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.precaution { background: #fff6dd; border-left: 4px solid #e0a21a; padding: 8px 10px; border-radius: 6px; }
.panneau .bravo { color: #2f7a40; font-weight: 600; }
.panneau .rate { color: #a33a2a; font-weight: 600; }
@media (prefers-color-scheme: dark) { .precaution { background: #3d3418; } .panneau .bravo { color: #7fd08d; } .panneau .rate { color: #f0a090; } }
