/* ══════════════════════════════════════════════════════════════════════════
   VISITE GUIDÉE « SPOTLIGHT » — styles partagés élève / professeur.
   29/08/2026 — remplace le tutoriel en diapositives : la page est floutée
   et assombrie, sauf la zone présentée, entourée d'un anneau lumineux et
   accompagnée d'une carte de texte. Voir apps/shared/visite-guidee.js.
   Règle du projet : le CSS vit ici, jamais dans une chaîne JavaScript.
   ══════════════════════════════════════════════════════════════════════ */

.vg-panneau {
  position: fixed;
  z-index: 1000010;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
}

/* Capte le clic sur la zone éclairée : pendant la visite, un clic n'importe
   où fait avancer, il ne déclenche pas l'élément présenté. */
.vg-fenetre {
  position: fixed;
  z-index: 1000011;
  background: transparent;
  cursor: pointer;
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
}

.vg-anneau {
  position: fixed;
  z-index: 1000012;
  border: 3px solid #fbbf24;
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35), 0 0 26px rgba(251, 191, 36, 0.55);
  pointer-events: none;
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease, opacity .28s ease;
  animation: vg-pulsation 3.2s ease-in-out 3; /* 3 pulsations douces puis halo fixe */
}

@keyframes vg-pulsation {
  0%, 100% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35), 0 0 26px rgba(251, 191, 36, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.28), 0 0 30px rgba(251, 191, 36, 0.62); }
}
@media (prefers-reduced-motion: reduce) { .vg-anneau { animation: none !important; } }

.vg-carte {
  position: fixed;
  z-index: 1000013;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 18px 20px 14px;
  width: min(380px, calc(100vw - 24px));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  transition: top .28s ease, left .28s ease;
}

.vg-carte h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vg-carte p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
}

.vg-etape {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
}

.vg-boutons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.vg-nav { display: flex; gap: 8px; }

.vg-btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}

.vg-btn-primaire {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}

.vg-btn-discret {
  background: #eef2f7;
  color: #334155;
}

.vg-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.vg-passer {
  border: 0;
  background: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 2px;
}

.vg-case {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #475569;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 560px) {
  .vg-carte { padding: 14px 14px 10px; }
  .vg-carte p { font-size: 0.9rem; }
}
