/* Zigo Mots : les fiches de mots à imprimer (copier, dictée), leur corrigé, et « Zigo dicte ».
   Les polices sont servies par l'application (app/vendor/polices/, licence OFL) : le rendu imprimé est le
   même sur tous les appareils, et il marche hors ligne. */

@font-face {
  font-family: "Zigo Cursive";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../vendor/polices/playwrite-fr-trad-400.woff2") format("woff2");
}
@font-face {
  font-family: "Zigo Script";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../vendor/polices/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Zigo Script";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../vendor/polices/atkinson-hyperlegible-700.woff2") format("woff2");
}

/* La feuille ne prend pas l'espacement de lecture de l'appareil : les lettres espacées sont une option
   de la fiche (dans son code), pour qu'elle s'imprime pareil partout. */
.feuille--motsfiche { letter-spacing: normal; word-spacing: normal; }
.feuille--motsfiche .feuille__qr .qr { width: 32mm; height: 32mm; }
.feuille--motsfiche .feuille__titre em { font-weight: 400; }

/* Les lignes Seyès : grandes lignes plus foncées, interlignes fines, en gris (imprimante noir et blanc). */
.seyes { display: block; overflow: visible; }
.seyes__fort { stroke: #7d7d7d; stroke-width: .3; }
.seyes__fin { stroke: #b0b0b0; stroke-width: .16; }
.seyes__modele { fill: #111; }
.seyes__modele--cursive { font-family: "Zigo Cursive", cursive; }
.seyes__modele--script { font-family: "Zigo Script", "Atkinson Hyperlegible", Verdana, sans-serif; }
.motsfiche--espace .seyes__modele--script { letter-spacing: .12em; }

/* Copier : le mot en script, puis ses trois lignes. */
.motsfiche__rangee { display: flex; gap: 8mm; break-inside: avoid; }
.motsfiche__mot { flex: none; margin-bottom: 2.5mm; }
.motsfiche__mot .seyes + .seyes { margin-top: 1mm; }
.motsfiche__etiquette {
  font-family: "Zigo Script", "Atkinson Hyperlegible", Verdana, sans-serif;
  font-weight: 700;
  font-size: 15pt;
  line-height: 7mm;
  height: 7mm;
  margin: 0 0 .9mm 1.5mm;
  white-space: nowrap;
}
.motsfiche__devant { font-weight: 400; font-size: .75em; color: #555; letter-spacing: normal; }
.motsfiche--espace .motsfiche__etiquette { letter-spacing: .12em; word-spacing: .2em; }

/* La dictée : une ligne numérotée par mot, en une ou deux colonnes remplies l'une après l'autre. */
.motsfiche__colonnes { display: flex; gap: 8mm; }
.motsfiche__dictee { list-style: none; margin: 0; padding: 0; }
.motsfiche__ligne { display: flex; align-items: flex-start; margin: 0 0 2.5mm; break-inside: avoid; }
.motsfiche__numero {
  flex: none;
  width: 7mm;
  font-family: "Zigo Script", "Atkinson Hyperlegible", Verdana, sans-serif;
  font-weight: 700;
  font-size: 11pt;
  line-height: 1;
  padding-top: 5mm;
  color: #444;
}
.motsfiche--cp .motsfiche__numero { padding-top: 9mm; }

/* Le corrigé : un tableau, un mot par ligne. */
.motsfiche-corrige { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10pt; }
.motsfiche-corrige th { text-align: left; font-size: 8.5pt; line-height: 1.3; color: #555; font-weight: 700; padding: 0 2mm 1mm; border-bottom: 1.5px solid #ccc; }
.motsfiche-corrige td { padding: 1.2mm 2mm; border-bottom: 1px solid #e6e6e6; vertical-align: middle; line-height: 1.3; overflow-wrap: anywhere; }
.motsfiche-corrige__n { font-weight: 700; color: #444; white-space: nowrap; overflow-wrap: normal; padding-right: 0 !important; }
.motsfiche-corrige__mot { font-family: "Zigo Script", "Atkinson Hyperlegible", Verdana, sans-serif; font-weight: 700; font-size: 13pt; line-height: 1.25 !important; }
.motsfiche-corrige__cursive { font-family: "Zigo Cursive", cursive; font-size: 11pt; line-height: 1.35 !important; }
.motsfiche-corrige__phrase, .motsfiche-corrige__regarder { font-size: 9.5pt; color: #333; }
.motsfiche--espace .motsfiche-corrige__mot { letter-spacing: .12em; }

@media print {
  .feuille--motsfiche .feuille__qr .qr { width: 32mm; height: 32mm; }
  .feuille--motsfiche .objectif { font-size: 10.5pt; }
}

/* L'écran des fiches de mots */
.fiches-mots__choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.fiches-mots__type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 64px; }
.fiches-mots__type[aria-pressed="true"] { outline: 4px solid var(--violet); outline-offset: 2px; }
.fiches-mots__type small { font-weight: 400; font-size: .9rem; }
.fiches-mots__reglages { display: grid; gap: 10px; margin-top: 10px; }
.fiches-mots__reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fiches-mots__reglage > span { min-width: 9.5em; font-weight: 700; }

/* « Zigo dicte » : un mot à la fois, jamais écrit à l'écran. */
.dicte { text-align: center; }
.dicte__numero { font-size: clamp(2.6rem, 12vw, 4.2rem); font-weight: 900; color: var(--violet); margin: 8px 0 0; line-height: 1.1; }
.dicte__sur { font-size: 1.1rem; color: var(--encre-douce); margin: 0 0 14px; }
.dicte__actions { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.dicte__numeros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.dicte__numeros .option { min-width: 48px; min-height: 48px; font-weight: 800; }
html[data-lecture="facile"] .dicte__sur { letter-spacing: .05em; line-height: 1.8; }
