/* ============================================================================
   Footur — landing page "coming soon"
   Aucun framework, aucune dépendance externe. Palette : bleu nuit / bleu
   électrique / blanc. Toutes les mesures suivent la maquette de référence
   (composition 1536 × 1024).
   ========================================================================= */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-1000: #01060F;
  --navy-950:  #010A1B;
  --navy-900:  #020B1C;
  --navy-850:  #041228;

  --blue-600:  #0B6BE8;
  --blue-500:  #087BFF;
  --blue-400:  #2E8BFF;
  --blue-300:  #5FB4FF;
  --cyan-200:  #8FD2FF;

  --white:     #FFFFFF;
  --text-soft: #C2D0E2;
  --text-mute: #93A6BF;

  --line:      rgba(46, 139, 255, 0.30);
  --line-soft: rgba(46, 139, 255, 0.16);
  --glass:     rgba(4, 16, 38, 0.58);

  --gutter: clamp(1.25rem, 4.1vw, 3.9rem);
  --page-max: 1410px;

  --focus: 0 0 0 2px var(--navy-950), 0 0 0 4px var(--blue-300);
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--navy-1000);
  color: var(--white);
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }

:where(a, button, input):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 20;
  padding: 0.7rem 1.1rem;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* --- page shell ----------------------------------------------------------- */

.page {
  position: relative;
  min-height: 100vh;
  /* Ambiance stade : halo bleu haut-droite + assombrissement des bords.
     Le décor photographique lui-même vit dans l'image du ballon. */
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(12, 74, 158, 0.34) 0%, transparent 62%),
    radial-gradient(90% 60% at 96% 4%, rgba(96, 178, 255, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 42%, var(--navy-1000) 100%);
  overflow: hidden;
}

.hero__inner,
.pillars,
.site-footer__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- header --------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(0.9rem, 1.6vw, 1.35rem) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: auto;
  height: clamp(2.5rem, 4.4vw, 4.5rem);
}
.brand__text { display: grid; gap: 0.18em; }
.brand__name {
  font-size: clamp(1.5rem, 2.35vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
}
.brand__baseline {
  font-size: clamp(0.6rem, 0.83vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-soft);
}

.social__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.7rem); }
.social__link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--white);
  transition: color 0.18s ease;
}
.social__link:hover { color: var(--blue-300); }
.social__link .icon { width: 22px; height: 22px; }

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; }

.hero__inner {
  position: relative;
  padding-top: clamp(1rem, 2.4vw, 2.2rem);
  padding-bottom: clamp(1.6rem, 2.6vw, 2.4rem);
}

.hero__content { position: relative; z-index: 2; max-width: 58%; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(0.75rem, 0.93vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.eyebrow__rule {
  flex: 0 0 auto;
  width: clamp(1.75rem, 3vw, 2.9rem);
  height: 2px;
  background: var(--blue-500);
}

.kicker {
  margin-top: 0.5rem;
  font-size: clamp(0.87rem, 1.15vw, 1.13rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.headline {
  margin-top: clamp(0.85rem, 1.5vw, 1.4rem);
  font-size: clamp(2.05rem, 3.3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.021em;
}
.headline__accent { color: var(--blue-400); }

.accent-rule {
  width: clamp(2.4rem, 3.4vw, 3.3rem);
  height: 3px;
  margin: clamp(1.35rem, 2.4vw, 2.1rem) 0 0;
  border: 0;
  background: var(--blue-500);
}

.lede {
  margin-top: clamp(1.15rem, 2vw, 1.85rem);
  font-size: clamp(1.28rem, 1.85vw, 1.83rem);
  font-weight: 700;
  letter-spacing: -0.012em;
}

.blurb {
  margin-top: clamp(0.6rem, 1vw, 0.95rem);
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.12vw, 1.09rem);
  line-height: 1.62;
  color: var(--text-soft);
}

/* --- hero : ballon + panneaux HUD ----------------------------------------- */

.hero__visual {
  position: absolute;
  z-index: 1;
  top: clamp(-5rem, -4.2vw, -2rem);
  /* aligne le bord droit du visuel sur le bord de la fenêtre, quelle que soit
     la marge du conteneur — sans quoi le panneau HUD droit serait rogné. */
  right: calc(50% - 50vw);
  width: min(47vw, 47rem);
  aspect-ratio: 706 / 655;
}

.hero__ball {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* halo bleu du ballon — recréé en CSS plutôt que gravé dans l'image */
  filter: drop-shadow(0 0 5.5rem rgba(23, 116, 231, 0.42));
  /* Le décor du stade se fond dans le bleu nuit de la page : sans ce masque,
     le cadre rectangulaire de l'image se verrait sur les bords gauche/haut/bas. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 11%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 11%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.hero__links {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hud {
  position: absolute;
  padding: clamp(0.7rem, 1.05vw, 1.05rem) clamp(0.85rem, 1.25vw, 1.25rem);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(7px);
  box-shadow: 0 0 2.2rem rgba(10, 78, 168, 0.28);
  animation: hud-in 0.7s ease-out both;
}

.hud--prediction {
  top: 5.6%;
  left: -2.6%;
  width: 29%;
  animation-delay: 0.15s;
}
.hud--features {
  top: 23%;
  right: 3.6%;
  width: 34.5%;
  animation-delay: 0.3s;
}

.hud__title {
  font-size: clamp(0.66rem, 0.92vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}
.hud__chart { width: 100%; height: auto; margin-top: 0.5rem; }
.hud__chart-line { filter: drop-shadow(0 0 5px rgba(61, 156, 255, 0.75)); }

.hud__list { display: grid; gap: clamp(0.45rem, 0.85vw, 0.82rem); }
.hud__list li {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.85vw, 0.85rem);
  font-size: clamp(0.66rem, 0.92vw, 0.92rem);
  color: var(--white);
}
.hud__list .icon {
  flex: 0 0 auto;
  width: clamp(1rem, 1.5vw, 1.45rem);
  height: clamp(1rem, 1.5vw, 1.45rem);
  color: var(--blue-300);
}

/* --- bloc inscription ----------------------------------------------------- */

.signup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  max-width: 66%;
  margin-top: clamp(1.6rem, 3vw, 2.9rem);
  padding: clamp(1rem, 1.7vw, 1.6rem) clamp(1.1rem, 2vw, 1.95rem);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(9px);
  box-shadow: 0 1.5rem 3rem rgba(1, 6, 15, 0.45);
}

.signup__intro {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.5vw, 1.45rem);
}
.signup__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2.9rem, 3.7vw, 3.6rem);
  height: clamp(2.9rem, 3.7vw, 3.6rem);
  border: 1.5px solid var(--blue-500);
  border-radius: 50%;
  color: var(--blue-400);
}
.signup__icon svg { width: 52%; height: 52%; }

.signup__title {
  font-size: clamp(1.02rem, 1.32vw, 1.29rem);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.signup__text {
  margin-top: 0.24rem;
  font-size: clamp(0.87rem, 1.02vw, 1rem);
  line-height: 1.48;
  color: var(--text-soft);
}

.signup__form { flex: 1 1 22rem; min-width: 0; }

.signup__row { display: flex; gap: 0.65rem; }

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3rem;
  padding: 0 0.95rem;
  background: rgba(2, 10, 24, 0.72);
  border: 1px solid rgba(94, 148, 214, 0.42);
  border-radius: 7px;
  color: var(--white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.signup__input::placeholder { color: #8FA3BC; }
.signup__input:hover { border-color: rgba(94, 148, 214, 0.7); }
.signup__input:focus-visible { border-color: var(--blue-400); }
.signup__input[aria-invalid='true'] { border-color: #FF8B8B; }
.signup__input:disabled { opacity: 0.6; cursor: not-allowed; }

.signup__button {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0 clamp(1rem, 1.6vw, 1.6rem);
  background: var(--blue-600);
  border: 0;
  border-radius: 7px;
  color: var(--white);
  font-size: clamp(0.8rem, 0.95vw, 0.93rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.signup__button:hover:not(:disabled) { background: #1279FA; }
.signup__button:active:not(:disabled) { transform: translateY(1px); }
.signup__button:disabled { opacity: 0.65; cursor: progress; }

/* Honeypot : hors écran plutôt que display:none, que certains bots détectent. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.signup__privacy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  color: var(--text-mute);
}
.signup__privacy .icon { flex: 0 0 auto; width: 1rem; height: 1rem; }

.signup__status {
  margin-top: 0.55rem;
  font-size: clamp(0.82rem, 0.95vw, 0.93rem);
  line-height: 1.45;
}
.signup__status:empty { display: none; }
/* La couleur ne porte jamais seule l'information : chaque état a son préfixe. */
.signup__status[data-state='success'] { color: var(--cyan-200); }
.signup__status[data-state='error'] { color: #FFAFAF; }
.signup__status[data-state='pending'] { color: var(--text-soft); }

/* --- trois piliers -------------------------------------------------------- */

.pillars {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.8rem, 2.7vw, 2.5rem);
}

.pillars__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.5vw, 1.4rem);
}
/* séparateurs verticaux discrets, pas de cards */
.pillar + .pillar { border-left: 1px solid var(--line-soft); padding-left: clamp(1.5rem, 3.5vw, 3.5rem); }

.pillar__icon {
  flex: 0 0 auto;
  width: clamp(2.1rem, 2.9vw, 2.85rem);
  height: clamp(2.1rem, 2.9vw, 2.85rem);
  color: var(--blue-400);
}
.pillar__title {
  font-size: clamp(1.02rem, 1.32vw, 1.29rem);
  font-weight: 700;
}
.pillar__text {
  margin-top: 0.28rem;
  font-size: clamp(0.87rem, 1.02vw, 1rem);
  line-height: 1.5;
  color: var(--text-soft);
}

/* --- bloc éditorial ------------------------------------------------------- */

.intelligence {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
}

.intelligence__inner {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(1.9rem, 3vw, 2.8rem) var(--gutter);
}

.intelligence__title {
  font-size: clamp(1.1rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.008em;
}

.intelligence__body {
  display: grid;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  max-width: 74ch;
  font-size: clamp(0.9rem, 1.02vw, 1rem);
  line-height: 1.66;
  color: var(--text-soft);
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
}
/* Ligne de terrain courbe, reprise de la maquette. */
.site-footer::before {
  content: '';
  position: absolute;
  right: -34%;
  bottom: -26%;
  width: 118%;
  height: clamp(5rem, 11.5vw, 12rem);
  border-top: 1.5px solid rgba(64, 158, 255, 0.5);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: blur(0.3px) drop-shadow(0 0 14px rgba(46, 139, 255, 0.45));
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 2.6vw, 2.5rem);
}

.brand--footer .brand__mark { height: clamp(2.3rem, 3.9vw, 3.9rem); }
.brand--footer .brand__name { font-size: clamp(1.35rem, 2.05vw, 2rem); }

.site-footer__motto {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.7vw, 1.6rem);
  font-size: clamp(0.87rem, 1.12vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer__motto .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

.site-footer__legal {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(0.8rem, 0.93vw, 0.9rem);
  color: var(--text-mute);
}

/* --- animations ----------------------------------------------------------- */

@keyframes hud-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

.hero__links .node {
  animation: node-pulse 4.5s ease-in-out infinite;
  transform-box: fill-box;
}
.hero__links .node:nth-child(2) { animation-delay: 0.9s; }
.hero__links .node:nth-child(3) { animation-delay: 1.8s; }
.hero__links .node:nth-child(4) { animation-delay: 2.7s; }
.hero__links .node:nth-child(5) { animation-delay: 3.6s; }

/* ============================================================================
   Responsive
   ========================================================================= */

/* Laptop : la colonne de texte gagne de la place sur le visuel. */
@media (max-width: 1199px) {
  .hero__content { max-width: 50%; }
  .signup { max-width: 78%; }
  .hero__visual { width: min(48vw, 34rem); }
}

/* Tablette : le visuel passe sous le texte, le formulaire prend la largeur. */
@media (max-width: 991px) {
  .hero__content { max-width: none; }
  .signup { max-width: none; }

  /* relative — et non static : les panneaux HUD sont positionnés par rapport
     au visuel, ils se replaceraient sinon sur le titre. */
  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(78%, 30rem);
    margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  }
  /* Centré, le visuel ne déborde plus hors écran : son bord droit doit
     donc être fondu lui aussi. */
  .hero__ball {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 91%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 91%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  }
  .hud--prediction { left: -1%; }

  .pillars__list { grid-template-columns: 1fr; gap: 1.6rem; }
  .pillar + .pillar { border-left: 0; padding-left: 0; }

  .intelligence__inner { grid-template-columns: 1fr; gap: 0.9rem; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.2rem;
  }
}

/* Mobile : tout en pleine largeur, formulaire vertical, effets allégés. */
@media (max-width: 767px) {
  .site-header { padding-block: 1rem; }

  .hero__visual { width: 92%; }
  .hero__ball { filter: drop-shadow(0 0 2.5rem rgba(23, 116, 231, 0.4)); }
  .hero__links { display: none; }

  .hud { backdrop-filter: blur(4px); box-shadow: none; }
  .hud--prediction { top: 2%; left: -1.5%; width: 40%; }
  .hud--features { top: 16%; right: -1.5%; width: 44%; }

  .signup { gap: 1.1rem; }
  .signup__intro { align-items: flex-start; }
  .signup__form { flex: 1 1 100%; }
  .signup__row { flex-direction: column; }
  .signup__input, .signup__button { width: 100%; height: 3rem; }

  .site-footer::before { width: 130%; right: -30%; bottom: -30%; }
}

@media (max-width: 380px) {
  .hud__title, .hud__list li { font-size: 0.62rem; }
}

/* --- préférences utilisateur --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --text-soft: #E4EDF8; --text-mute: #C7D5E6; --line: rgba(120, 185, 255, 0.55); }
}
