/* Police : pile systeme pour le squelette (aucun binaire de police a partager).
   Quand une police custom sera fournie, l'ajouter ici en @font-face avec un
   nom de famille et un fichier propres a iamcloo. */

: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: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
}

.media,
.media-img {
  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;
}

/* Masque le bouton play natif iOS (affiche quand Safari bloque l'autoplay). */
.media::-webkit-media-controls,
.media::-webkit-media-controls-enclosure,
.media::-webkit-media-controls-panel,
.media::-webkit-media-controls-overlay-play-button,
.media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .media, .media-img { display: none; }
  body {
    background-image: url('assets/hero-cover.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  #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(64px, 13vh, 104px);
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  padding: 0 26px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(244, 239, 233, 0.86);
}

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

button {
  margin-top: 8px;
  padding: 12px 34px;
  width: 100%;
  max-width: 210px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 48px;
  font: 600 13px/1 inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  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;
}
