/* Police propre a iamcloo : auto-hebergee, famille + fichier neutres, AUCUN binaire
   partage avec une autre LP (Figtree N'EST PAS utilise ici). Sans-serif, font-src 'self'. */
@font-face {
  font-family: 'Cloo Sans';
  src: url('assets/fonts/cloo-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15120f;
  --paper: #f4efe9;
}

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

html, body {
  height: 100dvh;
  overflow: hidden;
}

body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: 'Cloo Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
}

.media {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;       /* repli navigateurs sans dvh */
  height: 100dvh;      /* viewport dynamique (barre Safari iOS) */
  object-fit: cover;
  object-position: center;
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #enter { animation: none; }
}

/* Voile bas pour la lisibilite du CTA — stops propres a cette LP. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 18, 15, 0) 42%,
    rgba(21, 18, 15, 0.28) 72%,
    rgba(21, 18, 15, 0.62) 100%
  );
  pointer-events: none;
}

.lead {
  position: fixed;
  top: clamp(68px, 14vh, 108px);
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  padding: 0 28px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

main {
  position: fixed;
  top: 67%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
}

button {
  margin-top: 8px;
  padding: 11px 32px;
  width: auto;
  max-width: min(340px, 86vw);
  background: #00AFF0;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

button:hover { opacity: 0.86; }
button:disabled { opacity: 0.5; cursor: default; }

@keyframes float {
  0%   { transform: translateY(0)    scale(1);    }
  22%  { transform: translateY(-8px) scale(1.04); }
  40%  { transform: translateY(-2px) scale(1.01); }
  58%  { transform: translateY(-6px) scale(1.03); }
  78%  { transform: translateY(0)    scale(1);    }
  100% { transform: translateY(0)    scale(1);    }
}

#enter {
  animation: float 2.1s ease-in-out infinite;
}

/* Paysage tres court (webview tenu de cote) : ancrer le CTA en bas, safe-area. */
@media (orientation: landscape) and (max-height: 480px) {
  main {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.nojs {
  position: fixed;
  inset: auto 0 0 0;
  padding: 16px;
  text-align: center;
  background: var(--ink);
  font-size: 14px;
}

/* Breakout navigateur : voile non-bloquant injecte en JS (cf. gate.js). Pas de
   carte : fond sombre qui assombrit + floute la LP, texte clair + lien outline.
   z-index au-dessus de main/.lead. Aucun texte ici (copie en JS). */
.exit-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 28px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  background: rgba(21, 18, 15, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.exit-head {
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.exit-tip {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 24px;
}

.exit-sep {
  color: var(--paper);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Lien : fond vide, outline clair, meme rayon que le CTA. <a> n'herite pas du
   style global `button`. */
.exit-veil .exit-act {
  display: inline-block;
  padding: 12px 28px;
  background: none;
  color: var(--paper);
  border: 1.5px solid rgba(244, 239, 233, 0.85);
  border-radius: 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.exit-veil .exit-act:hover { opacity: 0.8; }

/* Repere pointant vers le menu ⋯ (coin superieur droit), anime pour inciter au
   clic. SVG decoratif, ne capte pas les clics. */
.exit-cue {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 72px;
  height: 72px;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  animation: cue-pulse 1.3s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%   { transform: translate(0, 0)      scale(1);    }
  45%  { transform: translate(6px, -6px) scale(1.1);  }
  100% { transform: translate(0, 0)      scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  .exit-cue { animation: none; }
}

/* CTA secondaire : injecte en JS uniquement apres breakout (cf. gate.js).
   L'ICONE EST LE BOUTON : pas de texte, pas de contour, pas de fond. Override du
   style global `button`. DANS le flux de main, juste sous le CTA principal ->
   ecart constant quel que soit l'ecran. */
.more-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.more-cta:hover { opacity: 0.85; }

.more-ic {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
}
