/* ============================================================
   autoVite.fr — Design System v3
   Inspiration marketplace : fond clair, cartes blanches, CTA orange
   ============================================================ */

:root {
  --orange: #f56b2a;
  --orange-hover: #df5a1c;
  --orange-dark: #c44a12;
  --orange-soft: #fff1e9;
  --orange-border: #ffd7c2;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #1f2937;
  --text-strong: #111827;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --green: #15803d;
  --green-soft: #ecfdf3;
  --green-border: #bbf7d0;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-border: #fecaca;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 68px;
  --nav-height: 62px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a {
  color: var(--text-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--orange); }

button, input, select, textarea { font: inherit; }

svg { flex-shrink: 0; }

:focus-visible {
  outline: 3px solid rgba(245, 107, 42, 0.45);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-wrap {
  padding-top: 24px;
  padding-bottom: 48px;
  min-height: calc(100vh - var(--header-height) - 220px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Plein écran Android : ne jamais masquer le logo sous l'heure/l'encoche. */
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}

.brand-block { display: flex; align-items: center; min-width: 0; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  white-space: nowrap;
}
.brand-logo:hover { color: var(--text-strong); }

.brand-mark { display: inline-flex; line-height: 0; }
.brand-mark-svg {
  display: block;
  width: 38px; height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(245, 107, 42, 0.25);
}

.brand-name { display: inline-flex; align-items: baseline; }
.brand-name-core { font-weight: 800; color: var(--text-strong); }
.brand-name-domain { font-weight: 600; color: var(--muted); font-size: 0.82em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.nav-links > a:not(.btn):hover,
.nav-links > a.is-active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.nav-links .nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:active { background: var(--orange-soft); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu
   IMPORTANT : l'overlay et le tiroir sont retirés du hit-testing tant qu'ils sont
   fermés. Une couche `position: fixed; inset: 0` avec `opacity: 0` interceptait
   tous les clics (barre inférieure, filtres, cartes). */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 24, 39, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-menu-overlay.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 111;
  background: var(--surface);
  padding: 16px 18px 28px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.25s ease, visibility 0s;
}

/* Garde-fou : aucun calque inactif ne doit capturer un clic. */
.mobile-menu-overlay:not(.is-open),
.mobile-menu:not(.is-open),
.avf-page-loading:not(.is-visible) { pointer-events: none !important; }

/* Redimensionnement vers le desktop : le tiroir ne doit jamais rester ouvert. */
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-overlay { display: none !important; pointer-events: none !important; }
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-title { font-weight: 800; font-size: 1.1rem; }
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu-links a svg { width: 20px; height: 20px; color: var(--muted); }
.mobile-menu-links a:hover { background: var(--surface-2); color: var(--text-strong); }
.mobile-menu-links a.nav-cta {
  margin-top: 10px;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}
.mobile-menu-links a.nav-cta svg { color: #fff; }

/* Bottom nav mobile */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 105;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px calc(8px + env(safe-area-inset-right, 0px))
    calc(6px + env(safe-area-inset-bottom, 0px))
    calc(8px + env(safe-area-inset-left, 0px));
  pointer-events: auto;
}
.bottom-nav-links {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}
.bottom-nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 62px;
  min-height: 48px;
  padding: 4px 6px;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-links a:active { background: var(--orange-soft); }
.bottom-nav-links a svg { width: 22px; height: 22px; }
.bottom-nav-links a.is-active,
.bottom-nav-links a:hover { color: var(--orange-dark); }
.bottom-nav-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 107, 42, 0.38);
}
.bottom-nav-plus svg { width: 21px; height: 21px; }
.bottom-nav-links a.is-deposit { color: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-lg svg { width: 18px; height: 18px; }

.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 0.85rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary,
.btn-cta {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-primary:hover,
.btn-cta:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 107, 42, 0.3);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-strong);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange-dark);
}
.btn-outline:hover { background: var(--orange-soft); color: var(--orange-dark); }

.btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Search hero ---------- */
.search-hero {
  position: relative;
  padding: 30px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 85% -10%, rgba(245, 107, 42, 0.13), transparent 45%),
    linear-gradient(180deg, #fff8f4 0%, #ffffff 62%, var(--bg) 100%);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.search-hero-copy { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.search-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.search-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.search-sub {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.search-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.search-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(132px, 0.55fr) minmax(142px, 0.6fr) minmax(190px, 0.85fr) auto;
  gap: 10px;
  align-items: end;
}
.field-keyword { min-width: 0; }
.search-keyword {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-keyword svg {
  position: absolute;
  left: 14px;
  width: 20px; height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.search-keyword input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.98rem;
  font-weight: 500;
}
.search-keyword input::placeholder { color: var(--muted-light); font-weight: 400; }
.search-keyword input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 107, 42, 0.16);
}
.search-main .field input,
.search-main .field select { height: 46px; }
.location-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.location-input-wrap svg {
  position: absolute;
  left: 11px;
  width: 17px; height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.location-input-wrap input { padding-left: 35px; }
.search-main .search-keyword input {
  padding: 0 14px 0 44px;
  font-size: 0.98rem;
}
.search-main .location-input-wrap input { padding-left: 35px; }
.btn-search {
  min-width: 145px;
  height: 46px;
  font-size: 0.95rem;
}

.search-quick {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.8fr 0.9fr 0.9fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child,
.field > label,
.field > .field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
}
.field input::placeholder { color: var(--muted-light); }
.field input[type="number"] { appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 107, 42, 0.14);
}
.price-range {
  display: flex;
  align-items: center;
  gap: 5px;
}
.price-range input { width: 50%; }
.range-sep { color: var(--muted-light); font-weight: 600; flex-shrink: 0; }

.search-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.filters-toggle svg { width: 16px; height: 16px; color: var(--orange-dark); }
.filters-toggle:hover { color: var(--orange-dark); }
.filters-toggle-chevron { font-size: 1rem; line-height: 1; transition: transform 0.2s ease; }
.filters-toggle[aria-expanded="true"] .filters-toggle-chevron { transform: rotate(180deg); }
.search-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.search-reset svg { width: 14px; height: 14px; }
.search-reset:hover { color: var(--orange-dark); }

.search-advanced {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 10px;
  align-items: end;
}
.ac-loc-wrap { position: relative; }
.gps-actions { display: flex; align-items: center; gap: 8px; }
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.filter-check input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--orange);
}
.advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-inline-warn {
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #92400e;
  font-size: 0.88rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 1080px;
  margin: 14px auto 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--orange-border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.filter-chip span { color: var(--muted); font-weight: 500; }
.filter-chip svg { width: 13px; height: 13px; color: var(--muted); }
.filter-chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.filter-chip-clear {
  background: transparent;
  border-color: transparent;
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Reassurance ---------- */
.reassurance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.reassurance-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.reassurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.reassurance-icon svg { width: 20px; height: 20px; }
.reassurance-item strong { display: block; font-size: 0.86rem; color: var(--text-strong); }
.reassurance-item small { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

/* ---------- Results toolbar ---------- */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
}
.results-summary { margin: 0; color: var(--muted); font-size: 0.92rem; }
.results-count { color: var(--text-strong); font-size: 1.16rem; font-weight: 800; }
.results-page-hint { color: var(--muted); font-size: 0.84rem; }

.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.sort-form select {
  height: 40px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.sort-form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 107, 42, 0.14); }

/* ---------- Listing grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.vehicle-card:hover {
  transform: translateY(-2px);
  border-color: #cfd4dc;
  box-shadow: var(--shadow-hover);
}

.vehicle-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eceef1;
  overflow: hidden;
}
.vehicle-card-media-link { display: block; width: 100%; height: 100%; }
.vehicle-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.vehicle-card:hover .vehicle-card-img { transform: scale(1.025); }

.vehicle-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%; height: 100%;
  color: var(--muted);
  font-size: 0.8rem;
  background: linear-gradient(145deg, #f2f4f6, #e8ebef);
}
.vehicle-card-placeholder svg { width: 38px; height: 38px; }

.vehicle-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 68px);
  pointer-events: none;
}
.vehicle-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.vehicle-badge-ok { background: var(--green-soft); color: var(--green); }
.vehicle-badge-neutral { background: rgba(255, 255, 255, 0.94); color: var(--text); }
.vehicle-badge-demo { background: var(--orange-soft); color: var(--orange-dark); }
.vehicle-badge-seller {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}
.vehicle-photo-count {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
}
.vehicle-photo-count svg { width: 13px; height: 13px; }

.favorite-btn {
  position: absolute;
  top: 9px; right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #4b5563;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.favorite-btn svg { width: 20px; height: 20px; }
.favorite-btn:hover { color: var(--orange); transform: scale(1.06); }
.favorite-btn.is-active { color: var(--orange); background: #fff; }
.favorite-btn.is-active svg { fill: var(--orange); }
.favorite-btn-lg {
  position: static;
  width: auto; height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
  flex-shrink: 0;
}
.favorite-btn-lg svg { width: 18px; height: 18px; }

.vehicle-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px 15px;
}
.vehicle-card-price {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.vehicle-card-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vehicle-card-title a { color: inherit; }
.vehicle-card-title a:hover { color: var(--orange-dark); }

.vehicle-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.vehicle-card-meta li { display: inline-flex; align-items: center; white-space: nowrap; }
.vehicle-card-meta li + li::before {
  content: "•";
  margin: 0 4px;
  color: var(--muted-light);
}
.vehicle-card-loc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}
.vehicle-card-loc > svg { width: 13px; height: 13px; color: var(--muted-light); }
.vehicle-card-age { color: var(--muted-light); }
.meta-sep { color: var(--muted-light); }
.vehicle-card-distance {
  margin: 1px 0 0;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Legacy card classes (kept for compatibility) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.card a.card-link { display: block; color: inherit; }
.card-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }
.card-placeholder { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #eceef1; }
.card-body { padding: 14px; }
.card-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.card-price { margin: 0; font-size: 1.3rem; font-weight: 800; }
.card-meta, .card-loc, .card-distance { margin: 0 0 4px; color: var(--muted); font-size: 0.8rem; }
.card-badges { display: flex; gap: 6px; margin-bottom: 6px; }
.pill { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-dark); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.pill-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.pagination-pages { display: flex; align-items: center; gap: 5px; }
.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}
.pagination-btn svg { width: 17px; height: 17px; }
.pagination-btn:hover,
.pagination-page:hover { border-color: var(--orange); color: var(--orange-dark); }
.pagination-page.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.pagination-btn.is-disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb-sep { color: var(--muted-light); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ---------- Detail page ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.detail-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.detail-head {
  position: relative;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.detail-head-main { padding-right: 110px; }
.detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.seller-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-h1 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.detail-quick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
}
.detail-quick-meta li + li::before { content: "•"; margin: 0 7px; color: var(--muted-light); }
.detail-head .favorite-btn-lg { position: absolute; top: 22px; right: 24px; }
.detail-price {
  margin: 16px 0 5px;
  color: var(--text-strong);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.detail-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.detail-location > svg { width: 15px; height: 15px; color: var(--muted-light); }
.detail-distance { color: var(--orange-dark); font-weight: 600; }

/* Gallery */
.detail-gallery { background: #101215; }
.detail-gallery-stage { position: relative; }
.detail-gallery-main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  object-fit: cover;
  background: #101215;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.gallery-counter {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.detail-thumbs {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  background: #101215;
  overflow-x: auto;
  scrollbar-width: thin;
}
.detail-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #2b2f36;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.detail-thumb:hover,
.detail-thumb.is-active { opacity: 1; border-color: var(--orange); }
.detail-thumb img { display: block; width: 92px; height: 62px; object-fit: cover; }

.detail-gallery-empty { background: var(--surface-2); }
.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 300px;
  color: var(--muted);
  font-size: 0.88rem;
}
.detail-placeholder svg { width: 48px; height: 48px; }

/* Content */
.detail-content { padding: 24px; }
.detail-section + .detail-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.detail-heading {
  margin: 0 0 13px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
}
.spec-table tr:nth-child(odd) { background: var(--surface-2); }
.spec-table th,
.spec-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
}
.spec-table td { color: var(--text-strong); font-weight: 600; }

/* Accordéon « voir plus » : compact et mobile-friendly. */
.spec-more { margin-top: 12px; }
.spec-more summary,
.form-optional-details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--orange-dark);
  font-size: 0.84rem;
  font-weight: 800;
  -webkit-user-select: none;
  user-select: none;
}
.spec-more summary::-webkit-details-marker,
.form-optional-details summary::-webkit-details-marker { display: none; }
.spec-more summary::after,
.form-optional-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.spec-more[open] summary::after,
.form-optional-details[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.spec-more .spec-table { margin-top: 12px; }
.form-optional-details { margin-bottom: 4px; }
.form-optional-details > .form-grid { margin-top: 14px; }
.crit-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-desc {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.detail-expiry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.detail-expiry svg { width: 14px; height: 14px; }
.detail-expiry strong { color: var(--text); }

/* Sidebar */
.detail-sidebar { display: flex; flex-direction: column; gap: 14px; }
.contact-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.contact-panel.is-sticky { position: sticky; top: calc(var(--header-height) + 16px); }
.contact-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.seller-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  color: var(--orange-dark);
  font-size: 1rem;
  font-weight: 800;
}
.seller-identity { display: flex; flex-direction: column; line-height: 1.35; }
.seller-identity strong { font-size: 0.9rem; color: var(--text-strong); }
.seller-identity small { color: var(--muted); font-size: 0.75rem; }
.contact-panel-price {
  margin: 0 0 2px;
  color: var(--text-strong);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.contact-panel-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}
.contact-panel-loc svg { width: 14px; height: 14px; }
.contact-panel .btn-block + .btn-block,
.contact-panel .phone-reveal { margin-top: 8px; }
.phone-reveal .btn-block + .btn-block { margin-top: 8px; }
.contact-note {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.contact-trust {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}
.contact-trust li { position: relative; padding-left: 18px; }
.contact-trust li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 800;
}
.contact-lines { margin: 0 0 10px; font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }

.policy-mini {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.sidebar-title { margin: 0 0 7px; font-size: 0.86rem; font-weight: 800; color: var(--text-strong); }
.sidebar-muted { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.policy-mini .btn { margin-top: 10px; }
.trust-panel { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trust-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.trust-list li + li { margin-top: 5px; }

/* Mobile contact CTA */
.detail-mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
  z-index: 94;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.detail-mobile-price { display: flex; flex-direction: column; line-height: 1.2; }
.detail-mobile-price small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.detail-mobile-price strong { color: var(--text-strong); font-size: 1.16rem; font-weight: 800; }

/* ---------- Forms ---------- */
.form-shell { max-width: 780px; margin: 0 auto; }

.sell-hero {
  position: relative;
  padding: 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 90% -20%, rgba(245, 107, 42, 0.18), transparent 48%),
    linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
}
.hero-eyebrow {
  margin: 0 0 7px;
  color: #fdba8c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.sell-hero h1 {
  margin: 0 0 9px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero-lead { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; }
.sell-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
}
.sell-hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.sell-hero-points .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(245, 107, 42, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.form-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}
.form-section-gap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.form-section-copy { display: flex; flex-direction: column; line-height: 1.35; }
.form-section-copy > span { font-size: 0.98rem; font-weight: 800; color: var(--text-strong); }
.form-section-copy small { margin-top: 2px; color: var(--muted); font-size: 0.8rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-col-full { grid-column: 1 / -1; }

.form-panel label { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.form-panel label .hint { font-weight: 400; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-panel input::placeholder,
.form-panel textarea::placeholder { color: var(--muted-light); }
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 107, 42, 0.14);
}
.form-panel textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-panel input[type="file"] {
  padding: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  cursor: pointer;
}
.form-panel input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

/* Upload photos : sélection multiple + aperçu */
.photo-upload { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo-upload-label { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.photo-upload .hint { font-weight: 400; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.form-panel .photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form-panel .photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 154px;
  padding: 22px 18px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.form-panel .photo-dropzone:hover,
.form-panel .photo-dropzone.is-dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.form-panel .photo-dropzone.is-dragover { transform: translateY(-1px); }
.form-panel .photo-input:focus-visible + .photo-dropzone {
  outline: 3px solid rgba(245, 107, 42, 0.45);
  outline-offset: 2px;
}
.photo-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  box-shadow: var(--shadow-card);
}
.photo-dropzone-icon svg { width: 21px; height: 21px; }
.photo-dropzone-title { color: var(--text-strong); font-size: 0.94rem; font-weight: 800; }
.photo-dropzone-sub { color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.photo-selection { margin-top: 4px; }
.photo-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.photo-selection-head strong { font-size: 0.8rem; color: var(--text); }
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.photo-preview-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview-order {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}
.photo-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.photo-preview-remove:hover { background: var(--red); }
.photo-feedback { min-height: 1.2rem; margin: 2px 0 0; color: var(--muted); font-size: 0.78rem; }
.photo-feedback.is-error { color: var(--red); }
.photo-feedback.is-ok { color: var(--green); }

.geo-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.geo-label-text { color: var(--muted); font-size: 0.8rem; line-height: 1.45; max-width: 46ch; }
.sell-geo-note { min-height: 1.2rem; margin: 4px 0 10px; color: var(--muted); font-size: 0.78rem; }
.help-ac-label { position: relative; }
.input-phone { font-size: 1rem !important; letter-spacing: 0.02em; }
.sell-phone-code-row { margin-top: 12px; padding: 12px; border: 1px solid var(--orange-border); border-radius: var(--radius); background: var(--orange-soft); }
.sell-phone-code-row .phone-verify-actions { margin-top: 8px; }

.form-tip {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.form-tip strong { display: block; margin-bottom: 3px; color: var(--text-strong); font-size: 0.86rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Autocomplete */
.fr-ac-panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.fr-ac-list { list-style: none; margin: 0; padding: 5px 0; }
.fr-ac-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.fr-ac-item:last-child { border-bottom: none; }
.fr-ac-item:hover { background: var(--orange-soft); }
.fr-ac-label { font-size: 0.9rem; font-weight: 700; color: var(--text-strong); }
.fr-ac-meta { font-size: 0.76rem; color: var(--muted); }

/* ---------- Flash & empty ---------- */
.flash-wrap { margin-bottom: 16px; }
.flash {
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  animation: flash-in 0.25s ease;
}
.flash + .flash { margin-top: 8px; }
.flash.success { background: var(--green-soft); border-color: var(--green-border); color: #166534; }
.flash.error { background: var(--red-soft); border-color: var(--red-border); color: #991b1b; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty h2 { margin: 0 0 6px; color: var(--text-strong); font-size: 1.16rem; font-weight: 800; }
.empty p { margin: 0 0 6px; font-size: 0.9rem; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }

/* ---------- Static pages (FAQ / guide) ---------- */
.static-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.static-page-title { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-strong); }
.static-page-intro { margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.faq-list { margin: 0; padding: 0; list-style: none; counter-reset: faq; }
.faq-item { padding: 18px 0; border-top: 1px solid var(--border); counter-increment: faq; }
.faq-q { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--text-strong); }
.faq-q::before {
  content: counter(faq);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
}
.faq-a p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.static-section { margin: 0 0 20px; }
.static-section h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: var(--text-strong); }
.static-section p { margin: 0; color: var(--muted); font-size: 0.91rem; line-height: 1.7; }
.static-disclaimer {
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.82rem !important;
  line-height: 1.55;
}
.static-page-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 52px;
  padding: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(245, 107, 42, 0.1), transparent 34%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.07);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #ff9a62 34%, rgba(245, 107, 42, 0) 92%);
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 36px;
  padding: 38px 34px 30px;
}
.footer-brand p { margin: 0 0 8px; max-width: 46ch; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.footer-mark { display: inline-block; margin-bottom: 9px; font-size: 1.22rem; letter-spacing: -0.02em; }
.footer-mark .brand-name-core { color: var(--text-strong); }
.footer-note {
  margin-top: 12px !important;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  color: #7c3a12;
  font-size: 0.78rem !important;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title {
  position: relative;
  margin-bottom: 8px;
  padding-bottom: 9px;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-col a:hover { color: var(--orange-dark); transform: translateX(2px); }
.footer-list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.footer-list li { position: relative; padding-left: 16px; }
.footer-list li + li { margin-top: 3px; }
.footer-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 20px 20px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted-light);
  font-size: 0.73rem;
}

/* ---------- Loading overlay & skeleton ---------- */
.avf-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
}
.avf-page-loading.is-visible { display: flex; pointer-events: auto; }
.avf-page-loading__panel {
  width: 100%;
  max-width: 340px;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.avf-page-loading__spinner {
  width: 36px; height: 36px;
  margin: 0 auto 12px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: avf-spin 0.75s linear infinite;
}
@keyframes avf-spin { to { transform: rotate(360deg); } }
.avf-page-loading__title { margin: 0 0 3px; color: var(--text-strong); font-size: 0.98rem; font-weight: 800; }
.avf-page-loading__sub { margin: 0; color: var(--muted); font-size: 0.8rem; }

.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%); background-size: 200% 100%; animation: skeleton-loading 1.4s infinite; border-radius: var(--radius); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-card-img { aspect-ratio: 4 / 3; }
.skeleton-card-body { padding: 14px; }
.skeleton-line { height: 13px; margin-bottom: 8px; }
.skeleton-line.short { width: 55%; }
.skeleton-line.medium { width: 78%; }
.skeleton-line.long { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search-main { grid-template-columns: 1fr 1fr; }
  .field-keyword { grid-column: 1 / -1; }
  .search-quick { grid-template-columns: repeat(4, 1fr); }
  .field-budget { grid-column: span 2; }
  .advanced-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .bottom-nav { display: block; }
  .main-wrap { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: 2; }
  .contact-panel.is-sticky { position: static; }
  .detail-mobile-cta { display: flex; }
  .detail-main { padding-bottom: 6px; }
  .detail-gallery-main { max-height: 460px; }

  .search-hero { padding: 24px 20px; }
  .search-quick { grid-template-columns: repeat(3, 1fr); }
  .field-budget { grid-column: span 1; }
  .advanced-grid { grid-template-columns: 1fr 1fr; }
  .reassurance-strip { grid-template-columns: 1fr 1fr; }
  .reassurance-item:last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 30px 26px 24px; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { border-radius: 20px; }
}

@media (max-width: 680px) {
  :root { --header-height: 60px; }

  .shell { padding: 0 14px; }
  .main-wrap { padding-top: 14px; }

  .brand-name { font-size: 1.1rem; }
  .brand-mark-svg { width: 34px; height: 34px; }

  .search-hero { margin-bottom: 14px; padding: 20px 14px 16px; border-radius: var(--radius-lg); }
  .search-hero-copy { text-align: left; margin-bottom: 16px; }
  .search-hero h1 { font-size: 1.45rem; }
  .search-sub { font-size: 0.86rem; }

  .search-panel { padding: 12px; }
  .search-main { grid-template-columns: 1fr 1fr; gap: 9px; }
  .field-keyword { grid-column: 1 / -1; }
  .search-main .field input,
  .search-main .field select { height: 48px; font-size: 16px; }
  .btn-search { width: 100%; height: 48px; }

  .search-quick { grid-template-columns: 1fr 1fr; gap: 9px; }
  .field-budget,
  .field-fuel { grid-column: 1 / -1; }
  .search-panel-footer { margin-top: 12px; }

  .advanced-grid { grid-template-columns: 1fr; }
  .advanced-actions .btn { flex: 1 1 auto; }

  .reassurance-strip { grid-template-columns: 1fr; gap: 8px; }
  .reassurance-item:last-child { grid-column: auto; }
  .reassurance-item { padding: 10px 12px; }

  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .results-toolbar .sort-form { width: 100%; justify-content: space-between; }

  .grid { grid-template-columns: 1fr; gap: 13px; }
  .vehicle-card-media { aspect-ratio: 4 / 3; }
  .vehicle-card-title { font-size: 0.95rem; }
  .vehicle-card-price { font-size: 1.3rem; }
  .favorite-btn { width: 42px; height: 42px; }

  .detail-head { padding: 18px 16px 15px; }
  .detail-head-main { padding-right: 0; padding-top: 34px; }
  .detail-head .favorite-btn-lg { top: 14px; left: 16px; right: auto; }
  .detail-h1 { font-size: 1.22rem; }
  .detail-price { font-size: 1.6rem; }
  .detail-content { padding: 18px 16px; }
  .detail-gallery-main { aspect-ratio: 4 / 3; max-height: none; }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }
  .detail-thumb img { width: 76px; height: 54px; }
  .spec-table th { width: 48%; }
  .spec-table th, .spec-table td { padding: 10px 11px; font-size: 0.82rem; }
  .detail-footer-actions { flex-direction: column; align-items: flex-start; }

  .form-shell { max-width: none; }
  .sell-hero { padding: 22px 18px; border-radius: var(--radius-lg); }
  .sell-hero h1 { font-size: 1.4rem; }
  .sell-hero-points { font-size: 0.75rem; gap: 6px 12px; }
  .form-panel { padding: 18px 15px; }
  .form-grid,
  .form-grid-3 { grid-template-columns: 1fr; }
  .photo-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-section-copy > span { font-size: 0.94rem; }
  .form-actions .btn { width: 100%; }
  .form-actions .btn:last-child { order: 2; }

  .static-page { padding: 20px 16px; }
  .site-footer { margin-top: 34px; border-radius: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 26px 18px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin: 0 12px 12px; padding: 12px 14px; border-radius: 12px; }
}

@media (max-width: 380px) {
  .search-main { grid-template-columns: 1fr; }
  .field-keyword { grid-column: auto; }
  .search-quick { grid-template-columns: 1fr; }
  .field-budget { grid-column: auto; }
  .photo-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .bottom-nav,
  .mobile-menu,
  .mobile-menu-overlay,
  .search-hero,
  .favorite-btn,
  .pagination,
  .detail-mobile-cta,
  .avf-page-loading { display: none !important; }
  .main-wrap { padding: 0; }
  .vehicle-card, .detail-main, .contact-panel { box-shadow: none; border: 1px solid #ccc; }
  .app-promo { display: none !important; }
}

/* ---------- Application Android : CTA visibles ---------- */
.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}
.btn-app-download:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.app-promo {
  background: linear-gradient(90deg, var(--orange-soft), var(--surface, #fff));
  border-bottom: 1px solid var(--border);
}
.app-promo-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.app-promo-icon { font-size: 1.5rem; line-height: 1; }
.app-promo-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.app-promo-copy strong { color: var(--text-strong); font-size: 0.9rem; }
.app-promo-copy span { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.app-promo-cta { white-space: nowrap; padding: 9px 16px; }
.app-promo-close {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.footer-app-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 13px;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  transform: none !important;
}
.footer-app-cta:hover,
.footer-app-cta:focus {
  background: var(--orange-dark);
  color: #fff !important;
  transform: none !important;
}

/* Masquage définitif dans l'application Android native (doublon de la règle
   injectée par le script du <head>). */
.in-native-app .hide-in-app,
.in-native-app [data-in-app="true"] { display: none !important; }

@media (max-width: 860px) {
  .app-promo-inner { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .app-promo-copy { flex-basis: calc(100% - 70px); }
  .app-promo-cta { width: 100%; justify-content: center; }
}

/* ---------- Assistant IA (description) ---------- */
.ai-desc-block label { margin-bottom: 8px; }
.ai-desc-btn { align-self: flex-start; margin-bottom: 8px; }
.ai-desc-btn[disabled] { opacity: 0.6; cursor: progress; }
.ai-desc-feedback {
  min-height: 1em;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.ai-desc-feedback.is-error {
  padding: 9px 12px;
  border: 1px solid var(--orange-border, #ffd7c2);
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
}
.ai-desc-feedback.is-ok {
  padding: 9px 12px;
  border: 1px solid #bfe6cf;
  border-radius: var(--radius);
  background: #eefaf2;
  color: #176c3a;
  font-weight: 700;
}
.ai-desc-feedback.is-loading { color: var(--orange-dark); font-weight: 700; }
.ai-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: avf-spin 0.7s linear infinite;
}
@keyframes avf-spin { to { transform: rotate(360deg); } }
