/* Page de lancement Benin4you — couleurs relevées sur le logo officiel. */
:root {
  --carmin: #b81f4a;
  --violet: #632782;
  --bleu: #4074b8;
  --vert: #149440;
  --encre: #1f1a26;
  --gris: #57505f;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 16px 16px 20px;
  background: #fff;
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
}

.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
}

/* Le fichier du logo n'est pas recadré : les marges négatives compensent seulement son propre fond blanc. */
.logo { display: block; width: 100%; max-width: 640px; }
.logo img { display: block; width: 100%; height: auto; margin: -5% 0; }

h1 {
  margin: clamp(20px, 4vh, 36px) 0 8px;
  font-size: clamp(1.75rem, 1.15rem + 2.8vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--violet);
  text-wrap: balance;
}

.presentation { max-width: 34em; margin: 0; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); color: var(--gris); text-wrap: balance; }

.annonce { margin: clamp(20px, 3.5vh, 32px) 0 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); text-wrap: balance; }
.annonce strong { color: var(--carmin); }
.fuseau { margin: 2px 0 0; font-size: 0.9rem; color: var(--gris); }

.compteur {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  width: min(100%, 560px);
  margin: clamp(18px, 3vh, 28px) auto 0;
}
#avant-lancement { width: 100%; }

.case {
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2vw, 18px) 2px clamp(8px, 1.5vw, 14px);
  border: 1px solid #e6e1ea;
  border-top: 4px solid var(--carmin);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(31 26 38 / 6%);
}
.case:nth-child(2) { border-top-color: var(--violet); }
.case:nth-child(3) { border-top-color: var(--bleu); }
.case:nth-child(4) { border-top-color: var(--vert); }

.valeur { font-size: clamp(2rem, 1.2rem + 3.8vw, 3.4rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.unite { font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.9rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gris); }

.en-ligne { margin: 0; font-size: clamp(1.75rem, 1.15rem + 2.8vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--violet); text-wrap: balance; }
.en-ligne:empty { display: none; }
.est-en-ligne .en-ligne { margin-top: clamp(24px, 5vh, 44px); order: 1; }
.est-en-ligne .presentation { order: 2; margin-top: 10px; }
.est-en-ligne h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact { padding-top: 24px; font-size: 0.95rem; }
.contact ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.contact a { display: inline-block; padding: 12px 6px; color: var(--violet); text-underline-offset: 3px; }
.contact a:hover { color: var(--carmin); }
a:focus-visible { outline: 3px solid var(--carmin); outline-offset: 2px; border-radius: 4px; }

.masque { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Petits téléphones : les libellés gardent de l’air dans les cases. */
@media (max-width: 420px) {
  .annonce strong { display: block; font-size: 0.96em; }
  .compteur { gap: 6px; }
  .unite { font-size: clamp(0.6rem, 2.9vw, 0.75rem); letter-spacing: 0; }
}

/* Écrans peu hauts (portables) : tout reste visible sans défilement autant que possible. */
@media (min-width: 700px) and (max-height: 800px) {
  .logo { max-width: 520px; }
  .valeur { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .page > * { animation: apparition 0.7s ease-out both; }
  .page > :nth-child(2) { animation-delay: 0.08s; }
  .page > :nth-child(3) { animation-delay: 0.16s; }
  .page > :nth-child(4) { animation-delay: 0.24s; }
  .valeur.change { animation: pulsation 0.45s ease-out; }
  @keyframes apparition { from { opacity: 0; transform: translateY(10px); } }
  @keyframes pulsation { from { opacity: 0.35; transform: translateY(-3px); } }
}
