/* Visite guidée Léa — Prop 1 (2026-10-23). Sélecteurs .vg- uniquement.
   Carte fixée en haut (les sous-titres ne se battent ni avec le panneau
   Léa en bas, ni avec la barre de navigation). Cibles primaires 72 px. */

#vg-card {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 20px));
  z-index: 3200;
  background: #f7f2e7;
  color: #1a2340;
  border: 2px solid #c9a962;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(10, 14, 30, .45);
  padding: 14px 16px 16px;
  box-sizing: border-box;
}
#vg-card[hidden] { display: none; }

.vg-head { display: flex; align-items: center; gap: 10px; }
.vg-badge { font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.vg-dots { display: inline-flex; gap: 6px; margin-left: 2px; }
.vg-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d8cfb8; display: inline-block;
}
.vg-dots i.on { background: #c9a962; }
.vg-silence {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #6b6250; font-size: 13px; font-weight: 600; text-decoration: underline;
  min-height: 44px; padding: 6px 4px;
}
.vg-silence[hidden] { display: none; }

.vg-sub {
  font-size: 20px; line-height: 1.45; font-weight: 600;
  margin: 10px 0 12px; min-height: 58px;
}

.vg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 10px 20px; border-radius: 14px;
  font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none;
  border: 2px solid transparent; box-sizing: border-box;
}
.vg-btn[hidden] { display: none; }
.vg-btn-primary { background: #1a2340; color: #f7f2e7; min-height: 72px; flex: 1 1 auto; }
.vg-btn-ghost { background: transparent; color: #1a2340; border-color: #b9ac8e; }
.vg-btn-stop {
  background: transparent; color: #8a2f2f; border-color: #c99;
  min-height: 72px; padding: 10px 16px;
}

/* Zone Accueil : checklist + exemple */
#vg-zone { display: block; }
.vg-checklist {
  margin: 12px 0; padding: 14px 16px; border-radius: 16px;
  background: #f7f2e7; color: #1a2340; border: 1.5px solid #c9a962;
}
.vg-checklist-titre { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.vg-check-ligne { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 5px 0; }
.vg-check-etat { font-size: 19px; }
.vg-check-activer { font-weight: 800; color: #1a2340; text-decoration: underline; margin-left: auto; padding: 10px 6px; }
button.vg-check-activer { background: none; border: none; cursor: pointer; font: inherit; font-weight: 800; }
.vg-checklist .vg-btn { margin-top: 10px; min-height: 60px; }

.vg-exemple {
  position: relative; margin: 12px 0; padding: 16px; border-radius: 16px;
  background: #fffdf6; color: #1a2340; border: 2.5px dashed #c0392b;
}
.vg-exemple-badge {
  display: inline-block; background: #c0392b; color: #fff; font-weight: 900;
  font-size: 15px; letter-spacing: .12em; padding: 5px 12px; border-radius: 8px; margin-bottom: 10px;
}
.vg-exemple-ligne { font-size: 18px; }
.vg-urgence {
  background: #c0392b; color: #fff; font-weight: 700; font-size: 13px;
  padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
.vg-exemple-souci { font-size: 17px; margin-top: 4px; }
.vg-exemple-note { font-size: 14px; color: #6b6250; margin-top: 8px; }
.vg-exemple .vg-btn { margin-top: 10px; min-height: 52px; }

@media (max-width: 480px) {
  .vg-sub { font-size: 19px; }
  #vg-card { padding: 12px 13px 13px; }
}

/* Pendant la visite, l'Accueil se décale sous la carte fixe :
   aucun élément de l'écran ne reste recouvert/intappable.
   La hauteur est mesurée en JS sur la carte réelle (--vg-hauteur),
   car les sous-titres longs (branche exemple) la font grandir. */
body.vg-active #accueil-view { padding-top: var(--vg-hauteur, 288px); }
