/* =========================================================
   Page d'attente — compte à rebours jusqu'au 11/01/2027
   Le halo vide occupe le centre ; il se dessine un peu plus chaque jour.
   Reprend les styles du site (main.css) : grille, grain, aurore, lettres.
   ========================================================= */
.page-attente { overflow: hidden; }
.page-attente .top { grid-template-columns: 1fr auto; }
.page-attente .top__actions { grid-column: 2; }

.wait { position: fixed; inset: 0; z-index: 2; min-height: 0; }

/* intitulé au-dessus du halo */
.wait__kicker {
  position: absolute; left: 50%; top: 12vh; transform: translateX(-50%);
  white-space: nowrap;
}
.is-in .wait__kicker.fade { transform: translateX(-50%); }
.wait__kicker.fade { transform: translate(-50%, 14px); }
.wait__kicker .dash { animation: wait-pulse 3.2s var(--ease) infinite; }
@keyframes wait-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------------- Compte à rebours ---------------- */
.cd {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 26px);
  opacity: 0; filter: blur(10px);
  transition: opacity 1.6s var(--ease) 0.5s, filter 1.6s var(--ease) 0.5s;
}
.is-in .cd { opacity: 1; filter: blur(0); }
.cd__grp { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cd__num {
  display: flex;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7vw, 118px); line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
}
.cd__num .dg { display: inline-block; width: 0.56em; text-align: center; }
.cd__num .dg.tick { animation: dg-in 0.9s var(--spring) both; }
@keyframes dg-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(-0.28em) scale(0.92); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.cd__sep {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 56px); line-height: 1;
  color: var(--faint); padding-top: 0.42em;
}
.cd__u { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
/* les secondes, plus discrètes : on les sent passer plus qu'on ne les lit */
.cd__grp:last-child .cd__num { color: var(--dim); }

/* ---------------- Bas de page ---------------- */
.wait__low {
  position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.wait__phrase { font-size: clamp(22px, 2.2vw, 36px); font-style: italic; font-weight: 300; line-height: 1.15; color: var(--dim); }
.wait__phrase .line { white-space: nowrap; }
.wait__meta {
  display: flex; gap: 22px;
  font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
}
.wait__day {
  background: var(--aurora); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: aurora-flow 7s linear infinite;
}
.wait__pct { font-variant-numeric: tabular-nums; }

/* ---------------- Ouverture (à zéro) ---------------- */
.done {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
}
.done__title { font-size: clamp(44px, 6.4vw, 110px); }
.is-done .done { opacity: 1; pointer-events: auto; }
.is-done .cd, .is-done .wait__low, .is-done .wait__kicker { opacity: 0 !important; transition: opacity 1s var(--ease); }
.done .link { opacity: 0; transition: opacity 1.2s var(--ease) 1.6s; }
.is-done .done .link { opacity: 1; }
.done .ch { opacity: 0; }
.is-done .done .ch {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--spring), filter 0.9s var(--ease);
  transition-delay: calc(var(--i) * 45ms + 300ms);
}

/* ---------------- Son ---------------- */
.son {
  display: flex; align-items: center; gap: 9px; padding: 8px 2px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); transition: color 0.3s;
}
.son:hover, .son.is-on { color: var(--ink); }
.son__barres { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.son__barres i {
  width: 2px; height: 100%; background: currentColor; border-radius: 1px;
  transform-origin: bottom; transform: scaleY(0.22); transition: transform 0.6s var(--ease);
}
.son.is-on .son__barres i { transform: scaleY(var(--h, 0.3)); transition: transform 0.09s linear; }
.son.is-loading .son__barres i { animation: son-attente 1.1s var(--ease) infinite; }
.son.is-loading .son__barres i:nth-child(2) { animation-delay: 0.14s; }
.son.is-loading .son__barres i:nth-child(3) { animation-delay: 0.28s; }
.son.is-loading .son__barres i:nth-child(4) { animation-delay: 0.42s; }
@keyframes son-attente { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(0.75); } }

/* ---------------- Téléphone ---------------- */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .page-attente .top .lang { display: flex; }
  .wait__kicker { top: 14vh; }
  .cd { gap: 6px; transform: translate(-50%, -60%); }
  .cd__num { font-size: clamp(34px, 11vw, 60px); }
  .cd__sep { font-size: 22px; }
  .cd__grp { gap: 10px; }
  .cd__u { font-size: 8px; letter-spacing: 0.2em; }
  .wait__low { bottom: 13vh; width: calc(100% - 2 * var(--pad)); }
  .wait__phrase { font-size: 22px; }
  .wait__phrase .line { white-space: normal; }
  .wait__meta { flex-direction: column; gap: 10px; }
}

/* Pied : © + lien Mentions légales, discret */
.foot__g { display: flex; gap: 18px; align-items: baseline; }
.foot__l { color: inherit; text-decoration: none; }
.foot__l:hover { color: var(--ink); }
