/* Isneauville Automobile - feuille de style (v2)
   Principes : police de l'appareil, typographie à chasse adaptée à la taille,
   barre de navigation translucide, réponse immédiate au toucher. */

:root {
  /* Couleurs */
  --encre: #15181b;
  --encre-2: #5c6670;
  --encre-3: #8a949c;
  --fond: #ffffff;
  --surface: #f2f3f5;
  --surface-2: #e8eaed;
  --trait: #dcdfe3;
  --accent: #0a52c4;
  --accent-fonce: #083f98;
  --bleu-plaque: #0b3d91;
  --vert: #1f7a45;
  --ambre: #9a4d00;
  --rouge: #b42318;

  /* Noms conservés pour l'administration */
  --texte: var(--encre);
  --texte-2: var(--encre-2);
  --bleu: var(--accent);
  --bleu-fonce: var(--accent-fonce);
  --asphalte: #1c2126;
  --asphalte-2: #2a3138;

  /* Typographie : la police système de chaque appareil */
  --f-texte: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-titre: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Formes : le rayon grandit avec la surface */
  --r-tuile: 28px;
  --r-carte: 18px;
  --r-champ: 12px;
  --r-btn: 980px;

  --wrap: 1200px;
  --gouttiere: 16px;
  --header-h: 52px;
  --ombre-carte: 0 1px 2px rgba(21, 24, 27, .04), 0 6px 20px rgba(21, 24, 27, .06);
}
@media (min-width: 720px) { :root { --gouttiere: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;          /* 17 px */
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid rgba(10, 82, 196, .55); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }

/* Typographie : chasse négative sur les grands titres, interligne serré */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; margin: 0 0 .45em; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.07; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.022em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.012em; font-weight: 600; }
p { margin: 0 0 1em; }
small { font-size: .8em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gouttiere); }
.center { text-align: center; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Barre de navigation translucide ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .2s ease;
}
/* Pas de trait fixe : une ombre douce apparaît seulement quand le contenu passe dessous */
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(21, 24, 27, .08), 0 8px 24px -16px rgba(21, 24, 27, .25); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--encre); margin-right: auto; }
.brand:hover { text-decoration: none; color: var(--encre); }
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: .8rem; color: var(--encre-2); }
/* Petite plaque : bande bleue + cadre */
.brand-mark {
  width: 30px; height: 18px; border: 1.5px solid var(--encre); border-radius: 3px; display: flex; overflow: hidden; flex: none;
}
.brand-mark::before, .brand-mark::after { content: ""; width: 6px; background: var(--bleu-plaque); }
.brand-mark span { flex: 1; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 6px 12px; border-radius: 980px; color: var(--encre);
  font-size: .9rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
}
.site-nav a:hover { background: rgba(21, 24, 27, .05); text-decoration: none; }
.site-nav a[aria-current="page"] { background: rgba(21, 24, 27, .07); }
.nav-phone-item { display: none; }
.header-phone {
  font-size: .9rem; font-weight: 600; color: var(--encre); white-space: nowrap;
  padding: 6px 14px; border-radius: 980px; background: rgba(21, 24, 27, .06);
}
.header-phone:hover { text-decoration: none; background: rgba(21, 24, 27, .1); }
.header-phone:active { transform: scale(.97); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; border-radius: 12px;
}
.nav-toggle-bars { position: relative; width: 18px; height: 10px; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 1.7px; border-radius: 2px; background: var(--encre);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1), top .28s cubic-bezier(.32, .72, 0, 1);
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  /* Le menu se déploie depuis la barre, là où on l'a ouvert */
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 20px 30px -20px rgba(21, 24, 27, .3);
    transform-origin: top center;
    transform: translateY(-8px) scaleY(.97); opacity: 0; visibility: hidden;
    transition: transform .32s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s linear .32s;
  }
  .site-nav.open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .32s cubic-bezier(.32, .72, 0, 1), opacity .2s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; padding: 8px var(--gouttiere) 20px; gap: 0; }
  .site-nav a { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; border-radius: 0; background: none !important; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .nav-phone-item { display: block; margin-top: 8px; }
  .nav-phone-item a { font-size: 1.05rem; font-weight: 600; color: var(--accent); }
}

/* ---------- Boutons : réaction immédiate à l'appui ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; text-align: center;
  border-radius: var(--r-btn); padding: 11px 22px; min-height: 44px; border: 0; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease-out;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-fonce); color: #fff; }
.btn-secondary, .btn-outline { background: rgba(10, 82, 196, .09); color: var(--accent); }
.btn-secondary:hover, .btn-outline:hover { background: rgba(10, 82, 196, .15); color: var(--accent); }
.btn-light { background: #fff; color: var(--encre); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-small { padding: 6px 14px; min-height: 32px; font-size: .9rem; }
.btn .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}

.round-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 24, 27, .07); color: var(--encre);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; padding-bottom: 3px;
  transition: background-color .15s ease, opacity .2s ease, transform .1s ease-out;
}
.round-btn:hover { background: rgba(21, 24, 27, .12); }
.round-btn:active { transform: scale(.92); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Accueil ---------- */
.hero { padding: 56px 0 24px; text-align: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 32px; } }
.hero-inner { max-width: 920px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.03; letter-spacing: -0.038em; margin-bottom: .3em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.42; color: var(--encre-2); letter-spacing: -0.01em; max-width: 40em; margin-left: auto; margin-right: auto; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 0; }
.hero-actions-left { justify-content: flex-start; margin-top: 24px; }
.hero-page { padding-bottom: 8px; }
.lead-left { font-size: 1.15rem; line-height: 1.5; color: var(--encre-2); max-width: 36em; }

/* Prestations de l'atelier */
.section-tight { padding-top: 40px; }
.service-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-card {
  background: var(--surface); border-radius: var(--r-carte); padding: 26px 24px 24px;
  display: flex; flex-direction: column;
}
.service-card h2, .service-card h3 { font-size: 1.3rem; letter-spacing: -0.016em; font-weight: 600; margin-bottom: .4em; }
.service-card p { color: var(--encre-2); flex: 1; margin-bottom: 14px; }
.service-card-feature { background: var(--asphalte); color: #fff; }
.service-card-feature h3 { color: #fff; }
.service-card-feature p { color: #c7cfd6; }
.service-card-feature .more { color: #8db8ff; }

.pro-block { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .pro-block { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.steps { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: etape; position: relative; background: #fff; border-radius: var(--r-carte);
  padding: 18px 20px 18px 64px; color: var(--encre-2); line-height: 1.45;
}
.steps li strong { color: var(--encre); font-weight: 600; }
.steps li::before {
  content: counter(etape); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; display: flex; align-items: center; justify-content: center;
}

.prices-block { display: grid; gap: 48px; }
@media (min-width: 900px) { .prices-block { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: baseline; }
.price-table th { font-weight: 400; padding-right: 20px; }
.price-table td { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.muted-note { color: var(--encre-2); font-size: .92rem; margin-top: 14px; }
.commitments { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.commitments li { position: relative; padding-left: 32px; line-height: 1.45; }
.commitments li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

/* Barre de recherche */
.search {
  display: grid; gap: 10px; margin: 36px auto 0; max-width: 860px; text-align: left;
  background: var(--surface); padding: 10px; border-radius: 22px;
}
@media (min-width: 860px) {
  .search { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; border-radius: 980px; padding: 8px; max-width: 900px; }
}
.search-field select { background-color: #fff; border-color: transparent; border-radius: 980px; }
.search-left { margin: 0 0 28px; max-width: none; background: #fff; }
.search-left .seg { background: var(--surface); }
.search-left .search-field select { background-color: var(--surface); }
.section-vehicles .rail-track { padding-bottom: 20px; }
.search .btn { white-space: nowrap; }

/* Contrôle segmenté */
.seg { border: 0; margin: 0; padding: 3px; display: flex; background: var(--surface-2); border-radius: 980px; min-width: 0; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 8px 14px; border-radius: 980px; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--encre-2); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg span small { color: var(--encre-3); font-size: .78rem; font-weight: 500; margin-left: 2px; }
.seg input:checked + span { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(21, 24, 27, .12); }
.seg input:focus-visible + span { outline: 3px solid rgba(10, 82, 196, .55); outline-offset: 1px; }

/* Grand visuel du véhicule mis en avant */
.spotlight {
  display: block; position: relative; margin-top: 48px; border-radius: var(--r-tuile); overflow: hidden;
  background: var(--surface); color: #fff; text-align: left;
  transition: transform .2s ease-out;
}
.spotlight:hover { text-decoration: none; }
.spotlight:active { transform: scale(.99); }
.spotlight img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 720px) { .spotlight img { aspect-ratio: 4 / 3; } }
.spotlight-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 28px 24px;
  background: linear-gradient(to top, rgba(10, 12, 14, .62), rgba(10, 12, 14, 0));
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px;
}
.spotlight-name { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.spotlight-meta { grid-column: 1; font-size: 1rem; opacity: .85; }
.spotlight-price { grid-column: 2; grid-row: 1 / span 2; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.hero + .section { padding-top: 48px; }
.section-tint { background: var(--surface); }
.section-last { padding-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-title-center { text-align: center; margin-bottom: 40px; }
.more { font-size: 1.02rem; font-weight: 500; white-space: nowrap; }
.more::after { content: " ›"; }
.page-head { padding: 40px 0 24px; }
@media (min-width: 900px) { .page-head { padding: 56px 0 28px; } }
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: .15em; }
.page-head p { color: var(--encre-2); margin: 0; font-size: 1.1rem; }
.empty { background: var(--surface); padding: 28px; border-radius: var(--r-carte); }
.empty p:last-child { margin-bottom: 0; }

/* ---------- Plaque d'immatriculation ---------- */
.plate {
  display: inline-flex; align-items: stretch; align-self: flex-start; margin: 0 0 12px;
  background: #fff; border: 1.5px solid #20262b; border-radius: 4px; overflow: hidden;
  font-weight: 600; line-height: 1;
}
.plate-band {
  background: var(--bleu-plaque); color: #fff; width: 18px; display: flex; align-items: flex-end; justify-content: center;
  font-size: .62rem; padding-bottom: 3px; letter-spacing: 0;
}
.plate-text { padding: 5px 9px 4px; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; color: #15191c; font-variant-numeric: tabular-nums; }
.plate-lg .plate-band { width: 24px; font-size: .75rem; }
.plate-lg .plate-text { font-size: 1.15rem; padding: 7px 13px 6px; }

/* ---------- Cartes véhicules ---------- */
.vgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vcard {
  background: #fff; border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre-carte);
  transition: transform .12s ease-out, box-shadow .25s ease;
}
.vcard:hover { box-shadow: 0 2px 4px rgba(21, 24, 27, .05), 0 14px 34px rgba(21, 24, 27, .1); }
.vcard:active { transform: scale(.985); }
.vcard-link { display: flex; flex-direction: column; color: inherit; height: 100%; }
.vcard-link:hover { text-decoration: none; color: inherit; }
.vcard-img { position: relative; aspect-ratio: 3 / 2; background: var(--surface); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.flag {
  position: absolute; top: 12px; left: 12px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 980px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.flag-reserve { color: var(--ambre); }
.vcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.vcard-title { font-size: 1.25rem; letter-spacing: -0.018em; margin: 0; font-weight: 600; }
.vcard-version { color: var(--encre-2); margin: 3px 0 14px; font-size: .92rem; line-height: 1.35; }
.vcard-specs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--encre-2); font-size: .88rem; }
.vcard-price { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin: auto 0 0; font-variant-numeric: tabular-nums; }

/* Rail horizontal : défilement natif avec aimantation, élan et rebond du système */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px max(var(--gouttiere), calc((100vw - var(--wrap)) / 2 + var(--gouttiere))) 28px;
  scroll-padding-inline: max(var(--gouttiere), calc((100vw - var(--wrap)) / 2 + var(--gouttiere)));
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-track:focus-visible { outline-offset: -3px; }
.rail-controls { display: flex; justify-content: flex-end; gap: 10px; }
@media (hover: none) { .rail-controls { display: none; } }

/* ---------- Tuiles d'offres ---------- */
.tiles { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-tuile); overflow: hidden; color: var(--encre);
  transition: transform .12s ease-out;
}
.section-tint .tile { background: #fff; }
.tile:hover { text-decoration: none; }
.tile:active { transform: scale(.99); }
.tile-text { display: flex; flex-direction: column; gap: 6px; padding: 32px 32px 28px; flex: 1; }
.tile-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.12; }
.tile-summary { color: var(--encre-2); font-size: 1.02rem; }
.tile-link { color: var(--accent); font-weight: 500; margin-top: 6px; }
.tile-link::after { content: " ›"; }
.tile:hover .tile-link { text-decoration: underline; text-underline-offset: .2em; }
.tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Services ---------- */
.services { display: grid; gap: 28px 40px; margin: 0 0 40px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }
.services dt { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.services dd { margin: 0; color: var(--encre-2); line-height: 1.5; }

/* ---------- Visite ---------- */
.visit {
  display: grid; gap: 32px; background: var(--surface); border-radius: var(--r-tuile); padding: 36px 28px;
}
@media (min-width: 760px) { .visit { grid-template-columns: 1.2fr 1fr; padding: 56px; } }
.visit h2 { margin-bottom: .4em; }
.visit h3 { color: var(--encre-2); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.visit-address { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.01em; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.visit-hours { line-height: 1.6; }
.visit-phone { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.visit-phone a { color: var(--encre); }

/* ---------- Catalogue ---------- */
.catalogue { display: grid; gap: 32px; padding-bottom: 72px; }
.filters-panel { background: var(--surface); border-radius: var(--r-carte); padding: 20px; }
.filters-title { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-close, .sheet-grab, .filters-open { display: none; }
.filters .field select, .filters .field input { background-color: #fff; border-color: transparent; }
.reset { display: block; text-align: center; margin-top: 12px; font-size: .92rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 980px; color: var(--encre); background: var(--surface);
}
.pager a:hover { text-decoration: none; background: var(--surface-2); }
.pager a[aria-current="page"] { background: var(--encre); color: #fff; }

/* Barre de filtres horizontale (ordinateur et tablette) */
.filterbar-sticky, .filterbar-meta { display: none; }
@media (min-width: 900px) {
  .catalogue { grid-template-columns: 1fr; }
  .catalogue .filters-panel { display: none; }
  /* La barre reste collée sous la navigation pendant le défilement */
  .filterbar-sticky {
    display: block; position: sticky; top: var(--header-h); z-index: 40; padding: 10px 0;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    transition: box-shadow .2s ease;
  }
  .filterbar-sticky.is-stuck { box-shadow: 0 1px 0 rgba(21, 24, 27, .08), 0 8px 24px -16px rgba(21, 24, 27, .25); }
  body.bar-stuck .site-header { box-shadow: none; }
  .filterbar-meta { display: flex; margin-bottom: 24px; }
}
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filterbar .seg { background: var(--surface); }
.filterbar > select, .sort select {
  width: auto; min-height: 40px; padding: 8px 38px 8px 16px; font-size: .92rem;
  background-color: var(--surface); border-color: transparent; border-radius: 980px; background-position: right 14px center;
}
.filterbar > select:hover, .sort select:hover { background-color: var(--surface-2); }
.filterbar .btn-secondary { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.filterbar-meta { align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 6px; flex-wrap: wrap; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--encre-2); white-space: nowrap; }

/* Panneau « Plus de filtres » : il s'ouvre sous son bouton, depuis son bouton */
.more-filters { position: relative; }
.popover {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 320px;
  background: #fff; border-radius: var(--r-carte); padding: 18px 18px 16px;
  box-shadow: 0 2px 6px rgba(21, 24, 27, .06), 0 18px 48px rgba(21, 24, 27, .18);
  transform-origin: top left; opacity: 0; transform: scale(.96) translateY(-4px);
  transition: opacity .16s ease, transform .22s cubic-bezier(.32, .72, 0, 1);
}
.popover.is-open { opacity: 1; transform: none; }
.popover .field select, .popover .field input { background-color: var(--surface); border-color: transparent; }

/* Filtres actifs */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 14px; border-radius: 980px;
  background: rgba(10, 82, 196, .09); color: var(--accent); font-size: .88rem; font-weight: 500;
}
.chip span {
  width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 82, 196, .14); font-size: 1rem; line-height: 1;
}
.chip:hover { text-decoration: none; background: rgba(10, 82, 196, .15); }
.chip:active { transform: scale(.96); }
.chip-clear { font-size: .88rem; margin-left: 4px; }

/* Sur téléphone : les filtres deviennent un panneau qui glisse depuis le bas */
@media (max-width: 899px) {
  .filters-open { display: inline-flex; margin-top: 18px; }
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column;
    background: #fff; border-radius: 22px 22px 0 0; padding: 0 var(--gouttiere) calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(21, 24, 27, .18);
    transform: translate3d(0, 110%, 0); visibility: hidden;
    touch-action: none;
  }
  .filters-panel.is-ready { visibility: visible; }
  .filters-panel .filters { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: 8px; margin: 0 calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
  .filters-panel .filters .field select, .filters-panel .filters .field input { background-color: var(--surface); }
  /* Le bouton reste visible en bas du panneau pendant le défilement */
  .filters-panel .filters > .btn-primary {
    position: sticky; bottom: 0; z-index: 1;
    box-shadow: 0 -12px 16px 4px #fff, 0 12px 0 4px #fff;
  }
  .sheet-grab { display: flex; justify-content: center; padding: 8px 0 6px; cursor: grab; }
  .sheet-grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--trait); }
  .sheet-head { cursor: grab; padding-bottom: 4px; }
  .sheet-close { display: inline-flex; border: 0; background: rgba(21, 24, 27, .06); border-radius: 980px; padding: 6px 14px; font-size: .92rem; font-weight: 500; cursor: pointer; }
  .sheet-close:active { transform: scale(.95); }
  .sheet-scrim {
    position: fixed; inset: 0; z-index: 69; background: rgba(10, 12, 14, .38); opacity: 0;
  }
  .filters-panel.is-dragging, .filters-panel.is-dragging .sheet-grab, .filters-panel.is-dragging .sheet-head { cursor: grabbing; }
}
body.sheet-open { overflow: hidden; }

/* Pastille « Filtrer et trier » : apparaît quand le bouton du haut n'est plus visible (téléphone) */
.filters-fab { display: none; }
@media (max-width: 899px) {
  .filters-fab {
    display: inline-flex; align-items: center; gap: 8px;
    position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 12px 20px; border: 0; border-radius: 980px; cursor: pointer;
    background: rgba(21, 24, 27, .88); color: #fff; font: inherit; font-size: .95rem; font-weight: 500;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(21, 24, 27, .25);
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
    transition: transform .32s cubic-bezier(.32, .72, 0, 1), opacity .2s ease;
  }
  .filters-fab.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
  .filters-fab:active { transform: translate(-50%, 0) scale(.96); }
  .filters-fab .count { background: #fff; color: var(--encre); }
  body.sheet-open .filters-fab { opacity: 0; pointer-events: none; }
  /* La pastille ne doit pas cacher les liens du pied de page */
  body:has(.filters-fab) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) {
  .filterbar-sticky { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .filters-fab { background: var(--encre); }
}

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; color: var(--encre); }
.opt { color: var(--encre-2); font-weight: 400; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: #fff;
  border: 1px solid #c9ced4; border-radius: var(--r-champ); padding: 11px 14px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235c6670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input[type=file] { font-size: .95rem; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 82, 196, .18); }
input::placeholder, textarea::placeholder { color: var(--encre-3); }
.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; line-height: 1.45; }
.check input { margin-top: 2px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rouge); }
.error { color: var(--rouge); font-size: .9rem; margin: 6px 0 0; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-layout { display: grid; gap: 40px; padding-top: 8px; padding-bottom: 72px; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.form { max-width: 680px; }
.form .btn-primary { margin-top: 8px; padding-inline: 28px; }
.form-context { background: var(--surface); padding: 14px 18px; border-radius: var(--r-champ); }
.contact-card { background: var(--surface); padding: 28px; border-radius: var(--r-carte); }
@media (min-width: 900px) { .contact-card { position: sticky; top: calc(var(--header-h) + 16px); } }
.contact-card h2 { font-size: 1.4rem; letter-spacing: -0.015em; }
.contact-card h3 { font-size: 1rem; color: var(--encre-2); letter-spacing: 0; margin-top: 18px; }
.contact-card .visit-phone a { color: var(--encre); }
.notice { padding: 18px 22px; border-radius: var(--r-champ); margin-bottom: 24px; }
.notice h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: #e7f4ec; color: #0f4a28; }
.notice-ok h2 { color: #0f4a28; }
.notice-err { background: #fdeceb; color: #7a1a12; }
/* .section remet les marges latérales à zéro : on les rétablit quand elle est combinée à .wrap */
.wrap.section { padding-top: 32px; padding-left: var(--gouttiere); padding-right: var(--gouttiere); }

/* ---------- Fiche véhicule ---------- */
.vdetail { padding-top: 16px; padding-bottom: 40px; }
.crumbs { font-size: .88rem; color: var(--encre-2); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--encre-2); }
.vdetail-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .vdetail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }

.gallery-stage { position: relative; border-radius: var(--r-carte); overflow: hidden; background: var(--surface); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; aspect-ratio: 3 / 2;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; margin-top: -20px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(21, 24, 27, .12);
}
.gallery-prev:hover, .gallery-next:hover { background: rgba(255, 255, 255, .95); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
@media (hover: none) { .gallery-prev, .gallery-next { display: none; } }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px; margin: 0; padding: 4px 11px; border-radius: 980px;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(21, 24, 27, .55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs li { flex: 0 0 88px; }
.thumb {
  padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; width: 100%; aspect-ratio: 3 / 2;
  opacity: .55; transition: opacity .2s ease, box-shadow .2s ease, transform .1s ease-out;
}
.thumb:hover { opacity: .85; }
.thumb:active { transform: scale(.96); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

.vsummary { padding: 4px 0; }
@media (min-width: 980px) { .vsummary { position: sticky; top: calc(var(--header-h) + 20px); } }
.vsummary h1 { margin-bottom: .1em; }
.vsummary-version { color: var(--encre-2); margin-bottom: 16px; font-size: 1.1rem; }
.vsummary-price { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 8px 0 22px; font-variant-numeric: tabular-nums; }
.vsummary-actions { display: grid; gap: 10px; }
.vsummary-ref { color: var(--encre-3); font-size: .85rem; margin: 16px 0 0; }
.status { font-weight: 600; }
.status-reserve { color: var(--ambre); }
.status-vendu { color: var(--rouge); }

.vdetail-info { display: grid; gap: 48px; margin-top: 56px; max-width: 900px; }
.vdetail-info h2, .vdetail .section h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.vdetail .section { padding: 56px 0 24px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.specs dt { color: var(--encre-2); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.equipment { columns: 2 240px; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.equipment li { margin-bottom: 8px; break-inside: avoid; padding-left: 22px; position: relative; }
.equipment li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Actualités ---------- */
.ngrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.ncard { background: #fff; border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre-carte); transition: transform .12s ease-out; }
.ncard:active { transform: scale(.985); }
.ncard a { display: block; color: inherit; }
.ncard a:hover { text-decoration: none; }
.ncard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ncard-body { padding: 20px 22px 22px; }
.ncard h2, .ncard h3 { font-size: 1.3rem; letter-spacing: -0.018em; margin-bottom: .35em; font-weight: 600; }
.ncard p { color: var(--encre-2); margin-bottom: .4em; font-size: .97rem; }
.ncard a:hover h2, .ncard a:hover h3 { color: var(--accent); }
.tag-offer { display: inline-block; color: var(--vert) !important; font-weight: 600; font-size: .85rem; margin-bottom: 4px !important; }
.ncard-date { color: var(--encre-2); font-size: .88rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px !important; padding: 3px; background: var(--surface); border-radius: 980px; width: fit-content; }
.tabs a { padding: 7px 16px; border-radius: 980px; color: var(--encre-2); font-weight: 500; font-size: .92rem; }
.tabs a:hover { text-decoration: none; color: var(--encre); }
.tabs a[aria-current="page"] { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(21, 24, 27, .12); }

/* ---------- Article ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.article { max-width: 780px; padding-top: 24px; padding-bottom: 72px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article .lead { margin-left: 0; text-align: left; }
.article-img { border-radius: var(--r-carte); margin: 12px 0 28px; width: 100%; }
.article-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.legal-small { font-size: .85rem; color: var(--encre-2); border-top: 1px solid var(--trait); padding-top: 14px; margin-top: 28px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.012em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); color: var(--encre-2); padding: 48px 0 28px; font-size: .85rem; line-height: 1.55; }
.site-footer a { color: var(--encre-2); }
.site-footer a:hover { color: var(--encre); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1.4fr 1fr 1fr; } }
.footer-title { font-size: .85rem; font-weight: 600; color: var(--encre); letter-spacing: 0; margin: 0 0 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .78rem; color: var(--encre-3); }
.footer-bottom p { margin: 0; }
.footer-bottom a + a { margin-left: 20px; }

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active, .vcard:active, .tile:active, .spotlight:active, .ncard:active, .round-btn:active, .thumb:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-nav, .flag, .gallery-prev, .gallery-next, .gallery-count { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header { background: #fff; }
  .site-nav { background: #fff !important; }
  .flag, .gallery-prev, .gallery-next { background: #fff; }
  .gallery-count { background: rgba(21, 24, 27, .85); }
}
@media (prefers-contrast: more) {
  :root { --encre-2: #3b434a; --encre-3: #545d65; --trait: #9aa3ab; }
  .site-header { background: #fff; box-shadow: 0 1px 0 var(--trait); }
  .vcard, .ncard { box-shadow: 0 0 0 1px var(--trait); }
}

/* Véhicules vendus : visibles mais marqués */
.flag-vendu { color: var(--rouge); }
.vcard.is-sold .vcard-img img { filter: grayscale(.85); opacity: .75; }
.vcard.is-sold .vcard-price { color: var(--encre-3); }
.sold-note { background: var(--surface); border-radius: var(--r-champ); padding: 14px 16px; color: var(--encre-2); margin-bottom: 16px; }
