/* Page de garde « Coming soon » : voile flouté sur le site, logo en apesanteur, poussière d'or.
   Visible seulement quand le serveur marque la page (COMING_SOON) et que ce navigateur n'a pas le passe. */
#gate { display: none; }
html.gate-on, html.gate-on body { overflow: hidden; height: 100%; }
html.gate-on #gate { display: flex; }
/* colonne : le contenu au centre, la mention « site en construction » en bas, sans jamais se chevaucher */

#gate {
  position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px max(18px, env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto;
  -webkit-backdrop-filter: blur(30px) saturate(1.1); backdrop-filter: blur(30px) saturate(1.1);
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(255, 250, 238, .78), rgba(255, 250, 238, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(251, 248, 244, .74), rgba(246, 236, 234, .9) 62%, rgba(120, 70, 60, .2));
  transition: opacity 1s ease, -webkit-backdrop-filter 1s ease, backdrop-filter 1s ease;
}
#gate.leaving { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); pointer-events: none; }
#gate .gate-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.gate-inner { position: relative; width: 100%; max-width: 720px; margin: auto 0; animation: gate-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* logo en apesanteur */
.gate-logo { position: relative; width: clamp(130px, min(30vw, 22vh), 190px); aspect-ratio: 1; margin: 0 auto 32px; animation: gate-float 7s ease-in-out infinite; }
@keyframes gate-float { 50% { transform: translateY(-12px); } }
.gate-logo .medal { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1.5px rgba(183, 150, 83, .75), 0 0 0 9px rgba(255, 255, 255, .55), 0 0 0 10px rgba(183, 150, 83, .28), 0 24px 60px -20px rgba(78, 35, 42, .45); }
.gate-logo .medal img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* la couronne ne s'illumine qu'au passage de la souris, ou du doigt (classe .glow posée par gate.js) */
@media (hover: hover) { .gate-logo:hover .medal img + img { animation: crownglow 2.4s ease-in-out infinite; } }
.gate-logo.glow .medal img + img { animation: crownglow 2.4s ease-in-out 1; }
.gate-logo .halo { position: absolute; inset: -38%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 220, 149, .55), rgba(233, 196, 106, .18) 38%, rgba(233, 196, 106, 0) 66%);
  animation: gate-halo 7s ease-in-out infinite; }
@keyframes gate-halo { 50% { transform: scale(1.08); opacity: .7; } }
/* petites étoiles qui scintillent autour du médaillon */
.gate-logo .glint { position: absolute; width: 14px; aspect-ratio: 1; opacity: 0;
  background: radial-gradient(circle, #fff 0 16%, #F3DC95 38%, #C9A24B 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 3.2s ease-in-out infinite; }
.gate-logo .glint:nth-of-type(1) { left: 88%; top: 10%; animation-delay: .4s; }
.gate-logo .glint:nth-of-type(2) { left: 4%; top: 30%; width: 10px; animation-delay: 1.5s; }
.gate-logo .glint:nth-of-type(3) { left: 82%; top: 86%; width: 11px; animation-delay: 2.4s; }

.gate-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.gate-eyebrow::before, .gate-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
/* « Coming soon » en calligraphie (Pinyon Script, chargée seulement ici) */
.gate-title { margin: 6px 0 14px; font-family: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive; font-size: clamp(40px, 12vw, 116px); max-width: 100%; font-weight: 400; letter-spacing: 0; line-height: 1.2; padding: .05em .25em .15em; white-space: nowrap;
  color: var(--wine);
  background: linear-gradient(100deg, var(--wine) 0 42%, #C9A24B 48%, #F3DC95 50%, #C9A24B 52%, var(--wine) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gate-shine 7s ease-in-out 1.2s infinite; }
@keyframes gate-shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }
.gate-sub { font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-soft); max-width: 440px; margin: 0 auto; line-height: 1.6; }
/* compte à rebours, chiffres digitaux */
.gate-count { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.4vw, 18px); margin: 26px auto 0; }
.gate-count[hidden] { display: none; }
.gate-count div { display: flex; flex-direction: column; align-items: center; min-width: clamp(52px, 13vw, 76px); }
.gate-count b { font-family: 'Oxanium', ui-monospace, monospace; font-weight: 200; font-size: clamp(30px, 7vw, 50px); line-height: 1.05; color: var(--wine);
  font-variant-numeric: tabular-nums; letter-spacing: .12em; margin-right: -.12em; text-shadow: 0 0 22px rgba(233, 196, 106, .35); }
.gate-count b.tick { animation: gate-tick .7s ease-out both; }
@keyframes gate-tick { from { opacity: 0; filter: blur(3px); transform: translateY(-4px); } }
.gate-count span { margin-top: 8px; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 300; }
.gate-count i { font-style: normal; font-family: 'Oxanium', monospace; font-weight: 200; font-size: clamp(22px, 5vw, 34px); color: var(--gold); line-height: 1.3; opacity: .7; }
/* Adhésion depuis la page de garde : le formulaire s'ouvre par-dessus le voile */
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.gate-join { min-height: 46px; padding: 0 28px; border-radius: 999px; background: var(--wine); color: #fff; font: 500 15px/1 var(--font); letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(183,150,83,.6), 0 12px 28px -12px rgba(78,35,42,.6); transition: transform .2s, box-shadow .2s; }
.gate-join:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--gold), 0 16px 34px -12px rgba(78,35,42,.7); }
html.gate-on .scrim { z-index: 1100; }
html.gate-on .modal { z-index: 1101; }
.gate-ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; padding: 10px 20px 10px 16px; border-radius: 999px; font-size: 14.5px; color: var(--wine); text-decoration: none;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(183, 150, 83, .45); transition: background .2s, box-shadow .2s, transform .2s; }
.gate-ig:hover { background: #fff; box-shadow: 0 0 0 1px var(--gold), 0 8px 24px -12px rgba(183, 150, 83, .7); transform: translateY(-1px); }
.gate-wip { position: relative; flex: none; margin-top: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gate-wip::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 8px rgba(233, 196, 106, .9); animation: gate-halo 2.4s ease-in-out infinite; }
.gate-ig[hidden] { display: none; }


/* coin secret en haut à droite (10 clics pour entrer) */
.gate-key { position: fixed; top: 0; right: 0; width: 72px; height: 72px; z-index: 1001; background: transparent; border: 0; padding: 0;
  cursor: default; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gate-key:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .gate-count b.tick { animation: none; }
  .gate-inner, .gate-logo, .gate-logo .halo, .gate-logo .glint, .gate-title, .gate-logo .medal img + img { animation: none !important; }
  .gate-logo .glint { opacity: .8; transform: translate(-50%, -50%); }
  .gate-title { background-position: 100% 0; }
}
