/* ── Visite guidée ─────────────────────────────────────────────────────────── */

/* Overlay semi-transparent */
#vg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9000;
  cursor: pointer;
}

/* Cadre lumineux autour de l'élément ciblé */
#vg-spotlight {
  position: absolute;
  z-index: 9010;
  border-radius: 8px;
  box-shadow:
    0 0 0 4px var(--c1, #2563eb),
    0 0 0 9999px rgba(0, 0, 0, .55);
  pointer-events: none;
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease;
}

/* Élément ciblé : légèrement mis en valeur */
.vg-highlight {
  position: relative;
  z-index: 9011;
}

/* Carte de description */
#vg-carte {
  position: absolute;
  z-index: 9020;
  transform: translate(-50%, 0);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
  padding: 22px 24px 18px;
  font-family: inherit;
}

#vg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#vg-compteur {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c1, #2563eb);
  background: color-mix(in srgb, var(--c1, #2563eb) 12%, white);
  padding: 3px 10px;
  border-radius: 20px;
}

#vg-fermer {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #adb5bd;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
#vg-fermer:hover { color: #dc3545; background: #fff0f0; }

#vg-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.3;
}

#vg-desc {
  font-size: .9rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 18px;
}

#vg-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#vg-nav button {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}
#vg-nav button:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
#vg-nav button:disabled { opacity: .35; cursor: default; }

#vg-prev {
  background: #f0f0f0;
  color: #555;
}
#vg-next {
  background: var(--c1, #2563eb);
  color: #fff;
}

/* ── Bouton de démarrage dans la navbar ─────────────────────────────────────── */
#btn-visite-guidee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
#btn-visite-guidee:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* ── Responsive : carte centrée sur mobile ──────────────────────────────────── */
@media (max-width: 576px) {
  #vg-carte {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 16px 16px 0 0;
    padding: 18px 18px 24px;
  }
}
