:root {
  --brand: #ff6b35;
  --bg: #0b0a09;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Full-screen stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.stage__backdrop {
  position: absolute;
  inset: -10%;
  background-image: url("images/bientot-disponible.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.45) saturate(1.2);
  transform: scale(1.1);
  animation: breathe 24s ease-in-out infinite alternate;
}

.stage__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
}

.stage__photo {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1942 / 809;
  border-radius: clamp(10px, 2vw, 20px);
  overflow: hidden;
  background-image: url("images/bientot-disponible.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.stage__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 40%), rgba(255, 107, 53, 0.32), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stage.has-pointer .stage__glow {
  opacity: 1;
}

.stage__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
  opacity: 0.75;
  transform: translate3d(calc(var(--px, 0) * var(--depth, 1) * 1px), calc(var(--py, 0) * var(--depth, 1) * 1px), 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ---------- Click / tap burst ---------- */

.burst {
  position: fixed;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.9);
  pointer-events: none;
  animation: burst-fly 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.85);
  pointer-events: none;
  animation: ring-expand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Keyframes ---------- */

@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -14px; }
}

@keyframes breathe {
  from { transform: scale(1.1); }
  to   { transform: scale(1.22); }
}

@keyframes burst-fly {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  to   { transform: translate3d(var(--tx), var(--ty), 0) scale(0.3); opacity: 0; }
}

@keyframes ring-expand {
  from { transform: scale(0.4); opacity: 0.9; }
  to   { transform: scale(3.2); opacity: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage__photo,
  .stage__backdrop,
  .sparkle,
  .stage__glow {
    transition: none !important;
    animation: none !important;
  }

  .stage__photo {
    transform: none !important;
  }

  .stage__backdrop {
    transform: scale(1.1) !important;
  }
}
