* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #f6f2ea; color: #1c1612; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
/* Pas de zoom ni de sélection de texte si l'écran est touché par accident */
html, body { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; touch-action: manipulation; }

.screen { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3.5vmin; padding: 16px; text-align: center; }
.screen.active { display: flex; }
[hidden] { display: none !important; }

h1 { font-size: 8vmin; }
.primary { font-size: 7vmin; font-weight: 700; padding: 3.5vmin 9vmin; border: 0; border-radius: 3vmin; background: #e8590c; color: #fff; }
.primary:disabled { background: #bbb; }

/* Écran de départ */
#instruction { font-size: 4vmin; color: #5a5048; max-width: 30em; }
#warning { font-size: 4vmin; color: #c21818; max-width: 30em; }
#warning:empty { display: none; }
.choice { display: flex; gap: 2.5vmin; }
.choice button { font-size: 5vmin; font-weight: 700; padding: 2.5vmin 5vmin; border: 0.6vmin solid #b9b0a4; border-radius: 2.5vmin; background: #fff; color: #1c1612; }
.choice button.selected { border-color: #1c1612; background: #1c1612; color: #fff; }
/* Les durées (de une à quatre, réglées dans le panneau d'admin) : des boutons de même largeur, qui se serrent s'il le faut
   pour tenir tous sur une ligne, même quatre longues durées sur un petit téléphone */
#durationChoice { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 21vmin); max-width: 100%; }
#durationChoice button { font-size: 4.5vmin; padding: 2.5vmin 0; white-space: nowrap; }
/* Tant qu'on ne sait pas ce que le panneau d'admin a réglé (durées, micro) — un instant, à la première visite seulement —,
   les choix et le bouton de départ gardent leur place mais ne se montrent pas */
#start.waiting #durationChoice, #start.waiting .toggles, #start.waiting #startBtn { visibility: hidden; }
/* Choix de la langue : petit, dans le coin en haut à gauche */
#langChoice { position: absolute; top: 3vmin; left: 3vmin; gap: 1.5vmin; }
#langChoice button { font-size: 3.2vmin; padding: 1.2vmin 2.5vmin; border-width: 0.4vmin; border-radius: 1.5vmin; }

/* Interrupteur façon iOS : avec exercices / mode libre */
.switch { display: flex; align-items: center; gap: 2.5vmin; font-size: 4.2vmin; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: relative; flex: none; width: 13vmin; height: 7.6vmin; border-radius: 3.8vmin; background: #cfc8ba; transition: background 0.2s; }
.switch .thumb { position: absolute; top: 0.6vmin; left: 0.6vmin; width: 6.4vmin; height: 6.4vmin; border-radius: 50%; background: #fff; box-shadow: 0 0.3vmin 1vmin rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.switch input:checked + .track { background: #34c759; }
.switch input:checked + .track .thumb { transform: translateX(5.4vmin); }
.switch input:focus-visible + .track { outline: 0.5vmin solid #1c1612; outline-offset: 0.4vmin; }

/* ====================================================================
   L'accueil « le départ d'abord » (v3.71). Trois blocs et un pied (index.html) :
     #startTete   le titre, la consigne, le gros bouton « Commencer »
     #startSeance « Ta séance » : les durées, puis une carte avec les deux interrupteurs, chacun avec une ligne qui l'explique
     #startLiens  deux tuiles : « Comment ça marche ? » (tuto.js) et « Exercices de dribble »
     #startFoot   la barre de préparation, puis le badge Google Play à côté de la phrase de confidentialité
   Tout se mesure avec « --u », une unité qui fait tenir la page entière dans l'écran, quelle que soit sa forme :
     écran debout  : la page fait 100 u de large et 158 u de haut ; les trois blocs l'un sous l'autre ;
     écran couché  : 190 u de large et 96 u de haut ; deux colonnes — le titre et les tuiles à gauche, la séance à droite.
   Sur un écran presque carré, tout rapetisse un peu au lieu de déborder.
   ==================================================================== */
#start { --u: min(1vw, 0.633vh); gap: calc(var(--u) * 3.5); padding: calc(var(--u) * 13) calc(var(--u) * 4) calc(var(--u) * 17); }
#startTete, #startSeance, #startLiens { width: calc(var(--u) * 92); max-width: 100%; }
#startTete { display: flex; flex-direction: column; align-items: center; }
#start h1 { font-size: calc(var(--u) * 8); line-height: 1.15; }
#start #instruction { font-size: calc(var(--u) * 3.8); line-height: 1.4; max-width: none; margin-top: calc(var(--u) * 2); }
#start #warning { font-size: calc(var(--u) * 3.6); margin-top: calc(var(--u) * 1.5); }
#startBtn { flex: none; width: calc(var(--u) * 92); max-width: 100%; margin: 0 0 calc(var(--u) * 0.5); font-size: calc(var(--u) * 7.4); padding: calc(var(--u) * 4.2) 0; border-radius: calc(var(--u) * 4); box-shadow: 0 calc(var(--u) * 1) 0 #b8440a; cursor: pointer; }
#startBtn:disabled { box-shadow: 0 calc(var(--u) * 1) 0 #999; }
/* Choix de la langue : petit, dans le coin en haut à gauche */
#start #langChoice { top: calc(var(--u) * 3); left: calc(var(--u) * 3); gap: calc(var(--u) * 1.5); }
#start #langChoice button { font-size: calc(var(--u) * 3.2); padding: calc(var(--u) * 1.2) calc(var(--u) * 2.5); border-width: calc(var(--u) * 0.4); border-radius: calc(var(--u) * 1.5); }
/* « Ta séance » */
#startSeance { display: flex; flex-direction: column; gap: calc(var(--u) * 2.2); }
#sessionTitle { font-size: calc(var(--u) * 3); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8076; text-align: left; padding-left: calc(var(--u) * 0.6); }
#start #durationChoice { grid-auto-columns: minmax(0, 1fr); gap: calc(var(--u) * 2.2); width: 100%; }
#start #durationChoice button { font-size: calc(var(--u) * 4.4); padding: calc(var(--u) * 2.5) 0; border-width: calc(var(--u) * 0.55); border-radius: calc(var(--u) * 2.6); cursor: pointer; }
/* (les deux interrupteurs : une carte blanche, une ligne chacun — un dessin, ses mots et la ligne qui l'explique,
   l'interrupteur à droite) */
#start .toggles { display: block; overflow: hidden; background: #fff; border: calc(var(--u) * 0.55) solid #ddd5c8; border-radius: calc(var(--u) * 3.6); text-align: left; }
#start .switch { gap: calc(var(--u) * 2.6); padding: calc(var(--u) * 2.3) calc(var(--u) * 3); font-size: calc(var(--u) * 4); }
#start .switch + .switch { border-top: calc(var(--u) * 0.55) solid #eee8dd; }
#start .switch .ico { flex: none; width: calc(var(--u) * 6.5); font-size: calc(var(--u) * 5.2); line-height: 1; text-align: center; }
#start .switch .mots { flex: 1; min-width: 0; }
#start .switch .mots b { display: block; line-height: 1.2; }
#start .switch .mots small { display: block; margin-top: calc(var(--u) * 0.4); font-size: calc(var(--u) * 3.05); font-weight: 600; line-height: 1.25; color: #8a8076; }
#start .switch .track { width: calc(var(--u) * 12); height: calc(var(--u) * 7); border-radius: calc(var(--u) * 3.5); }
#start .switch .thumb { top: calc(var(--u) * 0.6); left: calc(var(--u) * 0.6); width: calc(var(--u) * 5.8); height: calc(var(--u) * 5.8); box-shadow: 0 calc(var(--u) * 0.3) calc(var(--u) * 1) rgba(0, 0, 0, 0.3); }
#start .switch input:checked + .track .thumb { transform: translateX(calc(var(--u) * 5)); }
#start .switch input:focus-visible + .track { outline: calc(var(--u) * 0.5) solid #1c1612; outline-offset: calc(var(--u) * 0.4); }
/* Les deux tuiles : « Comment ça marche ? » (un vrai lien, qui ouvre la fenêtre du tutoriel : tuto.js) et les exercices */
#startLiens { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 2.6); }
#tutoBtn, #exercisesLink { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 1.6); min-height: calc(var(--u) * 10.6); padding: calc(var(--u) * 1.6) calc(var(--u) * 1.5);
  font-size: calc(var(--u) * 3.5); font-weight: 700; line-height: 1.2; color: #5a5048; background: #fff; border: calc(var(--u) * 0.55) solid #ddd5c8; border-radius: calc(var(--u) * 3); text-decoration: none; cursor: pointer; }
#tutoBtn .tuto-lien-q { flex: none; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: #1c1612; color: #fff; font-size: calc(var(--u) * 3.4); font-weight: 900; }

/* Le pied : sans rien déplacer du reste. La barre de préparation des exercices, tant qu'elle dure ; dessous, le badge
   « Disponible sur Google Play » (app.js le montre ; images officielles de Google, dans badges/) et, à sa droite, la
   phrase de confidentialité et la mention de droit d'auteur. */
#startFoot { position: absolute; left: calc(var(--u) * 4); right: calc(var(--u) * 4); bottom: calc(var(--u) * 2.5); display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 1.6); pointer-events: none; }
#startBas { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 3); max-width: 100%; }
#privacy { min-width: 0; max-width: 30em; font-size: clamp(10.5px, calc(var(--u) * 2.7), 13.5px); line-height: 1.4; color: #8a8076; text-align: left; }
#privacy strong { color: #5a5048; }
/* (la mention de droit d'auteur : sur sa ligne, sous la phrase) */
#copyright { display: block; }
/* (« En savoir plus » : le lien vers la politique de confidentialité ; zone à toucher agrandie sans rien déplacer) */
#privacyLink { pointer-events: auto; display: inline-block; margin: -6px 0; padding: 6px 2px; color: #5a5048; font-weight: 600; text-decoration: underline; white-space: nowrap; }
/* (le badge. « --h » : la hauteur du badge qu'on voit. Les images ont une marge transparente — tout autour pour l'anglaise,
   en haut et en bas seulement pour la française : d'où deux réglages, pour que les deux badges aient la même taille.) */
#storeBadge { --h: clamp(34px, calc(var(--u) * 9.5), 54px); flex: none; display: block; line-height: 0; pointer-events: auto; }
#storeBadge img { display: block; width: auto; height: calc(var(--h) * 1.316); margin: calc(var(--h) * -0.158) 0; }
#storeBadge[data-langue="en"] img { height: calc(var(--h) * 1.471); margin: calc(var(--h) * -0.235); }
/* (sans badge — dans l'application, sur iPhone : la phrase seule, au milieu) */
html:not(.avec-badge) #privacy { text-align: center; }

/* (v3.73, à sa demande : écran debout, le gros bouton est sous « Ta séance », juste au-dessus des deux liens. Écran
   couché, rien n'a changé : il reste dans la colonne de gauche, entre le titre et les liens — sous la séance, dans la
   colonne de droite, il touchait la carte d'accord et le pied sur les écrans bas.) */
/* Écran couché : deux colonnes, et le pied dans le coin en bas à gauche (la barre de préparation en bas au milieu ; le
   coin en bas à droite est celui de la carte d'accord, tant qu'elle est là — mesure.js). */
@media (orientation: landscape) {
  #start { --u: min(0.526vw, 1.04vh); display: none; grid-template-columns: repeat(2, calc(var(--u) * 84)); grid-template-areas: "tete seance" "bouton seance" "liens seance"; column-gap: calc(var(--u) * 8); row-gap: calc(var(--u) * 3.5);
    justify-content: center; align-content: start; align-items: start; padding: calc(var(--u) * 12 + (100vh - var(--u) * 96) / 2) calc(var(--u) * 3) 0; }
  /* (les colonnes partent du haut — décalées de ce qu'il faut pour rester au milieu d'un écran plus haut que la page : la
     colonne de droite s'arrête ainsi toujours au-dessus de la carte d'accord, dans le coin en bas à droite) */
  #start.active { display: grid; }
  #startTete { grid-area: tete; } #startSeance { grid-area: seance; } #startBtn { grid-area: bouton; margin: calc(var(--u) * 0.5) 0 0; } #startLiens { grid-area: liens; }
  #startTete, #startSeance, #startBtn, #startLiens { width: auto; }
  #startFoot { left: calc(var(--u) * 3); right: calc(var(--u) * 3); align-items: flex-start; }
  #startBas { justify-content: flex-start; max-width: calc(50vw - var(--u) * 22); }       /* (il s'arrête avant la barre de préparation, au milieu) */
  html:not(.avec-badge) #privacy { text-align: left; }
  #start .prep { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: calc(var(--u) * 2.6); gap: calc(var(--u) * 1.1); }
  #start .prep-track { width: calc(var(--u) * 30); height: calc(var(--u) * 1.1); }
}
/* La petite carte d'accord (mesure.js), tant qu'elle est là (classe « mg-ouvert » sur la page). Écran debout : elle est en
   bas au milieu, à la place du pied (elle porte le même lien « En savoir plus ») ; le badge et la barre de préparation
   attendent qu'on ait répondu. Rien d'autre ne bouge. Écran couché : elle est dans le coin en bas à droite ; rien à faire. */
@media (orientation: portrait) {
  .mg-ouvert #startFoot { display: none; }
}
/* Préparation des exercices en 3D (prepare.js) : petite barre en bas de l'accueil, visible seulement tant qu'elle dure */
.prep { display: flex; flex-direction: column; align-items: center; gap: 1.2vmin;
  font-size: 2.8vmin; font-weight: 600; color: #8a8076; white-space: nowrap; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s; pointer-events: none; }
.prep.visible { visibility: visible; opacity: 1; }
.prep-track { width: 44vmin; height: 1.2vmin; border-radius: 0.6vmin; background: #ddd5c8; overflow: hidden; }
#prepBar { display: block; width: 100%; height: 100%; background: #e8590c; transform: scaleX(0); transform-origin: left center; transition: transform 0.25s linear; }

/* Écran de jeu */
#game { justify-content: space-between; padding: 0; gap: 0; }
#timerTrack { width: 100%; height: 3vh; background: #ddd5c8; flex: none; }
#timerBar { height: 100%; width: 100%; background: #e8590c; }
/* Rappel de l'exercice en cours, sous la barre de temps */
#drillBar { flex: none; width: 100%; padding: 1vmin 3vw 0; display: flex; align-items: center; justify-content: center; gap: 3vmin; }
#drillName { min-width: 0; font-size: 3.5vmin; font-weight: 700; color: #e8590c; text-align: center; }
/* « Revoir » : remontre l'exercice en cours, puis les mains reviennent (pas pendant une pause) */
#reviewBtn { flex: none; font-size: 3.2vmin; font-weight: 700; padding: 0.9vmin 2.6vmin; border: 2px solid #e8590c; border-radius: 2vmin; background: #fff; color: #e8590c; }
body.paused #reviewBtn { visibility: hidden; }
#stage { flex: 1; width: 100%; min-height: 0; position: relative; }
#hands { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; padding: 1vmin; }
.hand { width: 48%; height: 100%; }
.hand svg { width: 100%; height: 100%; display: block; }
.hand svg path { stroke-width: 3; }
#right svg { transform: scaleX(-1); }
#countdown { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 60vmin; font-weight: 900; }
#stage.counting #countdown { display: flex; }

/* « Plus rapide ! » : grand, contrasté, qui clignote, sans cacher les mains.
   Téléphone à l'horizontale : sur deux lignes, entre les deux mains. À la verticale : au-dessus des mains. */
#faster { position: absolute; z-index: 5; display: none; left: 50%; top: 50%; width: 19vw; transform: translate(-50%, -50%);
  padding: 2vmin 1vmin; border-radius: 3vmin; background: #e8590c; color: #fff; text-align: center;
  font-size: 7.5vmin; font-weight: 900; line-height: 1.05; box-shadow: 0 1vmin 3vmin rgba(232, 89, 12, 0.45); }
#faster.active { display: block; animation: fasterBlink 0.8s ease-in-out infinite; }
@keyframes fasterBlink {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.08); }
}
@media (orientation: portrait) {
  #faster { top: 3vmin; width: auto; white-space: nowrap; padding: 2vmin 6vmin; font-size: 10vmin; transform: translateX(-50%); }
  @keyframes fasterBlink {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.2; transform: translateX(-50%) scale(1.08); }
  }
}
/* Si l'appareil demande moins d'animations : le message clignote toujours, mais sans grossir */
@media (prefers-reduced-motion: reduce) {
  #faster.active { animation-name: fasterFade; }
  @keyframes fasterFade { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
}
#stage.counting #hands { display: none; }

#bottom { width: 100%; flex: none; padding: 1.5vh 3vw; display: flex; align-items: center; justify-content: space-between; gap: 3vw; font-size: 3.5vmin; }
#counts, #remaining { font-weight: 700; white-space: nowrap; }
#counts .ok { color: #0a8f3c; }
#counts .ko { color: #c21818; }
#heard { flex: 1; color: #6b6259; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
#stopBtn { font-size: 3.5vmin; padding: 1.5vmin 3vmin; border: 2px solid #8a8076; border-radius: 2vmin; background: #fff; color: #1c1612; }
/* Pause, à côté de « Stop » (ici, et pendant la présentation d'un exercice) : deux barres ; en pause, le bouton devient
   orange et montre un triangle — le même bouton fait reprendre. De la hauteur de « Stop ». */
.pauseBtn { flex: none; align-self: stretch; display: inline-flex; align-items: center; font-size: 3.5vmin; padding: 1.5vmin 2.6vmin; border: 2px solid #8a8076; border-radius: 2vmin; background: #fff; color: #1c1612; }
.pauseBtn svg { display: block; width: 1.2em; height: 1.2em; fill: currentColor; }
.pauseBtn .i-play, body.paused .pauseBtn .i-pause { display: none; }
body.paused .pauseBtn .i-play { display: block; }
body.paused .pauseBtn { border-color: #e8590c; background: #e8590c; color: #fff; }
/* En pause : plus de mains (le temps est arrêté, on ne compte pas), le mot « Pause » et un grand bouton pour reprendre */
#pausePanel { position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5vmin; }
#pauseWord { font-size: 16vmin; font-weight: 900; line-height: 1; }
body.paused #pausePanel { display: flex; }
body.paused #hands, body.paused #countdown, body.paused #faster { visibility: hidden; }

/* Écran de score */
#scorePercent { font-size: 32vmin; font-weight: 900; line-height: 1; white-space: nowrap; }
#scoreDetail { font-size: 4vmin; color: #5a5048; }

/* Présentation d'un exercice : par-dessus l'écran de jeu, sous la coche et la croix */
#drill { position: fixed; inset: 0; display: none; background: #fff; z-index: 9; }
#drill.active { display: block; }
#drillFrame { width: 100%; height: 100%; border: 0; display: block; }
#drillButtons { position: absolute; right: 3vw; bottom: 1.5vh; display: flex; align-items: center; gap: 3vw; }
#drillStop { font-size: 3.5vmin; padding: 1.5vmin 3vmin; border: 2px solid #8a8076; border-radius: 2vmin; background: #fff; color: #1c1612; }
/* (en pause pendant un exercice : la joueuse reste à l'écran, figée ; le mot « Pause » à côté des boutons) */
#drillPaused { display: none; padding: 1.2vmin 3vmin; border-radius: 99vmin; background: #1c1612; color: #fff; font-size: 3.5vmin; font-weight: 800; }
body.paused #drillPaused { display: block; }

/* Petit interrupteur, dans la barre du bas pendant la séance */
.switch.small { flex: none; font-size: 3.5vmin; gap: 1.5vmin; }
.switch.small .track { width: 9vmin; height: 5.2vmin; border-radius: 2.6vmin; }
.switch.small .thumb { top: 0.5vmin; left: 0.5vmin; width: 4.2vmin; height: 4.2vmin; }
.switch.small input:checked + .track .thumb { transform: translateX(3.8vmin); }

/* Fenêtre d'aide pour l'accès au micro */
#micHelp { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(28, 22, 18, 0.6); z-index: 11; }
#micHelp.active { display: flex; }
#micHelp .box { background: #f6f2ea; border-radius: 16px; padding: 22px; max-width: 34em; max-height: 100%; overflow-y: auto; text-align: left; font-size: clamp(15px, 3.4vmin, 20px); line-height: 1.45; }
#micHelpTitle { font-size: 1.4em; margin-bottom: 8px; }
#micHelp h3 { font-size: 1.05em; margin: 14px 0 4px; }
#micHelp ol { padding-left: 1.4em; }
#micHelpReload { margin-top: 12px; color: #5a5048; }
#micHelpClose { display: block; margin: 18px auto 0; font-size: 1.15em; padding: 10px 36px; }
/* Mode sans calcul : rien à compter, rien à écouter */
#game.silent #counts, #game.silent #heard { visibility: hidden; }

/* Coche / croix plein écran */
#feedback { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10; }
#feedback.ok { display: flex; background: #0a8f3c; }
#feedback.ko { display: flex; background: #c21818; }
#feedback svg { width: 80vmin; height: 80vmin; display: none; }
#feedback.ok #iconOk, #feedback.ko #iconKo { display: block; }

/* Le tutoriel (tuto.js) : une fenêtre par-dessus l'accueil, une étape à la fois — l'image en haut, les mots dessous ;
   écran couché et bas (téléphone) : l'image à gauche, les mots à droite */
#tuto { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(28, 22, 18, 0.6); z-index: 12; }
#tuto.active { display: flex; }
.tuto-boite { width: 100%; max-width: 30rem; max-height: 100%; display: flex; flex-direction: column; padding: 12px 16px 14px; border-radius: 20px; background: #f6f2ea; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); text-align: left; font-size: clamp(16px, 4.2vmin, 20px); line-height: 1.4; }
.tuto-haut { flex: none; display: flex; align-items: center; justify-content: space-between; }
.tuto-compte { font-size: 0.85em; font-weight: 700; color: #8a8076; }
.tuto-fermer { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e6dfd3; color: #1c1612; font-size: 18px; font-weight: 700; cursor: pointer; }
.tuto-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.tuto-image { position: relative; flex: none; height: clamp(140px, 32vh, 320px); display: flex; align-items: center; justify-content: center; }
.tuto-image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border: 2px solid #e2dacd; border-radius: 14px; background: #fff; }
/* (un écran entier : dans un cadre de téléphone) */
.tuto-image.ecran img { height: 100%; width: auto; border: 6px solid #1c1612; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.tuto-bulle { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 4px 16px; border-radius: 99px; background: #e8590c; color: #fff; font-size: 1.3em; font-weight: 900; white-space: nowrap; box-shadow: 0 4px 12px rgba(232, 89, 12, 0.4); }
.tuto-dessin { display: flex; align-items: center; justify-content: center; gap: 18px; height: 100%; }
.tuto-micro span { display: flex; align-items: center; justify-content: center; width: min(34vw, 30vh, 130px); aspect-ratio: 1; border-radius: 18px; }
.tuto-micro .ok { background: #0a8f3c; }
.tuto-micro .ko { background: #c21818; }
.tuto-micro svg { width: 70%; height: 70%; }
.tuto-yeux .grand { font-size: min(20vw, 17vh, 90px); line-height: 1; }
.tuto-yeux .fleche { font-size: min(12vw, 10vh, 50px); font-weight: 900; color: #e8590c; }
.tuto-texte h2 { font-size: 1.45em; line-height: 1.15; margin-bottom: 6px; }
.tuto-mots p + p { margin-top: 6px; }
.tuto-mots ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tuto-mots li { padding: 5px 10px; border-radius: 10px; background: #fff; font-weight: 600; line-height: 1.3; }
/* (ce qu'il faut avant de commencer : de petites étiquettes côte à côte) */
.tuto-mots ul.puces { flex-direction: row; flex-wrap: wrap; }
.tuto-mots ul.puces li { padding: 4px 10px; border-radius: 99px; }
.tuto-points { flex: none; display: flex; justify-content: center; margin: 10px 0 8px; }
.tuto-points button { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
.tuto-points button::before { content: ''; display: block; width: 9px; height: 9px; border-radius: 5px; background: #d5cdbf; transition: width 0.2s, background 0.2s; }
.tuto-points button.actif::before { width: 22px; background: #e8590c; }
.tuto-bas { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tuto-avant { font-size: 1em; font-weight: 700; padding: 10px 14px; border: 2px solid #b9b0a4; border-radius: 12px; background: #fff; color: #1c1612; cursor: pointer; }
.tuto-bas .primary { font-size: 1.1em; padding: 11px 26px; border-radius: 12px; cursor: pointer; }
@media (orientation: landscape) and (max-height: 560px) {
  .tuto-boite { max-width: 48rem; padding: 8px 14px 10px; font-size: clamp(14px, 4.4vmin, 18px); }
  .tuto-corps { flex-direction: row; align-items: flex-start; gap: 16px; }
  .tuto-image { flex: 0 0 42%; height: calc(100vh - 170px); min-height: 120px; position: sticky; top: 0; }
  .tuto-texte h2 { font-size: 1.3em; }
  .tuto-texte { flex: 1; min-width: 0; }
  .tuto-points { margin: 4px 0 2px; }
  .tuto-bas .primary, .tuto-avant { padding-top: 7px; padding-bottom: 7px; }
}
/* (tablette : une fenêtre plus grande, des lettres plus grosses) */
@media (min-width: 700px) and (min-height: 700px) {
  .tuto-boite { max-width: 40rem; padding: 16px 22px 18px; font-size: 22px; }
  .tuto-fermer { width: 46px; height: 46px; font-size: 20px; }
}
/* (dans le tutoriel : les deux interrupteurs de l'accueil, dessinés comme eux — allumé, puis éteint) */
.tuto-inters { flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; width: fit-content; margin: 0 auto; }
.tuto-inter { display: flex; align-items: center; gap: 12px; font-size: 1.15em; }
.tuto-inter .piste { position: relative; flex: none; width: 60px; height: 35px; border-radius: 18px; background: #cfc8ba; }
.tuto-inter .rond { position: absolute; top: 3px; left: 3px; width: 29px; height: 29px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.tuto-inter.on .piste { background: #34c759; }
.tuto-inter.on .rond { left: 28px; }
