/* ============================================================
   ASPI EASY — global.css
   Direction « Signal » · light only · re-skin en une passe
   Tout est piloté par tokens. Zéro couleur en dur dans les composants.
   ============================================================ */

/* ---------- Webfonts (Google Fonts, latin self-hosted) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/archivo.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/space-mono-700.woff2') format('woff2');
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ---- Palette (Graphite — light) ---- */
  --fond: #FFFFFF;          /* arrière-plan global (blanc pur) */
  --surface: #FFFFFF;       /* cartes, blocs */
  --soft: #F4F5F6;          /* fond hero / sections douces (gris froid pâle) */
  --text: #1D1D1F;          /* titres + corps (graphite) */
  --text-soft: #6E6E73;     /* sous-titres, méta */

  --accent: #2B50D8;        /* bleu cobalt — 3 rôles : accroche (.hl), action/lien, note */
  --accent-strong: #1E3BA8; /* cobalt hover/pressed */
  --on-accent: #FFFFFF;     /* ⚠ texte BLANC sur cobalt, jamais encre */
  --accent-tint: #E7ECFC;   /* pastille cobalt pâle */

  --score: #2B50D8;         /* badge/tuile score : fond cobalt */
  --score-text: #FFFFFF;    /* chiffres du badge score : blanc */
  --star: #A26000;          /* étoiles avis (ambre fonce, AA sur surface/fond) */

  --promo: #B2450F;         /* bonne affaire / prix casse (orange brule, AA : 4.68:1 sur promo-tint) */
  --promo-tint: #FBE7DA;
  --succes: #147A3A;        /* validations (AA : 4.63:1 sur succes-tint) */
  --succes-tint: #DEF2E4;
  --danger: #C42A1E;        /* alertes */
  --danger-tint: #FBE3E0;

  --border: #E4E4DC;        /* filets, séparateurs */
  --border-strong: #16181C; /* cadres « crochets », emphase */

  --footer-bg: #16181C;
  --footer-text: #9CA0A6;   /* texte atténué sur footer sombre */
  --on-dark: #FFFFFF;        /* texte/blanc sur fonds encre */
  --on-dark-soft: #C7CAD0;   /* texte atténué sur encre (label score, bloc CTA sombre) */

  /* ---- Typographie ---- */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --fs-caption: 0.8125rem;  /* 13px — labels, méta */
  --fs-small: 0.9375rem;    /* 15px */
  --fs-body: 1.0625rem;     /* 17px — corps mini (senior ok) */
  --fs-lede: 1.1875rem;     /* 19px — chapô */
  --fs-h4: 1.25rem;         /* 20px */
  --fs-h3: 1.5rem;          /* 24px */
  --fs-h2: clamp(1.75rem, 3.4vw, 2.5rem); /* @kind font */
  --fs-h1: clamp(2.25rem, 5.2vw, 3.75rem); /* @kind font */

  /* ---- Formes (angles francs) ---- */
  --r-card: 8px;
  --r-btn: 6px;
  --r-badge: 4px;
  --r-pill: 999px;
  --bw: 1px;                /* filet standard */
  --bw-strong: 2px;         /* cadre emphase */

  /* ---- Élévation (discrète, Signal = filets > ombres) ---- */
  --shadow-sm: 0 1px 2px rgba(20,22,28,.05);
  --shadow-card: 0 6px 20px -14px rgba(20,22,28,.22);
  --shadow-pop: 0 16px 40px -20px rgba(20,22,28,.34);

  /* ---- Espacement ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --maxw: 1140px;
  --ease: cubic-bezier(.2,.6,.2,1); /* @kind other */
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent-strong); border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--sp-6); }
.section { padding-block: var(--sp-16); }
.muted { color: var(--text-soft); }
.hl { color: var(--accent); }  /* accroche éditoriale — cobalt, 1 seule règle */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* eyebrow / kicker label */
.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft);
}
.kicker svg { width: 16px; height: 16px; }

/* Signature « crochets » d'angle */
.bracketed { position: relative; }
.bracketed::before, .bracketed::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.bracketed::before { top: 8px; left: 8px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.bracketed::after { bottom: 8px; right: 8px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body);
  padding: 13px 22px; border-radius: var(--r-btn); border: var(--bw-strong) solid transparent;
  transition: transform .12s var(--ease), background-color .15s, border-color .15s, color .15s;
  line-height: 1; text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--cta {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 8px 18px -10px rgba(43,80,216,.45);
}
.btn--cta:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--soft); color: var(--text); border-color: var(--border-strong); }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 16px 28px; font-size: var(--fs-lede); }

/* Dossier candidat : lecture rapide avant une confirmation Telegram. */
.candidate-grid { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: var(--sp-8); align-items: start; }
.candidate-photo { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); min-height: 320px; padding: var(--sp-6); display: grid; place-items: center; position: relative; }
.candidate-photo img { width: 100%; max-height: 340px; object-fit: contain; }
.candidate-photo .photo-tag { position: absolute; top: var(--sp-4); left: var(--sp-4); }
.candidate-panel { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-6); }
.candidate-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.candidate-fact { background: var(--soft); border-radius: var(--r-badge); padding: var(--sp-3); }
.candidate-fact span { display: block; color: var(--text-soft); font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.candidate-fact b { display: block; margin-top: 2px; font-size: var(--fs-small); }
.candidate-note { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-5); padding: var(--sp-4); background: var(--promo-tint); border-left: 4px solid var(--promo); border-radius: var(--r-card); }
.candidate-note svg { flex: none; width: 22px; color: var(--promo); }
.candidate-source { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); font-size: var(--fs-small); }
.candidate-source a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.candidate-catalog { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.candidate-catalog a { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: var(--bw) solid var(--border); border-radius: var(--r-card); font-weight: 700; }
.candidate-catalog a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .candidate-grid { grid-template-columns: 1fr; gap: var(--sp-5); } .candidate-photo { min-height: 240px; } .candidate-facts { grid-template-columns: 1fr; } }

/* États désactivés : .btn et .chip (mêmes règles, tokens existants uniquement) */
.btn:disabled, .btn[aria-disabled="true"],
.chip:disabled, .chip[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed;
  transform: none; box-shadow: none;
}

/* lien accentué : texte encre + soulignage lime (AA-safe) */
.link {
  font-weight: 700; color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  transition: box-shadow .15s, background-color .15s;
}
.link:hover { box-shadow: inset 0 -1.4em 0 var(--accent); color: var(--on-accent); }

/* note partenaire (sous chaque CTA) */
.partner {
  font-size: var(--fs-caption); color: var(--text-soft); line-height: 1.35;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.partner svg { width: 13px; height: 13px; flex: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: var(--bw) solid var(--border);
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700; border-radius: 0 0 var(--r-card) 0; }
.skip-link:focus { left: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-logo { height: 48px; width: auto; flex: none; display: block; }
.site-footer .brand-logo { height: 36px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--text-soft); letter-spacing: 0; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); font-weight: 600; font-size: var(--fs-small); }
.nav-links a { color: var(--text-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }

/* ============================================================
   HERO (data-first, sans image — assumé)
   ============================================================ */
.hero { background: var(--soft); border-bottom: var(--bw) solid var(--border); position: relative; overflow: hidden; }
.hero::after { /* trame discrète */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 100% 34px;
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  mask-image: linear-gradient(transparent, #000 60%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: var(--sp-16); }
.hero h1 { max-width: 16ch; margin-top: var(--sp-4); }
.hero .lede { font-size: var(--fs-lede); color: var(--text-soft); max-width: 52ch; margin-top: var(--sp-5); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--font-mono); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.hero-stat span { font-size: var(--fs-caption); color: var(--text-soft); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
/* Hero accueil : 2 colonnes (copy + illustration) */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center; }
.hero-art { display: flex; justify-content: flex-end; }
.hero-art img { width: 100%; max-width: 500px; height: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-art { justify-content: center; }
  .hero-art img { max-width: 300px; }
  .site-header .nav-cta { display: none; }
}

/* ============================================================
   PROFILS (4 usages)
   ============================================================ */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-10); }
.profile {
  background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  text-align: left; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.profile:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.profile .pico {
  width: 46px; height: 46px; border-radius: var(--r-badge);
  background: var(--accent-tint); color: var(--text);
  display: grid; place-items: center;
}
.profile .pico svg { width: 24px; height: 24px; }
.profile h4 { font-size: var(--fs-h4); }
.profile p { font-size: var(--fs-small); color: var(--text-soft); }
.profile .more { margin-top: auto; font-weight: 700; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 6px; }
.profile .more svg { width: 16px; height: 16px; transition: transform .15s; }
.profile:hover .more svg { transform: translateX(3px); }

/* ============================================================
   COMPOSANT SCORE
   ============================================================ */
/* Badge score /100 — encre + chiffres lime mono, crochets d'angle */
.score-badge {
  background: var(--score); color: var(--score-text);
  border-radius: var(--r-card); padding: var(--sp-5) var(--sp-6);
  display: inline-flex; flex-direction: column; align-items: center;
  position: relative; min-width: 132px;
}
.score-badge::before, .score-badge::after {
  content: ""; position: absolute; width: 12px; height: 12px;
}
.score-badge::before { top: 9px; left: 9px; border-top: 2px solid var(--on-accent); border-left: 2px solid var(--on-accent); opacity:.5; }
.score-badge::after { bottom: 9px; right: 9px; border-bottom: 2px solid var(--on-accent); border-right: 2px solid var(--on-accent); opacity:.5; }
.score-badge .val { font-family: var(--font-mono); font-weight: 700; font-size: 3.4rem; line-height: .85; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score-badge .of { font-family: var(--font-mono); font-size: var(--fs-caption); color: color-mix(in srgb, var(--score-text) 78%, transparent); margin-top: 4px; }
.score-badge .lab { color: var(--on-dark-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: var(--sp-2); }

/* version XL pour la fiche */
.score-badge--xl { min-width: 180px; padding: var(--sp-6) var(--sp-8); }
.score-badge--xl .val { font-size: 5rem; }

/* petit chip score (cartes / listing) */
/* Jauge de note : anneau lime rempli à score% (conic-gradient) + disque encre + chiffre lime. */
.score-chip {
  --v: 0;
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--border) 0);
}
.score-chip::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-chip .n { position: relative; z-index: 1; color: var(--text); font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; line-height: 1; letter-spacing: -0.02em; }
.score-chip .d { display: none; }
.product-card .card-detail { margin-top: var(--sp-2); }

/* Sous-scores : chiffres tabulaires + mini-barres */
.subscores { display: grid; gap: var(--sp-3); }
.subscore { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.subscore .name { font-weight: 600; font-size: var(--fs-small); }
.subscore .num { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-small); }
.subscore .track { grid-column: 1 / -1; height: 7px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.subscore .fill { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
/* Barres animées (fiche) : largeur pilotée par --w, remplissage au scroll via .in (sans JS = pleine) */
.track .fill { width: var(--w, 0); }
.js .track .fill { width: 0; transition: width .9s cubic-bezier(.22,.61,.36,1); }
.js .track .fill.in { width: var(--w, 0); }
@media (prefers-reduced-motion: reduce) { .js .track .fill { width: var(--w, 0); transition: none; } }


/* ============================================================
   CARTE PRODUIT
   ============================================================ */
.product-card {
  background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }

/* emplacement vraie photo produit */
.product-photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--soft);
  display: grid; place-items: center; border-bottom: var(--bw) solid var(--border);
}
.product-photo .robot {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, var(--surface) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 38%, var(--text) 0 19%, transparent 20%),
    var(--text);
  box-shadow: inset 0 -10px 24px rgba(0,0,0,.25);
}
.product-photo .robot::after { /* capteur lidar lime */
  content: ""; position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--accent);
}
.photo-tag {
  position: absolute; bottom: 8px; right: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft);
  background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 3px 7px; border-radius: var(--r-badge);
}
.product-photo .score-chip { position: absolute; top: 10px; left: 10px; }
.product-photo .badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.product-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.product-body .pbadge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption); font-weight: 700; padding: 4px 9px; border-radius: var(--r-badge);
  background: var(--accent-tint); color: var(--text);
}
.product-body .pbadge svg { width: 14px; height: 14px; }
.product-body h3 { font-size: var(--fs-h4); }
.product-body .oneliner { font-size: var(--fs-small); color: var(--text-soft); }
.product-evidence { color: var(--text-soft); font-size: var(--fs-caption); line-height: 1.4; }
.product-meta { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); border-top: var(--bw) solid var(--border); }
.price { display: flex; flex-direction: column; }
.price .amount { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.price .verified { font-size: 11px; color: var(--text-soft); }

/* badges éditoriaux */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-caption); font-weight: 700; padding: 4px 9px; border-radius: var(--r-badge);
  line-height: 1.1;
}
.badge svg { width: 13px; height: 13px; }
.badge--reco { background: var(--accent); color: var(--on-accent); }
.badge--promo { background: var(--promo); color: var(--on-dark); }
.badge--quick { background: var(--accent); color: var(--on-accent); }
.badge--soft { background: var(--surface); color: var(--text); border: var(--bw) solid var(--border); }

/* ============================================================
   VERDICT (Bon pour / Pas idéal pour)
   ============================================================ */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.verdict:has(.verdict-col.neutral) { grid-template-columns: repeat(3, 1fr); }
.verdict-col { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-5); }
.verdict-col h3 { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); font-size: var(--fs-h4); }
.verdict-col h3 svg { width: 20px; height: 20px; }
.verdict-col.good h3 { color: var(--succes); }
.verdict-col.bad h3 { color: var(--danger); }
.verdict-col.neutral h3 { color: var(--text-soft); }
.verdict-col li { display: flex; gap: var(--sp-2); padding: 6px 0; font-size: var(--fs-small); }
.verdict-col li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.verdict-col.good li svg { color: var(--succes); }
.verdict-col.bad li svg { color: var(--danger); }
.verdict-col.neutral li svg { color: var(--text-soft); }

/* ============================================================
   TABLEAU SPECS
   ============================================================ */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { text-align: left; padding: 13px 16px; border-bottom: var(--bw) solid var(--border); font-size: var(--fs-small); }
.specs-table th { font-weight: 700; color: var(--text-soft); width: 42%; }
.specs-table td { font-weight: 600; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.specs-table tr:nth-child(even) { background: var(--soft); }

/* ============================================================
   MÉTHODE (3 étapes)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-6); position: relative; }
.step .n { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--on-accent); background: var(--accent); width: 34px; height: 34px; border-radius: var(--r-badge); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.step h4 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-small); color: var(--text-soft); }

/* ============================================================
   FAQ (accordéon)
   ============================================================ */
.faq { max-width: 760px; }
.faq-item { border-bottom: var(--bw) solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: var(--sp-5) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--text); }
.faq-q svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 var(--sp-5); color: var(--text-soft); font-size: var(--fs-body); max-width: 64ch; }

/* ============================================================
   FILTRES (listing)
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.filter-group { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-small);
  padding: 9px 14px; border-radius: var(--r-pill); border: var(--bw-strong) solid var(--border);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .15s, background-color .15s, color .15s, transform .12s var(--ease);
  text-decoration: none; cursor: pointer;
  min-height: 44px;
}
button.chip { appearance: none; line-height: inherit; }
.chip svg { width: 16px; height: 16px; }
.chip:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--border-strong); }
.chip:active:not(:disabled):not([aria-disabled="true"]) { transform: translateY(1px); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip--active { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip[aria-pressed="true"] .ic-lime, .chip[aria-current="page"] .ic-lime, .chip--active .ic-lime { color: var(--accent); }
.sort-select { padding: 10px 14px; min-height: 44px; border: var(--bw-strong) solid var(--border); border-radius: var(--r-pill); background: var(--surface); font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--text); cursor: pointer; }
.sort-select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ============================================================
   BARRE STICKY MOBILE (fiche)
   ============================================================ */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: var(--bw-strong) solid var(--text);
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: var(--sp-3);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: translateY(0); }
body.sticky-buy-visible { padding-bottom: var(--sticky-buy-height, 0px); }
.sticky-buy .sb-score { background: var(--score); color: var(--score-text); font-family: var(--font-mono); font-weight: 700; padding: 8px 10px; border-radius: var(--r-badge); font-size: 1.2rem; line-height: 1; }
.sticky-buy .sb-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.sticky-buy .sb-price small { display: block; font-family: var(--font-body); font-size: 10px; color: var(--text-soft); font-weight: 600; }
.sticky-buy .btn { flex: 1; margin-left: auto; min-height: 52px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: var(--sp-12) var(--sp-8); margin-top: var(--sp-16); }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand small { color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer-grid h5 { color: var(--on-dark); font-family: var(--font-display); font-size: var(--fs-small); margin: 0 0 var(--sp-3); text-transform: uppercase; letter-spacing: .06em; }
.footer-grid a { color: var(--footer-text); font-size: var(--fs-small); display: block; padding: 4px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-note { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-caption); color: var(--footer-text); max-width: 70ch; }

/* ============================================================
   UTILITAIRES LAYOUT
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: var(--sp-8); }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { color: var(--text-soft); font-size: var(--fs-lede); margin-top: var(--sp-3); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-10); align-items: start; }
/* colonnes du .split : flex vertical à gap constant → rythme régulier entre les cadres
   (photo, galerie, prix, comparateur…) au lieu de marges ad-hoc (0/12/16px = cadres « collés »).
   min-width:0 évite aussi le débordement horizontal mobile. */
.split > * { min-width: 0; }
main .split > * > * { margin-block: 0; }              /* neutralise les marges ad-hoc des cadres */
main .split > * > * + * { margin-top: var(--sp-5); }  /* puis 20px réguliers entre chaque cadre (owl) */
.card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-6); }
.divider { height: var(--bw); background: var(--border); border: none; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .profiles { grid-template-columns: repeat(2, 1fr); }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 680px) {
  /* Nav mobile : logo sur la 1re ligne, liens centrés qui passent à la ligne (jamais tronqués),
     CTA masqué (redondant + la barre sticky gère la conversion sur les fiches). */
  .nav { flex-wrap: wrap; height: auto; row-gap: var(--sp-2); padding-block: 10px; }
  .nav-links { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); }
  .nav-links a { white-space: nowrap; flex: none; }
  .site-header .nav-cta { display: none; }
  .profiles, .grid-cards, .verdict { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: var(--sp-12); }
}

/* ============================================================
   CONVERSION — composants ajoutés
   ============================================================ */

/* Ligne de réassurance (près du fold) */
.reassure { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; font-size: var(--fs-small); color: var(--text-soft); font-weight: 600; }
.reassure .ri { display: inline-flex; align-items: center; gap: 7px; }
.reassure .ri svg { width: 17px; height: 17px; color: var(--text); flex: none; }
.reassure b { color: var(--text); font-family: var(--font-mono); }

/* Mini-comparatif Top 3 (dense, mono) */
.top3 { background: var(--surface); border: var(--bw-strong) solid var(--text); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.top3-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--text); color: var(--on-dark); }
.top3-head .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 8px; }
.top3-head .t svg { width: 18px; height: 18px; color: #8AA0F2; }
.top3-head .see { color: #8AA0F2; font-weight: 700; font-size: var(--fs-caption); display: inline-flex; align-items: center; gap: 5px; }
.top3-head .see svg { width: 14px; height: 14px; }
.top3-row { display: grid; grid-template-columns: 22px 1fr auto auto auto auto; gap: var(--sp-3); align-items: center; padding: 11px var(--sp-4); border-top: var(--bw) solid var(--border); }
.top3-row .rk { font-family: var(--font-mono); font-weight: 700; color: var(--text-soft); }
.top3-row .nm { font-weight: 700; font-size: var(--fs-small); line-height: 1.15; }
.top3-row .nm small { display: block; font-weight: 600; color: var(--text-soft); font-size: 12px; }
.top3-row .sc { font-family: var(--font-mono); font-weight: 700; background: var(--score); color: var(--score-text); padding: 4px 9px; border-radius: var(--r-badge); font-size: 1.05rem; }
.top3-row .pr { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; min-width: 74px; text-align: right; }
.top3-row .btn { padding: 9px 15px; font-size: var(--fs-small); }

/* Verdict en mots (à côté des sous-scores) */
.subscore .word { font-style: normal; font-size: var(--fs-caption); color: var(--text-soft); font-weight: 600; }

/* Emplacement note marchand RÉELLE (placeholder — jamais inventé) */
.merchant-slot { border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); padding: var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; background: var(--soft); }
.merchant-slot .ms-ic { width: 40px; height: 40px; border-radius: var(--r-badge); background: var(--surface); border: var(--bw) solid var(--border); display: grid; place-items: center; flex: none; color: var(--text-soft); }
.merchant-slot .ms-ic svg { width: 22px; height: 22px; }
.merchant-slot .ms-t { font-weight: 700; font-size: var(--fs-small); }
.merchant-slot .ms-s { font-size: var(--fs-caption); color: var(--text-soft); }

/* Badges contextualisés */
.badge--ctx { background: var(--accent); color: var(--on-accent); }
.badge--ctx b { color: var(--on-dark); font-weight: 700; }
.badge--n1 { background: var(--accent); color: var(--on-accent); }

/* Sous-libellé CTA (chez le partenaire · prix vérifié) */
.cta-sub { font-size: var(--fs-caption); color: var(--text-soft); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cta-sub svg { width: 13px; height: 13px; flex: none; }

/* Comparatif côte-à-côte par persona */
.compare-wrap { overflow-x: auto; border: var(--bw) solid var(--border); border-radius: var(--r-card); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td { padding: var(--sp-3) var(--sp-4); border-bottom: var(--bw) solid var(--border); text-align: left; font-size: var(--fs-small); vertical-align: middle; }
.compare thead th { position: sticky; top: 64px; background: var(--text); color: var(--on-dark); z-index: 3; vertical-align: top; }
.compare thead th.win { background: #16224F; }
.compare thead .cname { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); }
.compare thead .cscore { display: inline-flex; align-items: baseline; gap: 3px; margin-top: 6px; font-family: var(--font-mono); font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 3px 8px; border-radius: var(--r-badge); }
.compare thead .cscore .d { font-size: 11px; opacity: .7; }
.compare th[scope="row"] { font-weight: 700; color: var(--text-soft); width: 160px; }
.compare td { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.compare td.win { background: var(--accent-tint); color: var(--text); }
.compare .ccta td { padding: var(--sp-4); border-bottom: none; }
.compare .ccta .btn { width: 100%; padding: 11px 14px; font-size: var(--fs-small); }
.compare .ccta .cta-sub { margin-top: 6px; }

/* packshot : réserver l'espace (CLS) — l'<img> remplace le placeholder */
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }

@media (max-width: 680px) {
  .top3-row { grid-template-columns: 18px 1fr auto; row-gap: 8px; }
  .top3-row .pr { grid-column: 2; text-align: left; min-width: 0; }
  .top3-row .sc { grid-row: 1; }
  .top3-row .btn { grid-column: 1 / -1; }
}

/* ── Bloc « Comparer les prix » (multi-marchands, données Affilizz) ── */
.po-title { font-size: 1rem; margin-bottom: var(--sp-3); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.po-count { font-size: 12px; font-weight: 400; color: var(--text-soft); }
.po-list { list-style: none; margin: 0; padding: 0; }
.po-row { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.po-row:last-child { border-bottom: 0; }
.po-row--best { margin: 0 calc(-1 * var(--sp-3)); padding: 10px var(--sp-3); background: var(--accent-tint); border-radius: var(--r-btn); border-bottom: 0; }
.po-shop { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: var(--fs-small); }
.po-shop img { border-radius: 4px; object-fit: contain; flex: none; }
.po-shop > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-tag { display: inline-block; font-size: var(--fs-caption); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; background: var(--border-strong); color: #fff; padding: 1px 6px; border-radius: var(--r-pill); vertical-align: middle; }
.po-mkt { display: inline-block; font-size: 10px; font-weight: 600; color: var(--text-soft); border: 0.5px solid var(--border); padding: 0 5px; border-radius: var(--r-pill); vertical-align: middle; }
.po-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); white-space: nowrap; }
.po-price strong { font-weight: 700; }
.po-crossed { font-size: 12px; color: var(--text-soft); text-decoration: line-through; }
.po-go { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: var(--fs-small); font-weight: 600; color: var(--on-accent); background: var(--accent); padding: 5px 10px; border-radius: var(--r-btn); text-decoration: none; flex: none; min-height: 36px; }
.po-go:hover { background: var(--accent-strong); }
.po-go svg { width: 14px; height: 14px; }

/* Note historique « plus bas observé » (sous le prix) */
.ph-note { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.ph-note strong { color: var(--border-strong); }
.ph-low--now { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #2F7D32; }
.ph-low--now svg { width: 13px; height: 13px; }
.ph-n { opacity: 0.7; }
.ph-position { display: flex; flex-direction: column; gap: 2px; margin: 7px 0 0; font-size: var(--fs-caption); color: var(--text-soft); }
.ph-position strong { color: var(--text); }
.ph-position--low strong { color: #2F7D32; }
.ph-position--high strong { color: #8A4B08; }

/* Courbe d'évolution du prix (SVG serveur depuis price_history) */
.ph-chart { margin-top: var(--sp-4); }
.ph-chart__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: var(--fs-caption); color: var(--text-soft); margin-bottom: 6px; }
.ph-chart__mm strong { color: var(--border-strong); font-weight: 700; }
.ph-chart__plot { position: relative; }
.ph-chart svg { display: block; width: 100%; height: 92px; overflow: visible; }
.ph-chart__area { fill: var(--accent-tint); }
.ph-chart__line { fill: none; stroke: var(--border-strong); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ph-chart__dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent-strong); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.ph-chart[data-low="1"] .ph-chart__line { stroke: #2F7D32; }
.ph-chart[data-low="1"] .ph-chart__dot { background: #2F7D32; }

/* Comparatif modèle-vs-modèle (/comparatif/X-vs-Y) */
.cmp-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: var(--sp-4); margin-top: var(--sp-4); }
.cmp-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--sp-5); }
.cmp-head .btn { margin-top: auto; }
.cmp-photo { height: 190px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-2); }
.cmp-photo img { max-width: 100%; max-height: 190px; width: auto; height: auto; object-fit: contain; }
.cmp-photo .photo-tag { color: var(--text-soft); font-size: var(--fs-caption); }
.cmp-vs { align-self: center; font-weight: 800; color: var(--text-soft); font-size: var(--fs-h4); letter-spacing: .04em; }
.cmp-score { display: inline-flex; align-items: baseline; gap: 2px; margin: var(--sp-3) 0 var(--sp-2); color: color-mix(in srgb, #16181C, var(--accent-strong) calc(var(--v, 0) * 0%)); }
.cmp-score strong { font-size: 2rem; line-height: 1; }
.cmp-score small { color: var(--text-soft); }
.cmp-name { font-size: var(--fs-h4); margin: 0 0 var(--sp-1); }
.cmp-top { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); color: var(--text-soft); margin: 0 0 var(--sp-2); }
.cmp-top svg { width: 14px; height: 14px; }
.cmp-price { margin: 0 0 var(--sp-3); }
.cmp-price .verified { display: block; font-size: var(--fs-caption); color: var(--text-soft); }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); font-size: var(--fs-small); }
.cmp-table th[scope="col"] { text-align: left; padding: 10px 12px; border-bottom: var(--bw) solid var(--border-strong); font-weight: 700; }
.cmp-table th[scope="col"]:not(:first-child), .cmp-table td { text-align: center; }
.cmp-table th[scope="row"] { text-align: left; color: var(--text-soft); font-weight: 600; }
.cmp-table td, .cmp-table th[scope="row"] { padding: 9px 12px; border-bottom: var(--bw) solid var(--border); }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
.cmp-win { background: var(--accent-tint); font-weight: 700; color: #16181C; }
.cmp-tie { background: var(--soft); color: var(--text-soft); }
.cmp-yes { color: #2F7D32; font-weight: 600; }
.cmp-no, .cmp-unknown { color: var(--text-soft); }
.cmp-legend { font-size: var(--fs-caption); color: var(--text-soft); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.cmp-win-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--accent-tint); border: var(--bw) solid var(--border); }
.cmp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-3); }
.cmp-pname { font-weight: 700; margin: 0 0 var(--sp-2); }
.cmp-verdict .nav-cta { flex-wrap: wrap; }
.cmp-links { margin-top: var(--sp-4); }
.cmp-links h2 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.cmp-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.cmp-links a:hover { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.cmp-links svg { width: 16px; height: 16px; color: var(--text-soft); }
@media (max-width: 640px) {
  .cmp-heads { grid-template-columns: 1fr; }
  .cmp-vs { padding: var(--sp-1) 0; }
  .cmp-prices { grid-template-columns: 1fr; }
  .table-scroll { overflow: visible; }
  .cmp-table { display: block; }
  .cmp-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .cmp-table tbody { display: grid; gap: var(--sp-3); }
  .cmp-table tr {
    display: block; overflow: hidden; border: var(--bw) solid var(--border);
    border-radius: var(--r-card); background: var(--surface);
  }
  .cmp-table th[scope="row"] {
    display: block; padding: 11px 12px; color: var(--text); background: var(--soft);
    border-bottom: var(--bw) solid var(--border-strong);
  }
  .cmp-table td {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--sp-3); align-items: start; width: 100%; text-align: right;
  }
  .cmp-table td::before {
    content: attr(data-label); color: var(--text-soft); font-weight: 600; text-align: left;
    overflow-wrap: anywhere;
  }
  .cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: var(--bw) solid var(--border); }
  .cmp-table tr td:last-child { border-bottom: 0; }
}

/* Glose des termes techniques (infobulle « sans jargon ») */
abbr.gloss { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }

/* Avis clients agrégés (réalité terrain) — note /5 en étoiles, distincte de la note /100 */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; font-size: 15px; vertical-align: middle; }
.stars-bg { color: var(--border); }
.stars-fill { position: absolute; left: 0; top: 0; width: var(--pct, 0%); overflow: hidden; white-space: nowrap; color: var(--star); }
.reviews-block { margin: var(--sp-3) 0; }
.reviews-block .rv-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }
.reviews-block .rv-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.reviews-block .rv-score { font-family: var(--font-mono); }
.reviews-block .rv-n { color: var(--text-soft); font-size: var(--fs-small); }
.reviews-block .rv-meta { font-size: var(--fs-caption); color: var(--text-soft); margin: 2px 0 0; }
.rv-compact { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); }
.rv-compact .rv-n { color: var(--text-soft); }
/* Bloc avis utilisateurs */
.ur-disclaimer { font-size: var(--fs-caption); color: var(--text-soft); margin: var(--sp-2) 0 0; font-style: italic; }
.ur-source { font-size: var(--fs-caption); color: var(--text-soft); margin-top: var(--sp-4); }
/* Indice de réparabilité officiel (/10) */
.repair-badge { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; padding: 3px 10px; border-radius: var(--r-btn); color: #fff; }
.repair-badge small { font-weight: 600; opacity: 0.85; }
.repair-badge.rb-great { background: #2F7D32; }
.repair-badge.rb-good { background: #8A6100; }
.repair-badge.rb-low { background: #C0432B; }
/* Table classement réparabilité (guide) */
.table-scroll { overflow-x: auto; }
.repair-table { width: 100%; border-collapse: collapse; background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.repair-table th, .repair-table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: var(--bw) solid var(--border); font-size: var(--fs-small); }
.repair-table th { background: var(--soft); font-family: var(--font-display); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
.repair-table tbody tr:last-child td { border-bottom: none; }
.repair-table td.rk { font-family: var(--font-mono); font-weight: 700; color: var(--text-soft); width: 36px; }
.repair-table a { font-weight: 600; }
.repair-table td:nth-child(4), .repair-table td:nth-child(5) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Encart maillage interne (classement -> guide) */
.guide-callout { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--accent-tint); border: var(--bw) solid var(--border); border-radius: var(--r-card); text-decoration: none; color: var(--text); }
.guide-callout:hover { border-color: var(--border-strong); }
.guide-callout .gc-ico { color: var(--accent-strong); flex: none; }
.guide-callout .gc-ico svg, .guide-callout .gc-go svg { width: 20px; height: 20px; display: block; }
.guide-callout .gc-txt { flex: 1; font-size: var(--fs-small); }
.guide-callout .gc-go { flex: none; color: var(--text-soft); }
.guide-journey-links { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Sommaire de guide */
.guide-toc { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-8); }
.guide-toc .toc-title { font-weight: 700; font-size: var(--fs-small); margin: 0 0 var(--sp-2); }
.guide-toc ol { margin: 0; padding-left: var(--sp-5); color: var(--text-soft); }
.guide-toc a { color: var(--text-soft); }
.guide-toc a:hover { color: var(--text); }
/* Rythme de la prose des guides (corps éditorial) — n'affecte que le conteneur .guide-prose */
.guide-prose > h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.guide-prose > p { margin-bottom: var(--sp-4); line-height: 1.7; }
.guide-prose > ul { margin: 0 0 var(--sp-5); padding-left: 1.4em; list-style: disc; }
.guide-prose > ul > li { margin-bottom: var(--sp-2); line-height: 1.6; }
.guide-prose > ul > li::marker { color: var(--accent-strong); }
/* Blocs de décision pour les guides d'achat — lisibles sur petit écran. */
.guide-table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); border: var(--bw) solid var(--border); }
.guide-table th, .guide-table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: var(--bw) solid var(--border); font-size: var(--fs-small); line-height: 1.5; }
.guide-table thead th { background: var(--soft); font-family: var(--font-display); font-size: var(--fs-caption); color: var(--text-soft); }
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody th { width: 22%; font-family: var(--font-display); }
.guide-checklist { background: var(--accent-tint); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-5) var(--sp-6); margin-block: var(--sp-5); }
.guide-checklist h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.guide-checklist ul { margin: 0; padding-left: 1.4em; list-style: '✓  '; }
.guide-checklist li { padding-left: var(--sp-2); margin-bottom: var(--sp-2); line-height: 1.5; }
.guide-checklist li:last-child { margin-bottom: 0; }
.guide-selection-note { color: var(--text-soft); font-size: var(--fs-small); max-width: 70ch; margin-bottom: var(--sp-4); }
.guide-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-block: var(--sp-5); }
.guide-decision { background: var(--soft); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-5); }
.guide-decision h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.guide-decision ul { margin: 0; padding-left: 1.4em; }
.guide-decision li { margin-bottom: var(--sp-2); line-height: 1.5; }
.guide-decision li:last-child { margin-bottom: 0; }
.price-gap-explainer { margin-top: var(--sp-3); background: var(--soft); }
.price-gap-explainer ul { margin: var(--sp-4) 0; padding-left: 1.4em; }
.price-gap-explainer li { margin-bottom: var(--sp-2); line-height: 1.5; }
.price-gap-explainer li:last-child { margin-bottom: 0; }
@media (max-width: 680px) { .guide-decision-grid { grid-template-columns: 1fr; } }
/* Hub guides : grille 2 colonnes (au lieu d'une pile pleine largeur) */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 680px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-category + .guide-category { margin-top: var(--sp-10); }
.guide-category .section-head { margin-bottom: var(--sp-4); }
/* Maillage cocon — bloc « Guides liés » / « Pour bien choisir » */
.related-guides { margin-top: var(--sp-12); }
.rg-h { font-size: var(--fs-h3); margin-bottom: var(--sp-5); }
.rg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.rg-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-card); transition: border-color .15s, transform .15s var(--ease); }
.rg-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rg-ic { width: 34px; height: 34px; border-radius: var(--r-badge); background: var(--accent-tint); display: grid; place-items: center; flex: none; }
.rg-ic svg { width: 18px; height: 18px; }
.rg-t { font-weight: 600; font-size: var(--fs-small); line-height: 1.25; }
@media (max-width: 680px) { .rg-grid { grid-template-columns: 1fr; } }
/* Bloc « En bref » — réponse directe citable en tête de fiche (GEO) */
.enbref { background: #F4F7FD; border: 1px solid #E4E9F8; border-left: 3px solid var(--accent); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0 var(--sp-5); }
.enbref-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: transparent; padding: 0; border-radius: 0; margin-bottom: var(--sp-2); }
.enbref p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
/* Ligne de confiance E-E-A-T (bas des guides/fiches) */
.byline { margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: var(--bw) solid var(--border); }
.byline p { font-size: var(--fs-small); color: var(--text-soft); margin: 0; line-height: 1.7; }
.byline a { color: var(--text); font-weight: 600; }
.ur-author { margin: 0 0 var(--sp-2); font-size: var(--fs-small); color: var(--text-soft); }
.ur-author a { color: var(--text); font-weight: 600; }

@media (max-width: 680px) {
  .po-go { padding: 5px 8px; }
  .po-row { gap: var(--sp-2); }
}

/* Double notation : Note specs /100 (objectif) vs Avis acheteurs /5 (terrain) */
.dual-rating { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.dual-rating--solo { grid-template-columns: 1fr; max-width: 380px; }
.dr-panel { background: color-mix(in srgb, var(--border) 26%, #fff); border: var(--bw) solid var(--border); border-radius: var(--r-card); padding: var(--sp-4); }
.dr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.dr-label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); font-weight: 700; }
.dr-pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.dr-pill--specs { background: #E6F1FB; color: #0C447C; }
.dr-pill--avis  { background: #FAEEDA; color: #854F0B; }
.dr-body { display: flex; flex-direction: column; gap: var(--sp-3); }
.dr-score { --v: 0; width: 78px; height: 78px; flex: none; align-self: flex-start; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--border) 0); }
.dr-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.dr-score .dr-n { position: relative; z-index: 1; font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); font-family: var(--font-mono); }
.dr-score .dr-d { display: none; }
.dr-ratingrow { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.dr-ratingrow .stars { font-size: 19px; }
.dr-r { font-family: var(--font-mono); font-size: 2rem; line-height: 1; color: var(--text); }
.dr-r strong { font-weight: 700; }
.dr-cap { font-size: var(--fs-small); color: var(--text-soft); margin: 0; line-height: 1.45; }
@media (max-width: 520px) { .dual-rating { grid-template-columns: 1fr; } }

/* Bloc « Ce qu'en disent les tests » — voix de l'expert tiers (citation attribuée) */
.test-expert .te-quote { margin: var(--sp-2) 0 0; padding: 2px 0 2px var(--sp-3); border-left: 3px solid var(--accent); border-radius: 0; font-style: italic; color: var(--text); line-height: 1.55; }
.test-expert .te-cite { margin-top: var(--sp-2); }
.test-expert .te-date { color: var(--text-soft); }

/* Anti-veuves typographiques */
h1, h2, h3 { text-wrap: balance; }
.lede { text-wrap: pretty; }

/* A11y : ancres non masquées par le header collant (74px) au clic sur un sommaire */
[id] { scroll-margin-top: 90px; }

/* A11y : respect de prefers-reduced-motion (scroll fluide, hovers, transitions) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* A11y : liens dans la prose des guides visibles (sinon indiscernables du texte courant) */
.guide-prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; font-weight: 600; }
.guide-prose a:hover { text-decoration-color: var(--text); }

/* ============================================================
   HOME « GRAPHITE » — reproduit la maquette validée (scopé .gh-*)
   ============================================================ */
.ghome { --gh-line: var(--border); }
.gh-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.num { font-variant-numeric: tabular-nums; }
.gh-ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* anneau de score (motif signature) */
.gh-ring { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; flex: none; }
.gh-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gh-ring circle { fill: none; stroke-width: 2.5; }
.gh-ring .bg { stroke: var(--border); }
.gh-ring .fg { stroke: var(--accent); stroke-linecap: round; }
.gh-ring b { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.gh-ring i { position: absolute; bottom: 7px; font-size: 7.5px; font-style: normal; font-weight: 700; letter-spacing: .08em; color: var(--text-soft); }
.gh-ring.xl { width: 96px; height: 96px; }
.gh-ring.xl b { font-size: 34px; }
.gh-ring.xl i { font-size: 9px; bottom: 14px; }
.gh-ring.sm { width: 46px; height: 46px; }
.gh-ring.sm b { font-size: 15px; }
.gh-ring.sm i { display: none; }

/* boutons pilule (home) */
.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 980px; background: var(--accent); color: var(--on-accent); white-space: nowrap; border: 2px solid var(--accent); transition: background .18s, border-color .18s, transform .12s; cursor: pointer; }
.gh-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.gh-btn:active { transform: translateY(1px); }
.gh-btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.gh-btn.ghost:hover { background: var(--soft); color: var(--text); border-color: var(--border-strong); }
.gh-btn .gh-ic { width: 18px; height: 18px; }

/* hero : le visuel sélectionné se fond derrière le contenu, sans carte séparée. */
.gh-hero { position: relative; min-height: 590px; overflow: hidden; padding: 54px 0; }
.gh-hero-visual { position: absolute; z-index: 0; left: 0; top: calc(50% + 4px); width: min(1120px, 82vw); aspect-ratio: 1.705; transform: translateY(-50%); overflow: hidden; pointer-events: none; }
.gh-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.gh-hero-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 38%, rgba(255,255,255,.7) 61%, var(--surface) 84%); }
.gh-hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--surface) 0%, rgba(255,255,255,.72) 8%, transparent 19%, transparent 78%, rgba(255,255,255,.72) 92%, var(--surface) 100%); }
.gh-hero-copy { position: relative; z-index: 1; width: min(760px, 66%); min-height: 482px; margin-left: auto; display: flex; flex-direction: column; justify-content: center; text-align: left; transform: translateX(clamp(60px, 12vw, 170px)); }
.gh-hero h1 { font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 62px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; max-width: 100%; margin: 14px 0 18px; }
.gh-hero h1 s { text-decoration: none; color: var(--text-soft); font-weight: 700; }
.gh-sub { font-size: var(--fs-lede); color: var(--text-soft); max-width: 100%; margin: 0 0 24px; }
.gh-herocta { margin: 2px 0 26px; }
.gh-brands { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--text-soft); max-width: 100%; }
.gh-brands span { font-weight: 500; opacity: .68; }
.gh-usages { display: flex; flex-direction: column; }
.gh-usages .lbl { margin-bottom: 14px; }
.gh-usages-row { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: nowrap; }
.gh-usage { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 700; padding: 12px 22px; border-radius: 980px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(29,29,31,.05); transition: box-shadow .18s, transform .18s; white-space: nowrap; }
.gh-usage .gh-ic { width: 17px; height: 17px; color: var(--text-soft); transition: color .18s; }
.gh-usage:hover { box-shadow: inset 0 0 0 1.5px var(--text), 0 6px 16px -8px rgba(29,29,31,.25); transform: translateY(-1px); }
.gh-usage:hover .gh-ic { color: var(--accent); }
.gh-trust { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: flex-start; margin-top: 26px; font-size: 15px; font-weight: 700; color: var(--text); }
.gh-trust span { display: inline-flex; align-items: center; gap: 7px; }
.gh-trust .gh-ic { width: 17px; height: 17px; color: var(--accent); }
.gh-constraints [data-lucide] { width: 17px; height: 17px; color: var(--text-soft); }

.gh-ctas { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* assistant logement */
.home-assistant { background: var(--soft); border-block: 1px solid var(--border); padding: 76px 0; scroll-margin-top: 72px; }
.ha-head { max-width: 800px; margin-bottom: 32px; }
.ha-head h2, .ha-results-intro h2, .ha-guides h2, .ha-offers h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.12; margin-top: 12px; }
.ha-head p, .ha-results-intro p { color: var(--text-soft); margin-top: 12px; max-width: 70ch; }
.ha-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 24px 60px -48px rgba(29,29,31,.45); }
.ha-form fieldset { border: 0; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--border); }
.ha-form fieldset:last-of-type { margin-bottom: 24px; }
.ha-form legend { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.ha-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ha-fields--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ha-fields label { display: grid; gap: 8px; font-size: 14px; font-weight: 750; color: var(--text); }
.ha-fields select, .ha-fields input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--surface); color: var(--text); padding: 10px 12px; font: inherit; font-weight: 600; }
.ha-fields select { padding-right:38px; }
.ha-fields select:focus-visible, .ha-fields input:focus-visible { outline: 3px solid var(--accent-tint); border-color: var(--accent); }
.ha-fields small { color:var(--text-soft); font-weight:500; line-height:1.35; }
.ha-submit { display: flex; align-items: center; gap: 20px; }
.ha-submit p { color: var(--text-soft); font-size: 13px; max-width: 48ch; }
.ha-submit .gh-btn [data-lucide] { width: 18px; height: 18px; }
.ha-results { padding-top: 56px; scroll-margin-top: 80px; }
.ha-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ha-result { display: flex; flex-direction: column; min-height: 430px; border-top: 4px solid var(--border-strong); }
.ha-result[data-status="reserve"] { border-top-color: var(--promo); }
.ha-result[data-status="compatible"] { border-top-color: var(--succes); }
.ha-result[data-status="incompatible"] { border-top-color: var(--danger); }
.ha-role { color: var(--text-soft); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ha-status { display: inline-flex; align-self: flex-start; margin-top: 10px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 800; }
.ha-result[data-status="reserve"] .ha-status { color: var(--promo); background: var(--promo-tint); border-color: transparent; }
.ha-result[data-status="compatible"] .ha-status { color: var(--succes); background: var(--succes-tint); border-color: transparent; }
.ha-result[data-status="incompatible"] .ha-status { color: var(--danger); background: var(--danger-tint); border-color: transparent; }
.ha-result h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.15; margin-top: 20px; }
.ha-score { font-weight: 800; margin-top: 12px; }
.ha-reason, .ha-limit, .ha-proof, .ha-price { font-size: 14px; margin-top: 10px; }
.ha-reason, .ha-proof { color: var(--text-soft); }
.ha-limit { font-weight: 650; }
.ha-proof { padding-top: 10px; border-top: 1px solid var(--border); }
.ha-price { font-weight: 800; }
.ha-result-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.ha-result-actions .gh-btn { min-height: 46px; padding: 10px 16px; font-size: 14px; }
.ha-compare-add { min-height: 44px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.ha-compare-add[aria-pressed="true"] { color: var(--succes); text-decoration: underline; text-underline-offset: 3px; }
.ha-compare { display: flex; justify-content: center; margin-top: 24px; }
.ha-maintenance { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 24px; margin-top: 28px; }
.ha-maintenance summary { cursor: pointer; font-weight: 800; }
.ha-maintenance p { color: var(--text-soft); margin-top: 12px; }

/* chiffres (valeurs géantes) */
.gh-facts { padding-block: 58px; }
.gh-facts .gh-in { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.gh-fact { padding: 8px 40px; border-left: 1px solid var(--border); }
.gh-fact:first-child { border-left: 0; padding-left: 0; }
.gh-fact b { display: block; font-family: var(--font-display); font-size: clamp(56px, 6.2vw, 82px); font-weight: 400; letter-spacing: -.03em; line-height: .95; margin-bottom: 14px; }
.gh-fact b sup { font-size: .3em; font-weight: 600; color: var(--text-soft); vertical-align: 1.05em; letter-spacing: 0; margin-left: 8px; }
.gh-fact > span { font-size: 15px; color: var(--text-soft); max-width: 24ch; display: block; }

/* usages (tuiles) */
.gh-paths { padding-block: 72px; }
.gh-paths .head { text-align: center; margin-bottom: 40px; }
.gh-paths h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.03em; font-weight: 800; margin-top: 12px; }
.gh-paths .head > p { color: var(--text-soft); max-width: 66ch; margin: 12px auto 0; }
.gh-paths .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gh-path { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px 36px 30px; transition: transform .2s, box-shadow .2s; }
.gh-path:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -30px rgba(29,29,31,.4); }
.gh-path .gh-ic { width: 26px; height: 26px; stroke-width: 1.5; margin-bottom: 16px; color: var(--text); }
.gh-winner-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gh-path h3 { font-family: var(--font-display); font-size: 23px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 8px; }
.gh-path p { font-size: var(--fs-small); color: var(--text-soft); max-width: 40ch; margin-bottom: 20px; }
.gh-winner { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-block: 1px solid var(--border); margin-top: auto; }
.gh-winner > div { display: grid; gap: 5px; min-width: 0; }
.gh-winner strong { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.gh-winner span { font-size: 13px; color: var(--text-soft); }
.gh-winner span.limit { color: var(--text); font-weight: 600; }
.gh-winner .gh-ring { margin-left: auto; }
.gh-winner-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-top: 14px; }
.gh-winner-price .num { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.gh-winner-price small { color: var(--text-soft); }
.gh-winner-price .gh-winner-proof { flex-basis: 100%; }
.gh-winner-actions { display: flex; gap: 18px; margin-top: 14px; }
.gh-winner-actions a { font-size: 14px; font-weight: 800; color: var(--accent); }
.gh-winner-actions a::after { content: " →"; }
.gh-winner-empty { padding: 18px 0; border-block: 1px solid var(--border); }
.gh-path .foot { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; }
.gh-path .foot { color: var(--text-soft); font-weight: 500; margin-top: 14px; }

/* manifeste */
.gh-creed { border-block: 1px solid var(--border); background: var(--soft); text-align: center; padding: 74px 0; }
.gh-creed blockquote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; max-width: 28ch; margin: 0 auto 18px; }
.gh-creed p { color: var(--text-soft); font-size: 16px; margin-bottom: 22px; }
.gh-creed a { font-weight: 700; font-size: 15.5px; }
.gh-creed a::after { content: " →"; color: var(--accent); }
.ha-guides { padding-block: 72px; }
.ha-guides .head { max-width: 760px; margin-bottom: 30px; }
.ha-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ha-guide-grid .card { display: grid; gap: 12px; transition: transform .18s, box-shadow .18s; }
.ha-guide-grid .card:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -30px rgba(29,29,31,.4); }
.ha-guide-grid [data-lucide] { width: 24px; height: 24px; color: var(--accent); }
.ha-guide-grid strong { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.ha-guide-grid span:last-child { color: var(--text-soft); font-size: 14px; }
.ha-offers { background: var(--soft); border-top: 1px solid var(--border); padding: 46px 0; }
.ha-offers .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ha-offers h2 { font-size: 26px; }
.ha-offers p { color: var(--text-soft); margin-top: 8px; }

/* responsive home */
@media (max-width: 940px) {
  .gh-paths .grid { grid-template-columns: 1fr; }
  .ha-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-results-grid, .ha-guide-grid { grid-template-columns: 1fr; }
  .ha-result { min-height: 0; }
}
@media (max-width: 860px) {
  .gh-hero { min-height: 0; padding: 42px 0; }
  .gh-hero-visual { left: -15vw; top: 0; width: 130vw; height: 100%; transform: none; opacity: .16; }
  .gh-hero-visual::before { background: rgba(255,255,255,.62); }
  .gh-hero-copy { width: 100%; min-height: 0; text-align: center; transform: none; }
  .gh-hero h1 { max-width: 20ch; margin-inline: auto; }
  .gh-sub { margin-inline: auto; }
  .gh-usages-row, .gh-trust { justify-content: center; }
  .gh-usages-row { flex-wrap: wrap; }
  .gh-facts .gh-in { grid-template-columns: 1fr; gap: 30px; }
  .gh-fact { border-left: 0; padding: 0; }
}
@media (max-width: 560px) {
  .home-assistant { padding: 54px 0; }
  .ha-form { padding: 22px 18px; border-radius: 14px; }
  .ha-fields, .ha-fields--short { grid-template-columns: 1fr; gap: 14px; }
  .ha-submit { align-items: stretch; flex-direction: column; }
  .ha-submit .gh-btn { width: 100%; min-height: 52px; }
  .ha-offers .wrap { align-items: flex-start; flex-direction: column; }
  .ha-offers .gh-btn { width: 100%; }
  .gh-path { padding: 28px 24px 24px; }
}

/* reveal home (dégradé si JS absent) */
.js .gh-rv { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.js .gh-rv.in { opacity: 1; transform: none; }
.gh-dl1 { transition-delay: .07s; } .gh-dl2 { transition-delay: .14s; } .gh-dl3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .js .gh-rv { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* anneaux de score : tracé progressif à l'apparition (home) */
.js .gh-ring .fg { stroke-dashoffset: var(--dash, 0); transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .js .gh-ring .fg { stroke-dashoffset: 0 !important; transition: none; } }

/* ============================================================
   RÉVÉLATIONS AU SCROLL — glissement directionnel, fondu, anneaux (fiche surtout)
   ============================================================ */
main { overflow-x: clip; } /* le glissement latéral ne crée pas de scroll horizontal */
@property --v { syntax: '<number>'; initial-value: 0; inherits: false; }
.js .rvl { opacity: 0; transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); }
.js .rvl-l { transform: translateX(-42px); }
.js .rvl-r { transform: translateX(42px); }
.js .rvl-u { transform: translateY(28px); }
.js .rvl.in { opacity: 1; transform: none; }
.js .dr-score, .js .score-chip--product { transition: --v 1.1s cubic-bezier(.22,.61,.36,1); }
/* Fail-open : si la révélation n'aboutit pas, on réaffiche tout (aucun bloc invisible à vie). */
.rv-failopen .gh-rv, .rv-failopen .rvl { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .rvl { opacity: 1 !important; transform: none !important; transition: none; }
  .js .dr-score, .js .score-chip--product { transition: none; }
}

/* ============================================================
   OUTILS — compatibilité, coût sourcé et confidentialité
   ============================================================ */
.tools-hero .wrap { padding-block:var(--sp-16); max-width:980px; }
.tools-hero h1 { max-width:850px; }
.tools-jump { display:flex; flex-wrap:wrap; gap:10px; margin-top:var(--sp-6); }
.tools-jump .chip { gap:8px; }
.tools-jump svg { width:17px; height:17px; }
.tools-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.tools-overview .card { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.tools-overview h2 { font-size:var(--fs-h4); }
.tools-overview p { color:var(--text-soft); flex:1; }
.tools-step { display:inline-block; color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.tools-panel { background:var(--surface-soft); }
.cost-tool { display:grid; gap:24px; }
.tool-form-head { display:grid; grid-template-columns:2fr 1fr; gap:18px; }
.tool-form-head label, .privacy-filters label, .cost-row label { display:grid; gap:7px; font-size:13px; font-weight:750; }
.cost-tool select, .cost-tool input, .privacy-filters select {
  width:100%; min-height:46px; border:1px solid var(--border); border-radius:var(--r-btn);
  background:var(--surface); color:var(--text); padding:10px 12px; font:inherit; font-weight:600;
}
.cost-tool select:focus-visible, .cost-tool input:focus-visible, .privacy-filters select:focus-visible {
  outline:3px solid var(--accent-tint); border-color:var(--accent);
}
.cost-grid { display:grid; gap:12px; }
.cost-row { display:grid; grid-template-columns:.8fr .8fr .8fr 1.7fr; gap:12px; align-items:end; border:1px solid var(--border); border-radius:var(--r-card); padding:16px; }
.cost-row legend { display:flex; align-items:center; gap:8px; padding:0 8px; font-family:var(--font-display); font-weight:800; }
.cost-row legend svg { width:17px; height:17px; color:var(--accent); }
.tool-result { margin-top:20px; }
.tool-result h3 { margin-top:8px; }
.tool-result > p, .tool-note { color:var(--text-soft); }
.cost-totals { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 8px; }
.cost-totals p { background:var(--accent-tint); border-radius:var(--r-badge); padding:12px 16px; font-family:var(--font-mono); font-weight:800; font-size:20px; }
.tool-subtitle { margin:20px 0 8px; font-size:var(--fs-small); }
.tool-result ul { padding-left:20px; }
.tool-result li + li { margin-top:6px; }
.privacy-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.privacy-summary { margin:22px 0 14px; color:var(--text-soft); font-weight:700; }
.privacy-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.privacy-card h3 { font-size:18px; margin-bottom:16px; }
.privacy-card dl { display:grid; grid-template-columns:1fr 1.2fr; gap:8px 12px; font-size:13px; }
.privacy-card dt { color:var(--text-soft); }
.privacy-card dd { font-weight:700; overflow-wrap:anywhere; }
.privacy-card dd.unknown { color:var(--warning-text); }
.privacy-card .tool-note { margin-top:16px; font-size:12px; }
.tools-topic-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.tools-topic-links .card { display:grid; gap:6px; padding:18px; }
.tools-topic-links strong { font-family:var(--font-display); }
.tools-topic-links span { color:var(--text-soft); font-size:13px; }
.tools-evidence .card { border-left:4px solid var(--accent); max-width:900px; }
.tools-evidence h2 { margin:10px 0; }

@media (max-width: 940px) {
  .tools-overview, .privacy-results, .tools-topic-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cost-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cost-row legend { grid-column:1/-1; }
}
@media (max-width: 680px) {
  .tools-overview, .privacy-results, .privacy-filters, .tool-form-head, .cost-row, .tools-topic-links { grid-template-columns:1fr; }
  .tools-hero .wrap { padding-block:var(--sp-12); }
  .tools-jump { align-items:stretch; }
  .tools-jump .chip { justify-content:center; width:100%; }
  .cost-row legend { grid-column:auto; }
  .cost-totals { display:grid; }
}
/* Lot D — preuves par champ et états honnêtes */
.cmp-proof {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: var(--fs-caption);
  font-weight: 500;
}
.feature-evidence {
  margin-bottom: var(--sp-6);
}
.feature-evidence summary {
  cursor: pointer;
  font-weight: 750;
}
.feature-evidence dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.3fr);
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-4);
}
.feature-evidence dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-warning {
  color: var(--warning);
}
.ha-excluded,
.privacy-empty {
  margin-top: var(--sp-5);
}
.ha-proof-detail {
  color: var(--text-soft);
  font-size: var(--fs-caption);
}
@media (max-width: 640px) {
  .feature-evidence dl {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LOT E — contenu, parcours et hiérarchie visuelle
   ============================================================ */
.home-needs {
  padding-block: var(--sp-12);
}
.gh-positioning {
  max-width: 64ch;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-5);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 650;
  line-height: 1.55;
}
.home-needs-head {
  margin-bottom: var(--sp-6);
}
.home-needs-head h2 {
  margin-top: var(--sp-2);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}
.home-needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-6);
}
.home-needs-grid a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--sp-3);
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.home-needs-grid a > svg {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.home-needs-grid small {
  color: var(--text-soft);
}
.home-decision-questions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-10);
  border-bottom: 1px solid var(--border);
}
.home-decision-questions p {
  display: grid;
  gap: 4px;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--border);
}
.home-decision-questions strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.home-decision-questions span {
  color: var(--text-soft);
  font-size: var(--fs-small);
}
.ha-form .ha-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ha-fieldset-intro {
  max-width: 72ch;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-5);
  color: var(--text-soft);
  font-size: var(--fs-small);
}
.ha-checks {
  background: color-mix(in srgb, var(--soft) 65%, transparent);
  margin-inline: calc(-1 * var(--sp-3)) !important;
  padding: var(--sp-5) var(--sp-3) var(--sp-6) !important;
  border-radius: var(--r-card);
}
.ha-result {
  min-height: 0;
  border-top-width: 2px;
}
.ha-result-section {
  display: grid;
  gap: 4px;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.ha-result-section h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.ha-result-section p {
  font-size: var(--fs-small);
  line-height: 1.5;
}
.ha-result-section--good {
  border-left: 3px solid var(--succes);
  padding-left: var(--sp-3);
}
.ha-result-section--limit {
  border-left: 3px solid var(--warning);
  padding-left: var(--sp-3);
}
.ha-result-section--unknown {
  border-left: 3px solid var(--border-strong);
  padding-left: var(--sp-3);
}
.ha-result-guides p { line-height: 1.55; }
.ha-result-guides a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ha-profile-note {
  color: var(--text-soft);
  font-size: var(--fs-small);
}

.product-card {
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
  box-shadow: none;
}
.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -26px rgba(29,29,31,.55);
}
.product-card .product-photo {
  aspect-ratio: 5 / 4;
}
.product-score-line {
  color: var(--text-soft);
  font-size: var(--fs-caption);
}
.product-answer {
  display: grid;
  gap: 3px;
  font-size: var(--fs-small);
  line-height: 1.45;
}
.product-answer strong {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.product-answer--limit {
  padding-left: var(--sp-3);
  border-left: 3px solid var(--warning);
}

.product-title-block {
  max-width: 900px;
  margin-bottom: var(--sp-8);
}
.product-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--sp-3);
  color: var(--text-soft);
  font-size: var(--fs-small);
  font-weight: 700;
}
.product-context svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.product-score-context {
  display: flex;
  flex-wrap: wrap;
  gap: 3px var(--sp-2);
  margin-top: var(--sp-3);
  color: var(--text-soft);
  font-size: var(--fs-caption);
}
.product-score-context strong {
  color: var(--text);
}
.product-score-context a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-12));
  align-items: start;
  margin-bottom: var(--sp-12);
}
.product-intro-media,
.product-intro-copy {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
}
.product-price-glance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.product-price-glance > span {
  flex-basis: 100%;
  color: var(--text-soft);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-price-glance strong {
  font-family: var(--font-mono);
  font-size: 1.7rem;
}
.product-price-glance small {
  color: var(--text-soft);
}
.product-verdict h2 {
  margin: var(--sp-2) 0 var(--sp-4);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.product-verdict dl {
  display: grid;
}
.product-verdict dl > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, .55fr) minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.product-verdict dt {
  color: var(--text-soft);
  font-size: var(--fs-small);
  font-weight: 750;
}
.product-verdict dd {
  line-height: 1.5;
}
.product-verdict .is-good {
  border-left: 3px solid var(--succes);
  padding-left: var(--sp-3);
}
.product-verdict .is-limit {
  border-left: 3px solid var(--warning);
  padding-left: var(--sp-3);
}
.product-verdict .is-unknown {
  border-left: 3px solid var(--border-strong);
  padding-left: var(--sp-3);
}
.product-key-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-block: 1px solid var(--border);
}
.product-key-facts span {
  display: grid;
  gap: 4px;
  font-size: var(--fs-small);
}
.product-key-facts strong {
  color: var(--text-soft);
  font-size: var(--fs-caption);
}
.product-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.editorial-signature {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  line-height: 1.5;
}
.remaining-work {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  padding-block: var(--sp-8);
  border-block: 1px solid var(--border);
}
.remaining-work h2 {
  margin: var(--sp-2) 0;
}
.remaining-work p {
  color: var(--text-soft);
}
.remaining-work ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  list-style: none;
}
.remaining-work li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: var(--fs-small);
}
.remaining-work li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}
.product-details-open .card {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding-inline: 0;
}

.cmp-decision {
  margin-top: var(--sp-10);
  padding-block: var(--sp-8);
  border-block: 1px solid var(--border);
}
.cmp-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8);
}
.cmp-decision-grid article {
  min-width: 0;
}
.cmp-decision-grid h3 {
  margin-bottom: var(--sp-3);
}
.cmp-decision-grid p {
  display: grid;
  gap: 4px;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.cmp-decision-grid p strong {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmp-decision-grid p.is-limit {
  border-left: 3px solid var(--warning);
  padding-left: var(--sp-3);
}
.cmp-price-gap {
  margin-top: var(--sp-6);
  color: var(--text-soft);
  font-size: var(--fs-small);
}

@media (max-width: 940px) {
  .home-needs-grid,
  .ha-form .ha-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-intro {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .home-needs-grid,
  .home-decision-questions,
  .ha-form .ha-fields,
  .product-key-facts,
  .remaining-work,
  .remaining-work ul,
  .cmp-decision-grid {
    grid-template-columns: 1fr;
  }
  .home-decision-questions {
    gap: var(--sp-4);
  }
  .home-decision-questions p {
    padding: 0 0 var(--sp-4);
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .product-verdict dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .product-intro-actions .btn {
    width: 100%;
  }
  .remaining-work {
    gap: var(--sp-5);
  }
}

.housing-check {
  margin-bottom: var(--sp-10);
  border-top: 4px solid var(--accent);
}
.housing-check > .lede {
  max-width: 760px;
}
.housing-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.housing-fact {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.housing-fact[data-state="documented"] { border-color: color-mix(in srgb, var(--succes) 35%, var(--border)); }
.housing-fact[data-state="contradictory"] { border-color: var(--promo); background: var(--promo-tint); }
.housing-fact[data-state="unknown"] { background: var(--soft); }
.housing-fact strong { overflow-wrap: anywhere; }
.housing-fact small,
.housing-result span,
.housing-measure-tool > p,
.housing-unknown-note {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  line-height: 1.5;
}
.housing-status {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.housing-measure-tool {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.housing-measure-tool h3 { margin-bottom: var(--sp-2); }
.housing-measure-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: end;
  margin-top: var(--sp-5);
}
.housing-measure-form label,
.housing-measure-form legend {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.housing-measure-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.housing-measure-form fieldset {
  grid-column: 1 / -1;
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.housing-measure-form__station {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.housing-measure-form button { justify-self: start; }
.housing-form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger, #a33b2c);
  font-size: var(--fs-caption);
}
.housing-measure-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.housing-result {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: var(--sp-4);
  border-left: 4px solid var(--border);
  background: var(--soft);
}
.housing-result[data-state="documented"] { border-left-color: var(--accent); }
.housing-result[data-state="fit"] { border-left-color: var(--succes); background: color-mix(in srgb, var(--succes) 8%, var(--surface)); }
.housing-result[data-state="incompatible"],
.housing-result[data-state="contradictory"] { border-left-color: var(--promo); background: var(--promo-tint); }
.housing-result[data-state="unknown"] { border-left-color: var(--border); }
.housing-check-links {
  margin-top: var(--sp-6);
  color: var(--text-soft);
  font-size: var(--fs-small);
}
.housing-check-links a { color: var(--accent); font-weight: 700; }
.housing-unknown-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  border-left: 4px solid var(--promo);
  background: var(--promo-tint);
}

@media (max-width: 860px) {
  .housing-facts-grid,
  .housing-measure-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .housing-facts-grid,
  .housing-measure-results,
  .housing-measure-form { grid-template-columns: 1fr; }
  .housing-measure-form fieldset { grid-column: auto; }
  .housing-measure-form__station { grid-template-columns: 1fr; }
  .housing-measure-form button { width: 100%; }
}
.ha-housing-verification {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-8);
  border-top: 4px solid var(--accent);
}
.ha-housing-verification > p {
  max-width: 800px;
  color: var(--text-soft);
}
.ha-housing-form { margin-top: var(--sp-5); }
.ha-housing-form fieldset { margin-top: 0; }
.ha-housing-results { align-items: start; }
.housing-verification-model {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.housing-verification-model h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-small);
}
.housing-verification-model .housing-result {
  padding: var(--sp-3);
  font-size: var(--fs-caption);
}
.housing-verification-model > a,
.ha-housing-links a {
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.ha-housing-links { margin-top: var(--sp-5); }
