/* Page d'attente avant le dévoilement officiel (accueil) */

.coming-soon {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px) 20px;
  overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 0%, #164257 0%, #0F2A3F 45%, #0B2233 100%);
  color: var(--cream);
}
/* Après l'échéance : la page d'attente disparaît, l'accueil normal s'affiche. */
.cs-past .coming-soon { display: none; }
/* Pendant l'attente : on fige le défilement de l'accueil masqué derrière. */
.cs-active, .cs-active body { overflow: hidden; }

/* Voile décoratif discret */
.coming-soon__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(198, 138, 46, .16), transparent 70%),
    radial-gradient(45% 45% at 85% 90%, rgba(31, 122, 107, .18), transparent 70%);
  pointer-events: none;
}

.coming-soon__inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  text-align: center;
  animation: fadeUp .5s ease both;
}

.coming-soon__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.coming-soon__logos img {
  height: clamp(52px, 8vw, 66px);
  width: auto;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.coming-soon__kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 12px;
}
.coming-soon__titre {
  font-size: clamp(40px, 9vw, 76px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.coming-soon__lead {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.65;
  color: rgba(247, 245, 240, .82);
  margin: 0 auto clamp(30px, 5vw, 44px);
  max-width: 54ch;
}

/* Compte à rebours */
.coming-soon__countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  margin-bottom: clamp(30px, 5vw, 44px);
}
.cs-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: clamp(12px, 2.4vw, 20px) clamp(10px, 2.6vw, 22px);
  min-width: clamp(64px, 16vw, 104px);
}
.cs-num {
  font-size: clamp(30px, 7vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cs-label {
  font-size: clamp(10px, 1.6vw, 12.5px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.cs-sep {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  color: rgba(198, 138, 46, .55);
  line-height: 1;
  align-self: center;
  margin-top: -14px;
}

/* Événement */
.coming-soon__event {
  display: inline-block;
  border-top: 1px solid rgba(198, 138, 46, .4);
  padding-top: clamp(20px, 3vw, 28px);
}
.cs-event__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.cs-event__date {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.cs-event__place {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(247, 245, 240, .78);
  margin: 0;
}

/* Le point médian de séparation disparaît sur très petit écran pour aérer */
@media (max-width: 420px) {
  .cs-sep { display: none; }
  .coming-soon__countdown { gap: 8px; }
}

/* ===== Ouverture manuelle du site (bouton « Dévoiler le site ») ===== */

/* Fondu de sortie de la page d'attente */
.coming-soon { transition: opacity .85s ease, visibility .85s; }
.cs-leaving .coming-soon { opacity: 0; visibility: hidden; }
.coming-soon [hidden], .cs-go[hidden] { display: none !important; }

/* Message affiché une fois l'heure de l'événement passée */
.coming-soon__wait {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto clamp(30px, 5vw, 44px);
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(232, 180, 92, .35);
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 17px);
  max-width: 100%;
}
.cs-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 0 rgba(232, 180, 92, .6);
  animation: csPulse 1.6s ease-out infinite;
  flex: none;
}
@keyframes csPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 180, 92, .6); }
  100% { box-shadow: 0 0 0 14px rgba(232, 180, 92, 0); }
}

/* Panneau de l'organisateur (/?lancement) */
.cs-launch {
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: clamp(18px, 3vw, 26px);
  max-width: 520px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.cs-launch__label {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.cs-launch__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cs-launch__row input {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font: inherit; font-size: 16px;
}
.cs-launch__row input:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
.cs-launch__btn, .cs-launch__go {
  min-height: 46px;
  padding: 0 22px;
  border: 0; border-radius: 10px;
  background: var(--gold); color: #fff;
  font: inherit; font-weight: 800; font-size: 16px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.cs-launch__btn:hover, .cs-launch__go:hover { background: var(--gold-light); color: var(--navy); }
.cs-launch__go {
  width: 100%;
  min-height: 64px;
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(198, 138, 46, .35);
}
.cs-launch__go:active { transform: scale(.98); }
.cs-launch__go:disabled { opacity: .5; cursor: default; }
.cs-launch__hint { margin: 12px 0 0; font-size: 13.5px; color: rgba(247, 245, 240, .72); }
.cs-launch__reset {
  margin-top: 14px;
  background: none; border: 0;
  color: rgba(247, 245, 240, .6);
  font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}
.cs-launch__reset:hover { color: #fff; }
.cs-launch__msg { margin: 12px 0 0; min-height: 1.2em; font-size: 14px; color: var(--gold-light); }
.cs-launch__msg:empty { display: none; }
.cs-launch__msg.is-error { color: #F5A3A3; }

/* Grand décompte 10 → 0 */
.cs-go {
  position: fixed; /* couvre tout l'écran, même si la page d'attente est défilée */
  inset: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vh, 20px);
  background: radial-gradient(120% 90% at 50% 0%, #164257 0%, #0F2A3F 45%, #0B2233 100%);
  text-align: center;
  animation: fadeUp .4s ease both;
}
.cs-go__label {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light);
}
.cs-go__num {
  font-size: clamp(140px, 42vh, 380px);
  font-weight: 800;
  line-height: .95;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.cs-go__num.is-pop { animation: csPop .9s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes csPop {
  0%   { transform: scale(1.35); opacity: 0; }
  25%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(.94);  opacity: 1; }
}
.cs-go__titre {
  margin: 0;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.01em;
  color: rgba(247, 245, 240, .85);
}

@media (prefers-reduced-motion: reduce) {
  .cs-pulse, .cs-go__num.is-pop, .cs-go { animation: none; }
  .coming-soon { transition: none; }
}
