/* « Mes émotions » (activité enfants) : complète activite.css, mêmes couleurs, polices et formes. */
#app { --em: #c9b59c; --em-doux: #f1e9dc;
  --niv1: #b9d3a6; --niv2: #dcd58c; --niv3: #efc06a; --niv4: #e5935a; --niv5: #d0623f;
  display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2rem; }
.illus .rond svg { width: 78%; height: 78%; }

.etape-emo, .resume-emo { background: #fff; border-radius: 24px; padding: 1.4rem 1.4rem 1.6rem; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8, 0 10px 24px rgba(90, 60, 30, 0.06); }
.etape-emo h2, .resume-emo h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.2rem; font-size: clamp(1.45rem, 3.5vw, 1.8rem); color: var(--accent-fonce); }
.etape-emo h2 .num { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--accent-fonce); color: #fff; font-size: 1.15rem; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; }
.etape-emo .consigne { margin-bottom: 1.1rem; }
h3.sous { margin: 1.2rem 0 0.6rem; font-size: 1.2rem; color: var(--vert); }

/* Étape 1 : visages */
.visages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; }
.visage { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.8rem 0.4rem 0.7rem; border-radius: 20px; background: var(--fond); box-shadow: inset 0 0 0 2px var(--bord); font-family: var(--titre); font-weight: 600; font-size: 1.05rem; text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.visage svg { width: 100%; max-width: 5.5rem; height: auto; }
.visage:hover { transform: translateY(-2px); }
.visage:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visage[aria-pressed="true"] { background: var(--d); box-shadow: inset 0 0 0 3.5px var(--c); }

/* Étape 2 : corps */
.corps-emo { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 1.6rem; align-items: start; }
#silhouette { width: 100%; height: auto; display: block; }
#silhouette .zone > * { fill: var(--fond-doux); stroke: var(--bord-fort); stroke-width: 2.5; transition: fill 0.15s; }
#silhouette .zone { cursor: pointer; }
#silhouette .zone:hover > * { fill: var(--em-doux); }
#silhouette .zone.on > * { fill: var(--em); stroke: var(--accent-fonce); }
#silhouette .zone:focus-visible { outline: none; }
#silhouette .zone:focus-visible > * { stroke: var(--accent); stroke-width: 5; }
.puces-emo { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.puces-emo button { font: inherit; font-family: var(--titre); font-weight: 500; font-size: 1.05rem; cursor: pointer; padding: 0.45rem 1rem; border-radius: 999px; background: var(--fond); color: var(--texte); border: 2px solid var(--bord); }
.puces-emo button:hover { border-color: var(--bord-fort); }
.puces-emo button[aria-pressed="true"] { background: var(--em-doux); border-color: var(--em); box-shadow: inset 0 0 0 1px var(--em); font-weight: 600; }
.puces-emo button[aria-pressed="true"]::before { content: "✓ "; color: var(--accent-fonce); }

/* Étape 3 : thermomètre */
.thermometre { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; max-width: 40rem; }
.thermometre button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.7rem 0.3rem; border-radius: 18px; background: var(--fond); box-shadow: inset 0 0 0 2px var(--bord); text-align: center; font-size: 0.95rem; line-height: 1.2; }
.thermometre button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.thermometre svg { width: 2.2rem; height: auto; }
.thermometre b { font-family: var(--titre); font-size: 1.4rem; font-weight: 600; }
.thermometre button[aria-pressed="true"] { background: var(--accent-doux); box-shadow: inset 0 0 0 3.5px var(--accent); }
.conseil { margin: 1rem 0 0; font-size: 1.1rem; font-weight: 700; color: var(--vert); max-width: 40rem; }
.conseil:empty { display: none; }

/* Étape 4 : idées et respiration */
.idees { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; max-width: 40rem; }
.idees li { margin: 0; }
.idees label { display: flex; gap: 0.8rem; align-items: center; cursor: pointer; padding: 0.7rem 1rem; border-radius: 16px; background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--bord); font-size: 1.1rem; }
.idees input { width: 1.5rem; height: 1.5rem; accent-color: var(--vert); flex: none; }
.idees label:has(input:checked) { background: var(--vert-doux); box-shadow: inset 0 0 0 2px #b9cfa9; }
.idees .vide { color: var(--texte-doux); font-style: italic; }
.souffle { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--vert-doux); }
.souffle h3 { margin: 0 0 0.3rem; color: var(--vert); font-size: 1.25rem; }
.souffle > p { margin: 0 0 0.6rem; }
.souffle-zone { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.souffle-zone svg { width: 9rem; height: 9rem; flex: none; }
#bulle { fill: #fff; stroke: var(--vert); stroke-width: 4; transform-origin: 100px 100px; transform: scale(0.75); }
#bulle.gonfle { transition: transform 4s ease-in-out; transform: scale(2.2); }
#bulle.degonfle { transition: transform 6s ease-in-out; transform: scale(0.75); }
.souffle-texte { font-family: var(--titre); font-weight: 600; font-size: 1.35rem; color: var(--vert); margin: 0; flex: 1 1 12rem; }

/* Résumé */
.resume-emo { background: var(--fond-doux); box-shadow: none; }
.carte-resume { background: #fff; border-radius: 20px; padding: 1.2rem 1.3rem; box-shadow: 0 0 0 1.5px #efe6d8; max-width: 44rem; border-top: 8px solid var(--em); }
.resume-tete { display: flex; gap: 1rem; align-items: center; }
.resume-tete span:empty { display: none; }
.resume-tete svg { flex: none; }
.resume-tete p { margin: 0; font-size: 1.15rem; }
.carte-resume h3 { margin: 1rem 0 0.3rem; color: var(--vert); font-size: 1.15rem; }
.carte-resume ul { margin: 0; padding-left: 1.3rem; }
.message-emo { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1.5px dashed var(--bord); color: var(--texte-doux); }
.message-emo:empty { display: none; }

@media (max-width: 40rem) {
  .visages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .corps-emo { grid-template-columns: 1fr; }
  #silhouette { max-width: 11rem; margin: 0 auto; }
  .thermometre { gap: 0.35rem; }
  .thermometre span { font-size: 0.8rem; }
  .etape-emo, .resume-emo { padding: 1.1rem 1rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  #bulle.gonfle, #bulle.degonfle { transition-duration: 0.01s; }
}
@media print {
  .entete-act, .pied-act, .adulte, .etape-emo, .resume-emo .actions { display: none !important; }
  .resume-emo { background: none; padding: 0; }
  .carte-resume { box-shadow: none; border: 2px solid #c9b59c; border-top: 8px solid var(--em); }
}
