/* humains-augmentes.com : la page d'attente.
   Une pièce sombre, une seule lumière : l'étincelle du logo. Le reste est à l'encre et au lilas.
   Les couleurs viennent de la plateforme (le violet de l'action, le néon, l'encre du logo),
   passées au sombre. Contrastes : texte 16:1, secondaire 9,6:1, discret 5,3:1. */

@font-face {
  font-family: "Figtree";
  src: url("/polices/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --nuit: #120c1f;        /* le fond : l'encre du logo, plus profonde */
  --nuit-2: #1b1430;      /* le champ */
  --trait: #30274b;
  --trait-fort: #463b69;
  --texte: #f4effd;
  --texte-2: #c3bad8;
  --texte-3: #8f86a8;
  --violet: #6621de;      /* le bouton : 7,4:1 avec du blanc */
  --violet-vif: #7633ef;
  --neon: #9868f8;        /* l'étincelle, le focus */
  --ok: #6ee7a8;          /* le vert, c'est fait */
  --attention: #ffb86b;   /* l'orange, ce qui attend (jamais de rouge) */
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--nuit);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--texte);
  background:
    radial-gradient(56rem 36rem at 50% 30%, rgb(102 33 222 / 0.14), transparent 70%),
    var(--nuit);
  font: 400 17px/1.55 "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 32px;
  text-align: center;
}

/* Le logo, et la lueur de son étincelle (le centre du H : 16 % de la largeur, 49 % de la hauteur) */
.marque {
  position: relative;
  width: min(540px, 84vw);
  margin: 0 0 40px;
}

.marque h1 {
  margin: 0;
  line-height: 0;
}

.marque img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.lueur {
  position: absolute;
  left: 16.1%;
  top: 48.7%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(152 104 248 / 0.6), rgb(102 33 222 / 0.22) 48%, transparent);
  transform: translate(-50%, -50%);
  animation: allumage 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.marque.inscrit .lueur {
  animation: eclat 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes allumage {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes eclat {
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.45); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.promesse {
  max-width: 31em;
  margin: 0 0 36px;
  color: var(--texte-2);
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.5;
  text-wrap: balance;
}

/* L'inscription : le champ et le bouton dans une même barre */
.inscription {
  display: flex;
  gap: 6px;
  width: min(540px, 100%);
  padding: 6px;
  border: 1px solid var(--trait);
  border-radius: 16px;
  background: var(--nuit-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.inscription:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgb(152 104 248 / 0.25);
}

.inscription[hidden] { display: none; }

.inscription input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--texte);
  font: inherit;
  outline: none;
}

.inscription input::placeholder {
  color: var(--texte-3);
  opacity: 1;
}

.inscription button {
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.inscription button:hover { background: var(--violet-vif); }

.inscription button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.inscription button[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.etat {
  max-width: 34em;
  min-height: 1.55em;
  margin: 16px 0 0;
  color: var(--texte-3);
  font-size: 15px;
}

.etat.attention { color: var(--attention); }

.etat.ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--texte);
  font-size: 18px;
  font-weight: 600;
}

.etat.ok::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23120c1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Les pages courtes : merci, confidentialité, introuvable */
.page {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 56px 20px 32px;
  text-align: left;
}

.page .retour {
  display: inline-block;
  margin-bottom: 40px;
  line-height: 0;
}

.page .retour img {
  width: 180px;
  height: auto;
}

.page h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: var(--texte-2);
}

.page a {
  color: var(--texte);
  text-decoration-color: var(--trait-fort);
  text-underline-offset: 3px;
}

.page a:hover { text-decoration-color: var(--neon); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  color: var(--texte-3);
  font-size: 14px;
}

footer p { margin: 0; }

footer a {
  color: var(--texte-2);
  text-decoration-color: var(--trait-fort);
  text-underline-offset: 3px;
}

footer a:hover { color: var(--texte); }

a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .scene { padding-top: 48px; }
  .marque { margin-bottom: 32px; }

  .inscription {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
  }

  .inscription:focus-within { box-shadow: none; }

  .inscription input[type="email"],
  .inscription button {
    height: 54px;
    border-radius: 14px;
  }

  .inscription input[type="email"] {
    flex: none;
    border: 1px solid var(--trait);
    background: var(--nuit-2);
  }

  .inscription input[type="email"]:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgb(152 104 248 / 0.25);
  }

  footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lueur,
  .marque.inscrit .lueur { animation: none; }
  .inscription,
  .inscription button { transition: none; }
}
