/* ────────────────────────────────────────────────────────────
   Afribox — Coming Soon
   Palette du logo :
     vert très foncé  #0f3d14
     vert foncé       #1b5e20
     vert moyen       #26a25c
     vert clair       #72c18a
     fond doux        #f7f9f7
   ──────────────────────────────────────────────────────────── */

:root {
  --green-900: #0f3d14;
  --green-800: #1b5e20;
  --green-600: #26a25c;
  --green-400: #72c18a;
  --green-200: #c5e4d0;
  --green-50:  #f1f8f3;
  --bg:        #f7f9f7;
  --ink:       #0f1d12;
  --ink-muted: #4a5a4d;

  --radius: 24px;
  --shadow: 0 30px 80px -30px rgba(15, 61, 20, 0.35);
  --max-width: 1240px;
}

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

/* L'attribut HTML [hidden] doit toujours masquer, même si une règle .class
   définit explicitement display: flex / inline-flex (sinon écrasement). */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ════════════════════════════════════════════════════════════
   ARRIÈRE-PLAN VIVANT
   ════════════════════════════════════════════════════════════ */

/* ── Aurora : 3 halos verts qui dérivent ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f7faf7 0%, #eaf4ec 60%, #dcecdf 100%);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.aurora__blob--1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(38, 162, 92, 0.55), transparent 70%);
  top: -180px; left: -160px;
  animation: drift1 22s ease-in-out infinite;
}

.aurora__blob--2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(114, 193, 138, 0.50), transparent 70%);
  top: 30%; right: -180px;
  animation: drift2 26s ease-in-out infinite;
}

.aurora__blob--3 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(27, 94, 32, 0.30), transparent 70%);
  bottom: -260px; left: 40%;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(180px, 100px) scale(1.1); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-160px, 120px) scale(1.05); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, -140px) scale(1.08); }
}

/* ── Réseau de lockers en filigrane ── */
.network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

/* Animation de pulsation pour certains lockers (réseau actif) */
.locker-pulse {
  animation: lockerPulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes lockerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 6px rgba(38, 162, 92, 0.6)); }
}

/* Animation de glissement pour les lignes de flux */
.flows path {
  animation: flowDash 3s linear infinite;
}

@keyframes flowDash {
  to { stroke-dashoffset: -20; }
}

/* ── Vignette : voile radial pour ramener du contraste au centre ── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(247, 250, 247, 0.7) 100%);
}

/* ════════════════════════════════════════════════════════════
   CONTENU
   ════════════════════════════════════════════════════════════ */

.page {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 56px);
}

/* ── Topbar avec badge de statut ── */
.topbar {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 61, 20, 0.10);
  color: var(--green-800);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px -6px rgba(15, 61, 20, 0.1);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  position: relative;
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green-600);
  opacity: 0.5;
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 4vh, 48px) 0;
}

/* ── Colonne texte (gauche) ── */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(38, 162, 92, 0.10);
  color: var(--green-800);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid rgba(38, 162, 92, 0.18);
  backdrop-filter: blur(8px);
}

.title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 11vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--green-900);
}

.title__line { display: block; }

.title__line--accent {
  background: linear-gradient(
    90deg,
    var(--green-800)  0%,
    var(--green-600) 30%,
    var(--green-400) 50%,
    var(--green-600) 70%,
    var(--green-800) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lede {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 56ch;
}

.lede strong {
  color: var(--green-800);
  font-weight: 700;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink);
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(38, 162, 92, 0.18);
  flex-shrink: 0;
}

/* ── Tech-strip (chips) ── */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 61, 20, 0.10);
  color: var(--green-800);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15, 61, 20, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(15, 61, 20, 0.25);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--green-600);
  box-shadow: 0 0 0 2px rgba(38, 162, 92, 0.18);
}

/* ════════════════════════════════════════════════════════════
   FORMULAIRE DE PRÉ-INSCRIPTION
   ════════════════════════════════════════════════════════════ */

.signup {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Champ « pill » : input + bouton dans un même conteneur arrondi */
.signup__field {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(15, 61, 20, 0.10);
  border-radius: 999px;
  padding: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -12px rgba(15, 61, 20, 0.18);
}

.signup__field:focus-within {
  border-color: rgba(38, 162, 92, 0.55);
  box-shadow: 0 12px 32px -10px rgba(38, 162, 92, 0.35);
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.signup__input::placeholder {
  color: rgba(74, 90, 77, 0.7);
}

.signup__input[aria-invalid="true"] {
  color: #b91c1c;
}

.signup__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(27, 94, 32, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.signup__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(27, 94, 32, 0.65);
}

.signup__btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.signup__btn-arrow {
  transition: transform 0.18s ease;
}

.signup__btn:hover:not(:disabled) .signup__btn-arrow {
  transform: translateX(3px);
}

/* Spinner masqué par défaut, visible en .is-loading */
.signup__btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.signup.is-loading .signup__btn-spinner { display: inline-block; }
.signup.is-loading .signup__btn-arrow,
.signup.is-loading .signup__btn-label   { display: none; }

/* Texte d'aide & retour erreur */
.signup__hint {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.signup__feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.signup__feedback--error {
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.20);
  color: #b91c1c;
}

/* État de succès */
.signup__success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(38, 162, 92, 0.12), rgba(114, 193, 138, 0.18));
  border: 1px solid rgba(38, 162, 92, 0.32);
  color: var(--green-900);
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.signup__success > svg {
  flex-shrink: 0;
  color: var(--green-600);
}

.signup__success > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.signup__success strong { font-size: 15px; }
.signup__success span   { font-size: 13.5px; color: var(--ink-muted); }

@keyframes successPop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ════════════════════════════════════════════════════════════
   COLONNE LOGO (droite) — avec parallax 3D
   ════════════════════════════════════════════════════════════ */

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
  /* Padding pour absorber le tilt 3D + halo flou sans déborder de la colonne */
  padding: 4% 6%;
  min-width: 0;
}

.hero__logo::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background:
    radial-gradient(closest-side, rgba(114, 193, 138, 0.55), transparent 70%),
    radial-gradient(closest-side at 30% 40%, rgba(38, 162, 92, 0.25), transparent 60%);
  filter: blur(50px);
  z-index: 0;
  animation: glow 8s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.hero__logo-inner {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.06s linear;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__logo-inner img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(15, 61, 20, 0.25));
  animation: float 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  padding-top: 24px;
  border-top: 1px solid rgba(15, 61, 20, 0.08);
  flex-wrap: wrap;
}

.footer__sep { color: var(--green-400); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__text {
    order: 2;
    align-items: center;
  }

  .lede,
  .features,
  .tech-strip,
  .cta { margin-inline: auto; }

  .features { text-align: left; }

  .hero__logo { order: 1; }
  .hero__logo-inner img { max-width: 280px; }

  .vignette {
    background: radial-gradient(ellipse at center, transparent 0%, transparent 25%, rgba(247, 250, 247, 0.85) 100%);
  }
}

@media (max-width: 480px) {
  .hero__logo-inner img { max-width: 220px; }
  .title { font-size: clamp(52px, 16vw, 80px); }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITÉ — réduire les animations
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .locker-pulse,
  .flows path,
  .hero__logo-inner img,
  .hero__logo::before,
  .status__dot::after,
  .title__line--accent {
    animation: none !important;
  }

  .network circle[r] {
    /* arrêter les particules SMIL */
    visibility: hidden;
  }
}
