/* =========================================================
   Voyant Rouge — thème « garage »
   Bandeaux, compteurs et ordinateur de bord restent sombres
   dans les deux thèmes (comme un vrai tableau de bord).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f2f1ee;
  --surface: #ffffff;
  --surface-2: #ebeae6;
  --border: #dddbd5;
  --text: #121315;
  --text-2: #4b4e55;
  --text-3: #7d8088;
  --accent: #e8231b;
  --accent-ink: #c8160f;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #6250d6;
  --s8: #e34948;
  --good: #0ca30c;
  --good-ink: #067a06;
  --critique: #d03b3b;
  --majeur: #ec835a;
  --mineur: #fab219;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);

  /* Surfaces « instrument » (toujours sombres) */
  --ink-bg: #0c0d0f;
  --ink-surface: #15171a;
  --ink-surface-2: #1d2024;
  --ink-border: #2b2f35;
  --ink-text: #f3f4f6;
  --ink-text-2: #b3b8c1;
  --ink-text-3: #7c828c;
  --ink-s1: #3987e5;
  --ink-s2: #d95926;

  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1012;
    --surface: #17191c;
    --surface-2: #1f2226;
    --border: #2a2d33;
    --text: #f2f3f5;
    --text-2: #b4b9c2;
    --text-3: #7f858f;
    --accent-ink: #ff5a4f;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #008300;
    --s7: #9085e9;
    --s8: #e66767;
    --good-ink: #3ccf3c;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1012;
  --surface: #17191c;
  --surface-2: #1f2226;
  --border: #2a2d33;
  --text: #f2f3f5;
  --text-2: #b4b9c2;
  --text-3: #7f858f;
  --accent-ink: #ff5a4f;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s7: #9085e9;
  --s8: #e66767;
  --good-ink: #3ccf3c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 70px); }
/* ---------- Fond d'ambiance animé ----------
   Trois halos de couleur qui dérivent lentement derrière la page (couleur du modèle sur une fiche),
   plus un grain léger et une trame fine façon plan technique. Désactivé si « réduire les animations ». */
@property --ambiance { syntax: "<color>"; inherits: true; initial-value: #e8231b; }
:root {
  --ambiance: #e8231b;
  --amb-strength: 20%;
  --amb-blue: rgba(42, 120, 214, .10);
  --amb-warm: rgba(235, 104, 52, .08);
  --grid-line: rgba(0, 0, 0, .035);
  --grain-op: .55;
  transition: --ambiance 1.2s ease;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --amb-strength: 34%; --amb-blue: rgba(57, 135, 229, .20); --amb-warm: rgba(217, 89, 38, .13); --grid-line: rgba(255, 255, 255, .035); --grain-op: 1; }
}
:root[data-theme="dark"] { --amb-strength: 34%; --amb-blue: rgba(57, 135, 229, .20); --amb-warm: rgba(217, 89, 38, .13); --grid-line: rgba(255, 255, 255, .035); --grain-op: 1; }
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 24% 30%, color-mix(in srgb, var(--ambiance) var(--amb-strength), transparent), transparent 70%),
    radial-gradient(48vmax 48vmax at 78% 70%, var(--amb-blue), transparent 70%),
    radial-gradient(34vmax 34vmax at 62% 16%, var(--amb-warm), transparent 70%);
  animation: amb-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-op);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 180px 180px, 72px 72px, 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 85%);
}
@keyframes amb-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(5vmax, -4vmax, 0) rotate(7deg) scale(1.04); }
  100% { transform: translate3d(-4vmax, 5vmax, 0) rotate(-6deg) scale(1.08); }
}

/* Changement de thème en douceur */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

/* ---------- Transitions entre pages (View Transitions) ---------- */
.site-header { view-transition-name: site-header; }
.ph-model { view-transition-name: photo-voiture; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(photo-voiture) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(photo-voiture), ::view-transition-new(photo-voiture) { height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Apparition au défilement ---------- */
.js-reveal .rv:not(.in) { opacity: 0; }
.js-reveal .rv.in { animation: rv-in .45s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) backwards; }
@keyframes rv-in { from { opacity: 0; translate: 0 14px; } }


body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.empty { padding: 48px 0; color: var(--text-2); text-align: center; }
.loading { padding: 120px 0; text-align: center; color: var(--text-3); font-family: var(--display); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.title-caps { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.txt-crit { color: var(--critique); }
.trend-hausse { color: var(--good-ink); }
.trend-baisse { color: var(--critique); }
.trend-stable { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 13, 15, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink-text);
  border-bottom: 1px solid var(--ink-border);
}
.racing-stripe { display: flex; height: 3px; }
.racing-stripe i { flex: 1; background: var(--accent); }
.racing-stripe i:nth-child(2) { flex: .35; background: #fff; }
.racing-stripe i:nth-child(3) { flex: .2; background: #1f4fb8; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 3px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); transition: filter .3s; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 6px var(--accent)); }
.brand-text { font: 600 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.brand-text b { font-weight: 800; color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  text-decoration: none; color: var(--ink-text-2); padding: 8px 12px; border-radius: 8px;
  font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
}
.header-nav a:hover, .header-nav a.on { color: var(--ink-text); background: rgba(255, 255, 255, .06); }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px;
  background: none; border: 1px solid var(--ink-border); border-radius: 50%; color: var(--ink-text-2);
}
.theme-toggle:hover { color: var(--ink-text); border-color: var(--ink-text-3); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- Bandeaux sombres (hero) ---------- */
.hero, .model-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 75% 10%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, #0b0c0e 0%, #14161a 100%);
  color: var(--ink-text);
}
.hero-road {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 60%;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), rgba(255, 255, 255, .22) calc(50% - 3px), rgba(255, 255, 255, .22) calc(50% + 3px), transparent calc(50% + 3px)) 0 0 / 100% 80px,
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .05) 119px 120px),
    repeating-linear-gradient(180deg, transparent 0 59px, rgba(255, 255, 255, .04) 59px 60px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom center;
  animation: road 2.4s linear infinite;
  pointer-events: none;
}
@keyframes road { to { background-position: 0 80px, 0 0, 0 60px; } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 24px; }
.hero h1 {
  font: 800 clamp(42px, 6.4vw, 82px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  margin-bottom: 18px;
}
.hero h1 .hl { color: transparent; -webkit-text-stroke: 1.5px var(--ink-text); font-style: italic; }
.hero-lede { color: var(--ink-text-2); font-size: 18px; max-width: 520px; }
.hero-art { position: relative; }
.hero-glow {
  position: absolute; inset: 10% -10% -5%;
  background: radial-gradient(ellipse 55% 45% at 50% 70%, color-mix(in srgb, var(--teinte) 55%, transparent), transparent 70%);
  filter: blur(10px);
}

/* Photos (Wikimedia Commons, créditées) */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 90%, color-mix(in srgb, var(--teinte, #888) 45%, transparent), transparent 72%),
    linear-gradient(180deg, #1b1d21, #0e0f12);
}
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-name { display: none; }
.ph-whole img:not(.ph-bg) { position: relative; object-fit: contain; }
.ph-whole .ph-bg { position: absolute; inset: 0; transform: scale(1.15); filter: blur(24px) brightness(.6) saturate(1.1); }
.ph-fail img { display: none; }
.ph-fail .ph-name {
  display: grid; place-items: center; position: absolute; inset: 0;
  font: 800 48px/1 var(--display); text-transform: uppercase; color: rgba(255, 255, 255, .14);
}
.ph figcaption { position: absolute; right: 8px; bottom: 7px; z-index: 2; max-width: calc(100% - 16px); }
.ph-fail figcaption { display: none; }
.credit {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
  font: 500 10.5px/1.5 var(--font); color: rgba(255, 255, 255, .82); text-decoration: none;
  background: rgba(0, 0, 0, .5); padding: 1px 7px; border-radius: 5px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
a.credit:hover { color: #fff; text-decoration: underline; }
.ph-hero, .ph-model {
  aspect-ratio: 16 / 10; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .8);
  animation: photo-in 1s cubic-bezier(.2, .8, .2, 1) both;
}
.ph-hero::after, .ph-model::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -80px 90px -60px rgba(0, 0, 0, .7);
}
@keyframes photo-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.featured-tag {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-text); text-decoration: none;
}
.featured-tag span { color: var(--accent-ink); font-size: 12px; letter-spacing: .18em; padding: 4px 8px; border: 1px solid currentColor; border-radius: 5px; }
.featured-tag:hover { color: #fff; }

/* Plaque d'immatriculation = recherche */
.plate {
  display: flex; align-items: stretch; max-width: 520px; height: 60px; margin-top: 26px;
  background: #fbfbf8; color: #111; border: 2.5px solid #111; border-radius: 9px;
  box-shadow: 0 0 0 2px #fbfbf8, 0 12px 30px rgba(0, 0, 0, .45); cursor: text;
}
.plate-eu, .plate-side {
  flex: 0 0 42px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: #0b3fa8; color: #fff; padding-bottom: 7px; font: 700 18px/1 var(--display);
}
.plate-eu { border-radius: 6px 0 0 6px; }
.plate-side { border-radius: 0 6px 6px 0; justify-content: center; padding: 0; }
.plate-side .ico { width: 20px; height: 20px; }
.plate-stars { color: #ffd200; font-size: 15px; margin-bottom: auto; padding-top: 6px; }
.plate input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 14px;
  font: 700 28px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #111;
}
.plate input::placeholder { color: #a3a39c; letter-spacing: .06em; }
.plate input::-webkit-search-cancel-button { filter: grayscale(1); }
.plate:focus-within { box-shadow: 0 0 0 2px #fbfbf8, 0 0 0 5px var(--accent), 0 12px 30px rgba(0, 0, 0, .45); }

.brand-select { display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 520px; }
.brand-select .eb-label { color: var(--ink-text-3); }
.brand-select .select-wrap { flex: 1; }
.select-dark select { width: 100%; min-width: 0; background: rgba(255, 255, 255, .06); color: var(--ink-text); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.select-dark select option, .select-dark select optgroup { background: #17191c; color: #f3f4f6; }
.select-dark::after { border-color: var(--ink-text-2); }
.hero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--ink-text); }
.hero .chip:hover { border-color: rgba(255, 255, 255, .4); }
.hero .chip.on { background: var(--ink-text); color: var(--ink-bg); border-color: var(--ink-text); }

.stats-band { position: relative; background: linear-gradient(180deg, rgba(14, 15, 18, .85), #0e0f12); }
.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 0; padding: 22px 0 30px;
  border-top: 1px solid var(--ink-border);
}
.stats div { padding: 0 20px; border-left: 1px solid var(--ink-border); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-text-3); }
.stats dd { margin: 6px 0 0; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats dd.crit { color: #ff5a4f; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 7px 14px;
  font: 600 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--text-3); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.fuel {
  display: inline-block; font: 700 10px/1 var(--font); letter-spacing: .06em; padding: 3px 5px; border-radius: 4px;
  border: 1px solid currentColor; opacity: .75;
}
.fuel-Diesel { border-style: dashed; }

/* ---------- Catalogue ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 44px 0 18px; }
.list-head p { margin: 0; font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin: -4px 0 20px; }
.budget-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.budget-chips .eb-label { margin-right: 4px; }
.sort-field { display: flex; align-items: center; gap: 10px; }
.select-small select { min-width: 210px; height: 40px; font-size: 16px; }
.card-price {
  position: absolute; z-index: 2; left: 14px; bottom: 12px; font: 800 18px/1 var(--display); letter-spacing: .03em; color: #fff;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 10px; border-radius: 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-variant-numeric: tabular-nums;
}
.ph-card figcaption { max-width: 52%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teinte) 60%, var(--border));
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--teinte) 45%, transparent);
}
.card-stage {
  position: relative; height: 200px; overflow: hidden; background: #0e0f12;
}
.ph-card { position: absolute; inset: 0; }
.ph-card img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .ph-card img { transform: scale(1.05); }
.ph-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 35%, transparent 70%, rgba(0, 0, 0, .35)); pointer-events: none; }
.card-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--teinte) 70%, transparent), transparent);
}
.card-years {
  position: absolute; z-index: 2; top: 14px; right: 14px; font: 700 13px/1 var(--display); letter-spacing: .12em;
  color: #fff; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 9px; border-radius: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-body { padding: 18px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.card-brand { margin: 0 0 2px; font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.card-brand span { letter-spacing: .08em; font-weight: 600; }
.card-title { font: 800 34px/1 var(--display); text-transform: uppercase; margin: 6px 0 16px; }
.card-title small { font-size: 20px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.card-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card-specs > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.card-specs > div + div { padding-left: 12px; border-left: 1px solid var(--border); }
.spec-label { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.spec-val { font: 700 19px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-val small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.spec-trend { display: inline-flex; align-items: center; gap: 6px; }
.spec-trend b { font: 700 18px/1 var(--display); }
.spark { width: 64px; height: 22px; }
.spark path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: currentColor; }
.card-alerts { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: auto; font-size: 14px; color: var(--text-2); }
.alerts-icons { display: flex; gap: 4px; }
.alerts-icons .telltale { width: 28px; height: 28px; }
.alerts-icons .telltale .ico { width: 16px; height: 16px; }

/* Note de fiabilité en segments */
.meter { display: inline-flex; align-items: center; gap: 3px; }
.meter i { width: 9px; height: 12px; border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.meter i.on { background: var(--lvl); box-shadow: none; }
.meter i.half { background: linear-gradient(90deg, var(--lvl) 50%, var(--surface-2) 50%); }
.meter b { margin-left: 6px; font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.meter-good { --lvl: var(--good); }
.meter-warn { --lvl: var(--mineur); }
.meter-bad { --lvl: var(--critique); }

/* Voyants */
.telltale {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, #23262b, #0d0e10); border: 1px solid #2b2f35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.telltale .ico { width: 24px; height: 24px; }
.tt-critique { color: #ff4a3d; }
.tt-majeur { color: #ff9a5c; }
.tt-mineur { color: #ffc23a; }
.telltale .ico { filter: drop-shadow(0 0 4px currentColor); }

/* ---------- Fiche modèle : bandeau ---------- */
.model-hero { padding-bottom: 80px; }
.model-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 380px at 80% 75%, color-mix(in srgb, var(--teinte) 30%, transparent), transparent 70%);
  pointer-events: none;
  animation: glow-breathe 7s ease-in-out infinite alternate;
}
@keyframes glow-breathe { from { opacity: .65; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.crumbs { position: relative; padding: 22px 0 0; font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-text-3); }
.crumbs a { color: var(--ink-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink-text); }
.mh-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 26px; }
.mh-copy h1 { font: 800 clamp(56px, 8vw, 104px)/.9 var(--display); text-transform: uppercase; margin: 0; }
.mh-gen { display: block; font-size: .38em; font-weight: 600; letter-spacing: .04em; color: var(--ink-text-2); margin-top: 6px; }
.mh-years {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 18px;
  font: 700 18px/1 var(--display); letter-spacing: .2em; color: var(--ink-text);
}
.mh-years::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--teinte); }
.mh-lede { color: var(--ink-text-2); font-size: 17px; max-width: 58ch; }
.model-hero .tag { background: rgba(255, 255, 255, .07); color: var(--ink-text-2); border-color: rgba(255, 255, 255, .1); }
.mh-art { position: relative; }

/* Tableau de bord */
.cluster {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0;
  background: linear-gradient(180deg, #1a1c20, #0f1013);
  border: 1px solid var(--ink-border); border-radius: 24px; color: var(--ink-text);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.cl-gauge { padding: 18px 20px 6px; border-right: 1px solid var(--ink-border); display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .05), transparent 65%); }
.gauge { width: 100%; max-width: 220px; }
.g-track { fill: none; stroke: #262a30; stroke-width: 10; stroke-linecap: round; }
.g-red { fill: none; stroke: rgba(208, 59, 59, .28); stroke-width: 10; }
.g-val { fill: none; stroke: var(--lvl); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--lvl)); }
.gauge-good { --lvl: var(--good); }
.gauge-warn { --lvl: var(--mineur); }
.gauge-bad { --lvl: var(--critique); }
.tick { stroke: #4a4f57; stroke-width: 1.5; }
.tick-major { stroke: #c9cdd3; stroke-width: 2.5; }
.tick-num { fill: #9aa0a9; font: 700 14px var(--display); }
.g-needle { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(232, 35, 27, .8)); }
.g-hub { fill: #0c0d0f; stroke: #3a3f46; stroke-width: 2; }
.g-value { fill: var(--ink-text); font: 800 40px var(--display); }
.g-max { fill: var(--ink-text-3); font-size: 22px; font-weight: 700; }
.g-label { fill: var(--ink-text-3); font: 700 12px var(--display); letter-spacing: .2em; text-transform: uppercase; }
.cl-readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.readout { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; border-left: 1px solid var(--ink-border); }
.readout:first-child { border-left: 0; }
.ro-label { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-text-3); }
.ro-value { font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.ro-value[class*="trend-"] { font-size: 32px; white-space: nowrap; }
.ro-sub { font-size: 13.5px; color: var(--ink-text-2); }
.cluster .trend-hausse { color: #3ccf3c; }
.cluster .trend-baisse { color: #ff5a4f; }
.cluster .trend-stable { color: var(--ink-text); }
.cluster .txt-crit { color: #ff5a4f; }

/* Lignée des générations */
.lineage { margin-top: 22px; }
.lin-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 14px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lin-title b { color: var(--text); letter-spacing: .06em; }
.lin-track { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.lin-track li { flex: 0 0 auto; display: flex; align-items: stretch; }
.lin-track li + li::before { content: "→"; align-self: center; margin-right: 10px; color: var(--text-3); font-weight: 700; }
.lin-item {
  display: flex; align-items: center; gap: 12px; width: 280px; padding: 8px 14px 8px 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
a.lin-item:hover { border-color: var(--text-3); transform: translateY(-2px); }
.lin-item.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.ph-lin { width: 86px; height: 60px; border-radius: 10px; flex-shrink: 0; }
.ph-lin figcaption, .ph-lin .ph-name { display: none !important; }
.lin-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lin-body > b { font: 700 18px/1.1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lin-body > b small { font-size: 14px; color: var(--text-2); font-weight: 600; }
.lin-years { font: 600 12px/1 var(--display); letter-spacing: .12em; color: var(--text-3); }
.lin-meta { display: flex; align-items: center; gap: 10px; }
.lin-meta .meter i { width: 7px; height: 10px; }
.lin-meta .meter b { font-size: 14px; }
.lin-price { font: 700 14px/1 var(--display); color: var(--text-2); white-space: nowrap; }
.lin-here { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

/* Recherche par panne */
.pn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pn-hits { margin: 32px 0 0; }
.pn-hits-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pn-hits-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.pn-list { display: flex; flex-direction: column; gap: 8px; }
.pn-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 16px 12px 20px; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.pn-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pn-row:hover { border-color: var(--text-3); transform: translateY(-1px); }
.pn-row .telltale { width: 38px; height: 38px; }
.pn-row .telltale .ico { width: 20px; height: 20px; }
.pn-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pn-main b { font: 700 18px/1.15 var(--display); }
.pn-model { font-size: 13px; color: var(--text-2); }
.pn-model small { color: var(--text-3); }
.pn-cost { font: 800 18px/1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-hero .pn-plate { max-width: 620px; }
.pn-filters { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 8px; }
.pn-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-cat {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 600 15px/1.1 var(--display); text-align: left;
}
.pn-cat:first-child { padding: 10px 16px; }
.pn-cat .telltale { width: 32px; height: 32px; border-radius: 9px; }
.pn-cat .telltale .ico { width: 18px; height: 18px; }
.pn-cat span { display: flex; flex-direction: column; }
.pn-cat small { font: 500 12px/1 var(--font); color: var(--text-3); margin-top: 2px; }
.pn-cat.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pn-gravs { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-count { font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 10px 0 12px; }
.problem { scroll-margin-top: 130px; }
.problem.pn-target { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* Barre moteur collante */
.engine-bar {
  position: sticky; top: var(--header-h); z-index: 10; margin-top: 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); border-top: 1px solid var(--border);
}
.engine-bar-inner { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.eb-field { display: flex; align-items: center; gap: 12px; }
.eb-label { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg);
}
.select-wrap select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  min-width: 320px; max-width: 100%; height: 46px; padding: 0 44px 0 16px;
  font: 700 18px/1 var(--display); letter-spacing: .02em; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  transition: border-color .15s;
}
.select-wrap select:hover { border-color: var(--text-3); }
.select-wrap select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.select-wrap select option, .select-wrap select optgroup { font: 500 15px var(--font); }
.eb-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.eb-code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 3px 8px; border-radius: 5px; color: var(--text); }
.eb-count { font-weight: 600; color: var(--text); }
.eb-hint { color: var(--text-3); }

.toc { display: flex; gap: 4px; overflow-x: auto; padding: 18px 0 0; scrollbar-width: none; }
.toc button {
  display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap;
  background: none; border: 0; padding: 8px 12px; border-radius: 8px; color: var(--text-2);
  font: 600 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.toc button span { color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.toc button:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 48px 0 8px; }
.sec-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.sec-num {
  font: 800 76px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--text-3);
  font-style: italic; letter-spacing: -.02em;
}
.sec-head h2 { font: 800 36px/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.sec-head p { margin: 0; color: var(--text-2); }
h3.sub { font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin: 40px 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font-size: 12.5px; line-height: 1.4; padding: 2px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid transparent;
}
.tag-ghost { background: none; border-color: var(--border); }
.tag-boite { background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--text); }

/* Verdict */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.v-col::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.v-plus::before { background: var(--good); }
.v-minus::before { background: var(--critique); }
.v-col h3 { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.v-col h3 .ico { padding: 4px; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.v-plus h3 .ico { background: var(--good); }
.v-minus h3 .ico { background: var(--critique); }
.v-col ul { list-style: none; padding: 0; }
.v-col li { padding: 9px 0; border-top: 1px solid var(--border); }
.v-col li:first-child { border-top: 0; }

/* Moteurs */
.engines { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.engine {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, opacity .2s;
}
.engine:hover { transform: translateY(-2px); border-color: var(--text-3); }
.engine.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.engine.dim { opacity: .45; }
.en-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.en-code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 2px 7px; border-radius: 5px; }
.en-name { font: 700 23px/1.1 var(--display); margin-top: 6px; }
.en-power { font: 800 30px/1 var(--display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.en-meta { font-size: 13px; color: var(--text-3); }
.en-relia { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.en-avis { font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* Problèmes */
.sev-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sev-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 99px; font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--border); }
.sev-pill b { font-size: 20px; font-weight: 800; }
.sp-critique b { color: var(--critique); }
.sp-majeur b { color: var(--majeur); }
.sp-mineur b { color: #c98500; }
.sev { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.sev-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.sev-critique { --c: var(--critique); }
.sev-majeur { --c: var(--majeur); }
.sev-mineur { --c: var(--mineur); }

.problems { display: flex; flex-direction: column; gap: 12px; }
.problem {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.problem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pb-critique { --c: var(--critique); }
.pb-majeur { --c: var(--majeur); }
.pb-mineur { --c: var(--mineur); }
.problem summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 24px;
  gap: 18px; align-items: center; padding: 18px 20px 18px 24px;
}
.problem summary::-webkit-details-marker { display: none; }
.problem summary:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.p-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.problem h3 { font: 700 22px/1.15 var(--display); margin: 6px 0 8px; }
.p-cost { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.p-cost strong { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-chevron { width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; justify-self: center; margin-top: -6px; }
.problem[open] .p-chevron { transform: rotate(-135deg); margin-top: 4px; }
.p-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 6px 24px 24px 24px; }
.p-body h4 { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 8px; }
.p-body p, .p-body li { color: var(--text-2); }
.p-body li { padding: 2px 0; }
.p-check { background: var(--surface-2); border-radius: 12px; padding: 4px 20px 18px; margin-top: 12px; }
.p-check h4:first-child { color: var(--good-ink); }
.p-check ul { list-style: none; padding: 0; }
.p-check li { position: relative; padding: 5px 0 5px 24px; }
.p-check li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px;
  border-left: 2px solid var(--good-ink); border-bottom: 2px solid var(--good-ink); transform: rotate(-45deg);
}

/* Ordinateur de bord */
.trip {
  background: linear-gradient(180deg, #1a1c20, #0f1013); color: var(--ink-text);
  border: 1px solid var(--ink-border); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.trip-controls { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 22px; padding: 20px 24px; border-bottom: 1px solid var(--ink-border); align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-text-3); }
.field select {
  font: 600 16px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-text);
  background: var(--ink-surface-2); border: 1px solid var(--ink-border); border-radius: 10px; padding: 11px 12px; height: 44px;
}
.field select:disabled { opacity: .6; }
.field output { color: var(--ink-text); font-size: 16px; letter-spacing: .04em; margin-left: auto; }
.field-km { flex-direction: row; flex-wrap: wrap; align-items: center; }
.trip-controls:not(:has(.seg)) { grid-template-columns: 1fr 1.4fr; }
.field-km input { flex-basis: 100%; }
.seg { display: inline-flex; background: var(--ink-surface-2); border: 1px solid var(--ink-border); border-radius: 10px; padding: 3px; height: 44px; }
.seg button { border: 0; background: none; color: var(--ink-text-2); padding: 0 14px; border-radius: 7px; font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.seg button.on { background: var(--ink-text); color: var(--ink-bg); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 44px; background: none; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 50%), #2c3036 var(--pct, 50%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #2c3036; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(232, 35, 27, .2);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.trip-screen { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.trip-total { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-right: 1px solid var(--ink-border); background: radial-gradient(circle at 30% 40%, rgba(127, 212, 255, .07), transparent 70%); }
.lcd { font: 800 46px/1 var(--display); color: #8fdcff; text-shadow: 0 0 18px rgba(127, 212, 255, .45); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.trip-split { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-text-2); }
.trip-split span { display: flex; align-items: center; gap: 8px; }
.trip-split b { color: var(--ink-text); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
.trip-note { font-size: 12.5px; color: var(--ink-text-3); }
.trip-top { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 210px) 1fr 74px; gap: 12px; align-items: center; font-size: 14px; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-text-2); }
.bar-track { height: 8px; background: #23262b; border-radius: 4px; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--ink-s1); }
.bar-fill.use { background: var(--ink-s2); }
.bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.sw-ent { background: var(--ink-s1); }
.sw-use { background: var(--ink-s2); }

/* Carnet d'entretien */
.logbook { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 128px 74px minmax(0, 1fr) 140px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); }
.lb-row:first-child { border-top: 0; }
.odo {
  display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; padding: 6px 10px; border-radius: 8px;
  background: #0f1013; color: #8a9099; font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); border: 1px solid #2b2f35;
}
.odo b { color: #f3f4f6; font-size: 19px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.lb-years { font-size: 13px; color: var(--text-3); }
.lb-name { font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 5px; font-weight: 400; }
.lb-tags:empty { display: none; }
.lb-note { font-size: 13px; font-weight: 400; color: var(--text-3); }
.lb-cost { text-align: right; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pièces d'usure */
.wear { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px 12px; }
.wear-scale, .wear-row { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 130px; gap: 18px; align-items: center; }
.wear-scale { height: 30px; }
.ws-axis { position: relative; height: 100%; }
.ws-axis i { position: absolute; bottom: 4px; transform: translateX(-50%); font: 600 12px/1 var(--display); font-style: normal; letter-spacing: .08em; color: var(--text-3); }
.wear-row { padding: 12px 0; border-top: 1px solid var(--border); }
.wr-name { font-weight: 600; }
.wr-track { position: relative; height: 34px; }
.wr-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.wr-bar {
  position: absolute; top: 6px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--s2) 55%, transparent), var(--s2));
}
.wr-km { position: absolute; top: 20px; font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-cost { text-align: right; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cote */
.cote-intro { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.cote-intro p { margin: 0; color: var(--text-2); max-width: 75ch; }
.trend-badge {
  flex-shrink: 0; font: 800 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
}
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-head p { margin: 0; }
.link-btn { background: none; border: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 0; }
.link-btn:hover { color: var(--text); }
.chart { position: relative; margin-top: 10px; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font: 600 12px var(--display); letter-spacing: .04em; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .line.s1 { stroke: var(--s1); }
.stop-s1 { stop-color: var(--s1); }
.chart .dot.s1, .sw.s1 { fill: var(--s1); background: var(--s1); }
.chart .line.s2 { stroke: var(--s2); }
.stop-s2 { stop-color: var(--s2); }
.chart .dot.s2, .sw.s2 { fill: var(--s2); background: var(--s2); }
.chart .line.s3 { stroke: var(--s3); }
.stop-s3 { stop-color: var(--s3); }
.chart .dot.s3, .sw.s3 { fill: var(--s3); background: var(--s3); }
.chart .line.s4 { stroke: var(--s4); }
.stop-s4 { stop-color: var(--s4); }
.chart .dot.s4, .sw.s4 { fill: var(--s4); background: var(--s4); }
.chart .line.s5 { stroke: var(--s5); }
.stop-s5 { stop-color: var(--s5); }
.chart .dot.s5, .sw.s5 { fill: var(--s5); background: var(--s5); }
.chart .line.s6 { stroke: var(--s6); }
.stop-s6 { stop-color: var(--s6); }
.chart .dot.s6, .sw.s6 { fill: var(--s6); background: var(--s6); }
.chart .line.s7 { stroke: var(--s7); }
.stop-s7 { stop-color: var(--s7); }
.chart .dot.s7, .sw.s7 { fill: var(--s7); background: var(--s7); }
.chart .line.s8 { stroke: var(--s8); }
.stop-s8 { stop-color: var(--s8); }
.chart .dot.s8, .sw.s8 { fill: var(--s8); background: var(--s8); }
.chart .end-label { fill: var(--text-2); font: 600 13px var(--display); letter-spacing: .02em; }
.chart .end-value { fill: var(--text); font: 800 16px var(--display); font-variant-numeric: tabular-nums; }
.chart .line.est { stroke-dasharray: 2 6; stroke-width: 2.5; opacity: .75; }
.chart .rel-dot { fill: var(--surface); stroke-width: 2.5; }
.chart .rel-dot.s1 { stroke: var(--s1); }
.chart .rel-dot.s2 { stroke: var(--s2); }
.chart .rel-dot.s3 { stroke: var(--s3); }
.chart .rel-dot.s4 { stroke: var(--s4); }
.chart .rel-dot.s5 { stroke: var(--s5); }
.chart .rel-dot.s6 { stroke: var(--s6); }
.chart .rel-dot.s7 { stroke: var(--s7); }
.chart .rel-dot.s8 { stroke: var(--s8); }
.tip-rel { font-size: 11.5px; color: #8fdcff !important; margin-top: 2px !important; padding-left: 18px; }
.leg-solid, .leg-dash { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--text-2); vertical-align: middle; margin: 0 4px 0 8px; }
.leg-dash { border-top-style: dotted; }
.data-badge { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--text); background: color-mix(in srgb, var(--good) 10%, transparent); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.data-badge .ico { color: var(--good-ink); margin-top: 2px; }
.data-badge-off { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.data-badge-off .ico { color: var(--text-3); }
.rel-history { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.rel-history summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.chart .crosshair { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.tooltip {
  position: absolute; background: #121315; color: #f3f4f6; border: 1px solid #2b2f35; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); pointer-events: none; min-width: 200px;
}
.tooltip strong { font: 800 16px/1 var(--display); letter-spacing: .06em; }
.tooltip div { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #b3b8c1; }
.tooltip b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.series-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  font: 600 14px/1.2 var(--font); color: var(--text-3); background: none; border: 1px dashed var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.sp-chip .sw { opacity: .35; }
.sp-chip:hover { color: var(--text); border-color: var(--text-3); }
.sp-chip.on { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.sp-chip.on .sw { opacity: 1; }
.sp-actions { display: inline-flex; gap: 14px; margin-left: 6px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.factors { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.factors li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--text-2); font-size: 15px; border-left: 3px solid var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th.num { text-align: right; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }

/* Check-list */
.inspect { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inspect-head { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.inspect-count { font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.inspect-count b { font-size: 22px; color: var(--text); }
.inspect-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.inspect-bar span { display: block; height: 100%; background: var(--good); border-radius: 4px; transition: width .3s; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: flex; gap: 14px; padding: 14px 20px; cursor: pointer; align-items: flex-start; }
.checklist label:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.cb { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--text-3); color: transparent; transition: all .15s; }
.cb .ico { width: 16px; height: 16px; stroke-width: 3; }
.checklist input:checked + .cb { background: var(--good); border-color: var(--good); color: #fff; }
.checklist input:focus-visible + .cb { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-text { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.checklist input:checked ~ .cl-text { color: var(--text-3); text-decoration: line-through; }
.cl-from { font-size: 12.5px; color: var(--critique); text-decoration: none; display: inline-block; }
.cl-from::before { content: "Point critique · "; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #c81a12; border-color: #c81a12; }
.btn-ghost { background: none; }
.btn-ghost-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--ink-text); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, .4); }
.btn-small { padding: 8px 12px; font-size: 13px; }
.mh-follow { margin-top: 22px; }

/* ---------- Ma voiture ---------- */
.g-hero { background: linear-gradient(180deg, #0b0c0e, #14161a); color: var(--ink-text); padding: 44px 0 36px; }
.g-hero h1 { font: 800 clamp(38px, 5.5vw, 64px)/.95 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.g-lede { color: var(--ink-text-2); font-size: 17px; max-width: 70ch; margin: 0; }
.g-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 22px 0 4px; scrollbar-width: none; }
.g-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.g-tab.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.g-tab span { display: flex; flex-direction: column; gap: 2px; }
.g-tab b { font: 700 16px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.g-tab small { font-size: 12px; color: var(--text-3); }
.ph-tab { width: 64px; height: 42px; border-radius: 9px; }
.ph-tab figcaption, .ph-tab .ph-name { display: none !important; }
.g-add { padding: 12px 16px; color: var(--text-2); border-style: dashed; box-shadow: none; }
.g-add .ico { width: 18px; height: 18px; }

.g-form { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.g-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; }
.g-field { display: flex; flex-direction: column; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.g-wide { grid-column: span 2; }
.g-label { display: block; }
.g-field input, .g-field select, .g-done input, .g-done select, .g-km input {
  font: 500 16px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; height: 46px; width: 100%; min-width: 0;
}
.g-field input:focus, .g-field select:focus, .g-done input:focus, .g-done select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.g-static { font: 600 16px/46px var(--font); color: var(--text); text-transform: none; letter-spacing: 0; }
.g-error { color: var(--critique); font-weight: 600; margin: 12px 0 0; min-height: 0; }
.g-error:empty { display: none; }
.g-banner { padding: 12px 16px; border: 1px solid var(--critique); border-radius: 10px; margin-top: 18px; }
.g-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.g-storage { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin: 18px 0 0; }
.g-storage .ico { color: var(--good-ink); }
.g-storage code { font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

.g-car-hero h1 { font: 800 clamp(44px, 6.5vw, 84px)/.92 var(--display); text-transform: uppercase; margin: 0; }
.g-km { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.g-km label { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-text-3); }
.g-km input { width: 140px; background: #0f1013; color: #fff; border-color: var(--ink-border); font: 700 22px/1 var(--display); letter-spacing: .06em; text-align: right; }
.g-km-note { color: var(--ink-text-3); font-size: 13px; margin: 10px 0 0; }
.g-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.g-readouts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-cluster { grid-template-columns: 1fr; }

.g-list { display: flex; flex-direction: column; gap: 8px; }
.g-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px auto; gap: 8px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 12px; padding: 14px 18px;
}
.st-retard-row { border-left-color: var(--critique); }
.st-bientot-row { border-left-color: var(--mineur); }
.st-inconnu-row { border-left-color: var(--text-3); }
.st-ok-row { border-left-color: var(--good); }
.st { display: inline-flex; align-items: center; gap: 7px; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.st i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.st-retard { --c: var(--critique); }
.st-bientot { --c: var(--mineur); }
.st-inconnu { --c: var(--text-3); }
.st-ok { --c: var(--good); }
.g-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-main b { font-weight: 600; }
.g-when { font-size: 14px; color: var(--text-2); }
.g-when b { color: var(--text); font-variant-numeric: tabular-nums; }
.g-meta { font-size: 12.5px; color: var(--text-3); }
.g-cost { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.g-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-2); margin: 4px 0 2px; max-width: 420px; }
.g-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--good), var(--mineur) 70%, var(--critique)); }
.g-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-3); }
.g-done { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; margin-top: 6px; background: var(--surface-2); border-radius: 10px; }
.g-done label { display: flex; flex-direction: column; gap: 6px; font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.g-done .g-actions { grid-column: 1 / -1; margin-top: 4px; }
.g-done .g-error { grid-column: 1 / -1; margin: 0; }
.g-done-title { grid-column: 1 / -1; margin: 0; font: 700 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }

.g-watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.g-wcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px 22px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.g-wcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.g-wcard header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.g-wcard h3 { font: 700 19px/1.15 var(--display); margin: 6px 0; }
.g-wstatus { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.g-wcard details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.g-wcard details ul { margin: 8px 0; color: var(--text-2); font-size: 14px; }
.g-wcard details p { color: var(--text-2); font-size: 14px; margin: 6px 0; }
.g-wcard footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.g-wbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.g-dim { opacity: .55; }

.g-log { display: flex; flex-direction: column; gap: 12px; }
.g-log .g-row { grid-template-columns: 1fr; border-left-color: var(--accent); }
.g-log .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.g-backup { margin-top: 48px; }
.g-backup .g-storage { margin: 0; }

.owner-title { display: flex; align-items: center; gap: 8px; }
.owner-title .ico { color: var(--good-ink); }
.owner-empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px;
  border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-2);
}
.owner-empty > .ico { width: 26px; height: 26px; color: var(--accent-ink); }
.owner-empty p { margin: 4px 0 0; font-size: 14px; }
.owner-empty b { color: var(--text); }
.owner-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.owner-note { margin-top: 8px; }
.owner-note a { color: var(--text-2); }
.txt-warn { color: #c98500; }
.owner-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2);
}
.owner-pill .ico { width: 14px; height: 14px; color: var(--good-ink); }
.owner-pill.yes { color: var(--text); background: color-mix(in srgb, var(--critique) 12%, transparent); }
.owner-pill.yes .ico { color: var(--critique); }
.owner-pill.none { font-weight: 500; color: var(--text-3); background: none; border: 1px dashed var(--border); }

.expert {
  position: relative; margin-top: 28px; padding: 24px 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.expert blockquote { margin: 0; font: 600 21px/1.4 var(--font); }
.expert-tips { margin: 14px 0 0; color: var(--text-2); }
.expert-who { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.expert-who b { color: var(--text); }
.expert-who span { color: var(--text-3); }

.g-share { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.g-share.on { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.g-share.off { box-shadow: none; border-style: dashed; }
.g-share-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.g-share-head > .ico { width: 26px; height: 26px; color: var(--accent-ink); }
.g-share.on .g-share-head > .ico { color: var(--good-ink); }
.g-share-head p { margin: 3px 0 0; font-size: 14px; color: var(--text-2); }
.g-share-details { margin-top: 12px; }
.g-share-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.g-share-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; font-size: 14px; }
.g-share-cols ul { margin: 6px 0 0; color: var(--text-2); }
.g-shared { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--good-ink); font-weight: 600; }
.g-shared .ico { width: 13px; height: 13px; }

.method-own { display: grid; gap: 10px; }
.method-own > div { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.method-own p { margin: 6px 0 0; }

/* Sources et mise à jour */
.sources-block { margin-top: 40px; padding: 16px 20px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text-2); }
.sb-date { display: flex; align-items: center; gap: 8px; margin: 0; }
.sb-date .ico { color: var(--good-ink); }
.sb-date b { color: var(--text); }
.disclaimer { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3, var(--text-2)); }
.vz-bilan + .disclaimer { margin: 28px 0 0; }
.legal ul { color: var(--text-2); padding-left: 1.2em; }
.sources-block details { margin-top: 10px; }
.sources-block summary { cursor: pointer; font-weight: 600; color: var(--text); }
.sources-block ul { margin-top: 8px; }
.sources-block li { padding: 3px 0; }
.sources-block a { color: var(--text-2); }
.sources-block a:hover { color: var(--text); }
.sb-empty { margin: 8px 0 0; color: var(--text-3); }

/* Méthode */
.prose { max-width: 780px; padding: 56px 0 24px; }
.prose h1 { font: 800 clamp(48px, 7vw, 80px)/.95 var(--display); text-transform: uppercase; }
.prose h2 { font: 800 28px/1 var(--display); text-transform: uppercase; margin-top: 40px; }
.prose p { color: var(--text-2); }
.prose .lead { font-size: 19px; }
.method-sev { display: grid; gap: 10px; }
.method-sev > div { display: flex; gap: 16px; align-items: baseline; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.method-sev .sev { width: 100px; flex-shrink: 0; }
.method-sev p { margin: 0; }
.method-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.method-icons span { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.method-icons .telltale { color: #ffc23a; }
.credits { padding-left: 1.1em; color: var(--text-2); }
.credits li { padding: 4px 0; }
.credits a { color: var(--text); }

/* Pied de page */
.site-footer { margin-top: 80px; background: var(--ink-bg); color: var(--ink-text-3); font-size: 13px; border-top: 3px solid var(--accent); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 36px; flex-wrap: wrap; }
.site-footer .brand-text { color: var(--ink-text); font-size: 18px; }
.cmp-pickers.n3 { grid-template-columns: 1fr auto 1fr auto 1fr; margin-bottom: 36px; }
.cmp-add { grid-column: 1 / -1; justify-self: center; }
.cmp-pick { position: relative; }
.cmp-remove { position: absolute; top: 100%; left: 0; margin-top: 8px; }
.cmp-head.n3, .cmp-cols.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-col-label { width: 34%; }
.cmp-table.n3 .cmp-col-label { width: 28%; }
.cmp-table tbody th { white-space: normal; }
.cmp-table td.small { font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.3; }
.cmp-table tr.cmp-group th { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--surface-2); width: auto; }
.cmp-diff { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); cursor: pointer; }
@media (max-width: 720px) {
  .cmp-pickers.n3 { grid-template-columns: 1fr; margin-bottom: 0; }
  .cmp-remove { position: static; margin-top: 0; align-self: flex-start; }
  .cmp-head.n3 { gap: 8px; }
  .cmp-head.n3 .cmp-side { padding: 10px 8px; }
  .cmp-head.n3 .cmp-photo .sel-thumb { height: 80px; }
  .cmp-head.n3 .sel-years { display: none; }
  .cmp-col-label { width: 38%; }
  .cmp-table.n3 .cmp-col-label { width: 31%; }
  .cmp-table.n3 tbody th { font-size: 11px; letter-spacing: .02em; }
  .cmp-table.n3 td, .cmp-table.n3 td.small { font-size: 13px; }
  .cmp-table.n3 thead th { white-space: normal; font-size: 10px; letter-spacing: .02em; }
  .cmp-table.n3 th, .cmp-table.n3 td { padding: 8px 6px; }
  .cmp-cols.n3 { grid-template-columns: 1fr; }
}
/* ---------- Performances, dans les cartes moteur ---------- */
.en-perf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); text-align: left; }
.en-perf > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.en-perf small { font: 600 10.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.en-perf b { font: 700 14px/1.2 var(--display); color: var(--text); overflow-wrap: anywhere; }
.en-perf .ep-wide { grid-column: span 3; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
.perf-foot { margin-top: 12px; }
/* Accueil : bouton « Voir les autres modèles » sous les premières cartes */
.grid-more { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
/* Volets repliables de la fiche (coûts réels, carnet d'entretien, pièces d'usure) */
.fold { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.fold > summary { display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .sub { margin: 0; }
.fold-meta { font-size: 13px; color: var(--text-3); }
.fold[open] .p-chevron { transform: rotate(-135deg); margin-top: 4px; }
.fold-body { padding: 0 18px 18px; }
.fold-body > .logbook, .fold-body > :first-child { margin-top: 0; }
.fold .inspect { border: 0; box-shadow: none; background: none; border-radius: 0; }
@media (max-width: 720px) { .fold > summary { grid-template-columns: 1fr 20px; } .fold-meta { grid-column: 1; grid-row: 2; } .fold > summary .p-chevron { grid-column: 2; grid-row: 1 / span 2; } }
/* Rubriques de la fiche hors écran : ni mises en page ni dessinées tant qu'on n'y arrive pas (gros gain sur mobile) */
.model-body > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.model-body.cv-off > .section { content-visibility: visible; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--ink-text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-readouts .readout:nth-child(3) { border-left: 0; }
  .g-readouts .readout:nth-child(n+3) { border-top: 1px solid var(--ink-border); }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner, .mh-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 560px; justify-self: center; width: 100%; order: -1; }
  .mh-art { max-width: 520px; justify-self: center; width: 100%; order: -1; }
  .cluster { grid-template-columns: 1fr; }
  .cl-gauge { border-right: 0; border-bottom: 1px solid var(--ink-border); }
  .gauge { max-width: 200px; }
  .trip-controls { grid-template-columns: 1fr 1fr; }
  .field-km { grid-column: 1 / -1; }
  .trip-screen { grid-template-columns: 1fr; }
  .trip-total { border-right: 0; border-bottom: 1px solid var(--ink-border); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero-inner { padding-top: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats dd { font-size: 36px; }
  .header-nav a { padding: 8px; font-size: 14px; letter-spacing: .06em; }
  .brand-text { font-size: 17px; white-space: nowrap; }
  .header-nav a { white-space: nowrap; }
  .cl-readouts { grid-template-columns: 1fr; }
  .readout { border-left: 0; border-top: 1px solid var(--ink-border); padding: 16px 20px; }
  .readout:first-child { border-top: 0; }
  .ro-value { font-size: 34px; }
  .verdict, .p-body { grid-template-columns: 1fr; gap: 0; }
  .problem summary { grid-template-columns: auto minmax(0, 1fr) 16px; gap: 12px; padding: 16px 16px 16px 20px; }
  .p-cost { grid-column: 2 / 3; grid-row: 2; align-items: flex-start; text-align: left; flex-direction: row; align-items: baseline; gap: 10px; }
  .p-chevron { grid-column: 3; grid-row: 1; }
  .telltale { width: 38px; height: 38px; }
  .p-body { padding: 0 16px 18px 20px; }
  .sec-head { align-items: flex-start; gap: 12px; }
  .sec-num { font-size: 46px; }
  .problem summary .telltale { align-self: start; }
  .sec-head h2 { font-size: 30px; }
  .trip-controls { grid-template-columns: 1fr; padding: 18px; }
  .seg { width: 100%; }
  .eb-field { width: 100%; }
  .eb-field .eb-label { display: none; }
  .select-wrap { flex: 1; }
  .select-wrap select { min-width: 0; width: 100%; font-size: 16px; }
  .eb-hint, .eb-summary .meter, .eb-summary .eb-code { display: none; }
  .pn-row { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px 12px 18px; }
  .pn-cost { grid-column: 2; font-size: 16px; }
  .pn-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .pn-cat { flex: 0 0 auto; }
  .budget-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .sort-field { width: 100%; }
  .sort-field .select-wrap { flex: 1; }
  .select-small select { min-width: 0; width: 100%; }
  .engine-bar-inner { gap: 8px; }
  .eb-summary { gap: 10px; font-size: 13px; }
  .seg button { flex: 1; }
  .trip-total, .trip-top { padding: 18px; }
  .lcd { font-size: 38px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .lb-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; }
  .lb-row .odo { grid-row: 1; }
  .lb-years { grid-row: 1; grid-column: 2; align-self: center; }
  .lb-name { grid-column: 1 / -1; }
  .lb-cost { grid-column: 1 / -1; text-align: left; }
  .wear { padding: 6px 16px 10px; }
  .wear-scale { display: none; }
  .wear-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .wr-track { grid-column: 1 / -1; grid-row: 2; }
  .cote-intro { flex-direction: column; gap: 12px; }
  .inspect-head { flex-direction: column; align-items: stretch; gap: 10px; }
}
@media (max-width: 480px) {
  .header-nav a[href="#/methode"], .header-nav a[href="#/pannes"] { display: none; }
  .header-nav { gap: 2px; }
  .theme-toggle { margin-left: 2px; }
}
@media (max-width: 420px) {
  .brand-text { font-size: 14px; letter-spacing: .03em; }
  .brand-mark { width: 24px; height: 24px; }
  .brand { gap: 7px; }
  .header-nav a { padding: 8px 6px; font-size: 13px; letter-spacing: .04em; }
  .plate input { font-size: 22px; }
}
@media (max-width: 720px) {
  .owner-empty, .g-share-head { grid-template-columns: 1fr; }
  .g-share-cols { grid-template-columns: 1fr; }
  .expert blockquote { font-size: 18px; }
  .g-readouts { grid-template-columns: 1fr; }
  .g-readouts .readout { border-top: 1px solid var(--ink-border); }
  .g-readouts .readout:first-child { border-top: 0; }
  .g-grid, .g-done { grid-template-columns: 1fr; }
  .g-wide { grid-column: auto; }
  .g-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .g-row .st { grid-column: 1 / -1; }
  .g-row .g-main { grid-column: 1 / -1; }
  .g-row .g-cost { text-align: left; }
  .g-watch { grid-template-columns: 1fr; }
  .g-form { padding: 18px; }
  .mh-follow { white-space: normal; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Sélections, lettre du mois ---------- */
.sel-strip .list-head { padding-top: 36px; }
.sel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sel-cards-big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sel-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.sel-card:hover { border-color: var(--text-3); transform: translateY(-2px); }
.sel-card b { font: 700 19px/1.1 var(--display); text-transform: uppercase; }
.sel-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ink-surface); color: var(--mineur); }
.sel-ico .ico { width: 18px; height: 18px; }
.sel-lettre { background: var(--ink-surface); color: var(--ink-text); border-color: var(--ink-border); }
.sel-lettre .muted { color: var(--ink-text-2); }
.sel-lettre .sel-ico { background: var(--accent); color: #fff; }
.crumbs-dark { padding: 0 0 14px; }
.sel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sel-row, .lt-row {
  display: grid; grid-template-columns: 40px 120px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lt-row { grid-template-columns: 120px 1fr auto; }
.sel-rank { font: 800 28px/1 var(--display); color: var(--text-3); text-align: center; }
.sel-photo { display: block; }
.sel-thumb { display: block; width: 120px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.sel-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sel-name { font: 700 20px/1.1 var(--display); text-transform: uppercase; color: var(--text); text-decoration: none; }
.sel-name:hover { color: var(--accent-ink); }
.sel-years { font: 600 12px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.sel-note { font-size: 14px; color: var(--text-2); }
.sel-pannes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 13px; }
.sel-pannes a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sel-pannes a:hover { text-decoration: underline; }
.sel-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font: 700 17px/1 var(--display); white-space: nowrap; }
.sel-foot { margin-top: 18px; }
.lt-move { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--display); white-space: nowrap; }
.lt-move b { font-size: 24px; font-weight: 800; }
.lt-move small { font-size: 13px; color: var(--text-2); }
.lt-move.up b { color: var(--good-ink); }
.lt-move.down b { color: var(--critique); }
.lt-feature {
  display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: center; padding: 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 5px solid var(--teinte, var(--accent));
}
.lt-feature .sel-thumb { width: 100%; height: 200px; }
.lt-feature > span { display: flex; flex-direction: column; gap: 10px; }
.lt-feature b { font: 800 30px/1 var(--display); text-transform: uppercase; }
.lt-feature .lt-move { align-items: flex-start; }
.lt-subscribe { margin: 40px 0 10px; padding: 20px 22px; border: 1px dashed var(--text-3); border-radius: var(--radius); }
.lt-subscribe b { font: 700 20px/1.1 var(--display); text-transform: uppercase; }

/* ---------- Mode visite ---------- */
.mh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-actions .btn-ghost { color: var(--ink-text); border-color: rgba(255, 255, 255, .25); }
.vz-hero { padding-bottom: 30px; }
.vz-cta {
  display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; padding: 14px 18px; text-decoration: none; color: var(--ink-text);
  background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: var(--radius); font-size: 15px;
}
.vz-cta:hover { border-color: var(--accent); }
.vz-cta .ico { width: 22px; height: 22px; color: var(--good); flex: none; }
.vz-cta b { color: #fff; }
.vz { padding-bottom: 90px; }
.vz-setup {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 24px 0 8px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.vz-setup label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vz-setup .select-wrap, .vz-setup select { width: 100%; min-width: 0; }
.vz-setup input {
  height: 46px; padding: 0 14px; font: 700 18px/1 var(--display); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%;
}
.vz-setup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.vz-group { margin-top: 26px; }
.vz-ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 21px/1.15 var(--display); text-transform: uppercase; }
.vz-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vz-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 12px;
}
.vz-item.m-ok { border-left-color: var(--good); }
.vz-item.m-ko { border-left-color: var(--critique); background: color-mix(in srgb, var(--critique) 7%, var(--surface)); }
.vz-item.m-nv { border-left-color: var(--mineur); }
.vz-text { font-size: 15px; }
.vz-btns { display: flex; gap: 6px; flex: none; }
.vz-b {
  min-width: 74px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); cursor: pointer;
}
.vz-b:hover { border-color: var(--text-3); }
.vz-ok.on { background: var(--good); border-color: var(--good); color: #fff; }
.vz-ko.on { background: var(--critique); border-color: var(--critique); color: #fff; }
.vz-nv.on { background: var(--mineur); border-color: var(--mineur); color: #111; }
.vz-bilan .sec-num .ico { width: 30px; height: 30px; }
.vz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font: 600 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.vz-progress b { font-size: 24px; color: var(--text); }
.vz-block { margin-bottom: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--text-3); border-radius: var(--radius); }
.vz-block.good { border-left-color: var(--good); }
.vz-block.warn { border-left-color: var(--mineur); }
.vz-block.bad { border-left-color: var(--critique); }
.vz-nego { border-left-color: var(--accent); background: var(--ink-surface); color: var(--ink-text); border-color: var(--ink-border); }
.vz-block h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 18px/1 var(--display); text-transform: uppercase; }
.vz-block h4 .ico { width: 18px; height: 18px; }
.vz-block p { margin: 0 0 6px; }
.vz-block ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.vz-block li b { margin-left: 6px; white-space: nowrap; }
.vz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vz-float {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; padding: 12px 20px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--ink-surface); color: var(--ink-text); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.vz-float b { color: var(--good); font-size: 18px; }

@media (max-width: 720px) {
  .sel-row { grid-template-columns: 28px 84px 1fr; gap: 10px; }
  .sel-row .sel-side { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .lt-row { grid-template-columns: 84px 1fr; gap: 10px; }
  .lt-row .lt-move { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .sel-thumb { width: 84px; height: 56px; }
  .sel-rank { font-size: 20px; }
  .sel-name { font-size: 17px; }
  .lt-feature { grid-template-columns: 1fr; }
  .lt-feature .sel-thumb { height: 180px; }
  .vz-item { flex-direction: column; align-items: stretch; }
  .vz-btns { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vz-b { min-width: 0; height: 46px; }
}

/* ---------- Pages statiques (texte affiché avant l'ouverture de l'application) ---------- */
.seo-page { padding: 24px 0 48px; }
.crumbs-light { padding: 0 0 12px; color: var(--text-3); }
.crumbs-light a { color: var(--text-2); }

/* ---------- Comparateur ---------- */
.cmp-pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 22px; }
.cmp-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-pick .select-wrap, .cmp-pick select { width: 100%; min-width: 0; }
.cmp-vs { font: 800 28px/1 var(--display); text-transform: uppercase; color: var(--accent); }
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.cmp-side { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--teinte, var(--accent)); border-radius: var(--radius); box-shadow: var(--shadow); }
.cmp-side.lead { box-shadow: 0 0 0 2px var(--good), var(--shadow); }
.cmp-photo .sel-thumb { width: 100%; height: 190px; }
.cmp-score { font: 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.cmp-score b { font-size: 24px; color: var(--good-ink); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp-table thead th { font: 700 14px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.cmp-table tbody th { font-weight: 600; color: var(--text-2); width: 34%; }
.cmp-table td { font: 700 17px/1.2 var(--display); }
.cmp-table td.win { color: var(--good-ink); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-check .ico { width: 16px; height: 16px; vertical-align: -2px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.cmp-pannes, .cmp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.cmp-pannes b { white-space: nowrap; margin-left: 6px; }
.cmp-links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lin-cmp { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
.lin-cmp a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.lin-cmp .ico { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .cmp-pickers { grid-template-columns: 1fr; }
  .cmp-vs { text-align: center; }
  .cmp-photo .sel-thumb { height: 110px; }
  .cmp-table th, .cmp-table td { padding: 10px 8px; }
  .cmp-table td { font-size: 15px; }
  .cmp-cols { grid-template-columns: 1fr; }
}
.vz-install { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--ink-border); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--ink-text); font-size: 14px; }
.vz-install .ico { width: 16px; height: 16px; color: var(--mineur); vertical-align: -3px; }
.vz-install .muted { color: var(--ink-text-2); }
.vz-offline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--good); font-weight: 600; }
.vz-offline .ico { width: 16px; height: 16px; }
.cmp-table { table-layout: fixed; }
.cmp-table th, .cmp-table td, .cmp-side, .cmp-side .sel-name { overflow-wrap: anywhere; min-width: 0; }
.cmp-head > * { min-width: 0; }
@media (max-width: 720px) {
  .cmp-table thead th { font-size: 11px; letter-spacing: .04em; }
  .cmp-table tbody th { width: 38%; font-size: 13px; }
  .cmp-table td { font-size: 14px; }
  .cmp-side .sel-name { font-size: 15px; }
  .cmp-score b { font-size: 20px; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-inner { min-width: 0; flex-wrap: wrap; }

/* ---------- Galerie de la fiche (3 photos) ---------- */
.ph-strip { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ph-pick { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--ink-surface); cursor: pointer; aspect-ratio: 16 / 10; opacity: .7; transition: opacity .15s, border-color .15s; }
.ph-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-pick:hover { opacity: 1; }
.ph-pick.on { border-color: var(--accent); opacity: 1; }
