/* g9leads.fr : noir du logo, police Space Grotesk pour les mots du site, police de l'appareil pour ce que l'internaute tape. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --black: #111111; --ink: #f5f5f2; --dim: #8b8d92; --rule: #2b2c30; --field: #18191b; --yellow: #FACC15; --red: #ff6b5e;
  --site: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --appareil: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--site); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }

.home { min-height: 100%; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); }
/* Le logo et les champs forment un seul bloc, au milieu de l'écran en hauteur comme en largeur ; le lien du bas reste en bas. */
.bloc { grid-row: 2; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; padding-block: 24px; }
.logo { display: block; flex: none; }
.stage { width: 100%; margin-top: 48px; display: flex; flex-direction: column; justify-content: center; }

form { display: flex; flex-direction: column; gap: 10px; transition: opacity .24s ease, transform .24s ease; }
form.leaving { opacity: 0; transform: translateY(-6px); pointer-events: none; }
input, textarea { width: 100%; font: 400 1rem/1.4 var(--appareil); color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; margin: 0; -webkit-appearance: none; appearance: none; transition: border-color .15s ease; }
input::placeholder, textarea::placeholder { font-family: var(--site); color: var(--dim); opacity: 1; }
textarea { resize: none; height: 120px; display: block; }
input:focus, textarea:focus { outline: none; border-color: var(--dim); }
input.bad { border-color: var(--red); }
.err { margin: -4px 0 2px; font-size: 0.8125rem; color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button { font: 600 1rem/1.4 var(--site); border: 0; border-radius: 10px; padding: 14px; width: 100%; background: var(--ink); color: var(--black); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .15s ease, transform .1s ease; }
button:active { transform: scale(0.985); }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.sent { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.125rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.sent.in { opacity: 1; transform: none; }
.sent svg { flex: none; }
[hidden] { display: none !important; }

footer { grid-row: 3; align-self: end; font-size: 0.6875rem; }
footer a { color: var(--dim); text-underline-offset: 3px; }

/* mentions légales */
.legal { min-height: 100%; max-width: 620px; margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); }
.legal { max-width: calc(380px + 44px); }
.legal .home-link { display: block; width: 84px; margin: 28px auto 0; }
.legal .home-link svg { display: block; }
.legal h1 { font-size: 1.375rem; font-weight: 600; margin: 48px 0 0; }
.legal .btn { display: block; margin-top: 36px; font: 600 1rem/1.4 var(--site); text-align: center; text-decoration: none; border-radius: 10px; padding: 14px; background: var(--ink); color: var(--black); }
.legal h2 { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 26px 0 8px; }
.legal p { margin: 0 0 6px; font-size: 0.875rem; line-height: 1.55; overflow-wrap: anywhere; }
.legal p a { color: inherit; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { form, .sent, button, input, textarea { transition: none; } }
