/* Base commune : la feuille de couleur, l'encre, une seule police. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.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;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FCDD09;
  --ink: #C1121A;
  --deep: #C1121A;
  --white: #FFFFFF;
  --typed: color-mix(in srgb, var(--deep) 22%, #000000);
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: clamp(18px, 4.2vw, 40px);
  --radius: 16px;
  --press: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }

a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

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

/* ── Boutons : pleins, jamais encadrés. Ils s'enfoncent au clic. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms var(--press);
  -webkit-tap-highlight-color: transparent;
}
.btn--light { background: var(--white); color: var(--deep); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { transform: translateY(-2px); }
  .btn:not([disabled]):active { transform: scale(0.97); }
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover, a:hover { text-decoration-thickness: 0.16em; }
}

/* ── Champs : un aplat blanc, pas de filet. */
.field { display: block; }
.field-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 1rem; }
.field-hint { font-weight: 500; opacity: 0.72; }
.t-input {
  display: block;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
}
.t-input.is-error { border-color: var(--error, var(--ink)); }
.t-input > input, .t-input > textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--typed);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  appearance: none;
}
.t-input > textarea { min-height: 96px; resize: vertical; }
.t-input > input::placeholder, .t-input > textarea::placeholder { color: color-mix(in srgb, var(--typed) 62%, var(--white)); opacity: 1; }
.t-input > input:focus-visible, .t-input > textarea:focus-visible { outline: 0; }
.t-input:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.t-error-msg {
  min-height: 1.4em;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--error, var(--ink));
}

.skip {
  position: absolute; left: var(--edge); top: -120px; z-index: 10;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Champ piège pour les robots : hors écran, jamais annoncé. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
