/* hellocognipsy : les pièces communes (en-tête, boutons, tuiles, affiches, fiches).
   Tout passe par les variables de base.css. */

/* ---------- L'en-tête collant ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--fond);
}

.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: var(--espace-3);
  padding-block: var(--espace-3);
  background: var(--fond);
}

.entete__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--police-titre);
  font-size: 1.2rem;
  color: var(--encre);
  text-decoration: none;
  line-height: 1;
  padding: 0.35rem 0;
}

.entete__logo span:first-child {
  color: var(--rouge);
}

.entete__espace {
  flex: 1;
}

/* ---------- Les boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--rayon);
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
  transition: transform var(--duree), box-shadow var(--duree), filter var(--duree);
}

.bouton:hover {
  filter: brightness(1.06);
}

.bouton:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.bouton[disabled] {
  opacity: 0.45;
  cursor: default;
}

.bouton--doux {
  background: var(--surface);
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--trait), inset 0 -4px 0 var(--trait);
}

.bouton--icone {
  width: 3rem;
  padding: 0;
  flex: none;
}

.bouton--icone svg {
  width: 1.5rem;
  height: 1.5rem;
}

.bouton-voix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--trait);
  transition: background var(--duree), color var(--duree);
}

.bouton-voix svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bouton-voix.est-en-train {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: none;
}

/* Le haut-parleur discret, dans le coin d'une carte (22/10/2026) : sans fond ni contour, 48 px cliquables */
.bouton-voix--discret {
  background: transparent;
  box-shadow: none;
  color: inherit;
  opacity: 0.75;
}

.bouton-voix--discret:hover {
  opacity: 1;
}

.rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-3);
}

.rangee--centree {
  justify-content: center;
}

/* ---------- Les tuiles de lettres (comme des caractères en bois) ---------- */

.tuile {
  --taille: clamp(2.6rem, 2rem + 3vw, 3.6rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--taille);
  height: calc(var(--taille) * 1.12);
  padding: 0 0.45em;
  border: 0;
  border-radius: 10px;
  background: var(--bois);
  color: var(--bois-encre);
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: calc(var(--taille) * 0.62);
  line-height: 1;
  box-shadow: inset 0 -6px 0 var(--bois-flanc), 0 2px 0 rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--duree), box-shadow var(--duree), opacity var(--duree), background var(--duree);
}

button.tuile:active {
  transform: translateY(3px);
  box-shadow: inset 0 -3px 0 var(--bois-flanc);
}

.tuile[disabled],
button.tuile[disabled] {
  opacity: 0.35;
  filter: grayscale(0.45);
  box-shadow: none;
  transform: translateY(2px);
  cursor: default;
  pointer-events: none;
}

.bouton[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.tuile--petite {
  --taille: 2.4rem;
}

.tuile--vide {
  background: transparent;
  box-shadow: inset 0 0 0 3px var(--trait);
  color: transparent;
}

.tuile--allumee {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}

.tuile--secoue {
  animation: secouer 360ms ease;
}

@keyframes secouer {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ---------- Les images (dessins Twemoji) ---------- */

.icone {
  display: inline-flex;
  width: 1em;
  height: 1em;
  line-height: 1;
  flex: none;
}

.icone svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 1.1px rgba(42, 34, 24, 0.42)) drop-shadow(0 1px 1.6px rgba(42, 34, 24, 0.16));
}

:root[data-theme="dark"] .icone svg {
  filter: drop-shadow(0 0 1.6px rgba(255, 252, 244, 0.5));
}

.icone--aquarelle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 18%;
}

[class*="__image"] > .icone,
[class*="__dessin"] > .icone,
[class*="__icone"] > .icone {
  width: 100%;
  height: 100%;
}

.icone--repli {
  font-size: 0.9em;
  align-items: center;
  justify-content: center;
}

/* ---------- La surface d'un jeu ---------- */

.tete-jeu {
  display: grid;
  gap: var(--espace-2);
  padding: var(--espace-3) var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 0 4px 14px var(--ombre);
}

.tete-jeu__haut {
  display: grid;
  gap: 0.4rem;
}

.tete-jeu__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-titre-2);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

/* « Ce que tu apprends » : sous le titre, plus doux et légèrement en retrait pour bien le distinguer de la consigne */
.tete-jeu__apprendre {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 42rem;
  margin: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  width: fit-content;
}

.tete-jeu__apprendre[hidden] { display: none; }
.tete-jeu__apprendre .icone { flex: none; width: 1.2em; height: 1.2em; }

/* Encart de consigne placé EN TÊTE du cadre de jeu (sous l'animation, juste au-dessus des images — l’autrice, 18/11/2026) */
.cadre-jeu {
  border-radius: var(--rayon-grand);
  background: var(--surface);
  border: 2px solid var(--trait);
  box-shadow: 0 4px 16px var(--ombre);
  overflow: hidden;
}

.tete-jeu__outils-titre {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tete-jeu__encart-consigne {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.9rem;
  padding: 0.85rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  color: var(--encre);
  border-bottom: 2px solid var(--trait);
  border-left: 7px solid var(--accent);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) { .tete-jeu__encart-consigne { background: var(--surface-2); } }

.tete-jeu__bulle-consigne {
  position: relative;
  flex: 1 1 auto;
  max-width: 48rem;
  padding: 0.65rem 1.05rem;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 36%, var(--trait));
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.18rem;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) { .tete-jeu__bulle-consigne { border-color: var(--trait); } }

/* Petite pointe de bulle tournée vers Bliblou à gauche */
.tete-jeu__bulle-consigne::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 2px solid color-mix(in srgb, var(--accent) 36%, var(--trait));
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 36%, var(--trait));
  transform: translateY(-50%) rotate(45deg);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) { .tete-jeu__bulle-consigne::before { border-color: var(--trait); } }

.tete-jeu__encart-consigne[data-posture="applaudit"] .tete-jeu__bulle-consigne {
  border-color: var(--vert);
  background: color-mix(in srgb, var(--vert) 9%, var(--surface));
}
.tete-jeu__encart-consigne[data-posture="applaudit"] .tete-jeu__bulle-consigne::before {
  border-color: var(--vert);
  background: color-mix(in srgb, var(--vert) 9%, var(--surface));
}

.tete-jeu__encart-consigne[data-posture="reflechit"] .tete-jeu__bulle-consigne,
.tete-jeu__encart-consigne[data-posture="indice"] .tete-jeu__bulle-consigne {
  border-color: var(--jaune);
}
.tete-jeu__encart-consigne[data-posture="reflechit"] .tete-jeu__bulle-consigne::before,
.tete-jeu__encart-consigne[data-posture="indice"] .tete-jeu__bulle-consigne::before {
  border-color: var(--jaune);
}

.tete-jeu__bliblou-etat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.tete-jeu__bliblou-etat[data-posture="applaudit"] {
  color: var(--fn-juste-texte, #166534);
}

.tete-jeu__bliblou-etat[data-posture="indice"],
.tete-jeu__bliblou-etat[data-posture="ecoute"] {
  color: var(--accent);
}

.tete-jeu__badge-consigne {
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.tete-jeu__consigne {
  flex: 0 1 auto;
  margin: 0;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  font-weight: 700;
  line-height: 1.36;
  color: var(--encre);
}

.tete-jeu__encart-consigne .bouton-voix {
  flex: none;
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 0 2px 5px var(--ombre);
}

.cadre-jeu .scene-jeu {
  border-radius: 0;
  box-shadow: none;
  padding-top: var(--espace-4);
}

/* Séparation nette du Plan 2 (barre d'onglets de niveau .filtres) et du Plan 3 (scène d'action) */
.scene-jeu > .filtres {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.35rem 0.45rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--trait);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.scene-jeu > .filtres .filtre {
  min-height: 2.35rem;
  padding: 0.28rem 0.78rem;
  border-radius: 10px;
  font-size: 0.92rem;
  background: transparent;
  color: var(--encre-2);
  box-shadow: none;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.scene-jeu > .filtres .filtre:hover:not([aria-pressed="true"]) {
  background: var(--surface);
  color: var(--encre);
}

.scene-jeu > .filtres .filtre[aria-pressed="true"] {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Sur un téléphone, l'en-tête se fait plus court, pour que le jeu commence dans l'écran,
   et les filtres tiennent sur une seule rangée qui défile */
@media (max-width: 600px) {
  .tete-jeu {
    gap: var(--espace-1);
    padding: var(--espace-3) var(--espace-4);
  }

  .tete-jeu__titre {
    font-size: 1.45rem;
  }

  .tete-jeu__consigne {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .tete-jeu__apprendre {
    font-size: 0.9rem;
  }

  /* L'en-tête d'un jeu, plus court au téléphone : la zone de jeu commence plus haut */
  .ecran--jeu .tete-jeu { padding: var(--espace-2) var(--espace-3); gap: 0.15rem; }
  .ecran--jeu .tete-jeu__titre { font-size: 1.2rem; }
  .ecran--jeu .tete-jeu .bouton-voix { min-width: 44px; min-height: 44px; }
  .ecran--jeu .scene-jeu { padding: var(--espace-3); gap: var(--espace-3); min-height: 0; }

  /* Les bandes de choix passent à la ligne au téléphone : chaque onglet se voit en entier
     (audit du 22/10/2026 : une rangée centrée sur une seule ligne coupait ses premiers onglets) */
  .tete-jeu + .filtres,
  .ecran--jeu .filtres {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    max-width: 100%;
  }

  .tete-jeu + .filtres .filtre,
  .ecran--jeu .filtres .filtre {
    flex: initial;
  }
}

.scene-jeu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-5);
  padding: var(--espace-6) var(--espace-4);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--trait);
  min-height: 22rem;
  overflow: hidden;
}

.bulle {
  position: relative;
  max-width: 34rem;
  padding: var(--espace-4) var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface-2);
  font-size: var(--t-grand);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.compteur {
  font-family: var(--police-titre);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--encre-2);
}

/* ---------- Le ticket « Le truc » (un ticket de fête, échancré sur les côtés) ---------- */

.ticket {
  position: relative;
  max-width: 36rem;
  width: 100%;
  padding: var(--espace-4) var(--espace-6);
  background: var(--jaune);
  color: var(--sur-jaune);
  border-radius: 8px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  display: grid;
  gap: var(--espace-2);
  text-align: left;
}

.ticket__titre {
  font-family: var(--police-titre);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--espace-1);
}

.ticket__intro {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.ticket__texte {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ticket__liste {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ticket__liste li {
  margin: 0;
}

.ticket__liste li strong,
.ticket__texte strong {
  font-weight: 800;
}

.ticket__exemple {
  font-style: italic;
}

.ticket__conclusion {
  margin: 0.15rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.ticket--entre {
  animation: entrer 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes entrer {
  from { transform: translateY(14px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Encarts de comparaison [mot 1] → [mot 2] avec légende dessous (Modèle 2) ---------- */

.comparaison {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--espace-4);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
}

.comparaison__colonne {
  display: inline-grid;
  justify-items: center;
  gap: var(--espace-2);
}

.comparaison__bloc-forme {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.comparaison__forme {
  display: inline-flex;
  align-items: baseline;
  padding: var(--espace-2) var(--espace-3);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: 0 2px 4px var(--ombre);
}

.comparaison__forme-devant {
  color: var(--encre-2);
  font-weight: 600;
  margin-right: 0.38em;
}

.comparaison__forme-devant--elision {
  margin-right: 0.05em;
}

.comparaison__forme-mot {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.comparaison__forme-etat {
  display: inline-grid;
  place-items: center;
  font-size: 1.35em;
  line-height: 1;
}

.comparaison__fleche {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 0.45em;
}

.comparaison__legende {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--encre);
  text-align: center;
}

.comparaison__repere {
  display: inline-block;
  padding: 0 0.25em;
  border-radius: 4px;
  background: var(--fn-piege);
  color: var(--fn-piege-texte);
}

/* ---------- Espace déterminant / pronom (règle modèle 3) ---------- */

.devant,
.forme-devant,
[class*="__devant"],
[class*="__forme-devant"] {
  display: inline-block;
  margin-right: 0.38em;
}

.devant--elision,
.forme-devant--elision,
[class*="__devant--elision"],
[class*="__forme-devant--elision"] {
  margin-right: 0.05em;
}

/* ---------- L'éclat (petite fête quand on trouve) ---------- */

.eclat {
  position: fixed;
  z-index: 50;
  width: 0;
  height: 0;
  pointer-events: none;
}

.eclat i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--c, var(--accent));
  animation: eclater 700ms cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.eclat i:nth-child(3n) {
  border-radius: 50%;
}

.eclat i:nth-child(3n + 1) {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@keyframes eclater {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* ---------- Les pastilles (âge, durée) ---------- */

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--encre);
  font-size: var(--t-petit);
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}

/* ---------- L'accueil : la tête d'affiche et les rangées d'affiches ---------- */

.une {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--espace-6);
  padding: var(--espace-6) var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface);
}

.une__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-titre-1);
  line-height: 0.95;
}

.une__titre span {
  display: block;
}

.une__titre span:first-child {
  color: var(--rouge);
}

.une__titre span:last-child {
  color: var(--bleu);
}

.une__texte {
  margin-top: var(--espace-4);
  font-size: var(--t-grand);
  max-width: 28rem;
}

.une__jouet {
  display: grid;
  justify-items: center;
  gap: var(--espace-3);
  min-width: 0;
}

.une__legende {
  text-align: center;
  color: var(--encre-2);
  font-size: 1rem;
  min-height: 3em;
}

@media (max-width: 760px) {
  .une {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--espace-5) var(--espace-4);
  }
}

.section-accueil {
  display: grid;
  gap: var(--espace-4);
}

.section-accueil__tete {
  display: grid;
  gap: var(--espace-1);
}

.section-accueil__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-titre-2);
}

.section-accueil__texte {
  color: var(--encre-2);
  max-width: var(--largeur-texte);
}

.grille-affiches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: var(--espace-4);
}

.affiche {
  --c: var(--bleu);
  --sur-c: var(--sur-bleu);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--espace-3);
  min-height: 15rem;
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--c);
  color: var(--sur-c);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--duree), box-shadow var(--duree);
}

.affiche:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 10px 24px var(--ombre);
}

.affiche__glyphe {
  font-family: var(--police-titre);
  line-height: 1.1;
  min-height: 2.8rem;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22em;
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.4rem);
}

.affiche__corps {
  display: grid;
  gap: var(--espace-1);
  min-width: 0;
  max-width: 100%;
}

/* Médaillon clair sous chaque icône d'affiche (14/11/2026) : évite tout ton sur ton
   (ex. chat jaune ou pot de miel sur carte jaune, renard sur carte rouge, arbre sur carte verte) */
.affiche__glyphe > .icone {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.24rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
  font-size: 2.25rem;
}

.affiche__glyphe > .icone svg {
  filter: none;
}

.affiche__medaillon-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.3rem 0.48rem 0.3rem 0.44rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #171a33;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, background 0.14s ease;
}

.affiche__medaillon-audio:hover {
  transform: scale(1.04);
  background: #fbf6ec;
  color: #171a33;
}

.affiche__medaillon-audio .icone {
  width: 1.8rem !important;
  height: 1.8rem !important;
  font-size: 1.55rem !important;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.affiche__medaillon-hp {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--accent)) 24%, #fbf6ec);
  border: 1.5px solid color-mix(in srgb, var(--c, var(--accent)) 45%, #fbf6ec);
  color: #171a33;
  flex-shrink: 0;
}

.affiche__medaillon-hp .trace {
  display: inline-grid;
  place-items: center;
  width: 1.05rem !important;
  height: 1.05rem !important;
}

.affiche__medaillon-hp svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  display: block;
}

.affiche__btn-voix {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #171a33 !important;
  border: 2px solid rgba(23, 26, 51, 0.18) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.affiche__btn-voix:hover {
  transform: scale(1.07);
  background: #fbf6ec !important;
  color: #171a33 !important;
}

.affiche__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  align-self: end;
}

.affiche__texte {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  opacity: 0.92;
}

.affiche__pied {
  display: flex;
  gap: var(--espace-2);
  flex-wrap: wrap;
}

.affiche .pastille {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.affiche--jaune .pastille {
  background: rgba(0, 0, 0, 0.1);
}

/* La petite phrase du jour, en bas de l'accueil */

.petite-phrase {
  display: grid;
  gap: var(--espace-2);
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  border: 3px dashed var(--trait);
  text-align: center;
}

.petite-phrase__texte {
  font-size: var(--t-titre-3);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

/* ---------- Les rubriques (histoires, choses à faire, jeux à plusieurs) ---------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2);
}

.filtre {
  min-height: 3rem;
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--encre);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: inset 0 0 0 2px var(--trait);
}

.filtre[aria-pressed="true"] {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: none;
}

.liste-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--espace-4);
}

.carte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--espace-3) var(--espace-4);
  align-items: start;
  padding: var(--espace-4) var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  color: var(--encre);
  text-decoration: none;
  transition: transform var(--duree), box-shadow var(--duree);
}

a.carte:hover,
button.carte:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--ombre);
}

button.carte {
  border: 0;
  text-align: left;
  width: 100%;
}

.carte__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  font-size: 2.6rem;
  line-height: 1;
}

.carte__corps {
  display: grid;
  gap: var(--espace-2);
  min-width: 0;
}

.carte__titre {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.carte__texte {
  color: var(--encre-2);
  font-size: 1rem;
  line-height: 1.45;
}

.carte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2);
}

.groupe-theme {
  display: grid;
  gap: var(--espace-3);
}

.groupe-theme__titre {
  font-size: var(--t-titre-3);
  font-weight: 700;
}

/* ---------- La fiche d'une activité (pliage, recette, jeu…) ---------- */

.fiche {
  display: grid;
  gap: var(--espace-5);
}

.fiche__tete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--espace-4);
  align-items: center;
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--accent);
  color: var(--sur-accent);
}

.fiche__tete .icone {
  font-size: clamp(3rem, 2.4rem + 3vw, 4.5rem);
}

.fiche__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-titre-2);
  line-height: 1.05;
}

.fiche__tete .pastille {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.fiche__colonnes {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: var(--espace-5);
  align-items: start;
}

@media (max-width: 760px) {
  .fiche__colonnes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fiche__bloc {
  display: grid;
  gap: var(--espace-3);
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface);
}

.fiche__bloc h2 {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.fiche__liste {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--espace-2);
}

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--espace-4);
  counter-reset: etape;
}

.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: var(--espace-3);
  align-items: start;
}

.etape::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--police-titre);
  font-size: 1.1rem;
}

.etape__corps {
  display: grid;
  gap: var(--espace-2);
  padding-top: 0.3rem;
  min-width: 0;
}

.etape__qui {
  justify-self: start;
}

.etape__qui--adulte {
  background: var(--rouge);
  color: var(--sur-rouge);
}

.etape__qui--ensemble {
  background: var(--violet);
  color: var(--sur-violet);
}

.petit-savoir {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--espace-3);
  align-items: start;
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--trait);
}

.petit-savoir .icone {
  font-size: 2rem;
}

.petit-savoir__titre {
  font-family: var(--police-titre);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--espace-1);
}

/* Les schémas des pliages : les couleurs viennent d'ici, pas des données */

.schema {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 1;
  padding: var(--espace-2);
  border-radius: var(--rayon);
  background: var(--surface-2);
}

.schema svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.schema .papier { fill: var(--jaune); stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
.schema .papier-dos { fill: var(--bleu); stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
.schema .trait { fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
/* La ligne de pli : foncée et épaisse, pour se voir sur le papier jaune en thème clair comme en sombre,
   avec un point à chaque bout, posé par fiches.js (l’autrice, 21/10/2026 : « on ne voit pas bien où on doit plier ») */
.schema .pli { fill: none; stroke: var(--bois-encre); stroke-width: 3; stroke-dasharray: 7 5; stroke-linecap: round; }
.schema .pli-montagne { fill: none; stroke: var(--bois-encre); stroke-width: 3; stroke-dasharray: 9 4 2 4; stroke-linecap: round; }
.schema .pli-bout { fill: var(--bois-encre); stroke: #fff; stroke-width: 1.6; }
.schema .fleche { fill: none; stroke: var(--rouge); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.schema .fleche-pointe { fill: var(--rouge); stroke: none; }
.schema .repere { fill: var(--rouge); stroke: none; }
/* Les schémas des gestes (nœuds, pâte, signes de piste…), ajoutés le 22/10/2026 */
.schema .corde { fill: none; stroke: var(--bois-flanc); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.schema .corde-2 { fill: none; stroke: var(--bleu); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.schema .pate { fill: var(--bois); stroke: var(--bois-flanc); stroke-width: 2; stroke-linejoin: round; }
.schema .main { fill: #f5c79e; stroke: #b9805a; stroke-width: 2; stroke-linejoin: round; } /* couleur fixe voulue : la peau d'une main */
.schema .herbe { fill: var(--vert); stroke: none; }
.schema .sol { fill: none; stroke: var(--encre-2); stroke-width: 2; stroke-dasharray: 4 6; }
.schema .signe { fill: none; stroke: var(--encre); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.schema .caillou { fill: var(--encre-2); stroke: none; }
.schema .zone { fill: var(--surface); stroke: var(--encre); stroke-width: 2; }
.schema .joueur { fill: var(--accent); stroke: none; }
.schema .joueur-2 { fill: var(--jaune); stroke: var(--encre); stroke-width: 1.5; } /* jaune : se distingue de l'accent de toutes les rubriques */

/* ---------- Le pied de page ---------- */

.pied {
  display: grid;
  gap: var(--espace-3);
  padding-top: var(--espace-5);
  border-top: 2px solid var(--trait);
  color: var(--encre-2);
  font-size: 1rem;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2) var(--espace-5);
}

.pied a {
  color: var(--encre);
  font-weight: 700;
}

/* ---------- Les pages de texte (pour les grands, mentions) ---------- */

.page-texte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--espace-5);
  max-width: 46rem;
}

.page-texte > * {
  min-width: 0;
}

.page-texte h1 {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--t-titre-2);
}

.page-texte h2 {
  font-size: var(--t-titre-3);
}

.page-texte:not(.page-parents):not(.page-sites-amis) {
  margin-inline: auto;
  width: 100%;
  max-width: 52rem;
}

.page-texte:not(.page-parents) > section {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 2.5px solid var(--trait);
  border-left: 7px solid var(--bliblou-fonce, var(--bleu));
  box-shadow: 0 3px 12px var(--ombre);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .page-texte:not(.page-parents) > section {
    border-color: color-mix(in srgb, var(--bliblou-fonce, var(--bleu)) 58%, var(--trait));
    border-left-color: var(--bliblou-fonce, var(--bleu));
  }
}

.page-texte:not(.page-parents) > section > h2 {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--bliblou-fonce, var(--bleu));
}

:root[data-theme="dark"] .page-texte:not(.page-parents) > section > h2 {
  color: var(--bliblou, var(--bleu));
}

/* Cartes chantiers (#qui-suis-je) harmonisées clair / sombre */
.chantier-carte {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 2.5px solid var(--trait);
  margin-bottom: 12px;
}

.chantier-carte--en-ligne {
  background: var(--surface);
  border-color: var(--bliblou-fonce, var(--bleu));
  border-left: 7px solid var(--bliblou-fonce, var(--bleu));
}

.chantier-carte__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.chantier-carte__titre {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--encre);
}

.chantier-carte__statut {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
}

.chantier-carte__statut.est-en-ligne {
  background: #dcfce7;
  color: #14532d;
  border: 1.5px solid #4ade80;
}

.chantier-carte__statut.est-a-venir {
  background: var(--surface);
  color: var(--encre-2);
  border: 1.5px solid var(--trait);
}

.chantier-carte__desc {
  margin: 0;
  color: var(--encre-2);
  line-height: 1.5;
}

.page-texte ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--espace-2);
}

.a-regarder {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--jaune);
  color: var(--sur-jaune);
  font-weight: 700;
}

/* ---------- La page « Pour les parents » (mise en forme du 11/11/2026) ----------
   Un chapeau, les cinq familles en tuiles (elles descendent dans la page), puis une carte par jeu : le nom du jeu
   se touche (48 px au moins) et se reconnaît sans survol (nom souligné, pastille « Jouer »).
   Une seule largeur de lecture (--parents-colonne), centrée ; seule la grille des jeux est plus large,
   et elle dépasse autant à gauche qu'à droite. */

.page-parents {
  --parents-colonne: 46rem;
  --parents-gris: var(--encre-2);
  max-width: 68rem;
  width: 100%;
  margin-inline: auto;
  gap: var(--espace-6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-parents { --parents-gris: #ccd0e8; }
}

:root[data-theme="dark"] .page-parents { --parents-gris: #ccd0e8; }

.page-parents > h1,
.parents-chapeau,
.parents-sommaire,
.parents-partie > h2,
.page-parents .parents-conseils,
.page-parents .parents-non,
.parents-garde,
.parents-famille__tete,
.parents-remonter {
  width: 100%;
  max-width: var(--parents-colonne);
  margin-inline: auto;
}

.parents-chapeau {
  display: grid;
  gap: var(--espace-3);
}

.parents-chapeau p,
.parents-garde p,
.parents-jeu p {
  margin: 0;
}

.parents-chapeau__phrase {
  font-size: var(--t-grand);
  font-weight: 700;
  line-height: 1.4;
}

.parents-chapeau__gratuit {
  font-weight: 700;
}

.page-parents .parents-familles,
.page-parents .parents-conseils,
.page-parents .parents-jeux,
.page-parents .parents-non {
  padding: 0;
  list-style: none;
}

.page-parents .parents-familles,
.page-parents .parents-jeux {
  margin: 0;
}

.page-parents .parents-familles {
  display: grid;
  gap: var(--espace-2);
  scroll-margin-top: 6rem;
}

.parents-familles__lien,
.parents-familles__seul {
  display: flex;
  align-items: center;
  gap: var(--espace-3);
  width: 100%;
  min-height: 3.6rem;
  padding: var(--espace-2) var(--espace-4);
  border-radius: var(--rayon);
  background: var(--surface);
  border: 2.5px solid color-mix(in srgb, var(--accent, var(--bleu)) 62%, var(--trait));
  border-left: 7px solid var(--accent);
  color: var(--encre);
  font: inherit;
  text-align: left;
}

.parents-familles__lien {
  cursor: pointer;
}

.parents-familles__lien .icone {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.parents-familles__corps {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.parents-familles__nom {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--encre);
}

.parents-familles__but {
  color: var(--parents-gris);
  font-size: 0.92rem;
  font-weight: 500;
}

.parents-familles__but::first-letter,
.parents-familles__seul::first-letter,
.parents-jeu__texte::first-letter {
  text-transform: uppercase;
}

.parents-familles__badge-nb {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--bleu)) 14%, var(--surface));
  color: var(--encre);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.parents-fleche {
  flex: none;
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1;
}

/* « Sur cette page » & 3 cartes d'introduction aérées à cernes colorés fermés (l’autrice, 18/11/2026) */
.parents-chapeau__textes-perso {
  display: grid;
  gap: 1.15rem;
}

.parents-chapeau__bloc-intro {
  display: grid;
  gap: 0.6rem;
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  background: var(--surface);
  border: 3px solid var(--trait);
  border-left: 8px solid var(--c-bloc, var(--bleu));
  box-shadow: 0 3px 0 rgba(35, 25, 10, 0.09), 0 6px 16px var(--ombre);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .parents-chapeau__bloc-intro {
    border-color: color-mix(in srgb, var(--c-bloc, var(--bleu)) 65%, var(--trait));
    border-left-color: var(--c-bloc, var(--bleu));
  }
}

.parents-chapeau__bloc-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parents-chapeau__titre-bloc {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-bloc, var(--bleu));
}

.parents-chapeau__bloc-familles {
  display: grid;
  gap: 0.75rem;
  padding: var(--espace-4);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  border: 2.5px solid var(--trait);
}

.parents-chapeau__appui {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--encre);
}

.parents-chapeau__intro-familles {
  margin-top: 0;
  font-weight: 800;
  font-size: 1.08rem;
}

.parents-sommaire {
  display: grid;
  gap: 0.95rem;
  padding: var(--espace-4);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  border: 3px solid color-mix(in srgb, var(--bleu) 60%, var(--trait));
  box-shadow: 0 4px 16px var(--ombre);
  scroll-margin-top: 6rem;
}

.parents-podcast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--bleu) 42%, var(--trait));
  box-shadow: 0 3px 10px var(--ombre);
}

.parents-podcast__textes {
  display: grid;
  gap: 3px;
  flex: 1 1 18rem;
  min-width: 0;
}

.parents-podcast__statut {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--encre-2);
  font-weight: 600;
}

.parents-podcast__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: normal;
  text-align: left;
}

.parents-podcast__btn.est-en-train {
  background: #e11d48;
  color: #ffffff;
}

.parents-sommaire__titre {
  color: var(--encre);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.parents-sommaire__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.85rem;
}

.parents-sommaire__carte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 2px solid var(--trait);
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.parents-sommaire__carte:hover {
  border-color: var(--bleu);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--ombre);
}

.parents-sommaire__carte.est-en-ecoute {
  border-color: var(--bleu);
  background: color-mix(in srgb, var(--bleu) 8%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu) 22%, transparent);
}

.parents-sommaire__carte-haut {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.parents-sommaire__num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--sur-bleu);
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 700;
}

.parents-sommaire__corps {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.parents-sommaire__texte {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--encre);
}

.parents-sommaire__sous {
  font-size: 0.85rem;
  line-height: 1.32;
  color: var(--encre-2);
}

.parents-sommaire__statut-audio {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-size: 0.82rem;
  font-weight: 800;
}

.parents-sommaire__carte-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 0.55rem;
  border-top: 1px solid var(--trait);
  margin-top: auto;
}

.parents-sommaire__btn-audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 2.25rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--bleu);
  background: color-mix(in srgb, var(--bleu) 12%, var(--surface));
  color: var(--encre);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.parents-sommaire__btn-audio:hover {
  background: var(--bleu);
  color: var(--sur-bleu);
}

.parents-sommaire__btn-audio.est-en-train {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.parents-sommaire__btn-audio .trace {
  width: 1.1rem;
  height: 1.1rem;
}

.parents-sommaire__btn-descendre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 2.25rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--trait);
  background: var(--surface-2);
  color: var(--encre-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.parents-sommaire__btn-descendre:hover {
  color: var(--encre);
  border-color: var(--bleu);
}

.parents-famille__pied-retour {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: var(--parents-colonne);
  margin-inline: auto;
}

.parents-sommaire__lien,
.parents-remonter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 6px 14px;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.parents-remonter:hover,
.parents-remonter:focus-visible {
  border-color: var(--accent, var(--bleu));
}

.parents-conseils__lien-texte {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Les parties de la page */
.page-parents .parents-partie {
  gap: var(--espace-4);
  scroll-margin-top: 6rem;
}

.page-parents .parents-partie > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: var(--espace-2);
  border-bottom: 3px solid var(--trait);
  line-height: 1.25;
}

.page-parents .parents-partie > h2::before {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 1.5rem;
  border-radius: 4px;
  background: var(--accent);
}

.page-parents h2:focus,
.page-parents h3:focus {
  outline: none;
}

/* Les conseils : cartes chaleureuses avec développement court et écoute audio (l’autrice, 15/11/2026) */
.parents-conseils__barre-audio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--parents-colonne);
  margin-inline: auto;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--trait);
  font-weight: 700;
  font-size: 0.98rem;
}

.parents-conseils__barre-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.parents-btn-deplier {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.92rem;
}

.page-parents .parents-conseils {
  display: grid;
  gap: var(--espace-3);
}

.parents-conseil-carte {
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  border: 2.5px solid color-mix(in srgb, var(--bliblou-fonce, var(--bleu)) 55%, var(--trait));
  border-left: 7px solid var(--bliblou-fonce, var(--bleu));
  box-shadow: 0 3px 10px var(--ombre);
  line-height: 1.55;
  overflow: hidden;
}

.parents-conseil-accordeon {
  width: 100%;
}

.parents-conseil-accordeon__sommaire {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
}

.parents-conseil-accordeon__sommaire::-webkit-details-marker {
  display: none;
}

.parents-conseil-accordeon__droite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.parents-conseil-accordeon__chevron {
  font-size: 1.15rem;
  color: var(--encre-2);
  transition: transform 0.18s ease;
}

.parents-conseil-accordeon[open] .parents-conseil-accordeon__chevron {
  transform: rotate(180deg);
}

.parents-conseil-accordeon__corps {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px;
  border-top: 1px dashed var(--trait);
  padding-top: 12px;
}

.parents-conseil-carte__entete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.parents-conseil-carte__icone {
  font-size: 1.45rem;
  line-height: 1;
}

.parents-conseil-carte__titre {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--encre);
}

.parents-conseil-carte__texte {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--encre-2);
}

.parents-conseils__btn-pause {
  justify-self: start;
  margin-top: 4px;
}

.parents-conseils__lien {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 44px;
  margin-top: 2px;
  color: var(--lien);
  font-weight: 700;
  text-decoration: none;
}

/* Les jeux, famille par famille : carte repliable aérée (l’autrice, 15/11/2026) */
.parents-famille {
  display: grid;
  gap: var(--espace-3);
  scroll-margin-top: 6rem;
}

.parents-famille--carte {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 3px solid color-mix(in srgb, var(--accent, var(--bleu)) 62%, var(--trait));
  border-left: 8px solid var(--accent);
  box-shadow: 0 3px 12px var(--ombre);
}

.parents-famille--neutre {
  --accent: var(--encre);
  --sur-accent: var(--fond);
}

.parents-famille + .parents-famille {
  margin-top: var(--espace-4);
}

.parents-famille__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-3);
}

.parents-famille__tete .icone {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
}

.parents-famille__mots {
  display: grid;
  flex: 1 1 16rem;
  min-width: 0;
}

.parents-famille__btn-aller {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.parents-famille__tiroir {
  border-top: 1.5px dashed var(--trait);
  padding-top: 12px;
}

.parents-famille__tiroir-sommaire {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--trait);
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--encre);
  cursor: pointer;
}

.parents-famille__tiroir-sommaire::-webkit-details-marker {
  display: none;
}

.parents-famille__tiroir-sommaire:hover {
  border-color: var(--accent);
}

.parents-famille__tiroir-chevron {
  transition: transform 0.18s ease;
}

.parents-famille__tiroir[open] .parents-famille__tiroir-chevron {
  transform: rotate(180deg);
}

.parents-famille__tiroir[open] .parents-jeux {
  margin-top: 14px;
}

.parents-famille__but {
  margin: 0;
  color: var(--parents-gris);
  line-height: 1.35;
}

.parents-famille__titre {
  font-size: 1.35rem;
  line-height: 1.25;
}

.parents-famille__titre a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}

.parents-famille__titre a > span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.page-parents .parents-jeux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: var(--espace-3);
}

.parents-jeu {
  display: grid;
  align-content: start;
  gap: var(--espace-2);
  padding: var(--espace-2);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--trait), 0 1px 0 var(--trait);
}

.parents-jeu__lien {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  min-height: 3.5rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 5px 0 0 var(--accent);
  color: var(--encre);
  text-decoration: none;
}

.parents-jeu__titre {
  flex: 1 1 9rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.parents-jeu__lien .pastille {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--trait);
  font-size: 0.9375rem;
}

.parents-jeu__jouer {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  margin-left: auto;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 700;
  line-height: 1.3;
}

.parents-jeu__lien:hover .parents-jeu__jouer,
.parents-jeu__lien:focus-visible .parents-jeu__jouer {
  filter: brightness(1.08);
}

/* Au téléphone : le nom du jeu seul sur sa ligne, puis l'âge à gauche et « Jouer » à droite */
@media (max-width: 479px) {
  .parents-jeu__titre {
    flex-basis: 100%;
  }
}

.parents-jeu__texte {
  padding: 0 var(--espace-2) var(--espace-2) 0.9rem;
  line-height: 1.55;
}

/* Ce que le site ne fait pas : une croix devant chaque ligne ; puis, à part, ce que le navigateur garde */
.page-parents .parents-non {
  display: grid;
  gap: var(--espace-2);
}

.parents-non li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}

.parents-non li::before {
  content: '×';
  position: absolute;
  left: 0.2rem;
  top: -0.05em;
  color: var(--parents-gris);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1.2;
}

.parents-garde {
  display: grid;
  gap: var(--espace-3);
  padding: var(--espace-4);
  border-radius: 18px;
  background: var(--surface);
  border: 2.5px solid var(--trait);
  line-height: 1.55;
}

/* Grille des 6 sites amis recommandés aux familles (#sites-amis & #grands, l’autrice 18/11/2026) */
.page-sites-amis {
  max-width: 68rem;
  width: 100%;
  margin-inline: auto;
  gap: var(--espace-5);
}

.page-sites-amis > h1,
.page-sites-amis > .libre-parole-page {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

.sites-amis__chapeau {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 2.5px solid #c97d10;
  border-left: 8px solid #b45309;
  box-shadow: 0 4px 16px var(--ombre);
}

:root[data-theme="dark"] .sites-amis__chapeau {
  border-color: #f59e0b;
  border-left-color: #fbbf24;
}

.sites-amis__intro {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.48;
  color: var(--encre);
}

.sites-amis__pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sites-amis__pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #d97706;
  color: #78350f;
  font-size: 0.88rem;
  font-weight: 800;
}

:root[data-theme="dark"] .sites-amis__pastille {
  background: rgba(251, 191, 36, 0.16);
  border-color: #fbbf24;
  color: #fde68a;
}

.sites-amis__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.sites-amis__maison {
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 2px dashed var(--trait);
  display: grid;
  gap: 16px;
}

.sites-amis__maison-entete {
  display: grid;
  gap: 4px;
}

.sites-amis__maison-titre {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--encre);
}

.sites-amis__maison-sous {
  margin: 0;
  font-size: 0.98rem;
  color: var(--encre-2);
}

.parents-liens-amis__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 16px;
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
}

.parents-ami-carte {
  --ami-accent: #065f46;
  --ami-pastille-fond: #dcfce7;
  --ami-pastille-texte: #064e3b;
  --ami-pastille-bord: #6ee7b7;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 2.5px solid color-mix(in srgb, var(--ami-accent) 60%, var(--trait));
  border-left: 8px solid var(--ami-accent);
  box-shadow: 0 4px 14px var(--ombre);
}

/* 7 palettes chaleureuses individuelles (contraste WCAG AA garanti en mode clair et sombre) */
.parents-ami-carte--turquoise {
  --ami-accent: #0f766e;
  --ami-pastille-fond: #ccfbf1;
  --ami-pastille-texte: #115e59;
  --ami-pastille-bord: #2dd4bf;
}
:root[data-theme="dark"] .parents-ami-carte--turquoise {
  --ami-accent: #5eead4;
  --ami-pastille-fond: rgba(20, 184, 166, 0.22);
  --ami-pastille-texte: #ccfbf1;
  --ami-pastille-bord: #2dd4bf;
}

.parents-ami-carte--emeraude {
  --ami-accent: #065f46;
  --ami-pastille-fond: #dcfce7;
  --ami-pastille-texte: #064e3b;
  --ami-pastille-bord: #34d399;
}
:root[data-theme="dark"] .parents-ami-carte--emeraude {
  --ami-accent: #34d399;
  --ami-pastille-fond: rgba(16, 185, 129, 0.2);
  --ami-pastille-texte: #a7f3d0;
  --ami-pastille-bord: #34d399;
}

.parents-ami-carte--ambre {
  --ami-accent: #9a3412;
  --ami-pastille-fond: #fef3c7;
  --ami-pastille-texte: #78350f;
  --ami-pastille-bord: #f59e0b;
}
:root[data-theme="dark"] .parents-ami-carte--ambre {
  --ami-accent: #fbbf24;
  --ami-pastille-fond: rgba(245, 158, 11, 0.2);
  --ami-pastille-texte: #fde68a;
  --ami-pastille-bord: #fbbf24;
}

.parents-ami-carte--corail {
  --ami-accent: #9f1239;
  --ami-pastille-fond: #ffe4e6;
  --ami-pastille-texte: #881337;
  --ami-pastille-bord: #fb7185;
}
:root[data-theme="dark"] .parents-ami-carte--corail {
  --ami-accent: #fda4af;
  --ami-pastille-fond: rgba(244, 63, 94, 0.22);
  --ami-pastille-texte: #ffe4e6;
  --ami-pastille-bord: #fb7185;
}

.parents-ami-carte--bleu {
  --ami-accent: #1e40af;
  --ami-pastille-fond: #dbeafe;
  --ami-pastille-texte: #1e3a8a;
  --ami-pastille-bord: #60a5fa;
}
:root[data-theme="dark"] .parents-ami-carte--bleu {
  --ami-accent: #60a5fa;
  --ami-pastille-fond: rgba(59, 130, 246, 0.22);
  --ami-pastille-texte: #dbeafe;
  --ami-pastille-bord: #60a5fa;
}

.parents-ami-carte--violet {
  --ami-accent: #6b21a8;
  --ami-pastille-fond: #f3e8ff;
  --ami-pastille-texte: #581c87;
  --ami-pastille-bord: #c084fc;
}
:root[data-theme="dark"] .parents-ami-carte--violet {
  --ami-accent: #d8b4fe;
  --ami-pastille-fond: rgba(168, 85, 247, 0.22);
  --ami-pastille-texte: #f3e8ff;
  --ami-pastille-bord: #c084fc;
}

.parents-ami-carte--indigo {
  --ami-accent: #3730a3;
  --ami-pastille-fond: #e0e7ff;
  --ami-pastille-texte: #312e81;
  --ami-pastille-bord: #818cf8;
}
:root[data-theme="dark"] .parents-ami-carte--indigo {
  --ami-accent: #a5b4fc;
  --ami-pastille-fond: rgba(99, 102, 241, 0.22);
  --ami-pastille-texte: #e0e7ff;
  --ami-pastille-bord: #818cf8;
}

.parents-ami-carte__besoin {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--ami-pastille-fond);
  border: 1.5px solid var(--ami-pastille-bord);
  color: var(--ami-pastille-texte);
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.3;
}

.parents-ami-carte__nom {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ami-accent);
}

.parents-ami-carte p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--encre-2);
}

.parents-ami-carte__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.parents-ami-carte__lien {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid color-mix(in srgb, var(--ami-accent) 45%, var(--trait));
  color: var(--encre);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.parents-ami-carte__lien:hover {
  border-color: var(--ami-accent);
  background: var(--ami-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .parents-ami-carte__lien:hover {
  color: #0b1320;
}

.parents-ami-carte--vedette {
  grid-column: 1 / -1;
  padding: 22px 24px;
  gap: 11px;
  border-width: 3px;
  border-left-width: 10px;
  background: color-mix(in srgb, #f59e0b 9%, var(--surface));
  box-shadow: 0 8px 22px var(--ombre);
}

:root[data-theme="dark"] .parents-ami-carte--vedette {
  background: color-mix(in srgb, #f59e0b 14%, var(--surface));
}

.parents-ami-carte--vedette .parents-ami-carte__nom {
  font-size: 1.28rem;
}

.parents-ami-carte--vedette p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--encre);
  max-width: 58rem;
}

.parents-ami-carte__lien--principal {
  background: var(--ami-accent);
  border-color: var(--ami-accent);
  color: #ffffff;
}

:root[data-theme="dark"] .parents-ami-carte__lien--principal {
  color: #1c1917;
}

.parents-ami-carte__lien--principal:hover {
  filter: brightness(1.08);
}

.section-parent__amis {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px dashed color-mix(in srgb, #f59e0b 55%, var(--trait));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-parent__amis-texte {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--encre-2);
  flex: 1 1 18rem;
}

.section-parent__amis-texte strong {
  color: var(--encre);
}

.section-parent__amis-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Le passage d'un écran à l'autre ---------- */

.ecran {
  display: grid;
  gap: var(--espace-5);
  animation: arriver 320ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Un enfant de grille ne doit jamais élargir la page (une rangée qui défile, un long mot) */
.ecran > *,
.site > * {
  min-width: 0;
}

@keyframes arriver {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Les petits tracés de l'interface ---------- */

.trace {
  display: inline-flex;
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

.trace svg {
  width: 100%;
  height: 100%;
}

/* ---------- Le jouet de la une ---------- */

.une__bouton {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 9rem;
  padding: var(--espace-5) var(--espace-3);
  border: 0;
  border-radius: var(--rayon-grand);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--trait);
}

.une__bouton:hover .tuile {
  transform: translateY(-2px);
}

.une__lettres {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.25rem, 1vw, 0.5rem);
}

.une__lettres .tuile {
  --taille: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
}

/* Le titre reçoit le focus à chaque changement d'écran (pour les lecteurs d'écran) : sans cadre visible */
h1[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 520px) {
  .fiche__tete {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--espace-3);
  }

  .fiche__tete .icone {
    font-size: 3rem;
  }
}

/* ---------- Les étoiles semées dans le site ---------- */

.etoile {
  display: grid;
  gap: var(--espace-3);
  justify-items: start;
}

.etoile--milieu {
  justify-items: center;
}

.etoile--droite {
  justify-items: end;
}

.etoile__bouton {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.45rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--jaune);
  transform: rotate(var(--tourne, 0deg));
  transition: transform 300ms cubic-bezier(0.3, 1.6, 0.5, 1), color var(--duree);
  animation: scintiller 3.2s ease-in-out infinite;
}

.etoile__bouton svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: var(--encre);
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15));
}

.etoile__bouton:hover {
  transform: rotate(var(--tourne, 0deg)) scale(1.15);
}

.etoile__bouton.est-allumee {
  color: var(--rouge);
  animation: none;
}

@keyframes scintiller {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.etoile__carte {
  display: grid;
  gap: var(--espace-2);
  width: min(100%, 30rem);
  padding: var(--espace-4) var(--espace-5);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  box-shadow: 0 8px 20px var(--ombre), inset 0 0 0 2px var(--jaune);
  animation: entrer 360ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.etoile__texte {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.etoile__suite {
  font-size: 1.1rem;
}

.etoile__lien {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 700;
}

.ciel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2);
  padding: var(--espace-5);
  border-radius: var(--rayon-grand);
  background: #12153a;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
}

.ciel__point {
  width: 1.6rem;
  height: 1.6rem;
  color: #3a3f78;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
}

.ciel__point svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ciel__point.est-allumee {
  color: #ffc83a;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
}

/* La page « Participer aux frais » : la Grande Casserole */

.constellation {
  max-width: 22rem;
  padding: var(--espace-4);
  border-radius: var(--rayon-grand);
  background: #12153a;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
}

.constellation svg {
  width: 100%;
  height: auto;
  display: block;
}

.constellation__trait {
  stroke: #8d93d9;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.constellation__etoile {
  fill: #ffc83a;   /* couleur fixe voulue : le ciel reste un ciel de nuit, au jour comme à la nuit */
}

.participer__legende {
  font-size: 0.95rem;
  margin-top: calc(-1 * var(--espace-3));
}

/* ---------- L'affiche en vitrine (les rubriques à faire, ajout du 21/10/2026) ---------- */

.affiche--vitrine > :not(.affiche__fond) {
  position: relative;
  z-index: 1;
}

.affiche__fond {
  position: absolute;
  right: -1.6rem;
  bottom: -1.8rem;
  opacity: 0.2;
  transform: rotate(-14deg);
  pointer-events: none;
}

.affiche .affiche__fond .icone {
  font-size: 9rem;
}

.affiche__etalage {
  display: flex;
  align-items: center;
  padding: 0.2rem 0 0.35rem;
}

.affiche__autocollant {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-right: -0.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 80%, var(--c));
  color: #171a33;
  box-shadow: 0 3px 0 color-mix(in srgb, #000 22%, var(--c));
  transform: rotate(calc((var(--i) - 1) * 7deg)) translateY(calc(var(--i) * 2px - 3px));
  transition: transform var(--duree);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) { .affiche__autocollant { background: #fbf6ec; color: #171a33; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); } }

.affiche__autocollant:nth-child(even) {
  transform: rotate(calc((var(--i) - 1) * -6deg)) translateY(5px);
}

.affiche__glyphe .affiche__autocollant .icone {
  font-size: 2.15rem;
}

.affiche--vitrine:hover .affiche__autocollant {
  transform: rotate(calc((var(--i) - 1) * 10deg)) translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .affiche__autocollant { transition: none; }
}

/* La tablette tenue en largeur (audit du 22/10/2026) : l'écran est bas ; l'en-tête du site, l'en-tête
   du jeu et la une de l'accueil se font plus courts, pour que le jeu commence plus haut */
@media (orientation: landscape) and (max-height: 820px) and (min-width: 601px) {
  .entete { padding-block: var(--espace-1); }
  .ecran--jeu .tete-jeu { padding: var(--espace-2) var(--espace-4); gap: 0.15rem; }
  .ecran--jeu .tete-jeu__titre { font-size: 1.5rem; }
  .ecran--jeu .tete-jeu__consigne { font-size: 1.05rem; line-height: 1.3; }
  .ecran--jeu .tete-jeu__apprendre { font-size: 0.92rem; }
  .ecran--jeu .scene-jeu { padding: var(--espace-3) var(--espace-4); gap: var(--espace-3); min-height: 0; }
  .une { padding-block: var(--espace-4); }
}

/* Le code des couleurs dans les jeux (22/10/2026) : les variables --fn-* sont dans base.css.
   Un jeu peut poser ces classes, ou reprendre les variables dans sa propre feuille. */
.fn-piege { background: var(--fn-piege); color: var(--fn-piege-texte); border-radius: 0.2em; }
.fn-change { box-shadow: 0 0 0 3px var(--fn-change); }
.fn-juste { background: var(--fn-juste); color: var(--fn-juste-texte); }
.fn-coche::after { content: '\00a0\2713'; font-weight: 800; }

/* ---------- Bouton Pause dans l'en-tête des jeux et Roue des pauses (l’autrice, 15/11/2026) ---------- */

.tete-jeu__ligne-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}

.tete-jeu__btn-objectif {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 2.3rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, currentColor 32%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.tete-jeu__btn-objectif[hidden] {
  display: none;
}

.tete-jeu__btn-objectif:hover,
.tete-jeu__btn-objectif:focus-visible,
.tete-jeu__btn-objectif[aria-expanded="true"] {
  background: color-mix(in srgb, currentColor 22%, transparent);
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  transform: translateY(-1px);
}

.tete-jeu__btn-pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 2.3rem;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--trait);
  background: var(--surface);
  color: var(--encre);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.tete-jeu__btn-pause-court {
  display: none;
}

.tete-jeu__btn-pause:hover,
.tete-jeu__btn-pause:focus-visible {
  border-color: var(--vert);
  background: color-mix(in srgb, var(--vert) 14%, var(--surface));
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .tete-jeu__ligne-titre {
    gap: 6px 8px;
  }

  .tete-jeu__outils-titre {
    gap: 6px;
  }

  .tete-jeu__btn-pause-long {
    display: none;
  }

  .tete-jeu__btn-pause-court {
    display: inline;
  }

  .tete-jeu__btn-pause,
  .tete-jeu__btn-objectif {
    min-height: 2.1rem;
    padding: 3px 9px;
    font-size: 0.84rem;
    gap: 4px;
  }
}

.tete-jeu__suggestion-pause {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #10b981;
}

.tete-jeu__suggestion-pause-texte {
  font-size: 0.96rem;
  line-height: 1.35;
}

.tete-jeu__suggestion-pause-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tete-jeu__suggestion-btn-roue,
.tete-jeu__suggestion-btn-continuer {
  min-height: 2.4rem;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.roue-pauses__voile {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.roue-pauses__boite {
  display: grid;
  gap: 14px;
  width: min(100%, 44rem);
  padding: 22px 24px;
  border-radius: 26px;
  background: var(--surface);
  color: var(--encre);
  border: 2.5px solid var(--trait);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.roue-pauses__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.roue-pauses__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roue-pauses__titre {
  margin: 4px 0 0;
  font-family: var(--police-titre);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.roue-pauses__fermer {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--trait);
  background: var(--surface-2);
  color: var(--encre);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.roue-pauses__onglets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--trait);
}

.roue-pauses__onglet {
  min-height: 2.8rem;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--encre-2);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.roue-pauses__onglet.est-actif {
  background: var(--surface);
  color: var(--encre);
  box-shadow: 0 2px 8px var(--ombre);
}

.roue-pauses__sous-titre {
  margin: 0;
  font-size: 0.96rem;
  color: var(--encre-2);
}

.roue-pauses__corps {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

@media (max-width: 620px) {
  .roue-pauses__corps {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

.roue-pauses__bouton-roue {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.roue-pauses__bouton-roue:hover {
  transform: scale(1.03);
}

.roue-pauses__svg {
  width: 13.5rem;
  height: 13.5rem;
  display: block;
}

.roue-pauses__colonne-droite {
  display: grid;
  gap: 12px;
  width: 100%;
}

.roue-pauses__carte {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--pause-fond, #f5ebd8);
  color: #0f172a;
  border: 2px solid #0f172a;
}

.roue-pauses__carte .bouton-voix {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  box-shadow: inset 0 0 0 2px #0f172a;
}

.roue-pauses__carte-entete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.roue-pauses__carte-symbole {
  font-size: 2rem;
  line-height: 1;
}

.roue-pauses__carte-titre {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.roue-pauses__carte-texte {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.48;
  color: #1e293b;
}

.roue-pauses__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Encart sobre de partage entre adultes (sans traceur) ---------- */
.partage-adulte {
  margin: var(--espace-4) 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bleu) 8%, var(--surface));
  border: 2px solid color-mix(in srgb, var(--bleu) 38%, var(--trait));
}

.partage-adulte__corps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.partage-adulte__textes {
  flex: 1 1 260px;
  min-width: 0;
}

.partage-adulte__titre {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--encre);
  margin-bottom: 3px;
}

.partage-adulte__sous {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.42;
  color: var(--encre-douce);
  word-break: break-word;
}

.partage-adulte__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partage-adulte__statut {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--vert) 14%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--vert) 45%, var(--trait));
  color: var(--encre);
  font-size: 0.92rem;
  font-weight: 700;
}

@media print {
  .partage-adulte {
    display: none !important;
  }
}

/* ---------- Geste fantôme (main douce sur le 1er geste d'un jeu) ---------- */
.geste-fantome {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  user-select: none;
  font-size: 2.05rem;
  line-height: 1;
  transform: translate(-20%, -10%);
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.28));
  animation: geste-fantome-taper 1.5s ease-in-out infinite;
}

.geste-fantome--statique {
  animation: none;
}

@keyframes geste-fantome-taper {
  0%, 100% {
    transform: translate(-20%, -10%) scale(1);
    opacity: 0.92;
  }
  45% {
    transform: translate(-20%, -22%) scale(0.92);
    opacity: 1;
  }
  60% {
    transform: translate(-20%, -14%) scale(0.96);
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geste-fantome {
    animation: none;
  }
}

/* ---------- Enregistreur vocal 100 % local (en mémoire) ---------- */
.enregistreur {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, var(--bleu)) 7%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--accent, var(--bleu)) 28%, var(--trait));
}

.enregistreur__boutons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.enregistreur__btn--actif {
  background: var(--rouge);
  color: var(--sur-rouge, #ffffff);
}

.enregistreur__note {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--encre-2);
}

/* ---------- Compagnon Bliblou en aquarelle pastel (Vague 3, 19/11/2026) ---------- */
.bliblou-aq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #faf6ee;
  border: 2px solid color-mix(in srgb, var(--bliblou, #178a77) 32%, transparent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease;
}

.bliblou-aq__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bliblou-aq--tete {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.bliblou-aq--mini {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.bliblou-aq--pop {
  animation: bliblou-aq-pop 0.34s ease;
}

@keyframes bliblou-aq-pop {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.ticket__entete {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ticket__entete .ticket__titre {
  margin: 0;
}

@media (max-width: 560px) {
  .bliblou-aq--tete {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .tete-jeu__encart-consigne {
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
  }
  .tete-jeu__bulle-consigne {
    padding: 0.5rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bliblou-aq--pop {
    animation: none;
  }
}

@media print {
  .geste-fantome,
  .enregistreur,
  .bliblou-aq {
    display: none !important;
  }
}
