/* ─────────────────────────────────────────────────────────────
   Jetons. Palette = celle de l'app (colors.ts) poussée vers le
   bleu nuit du logo. Un seul accent : le turquoise HandIQ.
   Rayons : 999px pour tout ce qui se clique, 14px pour les
   cartes, 10px pour les images. Aucune autre valeur.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #050d1c;
  --bg-soft:   #081428;
  --surface:   #0c1a31;
  --surface-2: #112542;
  --line:      #1b3055;
  --line-soft: #14263f;
  --text:      #eaf1f8;
  --muted:     #93a6c0;
  --faint:     #64789a;
  --accent:    #16c79a;
  --accent-dk: #04261d;
  --r-card: 14px;
  --r-img: 10px;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
/* height:auto est indispensable : les images portent des attributs width/height
   (qui réservent la place et évitent que la page saute au chargement). Sans lui,
   max-width réduit la largeur mais la hauteur reste celle de l'attribut, et
   l'image est étirée verticalement. */
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-dk); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* ── Titres ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
p  { text-wrap: pretty; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }

/* ── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-dk); font-weight: 600; position: relative; overflow: hidden; }
.btn-primary:hover { background: #2ee2b6; }
/* reflet balayé au survol — jamais en boucle */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%);
  translate: -130% 0; transition: translate .75s var(--ease);
}
.btn-primary:hover::after { translate: 130% 0; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--faint); background: rgba(255,255,255,.03); }
.btn svg { width: 16px; height: 16px; }
.btn-primary:hover svg { transform: translateX(2px); }
.btn svg { transition: transform .18s var(--ease); }

/* ── Navigation ─────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
header.scrolled { border-bottom-color: var(--line-soft); }
header .wrap { display: flex; align-items: center; gap: 36px; height: 72px; transition: height .35s var(--ease); }
header.scrolled .wrap { height: 60px; }
.brand img { height: 22px; width: auto; }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-size: .9375rem; color: var(--muted); transition: color .18s; }
nav a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; color: var(--muted); padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 999px;
}
.nav-right .btn { padding: 9px 17px; font-size: .875rem; }
@media (max-width: 900px) { nav ul, .lang { display: none; } }
@media (max-width: 560px) { .nav-right .btn-ghost { display: none; } }

/* ── Héros ──────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 0; text-align: center; }
@media (max-width: 640px) { .hero { padding-top: 56px; } section { padding: 80px 0; } .shot { margin-top: 44px; padding: 5px; } .beta { padding: 28px; } }
.hero-glow {
  position: absolute; left: 50%; top: 140px; translate: -50% 0;
  width: min(1100px, 130vw); aspect-ratio: 2 / 1; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(22,199,154,.16), transparent 68%),
    radial-gradient(ellipse 34% 60% at 28% 58%, rgba(28,108,255,.14), transparent 70%);
  filter: blur(18px);
  animation: glowDrift 22s ease-in-out infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);   opacity: .85; }
  50%      { transform: scale(1.08) translate3d(2%, -3%, 0); opacity: 1; }
}
.hero .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8125rem; color: var(--muted);
  padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dotPulse 2.6s var(--ease) infinite; }
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,199,154,.5); }
  65%  { box-shadow: 0 0 0 8px rgba(22,199,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,199,154,0); }
}
.hero h1 { margin: 26px auto 0; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .w { display: inline-block; }
.hero .lead { margin: 22px auto 0; text-align: center; max-width: 54ch; }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .8125rem; color: var(--faint); }
.hero-note span { color: var(--muted); }

/* capture produit : à plat. Elle monte et se fixe au chargement, rien de plus —
   l'écran de saisie est dense, toute déformation le rend illisible. */
.shot-stage { position: relative; z-index: 1; margin-top: 64px; }
.shot {
  position: relative;
  margin: 0 auto; max-width: 1060px;
  padding: 8px; border-radius: calc(var(--r-img) + 8px);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.015));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
}
@keyframes shotIn {
  from { opacity: 0; transform: translateY(32px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.js .shot-stage { animation: shotIn 1.05s var(--ease) .6s backwards; }
.shot img { border-radius: var(--r-img); }
.shot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, var(--bg) 99%);
}

/* ── Bandeau de faits (remplace le « trusted by ») ──────── */
.facts { margin-top: -40px; padding: 72px 0 0; position: relative; z-index: 2; }
.facts ul {
  list-style: none; display: grid; gap: 1px; background: var(--line-soft);
  grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden;
}
.facts li { background: var(--bg); padding: 22px 24px; display: flex; gap: 13px; align-items: flex-start; }
.facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.facts strong { display: block; font-weight: 500; font-size: .9375rem; }
.facts small { color: var(--faint); font-size: .8125rem; line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 860px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 120px 0; }
.sec-head { max-width: 46ch; }
.sec-head p { margin-top: 16px; color: var(--muted); }

/* ── Bento ──────────────────────────────────────────────── */
.bento { margin-top: 56px; display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease);
}
.card:hover { border-color: var(--line); background: var(--surface-2); transform: translateY(-3px); }
/* halo qui suit le curseur (coordonnées écrites par le script) */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(22,199,154,.16), transparent 62%);
  transition: opacity .4s var(--ease);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card p { color: var(--muted); font-size: .9375rem; }
.card.centered { justify-content: center; }
/* Les cartes ne portent pas de capture : trois suffisent sur la page (le héros
   et les deux bandes). Le reste se dit en texte. */
.card ul { margin-top: 20px; list-style: none; display: grid; gap: 12px; }
.card li { display: flex; gap: 11px; font-size: .875rem; color: var(--muted); }
.card li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.card li b { color: var(--text); font-weight: 500; }
.card-icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 4px; }
.c-wide { grid-column: span 4; }
.c-tall { grid-column: span 2; }
.c-half { grid-column: span 3; }
.c-third { grid-column: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-wide, .c-tall, .c-half, .c-third { grid-column: span 2; }
}

/* ── Bandes produit (texte / capture, alternées) ────────── */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.flip .split-text { order: 2; }
.split h2 { font-size: clamp(1.7rem, 2.9vw, 2.25rem); }
.split > .split-text > p { margin-top: 18px; color: var(--muted); }
.split ul { margin-top: 26px; list-style: none; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; font-size: .9375rem; color: var(--muted); }
.split li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }
.split li b { color: var(--text); font-weight: 500; }
.split figure {
  padding: 7px; border-radius: calc(var(--r-img) + 7px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.8);
}
.split figure img { border-radius: var(--r-img); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-text { order: 0; }
  .split + .split { margin-top: 80px; }
}

/* ── Démonstration ─────────────────────────────────────────
   La vidéo ne se charge qu'au clic (preload="none", 16 Mo) : la
   vignette affichée avant lecture est une capture déjà en cache. */
.demo .sec-head { margin-bottom: 32px; }
.demo video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}

/* ── Sélecteur de langue ────────────────────────────────── */
.lang { position: relative; cursor: pointer; background: none; font-family: inherit; font-size: .8125rem; }
.lang:hover { color: var(--text); border-color: var(--faint); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 6px; display: grid; gap: 2px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
  opacity: 0; translate: 0 -6px; pointer-events: none; transition: opacity .2s var(--ease), translate .2s var(--ease);
}
.lang[aria-expanded="true"] .lang-menu { opacity: 1; translate: 0 0; pointer-events: auto; }
.lang-menu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: .875rem; color: var(--muted); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu .code { font-family: 'Geist Mono', monospace; font-size: .75rem; color: var(--faint); margin-left: auto; }

/* Bandeau de suggestion de langue (jamais une redirection) */
.lang-hint {
  position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 80;
  display: none; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); font-size: .875rem;
  animation: riseIn .5s var(--ease) backwards;
}
.lang-hint.show { display: flex; }
.lang-hint .btn { padding: 8px 15px; font-size: .8125rem; }
.lang-hint button.close { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 6px; }
@media (max-width: 560px) { .lang-hint { flex-wrap: wrap; border-radius: var(--r-card); justify-content: center; text-align: center; } }

/* ── Déroulé ────────────────────────────────────────────── */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 28px 32px 0 0; border-top: 1px solid var(--line); position: relative; }
.step::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--accent);
}
/* le trait d'accent se dessine quand l'étape entre dans l'écran */
.js .step::before { width: 0; transition: width .9s var(--ease) .15s; }
.js .step.in::before { width: 44px; }
.step .num { font-size: .8125rem; color: var(--accent); letter-spacing: .04em; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .9375rem; max-width: 34ch; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 8px; } .step { padding-right: 0; } }

/* ── Appel bêta ─────────────────────────────────────────── */
.beta {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background:
    radial-gradient(ellipse 70% 130% at 82% 0%, rgba(22,199,154,.13), transparent 62%),
    var(--bg-soft);
  padding: 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.beta h2 { max-width: 16ch; }
.beta p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.beta .btn { margin-top: 28px; }
.plat { display: grid; gap: 10px; }
.plat div {
  display: flex; align-items: center; gap: 12px; font-size: .9375rem;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}
.plat svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.plat small { margin-left: auto; color: var(--faint); font-size: .75rem; }
@media (max-width: 860px) { .beta { grid-template-columns: 1fr; padding: 34px; gap: 32px; } }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line-soft); }
details { border-bottom: 1px solid var(--line-soft); }
summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; transition: color .18s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  translate: 0 -70%; rotate: 45deg; transition: rotate .25s var(--ease);
}
details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
details p { color: var(--muted); font-size: .9375rem; padding-bottom: 24px; max-width: 68ch; }
/* ouverture animée (CSS moderne : sans JS, et sans effet là où ce n'est pas géré) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .42s var(--ease), opacity .3s var(--ease), content-visibility .42s allow-discrete;
  }
  details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ── Pied ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-soft); padding: 64px 0 40px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot img { height: 22px; width: auto; margin-bottom: 14px; }
.foot p { color: var(--faint); font-size: .875rem; max-width: 30ch; }
.foot h4 { font-size: .8125rem; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot ul a { font-size: .875rem; color: var(--muted); }
.foot ul a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--faint);
}
@media (max-width: 780px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ─────────────────────────────────────────────────────────────
   MOUVEMENT. Deux mécanismes seulement :
   — « la »   : entrée au chargement, en cascade (héros).
   — « rise » : apparition à l'entrée dans l'écran (le reste).
   Tout est en opacity / translate / filter : aucune propriété
   de mise en page n'est animée. Sans JS, la page est visible.
   ───────────────────────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(7px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}
.js .la { animation: riseIn .85s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }

.js .rise { opacity: 0; translate: 0 18px; filter: blur(6px); transition: opacity .8s var(--ease), translate .8s var(--ease), filter .8s var(--ease); }
.js .rise.in { opacity: 1; translate: 0 0; filter: blur(0); }
/* variante sans flou pour les grandes images (le flou coûte cher au défilement) */
.js .rise-soft { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .rise-soft.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .rise-soft { opacity: 1; translate: 0; filter: none; transition: none; }
  .js .step::before { width: 44px; transition: none; }
  .btn-primary::after { display: none; }
  .card:hover { transform: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ── Pages juridiques ──────────────────────────────────────
   Chrome réduit : le logo pour revenir, et les trois textes en
   pied. Pas de menu de vente au-dessus d'un contrat. */
.legal-top { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.legal-top .wrap { display: flex; align-items: center; gap: 20px; }
.legal-top img { height: 22px; width: auto; }
.legal-top a.back { margin-left: auto; font-size: .875rem; color: var(--muted); }
.legal-top a.back:hover { color: var(--text); }

.legal { padding: 64px 0 96px; }
.legal .doc { max-width: 76ch; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.14; letter-spacing: -.02em; }
.legal h2 {
  font-size: 1.3rem; line-height: 1.3; margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--line-soft); letter-spacing: -.01em;
}
.legal h3 { font-size: 1.0625rem; margin-top: 34px; color: var(--text); }
.legal p { margin-top: 14px; color: var(--muted); line-height: 1.72; text-wrap: pretty; }
.legal strong { color: var(--text); font-weight: 500; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; color: var(--muted); line-height: 1.72; }
.legal li { margin-top: 7px; }
.legal li::marker { color: var(--faint); }
.legal ul ul, .legal ol ol { margin-top: 7px; }
.legal blockquote {
  margin-top: 20px; padding: 18px 22px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted);
}
.legal table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border: 1px solid var(--line-soft); color: var(--muted); line-height: 1.6;
}
.legal th { color: var(--text); font-weight: 500; background: var(--surface); }

/* Champ resté à compléter : il doit sauter aux yeux, pas se fondre
   dans le texte. Une mention manquante dans un contrat ne se découvre
   pas après la mise en ligne. */
.legal mark {
  background: rgba(255,176,32,.16); color: #ffd48a;
  border: 1px solid rgba(255,176,32,.38); border-radius: 6px;
  padding: 1px 7px; font-size: .9em;
}
.legal .notice {
  margin-bottom: 36px; padding: 14px 18px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9375rem;
}
@media (max-width: 640px) {
  .legal { padding: 40px 0 64px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal th { border-bottom: none; }
  .legal td { border-top: none; }
  .legal tr + tr td:first-child { border-top: 1px solid var(--line-soft); }
}

/* ── Formulaire club pilote ────────────────────────────────
   Deux colonnes sur les champs courts, une seule dès que la
   place manque. Les libellés sont au-dessus, jamais à
   l'intérieur du champ : un libellé qui disparaît à la saisie
   oblige à se souvenir de ce qu'on remplissait. */
.pilote { display: grid; gap: 16px; }
.pilote .duo { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.pilote label { display: grid; gap: 7px; font-size: .875rem; color: var(--muted); }
.pilote .opt { color: var(--faint); }
.pilote input[type=text], .pilote input:not([type]), .pilote input[type=email],
.pilote input[type=tel], .pilote textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .9375rem;
  color: var(--text); background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.pilote input::placeholder, .pilote textarea::placeholder { color: var(--faint); }
.pilote input:hover, .pilote textarea:hover { border-color: var(--faint); }
.pilote input:focus, .pilote textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.05); }
.pilote textarea { resize: vertical; min-height: 84px; }

.pilote fieldset { border: 0; }
.pilote legend { font-size: .875rem; color: var(--muted); margin-bottom: 9px; }
.pilote .picks { display: flex; gap: 8px; flex-wrap: wrap; }
.pilote .pick {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.pilote .pick:hover { border-color: var(--faint); }
.pilote .pick:has(input:checked) { border-color: var(--accent); background: rgba(22,199,154,.10); }
.pilote .pick input { accent-color: var(--accent); width: 15px; height: 15px; }
.pilote .help { font-size: .8125rem; color: var(--faint); margin-top: 10px; line-height: 1.6; }

.pilote .check { grid-template-columns: auto 1fr; align-items: start; gap: 11px; font-size: .8125rem; }
.pilote .check input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.pilote .check a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.pilote .check a:hover { color: var(--text); }

/* Piège à robots : hors de l'écran, pas display:none — certains robots
   sautent les champs masqués de cette façon. */
.pilote .pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pilote button { justify-self: start; margin-top: 4px; }
.pilote button:disabled { opacity: .6; cursor: default; }
.pilote .etat {
  display: none; font-size: .875rem; color: var(--accent);
  padding: 11px 15px; border-radius: 10px;
  background: rgba(22,199,154,.09); border: 1px solid rgba(22,199,154,.30);
}
.pilote .etat.show { display: block; }
.pilote .etat.err { color: #ffb4a8; background: rgba(255,120,100,.09); border-color: rgba(255,120,100,.32); }

@media (max-width: 560px) { .pilote .duo { grid-template-columns: 1fr; } }

/* Formulaire d'opposition servi par Matomo lui-même : il porte ses propres
   couleurs, passées en paramètres d'URL, et sa propre hauteur. */
.legal .optout {
  display: block; width: 100%; height: 190px; margin-top: 18px;
  border: 1px solid var(--line-soft); border-radius: var(--r-card);
  background: var(--surface); color-scheme: dark;
}
