/* Boîte à outils (adultes) : émotions dans le corps, respirations, cohérence cardiaque, ancrage, pleine conscience.
   Complète style.css : mêmes couleurs, polices système, pastilles aux bords irréguliers de la charte. */
.outil { --em: #a3461b; --em-doux: #fbeee6; }
.pastille-num { flex: none; width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; background: var(--accent-doux); color: var(--accent-fonce); font-weight: 700; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; border: 2px solid var(--accent); }
.pastille-num.vert { background: var(--vert-doux); color: var(--vert); border-color: var(--vert); border-radius: 55% 45% 48% 52% / 46% 56% 44% 54%; }

.bloc-outil { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem 1.5rem 1.6rem; margin: 1.5rem 0; }
.bloc-outil > h2, .bloc-outil > h3 { display: flex; align-items: center; gap: 0.8rem; margin-top: 0; }
.bloc-outil .intro { color: var(--texte-doux); max-width: 44rem; }
.bloc-outil.doux { background: var(--fond-doux); border-color: transparent; }

.precaution { border-left: 5px solid var(--accent); background: var(--accent-doux); padding: 1rem 1.25rem; border-radius: 0 var(--rayon) var(--rayon) 0; margin: 1.25rem 0; max-width: 46rem; }
.precaution p:last-child, .precaution ul:last-child { margin-bottom: 0; }
.precaution h3 { margin-top: 0; color: var(--accent-fonce); font-size: 1.15rem; }

/* Puces à choisir */
.choix-puces { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choix-puces button { font: inherit; font-size: 1rem; cursor: pointer; padding: 0.4rem 0.95rem; border-radius: 999px; background: #fff; color: var(--texte); border: 1.5px solid var(--bord); }
.choix-puces button:hover { border-color: var(--accent); }
.choix-puces button[aria-pressed="true"] { background: var(--em-doux); border-color: var(--em); box-shadow: inset 0 0 0 1px var(--em); font-weight: 600; }
.choix-puces button[aria-pressed="true"]::before { content: "✓ "; color: var(--accent-fonce); }

/* Carte du corps (adultes) */
.carte-corps { display: grid; grid-template-columns: minmax(11rem, 15rem) 1fr; gap: 1.6rem; align-items: start; }
.carte-corps svg { width: 100%; height: auto; display: block; }
.carte-corps .zone > * { fill: var(--fond-doux); stroke: var(--bord); stroke-width: 2.5; transition: fill 0.15s; }
.carte-corps .zone { cursor: pointer; }
.carte-corps .zone:hover > * { fill: var(--accent-doux); }
.carte-corps .zone.on > * { fill: #e7a988; stroke: var(--accent-fonce); }
.carte-corps .zone.choisie > * { fill: var(--accent); stroke: var(--accent-fonce); }
.carte-corps .zone:focus-visible { outline: none; }
.carte-corps .zone:focus-visible > * { stroke: var(--accent); stroke-width: 5; }
.panneau-zone { background: var(--fond-doux); border-radius: var(--rayon); padding: 1rem 1.2rem; margin-top: 1rem; }
.panneau-zone h4 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--accent-fonce); }
.liste-zones { list-style: none; padding: 0; margin: 1rem 0 0; }
.liste-zones li { padding: 0.35rem 0; border-bottom: 1px solid var(--bord); margin: 0; }
.liste-zones b { color: var(--accent-fonce); }

/* Échelles */
.echelle { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0.3rem; max-width: 40rem; }
.echelle button { font: inherit; font-weight: 700; cursor: pointer; padding: 0.55rem 0; border-radius: 10px; border: 1.5px solid var(--bord); background: color-mix(in srgb, var(--accent) calc(var(--i) * 6%), #fff); color: var(--texte); }
.echelle button[aria-pressed="true"] { outline: 3px solid var(--texte); outline-offset: 1px; }
.echelle-legende { display: flex; justify-content: space-between; max-width: 40rem; font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.3rem; }
.trois { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Résumé et suggestions */
.resume-outil { background: var(--fond-doux); border-radius: var(--rayon); padding: 1.2rem 1.4rem; margin-top: 1.5rem; }
.resume-outil h2 { margin-top: 0; }
.resume-outil .phrase { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; border-left: 5px solid var(--accent); }
.suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; margin: 0.8rem 0 1rem; }
.suggestions a { display: block; background: #fff; border: 1.5px solid var(--bord); border-radius: 12px; padding: 0.8rem 1rem; text-decoration: none; color: var(--texte); }
.suggestions a:hover { border-color: var(--accent); }
.suggestions a b { display: block; color: var(--accent-fonce); }
.suggestions a span { font-size: 0.95rem; color: var(--texte-doux); }
.boutons { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
button.bouton { font: inherit; font-weight: 600; border: 2px solid var(--accent); cursor: pointer; }
button.bouton.secondaire { border: 2px solid var(--accent); }
.note-discrete { font-size: 0.95rem; color: var(--texte-doux); }

/* Guides de respiration */
.guide { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 1.6rem; align-items: center; margin-top: 1rem; }
.guide svg { width: 100%; height: auto; display: block; max-width: 18rem; }
.guide .etat { font-size: 1.6rem; font-weight: 700; color: var(--vert); margin: 0 0 0.2rem; min-height: 2.2rem; }
.guide .compte { font-size: 3rem; font-weight: 700; color: var(--accent-fonce); line-height: 1; margin: 0 0 0.6rem; font-variant-numeric: tabular-nums; min-height: 3rem; }
.guide .tour { color: var(--texte-doux); margin: 0 0 0.8rem; min-height: 1.6rem; }
.reglage { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 0.8rem; }
.reglage span { font-size: 0.95rem; color: var(--texte-doux); margin-right: 0.2rem; }
.reglage button { font: inherit; font-size: 0.95rem; cursor: pointer; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--bord); background: #fff; color: var(--texte); }
.reglage button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-doux); font-weight: 700; }
.carre-fond { fill: var(--vert-doux); stroke: none; }
.carre-cote { stroke: var(--bord); stroke-width: 8; stroke-linecap: round; fill: none; transition: stroke 0.3s; }
.carre-cote.actif { stroke: var(--vert); }
.carre-libelle { font: 600 15px system-ui, sans-serif; fill: var(--texte-doux); }
.point { fill: var(--accent); stroke: #fff; stroke-width: 4; }
.rond-souffle { fill: var(--vert-doux); stroke: var(--vert); stroke-width: 3; }
.rond-repere { fill: none; stroke: var(--bord); stroke-width: 2; stroke-dasharray: 5 6; }
.vague { fill: none; stroke: var(--bord); stroke-width: 4; stroke-linecap: round; }

.sommaire-outils { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.sommaire-outils li { margin: 0; }
.sommaire-outils a { display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--bord); text-decoration: none; color: var(--texte); font-size: 1rem; }
.sommaire-outils a:hover { border-color: var(--accent); }

/* Pas à pas (5-4-3-2-1, raisin sec) */
.pas { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem 1.5rem; max-width: 44rem; border-top: 6px solid var(--vert); }
.pas .grand { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.pas .chiffre { font-size: 3.4rem; font-weight: 800; color: var(--accent); line-height: 1; min-width: 3.2rem; }
.pas h3 { margin: 0; font-size: 1.5rem; color: var(--texte); }
.pas .exemples { color: var(--texte-doux); }
.compteurs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.compteurs button { width: 3rem; height: 3rem; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; border: 2px solid var(--vert); background: #fff; cursor: pointer; font: inherit; font-weight: 700; color: var(--vert); }
.compteurs button[aria-pressed="true"] { background: var(--vert); color: #fff; }
.progres { display: flex; gap: 0.35rem; margin: 0 0 1rem; }
.progres span { flex: 1; height: 0.45rem; border-radius: 999px; background: var(--fond-doux); }
.progres span.fait { background: var(--vert); }
.minuteur-doux { height: 0.4rem; border-radius: 999px; background: var(--fond-doux); overflow: hidden; margin: 0.6rem 0 0; max-width: 20rem; }
.minuteur-doux i { display: block; height: 100%; width: 0; background: var(--bord); }
.minuteur-doux.marche i { width: 100%; transition: width linear; transition-duration: var(--duree, 40s); }

@media (max-width: 760px) {
  .carte-corps, .guide { grid-template-columns: 1fr; }
  .carte-corps svg { max-width: 12rem; margin: 0 auto; }
  .guide svg { max-width: 14rem; margin: 0 auto; }
  .echelle { gap: 0.2rem; }
  .echelle button { font-size: 0.9rem; padding: 0.5rem 0; }
  .bloc-outil { padding: 1.1rem 1rem 1.3rem; }
}
@media print {
  .entete, .pied, .titre-page, .bloc-outil, .precaution, .boutons, .sommaire-outils { display: none !important; }
  .resume-outil { background: none; border: 2px solid var(--bord); }
}
