/* Refonte — /e-aigu-majuscule, reprise du 2026-10-07 (src/pages/e-aigu-majuscule.njk).
   Idée propre à la page : deux épreuves de la même frappe, l'une fautive,
   l'autre juste. Le héros (2026-10-13) range la pastille de copie, le titre,
   l'intro et les méthodes classiques à gauche, la solution AZERTY Global à
   droite ; la pastille elle-même vient de css/v2/pastille-copie.css. Toute
   valeur vient de css/v2/jetons.css. Une seule couleur d'accent (--action) ;
   --erreur ne sert qu'à la faute de l'épreuve, doublée d'une vague soulignée. */

/* ——— Héros ——— */

.em-heros {
  padding-block: var(--e-4) var(--e-6);
}

/* Mobile : la colonne de gauche (pastille, titre, intro, méthodes ; sa
   composition est dans css/v2/pastille-copie.css), puis la solution. */
/* La grille du héros (colonnes, zones, place du bouton) est dans
   css/v2/pastille-copie.css : classes hero-grille, hero-gauche, hero-global. */

.em-heros__titre {
  margin: 0;
  font-size: var(--t-h1);
  line-height: 1.1;
}

/* Réponse en prose sous le titre, comme l'intro des autres pages caractère :
   la phrase que les moteurs reprennent (plan GEO du 2026-10-13, A1). */
.em-heros__intro {
  margin: 0;
  max-width: 65ch;
}
.em-heros__reponse {
  min-width: 0;
}

.em-global {
  min-width: 0;
}

/* Bureau : colonne de gauche, colonne de droite (solution AZERTY Global), 7/5
   comme les autres héros. */
@media (min-width: 1024px) {
  .em-heros {
    padding-block: var(--e-7) 0;
  }

  .em-heros__titre {
    font-size: var(--t-heros);
    line-height: 1.08;
  }
}

/* ——— Réponse par système ——— */

.em-reponse {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.em-reponse th,
.em-reponse td {
  padding: var(--e-3) 0;
  border-bottom: 1px solid var(--bordure);
  text-align: left;
  vertical-align: baseline;
}

.em-reponse tr:first-child th,
.em-reponse tr:first-child td {
  border-top: 1px solid var(--bordure);
}

.em-reponse th {
  width: 5.5rem;
  padding-right: var(--e-4);
  font-weight: 600;
}

/* Comme le tableau des 10 autres pages caractère (caractere.css, .methodes) :
   une touche par kbd, la note sous le raccourci (QCM du 2026-10-19). */
.em-reponse__note {
  display: block;
  font-size: var(--t-petit);
  line-height: 1.5;
  color: var(--texte-2);
}

@media (min-width: 1024px) {
  .em-reponse th,
  .em-reponse td {
    padding-block: var(--e-2);
  }
}

/* ——— La solution AZERTY Global ——— */

.em-global {
  padding-top: var(--e-4);
  border-top: 2px solid var(--encre);
}

.em-global__phrase {
  margin: 0 0 var(--e-2);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.em-global__phrase kbd {
  font-size: 0.8em;
  line-height: 1.3;
}

/* La douleur Windows, sous la phrase : le 2 que l'AZERTY traditionnel écrit. */
.em-global__douleur {
  margin: 0 0 var(--e-1);
}

.em-global__note {
  margin: 0 0 var(--e-4);
  color: var(--texte-2);
}

/* Sur écran tactile seulement : AZERTY Global ne s'installe pas sur un
   téléphone. Même requête que l'essai, inversée. */
.em-tactile {
  margin: var(--e-3) 0 0;
  font-size: var(--t-petit);
  color: var(--texte-2);
}

/* Dans le héros, entre la note et les boutons : visible sans défiler. */
.em-tactile--heros {
  margin: calc(-1 * var(--e-3)) 0 var(--e-4);
}

/* Un seul bouton primaire par emplacement : « Télécharger » au bureau,
   « Envoyer le lien à mon ordinateur » (relais de /download#installation) au tactile. */
@media (hover: hover) and (pointer: fine) {
  .em-tactile,
  .em-tactile-seul {
    display: none;
  }
}

@media not ((hover: hover) and (pointer: fine)) {
  .em-bureau-seul {
    display: none;
  }
}

.em-global__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
}

@media (max-width: 479px) {
  .em-global__actions .bouton {
    flex: 1 1 100%;
  }
}

@media (min-width: 1024px) {
  .em-global__phrase {
    font-size: var(--t-h2);
  }
}

/* ——— Épreuves : la même frappe, deux dispositions ——— */

.em-preuve__intro {
  margin-bottom: var(--e-6);
}

.em-epreuves {
  display: grid;
  margin: 0 0 var(--e-7);
  border: 1px solid var(--bordure);
  background: var(--surface);
}

.em-epreuve {
  padding: var(--e-5);
}

.em-epreuve + .em-epreuve {
  border-top: 1px solid var(--bordure);
}

.em-epreuve__clavier {
  margin: 0 0 var(--e-2);
  font-size: var(--t-petit);
  color: var(--texte-2);
}

.em-epreuve__texte {
  margin: 0;
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.em-faux {
  color: var(--erreur);
  text-decoration: underline wavy var(--erreur);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.em-epreuves figcaption {
  padding: var(--e-3) var(--e-5);
  border-top: 1px solid var(--bordure);
  font-size: var(--t-petit);
  color: var(--texte-2);
}

@media (min-width: 768px) {
  .em-epreuves {
    grid-template-columns: 1fr 1fr;
  }

  .em-epreuve + .em-epreuve {
    border-top: 0;
    border-left: 1px solid var(--bordure);
  }

  .em-epreuves figcaption {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .em-epreuve {
    padding: var(--e-6);
  }

  .em-epreuve__texte {
    font-size: var(--t-h1);
  }
}

/* ——— Essai en direct ———
   Il lit le clavier physique : sur un écran tactile il disparaît, en CSS et
   non en script, pour que rien ne bouge au chargement (QCM du 2026-10-03). */

.em-essai {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .em-essai {
    display: grid;
    gap: var(--e-6);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .em-essai {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--e-7);
  }
}

.em-essai__colonne {
  min-width: 0;
}

.em-essai__titre {
  font-size: var(--t-h3);
}

.em-essai__aide {
  max-width: 52ch;
  color: var(--texte-2);
}

.em-essai__etiquette {
  display: block;
  margin: var(--e-4) 0 var(--e-2);
  font-size: var(--t-petit);
  font-weight: 600;
}

.em-essai__champ,
.em-essai__global {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding: var(--e-2) var(--e-4);
  font-family: var(--police-sans);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.em-essai__champ {
  border: 1px solid var(--encre);
  border-radius: var(--rayon-controle);
  background: var(--surface);
  color: var(--encre);
}

.em-essai__global {
  border: 1px solid var(--bordure);
  background: color-mix(in srgb, var(--action) 6%, var(--papier));
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-essai__vide {
  font-size: var(--t-corps);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texte-2);
}

/* Les caractères où AZERTY Global diffère du clavier du visiteur. */
.em-essai__juste {
  color: var(--action);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Le verdict réserve ses deux lignes : il apparaît sans pousser la page. */
.em-essai__verdict {
  min-height: 3.2em;
  margin: var(--e-3) 0;
}

.em-essai__verdict strong {
  font-weight: 600;
}

.em-essai__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
}

.em-essai__actions[hidden] {
  display: none;
}

.em-essai__clavier {
  min-width: 0;
}

/* ——— Toutes les méthodes : un index, système à gauche ——— */

.em-index__entree {
  display: grid;
  gap: var(--e-2);
  padding-block: var(--e-5);
  border-top: 1px solid var(--bordure);
}

.em-index__entree:last-child {
  border-bottom: 1px solid var(--bordure);
}

.em-index__systeme {
  margin: 0;
  font-size: var(--t-h4);
}

.em-index__detail p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .em-index__entree {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: var(--e-6);
  }
}

/* Copier, dans le fil du texte : un lien d'action, cible de 44 px. */
.em-copie-texte {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--action);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  vertical-align: baseline;
}

.em-copie-texte.est-copie {
  color: var(--succes);
}

/* ——— La règle ——— */

.em-regle__grille {
  display: grid;
  gap: var(--e-6);
  align-items: center;
}

.em-regle__source {
  font-size: var(--t-petit);
  color: var(--texte-2);
}

.em-regle__paire {
  display: grid;
  gap: var(--e-2);
  margin: 0;
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.em-regle__mot {
  color: var(--texte-2);
}

.em-regle__mot--juste {
  color: var(--encre);
}

@media (min-width: 1024px) {
  .em-regle__grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--e-8);
  }

  .em-regle__paire {
    font-size: var(--t-heros);
  }
}

/* ——— AZERTY Global, en bref ——— */

.em-produit {
  padding-block: var(--e-7);
  background: var(--surface);
}

.em-produit__grille {
  display: grid;
  gap: var(--e-6);
}

.em-produit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
  margin-top: var(--e-5);
}

.em-produit__sous-titre {
  font-size: var(--t-h4);
}

.em-changements {
  margin: 0 0 var(--e-4);
  padding: 0;
  list-style: none;
}

.em-changements li {
  display: grid;
  gap: var(--e-1);
  padding-block: var(--e-3);
  border-top: 1px solid var(--bordure);
}

.em-changements li:last-child {
  border-bottom: 1px solid var(--bordure);
}

.em-changements__titre {
  font-weight: 600;
}

.em-changements__vedette .em-changements__titre {
  color: var(--action);
}

.em-changements__detail,
.em-produit__installs {
  font-size: var(--t-petit);
  color: var(--texte-2);
}

@media (max-width: 479px) {
  .em-produit__actions .bouton {
    flex: 1 1 100%;
  }
}

@media (min-width: 1024px) {
  .em-produit {
    padding-block: var(--e-8);
  }

  .em-produit__grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--e-8);
  }
}

/* ——— Questions ——— */

.em-questions__grille {
  display: grid;
  column-gap: var(--e-7);
}

.em-question {
  padding-block: var(--e-5);
  border-top: 1px solid var(--bordure);
}

.em-question h3 {
  margin-bottom: var(--e-2);
  font-size: var(--t-h4);
}

.em-question p {
  max-width: 68ch;
  margin: 0;
}

@media (min-width: 768px) {
  .em-questions__grille {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Les voisines : une casse d'imprimeur ——— */

.em-casse {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 var(--e-5);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bordure);
  border-left: 1px solid var(--bordure);
}

.em-casse li {
  border-right: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

.em-casse__lien {
  display: grid;
  gap: var(--e-1);
  min-height: var(--cible-min);
  padding: var(--e-4) var(--e-5);
  color: var(--encre);
  text-decoration: none;
}

.em-casse__glyphe {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.1;
}

.em-casse__nom {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.em-casse__lien:hover {
  background: color-mix(in srgb, var(--action) 6%, transparent);
}

.em-casse__lien:hover .em-casse__nom {
  text-decoration-thickness: 2px;
}

@media (min-width: 768px) {
  .em-casse {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ——— Action de fin : le filet du héros, l'action à droite ——— */

.em-fin__bande {
  display: grid;
  gap: var(--e-5);
  padding-top: var(--e-5);
  border-top: 2px solid var(--encre);
}

.em-fin__titre {
  margin: 0 0 var(--e-2);
  font-size: var(--t-h2);
  text-wrap: balance;
}

.em-fin__titre kbd {
  font-size: 0.8em;
}

.em-fin__note {
  margin: 0;
  color: var(--texte-2);
}

@media (max-width: 479px) {
  .em-fin__actions .bouton {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .em-fin__bande {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--e-7);
  }
}
