/* Costume Swipe — page d'attente (/), en attendant l'ouverture.
   Toutes les valeurs viennent de brand.css ; seuls restent les littéraux
   structurels (0, 100 %, angles de rotation) et le seuil de la media query,
   où var() n'est pas autorisé par CSS. */

@import url('brand.css');

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.attente {
  flex: 1;
  width: 100%;
  max-width: calc(var(--space-10) * 8);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Logo rond : tourne dans le sens des aiguilles d'une montre. */
.attente__logo {
  width: calc(var(--space-10) - var(--space-4));
  height: calc(var(--space-10) - var(--space-4));
  animation: tourne var(--duration-spin) linear infinite;
}

@keyframes tourne {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

.attente__carte {
  background: var(--color-accent);
  color: var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.attente__carte a {
  color: var(--color-black);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.attente__carte a:hover { text-decoration-thickness: var(--space-1); }

.attente__carte a:focus-visible {
  outline: var(--space-1) solid var(--color-black);
  outline-offset: var(--space-1);
  border-radius: var(--radius-sm);
}

.attente__pied {
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text);
}

.attente__pied a { color: var(--color-text); }

/* Desktop (maquette) : logo en haut à gauche, carte centrée juste en dessous, texte en --text-xl. */
@media (min-width: 768px) {
  .attente {
    max-width: none;
    padding: var(--space-8) var(--space-8) var(--space-9);
    gap: var(--space-3);
  }
  .attente__logo {
    width: calc(var(--space-10) + var(--space-8));
    height: calc(var(--space-10) + var(--space-8));
  }
  .attente__carte {
    align-self: center;
    max-width: calc(var(--space-10) * 5 + var(--space-8));
    padding: var(--space-6);
    font-size: var(--text-xl);
  }
}

/* Mots composés gardés sur une seule ligne (« bêta-testeurs »). */
.insecable { white-space: nowrap; }
