/* =========================================================================
   Tarok — vitrine commerciale
   Direction visuelle : noir de marque + braise (extraite du logo officiel),
   grotesque serrée pour le discours, monospace pour les preuves techniques.
   ========================================================================= */

/* ---------- Fonts (auto-hébergées : zéro requête tierce) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  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: 'JetBrains Mono';
  src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
  font-weight: 400 500;
  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;
}

/* ---------- Tokens ---------- */
:root {
  /* Marque (échantillonnée sur le logo officiel Tarok) */
  --brand-black: #0b0b0c;
  --ember: #d64a2a;
  --ember-btn: #c2401f;      /* aplats : blanc dessus = 5.2:1 */
  --ember-btn-hi: #a8331c;   /* survol : 6.0:1 */
  --ember-hot: #ee6a3c;
  --ember-deep: #8c1f18;
  --ember-ink: #a8331c;

  /* Thème sombre (défaut) */
  --bg: #0b0b0c;
  --bg-raised: #131316;
  --bg-sunk: #08080a;
  --surface: #131316;
  --surface-hi: #191920;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f3f1ef;
  --text-muted: #a3a3aa;
  --accent: var(--ember-hot);
  --accent-solid: var(--ember);

  /* Typo */
  --font-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rythme */
  --wrap: 1264px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 4px;
  --radius-lg: 8px;
}

/* Sections claires : on re-déclare les mêmes tokens, tout le reste suit. */
.theme-light {
  --bg: #f4f2ef;
  --bg-raised: #ffffff;
  --bg-sunk: #eae7e2;
  --surface: #ffffff;
  --surface-hi: #ffffff;
  --line: rgba(11, 11, 12, 0.14);
  --line-strong: rgba(11, 11, 12, 0.30);
  --text: #0b0b0c;
  --text-muted: #56565c;
  --accent: var(--ember-ink);
  --accent-solid: var(--ember);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  background: var(--brand-black);
  color: #f3f1ef;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--ember-btn); color: #fff; padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Garde-fou grilles ----------
   Une grille sans colonnes déclarées crée une piste « auto » qui se dimensionne
   sur son contenu le plus large — un bloc de code, un mot long, un tableau — et
   déborde du conteneur sur petit écran. On la borne ici ; les media queries qui
   suivent redéfinissent les colonnes quand il y a la place. */
.hero__inner,
.case,
.case__rows,
.case__row,
.coverage,
.contact,
.contact__aside ul,
.steps,
.stack,
.form__grid,
.field,
.footer__top,
.cta-band,
.usecases,
.proof,
.stats,
.zones li,
.prose dl,
.prose ul,
.prose ol,
.footer__list {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Sections ---------- */
.section {
  background: var(--bg);
  color: var(--text);
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: clamp(52px, 6vw, 88px); }

.section__head { max-width: 62ch; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section__head--wide { max-width: 78ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  flex: none;
  transform: translateY(-4px);
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.018em; }
.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 22px;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--ember-btn); color: #fff; }
.btn--primary:hover { background: var(--ember-btn-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--brand-black) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f1ef;
}
.header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.logo {
  display: inline-flex; align-items: center; position: relative;
  text-decoration: none; flex: none; padding-right: 26px;
}
.logo__word {
  font-size: 1.6rem; font-weight: 500; letter-spacing: -0.045em;
  line-height: 1; color: #fff; position: relative; z-index: 1;
}
.logo__mark {
  position: absolute; right: 0; top: 50%;
  width: 32px; height: 32px; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 78% 52%, #f6c9a8 0%, #e98559 12%, #d64a2a 30%, #a52420 46%, #631515 62%, #2a0f0e 78%, #0b0b0c 92%);
  z-index: 0;
}
.logo__tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  margin-left: 40px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14);
  align-self: center;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: block; padding: 8px 12px; text-decoration: none;
  font-size: 0.94rem; color: #b9b9c0; border-radius: var(--radius);
  transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__link[aria-current='true'] { color: #fff; }
.nav__link[aria-current='true']::after {
  content: ''; display: block; height: 2px; margin-top: 4px;
  background: var(--ember); border-radius: 2px;
}
.header__cta { margin-left: 14px; flex: none; white-space: nowrap; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .2s ease, opacity .2s ease;
}
.burger__bars::before, .burger__bars::after { content: ''; position: absolute; }
.burger__bars::before { transform: translateY(-6px); }
.burger__bars::after { transform: translateY(6px); }
.burger[aria-expanded='true'] .burger__bars { background: transparent; }
.burger[aria-expanded='true'] .burger__bars::before { transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__bars::after { transform: rotate(-45deg); }

@media (max-width: 940px) {
  .logo__tag { display: none; }
  .burger { display: inline-flex; position: relative; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0;
    display: block;
    background: #0e0e11; border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px var(--gutter) 28px;
    display: none;
  }
  .nav[data-open='true'] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav__link[aria-current='true']::after { display: none; }
  .header__cta { margin: 20px 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-black); color: #f3f1ef;
  padding-block: clamp(56px, 7vw, 104px) clamp(0px, 2vw, 24px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 88% 8%, rgba(214, 74, 42, 0.20) 0%, transparent 62%),
    radial-gradient(50% 40% at 0% 100%, rgba(140, 31, 24, 0.16) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; }
}
.hero h1 {
  font-size: clamp(2.3rem, 4.9vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.hero h1 .accent { color: var(--ember-hot); }
.hero__sub { max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; margin-top: 48px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 620px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts__item { background: #0d0d10; padding: 18px 16px; }
.facts__value {
  font-family: var(--font-mono); font-size: 1.28rem; font-weight: 500;
  letter-spacing: -0.03em; color: #fff; line-height: 1.2;
}
.facts__label {
  font-size: 0.78rem; line-height: 1.35; color: #a3a3aa; margin-top: 6px;
}

/* ---------- Terminal illustratif ---------- */
.terminal {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  background: #0f0f13;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.795rem;
  line-height: 1.7;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.09);
  background: #141418;
}
.terminal__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.terminal__dot:first-child { background: var(--ember); }
.terminal__title { margin-left: 8px; font-size: 0.72rem; color: #86868e; letter-spacing: .04em; }
.terminal__body { padding: 18px 16px 20px; overflow-x: auto; }
.terminal__body > * + * { margin-top: 2px; }
/* Les lignes de code ne se cassent pas : le bloc défile seul si besoin. */
.terminal__body > div { white-space: pre; }
@media (max-width: 520px) { .terminal { font-size: 0.72rem; } }
.t-dim { color: #6e6e77; }
.t-user { color: #e8e6e3; }
.t-em { color: var(--ember-hot); }
.t-ok { color: #7fc48b; }
.t-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14);
  color: #a3a3aa;
}
.t-caret {
  display: inline-block; width: 7px; height: 1.05em; vertical-align: -0.18em;
  background: var(--ember-hot); margin-left: 3px;
  animation: blink 1.15s step-end infinite;
}
@keyframes blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
.figure-caption {
  margin-top: 12px; font-size: 0.76rem; color: #9b9ba3;
  font-family: var(--font-mono); letter-spacing: .02em;
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
/* 4 cartes : deux par ligne à partir du desktop, pas de carte orpheline. */
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card__index {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 18px;
}
.card__kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card p + p { margin-top: 12px; }
.card__foot { margin-top: auto; padding-top: 20px; }

/* ---------- Preuves (Pourquoi Tarok) ---------- */
.proof { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof__item { background: var(--bg-raised); padding: clamp(26px, 3vw, 40px); }
.proof__item--wide { grid-column: 1 / -1; }
.proof__num {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 16px;
}
.proof__item h3 { margin-bottom: 14px; max-width: 26ch; }
.proof__item p { color: var(--text-muted); font-size: 0.99rem; }
.proof__item p + p { margin-top: 14px; }

.usecases { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 720px) { .usecases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usecase {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--bg);
}
.usecase__label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.step { position: relative; padding-top: 34px; }
@media (min-width: 900px) { .step { padding-right: 28px; } }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.step::after {
  content: ''; position: absolute; top: -3.5px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
}
.step__n {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .95rem; }
.step__meta {
  margin-top: 14px; font-family: var(--font-mono); font-size: .74rem;
  color: var(--text-muted); letter-spacing: .02em;
}

/* ---------- Cas clients ---------- */
.case {
  display: grid; gap: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: clamp(24px, 3vw, 38px);
}
@media (min-width: 880px) { .case { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; } }
.case + .case { margin-top: 20px; }
.case__logo {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}
.case__sector {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 10px;
}
.case__rows { display: grid; gap: 18px; }
.case__row { display: grid; gap: 6px; }
@media (min-width: 620px) { .case__row { grid-template-columns: 130px minmax(0, 1fr); gap: 20px; } }
.case__label {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); padding-top: 4px;
}
.case__value { color: var(--text-muted); font-size: .99rem; }
.case__value strong { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .02em;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-muted);
}

/* ---------- Équipe ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--bg-raised); padding: 26px 22px; }
.stat__value {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500; letter-spacing: -0.04em; color: var(--text); line-height: 1.05;
}
.stat__label { font-size: .86rem; color: var(--text-muted); margin-top: 10px; }

.stack { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 760px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; } }
.stack__group { border-top: 1px solid var(--line); padding-top: 16px; }
.stack__title {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ---------- Couverture / fuseau ---------- */
.coverage { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 940px) { .coverage { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.zones { list-style: none; padding: 0; margin: 0; }
.zones li { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 4px; }
.zones li:last-child { border-bottom: 1px solid var(--line); }
.zones__name { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.zones__detail { color: var(--text-muted); font-size: .93rem; }

.tz { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 30px); background: var(--surface); }
.tz__row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
.tz__name { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--text-muted); }
.tz__name b { color: var(--text); font-weight: 500; }
.tz__bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 26px; }
.tz__cell { background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 1px; }
.tz__cell--work { background: color-mix(in srgb, var(--text) 30%, transparent); }
.tz__cell--overlap { background: var(--ember); }
.tz__scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .66rem; color: var(--text-muted);
  margin-top: 8px; letter-spacing: .04em;
}
.tz__legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-muted);
}
.tz__key { display: inline-flex; align-items: center; gap: 8px; }
.tz__swatch { width: 12px; height: 12px; border-radius: 2px; background: currentColor; }
.tz__swatch--overlap { background: var(--ember); }
.tz__swatch--work { background: color-mix(in srgb, var(--text) 30%, transparent); }

/* ---------- Formulaire ---------- */
.contact { display: grid; gap: clamp(32px, 4vw, 60px); }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contact__aside p { color: var(--text-muted); }
.contact__aside ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact__aside li { position: relative; padding-left: 24px; color: var(--text-muted); font-size: .96rem; }
.contact__aside li::before { content: '—'; color: var(--accent); position: absolute; left: 0; top: 0; }

.form {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: clamp(24px, 3vw, 36px);
}
.form__grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 600; letter-spacing: -0.005em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  /* 1rem = 16px : en dessous, Safari iOS zoome sur le champ a la mise au point. */
  font-size: 1rem;
  transition: border-color .16s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 80%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field__hint { font-size: .8rem; color: var(--text-muted); }
.form__foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 620px) { .form__foot .btn { width: 100%; justify-content: center; } }
.form__legal { font-size: .8rem; color: var(--text-muted); max-width: 46ch; }

.form__status { display: none; }
.form__status[data-state='error'] {
  display: block; margin-top: 18px; padding: 14px 16px;
  border: 1px solid var(--ember); border-radius: var(--radius);
  background: color-mix(in srgb, var(--ember) 12%, transparent);
  font-size: .92rem;
}
.form__success {
  display: none; text-align: left;
  border: 1px solid var(--accent-solid); border-radius: var(--radius);
  background: color-mix(in srgb, var(--ember) 10%, transparent);
  padding: clamp(24px, 3vw, 36px);
}
.form__success[data-state='visible'] { display: block; }
.form__success h3 { margin-bottom: 12px; }
.form__success p { color: var(--text-muted); }
.form__success .tick {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ember-btn);
  display: grid; place-items: center; margin-bottom: 18px; color: #fff;
}
/* Pot de miel : hors écran, hors tabulation (tabindex=-1) et hors arbre
   d'accessibilité (aria-hidden). Un lecteur d'écran ne doit jamais le
   rencontrer : le remplir ferait silencieusement rejeter le message. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- Bandeau « à valider » ---------- */
.todo {
  border: 1px dashed var(--accent-solid);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ember) 8%, transparent);
  padding: 16px 18px;
  font-size: .89rem;
  color: var(--text);
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px;
}
.todo__tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid currentColor; border-radius: 3px;
  padding: 2px 7px; flex: none; margin-top: 2px;
}
@media (max-width: 700px) {
  .todo { flex-direction: column; gap: 10px; }
  .todo__tag { align-self: flex-start; margin-top: 0; }
}
.todo p { color: var(--text-muted); }
.todo strong { color: var(--text); font-weight: 600; }
.todo--inline { margin-top: 12px; }

/* ---------- CTA de bas de section ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--ember) 14%, transparent), transparent 62%);
  padding: clamp(28px, 3.5vw, 44px);
  display: grid; gap: 22px; align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 820px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.cta-band p { color: var(--text-muted); margin-top: 10px; }

/* ---------- Budget ---------- */
.pricing {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 3.2vw, 42px);
  margin-top: clamp(36px, 4vw, 56px);
  display: grid; gap: clamp(26px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; } }
.pricing__figure {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--accent);
}
.pricing__legend { color: var(--text-muted); font-size: .97rem; margin-top: 14px; max-width: 34ch; }
.pricing__calc {
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted);
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  letter-spacing: .01em;
}
.pricing h3 { margin-bottom: 12px; }
.pricing ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
/* Puce en position absolue : le contenu de l'item reste un flux de texte normal,
   même s'il contient du gras ou des liens (un display:flex en ferait des colonnes). */
.pricing li { position: relative; padding-left: 24px; color: var(--text-muted); font-size: .96rem; }
.pricing li::before { content: '—'; color: var(--accent); position: absolute; left: 0; top: 0; }
.pricing p + h3 { margin-top: 26px; }
.pricing__note { color: var(--text-muted); font-size: .96rem; }

/* ---------- Footer ---------- */
.footer {
  background: #08080a; color: #cfcdcb;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: clamp(52px, 6vw, 76px) 32px;
}
.footer__top { display: grid; gap: 40px; }
@media (min-width: 700px)  { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 40px; } }
.footer__blurb { color: #8e8e96; font-size: .93rem; max-width: 40ch; margin-top: 18px; }
.footer__title {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: #77777f; margin-bottom: 14px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* Le lien porte lui-meme sa cible tactile : 15px de texte + 2x6px = 27px. */
.footer__list a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: .93rem; color: #cfcdcb; }
.footer__list a:hover { color: var(--ember-hot); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 60px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .8rem; color: #77777f;
}
.footer__bottom a { display: inline-block; padding: 6px 0; color: #9a9aa2; text-decoration: none; }
.footer__bottom a:hover { color: var(--ember-hot); }

/* ---------- Pages intérieures ---------- */
.page-head { padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 52px); background: var(--brand-black); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-top: 42px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--text-muted); font-size: 1rem; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose ul + p, .prose ol + p, .prose dl + p { margin-top: 16px; }
.prose a { color: var(--accent); }
.prose dl { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 620px) { .prose dl { grid-template-columns: 220px minmax(0, 1fr); gap: 12px 24px; } }
.prose dt { font-weight: 600; color: var(--text); font-size: .95rem; }

/* Réponse directe en tête de page : c'est ce qu'un moteur génératif cite. */
.answer {
  margin: 24px 0 8px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-solid); border-radius: var(--radius);
}
.answer__label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.answer p { color: var(--text); font-size: 1.04rem; }
.answer p + p { margin-top: 12px; }

/* Tableau de prix : il doit défiler dans son cadre, jamais élargir la page. */
.table-wrap { overflow-x: auto; margin-top: 18px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .01em; }
.prose td { color: var(--text-muted); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* Sous 600px un tableau à 3 colonnes devient illisible : chaque ligne
   devient un bloc, et chaque cellule porte l'intitulé de sa colonne. */
@media (max-width: 600px) {
  .table-wrap { overflow-x: visible; }
  .prose table { min-width: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .prose tr {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 6px 0; margin-bottom: 12px;
  }
  .prose td { border-bottom: 0; padding: 8px 14px; }
  .prose td::before {
    content: attr(data-label); display: block;
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
  }
  .prose td[data-label='']::before { display: none; }
}

.prose dd { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Révélation au scroll ---------- */
/* Révélation par translation seule : jamais d'opacité nulle, donc jamais de
   contenu illisible — ni pour un lecteur, ni pour un audit d'accessibilité. */
.is-armed .reveal { transform: translateY(12px); }
.is-armed .reveal.is-in {
  transform: none;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .is-armed .reveal { transform: none; }
}
