/* Maquette V2 | encre et accent (couleurs dans config/site.json) | mobile d'abord | aucune dépendance externe.
   Les variables :root sont injectées par build_maquettes.py depuis config/site.json. */
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-var.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --ink: #4A2F21;
  --ink-2: #5E3D2C;
  --ink-soft: #6E5444;
  --accent: #A8481A;
  --accent-2: #863712;
  --accent-tint: #F8E6D8;
  --accent-light: #E9A26B;
  --bg: #FAF6F1;
  --surface: #FFFFFF;
  --line: #E3D9CE;
  --line-strong: #85705F;
  --link: #7A3412;
  --ok-fg: #2B5A28;
  --ok-bg: #E1EDD8;
  --mid-fg: #6F4500;
  --mid-bg: #FBEBC8;
  --unk-fg: #4A4038;
  --unk-bg: #ECE6DF;
  --bad-fg: #8E1B1B;
  --bad-bg: #F8DFDA;
  --warn-fg: #6B3A12;
  --warn-bg: #F5E1CF;
  --info-fg: #1F4E6B;
  --info-bg: #DCEAF2;
  --off-fg: #6A5E54;
  --off-bg: #F0EBE5;
  --footer-text: #F1E6DA;
  --ecart-bg: #F7F0E8;
  --ink-rgb: 74, 47, 33;
  --font-title: "Bricolage Grotesque", "Segoe UI Variable Display", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Arial, sans-serif;
  --font-text: "Figtree", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Arial, sans-serif;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font-text); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible { outline-color: var(--surface); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); color: var(--ink); padding: .75rem 1rem; z-index: 60; border-radius: 8px; font-weight: 700; }
.skip:focus { left: .5rem; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6rem; color: var(--ink); letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-top: 2.5rem; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 52ch; }
h1, h2, h3, h4 { overflow-wrap: break-word; min-width: 0; }
h2, h3, h4 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9375rem; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 46ch; }
.num, .prix, td.num, table, .val, .faits dd, .compte { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { margin-top: 2.5rem; }
.section > h2:first-child { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.m0 { margin: 0; } .mt0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-075 { margin-top: .75rem; } .mb-05 { margin-bottom: .5rem; } .mb-075 { margin-bottom: .75rem; } .centre { text-align: center; }
.prix-grand { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.titre-grand { font-size: 1.375rem; }
.une-col { grid-template-columns: minmax(0, 1fr) !important; }
.hero-art .hero-picto { width: 200px; height: 200px; margin: 0 auto; display: block; border-radius: 44px; box-shadow: none; }

/* ---------- En-tête ---------- */
.site-header { background: var(--ink); color: var(--surface); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--surface); text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; flex: none; }
.logo { font-family: var(--font-title); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo-a, .logo-c { font-size: 1.5rem; }
.logo-c .ton { color: var(--accent-light); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.marche { display: inline-flex; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; overflow: hidden; }
.marche button { font: inherit; font-weight: 700; min-height: 44px; min-width: 44px; padding: 0 .6rem; border: 0; background: transparent; color: var(--surface); cursor: pointer; }
.marche button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.marche button:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.12); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 .7rem; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; font-weight: 700; color: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menu[open] summary { background: rgba(255,255,255,.12); }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 240px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: .5rem; box-shadow: 0 16px 40px rgba(var(--ink-rgb),.22); }
.menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .85rem; color: var(--ink); text-decoration: none; border-radius: 10px; font-weight: 600; }
.menu nav a:hover { background: var(--bg); }
.menu nav a[aria-current="page"], .menu nav a[aria-current="true"] { color: var(--accent); background: var(--accent-tint); }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .9375rem; padding: .85rem 0 0; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 1.75rem 0 2rem; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero-art { display: none; }
.hero .lead { margin-bottom: 1.25rem; }
.dates { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.dates li { margin: 0; }
.badge-date { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; color: var(--ink); text-decoration: none; }
.badge-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
a.badge-date:hover { border-color: var(--ink); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .6rem 1.25rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--surface); cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-buy { background: var(--accent); border-color: var(--accent); color: var(--surface); width: 100%; }
.btn-buy:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--surface); }
.btn[aria-disabled="true"], .btn-off { background: var(--off-bg); border-color: var(--off-bg); color: var(--off-fg); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.lien-action { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.lien-action:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: var(--surface); transition: box-shadow .15s, border-color .15s, transform .15s; }
.card h3 { margin-bottom: .35rem; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(var(--ink-rgb),.08); }
.card-usage { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 88px; }
.card-usage img { width: 56px; height: 56px; border-radius: 14px; }
.card-usage h3 { margin: 0; font-size: 1.0625rem; text-wrap: wrap; }
.card-usage p { margin: 0; }
.card a.stretch { text-decoration: none; color: inherit; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(a.stretch:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card a.stretch:focus-visible { outline: none; }
.card-entree { display: grid; gap: .75rem; }
.card-entree img { width: 56px; height: 56px; border-radius: 14px; }
.card-entree p { margin: 0; }
.card-modele { display: grid; gap: .5rem; }
.card-modele .prix-ligne { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.card-modele .prix { font-size: 1.375rem; font-weight: 800; }

/* ---------- Résumé de décision ---------- */
.resume { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 12px 32px rgba(var(--ink-rgb),.08); }
.resume-head { background: var(--ink); color: var(--surface); padding: .85rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.resume-head h2 { color: var(--surface); margin: 0; font-size: 1.125rem; }
.resume-head .small { color: var(--footer-text); }
.resume-body { padding: 1.25rem; display: grid; gap: 1.25rem; }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; margin: 0; }
.faits div { border-top: 1px solid var(--line); padding-top: .6rem; }
.faits dt { font-size: .875rem; color: var(--ink-soft); margin-bottom: .1rem; }
.faits dd { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.faits dd .src { font-weight: 400; }
.resume-offre { border-top: 1px solid var(--line); padding: 1rem 0 0; display: grid; gap: .5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pills li { margin: 0; }
.pills.situ { flex-direction: column; flex-wrap: nowrap; gap: .5rem; }
.pills.situ li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }

/* ---------- Offres et prix datés ---------- */
.offres { display: grid; gap: .85rem; }
.offre { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; display: grid; gap: .5rem; background: var(--surface); }
.offre-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.offre h3, .offre h4 { margin: 0; font-size: 1.0625rem; }
.offre .marche-tag { font-size: .875rem; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .55rem; }
.offre .prix { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.offre .prix-barre { font-size: 1rem; font-weight: 400; color: var(--ink-soft); text-decoration: line-through; margin-left: .4rem; }
.offre .prix-date { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.offre .dispo { display: inline-flex; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 600; }
.offre .dispo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-fg); }
.offre .dispo.rupture::before { background: var(--bad-fg); }
.offre .dispo.sur_commande::before { background: var(--warn-fg); }
.offre.perime .prix { display: none; }
.etat-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 8px; font-size: .9375rem; font-weight: 600; width: fit-content; }
.etat-tag.warn { color: var(--warn-fg); background: var(--warn-bg); }
.etat-tag.info { color: var(--info-fg); background: var(--info-bg); }
.etat-tag.off { color: var(--off-fg); background: var(--off-bg); }
.etat-tag.bad { color: var(--bad-fg); background: var(--bad-bg); }
body[data-marche="fr"] [data-marche="be"] { display: none; }
body[data-marche="be"] [data-marche="fr"] { display: none; }
.aff-note { font-size: .875rem; color: var(--ink-soft); margin: .15rem 0 0; }
.aff-note a { color: inherit; }
.offres-vide { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 1.1rem 1.25rem; background: var(--surface); color: var(--ink-soft); }
.offres-vide p { margin: 0; }

/* ---------- Pastilles d'adéquation (forme + texte + couleur) ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; font-size: .9375rem; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; flex: none; }
.pill.conforme { color: var(--ok-fg); background: var(--ok-bg); }
.pill.partielle { color: var(--mid-fg); background: var(--mid-bg); }
.pill.partielle::before { border-radius: 2px; }
.pill.indetermine { color: var(--unk-fg); background: var(--unk-bg); }
.pill.indetermine::before { background: transparent; border: 2px solid currentColor; }
.pill.non_conforme { color: var(--bad-fg); background: var(--bad-bg); }
.pill.non_conforme::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tiers { display: inline-block; color: var(--warn-fg); background: var(--warn-bg); padding: .05rem .55rem; border-radius: 6px; font-size: .875rem; font-weight: 600; margin-left: .25rem; }
.nc { color: var(--unk-fg); font-style: italic; }
.so { color: var(--unk-fg); }
.src { display: block; font-size: .875rem; color: var(--ink-soft); font-weight: 400; font-style: normal; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9375rem; }
caption { text-align: left; padding: .9rem 1.1rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
th, td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 600; background: var(--surface); position: sticky; left: 0; min-width: 10rem; max-width: 14rem; box-shadow: 1px 0 0 var(--line); }
tbody tr:hover td, tbody tr:hover th { background: var(--bg); }
td.num { text-align: right; white-space: nowrap; }
tr.ecart th, tr.ecart td { background: var(--ecart-bg); }
tr.ecart th::after { content: " \2260"; color: var(--accent); font-weight: 800; }
th.col-modele { min-width: 12rem; }
th button.sort { font: inherit; font-weight: 700; background: none; border: 0; color: inherit; cursor: pointer; min-height: 44px; padding: 0 .25rem; display: inline-flex; align-items: center; gap: .3rem; }
th button.sort::after { content: "\2195"; color: var(--ink-soft); font-size: .9em; }
th[aria-sort="ascending"] button.sort::after { content: "\2191"; color: var(--accent); }
th[aria-sort="descending"] button.sort::after { content: "\2193"; color: var(--accent); }
th[aria-sort] button.sort { color: var(--accent); }
.legende-tab { font-size: .875rem; color: var(--ink-soft); margin-top: .5rem; }
tr.groupe th { background: var(--bg); font-size: .9375rem; color: var(--ink); position: static; }

/* ---------- Filtres ---------- */
.filtres { display: grid; gap: 1rem; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: var(--surface); margin-bottom: 1rem; }
.filtres fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtres legend, .field > label { font-weight: 700; margin-bottom: .5rem; padding: 0; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600; transition: background .15s, color .15s; }
.chip span::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-radius: 4px; flex: none; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip input:checked + span::before { border-color: var(--surface); background: var(--surface); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.chip:hover span { border-color: var(--ink); }
.field input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.field select { font: inherit; min-height: 44px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 .75rem; background: var(--surface); color: var(--ink); }
.compte { font-weight: 700; margin: .5rem 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.compte::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.etat-vide { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 1.5rem; background: var(--surface); text-align: center; }
.etat-vide img { width: 200px; height: auto; margin: 0 auto .5rem; display: block; }
.etat-vide p { margin: 0 auto; }

/* ---------- Classement ---------- */
.classement { list-style: none; counter-reset: rang; padding: 0; margin: 0; display: grid; gap: 1rem; }
.classement > li { counter-increment: rang; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .75rem 1rem; padding: 1.1rem 1.25rem; transition: box-shadow .15s; }
.classement > li:hover { box-shadow: 0 10px 28px rgba(var(--ink-rgb),.08); }
.classement > li::before { content: counter(rang); width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 1.125rem; }
.classement .corps { display: grid; gap: .5rem; min-width: 0; }
.classement .titre { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.classement h3 { margin: 0; font-size: 1.125rem; }
.classement .faits-ligne { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.classement .faits-ligne li { margin: 0; }
.classement .faits-ligne strong { font-weight: 700; }
.classement .pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .25rem; }
.classement .prix { font-size: 1.375rem; font-weight: 800; }
.classement .prix small { font-size: .875rem; font-weight: 400; color: var(--ink-soft); margin-left: .35rem; }

/* ---------- Règles, encadrés ---------- */
.regles { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.regles li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin: 0; }
.regles .poids { font-size: .875rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; white-space: nowrap; }
.regles .poids.bloquante { color: var(--ok-fg); background: var(--ok-bg); }
.regles .poids.souhaitable { color: var(--mid-fg); background: var(--mid-bg); }
.callout { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 1rem 1.25rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--info-bg); border-color: var(--info-bg); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-bg); }
.callout.bad { background: var(--bad-bg); border-color: var(--bad-bg); }
.note-aff { font-size: .9375rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
.note-aff p { margin: 0; }
.criteres { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; counter-reset: crit; }
.criteres li { counter-increment: crit; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .75rem; margin: 0; }
.criteres li::before { content: counter(crit); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: .9375rem; }
.pourqui { display: grid; gap: 1rem; }
.pourqui > div { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; background: var(--surface); }
.pourqui h3 { margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pourqui p { margin: 0; }

/* ---------- Jauges, historique ---------- */
.jauge { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; align-items: center; gap: .75rem; font-size: .9375rem; margin-bottom: .55rem; }
.jauge .barre { height: .75rem; border-radius: 99px; background: var(--unk-bg); overflow: hidden; }
.jauge .barre i { display: block; height: 100%; background: var(--ink); border-radius: 99px; width: var(--w, 0%); }
.jauge .val { text-align: right; font-weight: 700; }
.jauges h3 { margin-top: 1.25rem; }
.histo { border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: var(--surface); display: grid; gap: 1rem; }
.histo > div, .layout-2 > div, .layout-toc > article, .resume-body > div, .cards > div, .classement .corps { min-width: 0; }
.histo svg { width: 100%; height: auto; }
.histo .table-wrap { border: 0; border-radius: 0; background: none; }
.histo-vide { color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .6rem; background: var(--surface); }
details.faq summary { cursor: pointer; font-weight: 700; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); flex: none; }
details.faq[open] summary::after { content: "\2212"; }
details.faq[open] { border-color: var(--line-strong); }
details.faq p { margin-bottom: 1rem; }

/* ---------- Médias et emplacements ---------- */
.media-slot { margin: 1.25rem 0; max-width: 760px; }
.hero-art .media-slot { margin: 0; max-width: none; }
.media-slot.compact { max-width: 220px; margin: 0 auto; }
.media-slot img { width: 100%; height: auto; border-radius: 16px; display: block; background: var(--bg); }
.media-slot figcaption { font-size: .875rem; color: var(--ink-soft); margin-top: .5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ratio-16-9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.ratio-1-1 img { aspect-ratio: 1 / 1; object-fit: cover; }
.ratio-4-3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.cadre-bas img { object-position: 50% 85%; }
.cadre-bas-droite img { object-position: 78% 88%; }
.media-slot.repli img { object-fit: contain; background: var(--unk-bg); padding: 1.5rem; }
.media-slot img[src$=".jpg"] { background: var(--unk-bg); }
.hero-photo { display: block; }
.hero-photo .media-slot { margin: 0; max-width: none; }
.hero-photo img { border-radius: 16px; width: 100%; height: auto; }
.duo-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.25rem 0 0; }
.duo-photos .media-slot { margin: 0; }

/* ---------- États : chargement, erreur ---------- */
.skeleton { display: grid; gap: .75rem; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: var(--surface); }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--unk-bg) 25%, var(--bg) 50%, var(--unk-bg) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i.l { width: 60%; height: 22px; } .skeleton i.m { width: 85%; } .skeleton i.s { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.alerte { border: 1px solid var(--bad-fg); background: var(--bad-bg); border-radius: 12px; padding: 1rem 1.25rem; display: grid; gap: .25rem; }
.alerte strong { color: var(--bad-fg); }
.alerte p { margin: 0; }
.erreur-page { text-align: center; padding: 2rem 0 3rem; }
.erreur-page img { width: min(100%, 420px); height: auto; margin: 0 auto 1rem; display: block; }
.erreur-page p { margin-left: auto; margin-right: auto; }
.erreur-page .btn-row { justify-content: center; }
.code-http { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .5rem; margin-bottom: 1rem; }

/* ---------- Tranches de budget ---------- */
.tranches { display: grid; gap: 1rem; }
.tranche { padding: 1rem 1.25rem; }
.tranche h3 { margin: 0; }
.tranche.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Comparateur ---------- */
.comparateur { border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: var(--surface); margin-bottom: 1rem; display: grid; gap: .75rem; }
.comparateur legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.comparateur fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cmp-msg { margin: 0; font-weight: 600; min-height: 1.5rem; color: var(--warn-fg); }

/* ---------- Sommaire, étapes ---------- */
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; background: var(--surface); }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.5rem; }
.toc li { padding: .3rem 0; margin: 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.article h2 { scroll-margin-top: 5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .6rem; }
.article h2 .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 600; }
.definition { background: var(--accent-tint); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; color: var(--ink); }
.definition p { margin: 0; }
.definition dfn { font-style: normal; font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 4rem; padding: 2.5rem 0 2rem; background: var(--ink); color: var(--footer-text); }
.site-footer a { color: var(--surface); }
.site-footer .cols { display: grid; gap: 1.5rem; }
.site-footer h2 { color: var(--surface); font-size: 1rem; margin: 0 0 .6rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .15rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer .bas { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; font-size: .9375rem; }
.site-footer .brand { font-size: 1.25rem; margin-bottom: .5rem; }

.layout-2 { display: grid; gap: 2rem; }
.layout-2 > aside { order: -1; }

/* ---------- Points de rupture ---------- */
@media (min-width: 720px) {
  .duo-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { padding: 2.5rem 0 2.5rem; }
  .brand { font-size: 1.15rem; gap: .6rem; }
  .marche button { min-width: 46px; padding: 0 .8rem; }
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .offres, .layout-2 > aside .offres { grid-template-columns: minmax(0, 1fr); }
  .pourqui { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtres { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .site-footer .cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tranches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .classement > li { grid-template-columns: 44px minmax(0, 1fr); }
  .btn-buy { width: auto; }
  .resume-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero-art { display: block; }
  .hero-photo .ratio-16-9 img { aspect-ratio: 4 / 3; }
  .hero-art img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 48px rgba(var(--ink-rgb),.12); }
  .menu summary { display: none; }
  .menu nav { position: static; display: flex !important; gap: .15rem; padding: 0; min-width: 0; box-shadow: none; background: none; color: var(--surface); }
  .menu nav a { color: var(--surface); padding: 0 .7rem; border-radius: 8px; min-height: 44px; position: relative; font-weight: 600; }
  .menu nav a:hover { background: rgba(255,255,255,.1); }
  .menu nav a[aria-current="page"], .menu nav a[aria-current="true"] { background: none; color: var(--surface); }
  .menu nav a[aria-current="page"]::after, .menu nav a[aria-current="true"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 3px; border-radius: 2px; background: var(--accent-light); }
  .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards.c5 .card-usage { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: 1.25rem; align-content: start; }
  .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
  .layout-2 > aside { position: sticky; top: 84px; order: 0; }
  .layout-toc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
  .layout-toc > aside { position: sticky; top: 84px; order: 2; }
  .offres.une { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .brand svg path { fill: CanvasText; }
  .pill, .badge-date { border: 1px solid CanvasText; }
  .pill::before, .badge-date::before { forced-color-adjust: none; background: CanvasText; }
  .pill.indetermine::before { background: transparent; border-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .skeleton i { background: var(--unk-bg); }
}
@media (max-width: 380px) {
  .site-header .wrap { padding: 0 .75rem; gap: .4rem; }
  .header-tools { gap: .35rem; }
  .marche button { padding: 0 .45rem; }
  .menu summary { padding: 0 .55rem; gap: .3rem; }
  .logo-a, .logo-c { font-size: 1.35rem; }
  .brand { gap: .4rem; }
}
@media print { .site-header, .site-footer, .filtres, .marche, .menu { display: none; } body { background: #fff; } }

/* Étiquette d'état de l'offre sous un nom ou dans une carte */
th .etat-tag, .corps > .etat-tag { display: flex; margin-top: .3rem; }
.corps > .etat-tag { margin-bottom: .6rem; }
.card-modele .etat-tag { margin-bottom: .6rem; }


/* Cases d'inclusion des filtres */
.filtres > div > .chip { display: block; width: fit-content; margin-top: .6rem; }

/* Photo par modèle : vignettes et repli */
.vignette { display: block; flex: none; object-fit: cover; border-radius: 10px; background: var(--unk-bg); }
.vignette.repli { object-fit: contain; }
.tete { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.tete .vignette { width: 72px; height: 72px; }
.tete .titre { flex: 1 1 0; min-width: 0; }
@media (max-width: 400px) { .tete { flex-direction: column; align-items: flex-start; gap: .6rem; } .tete .titre { flex: none; width: 100%; } .tete .vignette { width: 56px; height: 56px; } }
.nom-ligne { display: flex; align-items: center; gap: .65rem; }
.nom-ligne .vignette { width: 44px; height: 44px; border-radius: 8px; }
.card-modele .vignette.v-grande { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; margin-bottom: .25rem; }

/* Cartes couverture (hub Sélections) et duos (hub Comparatifs) */
.card-couv { display: grid; padding: 0; overflow: hidden; border: 0; aspect-ratio: 4 / 3; min-height: 220px; background: var(--ink); }
.card-couv img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card-couv:hover img { transform: scale(1.03); }
.couv-texte { grid-area: 1 / 1; align-self: end; padding: 3.5rem 1.25rem 1.1rem; color: #fff; background: linear-gradient(to top, rgba(var(--ink-rgb),.94) 0%, rgba(var(--ink-rgb),.78) 55%, rgba(var(--ink-rgb),0) 100%); }
.couv-texte h3 { margin: 0 0 .15rem; color: #fff; font-size: 1.25rem; text-wrap: balance; }
.couv-texte p { margin: 0; color: rgba(255,255,255,.9); }
.card-couv:hover { box-shadow: 0 14px 32px rgba(var(--ink-rgb),.18); }
.duo-couv { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; margin-bottom: .5rem; }
.duo-couv .vignette { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.duo-vs { font-size: .875rem; font-weight: 700; color: var(--ink-soft); }

/* Hub des fiches : liste filtrable */
.cartes-fiches { list-style: none; padding: 0; margin: 0; }
.cartes-fiches > li { min-width: 0; }
.cartes-fiches > li[hidden] { display: none; }
.filtres-fiches > div { display: grid; gap: 1rem; align-content: start; }
.filtres-fiches .chips + .chip { display: block; width: fit-content; margin-top: .6rem; }
.filtres-fiches .btn { justify-self: start; }

/* Pourcentage de remise ou de baisse */
.remise { display: inline-block; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: .1rem .6rem; margin-left: .5rem; white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.card-modele .prix-ligne .remise { margin-left: 0; }

/* Offre indisponible */
.offre .indispo { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.offre .indispo::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--bad-fg); clip-path: polygon(50% 0, 100% 100%, 0 100%); }


/* ---------- Lot 9 (2026-11-11) : cartes cliquables, phrases d'acheteur, écarts des duels ---------- */
.classement > li { position: relative; }
.classement a.stretch { text-decoration: none; color: inherit; }
.classement a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.classement > li:has(a.stretch:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.classement a.stretch:focus-visible { outline: none; }
.btn-carte { display: inline-flex; align-items: center; justify-self: start; gap: .35rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 12px; background: var(--accent); color: var(--surface); font-weight: 700; }
.btn-carte::after { content: "\2192"; }
.card:hover .btn-carte, .classement > li:hover .btn-carte { background: var(--accent-2); }
.card:hover h3 a.stretch, .classement > li:hover h3 a.stretch { text-decoration: underline; }
.pourqui-liste { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .35rem; }
.pourqui-liste li { position: relative; padding-left: 1.6rem; margin: 0; }
.pourqui-liste li::before { position: absolute; left: 0; top: 0; width: 1.2rem; text-align: center; font-weight: 800; }
.pourqui-liste li.oui::before { content: "\2713"; color: var(--ok-fg); }
.pourqui-liste li.non::before { content: "\2717"; color: var(--accent); }
.pourqui-liste li.inconnu::before { content: "?"; color: var(--ink-soft); }
.fa-tete, .fa-liste > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem .75rem; align-items: start; }
.fa-tete { font-weight: 700; font-size: .9375rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.fa-tete span:first-child { display: none; }
.fa-liste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.fa-liste > li { padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.fa-lib { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: .875rem; color: var(--ink-soft); }
.fa-val { display: grid; gap: .3rem; padding: .45rem .6rem; border-radius: 10px; align-content: start; }
.fa-val.plus { background: var(--ok-bg); }
.fa-badge { justify-self: start; font-size: .8125rem; font-weight: 700; color: var(--ok-fg); }
.fa-bool { font-weight: 700; }
.fa-bool::before { font-weight: 800; margin-right: .3rem; }
.fa-bool.oui::before { content: "\2713"; color: var(--ok-fg); }
.fa-bool.non::before { content: "\2717"; color: var(--accent); }
.fa-val .barre { display: block; height: .6rem; border-radius: 99px; background: var(--unk-bg); overflow: hidden; }
.fa-val .barre i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.fa-bilan { font-weight: 700; margin: 0 0 .75rem; }
@media (min-width: 48rem) {
  .fa-tete, .fa-liste > li { grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .fa-tete span:first-child { display: block; }
  .fa-lib { grid-column: auto; font-size: .9375rem; color: var(--ink); }
}

/* lot 9 finition : bouton « Voir la fiche » aligné en bas de chaque carte, quelle que soit la longueur du texte */
.card-modele { grid-template-rows: auto; align-content: start; }
.card.card-modele { display: flex; flex-direction: column; gap: .5rem; }
.card.card-modele > * { margin-top: 0; margin-bottom: 0; }
.card.card-modele > .btn-carte { margin-top: auto; align-self: flex-start; }
.cards > .card.card-modele { height: 100%; }

/* Largeurs des jauges (0 à 100 %), générées */
.barre i.w0 { width: 0%; }
.barre i.w1 { width: 1%; }
.barre i.w2 { width: 2%; }
.barre i.w3 { width: 3%; }
.barre i.w4 { width: 4%; }
.barre i.w5 { width: 5%; }
.barre i.w6 { width: 6%; }
.barre i.w7 { width: 7%; }
.barre i.w8 { width: 8%; }
.barre i.w9 { width: 9%; }
.barre i.w10 { width: 10%; }
.barre i.w11 { width: 11%; }
.barre i.w12 { width: 12%; }
.barre i.w13 { width: 13%; }
.barre i.w14 { width: 14%; }
.barre i.w15 { width: 15%; }
.barre i.w16 { width: 16%; }
.barre i.w17 { width: 17%; }
.barre i.w18 { width: 18%; }
.barre i.w19 { width: 19%; }
.barre i.w20 { width: 20%; }
.barre i.w21 { width: 21%; }
.barre i.w22 { width: 22%; }
.barre i.w23 { width: 23%; }
.barre i.w24 { width: 24%; }
.barre i.w25 { width: 25%; }
.barre i.w26 { width: 26%; }
.barre i.w27 { width: 27%; }
.barre i.w28 { width: 28%; }
.barre i.w29 { width: 29%; }
.barre i.w30 { width: 30%; }
.barre i.w31 { width: 31%; }
.barre i.w32 { width: 32%; }
.barre i.w33 { width: 33%; }
.barre i.w34 { width: 34%; }
.barre i.w35 { width: 35%; }
.barre i.w36 { width: 36%; }
.barre i.w37 { width: 37%; }
.barre i.w38 { width: 38%; }
.barre i.w39 { width: 39%; }
.barre i.w40 { width: 40%; }
.barre i.w41 { width: 41%; }
.barre i.w42 { width: 42%; }
.barre i.w43 { width: 43%; }
.barre i.w44 { width: 44%; }
.barre i.w45 { width: 45%; }
.barre i.w46 { width: 46%; }
.barre i.w47 { width: 47%; }
.barre i.w48 { width: 48%; }
.barre i.w49 { width: 49%; }
.barre i.w50 { width: 50%; }
.barre i.w51 { width: 51%; }
.barre i.w52 { width: 52%; }
.barre i.w53 { width: 53%; }
.barre i.w54 { width: 54%; }
.barre i.w55 { width: 55%; }
.barre i.w56 { width: 56%; }
.barre i.w57 { width: 57%; }
.barre i.w58 { width: 58%; }
.barre i.w59 { width: 59%; }
.barre i.w60 { width: 60%; }
.barre i.w61 { width: 61%; }
.barre i.w62 { width: 62%; }
.barre i.w63 { width: 63%; }
.barre i.w64 { width: 64%; }
.barre i.w65 { width: 65%; }
.barre i.w66 { width: 66%; }
.barre i.w67 { width: 67%; }
.barre i.w68 { width: 68%; }
.barre i.w69 { width: 69%; }
.barre i.w70 { width: 70%; }
.barre i.w71 { width: 71%; }
.barre i.w72 { width: 72%; }
.barre i.w73 { width: 73%; }
.barre i.w74 { width: 74%; }
.barre i.w75 { width: 75%; }
.barre i.w76 { width: 76%; }
.barre i.w77 { width: 77%; }
.barre i.w78 { width: 78%; }
.barre i.w79 { width: 79%; }
.barre i.w80 { width: 80%; }
.barre i.w81 { width: 81%; }
.barre i.w82 { width: 82%; }
.barre i.w83 { width: 83%; }
.barre i.w84 { width: 84%; }
.barre i.w85 { width: 85%; }
.barre i.w86 { width: 86%; }
.barre i.w87 { width: 87%; }
.barre i.w88 { width: 88%; }
.barre i.w89 { width: 89%; }
.barre i.w90 { width: 90%; }
.barre i.w91 { width: 91%; }
.barre i.w92 { width: 92%; }
.barre i.w93 { width: 93%; }
.barre i.w94 { width: 94%; }
.barre i.w95 { width: 95%; }
.barre i.w96 { width: 96%; }
.barre i.w97 { width: 97%; }
.barre i.w98 { width: 98%; }
.barre i.w99 { width: 99%; }
.barre i.w100 { width: 100%; }
