/* Landing 'Arrive bientôt'. Reprend la maquette Claude Design (Arrive bientot.dc.html)
   et les composants du design system : Logo, TextField (lg), Button (primary, xl), Icon. */

/* Safari 26 (iOS) peint la zone de la barre d'état avec la couleur de fond de body, jamais avec le dégradé de la page.
   #1A1C1E : teinte moyenne du haut du fond (base, houle et grain), mesurée dans Chromium et sur iPhone.
   Avec --bg (#141413), une bande de couleur différente apparaissait en haut de l'écran. */
html, body { margin: 0; background: #1A1C1E; color: var(--text-1); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text-1); }
[hidden] { display: none !important; }

.page {
  position: relative;
  min-height: 100vh;
  /* Retraits safe-area (actifs grâce à viewport-fit=cover) : logo, texte et pied de page restent hors de l'encoche
     en paysage. En portrait, Safari 26 garde la main sur la barre d'état et la bande du bas, les retraits valent 0 :
     voir .backdrop::after. Le fond, en absolu, couvre aussi ces retraits. Tous valent 0 sur ordinateur. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  /* 100vh compte en plus la zone sous la barre du navigateur (Safari iOS, Chrome Android) : le pied de page
     s'y collait. 100lvh - 100svh le remonte dans la zone visible. */
  padding-bottom: calc(100lvh - 100svh + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  color: var(--text-1);
}

/* Fond : lumière 'houle' + grain */
.backdrop { position: absolute; inset: 0; overflow: hidden; background: var(--light-base); }
.backdrop > div { position: absolute; }
.backdrop__houle-1 { inset: -12%; filter: blur(50px); opacity: .95; background: var(--light-houle-1); }
.backdrop__houle-2 { inset: -12%; filter: blur(38px); opacity: .9; background: var(--light-houle-2); }
.backdrop__houle-3 { inset: -12%; filter: blur(18px); opacity: .8; background: var(--light-houle-3); }
.backdrop__grain { inset: 0; background-image: var(--grain); background-size: 220px; opacity: .072; pointer-events: none; }
/* Bas de l'écran sur téléphone : Safari 26 (iOS) peint sous sa barre flottante une bande unie de la couleur de body.
   La page ne peut pas passer dessous, même avec viewport-fit=cover. Le fond se fond donc dans cette couleur :
   dégradé sur 160 px, puis uni à partir de 100svh. La limite de la bande tombe ainsi toujours dans l'uni.
   Réservé aux écrans tactiles : sur ordinateur, la vague garde son bas d'origine. */
@media (pointer: coarse) {
  .backdrop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100lvh - 100svh + 160px);
    background: linear-gradient(to bottom, rgba(26, 28, 30, 0), #1A1C1E 160px);
  }
}

/* Étiquettes en capitales mono (en-tête, pied de page) */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bar { position: relative; display: flex; align-items: center; justify-content: space-between; }
.bar--top { gap: 24px; padding: clamp(24px, 5vh, 48px) clamp(24px, 6vw, 96px); }
.bar--top .label { color: var(--text-2); }
.bar--bottom { flex-wrap: wrap; gap: 12px 24px; padding: clamp(24px, 4vh, 40px) clamp(24px, 6vw, 96px); color: var(--text-3); }
.bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bar--bottom a { color: inherit; }
/* Sélecteur de langue : la langue affichée en clair, l'autre en lien discret */
.lang { display: flex; gap: 10px; }
.lang [aria-current="page"] { color: var(--text-1); }
.bar--bottom a:hover { color: var(--text-1); }
/* Lien 'Mentions légales' volontairement discret : texte simple, gris, plus petit que les étiquettes. */
.bar--bottom .bar__legal { font-family: var(--font-text); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }

.logo { display: block; flex: none; height: 28px; width: auto; aspect-ratio: 801 / 147; color: var(--text-1); }

/* Contenu */
.hero { position: relative; flex: 1; display: flex; align-items: center; padding: clamp(32px, 6vh, 80px) clamp(24px, 6vw, 96px); }
/* 1140 px : la ligne 'La plateforme sur-mesure' du titre tient à la taille maximale (108 px), le titre reste sur deux lignes. */
.hero__inner { width: 100%; max-width: 1140px; display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
/* Mot composé du titre ('sur-mesure', 'tailor-made') : jamais coupé au trait d'union. */
.hero__title .nowrap { white-space: nowrap; }
.hero__lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Formulaire de liste d'attente */
/* Écart vertical de 36 px quand le bouton passe sous le champ (mobile) : il laisse la place
   au message d'erreur, posé en absolu sous le champ pour ne jamais décaler la mise en page. */
.waitlist__form { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 12px; max-width: 560px; }
/* Largeur fixe pour que le champ ait la même taille en FR et en EN, quel que soit le libellé du bouton.
   300 + 12 + bouton FR (243) = 555, sous les 560 du formulaire. Sous 640 px, le champ prend toute la largeur
   et le bouton passe dessous. */
.waitlist__field { flex: 0 0 300px; min-width: 0; }
@media (max-width: 640px) {
  .waitlist__field { flex-basis: 100%; }
}
/* Champ piège anti-robots, hors écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* TextField, taille lg (site) */
.tf { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; font-family: var(--font-text); }
.tf__frame {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-field);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.tf:hover .tf__frame { border-color: var(--text-4); }
.tf .tf__frame:focus-within { border-color: var(--focus); box-shadow: var(--focus-ring); }
.tf.is-error .tf__frame { border-color: var(--danger); }
.tf.is-error .tf__frame:focus-within { box-shadow: 0 0 0 3px var(--danger-bg); }
.tf__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}
.tf__error { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--danger); }

/* Button, variante primary, taille xl */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(var(--press-scale)); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; background: var(--primary); }

/* Confirmation */
.waitlist__done {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  padding: 16px 20px;
  border-radius: var(--r-field, 14px);
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  font-size: 16px;
  line-height: 1.4;
}
.waitlist__done .icon { flex: none; }
.waitlist__done strong { font-weight: 500; }

/* Page mentions légales */
.legal { position: relative; flex: 1; padding: clamp(24px, 4vh, 48px) clamp(24px, 6vw, 96px) clamp(48px, 8vh, 96px); }
.legal__inner { max-width: 720px; display: flex; flex-direction: column; gap: 40px; }
.legal__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { margin: 0; color: var(--text-3); }
.legal p, .legal ul, .legal ol { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal ol li + li, .legal ul li + li { margin-top: 4px; }
.legal strong { font-weight: 500; color: var(--text-1); }
.legal a { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-text); }
.bar__home { display: inline-flex; color: var(--text-1); }

@media (prefers-reduced-motion: reduce) {
  .tf__frame, .btn { transition: none; }
  .btn:active { transform: none; }
}
.bar--top a.label { color: var(--text-2); }
.bar--top a.label:hover { color: var(--text-1); }

/* Pied de page posé sur la vague claire : halo sombre pour rester lisible */
.bar--bottom { text-shadow: 0 0 2px var(--light-base), 0 0 10px var(--light-base), 0 0 18px var(--light-base); }

/* Pied de page : les pages légales, en rangée discrète (même habillage que l'ancien lien unique). */
.bar__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* Tableaux des pages légales : seul le tableau défile sur un petit écran, jamais la page. */
.legal .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
