/* Visite virtuelle — ambiance jour / nuit */

.tour-lux-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 162, 91, 0.45);
  background: linear-gradient(
    135deg,
    rgba(12, 10, 8, 0.72),
    rgba(28, 20, 15, 0.55)
  );
  box-shadow:
    0 0 0 1px rgba(255, 235, 200, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  isolation: isolate;
  min-width: min(100%, 17.5rem);
  --lux-x: 25%;
}

.tour-lux-switch.is-compact {
  min-width: min(100%, 14.5rem);
  transform: scale(0.92);
  transform-origin: left center;
}

.tour-lux-switch[data-active="day"] {
  --lux-x: 25%;
  border-color: rgba(199, 162, 91, 0.45);
}

.tour-lux-switch[data-active="night"] {
  --lux-x: 75%;
  border-color: rgba(199, 162, 91, 0.32);
  background: linear-gradient(
    145deg,
    rgba(8, 7, 12, 0.88),
    rgba(20, 16, 28, 0.65)
  );
}

.tour-lux-aura {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background: radial-gradient(
    circle at var(--lux-x, 28%) 50%,
    rgba(212, 175, 95, 0.22),
    transparent 58%
  );
  transition:
    --lux-x 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
}

.tour-lux-switch[data-active="night"] .tour-lux-aura {
  --lux-x: 78%;
  opacity: 1;
  background: radial-gradient(
    circle at var(--lux-x, 78%) 50%,
    rgba(140, 175, 255, 0.18),
    rgba(212, 175, 95, 0.08) 42%,
    transparent 62%
  );
}

.tour-lux-orbit {
  position: absolute;
  top: 50%;
  left: var(--lux-x);
  width: calc(50% - 0.2rem);
  height: calc(100% - 0.5rem);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  transition:
    left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.85s ease,
    box-shadow 0.85s ease;
}

.tour-lux-switch[data-active="day"] .tour-lux-orbit {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 95, 0.95),
    rgba(168, 126, 52, 0.92)
  );
  box-shadow:
    0 8px 26px rgba(168, 126, 52, 0.45),
    0 0 0 1px rgba(255, 245, 220, 0.35) inset;
}

.tour-lux-switch[data-active="night"] .tour-lux-orbit {
  background: linear-gradient(
    180deg,
    rgba(72, 88, 140, 0.95),
    rgba(28, 24, 40, 0.95)
  );
  box-shadow:
    0 8px 28px rgba(40, 52, 110, 0.55),
    0 0 22px rgba(120, 150, 255, 0.15),
    0 0 0 1px rgba(210, 220, 255, 0.2) inset;
}

.tour-lux-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 235, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.5s ease, transform 0.35s ease;
}

.tour-lux-btn:hover {
  color: rgba(255, 248, 235, 0.95);
}

.tour-lux-btn.is-active {
  color: #fffaf0;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.tour-lux-btn:active {
  transform: scale(0.97);
}

.tour-lux-icon {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.tour-lux-icon--sun::before {
  content: "☀";
  filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.6));
  animation: tourSunPulse 3.2s ease-in-out infinite;
}

.tour-lux-icon--moon::before {
  content: "☾";
  filter: drop-shadow(0 0 8px rgba(180, 200, 255, 0.55));
  animation: tourMoonFloat 4.5s ease-in-out infinite;
}

@keyframes tourSunPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes tourMoonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-1px) rotate(4deg);
  }
}

.tour-stage.is-night {
  border-color: rgba(140, 160, 220, 0.22);
}

.tour-stage .tour-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: radial-gradient(
    120% 80% at 50% 0%,
    rgba(255, 200, 120, 0.08),
    transparent 55%
  );
  transition: opacity 1s ease;
}

.tour-stage.is-night .tour-ambient {
  opacity: 1;
  background: radial-gradient(
    90% 70% at 72% 8%,
    rgba(130, 160, 255, 0.12),
    transparent 52%
  ),
    radial-gradient(
      80% 60% at 20% 100%,
      rgba(212, 175, 95, 0.1),
      transparent 55%
    );
}

.tour-frames {
  position: absolute;
  inset: 0;
}

.tour-frames iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transform: scale(1.03);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s ease;
}

.tour-frames iframe.is-live {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.tour-twilight {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 214, 140, 0) 0%,
    rgba(255, 180, 90, 0.35) 35%,
    rgba(70, 50, 120, 0.45) 68%,
    rgba(10, 8, 20, 0.55) 100%
  );
  mix-blend-mode: soft-light;
}

.tour-twilight.is-sweep {
  animation: tourTwilightSweep 1.05s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes tourTwilightSweep {
  0% {
    opacity: 0;
    transform: translateX(-6%) scale(1.02);
  }
  35% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(6%) scale(1);
  }
}

.tour-lux-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-image: radial-gradient(
      1px 1px at 12% 24%,
      rgba(255, 255, 255, 0.65),
      transparent
    ),
    radial-gradient(1px 1px at 78% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 64% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 32% 58%, rgba(255, 230, 180, 0.45), transparent);
  animation: tourStarsDrift 14s linear infinite;
}

.tour-stage.is-night .tour-lux-stars,
.home-tour-stage.is-night .tour-lux-stars {
  opacity: 0.7;
}

@keyframes tourStarsDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/* Accueil */
.home-tour-shell {
  overflow: hidden;
}

.home-tour-stage {
  position: relative;
  min-height: 18rem;
  height: 50vh;
}

@media (min-width: 640px) {
  .home-tour-stage {
    height: 56vh;
  }
}

.home-tour-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(135, 185, 230, 0.22),
    rgba(255, 248, 235, 0) 38%
  );
  transition: background 1.2s ease;
  pointer-events: none;
}

.home-tour-stage.is-night .home-tour-sky {
  background: linear-gradient(
    180deg,
    rgba(20, 24, 48, 0.55),
    rgba(8, 6, 12, 0.15) 45%,
    rgba(212, 175, 95, 0.08) 100%
  );
}

.home-tour-frames {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-tour-frames {
  z-index: 1;
}

.home-tour-frames iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(4px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s ease;
}

.home-tour-frames iframe.is-live {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.home-tour-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 6, 5, 0.82) 0%,
    rgba(8, 6, 5, 0.35) 38%,
    rgba(8, 6, 5, 0.05) 62%,
    transparent 100%
  );
  transition: background 1s ease;
}

.home-tour-stage.is-night .home-tour-veil {
  background: linear-gradient(
    to top,
    rgba(4, 3, 8, 0.88) 0%,
    rgba(12, 10, 22, 0.42) 42%,
    rgba(40, 32, 60, 0.08) 70%,
    transparent 100%
  );
}

.home-tour-panel {
  position: relative;
  z-index: 3;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.75rem 1.25rem 2rem;
  pointer-events: none;
}

.home-tour-panel > * {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .home-tour-panel {
    padding: 2.5rem 3.5rem 3rem;
  }
}

.home-tour-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.92);
  animation: tourKickerShine 4s ease-in-out infinite;
}

@keyframes tourKickerShine {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.home-tour-panel h2 {
  margin: 0;
  max-width: 36rem;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  line-height: 1.08;
  color: #fff8ef;
}

.home-tour-lead {
  margin: 0;
  max-width: 34rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 248, 235, 0.88);
}

.home-tour-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 4;
}

.home-tour-enter {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(212, 175, 95, 0.65);
  background: rgba(8, 6, 5, 0.45);
  color: #fff8ef;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.45s ease;
}

.home-tour-enter::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: var(--shine-x, -120%) 0;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 235, 200, 0.22),
    transparent
  );
  animation: tourCtaShine 5.5s ease-in-out infinite;
}

@keyframes tourCtaShine {
  0%,
  40% {
    --shine-x: -120%;
  }
  55% {
    --shine-x: 120%;
  }
  100% {
    --shine-x: 120%;
  }
}

.home-tour-enter:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 95, 0.95);
  background: rgba(212, 175, 95, 0.18);
}

.home-tour-badge-duo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 235, 0.62);
}

.home-tour-badge-duo span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.85);
  box-shadow: 0 0 10px rgba(212, 175, 95, 0.55);
}

.home-tour-stage.is-night .home-tour-badge-duo span:nth-child(1) {
  opacity: 0.35;
}

.home-tour-stage.is-night .home-tour-badge-duo span:nth-child(2) {
  box-shadow: 0 0 12px rgba(150, 180, 255, 0.65);
  background: rgba(180, 200, 255, 0.9);
}