/* Guide de première utilisation (guide.js) : zone entourée, reste de la page assombri, feuille en bas. */
#guide { position: fixed; inset: 0; z-index: 10000; touch-action: none; }
#guide[hidden] { display: none; }
.guide-trou {
  position: fixed; border: 3px solid #f0a050; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(8, 20, 14, .72), 0 0 0 6px rgba(240, 160, 80, .35);
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease;
  animation: guide-pulse 1.6s ease-in-out infinite;
}
@keyframes guide-pulse { 50% { border-color: #ffd29b; } }
.guide-feuille {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 18px 20px calc(16px + env(safe-area-inset-bottom));
  background: var(--carte); color: var(--texte); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
  display: grid; gap: 8px; justify-items: center; text-align: center; touch-action: auto;
}
.guide-points { display: flex; gap: 6px; margin: 0; }
.guide-points i { width: 8px; height: 8px; border-radius: 50%; background: var(--bord); }
.guide-points i.fait { background: var(--vert); opacity: .5; }
.guide-points i.ici { background: var(--vert); width: 22px; border-radius: 4px; }
.guide-fon { margin: 4px 0 0; font-size: 21px; line-height: 1.45; font-weight: 600; color: var(--texte); }
.guide-fr { margin: 0; font-size: 15px; color: var(--doux); }
.guide-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
/* #guide : plus précis que button.secondaire et button.principal de style.css, qui imposent leur remplissage et leur taille. */
#guide .guide-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  height: 52px; min-height: 0; margin: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; line-height: 1;
}
.guide-actions svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
#guide .guide-ecouter { width: 52px; border-radius: 50%; border: 0; background: var(--vert); color: var(--fond); }
#guide .guide-precedent { width: 52px; border-radius: 50%; color: var(--vert); background: var(--carte); border: 2px solid var(--vert); }
#guide .guide-precedent:disabled { opacity: .35; }
#guide .guide-actions .guide-suivant { padding: 0 20px 0 24px; border-radius: 26px; }
#guide button:focus-visible { outline: 3px solid #f0a050; outline-offset: 2px; }
.guide-ecouter.attire, .guide-suivant.pret { animation: guide-appel 1.1s ease-in-out infinite; }
@keyframes guide-appel { 50% { box-shadow: 0 0 0 8px rgba(240, 160, 80, .45); } }
.guide-passer { margin-top: 2px; font-size: 14px; }
/* Bouton « ? » de l'en-tête */
#btn-guide { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-weight: 700; font-size: 16px; line-height: 1; cursor: pointer; background: transparent; }
@media (prefers-reduced-motion: reduce) { .guide-trou, .guide-ecouter.attire, .guide-suivant.pret { animation: none; transition: none; } }

/* Le contenu défile assez pour que la zone montrée ne finisse jamais sous la feuille (accueil, panneau, listes). */
html.guide-actif body, html.guide-actif .panneau-fil { padding-bottom: var(--guide-h, 380px); }
html.guide-actif body.orbe .gauche { padding-bottom: var(--guide-h, 380px); }
