/* =====================================================================
   ALF Kidz : jeu « Kifkif, la course des lettres »
   S'appuie sur kidz.css (variables, polices, boutons, sections).
   Écrit sans imbrication CSS pour fonctionner sur les iPad un peu anciens
   (Safari < 17.2).
   ===================================================================== */

/* ---------- Bandeau raccourci : le jeu doit arriver vite à l'écran ---------- */
.hero-course {
  padding-block: 44px 86px;
}
.hero-course p {
  margin-block-end: 0;
}
.hero-course .badges {
  margin-block-start: 22px;
}
@media (max-width: 720px) {
  .hero-course {
    padding-block: 28px 70px;
  }
  .hero-course h1 {
    margin-block-end: 10px;
  }
  .hero-course p {
    font-size: 15px;
  }
  .hero-course .badges {
    display: none;
  }
}

.course-fond {
  background: var(--ciel-clair);
  padding-block: 8px 56px;
}
/* Anneau de focus plus contrasté sur le fond bleu clair */
.course-fond :focus-visible {
  outline-color: var(--ciel-fonce);
}

/* ---------- Zone de jeu ---------- */
.course {
  /* Repli en vh pour les navigateurs sans svh (une variable CSS ne se replie pas toute seule). */
  --taille: min(100%, 520px, max(300px, calc((100vh - 130px) * 0.75)));
  display: grid;
  justify-items: center;
  gap: 14px;
}
@supports (height: 100svh) {
  .course {
    --taille: min(100%, 520px, max(300px, calc((100svh - 130px) * 0.75)));
  }
}
.course:fullscreen {
  --taille: min(100%, calc((100vh - 150px) * 0.75));
  background: var(--ciel-clair);
  align-content: center;
  padding: 16px;
}

.course-scene {
  container-type: inline-size;
  position: relative;
  inline-size: var(--taille);
  aspect-ratio: 3 / 4;
  border-radius: var(--rayon);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 0 rgb(58 117 168 / 0.18);
  background: var(--creme);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.course-scene:focus-visible {
  outline: 3px solid var(--ciel-fonce);
  outline-offset: 3px;
}

.course-piste {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

/* ---------- Coins de la scène : son (haut gauche) et plein écran (haut droite) ---------- */
.coin {
  position: absolute;
  inset-block-start: 10px;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.coin[hidden] {
  display: none;
}
.coin-son {
  inset-inline-start: 10px;
}
.coin-plein {
  inset-inline-end: 10px;
}
.coin svg {
  inline-size: 24px;
  fill: none;
  stroke: var(--bleu);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coin-son .coupe,
.coin-son[aria-pressed="false"] .onde {
  display: none;
}
.coin-son[aria-pressed="false"] .coupe {
  display: inline;
}

/* ---------- Tableau de bord (cœurs, cible, progression) ---------- */
.course-hud {
  position: absolute;
  inset: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
  pointer-events: none;
}

/* Ligne du haut : la lettre à attraper, entre les boutons son (gauche) et plein écran (droite) */
.hud-ligne {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 50px;
}
/* Deuxième ligne : cœurs et progression */
.hud-ligne-2 {
  justify-content: space-between;
  padding-inline: 0;
}

.hud-coeurs {
  display: flex;
  gap: 3px;
  background: rgb(255 255 255 / 0.9);
  border-radius: 30px;
  padding: 7px 10px;
}
.hud-coeurs .coeur {
  inline-size: 22px;
  block-size: 20px;
  fill: var(--corail);
  stroke: var(--corail-fonce);
  stroke-width: 1.2;
  transition:
    fill 0.2s,
    scale 0.2s;
}
.hud-coeurs .coeur.perdu {
  fill: #fff;
  stroke: #8a949f;
  stroke-width: 1.6;
  scale: 0.85;
}
/* 4e et 5e cœurs : visibles seulement quand ils ont été gagnés en route */
.hud-coeurs .coeur.bonus.perdu {
  display: none;
}
.hud-coeurs .coeur.bonus {
  animation: coeur-gagne 0.5s ease-out;
}
@keyframes coeur-gagne {
  from {
    scale: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hud-coeurs .coeur.bonus {
    animation: none;
  }
}

.hud-cible {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #fff;
  border: 3px solid var(--soleil);
  border-radius: 30px;
  padding: 0 14px 0 12px;
  block-size: 48px;
  font-family: var(--titres);
  font-weight: 800;
  color: var(--bleu);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.hud-cible .ar {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--bleu);
  translate: 0 2px;
}
.hud-cible-nom {
  color: #8f6a3a;
}

/* Pause : en bas à gauche de la scène */
.hud-pause {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  pointer-events: auto;
  inline-size: 44px;
  block-size: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 0;
  background: var(--bleu);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.2);
}
.hud-pause svg {
  inline-size: 22px;
  fill: #fff;
}

.hud-progression {
  flex: 1; /* à côté des cœurs, prend toute la place restante */
  min-inline-size: 0;
  position: relative;
  block-size: 22px;
  background: rgb(255 255 255 / 0.9);
  border-radius: 20px;
  overflow: hidden;
}
.hud-barre {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 0;
  background: linear-gradient(90deg, var(--menthe), var(--menthe-fonce));
  border-radius: 20px;
  transition: inline-size 0.3s;
}
.hud-compte {
  position: relative;
  display: block;
  text-align: center;
  font-family: var(--titres);
  font-weight: 800;
  font-size: 14px;
  line-height: 22px;
  color: var(--bleu);
}
.hud-compte.pop {
  animation: course-pop 0.35s;
}

/* Bonus en cours (aimant, chaussures-ressorts) : icône et jauge du temps restant */
.hud-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  inline-size: fit-content;
  margin-inline: auto;
  margin-block-start: 6px;
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.92);
}
.hud-bonus[hidden] {
  display: none;
}
.bonus-icone {
  inline-size: 26px;
  block-size: 26px;
  fill: none;
  stroke: var(--bleu);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bonus-aimant path:first-child {
  fill: var(--corail);
}
.bonus-aimant .bout {
  fill: #c8d0d8;
}
.bonus-ressorts {
  stroke: #b9861f;
  stroke-width: 2.2;
}
.bonus-ressorts .semelle {
  fill: var(--corail);
  stroke: none;
}
.hud-bonus[data-genre="aimant"] .bonus-ressorts,
.hud-bonus[data-genre="ressorts"] .bonus-aimant {
  display: none;
}
.hud-bonus-jauge {
  position: relative;
  inline-size: 90px;
  block-size: 10px;
  border-radius: 10px;
  background: #e3e6ea;
  overflow: hidden;
}
.hud-bonus-reste {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  border-radius: 10px;
  background: var(--soleil);
}
.hud-bonus[data-genre="aimant"] .hud-bonus-reste {
  background: var(--corail);
}
@keyframes course-pop {
  50% {
    scale: 1.25;
  }
}

@media (max-width: 380px) {
  .hud-cible {
    padding-inline: 10px;
    gap: 6px;
    font-size: 13px;
  }
  .hud-cible .ar {
    font-size: 28px;
  }
  .hud-coeurs .coeur {
    inline-size: 18px;
    block-size: 17px;
  }
}

/* ---------- Bannière « Attrape les … » ---------- */
.course-banniere {
  position: absolute;
  inset-inline: 12%;
  inset-block-start: 26%;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 12px 18px;
  background: #fff;
  border-radius: 28px;
  border: 4px solid var(--soleil);
  box-shadow: 0 8px 0 rgb(217 161 46 / 0.35);
  pointer-events: none;
  text-align: center;
}
.course-banniere.visible {
  animation: course-banniere 1.7s ease-out both;
}
.banniere-titre {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 20px;
  color: var(--bleu);
}
.banniere-lettre {
  font-family: var(--arabe);
  font-weight: 700;
  font-size: 96px;
  line-height: 1.25;
  color: var(--corail-fonce);
}
.banniere-nom {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 22px;
  color: #8f6a3a;
}
@keyframes course-banniere {
  0% {
    opacity: 0;
    scale: 0.6;
  }
  15% {
    opacity: 1;
    scale: 1.05;
  }
  25%,
  80% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 0.9;
  }
}

/* ---------- Écrans (niveaux, pause, fin) ---------- */
.course-ecran {
  position: absolute;
  inset: 0;
  display: grid;
  /* Centrage par marges automatiques : si la boîte dépasse, elle reste
     défilable depuis le haut au lieu d'être coupée des deux côtés. */
  padding: 60px 14px 14px; /* en haut : place pour les boutons son et plein écran */
  background: rgb(41 56 71 / 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.ecran-boite {
  margin: auto;
  /* Ne jamais rétrécir sous son contenu (sinon overflow:hidden le couperait) : on défile à la place */
  min-block-size: max-content;
  inline-size: 100%;
  max-inline-size: 420px;
  background: #fff;
  border-radius: 24px;
  padding: 20px 16px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ecran-boite::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  block-size: 7px;
  background: var(--ruban);
}
.ecran-boite h3 {
  font-size: 26px;
  line-height: 1.2;
  color: var(--bleu);
  margin: 4px 0 4px;
  font-weight: 800;
}

.ecran-texte {
  margin: 0 0 14px;
  color: var(--texte);
  font-size: 15px;
  line-height: 1.45;
}

.ecran-actions {
  display: grid;
  gap: 12px;
}
.ecran-actions .btn {
  inline-size: 100%;
  white-space: normal;
  font-size: 17px;
  padding: 13px 18px;
}
/* Or plus foncé que .btn par défaut : texte blanc lisible (contraste ≥ 4,5:1) */
.btn.btn-or {
  background: #8f6a3a;
  box-shadow: 0 5px 0 #6b4f2b;
}
.btn.btn-or:hover {
  box-shadow: 0 7px 0 #6b4f2b;
}

.grille-niveaux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.niveau-btn {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 6px 7px;
  border: 3px solid var(--filet);
  border-radius: 18px;
  background: var(--creme);
  color: var(--bleu);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    translate 0.15s;
}
.niveau-btn:hover {
  border-color: var(--soleil);
  translate: 0 -2px;
}
/* Couleur par palier : vert débutant, jaune intermédiaire, rouge avancé */
.niveau-btn[data-palier="debutant"] {
  background: var(--menthe-clair);
}
.niveau-btn[data-palier="intermediaire"] {
  background: var(--soleil-clair);
}
.niveau-btn[data-palier="avance"] {
  background: var(--corail-clair);
}
.niveau-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
}
.niveau-palier {
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--titres);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
}
/* Textes blancs sur fonds assez sombres (contraste ≥ 4,5:1) ; texte bleu sur le jaune */
[data-palier="debutant"] .niveau-palier {
  background: #3e7233;
}
[data-palier="intermediaire"] .niveau-palier {
  background: var(--soleil);
  color: var(--bleu);
}
[data-palier="avance"] .niveau-palier {
  background: #a8402e;
}

.niveau-num {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.niveau-btn {
  min-inline-size: 0;
}
.niveau-lettres {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  word-spacing: 2px;
  max-inline-size: 100%;
}
.niveau-lettres.niveau-tout {
  font-family: var(--titres);
  font-size: 15px;
  line-height: 1.3;
  padding-block: 7px;
  white-space: normal;
}

@supports (font-size: 1cqi) {
  .niveau-lettres {
    font-size: clamp(18px, 6cqi, 30px);
  }
}

/* Étoiles : or foncé, lisible sur le blanc comme sur les tuiles colorées */
.niveau-etoiles,
.fin-etoiles {
  color: #a3730f;
  letter-spacing: 2px;
}
.niveau-etoiles {
  font-size: 15px;
  line-height: 1;
}
.fin-etoiles {
  font-size: 44px;
  line-height: 1;
  margin: 6px 0 0;
}

.fin-lettres {
  font-size: 40px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--corail-fonce);
  margin: -6px 0 12px;
  word-spacing: 10px;
}

/* Petits téléphones (320 à 380 px) : écran des niveaux plus compact */
@media (max-width: 380px) {
  .course-ecran {
    padding: 56px 8px 8px;
  }
  .ecran-boite {
    padding: 14px 10px 12px;
  }
  .ecran-boite h3 {
    font-size: 21px;
  }
  .grille-niveaux {
    gap: 6px;
  }
  .niveau-btn {
    padding: 4px 4px 5px;
    border-width: 2px;
    border-radius: 14px;
  }
  /* Le numéro reste lu par les lecteurs d'écran ; les lettres suffisent à l'œil. */
  .niveau-num {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ecran-texte {
    display: none;
  }
  .niveau-lettres {
    font-size: 20px;
    line-height: 1.4;
    word-spacing: 2px;
  }
  .niveau-lettres.niveau-tout {
    font-size: 13px;
    padding-block: 3px;
  }
  .niveau-etoiles {
    font-size: 13px;
  }
  .niveau-palier {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  .niveau-pied {
    margin-block-start: 4px; /* écart avec les lettres qui descendent (ح خ ع) */
  }
}

/* ---------- Gros boutons de commande ---------- */
.course-commandes {
  display: flex;
  justify-content: center;
  gap: 18px;
  touch-action: manipulation;
}

.cmd {
  inline-size: 76px;
  block-size: 76px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--ciel-fonce);
  box-shadow: 0 6px 0 #2e5f8a;
  transition:
    translate 0.08s,
    box-shadow 0.08s;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cmd:active {
  translate: 0 4px;
  box-shadow: 0 2px 0 #2e5f8a;
}
.cmd svg {
  inline-size: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cmd.cmd-saut {
  background: var(--menthe-fonce);
  box-shadow: 0 6px 0 #3a6a2f;
}
.cmd.cmd-saut:active {
  box-shadow: 0 2px 0 #3a6a2f;
}
.cmd.cmd-roulade {
  background: var(--corail);
  box-shadow: 0 6px 0 var(--corail-fonce);
}
.cmd.cmd-roulade:active {
  box-shadow: 0 2px 0 var(--corail-fonce);
}
/* Quatre boutons sur un petit téléphone : un peu plus petits pour tenir sur une ligne */
@media (max-width: 400px) {
  .course-commandes {
    gap: 10px;
  }
  .cmd {
    inline-size: 66px;
    block-size: 66px;
  }
  .cmd svg {
    inline-size: 32px;
  }
}
.course-commandes[inert] {
  opacity: 0.45;
}

/* Sur ordinateur, les boutons restent utiles à la souris, mais plus discrets. */
@media (hover: hover) and (pointer: fine) {
  .cmd {
    inline-size: 60px;
    block-size: 60px;
  }
  .cmd svg {
    inline-size: 30px;
  }
}

.course-aide,
.course-sans-js {
  max-inline-size: 520px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--gris);
}
.course-sans-js {
  font-weight: 800;
  color: var(--bleu);
}
.course:fullscreen .course-aide {
  display: none;
}

/* ---------- Téléphone à l'horizontale : piste à gauche, commandes à droite ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .course {
    --taille: calc((100vh - 24px) * 0.75);
    grid-template-columns: auto auto;
    grid-template-rows: auto auto 1fr;
    justify-content: center;
    align-items: start;
    column-gap: 20px;
  }
  .course-scene {
    grid-row: 1 / span 3;
  }
  .course-commandes {
    flex-direction: column;
    align-self: center;
    gap: 12px;
  }
  .course-commandes .cmd-saut {
    order: -1;
  }
  .course-commandes .cmd-roulade {
    order: 1;
  }
  /* Écran des niveaux compact : la scène est basse quand le téléphone est à l'horizontale.
     Préfixe .course : ces règles passent avant celles du @container écrites plus bas. */
  .course .course-ecran {
    padding: 56px 6px 6px;
  }
  .course .ecran-boite {
    padding: 10px 8px;
  }
  .course .ecran-boite h3 {
    font-size: 18px;
    margin-block-end: 6px;
  }
  .course #ecran-accueil .ecran-texte {
    display: none;
  }
  .course .grille-niveaux {
    gap: 5px;
  }
  .course .niveau-btn {
    padding: 3px 3px 4px;
    gap: 0;
    border-width: 2px;
    border-radius: 12px;
  }
  .course .niveau-num {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .course .niveau-lettres {
    font-size: 17px;
    line-height: 1.35;
  }
  .course .niveau-lettres.niveau-tout {
    font-size: 12px;
    padding-block: 2px;
  }
  .course .niveau-etoiles {
    font-size: 11px;
  }
  .course .niveau-palier {
    font-size: 9px;
    padding: 1px 5px;
  }
  .course-commandes .cmd {
    inline-size: 64px;
    block-size: 64px;
  }
  .course-aide {
    display: none;
  }
}
@supports (height: 100svh) {
  @media (orientation: landscape) and (max-height: 520px) {
    .course {
      --taille: calc((100svh - 24px) * 0.75);
    }
  }
}

/* ---------- Ordinateur et tablette à l'horizontale : grande scène en paysage ---------- */
@media (min-width: 760px) and (min-height: 521px) and (orientation: landscape) {
  .course {
    --taille: min(100%, 1100px, max(600px, calc((100vh - 125px) * 1.6)));
  }
  .course-scene {
    aspect-ratio: 16 / 10;
  }
}
@supports (height: 100svh) {
  @media (min-width: 760px) and (min-height: 521px) and (orientation: landscape) {
    .course {
      --taille: min(100%, 1100px, max(600px, calc((100svh - 125px) * 1.6)));
    }
  }
}
/* Écran des niveaux sur une scène étroite (téléphone) : plus compact */
@container (max-width: 430px) {
  .course-ecran {
    padding: 54px 6px 6px;
  }
  .ecran-boite {
    padding: 10px 8px 8px;
  }
  .ecran-boite h3 {
    font-size: 20px;
  }
  .niveau-lettres {
    line-height: 1.34; /* assez pour les lettres qui descendent (ح خ ع) au-dessus de l'étiquette */
  }
  #ecran-accueil .ecran-texte {
    display: none;
  }
  .grille-niveaux {
    gap: 7px;
  }
  .niveau-btn {
    padding: 2px 4px 3px;
    border-width: 2px;
    border-radius: 14px;
  }
  .niveau-num {
    font-size: 11px;
  }
  .niveau-lettres.niveau-tout {
    font-size: 13px;
    padding-block: 4px;
  }
  .niveau-etoiles {
    font-size: 13px;
  }
}
/* Écran des niveaux sur une grande scène : 4 colonnes */
@container (min-width: 560px) {
  /* Scène large : la boîte s'écarte des coins sur les côtés, plus besoin de marge en haut */
  .course-ecran {
    padding: 14px 64px;
  }
  .grille-niveaux {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ecran-boite {
    max-inline-size: 760px;
  }
  /* Lettres sur une seule ligne : cartes moins hautes (étiquette et étoiles ne passent
     à la ligne que si la carte est trop étroite) */
  .niveau-lettres {
    font-size: clamp(13px, 2.6cqi, 28px);
    line-height: 1.45;
    white-space: nowrap;
  }
  .niveau-palier {
    font-size: 10px;
    padding: 2px 6px;
  }
  .niveau-etoiles {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-banniere.visible {
    animation: none;
  }
}

/* ---------- Plein écran (bouton) : jeu sur tout l'écran, touches sur une ligne en bas ---------- */
html.jeu-plein,
html.jeu-plein body {
  overflow: hidden;
}
.course.plein {
  position: fixed;
  inset: 0;
  z-index: 1000;
  inline-size: 100%;
  block-size: 100vh;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  align-content: stretch;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  background: var(--ciel-clair);
}
@supports (height: 100dvh) {
  .course.plein {
    block-size: 100dvh;
  }
}
.course.plein .course-scene {
  grid-row: 1;
  grid-column: 1;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: auto;
  border-width: 3px;
  box-shadow: none;
}
.course.plein .course-commandes {
  grid-row: 2;
  grid-column: 1;
  flex-direction: row;
  align-self: center;
  gap: 12px;
}
.course.plein .course-commandes .cmd {
  order: 0;
  inline-size: 64px;
  block-size: 64px;
}
.course.plein .course-aide {
  display: none;
}
/* Téléphone à l'horizontale : touches un peu plus petites */
@media (orientation: landscape) and (max-height: 520px) {
  .course.plein {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .course.plein .course-scene {
    grid-column: 1 / -1;
  }
  .course.plein .course-commandes {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
  }
  .course.plein .course-commandes .cmd {
    inline-size: 54px;
    block-size: 54px;
  }
}
