/*
  Page d'attente de reforgestory.com.
  Mêmes jetons que reforge-story/src/app/globals.css : fond froid, un seul
  accent magenta, Archivo pour les titres, Instrument Sans pour le texte.
  Polices servies d'ici : aucune requête vers un tiers.
*/

@font-face {
  font-family: 'Archivo';
  src: url('polices/archivo-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('polices/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --fond: #08090d;
  --surface: #0f1119;
  --trait: rgba(255, 255, 255, 0.13);
  --trait-doux: rgba(255, 255, 255, 0.07);
  --texte: #eef0f6;
  --texte-corps: #c0c5d2;
  --texte-doux: #9197a6;
  --texte-faible: #6c7382;
  --accent: #e3357f;
  --accent-vif: #ff67a8;
  --rayon: 10px;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
}

body {
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .page {
    padding: 0 40px;
  }
}

/* ---------- Barre ---------- */

.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  border-bottom: 1px solid var(--trait-doux);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.pastille {
  width: 9px;
  height: 9px;
  background: var(--accent);
  animation: respire 3.2s ease-in-out infinite;
}

@keyframes respire {
  50% {
    opacity: 0.45;
  }
}

.statut {
  font-size: 13.5px;
  color: var(--texte-doux);
}

/* ---------- Accroche ---------- */

.contenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 72px 0 80px;
}

@media (min-width: 900px) {
  .contenu {
    padding-top: 112px;
    gap: 88px;
  }
}

.accroche {
  max-width: 62ch;
}

h1 {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.chapo {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--texte-corps);
}

/* Écrire n'engage rien : lien souligné, pas d'aplat magenta. */
.contact {
  display: inline-block;
  margin-top: 32px;
  font-size: 16px;
  color: var(--texte);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}

.contact:hover {
  color: var(--accent-vif);
}

.contact:focus-visible {
  outline: 2px solid var(--accent-vif);
  outline-offset: 4px;
}

/* ---------- Étapes ---------- */

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--trait-doux);
  border-top: 1px solid var(--trait-doux);
  border-bottom: 1px solid var(--trait-doux);
}

@media (min-width: 760px) {
  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.etapes li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 24px 4px;
  background: var(--fond);
}

@media (min-width: 760px) {
  .etapes li {
    padding: 28px 24px 28px 0;
  }

  .etapes li + li {
    padding-left: 24px;
  }
}

.numero {
  grid-row: span 2;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.titre {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.texte {
  font-size: 14.5px;
  color: var(--texte-doux);
}

/* ---------- Films ---------- */

.films {
  margin: 0;
}

.affiches {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .affiches {
    grid-template-columns: repeat(3, 1fr);
  }
}

.affiches img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--surface);
}

figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--texte-faible);
}

/* ---------- Pied ---------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--trait-doux);
  font-size: 12.5px;
  color: var(--texte-faible);
}

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

  .contact {
    transition: none;
  }
}
