/* Page d'attente Miss Africa 2026 : noir, émeraude et or (couleurs de l'édition). */
:root {
  --ink: #0b0b0a;
  --ivory: #f6f1e3;
  --muted: #cfc6b0;
  --gold: #c9a227;
  --gold-light: #e3c766;
  --emerald: #0f7a4f;
  color-scheme: dark;
}

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

html {
  height: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgb(15 122 79 / 0.38), transparent 70%),
    radial-gradient(ellipse 60% 35% at 50% 105%, rgb(201 162 39 / 0.16), transparent 70%),
    var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.top {
  display: flex;
  justify-content: flex-end;
  padding: 20px 16px 0;
}

.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(201 162 39 / 0.35);
  border-radius: 999px;
}

.langs button {
  min-width: 44px;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.langs button:hover {
  color: var(--ivory);
}

.langs button[aria-pressed='true'] {
  background: var(--gold);
  color: #111;
}

.langs button:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
}

/*
 * Le halo doré du logo est coupé aux bords de l'image : un fondu de 4 % sur chaque bord efface la
 * coupure sans toucher aux lettres ; la fusion « screen » le mêle au halo émeraude du fond.
 */
.logo {
  width: min(300px, 68vw);
  height: auto;
  mix-blend-mode: screen;
  --fade-x: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

.eyebrow {
  margin: 28px 0 0;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 0;
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rule {
  width: 96px;
  height: 1px;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.body {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.foot {
  padding: 24px 16px 28px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.foot a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgb(201 162 39 / 0.4);
}

.foot a:hover {
  color: var(--gold-light);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .d1 {
    animation-delay: 0.12s;
  }
  .d2 {
    animation-delay: 0.22s;
  }
  .d3 {
    animation-delay: 0.34s;
  }
  .d4 {
    animation-delay: 0.46s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
