/* Page d’attente : logo animé puis figé, et annonce en roumain sur fond noir. */
.intro-page {
  background: #000;
  color: #d0b17b;
  font-family: Arial, Helvetica, sans-serif;
}

/* 100dvh suit la hauteur visible sur mobile lorsque la barre du navigateur bouge. 100vh reste la
   valeur de secours pour les navigateurs plus anciens. */
.intro-stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px;
  opacity: 1;
  transition: opacity 600ms ease-in-out;
}

/* La page s’efface avant la redirection vers l’accueil. */
.intro-leaving .intro-stage {
  opacity: 0;
}

/* Petit écrin carré centré : 340 px maximum sur ordinateur, avec une marge confortable sur
   téléphone. La limite en dvh évite de déborder en paysage. */
.intro-video,
.intro-poster {
  display: block;
  width: min(340px, 78vw, 62vh);
  width: min(340px, 78vw, 62dvh);
  height: auto;
  aspect-ratio: 1;
  /* Conserve toute la vidéo dans le carré sans étirer ni couper le logo. */
  object-fit: contain;
  background: #000;
  /* Le même noir que la page, sans cadre ni ombre, efface les limites du carré. */
  border: 0;
  border-radius: 0;
  pointer-events: none;
  /* Apparition progressive, sans déplacement ni agrandissement du logo. */
  animation: intro-appear 200ms ease-out both;
}

.intro-message {
  max-width: min(100%, 760px);
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .18em;
  text-indent: .18em;
  text-align: center;
  text-wrap: balance;
}

@keyframes intro-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Respecte les visiteurs qui demandent moins d’animations dans leur appareil. */
@media (prefers-reduced-motion: reduce) {
  .intro-video,
  .intro-poster {
    animation: none;
  }

  .intro-stage {
    transition: none;
  }
}

@media (max-width: 600px) {
  .intro-message {
    font-size: clamp(24px, 8vw, 34px);
    letter-spacing: .08em;
    text-indent: .08em;
  }
}
