/* ==================================================================
   tour.css, la visite guidée.

   Quatre panneaux opaques cadrent la cible plutôt qu'un trou découpé
   dans un calque : c'est moins cher à repeindre, et la cible reste
   réellement cliquable.
   ================================================================== */

.tour {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.tour-mask {
  position: fixed;
  background: rgba(4, 4, 10, .78);
  backdrop-filter: blur(1.5px);
  pointer-events: auto;
  transition: all .28s var(--ease-out);
}

.tour-ring {
  position: fixed;
  border: 2px solid #8bb4ff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 28px -4px rgba(139, 180, 255, .8);
  opacity: 0;
  pointer-events: none;
  transition: all .28s var(--ease-out);
  animation: tour-pulse 2.2s ease-in-out infinite;
}
@keyframes tour-pulse {
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 40px -2px rgba(139, 180, 255, 1); }
}

.tour-bubble {
  position: fixed;
  z-index: 2;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(26, 26, 40, .99), rgba(12, 12, 20, .99));
  box-shadow: var(--shadow), 0 0 60px -20px rgba(139, 180, 255, .6);
  pointer-events: auto;
  transition: left .28s var(--ease-out), top .28s var(--ease-out);
}

.tour-step {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.tour-bubble h2 { margin: 5px 0 7px; font-size: 18px; letter-spacing: -.01em; }
.tour-bubble p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.tour-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.tour-skip {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-skip:hover { color: var(--ink); }

.tour-dots { flex: 1 1 auto; display: flex; gap: 5px; justify-content: center; }
.tour-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: all .3s;
}
.tour-dots i.is-on { width: 18px; border-radius: 999px; background: #8bb4ff; }

.tour-next { padding: 9px 18px; font-size: 13px; }

@media (max-width: 480px) {
  .tour-bubble { padding: 15px 16px 14px; }
  .tour-bubble h2 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-ring { animation: none; }
  .tour-mask, .tour-ring, .tour-bubble { transition: none; }
}

/* l'étape « à faire » : la visite s'efface pendant l'ouverture */
.tour.is-paused { display: none; }
.tour-wait {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 211, 106, .14);
  color: #ffe08a;
  font-size: 13px;
  font-weight: 700;
}
.tour-wait[hidden] { display: none; }
.tour.is-waiting .tour-ring { animation-duration: 1.2s; }

/* Pendant la visite, seule la cible répond : les pastilles posées sur le
   présentoir (disque du jour, vitrine) et les flèches ne doivent pas
   emmener ailleurs. */
body.tour-on .daily-btn,
body.tour-on .showcase-btn,
body.tour-on .shop-nav,
body.tour-on .shop-vols,
body.tour-on .browse { pointer-events: none; }
