/* ==========================================================================
   Filon — design system
   Flat, sobre, lisible. Une seule feuille, sans build : jetons → base → mise en
   page → composants → pages. Référence vivante : /charte.

   Règles :
   - Une couleur ne s'écrit jamais en dur hors de :root — toujours un jeton.
   - Aucun dégradé décoratif, aucune ombre portée sur les composants courants :
     la profondeur est réservée à l'illustration du tableau (.shot).
   - CSP stricte : aucun style en ligne dans les vues, tout passe par ce fichier.
   ========================================================================== */

/* ---------- 1. Jetons ---------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Encre (texte, fonds sombres) */
  --ink-950: #070d1b;
  --ink-900: #0b1324;
  --ink-800: #18223a;
  --ink-700: #2a3550;
  --ink-600: #465069;
  --ink-500: #5d6780;
  --ink-400: #8b94a8;
  --ink-300: #b7bece;

  /* Surfaces et filets */
  --surface: #ffffff;
  --bg: #f6f8fb;
  --bg-sunken: #eef1f6;
  --line: #e2e6ee;
  --line-strong: #cdd4e0;

  /* Marque : bleu d'action, or du filon (accent rare) */
  --brand-50: #eef3ff;
  --brand-100: #dbe5ff;
  --brand-200: #b8cbff;
  --brand-500: #3b6bff;
  --brand-600: #2457f5;
  --brand-700: #1a44d1;
  --brand-800: #1638a8;
  --gold-100: #fff4cc;
  --gold-400: #ffc933;
  --gold-500: #f2b200;
  --gold-700: #8a6400;

  /* États */
  --success-50: #e7f6ef;
  --success-600: #0f7a56;
  --warning-50: #fff6e0;
  --warning-700: #8f5400;
  --danger-50: #fdeceb;
  --danger-600: #c22f2c;

  /* Typographie */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.25rem;   /* 20 */
  --fs-2xl: 1.5rem;   /* 24 */
  --fs-3xl: 1.875rem; /* 30 */
  --fs-4xl: 2.375rem; /* 38 */
  --fs-5xl: 3rem;     /* 48 */
  --fs-6xl: 3.5rem;   /* 56 */
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Espacements (grille de 4) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Formes */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Contrôles */
  --control-h: 48px;
  --control-h-sm: 36px;
  --focus: 0 0 0 3px rgba(36, 87, 245, 0.32);

  --container: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- 2. Base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--bg);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink-900); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.022em; }
p { margin: 0; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--brand-100); color: var(--ink-900); }

.sr-only {
  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: var(--s-4); top: -60px; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--ink-900); color: #fff; border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); color: #fff; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-500); }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Mise en page --------------------------------------------- */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-16) 0; }
.section--tight { padding: var(--s-12) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink-900); color: var(--ink-300); }
.section--ink h2, .section--ink h3 { color: #fff; }
@media (min-width: 1024px) { .section { padding: var(--s-24) 0; } }

.section-head { max-width: 680px; margin-bottom: var(--s-10); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: var(--s-3); }
.eyebrow::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--gold-500); }
.h1 { font-size: clamp(2.125rem, 5.2vw, var(--fs-6xl)); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.75rem, 3.4vw, var(--fs-4xl)); letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-xl); letter-spacing: -0.015em; line-height: var(--lh-snug); }
.lead { font-size: var(--fs-lg); color: var(--ink-600); margin-top: var(--s-4); }
@media (min-width: 768px) { .lead { font-size: var(--fs-xl); } }

.grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* ---------- 4. En-tête et pied ------------------------------------------ */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--s-6); }
.site-nav { display: none; gap: var(--s-8); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-4); }
.site-header__link { color: var(--ink-700); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.site-header__link:hover { color: var(--ink-900); }
.site-nav a { color: var(--ink-600); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
.site-nav a:hover { color: var(--ink-900); }
@media (min-width: 900px) { .site-nav { display: flex; } }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); text-decoration: none; font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.03em; }
.logo:hover { color: var(--ink-900); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo--light, .logo--light:hover { color: #fff; }

.site-footer { background: var(--ink-950); color: var(--ink-400); padding: var(--s-12) 0 var(--s-10); font-size: var(--fs-sm); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--s-6); }
.site-footer a { color: var(--ink-300); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-6); }
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- 5. Composants ------------------------------------------------ */

/* Boutons : primaire (une action par écran), secondaire, fantôme. */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink-900); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-h); padding: 0 var(--s-5);
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-md); font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { --btn-bg: var(--bg-sunken); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--r-md); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600); }
.btn--primary:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--brand-700); padding: 0 var(--s-3); }
.btn--ghost:hover { --btn-bg: var(--brand-50); }
.btn--invert { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-bd: #fff; }
.btn--invert:hover { --btn-bg: var(--brand-50); }
.btn--sm { height: var(--control-h-sm); padding: 0 var(--s-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--lg { height: 56px; padding: 0 var(--s-6); font-size: var(--fs-lg); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[aria-busy="true"] .btn__label::after { content: "…"; }

.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; flex: none; }
.btn .spinner { display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Champs */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); }
.label__opt { font-weight: 450; color: var(--ink-500); }
.input, .select, .textarea {
  width: 100%; height: var(--control-h); padding: 0 var(--s-4);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  color: var(--ink-900); font-size: var(--fs-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  appearance: none;
}
.textarea { height: auto; min-height: 104px; padding: var(--s-3) var(--s-4); resize: vertical; line-height: 1.5; }
.select {
  padding-right: var(--s-10); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger-600); }
.help { font-size: var(--fs-xs); color: var(--ink-500); }
.field-error { font-size: var(--fs-xs); font-weight: 550; color: var(--danger-600); }
.field-error:empty { display: none; }

/* Champ piège : hors écran, jamais display:none (certains robots l'ignorent alors). */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--bg-sunken); color: var(--ink-700); white-space: nowrap; }
.badge--brand { background: var(--brand-50); color: var(--brand-700); }
.badge--success { background: var(--success-50); color: var(--success-600); }
.badge--warning { background: var(--warning-50); color: var(--warning-700); }
.badge--danger { background: var(--danger-50); color: var(--danger-600); }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge__dot--live { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.card--pad-lg { padding: var(--s-8); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); margin-bottom: var(--s-5); }
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: var(--fs-lg); font-weight: 650; color: var(--ink-900); letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.card__text { color: var(--ink-600); font-size: var(--fs-sm); line-height: 1.65; }

/* Alertes */
.alert { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); font-size: var(--fs-sm); background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert--warning { background: var(--warning-50); color: var(--warning-700); border-color: #fbe3ae; }
.alert--danger { background: var(--danger-50); color: var(--danger-600); border-color: #f6c9c7; }
.alert--success { background: var(--success-50); color: var(--success-600); border-color: #bfe6d4; }
.alert[hidden] { display: none; }

/* Pastilles de suggestion */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-600); font-size: var(--fs-sm); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.chip:hover { border-color: var(--brand-200); color: var(--brand-700); }

/* Tableau de données */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { position: sticky; top: 0; background: var(--bg); color: var(--ink-500); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink-700); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table__lead { font-weight: 600; color: var(--ink-900); min-width: 200px; }
.table__sub { display: block; font-size: var(--fs-xs); color: var(--ink-500); font-weight: 450; margin-top: 2px; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.table th.sticky-col { background: var(--bg); z-index: 2; }
.table .empty-cell { color: var(--ink-300); }
.table td.url { white-space: nowrap; }
.table td.address { min-width: 220px; }
.masked { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-600); }

/* Note étoilée */
.rating { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rating svg { width: 14px; height: 14px; color: var(--gold-500); }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--s-12); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-700); background: var(--brand-50); border-radius: var(--r-sm); padding: 4px 8px; letter-spacing: 0.02em; }

/* Liste à coches */
.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-700); }
.checklist svg { width: 18px; height: 18px; color: var(--success-600); flex: none; margin-top: 2px; }

/* Indicateurs */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.stat__value { font-size: var(--fs-3xl); font-weight: 700; color: var(--ink-900); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-500); margin-top: var(--s-1); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--bg-sunken); overflow: hidden; margin-top: var(--s-3); }
.meter__bar { height: 100%; background: var(--brand-600); border-radius: inherit; width: 0; transition: width 0.6s var(--ease); }

/* Progression d'une extraction */
.progress-list { list-style: none; display: grid; gap: var(--s-4); }
.progress-item { display: flex; align-items: center; gap: var(--s-3); color: var(--ink-400); font-size: var(--fs-md); transition: color 0.2s; }
.progress-item__icon { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all 0.2s; }
.progress-item__icon svg { width: 14px; height: 14px; opacity: 0; }
.progress-item.is-active { color: var(--ink-900); font-weight: 550; }
.progress-item.is-active .progress-item__icon { border-color: var(--brand-600); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.progress-item.is-done { color: var(--ink-600); }
.progress-item.is-done .progress-item__icon { border-color: var(--success-600); background: var(--success-600); color: #fff; }
.progress-item.is-done .progress-item__icon svg { opacity: 1; }
.progress-bar { height: 4px; background: var(--bg-sunken); border-radius: var(--r-pill); overflow: hidden; }
.progress-bar__fill { height: 100%; width: 4%; background: var(--brand-600); border-radius: inherit; transition: width 1s linear; }

/* Tarifs */
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-8); }
.price-card--featured { border: 2px solid var(--brand-600); position: relative; }
.price-card__tag { position: absolute; top: -13px; left: var(--s-8); }
.price-card__name { font-size: var(--fs-lg); font-weight: 650; color: var(--ink-900); }
.price-card__desc { font-size: var(--fs-sm); color: var(--ink-500); margin-top: var(--s-1); }
.price-card__price { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-6) 0; }
.price-card__amount { font-size: var(--fs-5xl); font-weight: 750; color: var(--ink-900); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__unit { color: var(--ink-500); font-size: var(--fs-sm); }
.price-card .checklist { margin-bottom: var(--s-8); flex: 1; }

.calc { margin-top: var(--s-8); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.2fr 1fr 1fr; } }
.calc__out { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--bg); }
.calc__out-label { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.calc__out-value { font-size: var(--fs-2xl); font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.range { width: 100%; accent-color: var(--brand-600); height: 28px; cursor: pointer; }
.range-value { font-size: var(--fs-2xl); font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-weight: 600; color: var(--ink-900); font-size: var(--fs-lg); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; color: var(--ink-400); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 var(--s-6); color: var(--ink-600); max-width: 760px; }
.faq__body p + p { margin-top: var(--s-3); }

/* Bloc d'appel final */
.cta-band { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- 6. Accueil --------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: var(--s-12) 0 var(--s-16); background: var(--surface); border-bottom: 1px solid var(--line); }
.hero::before {
  /* Trame de tableur, très discrète : le motif EST le produit. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--bg-sunken) 1px, transparent 1px), linear-gradient(90deg, var(--bg-sunken) 1px, transparent 1px);
  background-size: 120px 40px; opacity: 0.7;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
/* minmax(0, 1fr) : sans lui, la colonne prend la largeur du tableau illustré (nowrap) et déborde. */
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-12); align-items: center; }
@media (min-width: 1080px) {
  .hero { padding: var(--s-20) 0 var(--s-24); }
  .hero__grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--s-12); }
}
.hero__title em { font-style: normal; color: var(--brand-600); }
.hero__form { margin-top: var(--s-8); }
.hero__assurances { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-500); }
.hero__assurances span { display: inline-flex; align-items: center; gap: 6px; }
.hero__assurances svg { width: 16px; height: 16px; color: var(--success-600); }

.sample-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: var(--s-5); display: grid; gap: var(--s-4); }
.sample-form__row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) {
  .sample-form { padding: var(--s-6); }
  .sample-form__row { grid-template-columns: 1fr 1fr; }
  .sample-form__row--submit { grid-template-columns: 170px 1fr; align-items: end; }
}
.sample-form__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.sample-form__suggest-label { font-size: var(--fs-xs); color: var(--ink-500); margin-right: var(--s-1); }

/* Bandeau de chiffres-clés (des faits, pas des promesses) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact__value { font-size: var(--fs-3xl); font-weight: 750; color: var(--ink-900); letter-spacing: -0.03em; }
.fact__label { font-size: var(--fs-sm); color: var(--ink-500); }

/* Groupes de colonnes */
.colgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.colgroup__title { display: flex; align-items: center; gap: var(--s-3); font-weight: 650; color: var(--ink-900); margin-bottom: var(--s-4); }
.colgroup__title svg { width: 20px; height: 20px; color: var(--brand-600); }
.colgroup__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.colgroup__list li { font-family: var(--mono); font-size: 0.75rem; padding: 3px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-600); }

/* Sources recoupées (section Données) */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.sources__label { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin-right: var(--s-2); }
.sources__item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 550; color: var(--ink-800); }
.sources__item svg { width: 16px; height: 16px; color: var(--brand-600); }

/* Comparatif (accueil) — la colonne Filon est la seule mise en avant. */
.compare-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
@media (min-width: 1024px) { .compare-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--s-12); } .compare-head .lead { margin: 0; } }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); }
.compare__row:first-child { border-top: 0; }
.compare__row > span { padding: var(--s-4) var(--s-5); min-width: 0; }
.compare__row--head > span { padding-top: var(--s-5); padding-bottom: var(--s-5); font-weight: 650; color: var(--ink-600); font-size: var(--fs-sm); }
.compare__label { color: var(--ink-800); font-weight: 550; font-size: var(--fs-sm); }
.compare__us { background: var(--brand-50); color: var(--ink-900); font-weight: 600; text-align: center; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.compare__row--head .compare__us { border-top: 3px solid var(--brand-600); }
.compare__them { color: var(--ink-600); text-align: center; font-size: var(--fs-sm); display: flex; flex-direction: column; align-items: center; }
.compare__yes { width: 22px; height: 22px; color: var(--success-600); }
.compare__no { color: var(--ink-300); font-size: var(--fs-xl); line-height: 1; }
.compare__note { font-size: var(--fs-xs); color: var(--ink-500); }
.compare__price { font-size: var(--fs-3xl); font-weight: 750; letter-spacing: -0.03em; color: var(--brand-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.compare__price--them { color: var(--ink-500); font-weight: 650; }
.compare__sub { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-500); margin-top: 2px; }
.compare__footnote { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--ink-500); max-width: 900px; }
.logo--compact { font-size: 1rem; pointer-events: none; }
.logo--compact .logo__mark { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .compare__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare__label { grid-column: 1 / -1; padding-bottom: 0 !important; background: var(--bg); padding-top: var(--s-3) !important; }
  .compare__row--head > span:first-child { display: none; }
  .compare__row > span { padding: var(--s-3); }
  .compare__price { font-size: var(--fs-2xl); }
}

/* Accès MCP (accueil) */
.mcp { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 1024px) { .mcp { grid-template-columns: 1.05fr 1fr; } }
.eyebrow--light { color: var(--brand-200); }
.lead--light { color: var(--ink-300); }
.mcp__tools { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.mcp__tools li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); font-size: var(--fs-sm); color: var(--ink-400); }
.mcp__tools code { font-family: var(--mono); font-size: 0.8125rem; color: #fff; background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--r-sm); padding: 2px 8px; }
.mcp__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-400); }
.btn--ghost-light { --btn-bg: transparent; --btn-bd: var(--ink-600); --btn-fg: #fff; }
.btn--ghost-light:hover { --btn-bg: var(--ink-800); --btn-fg: #fff; }
.chat { background: var(--ink-950); border: 1px solid var(--ink-800); border-radius: var(--r-xl); padding: var(--s-6); display: grid; gap: var(--s-3); font-size: var(--fs-sm); }
.chat__msg { max-width: 88%; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--ink-800); color: var(--ink-300); line-height: 1.55; }
.chat__msg b { color: #fff; font-weight: 650; }
.chat__msg--user { justify-self: end; background: var(--brand-600); color: #fff; border-bottom-right-radius: var(--r-sm); }
.chat__tool { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font-family: var(--mono); font-size: 0.75rem; color: var(--gold-400); padding: 0 var(--s-1); }
.chat__tool svg { width: 14px; height: 14px; }
.chat__tool span { color: var(--ink-400); }

/* Comptes */
.auth { padding: var(--s-12) 0 var(--s-16); }
.auth__grid { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 900px) { .auth__grid { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: var(--s-16); } .auth__aside { padding-top: var(--s-10); } }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-700); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); flex-wrap: wrap; }
.account-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .account-grid { grid-template-columns: 1.3fr 1fr; } }
.account-card__head { display: flex; gap: var(--s-4); align-items: flex-start; }
.account-card__head .card__icon { margin-bottom: 0; flex: none; }

/* ---------- 7. Illustration : capture du tableau ------------------------- */
/* Seul endroit du site qui porte de la profondeur : rotation 3D, ombre en couches,
   profondeur de champ (les dernières lignes s'estompent et se floutent). */

.shot { position: relative; perspective: 1800px; min-height: 360px; }
.shot__plane {
  position: relative;
  transform: rotateX(9deg) rotateY(-16deg) rotateZ(2.5deg) translateZ(0);
  transform-style: preserve-3d;
  transform-origin: 30% 50%;
  transition: transform 0.8s var(--ease);
}
.shot:hover .shot__plane { transform: rotateX(6deg) rotateY(-11deg) rotateZ(1.5deg); }
.shot__glow {
  position: absolute; inset: 14% 8% 4% 12%; border-radius: var(--r-xl);
  background: var(--brand-500); opacity: 0.12; filter: blur(40px); transform: translateZ(-80px);
}
.shot__window {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 1px rgba(11, 19, 36, 0.04),
    0 4px 8px rgba(11, 19, 36, 0.05),
    0 18px 36px -6px rgba(11, 19, 36, 0.12),
    0 48px 96px -24px rgba(11, 19, 36, 0.28);
  mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
  font-size: 12px;
}
.shot__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.shot__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.shot__file { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-600); font-size: 11px; font-weight: 550; }
.shot__file svg { width: 12px; height: 12px; color: var(--success-600); }
.shot__tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink-400); font-size: 11px; }
.shot__tools b { color: var(--ink-700); font-weight: 600; }
.shot__table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.shot__table th { text-align: left; font-weight: 600; color: var(--ink-500); background: var(--bg); padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.shot__table td { padding: 8px 12px; border-bottom: 1px solid var(--bg-sunken); border-right: 1px solid var(--bg-sunken); color: var(--ink-700); }
.shot__table td:first-child, .shot__table th:first-child { color: var(--ink-400); text-align: right; width: 28px; padding-right: 8px; }
.shot__table td:nth-child(2) { color: var(--ink-900); font-weight: 600; }
.shot__table tr.is-selected td { background: var(--brand-50); }
.shot__table tr.is-selected td:nth-child(2) { box-shadow: inset 2px 0 0 var(--brand-600); }
.shot__table tbody tr:nth-child(n+7) { filter: blur(0.5px); }
.shot__table tbody tr:nth-child(n+9) { filter: blur(1.1px); }
.shot__table tbody tr:nth-child(n+11) { filter: blur(1.8px); }
.shot__mail { font-family: var(--mono); color: var(--brand-700); }
.shot__star { color: var(--gold-500); }
.shot__pill { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--success-50); color: var(--success-600); font-size: 10.5px; font-weight: 600; }

.shot__badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 14px; font-size: var(--fs-sm); color: var(--ink-700);
  box-shadow: 0 12px 28px -8px rgba(11, 19, 36, 0.22);
  transform: translateZ(60px);
}
.shot__badge b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.shot__badge-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.shot__badge-icon svg { width: 16px; height: 16px; }
.shot__badge--rows { left: -4%; bottom: 14%; }
.shot__badge--rows .shot__badge-icon { background: var(--brand-50); color: var(--brand-700); }
.shot__badge--export { right: 2%; top: -4%; }
.shot__badge--export .shot__badge-icon { background: var(--success-50); color: var(--success-600); }
@media (max-width: 1079px) {
  .shot { margin: 0 calc(-1 * var(--gutter) / 2); }
  .shot__badge--rows { left: 4%; }
}
@media (max-width: 560px) {
  .shot { min-height: 0; }
  .shot__badge { font-size: var(--fs-xs); padding: 8px 10px; }
  .shot__badge--export { display: none; }
}

/* ---------- 8. Page d'échantillon --------------------------------------- */

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s-10) 0 var(--s-8); }
.page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); color: var(--ink-500); font-size: var(--fs-sm); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.crumb { font-size: var(--fs-sm); color: var(--ink-500); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--s-4); }
.crumb svg { width: 16px; height: 16px; }

.pending { max-width: 560px; margin: 0 auto; text-align: left; }
.pending__title { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.pending .progress-bar { margin: var(--s-6) 0 var(--s-8); }

.locked-note { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-600); font-size: var(--fs-sm); background: var(--surface); }
.locked-note svg { width: 18px; height: 18px; color: var(--ink-400); flex: none; }

.order { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .order { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.order-form { display: grid; gap: var(--s-5); }
.order-form__row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .order-form__row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.choice-group { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .choice-group { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: block; height: 100%; padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.choice__title { display: flex; justify-content: space-between; gap: var(--s-2); font-weight: 650; color: var(--ink-900); }
.choice__desc { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-top: 2px; }
.choice input:checked + .choice__box { border-color: var(--brand-600); box-shadow: inset 0 0 0 1px var(--brand-600); background: var(--brand-50); }
.choice input:focus-visible + .choice__box { box-shadow: var(--focus); }
.success-panel { text-align: center; padding: var(--s-10) var(--s-6); }
.success-panel__icon { width: 56px; height: 56px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success-600); }
.success-panel__icon svg { width: 28px; height: 28px; }

/* ---------- 9. Pages de texte ------------------------------------------- */

.prose { max-width: 720px; }
.prose h1 { font-size: var(--fs-4xl); margin-bottom: var(--s-6); }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-10) 0 var(--s-3); }
.prose p, .prose li { color: var(--ink-600); }
.prose p + p { margin-top: var(--s-3); }
.prose ul { padding-left: var(--s-5); margin-top: var(--s-3); }

/* ---------- 10. Charte (/charte) ---------------------------------------- */

.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-4); }
.ds-swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); font-size: var(--fs-xs); }
.ds-swatch__chip { height: 64px; }
.ds-swatch__meta { padding: var(--s-2) var(--s-3); }
.ds-swatch__meta code { color: var(--ink-500); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.ds-block + .ds-block { margin-top: var(--s-12); }
.ds-label { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin-bottom: var(--s-4); }
.ds-type > * + * { margin-top: var(--s-3); }
.ds-space { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.ds-space__bar { background: var(--brand-200); border-radius: 2px; width: 24px; }
.ds-space__item { text-align: center; font-size: var(--fs-xs); color: var(--ink-500); }

/* Couleurs du nuancier (classes, pas de style en ligne : CSP) */
.bg-ink-900 { background: var(--ink-900); } .bg-ink-700 { background: var(--ink-700); } .bg-ink-500 { background: var(--ink-500); }
.bg-ink-300 { background: var(--ink-300); } .bg-line { background: var(--line); } .bg-bg { background: var(--bg); }
.bg-brand-600 { background: var(--brand-600); } .bg-brand-700 { background: var(--brand-700); } .bg-brand-100 { background: var(--brand-100); }
.bg-brand-50 { background: var(--brand-50); } .bg-gold-500 { background: var(--gold-500); } .bg-gold-100 { background: var(--gold-100); }
.bg-success-600 { background: var(--success-600); } .bg-warning-700 { background: var(--warning-700); } .bg-danger-600 { background: var(--danger-600); }
.h-4 { height: 4px; } .h-8 { height: 8px; } .h-12 { height: 12px; } .h-16 { height: 16px; } .h-24 { height: 24px; } .h-32 { height: 32px; } .h-48 { height: 48px; } .h-64 { height: 64px; }

/* ---------- 11. Utilitaires d'espacement -------------------------------- */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); } .mt-10 { margin-top: var(--s-10); } .mt-12 { margin-top: var(--s-12); }
.mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.text-center { text-align: center; }
