/* NexumLabs — gateway 21+ : même structure que la gateway Optima Labs, aux couleurs du site
   nexumlabs.eu (blanc, encre #0d0f15, indigo #2b2fd9, boutons pilule).
   Typographies : Schibsted Grotesk + JetBrains Mono (étiquettes), comme le site. Fichier autonome. */
.gateway-page {
  --gw-bg: #ffffff;
  --gw-surface: #f3f4f8;
  --gw-ink: #0d0f15;
  --gw-text: #565b67;
  --gw-soft: #6b7080;
  --gw-line: rgba(13, 15, 21, 0.11);
  --gw-accent: #2b2fd9;       /* bouton : 7,6:1 avec texte blanc */
  --gw-accent-ink: #2326c0;   /* liens et survol */
  --gw-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gw-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gw-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #ffffff; }

.gateway-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  background: transparent; /* le fond est porté par html : l'arrière-plan reste visible */
  color: var(--gw-text);
  font-family: var(--gw-sans);
  font-size: 1rem;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
.gateway-page a { color: inherit; text-decoration: none; }
.gateway-page svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

/* ----- Arrière-plan : halos indigo + trame de points, voilés au centre ----- */
.gateway__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(43, 47, 217, 0.13) 0%, rgba(43, 47, 217, 0) 70%),
    radial-gradient(ellipse 55% 50% at 92% 100%, rgba(82, 86, 255, 0.12) 0%, rgba(82, 86, 255, 0) 70%),
    var(--gw-bg);
  animation: gw-fade 900ms var(--gw-ease) both;
}
.gateway__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 15, 21, 0.13) 1px, transparent 1.2px);
  background-size: 26px 26px;
}
.gateway__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 62% at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.2) 100%);
}

/* ----- Contenu, sans cadre ----- */
.gateway {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 16px;
}
.gateway__panel {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: gw-rise 700ms var(--gw-ease) both;
}

.gateway__logo {
  display: block;
  width: 220px;
  height: auto;
  margin-bottom: 36px;
}

/* Étiquette pilule, comme « 19K+ pedidos… » dans le hero du site. */
.gateway__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px;
  border: 1px solid var(--gw-line);
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 15, 21, 0.04);
  color: var(--gw-text);
  font-family: var(--gw-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.gateway__pill-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--gw-accent); }

.gateway h1 {
  margin: 0 0 18px;
  color: var(--gw-accent);
  font-family: var(--gw-sans);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.gateway__sep { color: var(--gw-ink); opacity: 0.35; }

.gateway__intro {
  max-width: 52ch;
  margin: 0 0 32px;
  color: var(--gw-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.gateway__enter {
  min-width: 260px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  background: var(--gw-accent);
  box-shadow: 0 8px 22px rgba(43, 47, 217, 0.22);
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 200ms var(--gw-ease), box-shadow 200ms var(--gw-ease);
}
.gateway-page .gateway__enter { color: #fff; }
.gateway__enter:hover { background: var(--gw-accent-ink); box-shadow: 0 10px 26px rgba(43, 47, 217, 0.32); }
.gateway__arrow { transition: transform 200ms var(--gw-ease); }
.gateway__enter:hover .gateway__arrow { transform: translateX(3px); }

.gateway__redirect {
  margin: 14px 0 0;
  color: var(--gw-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  text-wrap: balance;
}

/* Liens de confiance : texte + icône, sans cartes. */
.gateway__trust { margin-top: 36px; }
/* Ligne 1 : Analyses | Communauté — ligne 2, centrée : Cadre d'utilisation. */
.gateway__trust ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gateway__trust li:nth-child(3) { grid-column: 1 / -1; justify-content: center; }
.gateway__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gateway__trust li,
.gateway__legal li { display: flex; align-items: center; }
.gateway__trust a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--gw-accent-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.gateway__trust a svg { width: 18px; height: 18px; flex: none; }
.gateway__trust a span { text-decoration: underline; text-decoration-color: rgba(35, 38, 192, 0.3); text-underline-offset: 5px; transition: text-decoration-color 200ms var(--gw-ease); }
.gateway__trust a:hover span { text-decoration-color: currentColor; }

/* ----- Pied légal ----- */
.gateway__footer { padding: 0 16px 12px; }
.gateway__legal li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a3a8b5;
}
.gateway__legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--gw-soft);
  font-size: 0.875rem;
  transition: color 180ms ease;
}
.gateway__legal a:hover { color: var(--gw-ink); }

/* ----- Focus & accessibilité ----- */
.gateway-page :focus-visible { outline: 2px solid var(--gw-accent); outline-offset: 3px; border-radius: 4px; }
.gateway-page .gateway__enter:focus-visible { border-radius: 100px; outline-offset: 4px; }
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 300;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--gw-ink);
  font-weight: 600;
}
.gateway-page .skip-link,
.gateway-page .skip-link:focus { color: #fff; }
.skip-link:focus { top: 16px; }
.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;
}

/* ----- Animations ----- */
@keyframes gw-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes gw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----- Mobile ----- */
@media (max-width: 760px) {
  .gateway { padding: 64px 20px 8px; }
  .gateway__backdrop::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.94) 100%); }
  .gateway__logo { width: 176px; margin-bottom: 28px; }
  .gateway__pill { margin-bottom: 18px; font-size: 0.625rem; }
  .gateway h1 { font-size: 2.1rem; }
  .gateway__intro { margin-bottom: 28px; font-size: 0.9375rem; line-height: 1.6; }
  .gateway__enter { width: 100%; min-width: 0; }
  .gateway__trust { margin-top: 24px; }
  .gateway__trust ul { column-gap: 0; }
  .gateway__trust a { gap: 6px; padding: 0 6px; font-size: 0.875rem; }
  .gateway__legal a { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gateway__panel,
  .gateway__backdrop { animation: none; }
  .gateway-page *,
  .gateway-page *::before,
  .gateway-page *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ----- Sélecteur de langue : un seul menu déroulant natif ----- */
.gateway__lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
}
.gateway__lang svg {
  position: absolute;
  z-index: 1; /* au-dessus du fond du menu */
  pointer-events: none;
  color: var(--gw-soft);
}
.gateway__lang-globe { left: 14px; width: 16px; height: 16px; }
.gateway__lang-chevron { right: 12px; width: 14px; height: 14px; stroke-width: 2; }
.gateway__lang select {
  min-height: 44px;
  padding: 0 34px 0 38px;
  border: 1px solid var(--gw-line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gw-ink);
  font: 500 0.875rem/1 var(--gw-sans);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.gateway__lang select:hover { border-color: rgba(43, 47, 217, 0.45); background: #fff; }
.gateway__lang select:focus-visible { outline: 2px solid var(--gw-accent); outline-offset: 2px; border-radius: 100px; }
@media (max-width: 760px) {
  .gateway__lang { top: 12px; right: 12px; }
}
