/* ==========================================================================
   Page adaptée — feuille de style
   Le site parle la même langue que les documents qu'il produit : Verdana.
   ========================================================================== */

:root {
  --encre: #23407A;          /* bleu stylo-plume */
  --encre-fonce: #172B55;
  --texte: #1C2433;
  --texte-doux: #4F5B70;
  --papier: #FFFFFF;
  --fond-site: #EEF2F7;
  --seyes: #DDE8F5;          /* lignes du cahier */
  --seyes-fort: #A9C6E6;
  --marge: #E0625A;          /* marge rouge */
  --succes: #1F7A4D;
  --erreur: #B3261E;

  --creme: #FFF6DC;
  --vert: #E6F4EA;
  --rose: #FBE3EA;

  --c-voyelle: #CC0000;
  --c-consonne: #0033CC;
  --c-grapheme: #007A33;
  --c-grapheme2: #5E6B00;
  --c-muette: #8C8C8C;

  --police: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
  --rayon: 6px;
  --ligne: 32px;             /* un grand carreau Seyès */
}

*, *::before, *::after { box-sizing: border-box; }

/* un élément masqué le reste, même si son style lui donne un affichage */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond-site);
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: var(--encre); text-underline-offset: 3px; }
a:hover { color: var(--encre-fonce); }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  border-radius: 4px;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--encre);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--rayon);
  z-index: 10;
}
.evitement:focus { top: 1rem; color: #fff; }

/* ---------- En-tête ---------- */

.entete {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--encre);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}
.marque__logo { width: 36px; height: 36px; }

.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--texte-doux); font-size: .92rem; }
.nav a:hover { color: var(--encre); text-decoration: underline; }

/* ---------- Introduction ---------- */

main { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

.intro { padding: 2.5rem 0 2rem; max-width: 44rem; }
.intro h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  color: var(--encre-fonce);
  letter-spacing: -.02em;
}
.intro__texte {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--texte-doux);
  max-width: 38rem;
}

/* ---------- La feuille Seyès (l'outil) ---------- */

.feuille {
  position: relative;
  background-color: var(--papier);
  background-image:
    linear-gradient(90deg, transparent 63px, var(--marge) 63px, var(--marge) 65px, transparent 65px),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--ligne) - 1px), var(--seyes-fort) calc(var(--ligne) - 1px), var(--seyes-fort) var(--ligne)),
    repeating-linear-gradient(180deg, transparent 0, transparent 7px, var(--seyes) 7px, var(--seyes) 8px);
  border-radius: 4px;
  box-shadow: 0 1px 0 #d5dde8, 0 12px 32px -18px rgba(23, 43, 85, .35);
  padding: calc(var(--ligne) * 1.5) 2rem calc(var(--ligne) * 1.5) 96px;
}
/* trous de classeur */
.feuille::before {
  content: "";
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 18px;
  background: radial-gradient(circle at 9px 50%, var(--fond-site) 8px, transparent 9px) 0 0 / 18px 33.33% repeat-y;
  background-position: 0 16%;
}

.etape + .etape { margin-top: calc(var(--ligne) * 1.5); }

.etape__titre {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.15rem;
  color: var(--encre-fonce);
  margin-bottom: 1rem;
}
.etape__num {
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--encre);
  color: #fff;
  font-size: .95rem;
}

/* Réglages */
.reglages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: 1.5rem 2rem;
  align-items: start;
}
.reglages__options { display: grid; gap: 1.1rem; }

.choix { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix__titre {
  padding: 0 .35rem;
  margin-left: -.35rem;
  font-size: .9rem;
  font-weight: bold;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, .9);
  border-radius: 3px;
}
.choix__options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; }
.choix__toujours {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, .9);
  width: fit-content;
  padding: .1rem .35rem;
  margin-left: -.35rem;
  border-radius: 3px;
}

.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puce__texte {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.6rem;
  padding: .4rem 1rem;
  border: 2px solid #d9e1ec;
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  transition: border-color .15s, background-color .15s;
}
.puce--fond .puce__texte { padding-left: .4rem; }
.puce--carre .puce__texte { min-width: 3.2rem; justify-content: center; border-radius: 10px; padding: .4rem .7rem; }
.puce:hover .puce__texte { border-color: var(--seyes-fort); }
.puce input:checked + .puce__texte {
  border-color: var(--encre);
  background: #EEF3FB;
  box-shadow: inset 0 0 0 1px var(--encre);
  color: var(--encre-fonce);
  font-weight: bold;
}
.puce input:focus-visible + .puce__texte { outline: 3px solid var(--encre); outline-offset: 3px; }

.pastille {
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  flex: none;
}
.pastille--blanc { background: #fff; border-color: #c9d2de; }
.pastille--creme { background: var(--creme); }
.pastille--rose { background: var(--rose); }
.pastille--vert { background: var(--vert); }

.police--verdana { font-family: Verdana, Geneva, "DejaVu Sans", sans-serif; }
.police--calibri { font-family: Calibri, Carlito, "Segoe UI", sans-serif; font-size: 1.05rem; }
.police--tahoma { font-family: Tahoma, "DejaVu Sans Condensed", Geneva, sans-serif; }

.case {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: .45rem;
  font-size: .95rem;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  width: fit-content;
  padding: .1rem .35rem;
  margin-left: -.35rem;
  border-radius: 3px;
}
.case input { width: 1.15rem; height: 1.15rem; margin-top: .22rem; accent-color: var(--encre); flex: none; }
.case__aide { color: var(--texte-doux); }
.legende { white-space: nowrap; }

.c-voyelle { color: var(--c-voyelle); }
.c-consonne { color: var(--c-consonne); }
.c-grapheme { color: var(--c-grapheme); }
.c-grapheme2 { color: var(--c-grapheme2); }
.c-muette { color: var(--c-muette); }

/* Exemple en direct */
.exemple {
  margin: 0;
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px -18px rgba(23, 43, 85, .45);
}
.exemple__titre {
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: bold;
  color: var(--texte-doux);
  border-bottom: 1px solid #d9e1ec;
}
.exemple__page { padding: 1.25rem 1.25rem 1.5rem; transition: background-color .2s; }
.exemple__page .doc { max-width: none; }

/* Zone de dépôt */
.depot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--seyes-fort);
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.depot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.depot:hover { border-color: var(--encre); }
.depot:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 3px; }
.depot.est-survole {
  border-style: solid;
  border-color: var(--encre);
  background: #F2F6FC;
  transform: scale(1.01);
}
.depot__icone { width: 44px; height: 44px; color: var(--encre); margin-bottom: .25rem; }
.depot__principal { font-size: 1.15rem; font-weight: bold; color: var(--encre-fonce); }
.depot__secondaire { color: var(--texte-doux); }
.depot__lien { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.depot__formats { font-size: .85rem; color: var(--texte-doux); margin-top: .35rem; }

/* Résultats */
.etape__aide {
  font-size: .88rem;
  color: var(--texte-doux);
  margin: -.4rem 0 .9rem;
  background: rgba(255, 255, 255, .9);
  width: fit-content;
  padding: .1rem .35rem;
  border-radius: 3px;
}
.resultats { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.resultat {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-left: 5px solid var(--seyes-fort);
  border-radius: var(--rayon);
}
.resultat.est-pret { border-left-color: var(--succes); }
.resultat.est-erreur { border-left-color: var(--erreur); }

.resultat__type {
  width: 2.6rem; height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: bold;
  color: #fff;
  background: #2B579A;
}
.resultat__type--pdf { background: #B3261E; }
.resultat__type--texte { background: #5B4B8A; }
.resultat__type--ancien, .resultat__type--inconnu { background: #6B7280; }

.resultat__infos { min-width: 0; }
.resultat__nom:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.resultat__nom {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resultat__etat { font-size: .88rem; color: var(--texte-doux); }
.est-erreur .resultat__etat { color: var(--erreur); }
.est-pret .resultat__etat { color: var(--succes); }

.resultat__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

.chargement {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid var(--seyes-fort);
  border-top-color: var(--encre);
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: .4rem;
  animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

/* Boutons */
.bouton {
  font: inherit;
  font-size: .92rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-radius: var(--rayon);
  border: 2px solid var(--encre);
  background: var(--encre);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.bouton:hover { background: var(--encre-fonce); border-color: var(--encre-fonce); color: #fff; }
.bouton--discret { background: #fff; color: var(--encre); }
.bouton--discret:hover { background: #F2F6FC; color: var(--encre-fonce); }
.bouton--icone { padding: .35rem .75rem; font-size: 1.3rem; line-height: 1; background: transparent; color: var(--texte-doux); border-color: transparent; }
.bouton--icone:hover { background: #E4EAF2; color: var(--texte); border-color: transparent; }

/* ---------- Aperçu ---------- */

.apercu {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d9e1ec;
  overflow: hidden;
}
.apercu__barre {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid #d9e1ec;
}
.apercu__titre { font-size: 1.1rem; color: var(--encre-fonce); }
.apercu__fichier {
  flex: 1;
  min-width: 10rem;
  color: var(--texte-doux);
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apercu__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.apercu__pages {
  max-height: 42rem;
  overflow: auto;
  padding: 1.5rem;
  background: #DCE3EC;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
/* Document rendu dans l'exemple : les réglages arrivent en style en ligne */
.doc { color: #111; max-width: 46rem; margin: 0 auto; font-style: normal; white-space: pre-wrap; overflow-wrap: break-word; text-align: left; }
.doc p { margin: 0; }
.doc p:last-child { margin-bottom: 0 !important; }
.doc--blanc { background: #fff; }
.doc--creme { background: var(--creme); }
.doc--vert { background: var(--vert); }
.doc--rose { background: var(--rose); }

.apercu__feuille {
  display: block;
  width: min(100%, 40rem);
  height: auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 43, 85, .25);
}

.apercu__note {
  padding: .75rem 1.25rem;
  font-size: .85rem;
  color: var(--texte-doux);
  border-top: 1px solid #d9e1ec;
  background: #F7F9FC;
}
.apercu__note:empty { display: none; }

/* ---------- Code couleur ---------- */

.code, .confidentialite, .questions { margin-top: 4.5rem; }
.code h2, .questions h2, .confidentialite h2 { font-size: 1.5rem; color: var(--encre-fonce); }
.code__intro { margin-top: .75rem; color: var(--texte-doux); max-width: 42rem; }

.code__groupes {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.code__groupe {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  padding: 1.1rem 1.25rem 1.25rem;
}
.code__groupe--large { grid-column: 1 / -1; }
.code__groupe h3 { font-size: 1rem; }
.lettres {
  margin-top: .6rem;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: .06em;
  word-spacing: .45em;
  line-height: 1.7;
}
.lettres--graphemes { font-size: 1.2rem; }

.code__precisions {
  margin-top: 1.5rem;
  display: grid;
  gap: .75rem;
  max-width: 48rem;
  color: var(--texte-doux);
  font-size: .95rem;
}
.code__precisions strong { color: var(--texte); }

/* ---------- Confidentialité ---------- */

.confidentialite {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--encre-fonce);
  color: #E8EEF8;
  border-radius: 10px;
}
.confidentialite h2 { color: #fff; margin-bottom: .6rem; }
.confidentialite p { max-width: 44rem; }
.confidentialite__icone { flex: none; width: 48px; height: 48px; color: var(--seyes); }

/* ---------- Questions ---------- */

.questions h2 { margin-bottom: 1.25rem; }
.questions details {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: var(--rayon);
  margin-bottom: .6rem;
}
.questions summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--encre); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 1.25rem 1.1rem; color: var(--texte-doux); max-width: 46rem; }

/* ---------- Pied de page ---------- */

.pied {
  max-width: 64rem;
  margin: 5rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid #d3dbe6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .88rem;
  color: var(--texte-doux);
}

/* ---------- Pages secondaires ---------- */

.page-texte { max-width: 46rem; padding: 2rem 0 1rem; }
.page-texte h1 { font-size: 2rem; color: var(--encre-fonce); margin-bottom: 1.5rem; }
.page-texte h2 { font-size: 1.2rem; color: var(--encre-fonce); margin: 2rem 0 .6rem; }
.page-texte p { margin-bottom: .8rem; }
.a-remplir { background: #FFF1C2; padding: 0 .25rem; border-radius: 3px; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .reglages { grid-template-columns: minmax(0, 1fr); }
  .exemple { position: static; }
}

@media (max-width: 640px) {
  :root { --ligne: 24px; }
  .feuille { padding: 1.75rem 1rem 1.75rem 3rem; }
  .feuille { background-image:
    linear-gradient(90deg, transparent 31px, var(--marge) 31px, var(--marge) 33px, transparent 33px),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--ligne) - 1px), var(--seyes-fort) calc(var(--ligne) - 1px), var(--seyes-fort) var(--ligne)),
    repeating-linear-gradient(180deg, transparent 0, transparent 5px, var(--seyes) 5px, var(--seyes) 6px); }
  .feuille::before { display: none; }
  .resultat { grid-template-columns: auto 1fr auto; }
  .resultat__retirer { grid-column: 3; grid-row: 1; }
  .resultat__actions { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; }
  .resultat__actions .bouton { flex: 1; justify-content: center; }
  .code__groupes { grid-template-columns: minmax(0, 1fr); }
  .legende { white-space: normal; }
  .confidentialite { flex-direction: column; padding: 1.5rem; }
  .apercu__actions { width: 100%; }
  .apercu__actions .bouton:not(.bouton--icone) { flex: 1; justify-content: center; }
}

/* ---------- Impression ---------- */

.zone-impression { display: none; }

@media print {
  html, body { background: #fff; margin: 0; padding: 0; }
  body > *:not(.zone-impression) { display: none !important; }
  .zone-impression { display: block; }
  .impression__page { display: block; break-after: page; page-break-after: always; }
  .impression__page:last-child { break-after: auto; page-break-after: auto; }
}

/* ---------- Rendu des pages (hors écran) ---------- */

.rendu-hote {
  position: absolute;
  left: -30000px;
  top: 0;
  width: 1200px;
  pointer-events: none;
}
.rendu-pages { display: flex; flex-direction: column; gap: 20px; }
.rendu-page { position: relative; overflow: hidden; flex: none; }
.rendu-fenetre { position: absolute; left: 0; overflow: hidden; }

/* ---------- Étape 3 : en-tête et téléchargement groupé ---------- */

.etape__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.etape__entete .etape__titre { margin-bottom: 0; }
.bouton svg { width: 1.15rem; height: 1.15rem; flex: none; }
.bouton:disabled { opacity: .55; cursor: progress; }
.bouton--zip { background: var(--succes); border-color: var(--succes); }
.bouton--zip:hover { background: #17603C; border-color: #17603C; }

/* ---------- Mise en page des PDF ---------- */

.modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .6rem;
  margin-top: .45rem;
}
.mode { position: relative; cursor: pointer; display: flex; }
.mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode__texte {
  display: grid;
  align-content: start;
  gap: .15rem;
  width: 100%;
  padding: .55rem .85rem;
  border: 2px solid #d9e1ec;
  border-radius: 10px;
  background: #fff;
  font-size: .88rem;
  line-height: 1.4;
}
.mode__texte b { color: var(--encre-fonce); font-size: .95rem; }
.mode__texte span { color: var(--texte-doux); }
.mode:hover .mode__texte { border-color: var(--seyes-fort); }
.mode input:checked + .mode__texte { border-color: var(--encre); background: #EEF3FB; box-shadow: inset 0 0 0 1px var(--encre); }
.mode input:focus-visible + .mode__texte { outline: 3px solid var(--encre); outline-offset: 3px; }

/* ---------- Déposer ou coller ---------- */

.entrees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.entrees .depot { height: 100%; justify-content: center; }
.coller {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  border: 2px solid #d9e1ec;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
}
.coller__titre { font-weight: bold; color: var(--encre-fonce); }
.coller__zone {
  min-height: 7.5rem;
  max-height: 20rem;
  overflow: auto;
  padding: .6rem .75rem;
  border: 1px solid #c9d2de;
  border-radius: 6px;
  background: #fff;
  font-size: .95rem;
  line-height: 1.5;
  cursor: text;
  overflow-wrap: anywhere;
}
.coller__zone:focus { outline: 3px solid var(--encre); outline-offset: 1px; border-color: var(--encre); }
.coller__zone.est-vide::before { content: attr(data-placeholder); color: #7B8597; pointer-events: none; }
.coller__zone p, .coller__zone h3, .coller__zone h4 { margin: 0 0 .5rem; }
.coller__zone h3, .coller__zone h4 { font-size: 1rem; }
.coller__zone ul, .coller__zone ol { margin: 0 0 .5rem; padding-left: 1.4rem; }
.coller__zone table { border-collapse: collapse; margin: 0 0 .5rem; max-width: 100%; }
.coller__zone td, .coller__zone th { border: 1px solid #9AA6B8; padding: .2rem .4rem; vertical-align: top; }
.coller__zone th { background: #EEF1F5; }
.coller__aide { font-size: .82rem; color: var(--texte-doux); }
.coller__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

/* ---------- Effacer ---------- */

.etape__boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.etape__compte { color: var(--texte-doux); font-weight: normal; font-size: .95rem; }
.resultat__retirer {
  width: 2.4rem; height: 2.4rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
}
.resultat__retirer svg { width: 1.2rem; height: 1.2rem; }
.resultat__retirer:hover { background: #FBE9E7; color: var(--erreur); }

/* les nouveaux blocs passent en une colonne sur les écrans étroits (placé en dernier pour l'emporter) */
@media (max-width: 760px) {
  .entrees { grid-template-columns: minmax(0, 1fr); }
}
.mode__conseil { font-style: normal; font-weight: normal; font-size: .8rem; color: var(--succes); margin-left: .3rem; }

/* ---------- Code couleur : une case par famille ---------- */

.familles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .45rem;
}
.famille { position: relative; cursor: pointer; display: flex; }
.famille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.famille__texte {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 2px solid #d9e1ec;
  border-radius: 10px;
  background: #fff;
  font-size: .92rem;
  line-height: 1.3;
}
.famille__couleur { color: var(--texte-doux); }
.famille__pastille {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  border-radius: 4px;
  border: 2px solid #9AA6B8;
  background: #fff;
  position: relative;
}
.famille--voyelle { --teinte: var(--c-voyelle); }
.famille--consonne { --teinte: var(--c-consonne); }
.famille--grapheme { --teinte: var(--c-grapheme); }
.famille--muette { --teinte: var(--c-muette); }
.famille:hover .famille__texte { border-color: var(--seyes-fort); }
.famille input:checked + .famille__texte { border-color: var(--teinte); box-shadow: inset 0 0 0 1px var(--teinte); }
.famille input:checked + .famille__texte .famille__pastille { background: var(--teinte); border-color: var(--teinte); }
.famille input:checked + .famille__texte .famille__pastille::after {
  content: "";
  position: absolute;
  left: .32rem; top: .08rem;
  width: .3rem; height: .62rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.famille input:focus-visible + .famille__texte { outline: 3px solid var(--encre); outline-offset: 3px; }
.lettres--exemples { font-size: 1.15rem; word-spacing: .2em; color: var(--texte); }
.bouton--copier.est-copie { background: #E6F4EA; border-color: var(--succes); color: #17603C; }

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

/* bloc temporaire du « Copier le texte » de secours : hors écran mais sélectionnable */
.copie-tampon {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 800px;
  background: #fff;
  -webkit-user-select: text;
  user-select: text;
}
