/* Quads-Motors — feuille de style unique, sans framework. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --forest: #1d3a2c;
  --forest-2: #28503d;
  --moss: #e3eadf;
  --hiviz: #f5c518;
  --hiviz-dark: #dcae00;
  --paper: #f3f4f1;
  --white: #fff;
  --ink: #18211c;
  --muted: #5b665f;
  --line: #d9ddd5;
  --field: #8b958e; /* bordure des champs, contraste 3:1 sur blanc */
  --sale: #b8321b;
  --ok: #1f7a45;
  --plate-blue: #0b3d91;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--hiviz); border-radius: 3px; }
.header :focus-visible, .footer :focus-visible, .hero :focus-visible, .chat-head :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--hiviz); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--hiviz); color: var(--ink); }
.btn-primary:hover { background: var(--hiviz-dark); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.icon-btn:hover { background: var(--moss); }
.link { background: none; border: 0; padding: 0; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Barre du haut */
.topbar { background: var(--forest); color: #dfe8e1; font-size: 14px; }
.topbar-in { display: flex; gap: 24px; align-items: center; min-height: 36px; }
.topbar-in span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-in .i { width: 16px; height: 16px; }
.topbar-in a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar-end { margin-left: auto; }
.topbar-in a:hover { text-decoration: underline; }

/* En-tête */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: -.01em; color: var(--forest); }
.logo svg { width: 38px; height: 38px; }
.logo b { color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; }

.search { flex: 1; display: flex; max-width: 520px; }
.search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 2px solid var(--field); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--paper);
}
.search input:focus { outline: none; border-color: var(--forest); background: var(--white); }
.search button { width: 52px; border: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--forest); color: var(--white); cursor: pointer; }
.search button:hover { background: var(--forest-2); }

/* Plaque d’immatriculation : la machine du client */
.plate {
  display: inline-flex; align-items: stretch; height: 46px; margin-left: auto;
  padding: 0; border: 2px solid var(--ink); border-radius: 7px; background: var(--white);
  cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 2px var(--white);
}
.plate-eu {
  display: grid; place-items: center; width: 26px;
  background: var(--plate-blue); color: var(--white);
  font: 700 12px/1 var(--display);
}
.plate-eu i { font-style: normal; font-size: 9px; color: var(--hiviz); }
.plate-txt {
  display: grid; place-items: center; padding: 0 14px; min-width: 150px;
  font: 700 19px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.plate.is-set .plate-txt { color: var(--ink); }
.plate:not(.is-set) .plate-txt { color: var(--muted); font-size: 17px; }
.plate:hover { border-color: var(--forest); }

.cart-link { position: relative; display: grid; place-items: center; width: 48px; height: 46px; border-radius: var(--r-sm); text-decoration: none; }
.cart-link:hover { background: var(--moss); }
.cart-link .i { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--hiviz); font: 700 12px/20px var(--body); text-align: center;
}

/* Navigation */
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-in a {
  display: block; padding: 12px 14px; white-space: nowrap; text-decoration: none;
  font: 600 18px/1 var(--display); letter-spacing: .01em;
  border-bottom: 3px solid transparent;
}
.nav-in a:hover { color: var(--forest); }
.nav-in a[aria-current] { border-bottom-color: var(--hiviz); }
.nav-end { margin-left: auto; }


/* Hero */
.hero {
  background-color: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-20 320c80-40 140-10 210-50s120-120 220-110 140 70 210 40'/%3E%3Cpath d='M-20 290c80-40 150-20 210-60s130-110 220-100 130 60 210 30'/%3E%3Cpath d='M-20 260c90-40 150-30 205-70s140-100 225-90 125 50 210 20'/%3E%3Cpath d='M-20 230c90-40 160-40 200-80s150-90 230-80 120 40 210 10'/%3E%3Cpath d='M-20 200c100-40 160-50 195-90s160-80 235-70 115 30 210 0'/%3E%3Cpath d='M-20 360c70-30 130 0 215-30s110-140 215-130 150 80 210 50'/%3E%3Cpath d='M-20 390c70-30 130 10 220-20s100-150 210-140 160 90 210 60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px auto;
  color: var(--white);
}
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 6vw, 64px); }
.hero h1 { font: 700 clamp(40px, 6vw, 72px)/.95 var(--display); letter-spacing: -.01em; max-width: 13ch; }
.lead { margin-top: 18px; font-size: 18px; color: #cfdcd3; max-width: 46ch; }

.finder { margin-top: 28px; padding: 20px; background: var(--white); color: var(--ink); border-radius: var(--r); border-top: 5px solid var(--hiviz); }
.finder h2 { font: 700 22px/1.1 var(--display); margin-bottom: 14px; }
.finder-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.finder-fields label, .toolbar label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
select {
  height: 46px; padding: 0 36px 0 12px; border: 2px solid var(--field); border-radius: var(--r-sm);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2318211c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; color: var(--ink); font-weight: 500;
}
select:disabled { background-color: var(--paper); color: var(--muted); }
select:focus { outline: none; border-color: var(--forest); }

.hero-feature { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--white); text-decoration: none; color: var(--ink); }
.hero-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-tag {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px;
  padding: 12px 16px; background: var(--white); border-radius: var(--r-sm); border-left: 5px solid var(--hiviz);
  box-shadow: 0 6px 24px rgb(24 33 28 / .18);
}
.hero-tag small { color: var(--muted); font-size: 13px; }
.hero-tag b { font: 700 22px/1.1 var(--display); }

/* Sections */
.section { padding-block: clamp(36px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.h2 { font: 700 clamp(26px, 3vw, 34px)/1.05 var(--display); margin-bottom: 20px; }
.more { font-weight: 600; color: var(--forest); text-underline-offset: 3px; white-space: nowrap; }

/* Catégories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  display: grid; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none;
}
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; }
.cat span { display: grid; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.cat b { font: 700 19px/1.1 var(--display); }
.cat small { color: var(--muted); font-size: 14px; }
.cat:hover { border-color: var(--forest); }
.cat:hover b { color: var(--forest); }

/* Cartes produit */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { border-color: #b9c0b6; }
.card.is-fit { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.card-img { position: relative; display: block; background: var(--white); }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.tag-off {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px;
  background: var(--sale); color: var(--white); font: 700 15px/1.2 var(--display);
}
.card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card-meta { font-size: 13px; color: var(--muted); }
.card-title { font: 500 15px/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--forest); text-decoration: underline; }
.fit { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 14px; font-weight: 600; }
.fit .i { width: 16px; height: 16px; stroke-width: 2.4; }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price b { font: 700 24px/1 var(--display); }
.price s { color: var(--muted); font-size: 14px; }
.btn-add {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--r-sm); background: var(--hiviz); cursor: pointer;
}
.btn-add:hover { background: var(--hiviz-dark); }
.btn-add.is-added { background: var(--ok); color: var(--white); }

/* Bandeau devis */
.band { margin-top: clamp(40px, 6vw, 64px); background: var(--moss); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; }
.band h2 { font: 700 30px/1.05 var(--display); color: var(--forest); }
.band p { margin-top: 6px; max-width: 60ch; color: var(--muted); }

/* Fil d’Ariane et en-tête de page */
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { padding-block: 14px 24px; }
.page-head h1 { font: 700 clamp(34px, 4.5vw, 52px)/1 var(--display); }
.page-head p { margin-top: 10px; max-width: 70ch; color: var(--muted); }

/* Catégorie */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; gap: 22px; }
.filters fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.filters legend { font: 700 19px/1 var(--display); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); }
.check small { margin-left: auto; color: var(--muted); font-size: 13px; }
.filter-fit { padding: 12px; border-radius: var(--r-sm); background: #e5f2ea; border: 1px solid #b9dbc6; }
.filter-fit b { text-transform: uppercase; font-family: var(--display); letter-spacing: .03em; }
input[type="range"] { width: 100%; accent-color: var(--forest); }
output { font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--muted); }
.toolbar label { display: flex; align-items: center; gap: 8px; }
.empty { padding: 28px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.pager { display: flex; gap: 6px; margin-top: 28px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.pager a:hover:not([aria-current]) { border-color: var(--ink); }

/* Fiche produit */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-top: 18px; align-items: start; }
.product-media { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; }
.product-info h1 { margin-top: 6px; font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); }
.sku { margin-top: 8px; font-size: 14px; color: var(--muted); }
.fitcheck p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); }
.fitcheck .ok { background: #e5f2ea; border-color: #b9dbc6; color: var(--ok); }
.fitcheck .ko { background: #fbeae6; border-color: #efc2b8; color: var(--sale); }
.fitcheck b { text-transform: uppercase; font-family: var(--display); letter-spacing: .03em; font-size: 17px; }
.buy { margin-top: 20px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 14px; }
.price-lg b { font-size: 40px; }
.price-lg s { font-size: 17px; }
.save { padding: 2px 8px; border-radius: 4px; background: #fbeae6; color: var(--sale); font-size: 14px; font-weight: 600; }
.stock { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 15px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty input { width: 74px; height: 54px; text-align: center; border: 2px solid var(--field); border-radius: var(--r-sm); background: var(--white); font-weight: 600; }
.qty input:focus { outline: none; border-color: var(--forest); }
.perks { margin-top: 18px; display: grid; gap: 10px; color: var(--muted); }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .i { color: var(--forest); }

.details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; margin-top: clamp(36px, 5vw, 56px); }
.details section:first-child { grid-row: span 2; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.specs { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs th, .specs td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child > * { border-bottom: 0; }
.specs th { width: 42%; font-weight: 600; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
summary:hover { color: var(--forest); }
details p { padding-bottom: 14px; color: var(--muted); }
.sticky-buy { display: none; }

/* Panier */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 16px; align-items: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.cart-line img { width: 88px; height: 88px; object-fit: contain; }
.cart-line-info { display: grid; gap: 6px; }
.cart-line-info a { font-weight: 500; text-decoration: none; }
.cart-line-info a:hover { text-decoration: underline; }
.cart-line .qty input { height: 44px; width: 64px; }
.summary { position: sticky; top: 140px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 12px; }
.summary h2 { font: 700 24px/1 var(--display); }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dd { margin: 0; text-align: right; }
.summary dt, .summary dd { color: var(--muted); }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); }
.summary .total dt, .summary .total dd { color: var(--ink); font: 700 24px/1 var(--display); }
.note { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.empty-cart { display: grid; justify-items: center; gap: 16px; }

/* 404 */
.notfound { padding-block: 56px 24px; display: grid; gap: 16px; max-width: 760px; }
.notfound h1 { font: 700 clamp(34px, 5vw, 52px)/1 var(--display); }
.notfound p { color: var(--muted); }
.search-lg { max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--forest); }

/* Pied de page */
.assurances { margin-top: clamp(48px, 7vw, 80px); background: var(--white); border-block: 1px solid var(--line); }
.assurances-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 28px; }
.assurances-in div { display: flex; gap: 12px; }
.assurances-in .i { width: 28px; height: 28px; color: var(--forest); }
.assurances-in p { font-size: 14px; color: var(--muted); }
.assurances-in b { display: block; color: var(--ink); font-size: 16px; }
.footer { background: var(--forest); color: #cfdcd3; padding-top: 44px; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer p { max-width: 36ch; margin-top: 12px; font-size: 15px; }
.footer h2 { font: 700 19px/1 var(--display); color: var(--white); margin-bottom: 12px; }
.footer li { padding: 4px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.logo-light, .logo-light b { color: var(--white); }
.logo-light b { color: var(--hiviz); }
.footer-legal { margin-top: 36px; padding-block: 18px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }

/* Fenêtre « Ma machine » */
.garage { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.garage::backdrop { background: rgb(24 33 28 / .55); }
.garage-in { display: grid; gap: 14px; padding: 22px; }
.garage-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.garage h2 { font: 700 28px/1.05 var(--display); }
.garage p { color: var(--muted); }
.garage .finder-fields { grid-template-columns: 1fr 1fr; }
.garage-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }

/* Ajout au panier : confirmation */
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--white); box-shadow: 0 10px 30px rgb(0 0 0 / .25);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--hiviz); font-weight: 600; }

/* Tablette */
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 210px 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .assurances-in { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .topbar-in { gap: 14px; font-size: 13px; }
  .header-in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-block: 10px; }
  .nav-toggle { display: inline-grid; margin-left: -8px; }
  .logo { font-size: 22px; }
  .logo svg { width: 32px; height: 32px; }
  .plate { order: 3; height: 40px; }
  .plate-txt { min-width: 0; font-size: 16px; padding: 0 10px; }
  .cart-link { order: 4; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav-in { flex-direction: column; gap: 0; }
  .nav-in a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-end { margin-left: 0; }

  .hero-in { grid-template-columns: 1fr; }
  .hero-feature img { aspect-ratio: 16 / 10; }
  .hero-tag { left: 10px; bottom: 10px; padding: 8px 12px; }
  .hero-tag b { font-size: 18px; }
  .finder-fields { grid-template-columns: 1fr 1fr; }
  .finder-fields .btn { grid-column: 1 / -1; }

  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 14px; }
  .price b { font-size: 21px; }
  .btn-add { width: 40px; height: 40px; }
  .band-in { flex-direction: column; align-items: start; }

  .listing { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
  .filters fieldset:last-child, .filter-fit { grid-column: 1 / -1; }
  .toolbar { flex-wrap: wrap; }

  .product, .details, .cart { grid-template-columns: 1fr; }
  .details section:first-child { grid-row: auto; }
  .sticky-buy {
    position: fixed; inset: auto 0 0 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08);
    transform: translateY(100%); transition: transform .2s;
  }
  .sticky-buy.is-on { transform: none; }
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .qty { grid-column: 2; }
  .summary { position: static; }
  .footer-in, .assurances-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Composants ajoutés : formulaires, commande, recherche, contenus ===== */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.no-scroll { overflow: hidden; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hint a, .note a { color: var(--forest); }

/* Messages */
.flash { background: #e5f2ea; border-bottom: 1px solid #b9dbc6; color: var(--ok); font-weight: 600; }
.flash .wrap { display: flex; align-items: center; gap: 8px; padding-block: 12px; }
.flash-error { background: #fbeae6; border-color: #efc2b8; color: var(--sale); }
.alert { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid; }
.alert:focus { outline: none; }
.alert-error { background: #fbeae6; border-color: #efc2b8; color: #7d2212; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.alert a { color: inherit; }

/* Champs */
.panel { margin: 0 0 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
fieldset.panel { padding-top: 6px; }
.panel legend, .panel > h2 { margin: 14px 0 14px; padding: 0; font: 700 22px/1.1 var(--display); }
.panel legend { float: left; width: 100%; }
.panel > h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.panel legend + * { clear: both; }
.panel legend small { font: 400 15px var(--body); color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field-full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .qty input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--field); border-radius: var(--r-sm);
  background: var(--white); font: 400 16px/1.4 var(--body);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(29 58 44 / .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--sale); }
.field-error { color: var(--sale); font-size: 14px; font-weight: 600; }
.field-inline { grid-template-columns: auto 100px; align-items: center; margin-top: 12px; }
.form-page > .btn { margin-top: 4px; }
.form-page .note { margin-top: 14px; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { border-color: var(--forest); background: var(--forest); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--hiviz-dark); outline-offset: 2px; }

.success h2 { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.success p { margin-top: 8px; }

/* Commande */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-main { min-width: 0; }
.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 46px; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.pay-option input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--forest); }
.pay-option:has(input:checked) { border-color: var(--forest); background: #f4f8f5; }
.pay-option.is-disabled { opacity: .6; cursor: not-allowed; }
.pay-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pay-desc { font-size: 14px; color: var(--muted); }
.summary-lines { display: grid; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-lines small { color: var(--muted); white-space: nowrap; }
.summary-lines b { white-space: nowrap; }
.cgv { align-items: flex-start; font-size: 15px; }
.cgv a { color: var(--forest); }
.check.has-error span { color: var(--sale); }
.back { justify-self: center; font-size: 14px; color: var(--muted); }
.btn.is-loading { opacity: .7; cursor: progress; }
.pay-ways { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.pay-ways li { display: flex; align-items: center; gap: 6px; }
.pay-ways .i { width: 18px; height: 18px; }
.ttc { margin-top: -10px; font-size: 13px; color: var(--muted); }
.stock.out { color: var(--sale); }

.order-head h1 { color: var(--forest); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 14px; font-size: 13px; color: var(--muted); border-top: 4px solid var(--line); }
.steps li.done { border-color: var(--ok); color: var(--ink); }
.steps li.current { border-color: var(--hiviz); color: var(--ink); font-weight: 600; }
.bank-box { border: 2px solid var(--hiviz); }
.bank-box h2 { display: flex; align-items: center; gap: 8px; }
.bank { display: grid; gap: 8px; margin: 0; clear: both; }
.bank div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank code { font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.copy { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 13px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.totals { margin: 0 0 16px; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; }
.totals .total { font: 700 22px/1 var(--display); }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-meta h3 { font: 700 18px/1 var(--display); margin-bottom: 6px; }
.order-meta p { color: var(--muted); font-size: 15px; }

/* Panier */
.cart-line { grid-template-columns: 88px 1fr auto auto auto; }
.unit { font-size: 14px; color: var(--muted); }
.line-total { min-width: 90px; justify-content: flex-end; }
.line-total b { font-size: 20px; }

/* Recherche instantanée */
.search { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgb(24 33 28 / .16);
  overflow: hidden;
}
.suggest a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; font-size: 15px; }
.suggest img { width: 48px; height: 48px; object-fit: contain; }
.suggest span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest b { font: 700 18px/1 var(--display); white-space: nowrap; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--moss); }
.suggest-all a { display: block; padding: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--forest); }

/* Listes */
.fit-banner {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 16px;
  border-radius: var(--r-sm); background: #e5f2ea; border: 1px solid #b9dbc6; color: var(--ok); text-decoration: none; font-weight: 500;
}
.fit-banner b { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
.fit-banner > .i:last-child { margin-left: auto; }
.fit-banner:not(.is-static):hover { background: #d8ecdf; }
.fit-banner .link { margin-left: auto; }
.filters-head, .filters-actions { display: none; }
.checks { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.filters-open { display: none; }
.toolbar p { margin-right: auto; }
.pager .gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }
.seo-block { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.seo-block > :only-child { grid-column: 1 / -1; }
.prose { color: #2c3630; }
.prose h2 { margin: 18px 0 4px; font: 700 26px/1.1 var(--display); color: var(--ink); }
.prose h3 { margin: 12px 0 0; font: 700 21px/1.15 var(--display); color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; list-style: disc; display: grid; gap: 4px; }
.prose ol { list-style: decimal; }
.prose a { color: var(--forest); font-weight: 500; }
.prose img { border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.faq .h2 { margin-bottom: 4px; }
.faq-a { padding-bottom: 14px; color: var(--muted); }

/* Fiche produit */
.gallery { min-width: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { padding: 4px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; flex: none; }
.thumbs button[aria-current] { border-color: var(--forest); }
.thumbs img { width: 64px; height: 64px; object-fit: contain; }
.details { grid-template-columns: 1.4fr 1fr; }
.details section:first-child { grid-row: auto; }
.details-side { display: grid; gap: 28px; align-content: start; }
.vehicle-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-list a { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: 15px; }
.vehicle-list a:hover { border-color: var(--forest); color: var(--forest); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--moss); }
.post-card > div { display: grid; gap: 6px; align-content: start; padding: 14px 16px 18px; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h3, .post-card h2 { font: 700 21px/1.15 var(--display); }
.post-card h3 a, .post-card h2 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--forest); text-decoration: underline; }
.post-card p { font-size: 15px; color: var(--muted); }
.article { max-width: 820px; }
.article .meta { margin-top: 8px; color: var(--muted); }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: 24px; }
.article .prose { font-size: 17px; line-height: 1.7; display: grid; gap: 14px; }
.article-cta { margin-top: 40px; border-radius: var(--r); }
.article-cta .band-in { padding: 24px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.contact-side h2 { font: 700 22px/1.1 var(--display); margin-bottom: 12px; }
.contact-list, .link-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list a, .link-list a { color: var(--forest); font-weight: 500; }

@media (max-width: 1080px) {
  .checkout { grid-template-columns: 1fr 320px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .seo-block { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
  .checkout, .contact { grid-template-columns: 1fr; }
  .checkout .summary { position: static; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { font-size: 11px; }
  .order-meta { grid-template-columns: 1fr; }
  .bank div { grid-template-columns: 1fr; gap: 2px; }
  .posts { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }

  .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info del" "img qty total"; }
  .cart-line img { grid-area: img; }
  .cart-line-info { grid-area: info; }
  .cart-line-qty { grid-area: qty; }
  .line-total { grid-area: total; min-width: 0; }
  .cart-line > form:last-child { grid-area: del; }

  /* Filtres en tiroir plein écran */
  .filters-open { display: inline-flex; min-height: 42px; padding: 0 14px; }
  .filters {
    position: fixed; inset: 0; z-index: 50; display: none; align-content: start; grid-template-columns: 1fr;
    padding: 16px; border: 0; border-radius: 0; overflow-y: auto; background: var(--white);
  }
  .filters.is-open { display: grid; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h2 { font: 700 26px/1 var(--display); }
  .filters-actions { display: grid; gap: 8px; position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); }
  .checks { max-height: none; }
  .check { min-height: 40px; }
  .toolbar label { font-size: 14px; }
  .suggest a { grid-template-columns: 40px 1fr auto; }
}

/* ===== Articles générés : encadrés, sommaire, figures produits ===== */
.article-head .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.article-cat { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 4px; background: var(--moss); color: var(--forest); font-weight: 600; font-size: 14px; text-decoration: none; }
.article-cat:hover { background: #d3dece; }
.article .prose h2 { scroll-margin-top: 150px; margin-top: 28px; }
.article .prose h3 { scroll-margin-top: 150px; }
.takeaways { padding: 18px 20px; border-left: 5px solid var(--hiviz); border-radius: var(--r-sm); background: var(--white); }
.article .prose .takeaways-title { margin: 0 0 8px; font-size: 22px; }
.takeaways ul { gap: 6px; }
.toc details { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.toc summary { padding: 0; font: 700 20px/1.2 var(--display); }
.toc ol { margin-top: 10px; }
.toc a { font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-figure { margin: 6px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.article-figure img { width: 100%; max-height: 460px; aspect-ratio: auto; object-fit: contain; padding: 16px; border-radius: 0; }
.article-figure figcaption { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.article-figure figcaption a { color: var(--forest); font-weight: 600; }
.article-figure.is-category img { object-fit: cover; padding: 0; max-height: 360px; }
.article-sources { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.article-sources h2 { font: 700 20px/1 var(--display); margin-bottom: 8px; }
.article-sources a { color: var(--forest); }
.article-tags { margin-top: 20px; }
.article .faq { margin-top: 36px; }
.perks li span a { margin-left: 4px; color: var(--forest); }
.perks small { color: var(--muted); }

/* Pages légales */
.legal .prose { display: grid; gap: 12px; }
.legal .prose table { font-size: 14px; }
.legal blockquote { margin: 0; padding: 14px 18px; border-left: 4px solid var(--line); background: var(--white); }
mark.todo { padding: 1px 6px; border-radius: 3px; background: #fff3b0; color: #6b5200; font-weight: 600; }
.todo-note { padding: 12px 14px; border: 1px dashed var(--hiviz-dark); border-radius: var(--r-sm); background: #fffbe6; color: #6b5200; }
.footer-legal { display: grid; gap: 8px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pay-badges span { display: inline-flex; align-items: center; gap: 6px; }
.pay-badges .i { width: 18px; height: 18px; }
.bank-grid { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: start; clear: both; }
.epc-qr { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.epc-qr svg { width: 180px; height: 180px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.epc-qr .dark { fill: var(--ink); }
.hint-list { margin-top: 14px; display: grid; gap: 8px; padding-left: 18px; list-style: disc; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .bank-grid { grid-template-columns: 1fr; }
  .epc-qr { display: none; } /* sur téléphone, le client est déjà dans son appli : on garde les boutons Copier */
}

/* ===== Virement : choix de la banque ===== */
.pay-cta { display: grid; gap: 6px; justify-items: start; margin: 4px 0 18px; padding: 16px; border-radius: var(--r-sm); background: #f4f8f5; }
.pay-cta p { font-size: 14px; color: var(--muted); }
.declared { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: #e5f2ea; color: var(--ok); font-weight: 500; }
.declare-form { margin-top: 16px; }
.banks-dialog { width: min(560px, calc(100% - 24px)); max-height: min(720px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: var(--r); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.banks-dialog::backdrop { background: rgb(24 33 28 / .55); }
.banks-step { display: grid; gap: 14px; padding: 18px; }
.banks-head { display: flex; align-items: center; gap: 8px; }
.banks-head h2 { flex: 1; font: 700 26px/1.1 var(--display); display: flex; align-items: center; gap: 10px; }
.banks-head img { border-radius: 8px; }
.bank-search { height: 48px; padding: 0 14px; border: 2px solid var(--field); border-radius: var(--r-sm); font-size: 16px; }
.bank-search:focus { outline: none; border-color: var(--forest); }
.banks-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.bank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bank-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); text-align: left; font-weight: 500; cursor: pointer;
}
.bank-list button:hover { border-color: var(--forest); background: #f4f8f5; }
.bank-list img, .bank-initials { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: contain; }
.bank-initials { display: grid; place-items: center; background: var(--moss); color: var(--forest); font: 700 16px/1 var(--display); text-transform: uppercase; }
.banks-empty { font-size: 15px; color: var(--muted); }
.banks-other { justify-self: center; font-size: 15px; }
.pay-steps { display: grid; gap: 14px; margin: 0; padding-left: 22px; list-style: decimal; }
.pay-steps li { display: grid; gap: 6px; }
.pay-steps small { color: var(--muted); font-size: 13px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-row > span { min-width: 76px; font-size: 14px; color: var(--muted); }
.copy-row code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.banks-note { font-size: 14px; color: var(--muted); text-align: center; }
.handoff { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--muted); }
.handoff svg { width: 120px; height: 120px; }
.handoff .dark, .epc-qr .dark { fill: var(--ink); }
@media (max-width: 760px) {
  .banks-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .bank-list { grid-template-columns: 1fr 1fr; }
  .pay-cta .btn { width: 100%; }
}
.bank-filters { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.bank-country select { height: 48px; min-width: 150px; }
.banks-more { font-size: 14px; color: var(--muted); }
@media (max-width: 420px) { .bank-filters { grid-template-columns: 1fr; } }

/* ===== Chat avec le support ===== */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: grid; justify-items: end; gap: 10px; transition: bottom .2s; }
body:has(.sticky-buy.is-on) .chat { bottom: 84px; }
.chat-launcher {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 16px;
  border: 0; border-radius: 27px; background: var(--forest); color: var(--white); font: 600 16px/1 var(--body);
  box-shadow: 0 8px 24px rgb(24 33 28 / .28); cursor: pointer;
}
.chat-launcher:hover { background: var(--forest-2); }
.chat-launcher .i { width: 24px; height: 24px; }
.chat.is-open .chat-launcher { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hiviz); color: var(--ink); font: 700 12px/22px var(--body); text-align: center; }
.chat-panel {
  width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 40px)); display: grid; grid-template-rows: auto 1fr auto;
  background: var(--white); border-radius: 16px; box-shadow: 0 20px 60px rgb(24 33 28 / .3); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 14px 12px 18px; background: var(--forest); color: var(--white); }
.chat-head h2 { font: 700 21px/1.1 var(--display); }
.chat-head .icon-btn { color: var(--white); }
.chat-head .icon-btn:hover { background: rgb(255 255 255 / .12); }
.chat-status { margin-top: 4px; font-size: 13px; color: #cfdcd3; display: flex; align-items: center; gap: 6px; }
.chat-status .dot { margin: 0; background: #9aa69e; }
.chat-status.is-online .dot { background: #49d17d; }
.chat-body { overflow-y: auto; padding: 14px; background: var(--paper); display: grid; align-content: start; gap: 10px; }
.chat-welcome { display: grid; gap: 10px; font-size: 15px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 500 14px var(--body); cursor: pointer; }
.chat-chips button:hover { border-color: var(--forest); color: var(--forest); }
.chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { display: grid; gap: 2px; max-width: 85%; }
.chat-msg small { font-size: 11px; color: var(--muted); }
.chat-msg-visitor { align-self: flex-end; justify-items: end; }
.chat-msg-agent { align-self: flex-start; }
.chat-msg-system { align-self: center; max-width: 95%; text-align: center; font-size: 13px; color: var(--muted); }
.chat-bubble { padding: 9px 13px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg-visitor .chat-bubble { background: var(--forest); border-color: var(--forest); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg-agent .chat-bubble { border-bottom-left-radius: 4px; }
.chat-msg-system .chat-bubble { background: none; border: 0; padding: 0; }
.chat-bubble img { display: block; max-width: 220px; max-height: 220px; margin-top: 4px; border-radius: 8px; }
.chat-typing { font-size: 13px; color: var(--muted); font-style: italic; }
.chat-form { display: grid; gap: 6px; padding: 10px 12px 10px; border-top: 1px solid var(--line); background: var(--white); }
.chat-contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; }
.chat-contact[hidden] { display: none; }
.chat-contact input { height: 40px; padding: 0 10px; border: 2px solid var(--field); border-radius: var(--r-sm); font-size: 15px; min-width: 0; }
.chat-input { display: flex; align-items: flex-end; gap: 4px; }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 2px solid var(--field); border-radius: 21px; resize: none; font: 400 16px/1.3 var(--body); }
.chat-input textarea:focus, .chat-contact input:focus { outline: none; border-color: var(--forest); }
.chat-input .icon-btn { cursor: pointer; }
.chat-send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--hiviz); cursor: pointer; }
.chat-send:hover { background: var(--hiviz-dark); }
.chat-send:disabled { opacity: .5; }
.chat-error { font-size: 13px; color: var(--sale); font-weight: 600; }
.chat-legal { font-size: 11px; color: var(--muted); text-align: center; }
.chat-legal a { color: inherit; }
@media (max-width: 760px) {
  .chat { right: 12px; bottom: 12px; }
  body:has(.sticky-buy.is-on) .chat:not(.is-open) { bottom: 84px; }
  body:has(.sticky-buy.is-on) .toast { bottom: 150px; }
  .chat-launcher { width: 54px; padding: 0; justify-content: center; }
  .chat-launcher-text { display: none; }
  .chat.is-open { inset: 0; display: block; }
  .chat-panel { width: 100%; height: 100dvh; border-radius: 0; }
}
@media print { .chat { display: none; } }
.eta { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.eta .i { color: var(--forest); margin-top: 2px; }
.eta small { display: block; color: var(--muted); font-size: 13px; }

/* Panier latéral */
.minicart { margin: 0 0 0 auto; width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; padding: 0; border: 0; box-shadow: -10px 0 40px rgb(0 0 0 / .2); }
.minicart::backdrop { background: rgb(24 33 28 / .45); }
.minicart[open] { animation: slide-in .2s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.minicart-in { display: grid; gap: 16px; padding: 18px; }
.minicart-head { display: flex; justify-content: space-between; align-items: center; }
.minicart-head h2 { display: flex; align-items: center; gap: 8px; font: 700 24px/1 var(--display); color: var(--ok); }
.mini-line { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; text-decoration: none; }
.mini-line img { object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.mini-line b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 15px; }
.mini-line small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.minicart-totals { margin: 0; padding: 12px 0; border-block: 1px solid var(--line); display: grid; gap: 6px; }
.minicart-totals div { display: flex; justify-content: space-between; }
.minicart-totals dd { margin: 0; font-weight: 600; }
.minicart-actions { display: grid; gap: 8px; justify-items: center; }
.minicart-suggest h3 { font: 700 19px/1 var(--display); margin-bottom: 10px; }
.minicart-suggest ul { display: grid; gap: 10px; }
.minicart-suggest li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .minicart[open] { animation: none; } }

/* Favoris, comparateur, outils de fiche, retour en haut */
.card { position: relative; }
.fav {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--muted); cursor: pointer;
}
.fav:hover { color: var(--sale); }
.fav.is-on, .tool.is-on { color: var(--sale); }
.fav.is-on .i, .tool.is-on .i { fill: currentColor; }
.cmp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cmp input { width: 16px; height: 16px; accent-color: var(--forest); }
.fav-link .i { width: 24px; height: 24px; }
.product-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 500 14px var(--body); cursor: pointer; }
.tool:hover { border-color: var(--forest); }
.tool .i { width: 17px; height: 17px; }
.tool input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool:has(input:checked) { border-color: var(--forest); background: #f4f8f5; color: var(--forest); }
.tool:has(input:focus-visible) { outline: 3px solid var(--hiviz-dark); outline-offset: 2px; }
.compare-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px; background: var(--ink); color: var(--white); border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.compare-bar .link { color: #cfdcd3; }
.compare-bar .btn { min-height: 38px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.compare { border-collapse: collapse; min-width: 100%; }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 180px; font-size: 15px; }
.compare th { position: sticky; left: 0; background: var(--paper); color: var(--muted); font-weight: 600; min-width: 140px; z-index: 1; }
.compare thead td { display: table-cell; }
.compare thead img { width: 140px; height: 140px; object-fit: contain; }
.compare-name { display: block; margin: 6px 0; font-weight: 600; text-decoration: none; }
.compare-price { font: 700 22px/1 var(--display); }
.compare td form { margin-bottom: 8px; }
.to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); box-shadow: 0 4px 14px rgb(0 0 0 / .12); cursor: pointer;
}
.to-top[hidden] { display: none; }
body:has(.sticky-buy.is-on) .to-top, body:has(.compare-bar:not([hidden])) .to-top { bottom: 84px; }
@media (max-width: 760px) {
  .fav-link { display: none; }
  .compare-bar { left: 12px; right: 76px; transform: none; justify-content: space-between; border-radius: var(--r); }
  body:has(.sticky-buy.is-on) .compare-bar { bottom: 84px; }
}

/* Commande : adresse, société */
.addr { position: relative; }
.addr-list li { padding: 10px 14px; cursor: pointer; font-size: 15px; }
.addr-list li:hover, .addr-list li[aria-selected="true"] { background: var(--moss); }
.pro-toggle { padding: 4px 0; }
.pro-fields { grid-column: 1 / -1; padding: 12px; border-radius: var(--r-sm); background: var(--paper); }
.pro-fields[hidden] { display: none; }
.field + .hint { margin-top: 4px; font-size: 13px; }
.corrected { margin-top: 8px; font-size: 15px; }
.eta-row dt .i { width: 18px; height: 18px; color: var(--forest); }
.eta-row dd { text-align: left !important; font-size: 13px; }
.eta-row { justify-content: flex-start !important; gap: 8px !important; }
.callback { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.callback summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.callback form { display: grid; gap: 10px; padding: 0 14px 14px; }
.callback-ok { display: flex; gap: 6px; color: var(--ok); font-weight: 600; }
.sticky-chat { flex: none; border: 1px solid var(--line); }
.sticky-buy .price { margin-right: auto; }
@media (max-width: 760px) {
  /* Fiche produit : le chat passe dans la barre d'achat, la bulle flottante s'efface */
  body:has(.sticky-buy.is-on) .chat:not(.is-open) .chat-launcher { display: none; }
}
.tax-switch { display: inline-flex; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; overflow: hidden; }
.tax-switch button { padding: 3px 10px; border: 0; background: transparent; color: #dfe8e1; font: 600 12px/1.4 var(--body); cursor: pointer; }
.tax-switch button[aria-pressed="true"] { background: var(--hiviz); color: var(--ink); }
.topbar-in > a:last-child { margin-left: 0; }
.stock-alert { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.stock-alert input[type=email], .footer-news input { height: 46px; padding: 0 12px; border: 2px solid var(--field); border-radius: var(--r-sm); font-size: 16px; min-width: 0; }
.mini-ok { grid-column: 1 / -1; display: flex; gap: 6px; color: var(--ok); font-weight: 600; font-size: 14px; }
.footer-news { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); }
.footer-news form { display: grid; gap: 8px; max-width: 560px; }
.footer-news label { display: grid; gap: 2px; color: #cfdcd3; }
.footer-news label b { color: var(--white); font: 700 19px/1.1 var(--display); }
.footer-news label span { font-size: 14px; }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; }
.footer-news .mini-ok { color: #8fe0ad; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 4px; }
.plan-table th, .plan-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.plan-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.plan-table .num { text-align: right; }
.ok-text { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-weight: 600; }
.ok-text .i { width: 16px; height: 16px; }
.doc-list { display: grid; gap: 8px; margin: 12px 0; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.doc-list small { display: block; margin-top: 4px; }
.doc-upload label { cursor: pointer; }
.order-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--muted); }
.status-accepted { background: #e5f2ea; color: var(--ok); }
.status-refused { background: #fbeae6; color: var(--sale); }
.status-pending { background: #fff3c4; color: #7a5b00; }

/* Demande de devis : sélecteur de produits */
.quote-picker .picked { display: grid; gap: 8px; margin-bottom: 12px; }
.quote-picker .picked li { display: grid; grid-template-columns: 1fr 84px 40px; gap: 10px; align-items: center; padding: 8px 10px; background: var(--moss); border-radius: var(--r-sm); }
.quote-picker .picked .qty input { width: 100%; height: 40px; text-align: center; }
.picker-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: end; }
.picker-row select { width: 100%; }
.picker-search { position: relative; margin-top: 12px; }
.picker-search .suggest button { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; font: inherit; font-size: 15px; cursor: pointer; }
.picker-search .suggest button:hover, .picker-search .suggest button:focus-visible { background: var(--moss); }
.picker-search .suggest .suggest-all { padding: 10px 12px; color: var(--muted); }
.price-quote b { font-size: .8em; }
@media (max-width: 640px) { .picker-row { grid-template-columns: 1fr; } }

/* Langues : bandeau de suggestion et sélecteur */
.lang-banner { background: var(--forest, #1d3a2c); color: #fff; font-size: 15px; }
.lang-banner-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; }
.lang-banner-in > span { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 260px; }
.lang-banner .link { color: #fff; }
.lang-banner svg, .footer-langs svg { width: 18px; height: 18px; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 14px; font-size: 14px; }
.footer-langs a[aria-current] { font-weight: 700; text-decoration: none; }

.country-row { display: flex; gap: 8px; align-items: center; }
.country-row select { flex: 1; }

/* Haut de page : pays de livraison et langue */
.topbar-pick { display: inline-flex; gap: 6px; align-items: center; }
.topbar-pick select { height: 28px; padding: 0 6px; border: 1px solid rgb(255 255 255 / .35); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 13px; }
.topbar-pick select option { color: #18211c; }
.alert-info { padding: 12px 14px; border-radius: var(--r-sm, 6px); background: #e3ecf8; color: #1f4f8f; display: grid; gap: 8px; justify-items: start; }

/* ---------- En-tête mobile réorganisé ---------- */
.nav-pick { display: none; }
.pick-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.clamp-more { margin-top: 4px; font-weight: 600; }
@media (max-width: 760px) {
  .topbar-in { gap: 10px; min-height: 34px; justify-content: space-between; flex-wrap: nowrap; white-space: nowrap; font-size: 12.5px; }
  .topbar-in > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .topbar-end { margin-left: 0; }
  .header-in { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 8px; padding-block: 8px; }
  .nav-toggle { margin-left: -8px; }
  .logo { font-size: 20px; gap: 8px; min-width: 0; }
  .logo svg { width: 30px; height: 30px; flex: none; }
  .plate { order: 0; height: 38px; max-width: 132px; }
  .plate-eu { width: 22px; }
  .plate-txt { font-size: 13px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .plate:not(.is-set) .plate-txt { font-size: 13px; }
  .cart-link { order: 0; }
  .search { order: 10; grid-column: 1 / -1; }
  .nav-pick { display: block; padding: 14px 0; }
  .pick-menu { display: grid; gap: 10px; }
  .pick-menu .pick-label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
  .pick-menu .pick-name { position: static; width: auto; height: auto; clip: auto; }
  .pick-menu select { height: 44px; padding: 0 10px; border: 2px solid var(--field); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font-size: 16px; }
  .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .clamp.is-open { display: block; }
}
@media (max-width: 380px) {
  .logo span { font-size: 18px; }
  .plate { max-width: 104px; }
  .fav-link { display: none; }
}
.logo-light svg { width: 34px; height: 34px; }
