/* ==========================================================================
   Site Éducation (edu.apesierre.ch) : composants propres à ce site.
   S'appuie sur styles.css et pages.css (mêmes couleurs, polices, boutons).
   ========================================================================== */

/* Rose un peu plus foncé pour les petits symboles (étoiles) : 4,5 : 1 sur fond blanc, contre 2,7 : 1 pour le rose des illustrations */
:root { --c-rose-fonce: #c9496a; }

/* ---------- Cibles tactiles : au moins 48 px de haut pour tout ce qui se touche ---------- */
.btn, .filter, .chip span, .exo-quitter, .co-lien, .exo-lire, .check { min-height: 48px; }
/* Le menu du haut aussi : onglets, bouton « Adhérer » et bouton à trois traits (téléphone) à 48 px */
.nav__link { display: inline-flex; align-items: center; min-height: 48px; }
.logo { min-height: 48px; }
.nav__burger { width: 48px; height: 48px; }
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 27px; }
.nav__burger[aria-expanded="true"] span:nth-child(1), .nav__burger[aria-expanded="true"] span:nth-child(2) { top: 23px; }
.chip span { display: inline-flex; align-items: center; }
.exo-quitter, .co-lien, .exo-lire { display: inline-flex; align-items: center; }
.pm-age select, .pm-champ-recherche { min-height: 48px; }
.crumbs { align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 48px; background-position: 0 calc(50% + 11px); } /* le lien vers le site de l'association se touche du doigt ; le soulignement reste sous le texte */
.co-regles > summary { display: flex; align-items: center; width: fit-content; min-height: 48px; background: none; text-decoration: underline; text-underline-offset: 4px; }
.filter span { color: var(--slate-600); } /* pastille de comptage : contraste suffisant sur fond gris clair */

/* Pied de page : sur tablette et téléphone, chaque lien se touche sans viser (48 px) */
@media (max-width: 1080px) {
  .footer__col { gap: 0; }
  .footer__col a, .footer__links a { display: inline-flex; align-items: center; min-height: 48px; background-position: 0 calc(50% + 11px); }
}

/* ---------- Lien « ← Accueil » en haut des pages pour les enfants ---------- */
.retour-accueil {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px 10px 14px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px;
  font: 600 16px/1.2 var(--font-sans); color: var(--ink);
  transition: background-color .25s, color .25s;
}
.retour-accueil .icon { width: 20px; height: 20px; transition: transform .45s var(--ease-spring); }
.retour-accueil:hover { background: var(--ink); color: #fff; }
.retour-accueil:hover .icon { transform: translateX(-4px); }
.page-hero__inner > .retour-accueil { margin-bottom: -4px; }

/* ---------- Accueil : trois grands boutons ---------- */
.page-hero--accueil { padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero--accueil .page-hero__title { font-size: clamp(42px, 6.4vw, 88px); }
.section--accueil { padding-block: clamp(36px, 6vw, 80px) clamp(88px, 12vw, 152px); } /* le bas laisse la place aux mascottes du pied de page */
.accueil-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.accueil-choix > li { display: flex; }
.accueil-bouton {
  position: relative; display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 300px; padding: clamp(24px, 3vw, 36px);
  border: 2px solid var(--ink-black); border-radius: var(--radius-xl);
  transition: translate .5s var(--ease-spring), rotate .5s var(--ease-spring), box-shadow .3s;
}
.accueil-bouton--vert { background: var(--c-vert); color: var(--ink-black); }
.accueil-bouton--rose { background: var(--c-rose); color: var(--ink-black); }
.accueil-bouton--encre { background: var(--ink); color: #fff; }
.accueil-bouton__icone { display: block; font-size: clamp(56px, 6vw, 76px); line-height: 1; letter-spacing: .04em; }
.accueil-bouton__texte { display: flex; flex-direction: column; gap: 8px; }
.accueil-bouton__titre { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.01em; }
.accueil-bouton__sous { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.4; }
.accueil-bouton__fleche { flex: none; width: 36px; height: 36px; align-self: flex-end; stroke-width: 2.25; transition: transform .5s var(--ease-spring); }
.accueil-bouton:hover { translate: 0 -6px; rotate: -.8deg; box-shadow: 6px 8px 0 var(--ink-black); }
.accueil-choix > li:nth-child(even) .accueil-bouton:hover { rotate: .8deg; }
.accueil-bouton:hover .accueil-bouton__fleche { transform: translateX(6px); }
.accueil-bouton:focus-visible { border-radius: var(--radius-xl); outline: 4px solid var(--ink); outline-offset: 5px; }
.accueil-parents { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.accueil-parents a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: var(--radius);
  font-size: 15.5px; font-weight: 500; color: var(--slate-600);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--zinc-300);
  transition: color .25s, text-decoration-color .25s;
}
.accueil-parents a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.accueil-parents .icon { width: 18px; height: 18px; }

/* ---------- Page des parents (connaissances) : cycles et note ---------- */
.edu-cycles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.edu-cycle-carte { padding: 24px 24px 22px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.edu-cycle-carte h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ink-black); }
.edu-cycle-carte .age { margin: 2px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); }
.edu-cycle-carte p { font-size: 15px; color: var(--slate-600); }
.edu-cycle-carte .niveaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.edu-cycle-carte .niveaux a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 48px; padding: 5px 14px;
  border: 1px solid var(--zinc-300); border-radius: var(--radius); background: var(--white);
  font: 600 15px/1.2 var(--font-sans); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.edu-cycle-carte .niveaux a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.edu-cycles + .prog-intro { margin-top: clamp(56px, 8vw, 88px); }

.edu-note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 56px; padding: 20px 24px;
  background: var(--paper); border: 1px dashed var(--zinc-300); border-radius: var(--radius-xl);
  font-size: 14.5px; line-height: 1.6; color: var(--slate-600);
}
.edu-note b { color: var(--ink-black); }
.edu-note a { font-weight: 600; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* ---------- Connaissances ---------- */
.prog-intro { max-width: 70ch; margin: 0 auto 8px; text-align: center; color: var(--slate-500); }
.prog-resume { min-height: 3.2em; max-width: 70ch; margin: 0 auto 36px; text-align: center; font-size: 15px; color: var(--slate-600); }
.prog-filtres { justify-content: center; margin-bottom: 20px; }
.prog-liste-annees { display: grid; gap: 28px; }
.prog-annee { overflow: hidden; background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); scroll-margin-top: 12px; }
.prog-annee__tete { display: flex; align-items: center; gap: 18px; padding: 22px 28px; background: var(--paper); border-bottom: 1px solid var(--zinc-200); }
.prog-annee__num {
  display: grid; place-items: center; min-width: 76px; height: 56px; padding-inline: 12px;
  background: var(--ink); color: #fff; border-radius: 12px; rotate: -3deg;
  font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1;
}
.prog-annee:nth-child(even) .prog-annee__num { rotate: 3deg; }
.prog-annee__titre h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ink-black); }
.prog-annee__titre p { margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); }
.prog-annee__corps { display: grid; grid-template-columns: 1fr 1fr; }
.prog-matiere { padding: 24px 28px 26px; }
.prog-matiere + .prog-matiere { border-left: 1px solid var(--zinc-200); }
.prog-matiere h4 {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  font: 700 12px/1.5 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-black);
}
.prog-matiere--fr h4 { background: color-mix(in srgb, var(--c-rose) 28%, #fff); }
.prog-matiere--ma h4 { background: color-mix(in srgb, var(--c-vert) 30%, #fff); }
.prog-liste { display: grid; gap: 9px; }
.prog-liste li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--slate-700); }
.prog-liste li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-rose); }
.prog-matiere--ma .prog-liste li::before { background: var(--c-vert); border-radius: 2px; rotate: 45deg; }
.prog-annee__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 28px; border-top: 1px solid var(--zinc-200); background: var(--paper); }
.prog-exemple { font-size: 14.5px; color: var(--slate-600); }
.prog-exemple b { color: var(--ink-black); }
.prog-liens { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Exercices : choix ---------- */
.exo { max-width: 860px; margin-inline: auto; }
.exo-groupe { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.exo-groupe__titre { margin-bottom: 14px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--ink-black); }
.exo-groupe .filters { margin-bottom: 0; }
.exo-cycle { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.exo-cycle__nom { flex: none; width: 76px; font: 600 12px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--zinc-500); }
.exo-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--zinc-200); }
.exo-resume { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.exo-vide { margin-top: 18px; padding: 14px 18px; background: var(--paper); border: 1px dashed var(--zinc-300); border-radius: var(--radius); color: var(--slate-600); }

/* Étape 1 : l'année (une couleur par cycle) */
.exo-etape__titre { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.015em; color: var(--ink-black); text-wrap: balance; }
.exo-etape__titre:focus { outline: none; }
.exo-etape__aide { margin: -6px 0 22px; font-size: 17px; color: var(--slate-600); }
.annees { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; flex: 1; margin: 0; padding: 0; list-style: none; }
.exo-etape .exo-cycle { align-items: center; gap: 16px; margin-bottom: 14px; }
.exo-etape .exo-cycle__nom { width: 70px; }
.annee-tuile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 108px; padding: 12px 8px;
  border: 2px solid var(--ink-black); border-radius: var(--radius-xl); text-align: center;
  transition: translate .45s var(--ease-spring), rotate .45s var(--ease-spring), box-shadow .3s;
}
.annee-tuile--c1 { background: var(--c-rose); color: var(--ink-black); }
.annee-tuile--c2 { background: var(--c-vert); color: var(--ink-black); }
.annee-tuile--c3 { background: var(--ink); color: #fff; }
.annee-tuile__num { font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1; }
.annee-tuile__age { font-size: 15px; font-weight: 600; line-height: 1.2; }
.annee-tuile:hover { translate: 0 -4px; rotate: -1.5deg; box-shadow: 4px 6px 0 var(--ink-black); }
.annees > li:nth-child(even) .annee-tuile:hover { rotate: 1.5deg; }
.annee-tuile:focus-visible, .exo-activite:focus-visible { border-radius: var(--radius-xl); outline: 4px solid var(--ink); outline-offset: 4px; }

/* Étape 2 : l'activité, rappel de l'année, avertissement 1H–2H */
.exo-recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 26px; padding: 10px 12px 10px 14px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.exo-recap__annee { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 17px; font-weight: 600; color: var(--slate-600); }
.exo-recap__pastille { display: grid; place-items: center; min-width: 64px; height: 48px; padding-inline: 12px; border: 2px solid var(--ink-black); border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1; }
.exo-recap__pastille--c1 { background: var(--c-rose); color: var(--ink-black); }
.exo-recap__pastille--c2 { background: var(--c-vert); color: var(--ink-black); }
.exo-recap__pastille--c3 { background: var(--ink); color: #fff; }
.exo-adulte { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 14px 18px; background: color-mix(in srgb, var(--c-rose) 16%, #fff); border-radius: var(--radius); font-size: 17px; font-weight: 600; color: var(--ink-black); }
.exo-activites { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 34px; }
.exo-activite { justify-content: flex-start; min-height: 150px; padding: 22px 12px 20px; text-align: center; }
.exo-activite .exo-op__signe { width: 72px; height: 72px; font-size: 28px; letter-spacing: -.01em; }
.exo-activite .exo-op__nom { font-size: 18px; line-height: 1.25; }
.exo-options { margin-top: 6px; padding-top: 30px; border-top: 1px solid var(--zinc-200); }
.exo-options .exo-aide { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--slate-600); }
.exo-options__titre { margin: 0 0 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; color: var(--ink-black); }

/* ---------- Exercices : série ---------- */
.exo-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.exo-compteur { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.exo-entete__droite { display: flex; align-items: center; gap: 8px 18px; }
.exo-quitter {
  padding: 4px 12px; border-radius: 8px;
  font: 600 14px/1.3 var(--font-sans); color: var(--slate-600);
  text-decoration: underline; text-underline-offset: 3px;
  transition: background-color .25s, color .25s;
}
.exo-quitter:hover { color: var(--ink); }
.exo-quitter.is-confirm { background: color-mix(in srgb, var(--c-rose) 25%, #fff); color: var(--ink-black); text-decoration: none; }
.exo-barre { height: 8px; margin-bottom: 24px; overflow: hidden; background: var(--zinc-200); border-radius: 999px; }
.exo-barre span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .6s var(--ease-out); }
.exo-carte {
  padding: clamp(22px, 4vw, 40px); background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl);
  transition: border-color .3s, background-color .3s;
}
.exo-carte.is-juste { border-color: var(--c-vert); background: color-mix(in srgb, var(--c-vert) 8%, #fff); }
.exo-carte.is-faux { border-color: var(--c-rose); background: color-mix(in srgb, var(--c-rose) 8%, #fff); }
.exo-enonce { margin-bottom: 24px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: var(--ink-black); text-wrap: pretty; }
.exo-enonce b { font-weight: 700; }
.exo-big { display: inline-block; margin-top: 6px; font-size: 1.5em; line-height: 1.35; letter-spacing: .08em; word-break: break-all; }
.exo-pron { color: var(--slate-600); }
.exo-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.exo-option { position: relative; display: block; cursor: pointer; }
.exo-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.exo-option span {
  display: block; height: 100%; padding: 14px 18px; background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius);
  font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink-black);
  transition: border-color .25s, background-color .25s, transform .4s var(--ease-spring);
}
.exo-option:hover span { border-color: var(--ink); transform: translateY(-2px); }
.exo-option--img { display: flex !important; align-items: center; gap: 14px; }
.exo-option__emoji { flex: none; font-size: 34px; font-style: normal; line-height: 1; }
.exo-option input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.exo-option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.exo-option.is-bonne span { border-color: var(--c-vert); background: color-mix(in srgb, var(--c-vert) 22%, #fff); box-shadow: inset 0 0 0 1px var(--c-vert); }
.exo-option.is-mauvaise span { border-color: var(--c-rose); background: color-mix(in srgb, var(--c-rose) 20%, #fff); box-shadow: inset 0 0 0 1px var(--c-rose); }
.exo-option input:disabled + span { cursor: default; }
.exo-option:hover input:disabled + span { transform: none; }
.exo-champ { display: flex; align-items: center; gap: 12px; }
.exo-input {
  width: min(100%, 420px); padding: 14px 18px; background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius);
  font: 500 20px/1.3 var(--font-sans); color: var(--ink-black);
  transition: border-color .25s, box-shadow .25s;
}
.exo-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .12); }
.exo-input:disabled { background: var(--zinc-100); }
.exo-unite { font-weight: 600; color: var(--slate-600); }
.exo-retour { min-height: 0; margin-top: 20px; font-size: 16px; line-height: 1.55; }
.exo-retour:empty { display: none; }
.exo-retour--ok strong { color: #1f7a36; }
.exo-retour--ko strong { color: #b4234a; }
.exo-retour--info { color: var(--slate-600); }
.exo-expl { margin-top: 6px; font-size: 15px; color: var(--slate-600); }
.exo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.exo-actions--centre { justify-content: center; }

/* ---------- Exercices : résultat ---------- */
.exo-resultat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(28px, 5vw, 56px); text-align: center; background: var(--paper); border: 1px dashed var(--zinc-300); border-radius: var(--radius-xl); }
.exo-resultat__mascot { width: 110px; margin-bottom: 6px; }
.exo-resultat__score { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 10vw, 96px); line-height: 1; letter-spacing: -.02em; color: var(--ink-black); }
.exo-resultat__titre { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; color: var(--ink-black); }
.exo-resultat__texte { max-width: 52ch; color: var(--slate-500); }
.exo-revoir { margin-top: 36px; }
.exo-revoir__titre { margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink-black); }
.exo-revoir__item { margin-bottom: 12px; padding: 18px 22px; background: var(--white); border: 1px solid var(--zinc-200); border-left: 4px solid var(--c-rose); border-radius: var(--radius); }
.exo-revoir__q { font-size: 17px; font-weight: 500; color: var(--ink-black); }
.exo-revoir__rep { margin-top: 6px; font-size: 15px; color: var(--slate-600); }
.exo-revoir__rep s { color: #b4234a; }
.exo-revoir__rep b { color: #1f7a36; }


/* ---------- Les 4 opérations : choix de l'opération et affichage du calcul ---------- */
.exo-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.exo-op {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px 18px;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-spring);
}
.exo-op__signe {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-rose) 32%, #fff);
  font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1; color: var(--ink-black);
}
.exo-op:nth-child(even) .exo-op__signe { background: color-mix(in srgb, var(--c-vert) 34%, #fff); }
.exo-op__nom { font-size: 16px; font-weight: 600; color: var(--ink-black); transition: color .3s; }
.exo-op:hover { border-color: var(--ink); transform: translateY(-3px) rotate(-1deg); }
.exo-op:nth-child(even):hover { transform: translateY(-3px) rotate(1deg); }
.exo-op[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.exo-op[aria-pressed="true"] .exo-op__nom { color: #fff; }
.exo-aide { margin-top: 12px; font-size: 13.5px; color: var(--zinc-500); }
.exo-calc { display: inline-block; font-family: var(--font-sans); font-size: 1.4em; font-weight: 700; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; } /* chiffres bien lisibles, sans fioritures */
.exo-consigne { display: block; margin-top: 10px; font: 500 16px/1.5 var(--font-sans); color: var(--slate-600); }
.exo-duo { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.exo-duo label { display: flex; flex-direction: column; gap: 6px; }
.exo-duo label span { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.exo-duo .exo-input { width: 170px; }

/* ---------- Compréhension orale : lecteur du texte ---------- */
.oral { margin-bottom: 20px; padding: 18px 22px 22px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.oral__titre { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 13px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-600); }
.oral__casque { font-size: 18px; letter-spacing: 0; }
.oral__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.oral__play { min-width: 220px; justify-content: center; gap: 10px; }
.oral__play .icon { width: 18px; height: 18px; }
.oral__play:disabled { opacity: .45; pointer-events: none; }
.oral__ondes { display: flex; align-items: center; gap: 4px; height: 28px; opacity: .25; transition: opacity .3s; }
.oral__ondes i { display: block; width: 5px; height: 8px; border-radius: 3px; background: var(--ink); }
.oral[data-etat="lecture"] .oral__ondes { opacity: 1; }
.oral[data-etat="lecture"] .oral__ondes i { animation: onde .9s ease-in-out infinite; }
.oral__ondes i:nth-child(2) { animation-delay: .12s; }
.oral__ondes i:nth-child(3) { animation-delay: .24s; }
.oral__ondes i:nth-child(4) { animation-delay: .36s; }
.oral__ondes i:nth-child(5) { animation-delay: .48s; }
@keyframes onde { 0%, 100% { height: 8px; } 50% { height: 26px; } }
.oral__etat { flex: 1 1 240px; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--slate-600); }
.oral__outils { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.oral .filter[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.oral__texte { margin-top: 14px; }
.oral__transcript { padding: 16px 20px; background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius); font-size: 16px; line-height: 1.7; color: var(--slate-700); }
.oral__transcript p + p { margin-top: 8px; }
.oral__transcript b { color: var(--ink-black); }
.exo-lire {
  display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 20px; padding: 8px 18px;
  background: var(--white); border: 1px solid var(--zinc-300); border-radius: 999px;
  font: 600 15px/1.2 var(--font-sans); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.exo-lire .icon { width: 18px; height: 18px; }
.exo-lire:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.exo-revoir .oral__transcript { margin-bottom: 4px; }

@media (max-width: 900px) {
  .edu-cycles { grid-template-columns: 1fr; }
  .exo-ops { grid-template-columns: repeat(2, 1fr); }
  .prog-annee__corps { grid-template-columns: 1fr; }
  .prog-matiere + .prog-matiere { border-left: 0; border-top: 1px solid var(--zinc-200); }
}
@media (max-width: 860px) {
  /* Accueil : les trois boutons s'empilent, icône à gauche et texte à droite */
  .accueil-choix { grid-template-columns: 1fr; }
  .accueil-bouton { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; min-height: 120px; padding: 20px 18px; }
  .accueil-bouton__icone { flex: none; width: 84px; text-align: center; white-space: nowrap; letter-spacing: 0; font-size: 40px; }
  .accueil-bouton__texte { flex: 1; min-width: 0; }
  .accueil-bouton__titre { font-size: 28px; }
  .accueil-bouton__sous { font-size: 17px; }
  .accueil-bouton__fleche { display: none; } /* toute la tuile se touche : la flèche ne ferait que prendre la place du texte */
}
@media (max-width: 600px) {
  .page-hero--accueil .page-hero__mascot { width: 84px; }
  .page-hero--accueil .page-hero__mascot--l { left: -14px; bottom: auto; top: calc(var(--nav-h) + 14px); width: 70px; }
  .page-hero--accueil .page-hero__mascot--r { right: -10px; top: calc(var(--nav-h) + 22px); }
  .exo-cycle { flex-direction: column; align-items: flex-start; gap: 6px; }
  .exo-etape .exo-cycle { align-items: stretch; }
  .exo-etape .exo-cycle__nom { width: auto; }
  .annees { grid-template-columns: repeat(4, 1fr); gap: 8px; } /* un cycle par rangée : 4 + 4 + 3 années */
  .annee-tuile { min-height: 92px; padding: 10px 2px; }
  .annee-tuile__num { font-size: 34px; }
  .annee-tuile__age { font-size: 13px; }
  .exo-activites { grid-template-columns: repeat(2, 1fr); }
  .exo-activite { min-height: 140px; padding-inline: 8px; }
  .page-hero__inner > .retour-accueil { margin-bottom: 0; }
  .page-hero--compact .page-hero__mascot--l { display: none; } /* sur téléphone, la mascotte de gauche passerait derrière le bouton « Accueil » */
  .prog-annee__tete, .prog-matiere, .prog-annee__pied { padding-inline: 20px; }
  .exo-actions .btn { width: 100%; justify-content: center; }
  .exo-go .btn { max-width: 100%; white-space: normal; text-align: center; } /* « Écouter un texte et répondre aux questions » passe à la ligne sur un petit écran */
  .oral__play { width: 100%; }
  .oral__ondes { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .accueil-bouton, .annee-tuile, .retour-accueil .icon, .accueil-bouton__fleche { transition: none; }
  .accueil-bouton:hover, .annee-tuile:hover { translate: none; rotate: none; }
  .accueil-choix > li:nth-child(even) .accueil-bouton:hover, .annees > li:nth-child(even) .annee-tuile:hover { rotate: none; }
  .accueil-bouton:hover .accueil-bouton__fleche, .retour-accueil:hover .icon { transform: none; }
  .exo-option span, .exo-barre span, .exo-op { transition: none; }
  .exo-op:hover, .exo-op:nth-child(even):hover { transform: none; }
  .oral[data-etat="lecture"] .oral__ondes i { animation: none; height: 18px; }
}

/* ==========================================================================
   Concours de calcul (concours.html), classement (classement.html)
   et gestion par le comité (comite/)
   ========================================================================== */
.co { max-width: 860px; margin-inline: auto; margin-top: 8px; }
.co-etat { padding: 24px; text-align: center; color: var(--slate-600); background: var(--paper); border: 1.5px dashed var(--zinc-300); border-radius: var(--radius-xl); }
.co-etat strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 24px; color: var(--ink-black); }
.co-etat .btn { margin-top: 16px; }
.co-titre { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; color: var(--ink-black); }

/* Inscription */
.co-form { max-width: none; }
.co-legende { margin: 4px 0 10px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--ink-black); }
.co-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co-cat { position: relative; display: block; cursor: pointer; }
.co-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-cat > span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 14px 12px;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius);
  transition: border-color .25s, background-color .25s, transform .4s var(--ease-spring);
}
.co-cat b { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--ink-black); }
.co-cat small { font-size: 13px; line-height: 1.4; color: var(--slate-600); }
.co-cat:hover > span { border-color: var(--ink); transform: translateY(-2px); }
.co-cat input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.co-cat input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.co-cats.is-invalid .co-cat > span { border-color: var(--c-rose); }

/* Le joueur reconnu */
.co-joueur { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl); }
.co-joueur__qui { display: flex; align-items: center; gap: 18px; }
.co-joueur__qui .mascot { width: 76px; flex: none; }
.co-joueur__nom { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: var(--ink-black); overflow-wrap: anywhere; }
.co-joueur__cat { margin: 2px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zinc-500); }
.co-joueur__score { margin: 0; padding: 12px 16px; background: var(--paper); border-radius: var(--radius); font-size: 16px; color: var(--slate-700); }
.co-joueur__score b { color: var(--ink-black); }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.co-lien {
  justify-self: start; padding: 4px 10px; border-radius: 8px;
  font: 600 14.5px/1.3 var(--font-sans); color: var(--slate-600);
  text-decoration: underline; text-underline-offset: 3px; transition: background-color .25s, color .25s;
}
.co-lien:hover { color: var(--ink); }
.co-lien.is-confirm { background: color-mix(in srgb, var(--c-rose) 25%, #fff); color: var(--ink-black); text-decoration: none; }
.co-message { margin: 0 0 16px; padding: 12px 16px; background: color-mix(in srgb, var(--c-rose) 16%, #fff); border-radius: var(--radius); font-size: 15px; color: var(--ink-black); }

/* La partie */
.co-chrono { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-black); }
.co-carte .exo-enonce { margin-bottom: 20px; }
.co-carte .exo-calc { font-size: 1.6em; }
.co-carte .exo-input { font-size: 28px; text-align: center; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.co-aide { margin-top: 14px; font-size: 13.5px; text-align: center; color: var(--zinc-500); }
.co-envoi { text-align: center; }
.co-envoi .mascot { width: 100px; margin: 0 auto 12px; }
.co-record { display: inline-block; margin: 0 0 4px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-vert) 34%, #fff); font: 700 12px/1.5 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-black); }
.co-resultat__rang { font-size: 18px; font-weight: 600; color: var(--ink-black); }

/* Classement */
.co-onglets { justify-content: center; margin-bottom: 20px; }
.co-info { max-width: 62ch; margin: 0 auto 28px; text-align: center; font-size: 15px; color: var(--slate-600); }
.co-moi { max-width: 760px; margin: 0 auto 20px; padding: 14px 18px; background: color-mix(in srgb, var(--c-vert) 14%, #fff); border: 1px solid var(--c-vert); border-radius: var(--radius); font-size: 16px; text-align: center; color: var(--ink-black); }
.co-tablewrap { max-width: 860px; margin-inline: auto; overflow-x: auto; background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.co-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.co-table th { padding: 12px 16px; text-align: left; font: 700 12px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); background: var(--paper); border-bottom: 1px solid var(--zinc-200); }
.co-table td { padding: 12px 16px; border-bottom: 1px solid var(--zinc-200); color: var(--slate-700); }
.co-table tr:last-child td { border-bottom: 0; }
.co-table .co-rang { width: 72px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-black); white-space: nowrap; }
.co-table .co-nom { font-weight: 600; color: var(--ink-black); overflow-wrap: anywhere; }
.co-table .co-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-table tr.is-moi td { background: color-mix(in srgb, var(--c-vert) 16%, #fff); }
.co-table tbody tr:nth-child(-n+3) .co-rang { font-size: 24px; }
.co-vide { padding: 36px 20px; text-align: center; color: var(--slate-600); }
.co-maj { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--zinc-500); }

/* Gestion par le comité */
.cm-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.cm-etat { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--ink-black); }
.cm-point { width: 14px; height: 14px; border-radius: 50%; background: var(--zinc-300); }
.cm-point.is-ouvert { background: var(--c-vert); }
.cm-point.is-ferme { background: var(--c-rose); }
.cm-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-bouton { padding: 9px 14px; background: var(--white); border: 1px solid var(--zinc-300); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s; }
.cm-bouton:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cm-bouton--danger.is-confirm { background: color-mix(in srgb, var(--c-rose) 35%, #fff); border-color: var(--c-rose); color: var(--ink-black); }
.cm-groupe { margin-bottom: 36px; }
.cm-groupe h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink-black); }
.cm-groupe h2 small { font: 600 13px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--zinc-500); }
.cm-table .cm-supprimer { padding: 5px 10px; border: 1px solid var(--zinc-300); border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--slate-700); transition: background-color .25s, color .25s, border-color .25s; }
.cm-table .cm-supprimer:hover { background: var(--c-rose); border-color: var(--c-rose); color: var(--ink-black); }
.cm-live { margin: 0 0 18px; font-size: 13.5px; color: var(--zinc-500); }
.cm-live.is-off { color: #b4234a; }
.cm-note { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--c-vert) 18%, #fff); font-size: 15px; color: var(--ink-black); }
.cm-onglets { margin-bottom: 18px; }
.filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cm-diag { margin-top: 28px; font-size: 13px; color: var(--slate-600); }
.cm-diag pre { overflow-x: auto; padding: 12px 14px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius); font-size: 12px; }

@media (max-width: 900px) {
  .co-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .co-table th, .co-table td { padding: 10px 10px; }
  .co-table .co-date { display: none; }
  .co-joueur__qui .mascot { width: 60px; }
  .co-actions .btn { width: 100%; justify-content: center; }
  .cm-table .cm-colonne-date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .co-cat > span { transition: none; }
  .co-cat:hover > span { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Pop Corn et marque-page (popcorn.html) et sa relecture par le comité
   ========================================================================== */
.pm-hero-cta { margin: 6px 0 0; }
.pm-avis { min-height: 64px; padding: 18px 34px; font-size: 20px; font-weight: 600; }
.pm-avis .icon { width: 24px; height: 24px; }

/* Deux grands boutons pour filtrer : films ou livres */
.pm-genres { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 14px; margin-bottom: 22px; }
.pm-genre {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; padding: 12px 18px;
  background: var(--white); border: 2px solid var(--ink-black); border-radius: var(--radius-xl);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; color: var(--ink-black);
  transition: background-color .3s, color .3s, translate .45s var(--ease-spring), box-shadow .3s;
}
.pm-genre__icone { font-size: 1.3em; line-height: 1; }
.pm-genre:hover { translate: 0 -3px; box-shadow: 4px 5px 0 var(--ink-black); }
.pm-genre[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pm-genre:focus-visible { border-radius: var(--radius-xl); outline: 4px solid var(--ink); outline-offset: 4px; }
.pm-tout { padding: 4px 12px; min-height: 48px; border-radius: 8px; font: 600 14.5px/1.3 var(--font-sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pm-tout:hover { background: var(--zinc-100); }

.pm-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.pm-outils .filters { margin-bottom: 0; }
.pm-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pm-age { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate-600); }
.pm-age select, .pm-champ-recherche {
  padding: 9px 12px; background: var(--white); border: 1px solid var(--zinc-300); border-radius: var(--radius);
  font: 500 14px/1.3 var(--font-sans); color: var(--ink); transition: border-color .25s;
}
.pm-age select:hover, .pm-champ-recherche:hover { border-color: var(--zinc-500); }
.pm-age select:focus, .pm-champ-recherche:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .08); }
.pm-champ-recherche { min-width: 210px; }
.pm-compte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; margin: 0 0 12px; font-size: 15px; color: var(--slate-600); }

.pm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pm-grille > li { display: flex; }
.pm-carte {
  display: flex; flex-direction: column; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); overflow: hidden;
  transition: border-color .3s, translate .5s var(--ease-spring), rotate .5s var(--ease-spring);
}
.pm-carte:hover { border-color: var(--ink); translate: 0 -5px; rotate: -.8deg; }
.pm-grille > li:nth-child(even) .pm-carte:hover { rotate: .8deg; }
.pm-carte:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pm-carte__couv { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--zinc-200); }
.pm-carte__couv img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pm-carte:hover .pm-carte__couv img { transform: scale(1.05); }
.pm-couv-vide {
  display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; line-height: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-rose) 30%, #fff), color-mix(in srgb, var(--c-vert) 30%, #fff));
}
.pm-carte__corps { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.pm-carte__type { font: 700 11px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--zinc-500); }
.pm-carte__titre {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; color: var(--ink-black);
}
.pm-carte__meta { margin-top: auto; font-size: 13px; line-height: 1.4; color: var(--slate-600); }
.pm-etoiles { display: inline-flex; gap: 1px; font-size: 17px; line-height: 1; }
.pm-etoiles .plein { color: var(--c-rose-fonce); }
.pm-etoiles .vide { color: var(--zinc-500); }

/* Fenêtres (fiche, proposition) */
.pm-bloque { overflow: hidden; }
.pm-dialog {
  width: min(940px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 0; border-radius: var(--radius-xl); background: var(--white); color: var(--ink-black); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.pm-dialog--form { width: min(760px, calc(100vw - 24px)); }
.pm-dialog::backdrop { background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pm-dialog[open] { animation: pm-ouvre .35s var(--ease-out); }
@keyframes pm-ouvre { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.pm-dialog__haut { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 10px 12px 0; pointer-events: none; }
.pm-fermer {
  pointer-events: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--zinc-300); box-shadow: var(--shadow-subtle);
  font-size: 24px; line-height: 1; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s;
}
.pm-fermer:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pm-fiche { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(20px, 4vw, 40px); padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); margin-top: -30px; }
.pm-fiche__couv { align-self: start; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); background: var(--paper); }
.pm-fiche__couv img { width: 100%; height: 100%; object-fit: cover; }
.pm-fiche__texte { min-width: 0; padding-top: 30px; }
.pm-fiche__type { margin: 0 0 6px; font: 700 12px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); }
.pm-fiche__titre { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; color: var(--ink-black); overflow-wrap: anywhere; }
.pm-fiche__auteur { margin: 6px 0 0; font-size: 17px; color: var(--slate-600); }
.pm-fiche__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 16px 0 6px; }
.pm-fiche__tags .pm-etoiles { font-size: 22px; }
.pm-pastille { padding: 4px 12px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--slate-700); }
.pm-fiche__section { margin-top: 18px; }
.pm-fiche__section h3 { margin: 0 0 4px; font: 700 13px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-black); }
.pm-fiche__section p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--slate-700); white-space: pre-line; overflow-wrap: anywhere; }
.pm-fiche__qui { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--zinc-200); font-size: 14px; color: var(--zinc-500); }

/* Formulaire de proposition */
.pm-form { border: 0; border-radius: 0; padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); margin-top: -30px; }
.pm-form__titre { margin: 30px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); line-height: 1.05; color: var(--ink-black); }
.pm-form .chips legend { font-weight: 600; color: var(--ink-black); }
.pm-note { margin: 0; padding: 0; border: 0; min-width: 0; }
.pm-note legend { margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink-black); }
.pm-etoiles-saisie { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.pm-etoiles-saisie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-etoiles-saisie label { display: grid; place-items: center; min-width: 48px; min-height: 48px; font-size: 0; color: var(--zinc-500); cursor: pointer; transition: color .2s, transform .35s var(--ease-spring); }
.pm-etoiles-saisie label::before { content: "☆"; font-size: 38px; line-height: 1; } /* étoile en contour : pas encore choisie */
.pm-etoiles-saisie label:hover { transform: scale(1.15) rotate(-6deg); }
.pm-etoiles-saisie label:hover, .pm-etoiles-saisie label:hover ~ label, .pm-etoiles-saisie input:checked ~ label { color: var(--c-rose-fonce); }
.pm-etoiles-saisie label:hover::before, .pm-etoiles-saisie label:hover ~ label::before, .pm-etoiles-saisie input:checked ~ label::before { content: "★"; } /* étoile pleine : jusqu'à la note choisie */
.pm-etoiles-saisie input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.pm-note.is-invalid legend { color: #b4234a; }
.pm-couverture__titre { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-black); }
.pm-couverture__zone { display: flex; align-items: flex-start; gap: 18px; }
.pm-couverture__apercu { flex: none; display: grid; place-items: center; width: 110px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper); border: 1.5px dashed var(--zinc-300); border-radius: var(--radius); font-size: 32px; }
.pm-couverture__apercu img { width: 100%; height: 100%; object-fit: cover; }
.pm-couverture__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pm-couverture__actions .btn { cursor: pointer; }
.pm-fichier__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-fichier__input:focus-visible + .btn { outline: 2px solid var(--ink); outline-offset: 3px; }
.pm-form .chips.is-invalid .chip span { border-color: var(--c-rose); }
.pm-merci { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 clamp(20px, 4vw, 40px) clamp(28px, 4vw, 44px); margin-top: -30px; text-align: center; }
.pm-merci .mascot { width: 100px; margin-top: 30px; }
.pm-merci .pm-form__titre { margin-top: 0; }

/* Relecture par le comité */
.pm-cm-liste { display: grid; gap: 18px; }
.pm-cm-fiche { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 20px; background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.pm-cm-fiche.est-attente { border-color: var(--c-rose); background: color-mix(in srgb, var(--c-rose) 5%, #fff); }
.pm-cm-couv { aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius); }
.pm-cm-couv img { width: 100%; height: 100%; object-fit: cover; }
.pm-cm-texte { min-width: 0; }
.pm-cm-texte h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--ink-black); overflow-wrap: anywhere; }
.pm-cm-meta { margin: 4px 0 8px; font-size: 13.5px; color: var(--slate-600); }
.pm-cm-texte p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--slate-700); white-space: pre-line; overflow-wrap: anywhere; }
.pm-cm-texte p b { color: var(--ink-black); }
.pm-cm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-cm-resume { margin-top: 14px; }
.pm-cm-resume__titre { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink-black); }
.pm-cm-resume__champ {
  display: block; width: 100%; min-height: 104px; padding: 10px 12px; background: var(--white); border: 1px solid var(--zinc-300); border-radius: var(--radius);
  font: 400 15px/1.55 var(--font-sans); color: var(--ink); resize: vertical; transition: border-color .25s;
}
.pm-cm-resume__champ:hover { border-color: var(--zinc-500); }
.pm-cm-resume__champ:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .08); }

@media (max-width: 760px) {
  .pm-fiche { grid-template-columns: 1fr; }
  .pm-fiche__couv { max-width: 240px; }
  .pm-grille { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pm-carte__titre { font-size: 17px; }
  .pm-carte__corps { padding: 12px 12px 14px; }
  .pm-champ-recherche { min-width: 0; width: 100%; }
  .pm-recherche { width: 100%; }
  .pm-cm-fiche { grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; }
}
@media (max-width: 640px) {
  .pm-genres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pm-genres { gap: 10px; }
  .pm-genre { flex-direction: column; gap: 4px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-carte, .pm-carte__couv img, .pm-genre { transition: none; }
  .pm-carte:hover, .pm-genre:hover { translate: none; rotate: none; box-shadow: none; }
  .pm-dialog[open] { animation: none; }
}

/* ==========================================================================
   Feuilles d'exercices à imprimer (feuilles.html)
   ========================================================================== */
.btn:disabled { opacity: .45; pointer-events: none; }
.write-cta + .write-cta { margin-top: 24px; }
.fe { max-width: 980px; margin-inline: auto; margin-top: 8px; }
.fe-bloc { margin: 0 0 40px; }
.fe-bloc .exo-groupe__titre { margin-bottom: 16px; }
.fe-annees { margin-bottom: 0; }
.fe-sous-titre { margin: 22px 0 12px; font: 700 15px/1.4 var(--font-sans); letter-spacing: .02em; color: var(--ink-black); }
.fe-reglages { display: flex; flex-wrap: wrap; gap: 4px 56px; }
.fe-reglage .fe-sous-titre { margin-top: 0; }
.fe-reglage .filters { margin-bottom: 0; }

.fe-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fe-theme {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 18px; text-align: left;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-spring);
}
.fe-theme__nom { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ink-black); transition: color .3s; }
.fe-theme__aide { font-size: 14.5px; line-height: 1.45; color: var(--slate-600); transition: color .3s; }
.fe-theme:hover { border-color: var(--ink); transform: translateY(-3px); }
.fe-theme[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.fe-theme[aria-pressed="true"] .fe-theme__nom { color: #fff; }
.fe-theme[aria-pressed="true"] .fe-theme__aide { color: var(--zinc-300); }
.fe-theme:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-xl); }
.fe-ops { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--zinc-200); }
.fe-ops .exo-ops { margin-bottom: 4px; }

.fe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: -8px 0 44px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.fe-statut { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--slate-600); }

/* L'aperçu : une feuille de papier */
.fe-bloc--apercu .exo-aide { margin: -6px 0 18px; font-size: 15px; color: var(--slate-600); }
.fe-feuille {
  max-width: 820px; margin-inline: auto; padding: clamp(20px, 4vw, 44px); background: var(--white);
  border: 1px solid var(--zinc-300); border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .09);
}
.fe-feuille__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; padding-bottom: 14px; border-bottom: 3px solid var(--c-rose); }
.fe-feuille__titre { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; color: var(--ink-black); }
.fe-feuille__sous { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--slate-600); }
.fe-feuille__champs { display: grid; gap: 10px; min-width: min(100%, 250px); font-size: 14px; color: var(--ink); }
.fe-feuille__champs .fe-ligne { width: 9em; }
.fe-feuille__consigne { margin: 12px 0 22px; font-size: 14.5px; color: var(--slate-600); }
.fe-ligne { display: inline-block; width: 7em; height: 1.1em; border-bottom: 1.5px solid var(--slate-500); vertical-align: baseline; }
.fe-blanc { display: inline-block; width: 3.6em; height: 1.05em; margin: 0 .1em; border-bottom: 2px solid var(--ink-black); vertical-align: baseline; }
.fe-liste { margin: 0; padding: 0 0 0 1.7em; font-size: 16px; line-height: 1.55; color: var(--ink-black); }
.fe-liste--deux { columns: 2; column-gap: 44px; }
.fe-liste--grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; padding-left: 1.7em; }
.fe-liste::marker, .fe-ex::marker { font-weight: 700; }
.fe-ex { break-inside: avoid; margin: 0 0 20px; padding-left: 4px; }
.fe-ex__q .exo-calc { font-size: 1.15em; letter-spacing: .01em; }
.fe-ex__q .exo-big { margin-top: 2px; font-size: 1.5em; letter-spacing: .06em; }
.fe-ex__q .exo-consigne { margin-top: 4px; font-size: 14px; }
.fe-rep { margin: 8px 0 0; font-size: 14px; color: var(--slate-600); }
.fe-rep .fe-ligne { width: 8em; }
.fe-choix { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.fe-choix li { display: flex; align-items: center; gap: 8px; }
.fe-case { flex: none; width: 13px; height: 13px; border: 1.5px solid var(--ink-black); }
.fe-corrige { max-width: 820px; margin: 22px auto 0; padding: 4px 20px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.fe-corrige > summary { display: flex; align-items: center; min-height: 48px; font-weight: 600; cursor: pointer; color: var(--ink-black); }
.fe-corrige__liste { margin: 0 0 16px; padding-left: 1.7em; columns: 2; column-gap: 36px; font-size: 15px; line-height: 1.5; color: var(--slate-700); }
.fe-corrige__liste li { break-inside: avoid; margin-bottom: 6px; }
.fe-corrige__expl { color: var(--slate-600); font-size: 14px; }

@media (max-width: 720px) {
  .fe-liste--deux { columns: 1; }
  .fe-liste--grille { grid-template-columns: repeat(2, 1fr); }
  .fe-corrige__liste { columns: 1; }
  .fe-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fe-theme { transition: none; }
  .fe-theme:hover { transform: none; }
}

/* ==========================================================================
   Carnet de progression (carnet.html), ligne « carnet » du résultat des exercices,
   petit mot sur l'accueil, et gestion par le comité (comite/carnets.html)
   ========================================================================== */
.ca { max-width: 860px; margin-inline: auto; margin-top: 8px; }
.ca-vue[hidden] { display: none; }
.ca-intro { max-width: 62ch; margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: var(--slate-600); }
.ca-intro b { color: var(--ink-black); }
.ca-visite { margin: 0 0 22px; padding: 12px 16px; background: color-mix(in srgb, var(--c-vert) 18%, #fff); border-radius: var(--radius); font-size: 16px; font-weight: 600; color: var(--ink-black); }
.ca-choix { display: flex; flex-wrap: wrap; gap: 14px; }
.ca-gros { min-height: 60px; font-size: 18px; }
.ca-form { max-width: none; }
.ca-form .form__hint a { font-weight: 600; }

/* Le choix de la mascotte */
.ca-mascottes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ca-mascotte { position: relative; display: block; cursor: pointer; }
.ca-mascotte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ca-mascotte > span {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 14px 8px 12px;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius);
  transition: border-color .25s, background-color .25s, transform .4s var(--ease-spring);
}
.ca-mascotte .mascot { width: auto; height: 76px; flex: none; } /* même hauteur pour les quatre : les noms restent alignés (la largeur suit la forme) */
.ca-mascotte b { font-size: 15px; font-weight: 600; color: var(--ink-black); }
.ca-mascotte:hover > span { border-color: var(--ink); transform: translateY(-2px); }
.ca-mascotte input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.ca-mascotte input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Le code secret : quatre mots, en gros */
.ca-code__mots {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; margin: 8px 0 26px; padding: clamp(22px, 4vw, 36px);
  background: var(--paper); border: 2px dashed var(--ink-black); border-radius: var(--radius-xl); text-align: center;
}
.ca-code__mot { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 6vw, 56px); line-height: 1.15; letter-spacing: -.01em; color: var(--ink-black); }
.ca-code__tiret { font-size: clamp(24px, 4vw, 40px); color: var(--zinc-500); }
.ca-code__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
[data-vue="code"] .check { margin: 10px 0 18px; }

/* Les étoiles : 1 dès 50 %, 2 dès 80 %, 3 sans faute */
.ca-etoiles { display: inline-flex; gap: 1px; font-size: 20px; line-height: 1; letter-spacing: 0; white-space: nowrap; vertical-align: -2px; }
.ca-etoiles .plein { color: var(--c-rose-fonce); }
.ca-etoiles .vide { color: var(--zinc-500); }

/* Mon carnet */
.ca-entete { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ca-entete__mascotte { flex: none; width: 84px; }
.ca-entete__qui { min-width: 0; }
.ca-entete__qui .co-titre { margin: 0; overflow-wrap: anywhere; }
.ca-entete__qui .co-titre:focus { outline: none; }
.ca-entete__annee { margin: 4px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zinc-500); }
.ca-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ca-chiffres li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.ca-chiffres b { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 44px); line-height: 1; color: var(--ink-black); }
.ca-chiffres span { font-size: 14px; line-height: 1.3; color: var(--slate-600); }
.ca-statut { min-height: 1.5em; margin: 10px 0 26px; font-size: 14px; color: var(--slate-600); }
.ca-annees { margin-bottom: 22px; }
.ca-activite { margin: 0 0 30px; }
.ca-activite__titre { margin: 0 0 12px; font: 700 15px/1.4 var(--font-sans); letter-spacing: .02em; color: var(--ink-black); }
.ca-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ca-theme {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 48px; padding: 14px 16px 16px;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-spring);
}
.ca-theme.a-joue { background: color-mix(in srgb, var(--c-rose) 8%, #fff); border-color: color-mix(in srgb, var(--c-rose) 60%, var(--zinc-300)); }
.ca-theme__nom { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; color: var(--ink-black); }
.ca-theme__info { font-size: 13.5px; line-height: 1.4; color: var(--slate-600); }
.ca-theme:hover { border-color: var(--ink); transform: translateY(-3px); }
.ca-theme:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-xl); }
.ca-op { margin-bottom: 10px; background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl); }
.ca-op[open] { border-color: var(--ink); }
.ca-op__resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 64px; padding: 8px 16px; cursor: pointer; list-style: none; }
.ca-op__resume::-webkit-details-marker { display: none; }
.ca-op__resume::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 600; line-height: 1; color: var(--slate-600); }
.ca-op[open] > .ca-op__resume::after { content: "–"; }
.ca-op__resume:focus-visible, .ca-reglages > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: var(--radius-xl); }
.ca-op__signe {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-rose) 32%, #fff); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--ink-black);
}
.ca-op:nth-of-type(even) .ca-op__signe { background: color-mix(in srgb, var(--c-vert) 34%, #fff); }
.ca-op__nom { font-size: 17px; font-weight: 600; color: var(--ink-black); }
.ca-op__nb { font-size: 14px; color: var(--slate-600); }
.ca-op > .ca-themes { padding: 4px 16px 18px; }
.ca-legende { margin: 4px 0 30px; font-size: 14px; color: var(--slate-600); }
.ca-reglages { background: var(--paper); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.ca-reglages > summary { display: flex; align-items: center; min-height: 56px; padding: 0 22px; font-weight: 700; cursor: pointer; color: var(--ink-black); }
.ca-reglages__corps { display: grid; gap: 24px; padding: 4px 22px 24px; }
.ca-reglage .fe-sous-titre { margin-top: 0; }
.ca-reglage .filters { margin-bottom: 0; }
.ca-reglage--actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ca-reglage--actions .form__hint { flex: 1 1 100%; margin: 4px 0 0; }
.ca-reglage--actions .btn.is-confirm { background: color-mix(in srgb, var(--c-rose) 35%, #fff); border-color: var(--c-rose); color: var(--ink-black); }

/* Dans le résultat d'une série : « série ajoutée à ton carnet » */
.exo-carnet {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; max-width: 640px; margin: 10px 0 4px; padding: 14px 18px;
  background: var(--white); border: 1.5px solid var(--zinc-300); border-radius: var(--radius-xl); text-align: left;
}
.exo-carnet__texte { flex: 1 1 280px; margin: 0; font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.exo-carnet__texte strong { display: block; color: var(--ink-black); }

/* Accueil : le petit mot du carnet */
.accueil-carnet { display: flex; justify-content: center; margin-top: clamp(24px, 3.4vw, 36px); }
.accueil-carnet__lien {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 14px;
  background: var(--white); border: 2px solid var(--ink-black); border-radius: 999px;
  font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ink-black);
  transition: translate .45s var(--ease-spring), box-shadow .3s, background-color .25s, color .25s;
}
.accueil-carnet__lien:hover { translate: 0 -3px; box-shadow: 4px 5px 0 var(--ink-black); }
.accueil-carnet__lien:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.accueil-carnet__lien .mascot { flex: none; width: 40px; }
.accueil-carnet__lien .icon { flex: none; width: 22px; height: 22px; stroke-width: 2.25; transition: transform .45s var(--ease-spring); }
.accueil-carnet__lien:hover .icon { transform: translateX(4px); }

/* Espace comité : la liste des carnets */
.ca-cm-outils { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ca-cm-recherche { flex: 1 1 260px; max-width: 420px; }
.ca-cm-recherche input { width: 100%; }
.ca-cm-liste { display: grid; gap: 12px; }
.ca-cm-ligne { padding: 16px 20px; background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-xl); }
.ca-cm-ligne.est-bloque { border-color: var(--c-rose); background: color-mix(in srgb, var(--c-rose) 5%, #fff); }
.ca-cm-ligne__nom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ca-cm-ligne__nom strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ink-black); overflow-wrap: anywhere; }
.ca-cm-ligne__nom span { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.ca-cm-ligne__infos { margin: 6px 0 0; font-size: 14px; color: var(--slate-600); }
.ca-cm-ligne .pm-cm-actions { margin-top: 12px; }
.ca-cm-code { display: grid; gap: 10px; justify-items: start; margin: 0 0 22px; padding: 18px 22px; background: color-mix(in srgb, var(--c-vert) 18%, #fff); border: 2px solid var(--ink-black); border-radius: var(--radius-xl); }
.ca-cm-code__titre { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-black); }
.ca-cm-code__code { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; color: var(--ink-black); overflow-wrap: anywhere; user-select: all; }

@media (max-width: 720px) {
  .ca-chiffres { grid-template-columns: repeat(2, 1fr); }
  .ca-mascottes { grid-template-columns: repeat(2, 1fr); }
  .ca-entete__mascotte { width: 64px; }
  .ca-choix .btn, .ca-code__actions .btn { flex: 1 1 100%; justify-content: center; }
  .ca-reglage--actions .btn { flex: 1 1 100%; justify-content: center; }
  .exo-carnet { flex-direction: column; align-items: stretch; text-align: center; }
  .exo-carnet__texte { flex: 0 0 auto; } /* en colonne, « 280px » deviendrait une hauteur */
  .exo-carnet .btn { justify-content: center; }
  .accueil-carnet__lien { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ca-theme, .ca-mascotte > span, .accueil-carnet__lien, .accueil-carnet__lien .icon { transition: none; }
  .ca-theme:hover, .ca-mascotte:hover > span { transform: none; }
  .accueil-carnet__lien:hover { translate: none; box-shadow: none; }
  .accueil-carnet__lien:hover .icon { transform: none; }
}
