/* Activités en ligne pour les enfants (« Mon corps, les autres et moi », « Tous différents, tous ensemble »).
   Design Claude Design du 04/11/2026 (accueil « Mon corps ») : fond crème, titres Fredoka, texte Atkinson Hyperlegible,
   vignettes teintées. Polices hébergées avec les activités (activites/polices), aucun service extérieur.
   Une seule ambiance claire, volontairement (page à faire avec un enfant). */
@font-face { font-family: "Fredoka"; src: url("polices/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("polices/AtkinsonHyperlegible-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("polices/AtkinsonHyperlegible-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --fond: #faf6ef;
  --fond-doux: #f1e9dc;
  --texte: #3a2b22;
  --texte-doux: #5c4a3e;
  --accent: #8a4a24;
  --accent-fonce: #7a3b1a;
  --accent-doux: #f6e1d3;
  --vert: #3f5a2e;
  --vert-doux: #e3ecd9;
  --ocre: #6b4e16;
  --ocre-doux: #faf3e3;
  --bord: #e6dccd;
  --bord-fort: #c9b59c;
  --rayon: 20px;
  --police: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titre: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  /* Teintes des vignettes, dans l'ordre des activités */
  --t1: oklch(0.92 0.05 25); --t2: oklch(0.93 0.05 85); --t3: oklch(0.92 0.05 150); --t4: oklch(0.92 0.05 240); --t5: oklch(0.92 0.05 310);
  /* Mise en page : une colonne centrée de 60rem, cartes de jeu au centre, choix en grandes tuiles dessous */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 1.125rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #5e2f14; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; font-family: var(--titre); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 60rem; margin: 0 auto; padding: 0 1rem 3rem; }

/* ---------- En-tête ---------- */
.entete-act .page { padding-top: 2rem; padding-bottom: 0; display: flex; flex-direction: column; gap: 2rem; }
.liens { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.liens a { display: flex; align-items: center; padding: 0.5rem 1rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--bord); font-size: 0.95rem; text-decoration: none; color: #6b4a35; }
.liens a:hover { border-color: var(--bord-fort); color: var(--texte); }
.tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 2.5rem; }
.tete-texte { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 0.75rem; }
.entete-act h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.4rem); line-height: 1.05; color: var(--accent-fonce); letter-spacing: -0.01em; }
.entete-act .sous-titre { margin: 0; font-size: 1.19rem; line-height: 1.5; color: var(--texte-doux); max-width: 30em; text-wrap: pretty; }
.illus { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.illus .rond { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--t); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.illus .rond img { width: 75%; height: 75%; object-fit: contain; }
body.en-module .illus, body.en-module .sous-titre { display: none; }
body.en-module .entete-act h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
body.en-module .entete-act .page { gap: 1.2rem; }

/* ---------- Accueil : tuiles des activités ---------- */
#app.accueil { display: flex; flex-direction: column; gap: 2rem; padding-top: 2rem; }
.adulte { border-radius: 18px; background: var(--fond-doux); overflow: hidden; }
.adulte-bouton { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.4rem; font-family: var(--titre); font-weight: 500; font-size: 1.125rem; color: var(--vert); }
.adulte-bouton:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 18px; }
.adulte-bouton .signe { font-size: 1.4rem; line-height: 1; color: #6b4a35; }
.adulte .contenu { padding: 0 1.4rem 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--texte-doux); }
.adulte .contenu p { margin: 0 0 0.6rem; max-width: 44em; }
.adulte .contenu ul { margin: 0 0 0.6rem; padding-left: 1.2rem; max-width: 44em; }

.tuiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr)); gap: 1rem; }
.tuiles li { margin: 0; }
.tuile { position: relative; display: flex; gap: 1.1rem; align-items: center; height: 100%; padding: 1rem; border-radius: var(--rayon); background: #fff; text-decoration: none; color: inherit; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8; transition: box-shadow 0.15s; }
.tuile:hover { color: inherit; box-shadow: 0 6px 18px rgba(90, 60, 30, 0.1), 0 0 0 1.5px #dccbb3; }
.vignette { position: relative; flex: none; width: 6rem; height: 6rem; border-radius: 16px; background: var(--t); display: flex; align-items: center; justify-content: center; }
.vignette img { width: 4.75rem; height: 4.75rem; object-fit: contain; }
.vignette .num { position: absolute; top: -6px; left: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-fonce); color: #fff; font-family: var(--titre); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tuile-texte { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.tuile h2 { margin: 0; font-size: 1.3rem; color: var(--texte); }
.tuile .resume { margin: 0; font-size: 1rem; line-height: 1.45; color: #66544a; text-wrap: pretty; }
.tuile .fait { position: absolute; top: 0.6rem; right: 0.7rem; font-size: 0.8rem; font-weight: 700; color: var(--vert); background: var(--vert-doux); border-radius: 999px; padding: 0.1rem 0.6rem; }

/* ---------- En-tête d'une activité ---------- */
.module-tete { padding: 1.4rem 0 0.4rem; }
.retour-lien { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; text-decoration: none; padding: 0.3rem 0; }
.retour-lien:hover { text-decoration: underline; }
.module-tete .titre { display: flex; align-items: center; gap: 0.8rem; margin: 0.6rem 0 0.3rem; }
.module-tete .titre .num { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--accent-fonce); color: #fff; font-family: var(--titre); font-weight: 600; font-size: 1.2rem; border-radius: 50%; }
.module-tete .titre .vignette { width: 4rem; height: 4rem; border-radius: 14px; }
.module-tete .titre .vignette img { width: 3.1rem; height: 3.1rem; }
.module-tete h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--accent-fonce); }
.consigne { margin: 0.2rem 0 1rem; font-size: 1.15rem; color: var(--texte-doux); max-width: 42rem; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.65rem 1.3rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.bouton.secondaire { background: #fff; color: var(--accent-fonce); }
.bouton.secondaire:hover { background: var(--accent-doux); }
.bouton.vert { background: var(--vert); border-color: var(--vert); }
.bouton.vert:hover { background: #2f4a2b; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0; }
.suite { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 2px dashed var(--bord); display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: space-between; align-items: center; }

/* ---------- Jeu de tri : une carte à la fois ---------- */
.progression { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--texte-doux); margin: 0 0 0.8rem; }
.barre { flex: 1; max-width: 16rem; height: 0.7rem; background: var(--fond-doux); border-radius: 999px; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--vert); border-radius: 999px; transition: width 0.3s; }
.carte-jeu { position: relative; max-width: 30rem; margin: 0 auto; background: #fff; border: 2px solid var(--bord); border-radius: 24px; padding: 1.2rem 1.2rem 1.4rem; text-align: center; box-shadow: 0 10px 24px rgba(60, 40, 20, 0.1); }
.carte-jeu .imgs { margin: 0 auto 0.8rem; padding: 0.9rem; background: var(--t, var(--fond-doux)); border-radius: 18px; max-width: 19rem; }
.carte-jeu p { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.imgs { display: flex; justify-content: center; align-items: center; gap: 0.6rem; }
.imgs img { height: 9.5rem; width: auto; max-width: 100%; object-fit: contain; }
.imgs.n2 img { height: 7.5rem; max-width: 48%; }
.imgs.n3 img { height: 5.5rem; max-width: 31%; }

.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; max-width: 46rem; margin: 1.3rem auto 0; }
.choix.n4 { grid-template-columns: repeat(2, 1fr); max-width: 36rem; }

/* ---------- Cercles cliquables ---------- */
.jeu-anneaux { display: grid; grid-template-columns: minmax(13rem, 17rem) 1fr; gap: 1.5rem; align-items: center; }
.jeu-anneaux .carte-jeu { margin: 0; }
.jeu-anneaux .carte-jeu .imgs img { height: 7.5rem; }
.jeu-anneaux .carte-jeu .imgs.n2 img { height: 6rem; }
.zone-anneaux { text-align: center; }
.consigne-anneau { margin: 0 0 0.4rem; font-family: var(--titre); font-weight: 500; font-size: 1.15rem; color: var(--vert); }
.anneaux { width: 100%; max-width: 30rem; display: block; margin: 0 auto; overflow: visible; }
.anneau circle { fill: var(--cd); stroke: var(--c); stroke-width: 4; transition: fill 0.15s, stroke-width 0.15s; }
.anneaux.actif .anneau { cursor: pointer; }
.anneaux.actif .anneau:hover circle, .anneaux.actif .anneau:focus-visible circle { fill: #fff; stroke-width: 8; }
.anneau:focus-visible { outline: none; }
.anneau.attendu circle { stroke-width: 9; }
.anneau.choisi:not(.attendu) circle { stroke-dasharray: 14 8; stroke-width: 6; }
.centre circle { fill: #fff3c4; stroke: #b86e00; stroke-width: 4; }
.anneaux text { font-family: var(--titre); font-weight: 600; text-anchor: middle; pointer-events: none; }
.centre text { font-size: 22px; fill: var(--texte); }
.nom-anneau { font-size: 20px; fill: var(--c); paint-order: stroke; stroke: var(--cd); stroke-width: 7px; stroke-linejoin: round; }
.place circle { fill: #fff; stroke: var(--bord-fort); stroke-width: 1.5; }
.fin-anneaux { margin: 0.5rem 0 1rem; }
.module-tete h2:focus { outline: none; }
.choix button { display: flex; align-items: center; gap: 0.8rem; min-height: 4.4rem; padding: 0.6rem 1rem; background: #fff; border: 3px solid var(--c, var(--bord)); border-radius: 20px; font: inherit; font-weight: 700; font-size: 1.15rem; color: var(--texte); text-align: left; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.choix button:hover:not(:disabled) { transform: translateY(-2px); background: var(--cd, var(--fond-doux)); }
.choix button img { width: 3.2rem; height: 3.2rem; object-fit: contain; flex: none; }
.choix button .rond { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c); }
.choix button:disabled { cursor: default; opacity: 0.45; }
.choix button.choisi { opacity: 1; background: var(--cd); }
.choix button.attendu { opacity: 1; box-shadow: 0 0 0 4px var(--vert-doux); }

.retour { max-width: 36rem; margin: 1.2rem auto 0; padding: 1rem 1.2rem; border-radius: var(--rayon); border: 2px solid; font-size: 1.12rem; }
.retour.bien { background: var(--vert-doux); border-color: var(--vert); }
.retour.essai { background: var(--ocre-doux); border-color: var(--ocre); }
.retour b.mot { display: block; font-size: 1.3rem; margin-bottom: 0.2rem; }
.retour.bien b.mot { color: var(--vert); }
.retour.essai b.mot { color: var(--ocre); }
.retour p { margin: 0.2rem 0 0; }
.retour .regle { margin-top: 0.5rem; font-size: 1.02rem; color: var(--texte-doux); }
.retour .actions { margin-top: 0.8rem; }

.recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.recap .bac { background: var(--cd, var(--fond-doux)); border: 3px solid var(--c, var(--bord)); border-radius: var(--rayon); padding: 0.9rem; }
.recap .bac h3 { margin: 0 0 0.3rem; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.recap .bac h3 img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.recap .bac .regle-bac { margin: 0 0 0.6rem; font-size: 1rem; color: var(--texte-doux); }
.recap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.recap li { display: flex; align-items: center; gap: 0.6rem; background: #fff; border-radius: 12px; padding: 0.35rem 0.6rem; font-size: 1rem; line-height: 1.3; }
.recap li img { width: 2.4rem; height: 2.4rem; object-fit: contain; flex: none; }
.bravo-fin { display: flex; align-items: center; gap: 1rem; background: var(--vert-doux); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 0.5rem 0 1rem; font-size: 1.15rem; }
.bravo-fin img { width: 4rem; height: 4rem; object-fit: contain; }

/* Couleurs des bacs */
.c-terra { --c: var(--accent); --cd: var(--accent-doux); }
.c-vert { --c: var(--vert); --cd: var(--vert-doux); }
.c-rose { --c: #b03a6a; --cd: #f7dfe8; }
.c-bleu { --c: #2f6690; --cd: #dcebf5; }
.c-gris { --c: #5f6b73; --cd: #e6eaec; }
.c-violet { --c: #6a3d8f; --cd: #ece2f4; }
.c-ocre { --c: var(--ocre); --cd: var(--ocre-doux); }
.c-rouge { --c: #a32d2d; --cd: #f9e1e1; }

/* ---------- Encadrés et blocs de texte ---------- */
.encadre { background: var(--vert-doux); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 1.15rem; max-width: 46rem; }
.encadre p { margin: 0 0 0.4rem; }
.encadre p:last-child { margin: 0; }
.encadre.terra { background: var(--accent-doux); }
.encadre.blanc { background: #fff; border: 2px solid var(--bord); }
.mini-imgs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.6rem 0 0; }
.mini-imgs figure { margin: 0; text-align: center; font-size: 1rem; font-weight: 600; width: 7rem; }
.mini-imgs img { width: 5rem; height: 5rem; object-fit: contain; display: block; margin: 0 auto 0.2rem; }

/* ---------- Mon corps (silhouette) ---------- */
.corps-zone { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 1.5rem; align-items: start; }
.silhouette { width: 100%; max-width: 20rem; display: block; margin: 0 auto; }
.silhouette .zone { cursor: pointer; transition: fill 0.2s, stroke-width 0.2s; }
.silhouette .zone:hover, .silhouette .zone:focus-visible { stroke-width: 4.5; }
.silhouette .zone.faux { stroke-dasharray: 6 4; stroke-width: 4.5; }
.silhouette:focus-visible { outline: none; }
.onglets { display: inline-flex; gap: 0.3rem; background: var(--fond-doux); border-radius: 999px; padding: 0.3rem; margin: 0 0 1rem; }
.onglets button { border: 0; background: transparent; border-radius: 999px; padding: 0.55rem 1.1rem; font: inherit; font-weight: 700; color: var(--texte-doux); cursor: pointer; }
.onglets button[aria-pressed="true"] { background: #fff; color: var(--accent-fonce); box-shadow: 0 2px 6px rgba(60, 40, 20, 0.12); }
.legendes { display: grid; gap: 0.8rem; }
.legende { display: grid; grid-template-columns: 3rem 1fr; gap: 0.8rem; align-items: start; padding: 0.8rem 1rem; border: 3px solid var(--c); background: var(--cd); border-radius: var(--rayon); }
.legende .pastille { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; background: var(--c); color: #fff; font-weight: 800; font-size: 1.4rem; }
.legende b { display: block; font-size: 1.15rem; }
.legende p { margin: 0.15rem 0 0; font-size: 1.05rem; }
.legende.active { box-shadow: 0 0 0 5px rgba(36, 33, 31, 0.15); }
.z-vert { --c: #2e7d32; --cd: #e5f5e6; }
.z-orange { --c: #b86e00; --cd: #fff1dd; }
.z-rouge { --c: #c62828; --cd: #fde5e5; }
.palette { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.palette button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.5rem; border: 3px solid var(--c); background: #fff; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.palette button .rond { width: 2rem; height: 2rem; border-radius: 50%; background: var(--c); }
.palette button[aria-pressed="true"] { background: var(--cd); box-shadow: 0 0 0 4px var(--cd); }

/* ---------- Étapes ---------- */
.etapes-act { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.etape { position: relative; background: #fff; border: 3px solid var(--c, var(--bord)); border-radius: var(--rayon); padding: 1.6rem 1rem 1rem; text-align: center; }
.etape .n { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--accent-fonce)); color: #fff; font-weight: 800; }
.etape img { height: 6rem; width: auto; display: block; margin: 0 auto 0.5rem; }
.etape b { display: block; font-size: 1.2rem; margin-bottom: 0.2rem; }
.etape p { margin: 0; font-size: 1.05rem; }
.etape.cachee { border-style: dashed; background: var(--fond-doux); color: transparent; }
.etape.cachee * { visibility: hidden; }
.etape.cachee .n { visibility: visible; }

/* ---------- Couleurs de peau ---------- */
.visages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; margin: 0.4rem 0 1rem; }
.visages img { width: 5.5rem; height: 5.5rem; object-fit: contain; }
.nuancier { display: grid; grid-template-columns: repeat(7, minmax(2.6rem, 1fr)); gap: 0.6rem; max-width: 34rem; margin: 0.6rem 0 1.2rem; }
.nuancier button { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 3px solid rgba(36, 33, 31, 0.35); background: var(--s); cursor: pointer; transition: transform 0.12s; }
.nuancier button:hover { transform: scale(1.08); }
.nuancier button[aria-pressed="true"] { border-color: var(--texte); box-shadow: 0 0 0 4px var(--accent-doux); }
.cibles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; max-width: 40rem; }
.cibles button { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.8rem; background: #fff; border: 3px solid var(--bord); border-radius: var(--rayon); font: inherit; font-weight: 700; cursor: pointer; }
.cibles button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); }
.cibles svg { width: 6rem; height: 6rem; }
.cibles input { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; padding: 0.3rem 0.5rem; border: 2px solid var(--bord); border-radius: 10px; text-align: center; }

/* ---------- Galerie à retourner ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.fiche-pers { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; background: #fff; border: 2px solid var(--bord); border-radius: var(--rayon); padding: 1rem; }
.fiche-pers .imgs img { height: 6.5rem; }
.fiche-pers .imgs.n2 img { height: 5.5rem; }
.fiche-pers p.txt { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.fiche-pers button { margin-top: auto; border: 2px solid var(--vert); background: #fff; color: var(--vert); border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.fiche-pers button[aria-expanded="true"] { background: var(--vert); color: #fff; }
.fiche-pers .idee { margin: 0; background: var(--vert-doux); border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 1.02rem; text-align: left; }
h3.groupe { margin: 2rem 0 0.6rem; font-size: 1.4rem; color: var(--vert); }

/* ---------- Trois réflexes ---------- */
.reflexes { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0.5rem 0 1rem; }
.reflexe { text-align: center; background: var(--cd); border: 3px solid var(--c); border-radius: var(--rayon); padding: 1rem; }
.reflexe img { height: 6rem; width: auto; display: block; margin: 0 auto 0.4rem; }
.reflexe b { display: block; font-size: 1.45rem; color: var(--c); letter-spacing: 0.02em; }
.reflexe p { margin: 0.2rem 0 0; font-size: 1.05rem; }
.deux-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.deux-col .encadre { margin: 0; display: flex; gap: 0.8rem; align-items: center; }
.deux-col .encadre img { width: 4.5rem; height: 4.5rem; object-fit: contain; flex: none; }

/* ---------- Main de confiance et champs ---------- */
.main-confiance { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 1.2rem; align-items: center; margin-top: 0.6rem; }
.main-confiance svg { width: 100%; max-width: 16rem; display: block; }
.champs { display: grid; gap: 0.6rem; }
.champs label { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: 0.5rem; font-weight: 700; }
.champs label span.n { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--vert); color: #fff; }
.champs input, .portrait-champs input { font: inherit; font-size: 1.05rem; padding: 0.55rem 0.8rem; border: 2px solid var(--bord); border-radius: 12px; width: 100%; background: #fff; }
.champs input:focus, .portrait-champs input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-doux); }
.note { font-size: 0.98rem; color: var(--texte-doux); }

/* ---------- Portrait ---------- */
.portrait { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 1.5rem; align-items: start; }
.portrait-dessin { position: sticky; top: 1rem; background: var(--fond-doux); border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; padding: 1rem; }
.portrait-dessin svg { width: 100%; display: block; }
.reglages { display: grid; gap: 1rem; }
.reglages fieldset { border: 0; padding: 0; margin: 0; }
.reglages legend { font-weight: 700; margin-bottom: 0.4rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pastilles button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid rgba(36, 33, 31, 0.3); background: var(--s); cursor: pointer; }
.pastilles button[aria-pressed="true"] { border-color: var(--texte); box-shadow: 0 0 0 3px var(--accent-doux); }
.pastilles.mots button { width: auto; height: auto; border-radius: 999px; padding: 0.4rem 0.9rem; background: #fff; border-color: var(--bord); font: inherit; font-weight: 600; font-size: 1rem; }
.pastilles.mots button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); box-shadow: none; }
.portrait-champs { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.portrait-champs label { display: grid; gap: 0.25rem; font-weight: 700; }

/* ---------- Pied ---------- */
.pied-act { margin-top: 3rem; border-top: 2px solid var(--bord); background: var(--fond-doux); }
.pied-act .page { padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: 0.92rem; color: var(--texte-doux); }
.pied-act p { margin: 0 0 0.4rem; }

/* ---------- Harmonisation avec l'accueil (design du 04/11/2026) ----------
   Cartes blanches à ombre douce plutôt que bordures épaisses, titres et boutons en Fredoka,
   fonds teintés. Les couleurs qui ont un sens (OK, pas OK, zones du corps) restent visibles. */
.bouton { font-family: var(--titre); font-weight: 600; letter-spacing: 0.01em; }
.retour-lien, .onglets button, .palette button, .pastilles.mots button { font-family: var(--titre); font-weight: 500; }
.carte-jeu { border: 0; border-radius: 24px; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8, 0 10px 24px rgba(90, 60, 30, 0.08); }
.carte-jeu p, .bravo-fin b, h3.groupe { font-family: var(--titre); font-weight: 600; }
.choix button { border-width: 2px; border-radius: 18px; font-family: var(--titre); font-weight: 600; box-shadow: 0 1px 0 #e9dfd0; }
.choix button:hover:not(:disabled) { transform: none; box-shadow: 0 6px 18px rgba(90, 60, 30, 0.1); }
.retour { border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--rc, var(--bord)); }
.retour.bien { --rc: #b9cfa9; }
.retour.essai { --rc: #e3cf9f; }
.retour b.mot { font-family: var(--titre); font-weight: 600; }
.recap .bac { border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 35%, transparent); }
.recap .bac h3 { color: var(--c); }
.recap li { box-shadow: 0 1px 0 #e9dfd0; }
.encadre.blanc { border: 0; background: #fff; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8; }
.legende { border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 40%, transparent); }
.legende .pastille { border-radius: 50%; }
.legende b, .etape b, .reflexe b, .fiche-pers p.txt, .cibles button { font-family: var(--titre); font-weight: 600; }
.etape { border: 0; background: #fff; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8; border-top: 6px solid var(--c, var(--accent-fonce)); }
.etape.cachee { background: var(--fond-doux); box-shadow: inset 0 0 0 1.5px var(--bord); border-top-color: var(--bord); }
.palette button { border-width: 2px; }
.cibles button { border: 0; border-radius: 18px; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8; }
.cibles button[aria-pressed="true"] { background: var(--t, var(--accent-doux)); box-shadow: 0 0 0 2.5px var(--accent); }
.fiche-pers { border: 0; box-shadow: 0 1px 0 #e9dfd0, 0 0 0 1.5px #efe6d8; }
.fiche-pers .imgs { width: 100%; padding: 0.6rem; background: var(--t, var(--fond-doux)); border-radius: 16px; }
.reflexe { border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 40%, transparent); }
.portrait-dessin { border-radius: 24px; background: var(--t, var(--fond-doux)); }
.suite { border-top: 1.5px solid var(--bord); }
.pied-act { border-top: 1.5px solid var(--bord); }
.champs input, .portrait-champs input, .cibles input { border-width: 1.5px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 40rem) {
  .entete-act .page { padding-top: 1.2rem; gap: 1.4rem; }
  .illus { gap: 0.5rem; }
  .illus .rond { width: 3.9rem; height: 3.9rem; }
  .choix.n4 { grid-template-columns: 1fr; }
  .jeu-anneaux { grid-template-columns: 1fr; gap: 1rem; }
  .jeu-anneaux .carte-jeu { padding: 0.8rem; display: flex; align-items: center; gap: 0.8rem; text-align: left; }
  .jeu-anneaux .carte-jeu .imgs { margin: 0; padding: 0.5rem; flex: none; }
  .jeu-anneaux .carte-jeu .imgs img { height: 4.5rem; }
  .jeu-anneaux .carte-jeu .imgs.n2 img { height: 3.6rem; }
  .nom-anneau { font-size: 24px; }
  .corps-zone, .main-confiance, .portrait { grid-template-columns: 1fr; }
  .portrait-dessin { position: static; max-width: 15rem; margin: 0 auto; }
  .imgs img { height: 7.5rem; }
  .imgs.n2 img { height: 6rem; }
  .carte-jeu p { font-size: 1.2rem; }
  .nuancier { grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes apparait { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.apparait { animation: apparait 0.25s ease-out; }
