:root {
  --cream: #f5f1ea;
  --cream-deep: #ebe4d8;
  --wall: #f3efe7;
  --navy: #1a2744;
  --orange: #c97a4a;
  --orange-soft: #d4895c;
  --teal: #7a9ea3;
  --sage: #8aa88a;
  --gold: #c9a24a;
  --wood: #d8cfc0;
  --wood-dark: #c4b7a4;
  --glow: rgba(255, 248, 230, 0.95);
  --font: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ——— Pièce / mur / sol ——— */
.room {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #faf7f1 0%, transparent 55%),
    linear-gradient(180deg, #f7f3ec 0%, var(--cream) 70%, var(--cream-deep) 100%);
}

.wall {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 2rem;
  overflow: hidden;
}

.floor {
  height: clamp(48px, 8vh, 88px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 40%),
    repeating-linear-gradient(
      90deg,
      var(--wood) 0px,
      var(--wood) 42px,
      var(--wood-dark) 42px,
      var(--wood-dark) 44px
    );
  box-shadow: inset 0 8px 18px rgba(90, 70, 40, 0.08);
}

/* ——— Arche en niche ——— */
.arch {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.5rem) auto auto auto;
  width: min(92vw, 520px);
  height: min(86vh, 820px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, #faf6ef 0%, #f0ebe2 100%);
  box-shadow:
    inset 0 0 0 10px #ebe4d6,
    inset 0 0 0 14px #e4dccf,
    inset 0 0 40px rgba(255, 250, 235, 0.8),
    0 18px 40px rgba(90, 70, 40, 0.08);
  pointer-events: none;
  z-index: 0;
}

.arch::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 28px var(--glow);
}

.arch__glow {
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 70% 55% at 50% 35%,
    rgba(255, 252, 245, 0.9) 0%,
    transparent 70%
  );
}

/* ——— Contenu ——— */
.content {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 2.5vh, 1.6rem);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  width: 100%;
}

.brand__logo {
  width: min(52vw, 180px);
  height: min(52vw, 180px);
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--orange);
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 39, 68, 0.08);
  animation: logo-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* ——— Séparateurs ——— */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.divider--line {
  gap: 0.75rem;
}

.divider--line::before,
.divider--line::after {
  content: "";
  flex: 1;
  max-width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.85;
}

.divider--stars {
  gap: 0.85rem;
}

/* ——— Annonce ——— */
.announce {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.announce__city {
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
}

.announce__text {
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.45;
  max-width: 22ch;
  margin: 0 auto;
}

/* ——— Compte à rebours ——— */
.countdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.countdown__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
}

.countdown__pill {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 380px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--orange-soft);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.55);
  backdrop-filter: blur(4px);
}

.countdown__unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.countdown__value {
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  transition: transform 0.25s ease;
}

.countdown__unit-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.countdown__sep {
  align-self: center;
  color: var(--orange-soft);
  font-size: 0.7rem;
  opacity: 0.7;
  padding-bottom: 0.85rem;
}

.countdown__value.is-tick {
  transform: translateY(-2px);
}

/* ——— Étoiles ——— */
.star {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(
    50% 0%,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0% 50%,
    38% 38%
  );
  flex-shrink: 0;
}

.star--orange { color: var(--orange); }
.star--teal { color: var(--teal); }
.star--gold { color: var(--gold); }
.star--sage { color: var(--sage); }

.divider .star {
  width: 11px;
  height: 11px;
}

.spark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
}

.spark--1 { top: 12%; left: 18%; width: 10px; height: 10px; animation-delay: 0s; }
.spark--2 { top: 18%; right: 20%; width: 9px; height: 9px; animation-delay: 0.6s; }
.spark--3 { top: 42%; left: 14%; width: 8px; height: 8px; animation-delay: 1.1s; }
.spark--4 { top: 48%; right: 16%; width: 11px; height: 11px; animation-delay: 0.3s; }
.spark--5 { bottom: 22%; left: 22%; width: 9px; height: 9px; animation-delay: 1.6s; }
.spark--6 { bottom: 28%; right: 24%; width: 8px; height: 8px; animation-delay: 2s; }

/* ——— Animations ——— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(12deg);
  }
}

/* ——— Responsive ——— */
@media (max-width: 480px) {
  .arch {
    width: min(96vw, 420px);
    border-radius: 999px 999px 20px 20px;
  }

  .countdown__pill {
    padding: 0.75rem 0.65rem;
    gap: 0.15rem;
  }

  .countdown__sep {
    display: none;
  }

  .spark--1,
  .spark--2 {
    display: none;
  }
}

@media (min-width: 900px) {
  .arch {
    width: min(48vw, 560px);
  }

  .content {
    width: min(100%, 460px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
