/* =========================================================================
   VOLT — feuille de style
   Site statique, thème clair par défaut, bascule clair/sombre via [data-theme]
   ========================================================================= */

/* ---------- Jetons ---------- */
:root {
  --accent: #00A874;
  --accent-strong: #007F58;
  --accent-soft: rgba(0, 168, 116, .12);
  --accent-on: #041E16;

  --bg: #F3F7F5;
  --bg-alt: #E9EFEC;
  --surface: #FFFFFF;
  --surface-2: #F7FAF9;
  --ink: #0A1A22;
  --ink-2: #27404A;
  --muted: #5C7480;
  --line: rgba(10, 26, 34, .11);
  --line-strong: rgba(10, 26, 34, .20);

  --good: #0F8A5F;
  --warn: #B4690E;

  --radius-xl: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 34, .05), 0 2px 8px rgba(10, 26, 34, .05);
  --shadow: 0 2px 4px rgba(10, 26, 34, .04), 0 14px 34px rgba(10, 26, 34, .09);
  --shadow-lg: 0 30px 70px rgba(10, 26, 34, .22);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 68px;

  /* Rendu des illustrations SVG (générateur volt.js) */
  --volt-art-shadow: rgba(10, 26, 34, .20);
  --volt-art-glow: #FFFFFF;
}

[data-theme="dark"] {
  --accent: #2FE39F;
  --accent-strong: #12B87C;
  --accent-soft: rgba(47, 227, 159, .14);
  --accent-on: #03201A;

  --bg: #050F14;
  --bg-alt: #0A1A21;
  --surface: #0C1F27;
  --surface-2: #102A33;
  --ink: #E9F4F2;
  --ink-2: #C2D8D6;
  --muted: #8FA9AF;
  --line: rgba(233, 244, 242, .12);
  --line-strong: rgba(233, 244, 242, .24);

  --good: #3BE0A4;
  --warn: #E7A652;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);

  --volt-art-shadow: rgba(0, 0, 0, .55);
  --volt-art-glow: #1E3B47;
}

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

/* L'attribut hidden doit toujours l'emporter sur les display: des composants
   (modale, bouton « afficher plus »), sinon ils restent présents et captent
   les clics de toute la page. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.06rem; font-weight: 600; }
p { margin: 0 0 .9rem; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.shell { width: min(1260px, 100% - 2.4rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-on);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0 0 .55rem;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-size: .92rem; font-weight: 600;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--solid { background: var(--accent); color: var(--accent-on); box-shadow: 0 6px 18px var(--accent-soft); }
.btn--solid:hover { background: var(--accent-strong); transform: translateY(-1px); }
[data-theme="dark"] .btn--solid:hover { background: var(--accent); filter: brightness(1.1); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.btn--sm { padding: .55rem 1rem; font-size: .84rem; }
.btn--tiny { padding: .4rem .78rem; font-size: .78rem; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: border-color .18s ease, color .18s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--ink); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ---------- Bandeau ---------- */
.announce {
  background: var(--ink); color: var(--bg);
  font-size: .8rem; letter-spacing: .01em;
}
[data-theme="dark"] .announce { background: var(--accent); color: var(--accent-on); }
.announce p { margin: 0; padding: .5rem 1.2rem; text-align: center; }
.announce__dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: .5rem; vertical-align: middle;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
[data-theme="dark"] .announce__dot { background: var(--accent-on); box-shadow: none; }
.announce__more { opacity: .72; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { color: var(--ink); display: grid; place-items: center; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; letter-spacing: .04em; }
.brand__tag {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--line-strong); padding-left: .7rem; margin-left: .1rem;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  font-size: .88rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  padding: 11px 9px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.6px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.6rem);
  background:
    radial-gradient(1000px 460px at 88% -12%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--accent-strong); position: relative; }
[data-theme="dark"] .hero h1 em { color: var(--accent); }
.hero__lead { color: var(--muted); font-size: 1.04rem; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.hero__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 1.3rem; box-shadow: var(--shadow); 
}
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0; }
.kpi { padding: .7rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.kpi dt { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kpi dd {
  margin: .25rem 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.32rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.hero__note { font-size: .74rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.2rem, 4.5vw, 3.6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.section__hint { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Filtres ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(1rem, 2vw, 1.4rem); box-shadow: var(--shadow-sm);
}
.filters__row { display: grid; gap: .9rem; }
.filters__row--top { grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(130px, 1fr)); }
.filters__row--sliders { grid-template-columns: 1fr 1fr minmax(180px, .8fr); margin-top: 1.1rem; align-items: end; }
.filters__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.filters__resume { margin: 0; font-size: .9rem; color: var(--ink-2); }
.filters__resume strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.filters__buttons { display: flex; gap: .55rem; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.field label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field select, .field input[type="search"] {
  width: 100%; font-family: var(--font-text); font-size: .92rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  padding: .62rem .7rem; appearance: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%237a8f99' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 12px;
  padding-right: 1.9rem;
}
.field select:disabled { opacity: .5; cursor: not-allowed; }
.field select:focus, .field input[type="search"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg { position: absolute; left: .68rem; color: var(--muted); pointer-events: none; }
.input-wrap input { padding-left: 2.1rem !important; }

.range__head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.range__head label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.range__head output { font-family: var(--font-display); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.range input[type="range"] {
  width: 100%; margin: .7rem 0 .3rem; appearance: none; height: 22px; background: transparent; cursor: pointer;
}
.range input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill, 50%), var(--line-strong) var(--fill, 50%) 100%);
}
.range input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm);
}
.range input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: var(--line-strong); }
.range input[type="range"]::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--accent); }
.range input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.range__scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-family: var(--font-text); color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .34rem .75rem .34rem .55rem; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip__count { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }

/* ---------- Grille catalogue ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 1.1rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card--selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--bg-alt) 55%, color-mix(in srgb, var(--accent) 10%, var(--bg-alt)) 100%);
  border-bottom: 1px solid var(--line);
}
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10, 26, 34, .06));
  pointer-events: none;
}
[data-theme="dark"] .card__media::after { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3)); }
.card__art { position: absolute; left: 0; right: 0; bottom: 5%; width: 100%; }
.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Illustration vectorielle générée par volt.js */
.art { display: block; width: 100%; height: auto; }

.card__badges { position: absolute; top: .65rem; left: .65rem; right: .65rem; display: flex; justify-content: space-between; gap: .4rem; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: .34rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: .28rem .6rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.pill--marque { color: #fff; }
.pill--annee { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pill--carrosserie { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }

.card__body { display: flex; flex-direction: column; gap: .72rem; padding: .95rem 1rem 1.05rem; flex: 1; }
.card__title { font-size: 1.03rem; font-weight: 600; line-height: 1.25; }
.card__subtitle { font-size: .78rem; color: var(--muted); margin-top: .16rem; }
.card__fort { font-size: .82rem; color: var(--ink-2); margin: 0; min-height: 2.4em; }

.card__price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.card__price strong { font-family: var(--font-display); font-size: 1.34rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__price span { font-size: .74rem; color: var(--muted); }

.card__autonomie { display: flex; flex-direction: column; gap: .3rem; }
.card__autonomie-head { display: flex; align-items: baseline; justify-content: space-between; font-size: .82rem; }
.card__autonomie-head b { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: .98rem; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

.card__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem .7rem; margin: 0; padding: .7rem 0 0; border-top: 1px dashed var(--line); }
.card__specs div { display: flex; justify-content: space-between; gap: .4rem; font-size: .78rem; }
.card__specs dt { color: var(--muted); }
.card__specs dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

.card__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.card__actions .btn { flex: 1; }

.empty { text-align: center; padding: 3.4rem 1rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-xl); }
.empty h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

.load-more { display: flex; justify-content: center; margin-top: 1.6rem; }

/* ---------- Marques ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.brand-card {
  display: flex; flex-direction: column; gap: .5rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; cursor: pointer; font-family: var(--font-text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.brand-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.brand-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.brand-card__top { display: flex; align-items: center; gap: .6rem; }
.brand-card__logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
.brand-card__nom { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.brand-card__pays { font-size: .74rem; color: var(--muted); }
.brand-card__stats { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .5rem; border-top: 1px dashed var(--line); }
.brand-card__stats b { color: var(--ink); font-weight: 600; }

/* ---------- Comparateur ---------- */
.compare-empty {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; color: var(--muted); font-size: .92rem; max-width: 78ch;
}
.compare-empty p { margin: 0; }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare__scroll { overflow-x: auto; }
.compare table { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare th, .compare td { padding: .7rem .9rem; text-align: left; font-size: .86rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
.compare tbody th { font-weight: 500; color: var(--muted); width: 172px; font-size: .8rem; background: var(--surface-2); position: sticky; left: 0; }
.compare td { font-variant-numeric: tabular-nums; font-weight: 500; }
.compare .best { color: var(--good); font-weight: 700; }
.compare .compare__head { display: flex; align-items: center; gap: .55rem; }
.compare .compare__head strong { font-family: var(--font-display); font-size: .95rem; }
.compare .compare__remove { margin-left: auto; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.compare .compare__remove:hover { color: var(--ink); }
.compare__foot { padding: .8rem 1rem; display: flex; justify-content: flex-end; background: var(--surface-2); }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.guide__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.guide__card h3 { margin-bottom: .5rem; }
.guide__card p { margin: 0; font-size: .89rem; color: var(--muted); }
.guide__card strong { color: var(--ink); }
.disclaimer { margin-top: 1.5rem; font-size: .78rem; color: var(--muted); max-width: 90ch; border-left: 2px solid var(--line-strong); padding-left: .9rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: 2.4rem 0; }
[data-theme="dark"] .site-footer { background: #030B0F; border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; }
.site-footer .brand__name { font-size: 1.5rem; letter-spacing: .1em; }
.site-footer p { font-size: .84rem; opacity: .68; margin: .5rem 0 0; max-width: 52ch; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.site-footer nav a { font-size: .86rem; opacity: .78; text-decoration: none; }
.site-footer nav a:hover { opacity: 1; color: var(--accent); }
.site-footer__baseline { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; font-size: .76rem; opacity: .6; }

/* ---------- Barre de sélection ---------- */
.tray {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(10, 26, 34, .12);
  animation: tray-in .22s ease;
}
[data-theme="dark"] .tray { box-shadow: 0 -14px 40px rgba(0, 0, 0, .5); }
@keyframes tray-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tray__inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.tray__items { display: flex; gap: .5rem; overflow-x: auto; flex: 1; padding-bottom: 2px; }
.tray__item {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .3rem .5rem .3rem .3rem; font-size: .82rem;
}
.tray__swatch { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 1px solid var(--line); overflow: hidden; }
.tray__item strong { font-weight: 600; font-family: var(--font-display); font-size: .84rem; }
.tray__item button { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.tray__actions { display: flex; gap: .5rem; flex: none; }

/* ---------- Fiche (modale) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.2rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 21, .58); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(940px, 100%); max-height: min(88vh, 900px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
}
.modal__close:hover { border-color: var(--accent); color: var(--ink); }

.fiche__hero {
  position: relative; aspect-ratio: 16 / 8; min-height: 200px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.fiche__art { position: absolute; inset: auto 0 6% 0; width: min(560px, 82%); margin-inline: auto; }
.fiche__badges { position: absolute; top: 1rem; left: 1.1rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.fiche__body { padding: 1.4rem clamp(1.1rem, 3vw, 1.9rem) 1.8rem; }
.fiche__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.fiche__head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.fiche__brand-info { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
.fiche__price { text-align: right; }
.fiche__price strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fiche__price span { font-size: .76rem; color: var(--muted); }

.fiche__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: .6rem; margin: 0 0 1.3rem; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.stat dt { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .72rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }

.fiche__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.fiche__block h3 { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .6rem; }
.fiche__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; }
.fiche__specs li { display: flex; justify-content: space-between; gap: 1rem; font-size: .87rem; padding-bottom: .42rem; border-bottom: 1px dashed var(--line); }
.fiche__specs span { color: var(--muted); }
.fiche__specs b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fiche__note {
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: .8rem .95rem;
  font-size: .87rem; color: var(--ink-2); margin: 0;
}
.fiche__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- Utilitaires ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1080px) {
  .filters__row--top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--search { grid-column: 1 / -1; }
  .filters__row--sliders { grid-template-columns: 1fr 1fr; }
  .field--sort { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
  .brand__tag { display: none; }
}
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: .6rem 1rem 1rem; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav a { padding: .65rem .7rem; border-radius: var(--radius-xs); }
  .filters__row--top { grid-template-columns: 1fr 1fr; }
  .filters__row--sliders { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .tray__inner { flex-direction: column; align-items: stretch; gap: .6rem; }
  .tray__actions { justify-content: flex-end; }
  .fiche__head { flex-direction: column; }
  .fiche__price { text-align: left; }
}
@media (max-width: 520px) {
  .filters__row--top { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .announce__more { display: none; }
}

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

@media print {
  .site-header, .tray, .modal, .filters__buttons, .hero__actions { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
}
