/* =============================================
   GARAGE AD — STYLESHEET
   Design System: Industrial Precision
   Fonts: Barlow Condensed + Barlow (chargées via <link> dans le <head>)
============================================= */

/* ── FALLBACK FONTS (réduisent le CLS pendant le swap) ── */
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial');
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Condensed Fallback';
  src: local('Arial Narrow'), local('Arial');
  size-adjust: 88%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Charte Parenthèse Automobile / AD */
  --red:          #cc0605;
  --red-dark:     #99040a;
  --blue:         #00387b;
  --blue-light:   #003779;
  --blue-dark:    #000001;
  --blue-grad:    linear-gradient(135deg, #003779 0%, #000001 100%);
  --black:        #000001;
  --dark:         #00387b;          /* sections "sombres" → bleu marine */
  --card-bg:      #002a5a;
  --border:       rgba(255,255,255,0.08);
  --white:        #ffffff;
  --off-white:    #f8f6f3;
  --gray:         #888888;
  --gray-light:   #e8e8e8;
  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  --font-body:    'Barlow', 'Barlow Fallback', sans-serif;
  --radius:       6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.2);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ──────────────────────────────── */
.site-header {
  position: fixed; top: var(--marquee-h, 0); left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

/* Quand un marquee fixed est présent, on pousse le contenu pour qu'il ne soit pas recouvert */
body { padding-top: var(--marquee-h, 0); }

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-main {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-icon {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .logo-main { height: 38px; }
  .logo-icon { height: 36px; }
  .logo { gap: 8px; }
}

/* Compat ancien header (footer / pages legacy) */
.logo-badge {
  width: 44px; height: 44px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: 0.5px; text-transform: uppercase; }
.logo-network { font-size: 11px; font-weight: 500; color: var(--red); letter-spacing: 1.5px; text-transform: uppercase; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

/* Variante 2-lignes (label + sous-titre) — utilisée par renderMainNav() */
.main-nav .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 6px 12px;
  gap: 1px;
}
.nav-link-label { display: block; }
.nav-link-sub {
  display: block;
  font-family: var(--font-body, system-ui);
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: .3px;
  text-transform: none;
  margin-top: 1px;
}
.nav-link:hover .nav-link-sub,
.nav-link.active .nav-link-sub { color: #475569; }

/* Tablette/mobile : on cache le sous-titre, retour au label seul */
@media (max-width: 1100px) {
  .nav-link-sub { display: none; }
}

.nav-link:hover,
.nav-link.active { color: var(--dark); background: rgba(0,56,123,0.08); }

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Mobile menu button */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; background: none;
}

.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--white);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  font-size: 28px;
  padding: 12px 24px;
  width: 100%; text-align: center;
}

.mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; color: var(--dark);
  font-size: 32px; line-height: 1;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--blue-grad);
  display: flex; align-items: flex-end;
  padding-bottom: 80px;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

/* About : photo atelier avec chips garanties superposées (remplace les 3 cards stats) */
.about-photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  min-height: 480px;
}
.about-photo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,.85) 100%);
}
.about-photo-chips {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 2;
}
.about-chip {
  display: flex; flex-direction: column;
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid rgba(255,255,255,.18);
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
}
.about-chip--primary { border-left-color: var(--red); }
.about-chip strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px;
  line-height: 1.1;
}
.about-chip em {
  font-style: normal;
  font-size: 12px; color: rgba(255,255,255,.65);
  margin-top: 3px;
}
@media (max-width: 900px) {
  .about-photo-card { min-height: 380px; margin-top: 32px; }
}

/* Photo de fond subtile (showroom auto) — donne du caractère sans gêner la lecture.
   L'opacité est faible et le dégradé .hero-bg vient l'assombrir vers le bas. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1800&q=70');
  background-size: cover;
  background-position: center;
  opacity: .14;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(204,6,5,0.18) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 40%, rgba(0,0,1,0.95) 100%);
  z-index: 1;
}

/* Geometric grid decoration */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-accent {
  position: absolute;
  top: 15%; right: 10%;
  width: 400px; height: 400px;
  border: 1px solid rgba(204,6,5,0.2);
  border-radius: 50%;
  z-index: 0;
}

.hero-accent::after {
  content: '';
  position: absolute; inset: 30px;
  border: 1px solid rgba(204,6,5,0.1);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}

.hero-eyebrow span {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--red);
  display: block;
}

/* Mobile : on masque l'eyebrow pour remonter le contenu et accélérer la décision.
   Le header est position:fixed (height 72px), le hero doit donc commencer à 72px+
   pour ne pas passer dessous. */
@media (max-width: 768px) {
  .hero-eyebrow { display: none; }
  .hero {
    padding-top: 96px;     /* 72px header + 24px d'air */
    padding-bottom: 56px;
    min-height: auto;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero-desc {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,6,5,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Bouton "Vendre ma voiture" — fond clair pour ressortir sur le bleu marine */
.btn-sell {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--white);
}
.btn-sell:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Bouton "Confier ma recherche" : ghost translucide pour ne pas concurrencer
   les CTA primaires, mais visible sur le fond foncé du hero */
.btn-search {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-search:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

.btn-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(204,6,5,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── SECTION BASE ─────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-dark  { background: var(--blue-grad); color: var(--white); }
.section-black { background: var(--blue-grad); color: var(--white); }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  margin-top: 16px;
  font-size: 16px; font-weight: 400;
  /* contraste AA sur fond blanc : #555 = ratio 7.46:1 (avant : #888 = 3.54:1, échouait WCAG) */
  color: #555;
  max-width: 520px;
  line-height: 1.7;
}

/* sur fond foncé : 0.85 alpha = ratio ~10:1 sur noir (avant 0.5 = 3.5:1, KO) */
.section-subtitle.light { color: rgba(255,255,255,0.85); }

/* ── STATS BAR ────────────────────────────── */
.stats-bar {
  background: var(--blue-grad);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── SERVICES ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--card-bg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #1f1f1f; }

.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 24px;
  color: var(--red);
}

.service-number {
  position: absolute; top: 32px; right: 32px;
  font-family: var(--font-display);
  font-size: 64px; font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.service-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ── VEHICLES FEATURED ────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex; flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vehicle-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e0e0e0;
}

.vehicle-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.vehicle-card:hover .vehicle-image img { transform: scale(1.04); }

/* Placeholder when no image */
.vehicle-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}

.vehicle-placeholder svg { opacity: 0.3; }

.vehicle-placeholder-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  letter-spacing: 1px;
}

.vehicle-badge {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 6px;
}

.badge {
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 3px;
}

.badge-new { background: var(--dark); color: var(--white); }
.badge-used { background: var(--white); color: var(--dark); border: 1px solid #ddd; }
.badge-discount {
  background: var(--red);
  color: var(--white);
}

.vehicle-body {
  padding: 24px;
  flex: 1; display: flex; flex-direction: column;
}

.vehicle-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.vehicle-tag {
  padding: 3px 8px;
  background: var(--off-white);
  font-size: 12px; font-weight: 500;
  color: var(--gray);
  border-radius: 3px;
}

.vehicle-tag.energy { background: #e8f5e9; color: #2e7d32; }

.vehicle-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.vehicle-version {
  font-size: 13px; font-weight: 400;
  color: var(--gray);
  margin-bottom: 16px;
}

.vehicle-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 20px;
}

.spec-item { display: flex; flex-direction: column; }

.spec-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--gray);
}

.spec-value {
  font-size: 14px; font-weight: 500;
  color: var(--dark);
}

.vehicle-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.vehicle-price {
  display: flex; flex-direction: column;
}

.price-old {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
}

.price-main {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.price-ttc {
  font-size: 11px; color: var(--gray);
  font-weight: 400;
}

.btn-card {
  padding: 10px 20px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-card:hover {
  background: var(--red);
  transform: translateY(-1px);
}

/* ── CATALOGUE FILTERS ────────────────────── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 24px 0;
  position: sticky; top: 72px; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filters-inner {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }

.filter-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray);
}

.filter-select {
  padding: 9px 36px 9px 12px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  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 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 150px;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--red);
}

.filter-actions { display: flex; gap: 8px; align-items: flex-end; }

.btn-filter-reset {
  padding: 9px 16px;
  background: transparent;
  border: 1.5px solid var(--gray-light);
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-filter-reset:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-filter-apply {
  padding: 9px 20px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-filter-apply:hover { background: var(--red); }

/* Results header */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.results-count {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}

.results-count span { color: var(--red); }

.results-sort {
  display: flex; align-items: center; gap: 10px;
}

.sort-label {
  font-size: 13px; color: var(--gray);
  white-space: nowrap;
}

/* Catalogue page specific grid */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Empty state */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 12px;
}

.no-results p { color: var(--gray); }

/* ── VEHICLE DETAIL ────────────────────────── */
.vehicle-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.detail-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
  aspect-ratio: 4/3;
  position: relative;
}

.detail-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.detail-panel {
  position: sticky; top: 100px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.detail-marque {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.detail-version {
  font-size: 14px; color: var(--gray);
  margin-bottom: 24px;
}

.detail-price-block {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.detail-price-sub {
  font-size: 13px; color: var(--gray);
  margin-top: 4px;
}

.detail-price-old {
  font-size: 14px; color: var(--gray);
  text-decoration: line-through;
  margin-top: 8px;
}

.detail-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 24px;
}

.detail-spec {
  display: flex; flex-direction: column;
  padding: 12px;
  background: var(--off-white);
  border-radius: var(--radius);
}

.detail-spec-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--gray); margin-bottom: 4px;
}

.detail-spec-value {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--dark);
}

.detail-cta {
  width: 100%; padding: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  margin-bottom: 12px;
}

.detail-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,6,5,0.35);
}

.detail-cta-secondary {
  width: 100%; padding: 14px;
  background: transparent;
  border: 1.5px solid var(--gray-light);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}

.detail-cta-secondary:hover {
  border-color: var(--dark);
  background: var(--off-white);
}

/* Options list */
.options-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 24px;
}

.option-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--dark);
}

.option-item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── SERVICES PAGE ────────────────────────── */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-full-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.service-full-card:hover {
  border-left-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-full-icon {
  width: 64px; height: 64px;
  background: #fff0f0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--red);
}

.service-full-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-full-desc {
  font-size: 15px; font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex; flex-direction: column; gap: 8px;
}

.service-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--dark);
}

.service-feature::before {
  content: '→';
  color: var(--red);
  font-weight: 700;
}

/* ── CONTACT ──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--dark);
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,6,5,0.08);
}

.form-textarea { min-height: 140px; resize: vertical; }

/* Variante compacte pour les formulaires de conversion (fiche véhicule, etc.) :
   gap plus serré, inputs moins épais, textarea plus courte. */
.vehicle-form-compact { gap: 10px; }
.vehicle-form-compact .form-row { gap: 10px; margin-bottom: 0 !important; }
.vehicle-form-compact .form-group { gap: 5px; }
.vehicle-form-compact .form-label { font-size: 11px; letter-spacing: .5px; }
.vehicle-form-compact .form-input,
.vehicle-form-compact .form-select,
.vehicle-form-compact .form-textarea {
  padding: 10px 12px;
  font-size: 14px;
}
.vehicle-form-compact .form-textarea { min-height: 88px; }

/* Bandeau prix + CTA visible uniquement sur mobile/tablette : prix immédiat
   + appel à l'action qui scrolle vers le formulaire (rapproche la conversion). */
.vehicle-mobile-pricecta { display: none; }
@media (max-width: 900px) {
  .vehicle-mobile-pricecta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    border: 1px solid var(--border, #e2e8f0);
  }
  .vehicle-mobile-pricecta-price { display: flex; flex-direction: column; flex: 1; line-height: 1; }
  .vehicle-mobile-pricecta-strike { font-size: 12px; color: #aaa; text-decoration: line-through; margin-bottom: 2px; }
  .vehicle-mobile-pricecta-price strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px; font-weight: 800; color: var(--red); line-height: 1;
  }
  .vehicle-mobile-pricecta-tva { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; font-weight: 600; }
  .vehicle-mobile-pricecta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 16px;
    background: var(--red); color: #fff;
    border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(204,6,5,.28);
    transition: transform .15s, box-shadow .15s;
  }
  .vehicle-mobile-pricecta-btn:hover, .vehicle-mobile-pricecta-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(204,6,5,.35);
  }
}

.form-submit {
  width: 100%; padding: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  color: #2e7d32;
  font-size: 14px;
}

/* Contact info */
.contact-info { display: flex; flex-direction: column; gap: 32px; }

.info-block {
  display: flex; gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 48px; height: 48px;
  background: var(--dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.info-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px; font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  background: var(--gray-light);
}

.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
}

/* Horaires */
.horaires-table { width: 100%; }

.horaire-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
}

.horaire-row:last-child { border-bottom: none; }

.horaire-jour { font-weight: 500; color: var(--dark); }
.horaire-heure { color: var(--gray); }
.horaire-heure.closed { color: var(--red); font-weight: 500; }

/* ── AD NETWORK BANNER ─────────────────────── */
.network-banner {
  background: var(--blue-grad);
  padding: 20px 0;
  text-align: center;
}

.network-banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}

.network-text {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-logo {
  background: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.network-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  background: var(--blue-grad);
  color: #fff;
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {}

.footer-desc {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-link:hover { opacity: 1; padding-left: 4px; color: #fff; }

.footer-contact-item {
  display: flex; gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 10px;
  line-height: 1.5;
  align-items: flex-start;
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }
.footer-contact-item a { color: #fff; }
.footer-contact-item a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-legal {
  display: flex; gap: 24px; flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-legal-link:hover { color: #fff; }

/* Crédit agence (sous footer-bottom) */
.footer-credit {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

.footer-credit-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: var(--transition);
}

.footer-credit-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── PAGE HERO ─────────────────────────────── */
.page-hero {
  background: var(--blue-grad);
  color: var(--white);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%);
}

/* Variante avec photo de fond subtile — donne du caractère sans gêner la lecture.
   Usage : <div class="page-hero page-hero--photo" style="--hero-photo:url('…');">
   Optionnel : --hero-photo-opacity (default .15), --hero-photo-pos (default center). */
.page-hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: var(--hero-photo-pos, center);
  opacity: var(--hero-photo-opacity, .15);
  z-index: 0;
  pointer-events: none;
}
.page-hero--photo > .container { position: relative; z-index: 1; }

.page-hero-tag {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.page-hero-sub {
  margin-top: 12px;
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.5);
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb-item {
  font-size: 13px; color: rgba(255,255,255,0.4);
}

.breadcrumb-item.active { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 12px; }

/* ── AD LOGO STYLE ─────────────────────────── */
.ad-logo-wrapper {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white);
  padding: 8px 18px;
  border-radius: 100px;
  margin-top: 24px;
}

.ad-logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.ad-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--dark);
}

/* Logo AD dans la stats bar */
.stat-ad-logo {
  display: block;
  height: 34px;
  width: auto;
  margin: 0 auto 6px;
}

/* Mention "Membre du réseau" dans le footer */
.footer-ad {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}
.footer-ad-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
}
.footer-ad img {
  height: 24px; width: auto;
}

/* ── LOADING STATE ─────────────────────────── */
.loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}

.loading-dot {
  display: inline-block;
  animation: loadDot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: .2s; }
.loading-dot:nth-child(3) { animation-delay: .4s; }

@keyframes loadDot {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* ── BACK BUTTON ───────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--gray);
  transition: var(--transition);
  margin-bottom: 32px;
}

.back-link:hover { color: var(--dark); gap: 12px; }

/* ── Rendu Markdown safe (description véhicule, travaux récents) ──────── */
.vehicle-rich-text strong { color: #0f172a; font-weight: 700; }
.vehicle-rich-text em { font-style: italic; }
.vehicle-rich-text ul {
  margin: 10px 0; padding-left: 0;
  list-style: none;
}
.vehicle-rich-text li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.vehicle-rich-text li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--red, #cc0605);
  font-weight: 700;
}
.vehicle-rich-text a {
  color: var(--red, #cc0605);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vehicle-rich-text a:hover { text-decoration: none; }

/* ── BOUTONS PARTAGE FICHE VÉHICULE ────────────────────────────────────
   Variante "pill" (coin sup-droit du bloc Description) — texte + icône
   Variante "icon" (coin sup-droit de la sidebar prix) — icône seule
   Les 2 sont rendus visibles côté JS uniquement si navigator.share existe. */
.share-btn-pill,
.share-btn-icon {
  position: absolute;
  top: 14px; right: 14px;
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--gray, #64748b);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
  z-index: 2;
}
.share-btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .3px;
}
.share-btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.share-btn-pill:hover,
.share-btn-icon:hover {
  background: var(--red, #cc0605);
  color: #fff;
  border-color: var(--red, #cc0605);
  transform: translateY(-1px);
}
.share-btn-pill svg, .share-btn-icon svg { display: block; }

/* Variante "petit bouton" (utilisée en bas de page véhicule) */
.back-link--btn {
  padding: 8px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  margin-bottom: 0;
}
.back-link--btn:hover { background: #f8fafc; gap: 10px; }

/* Mobile : version compacte du back-link en haut de page (gain vertical) */
@media (max-width: 768px) {
  .back-link {
    padding: 6px 10px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    letter-spacing: .3px;
    margin-bottom: 12px;
  }
  /* Resserre l'espace entre la section vidéo (fond sombre) et la section
     description sur la fiche véhicule. Sans cette override, on a 100px (.section
     padding) + 24px (vidéo) = ~120px d'air, trop sur smartphone. */
  .vehicle-video-section { padding: 14px 0 !important; }
  .vehicle-video-section + .section { padding-top: 20px; }
}

/* ── UTILITY ───────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.divider {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 20px 0;
}
.divider.centered { margin: 20px auto; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-detail-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 900px) {
  .vehicles-grid,
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  .services-full-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .vehicle-detail-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .vehicles-grid,
  .catalogue-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .filters-inner { flex-direction: column; }
  .filter-select { min-width: 100%; }
  .filter-actions { width: 100%; }
  .btn-filter-reset,
  .btn-filter-apply { flex: 1; text-align: center; justify-content: center; }
  .results-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 52px; }
  .page-hero { padding: 120px 0 48px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-specs-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   UPLOAD PHOTOS (ADMIN)
═══════════════════════════════════════════ */

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
}

.upload-zone--compact {
  padding: 22px 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--red);
  background: #fef2f2;
  transform: translateY(-1px);
}

.upload-zone.dragover {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

.upload-placeholder svg {
  margin-bottom: 8px;
  color: #94a3b8;
}

.upload-placeholder p {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: #64748b;
}

.photo-preview-grid,
.existing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  background: #f1f5f9;
  transition: transform .15s, box-shadow .15s;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.photo-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.photo-thumb-wrapper {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.photo-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: photo-spin 0.8s linear infinite;
}

@keyframes photo-spin {
  to { transform: rotate(360deg); }
}

.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220,38,38,.92);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  z-index: 2;
}

.photo-delete:hover {
  background: #b91c1c;
  transform: scale(1.12);
}

/* Drag-handle, badge "principale" et bouton "rendre principale" */
.existing-photos .photo-item { cursor: grab; }
.existing-photos .photo-item.dragging { opacity: .4; cursor: grabbing; }
.existing-photos .photo-item.is-main {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
}
.photo-main-badge {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  background: #f59e0b; color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.photo-make-main {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  width: 22px; height: 22px;
  background: rgba(15,23,42,.55);
  color: #fff; border: 0; border-radius: 50%;
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s;
}
.photo-item:hover .photo-make-main { opacity: 1; }
.photo-make-main:hover { background: #f59e0b; }
.photo-drag-handle {
  position: absolute; bottom: 4px; left: 4px; z-index: 2;
  width: 22px; height: 22px;
  background: rgba(15,23,42,.55);
  color: #fff; border-radius: 4px;
  font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
  pointer-events: none; /* purement visuel — le drag se fait sur l'item entier */
  letter-spacing: -2px;
}
.photo-item:hover .photo-drag-handle { opacity: .8; }

/* La preview en cours d'upload utilise un look plus subtle (gris) jusqu'à ce que l'image arrive */
.preview-item .preview-delete {
  background: rgba(15,23,42,.75);
}
.preview-item .preview-delete:hover {
  background: #0f172a;
}

.photo-size {
  display: block;
  font-size: 10px;
  color: #475569;
  padding: 3px 6px;
  background: white;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════
   SLIDER PHOTOS VÉHICULE
═══════════════════════════════════════════ */

.vehicle-hero-gallery {
  margin-bottom: 32px;
}

/* Protection contre le téléchargement facile des photos véhicules */
img[src*="/assets/images/vehicules/"] {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS : désactive le menu "Enregistrer l'image" */
}

.hero-main-image {
  position: relative;
  width: 100%;
  height: 500px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  touch-action: pan-y;
  user-select: none;
}

.hero-main-image:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.hero-main-image:focus:not(:focus-visible) { outline: none; }

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
  -webkit-user-drag: none;
}

.hero-main-image.is-swiping img { transition: none; }

/* Boutons précédent / suivant en overlay */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
}

.hero-nav:hover,
.hero-nav:focus-visible {
  background: var(--red);
  opacity: 1;
  outline: none;
}

.hero-nav:active { transform: translateY(-50%) scale(0.92); }

.hero-nav-prev { left: 12px; }
.hero-nav-next { right: 12px; }

/* Compteur photos */
.hero-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
  pointer-events: none;
}

/* Hint "toucher pour agrandir" — mobile uniquement, fade après 4s */
.hero-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
  animation: heroHintFade 4s ease forwards;
}

@keyframes heroHintFade {
  0%, 70% { opacity: 1; }
  100%    { opacity: 0; visibility: hidden; }
}

/* Slot vidéo : recouvre l'image principale */
.hero-video-slot {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-video-slot[hidden] {
  display: none;
}

.hero-video-slot iframe,
.hero-video-slot video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.hero-video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.hero-video-close:hover {
  background: var(--red);
  transform: scale(1.05);
}

/* Vignette vidéo : overlay play centré */
.thumbnail-video {
  position: relative;
}

.thumbnail-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: background 0.2s;
}

.thumbnail-video:hover::after,
.thumbnail-video.active::after {
  background: rgba(0, 0, 0, 0.15);
}

.thumbnail-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumbnail-video-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 1;
}

.hero-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.hero-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.hero-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.hero-thumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--red);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-main-image {
    height: 280px;
    border-radius: 6px;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
  }
  .hero-nav-prev { left: 8px; }
  .hero-nav-next { right: 8px; }

  .hero-counter {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .hero-zoom-hint { display: flex; }

  .thumbnail {
    width: 70px;
    height: 52px;
  }
}

/* Désactiver le hint sur desktop (cursor zoom-in déjà visible au survol) */
@media (min-width: 769px) {
  .hero-zoom-hint { display: none !important; }
}

/* ═══════════════════════════════════════════
   FILTRES MOBILE
═══════════════════════════════════════════ */

.filters-header-mobile {
  display: none;
}

.btn-filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-filters-toggle:hover {
  background: var(--red);
}

.btn-filters-toggle.active {
  background: var(--red);
}

.filters-count {
  background: white;
  color: var(--red);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

/* Mobile : filtres cachés par défaut */
@media (max-width: 1023px) {
  .filters-bar {
    position: relative;
    padding: 16px 0;
  }
  
  .filters-header-mobile {
    display: block;
    margin-bottom: 0;
  }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .filters-inner {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
  }
  
  .filters-inner.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .filter-select {
    width: 100%;
    min-width: 100%;
    padding: 12px 36px 12px 14px;
    font-size: 15px;
    background-color: #f9f9f9;
    border: 1.5px solid #e0e0e0;
  }
  
  .filter-select:focus {
    border-color: var(--red);
    background-color: white;
  }
  
  .filter-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
  }
  
  .btn-filter-reset,
  .btn-filter-apply {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
  }
  
  .btn-filter-reset {
    background: #f5f5f5;
    color: var(--dark);
    border: 1.5px solid #e0e0e0;
  }
  
  .btn-filter-apply {
    background: var(--red);
    color: white;
    border: none;
  }
  
  /* Results header sur mobile */
  .results-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px 0;
  }
  
  .results-count {
    font-size: 15px;
    font-weight: 700;
  }
  
  .results-sort {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .sort-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
  }
  
  .results-sort .filter-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
  }
  
  /* Grille de véhicules sur mobile */
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Section AD Banner sur mobile */
  .ad-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .ad-banner-text {
    text-align: center;
  }
  
  .ad-banner-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
  }
  
  .stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
  }
  
  .stat-card:nth-child(2) .stat-number,
  .stat-card:nth-child(3) .stat-number,
  .stat-card:nth-child(4) .stat-number {
    color: white;
  }
  
  .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

/* Desktop : AD Banner */
@media (min-width: 1024px) {
  .ad-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  
  .ad-banner-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
  }
  
  .stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
  }
  
  .stat-card:nth-child(2) .stat-number,
  .stat-card:nth-child(3) .stat-number,
  .stat-card:nth-child(4) .stat-number {
    color: white;
  }
  
  .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

/* ═══════════════════════════════════════════
   BANDEAU DÉFILANT (style ad.fr)
═══════════════════════════════════════════ */

.marquee-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100; /* au-dessus du header (1000) */
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  --marquee-speed: 15s;
}

/* Variante cliquable : la barre est un <a> */
a.marquee-bar.marquee-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.marquee-bar.marquee-link:hover { filter: brightness(1.1); }
a.marquee-bar.marquee-link:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-moveleft var(--marquee-speed) linear infinite;
  will-change: transform;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  position: relative;
  display: inline-block;
  margin-right: 50px;
}

.marquee-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

@keyframes marquee-moveleft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ─ Logo Parenthèse dans les footers ─ */
.footer-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* ═══════════════════════════════════════════
   STICKY CTA FICHE VÉHICULE
═══════════════════════════════════════════ */

.vehicle-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 80px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(204,6,5,0.35), 0 2px 6px rgba(0,0,0,0.2);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}

.vehicle-sticky-cta.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.vehicle-sticky-cta:hover {
  filter: brightness(1.05);
}

.vehicle-sticky-cta-label {
  white-space: nowrap;
}

.vehicle-sticky-cta-price {
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .vehicle-sticky-cta {
    /* Laisse 72px à gauche pour ne pas chevaucher le bouton cookies (.consent-fab) */
    left: 72px;
    right: 12px;
    bottom: 12px;
    transform: translate(0, 80px);
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
    gap: 8px;
  }
  .vehicle-sticky-cta.visible {
    transform: translate(0, 0);
  }
  .vehicle-sticky-cta-price {
    padding: 3px 8px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════
   LIGHTBOX GALERIE
═══════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  min-height: 0;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
  line-height: 1;
}

.lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 28px; }
.lightbox-prev,
.lightbox-next  { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 36px; }
.lightbox-prev  { left: 16px; }
.lightbox-next  { right: 16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-prev:hover,
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.lightbox-thumb:hover { opacity: 1; }

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--red);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox-prev,
  .lightbox-next { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
  .lightbox-thumb { width: 60px; height: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-sticky-cta { transition: opacity 0.15s ease; }
}

/* ─ Formulaire fiche véhicule : adaptation mobile ─ */
@media (max-width: 600px) {
  #vehiculeForm {
    padding: 18px !important;
    border-radius: 8px !important;
  }
  #vehiculeForm .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  #vehiculeForm input,
  #vehiculeForm textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #vehicleContactForm {
    padding-bottom: 96px; /* espace pour le sticky CTA */
  }
}

/* ═══════════════════════════════════════════
   BULLE COMMERCIAL DÉDIÉ (fiche véhicule)
═══════════════════════════════════════════ */

.vehicle-contact-bubble {
  display: flex;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(204,6,5,0.06);
}

.vcb-photo {
  flex-shrink: 0;
}

.vcb-photo img,
.vcb-photo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.vcb-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), #99040a);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
}

.vcb-info {
  flex: 1;
  min-width: 0;
}

.vcb-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 4px;
}

.vcb-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 6px;
}

.vcb-bio {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.vcb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* CTA "Envoyer un message" = lead écrit trackable → désormais le primaire (rouge plein).
   "Appeler" passe en secondaire ghost (volontairement moins prominent) — on préfère
   capturer un lead qualifié plutôt qu'un appel anonyme. */
.vcb-btn-msg {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(204,6,5,0.25);
}
.vcb-btn-msg:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(204,6,5,0.35); color: #fff; }

.vcb-btn-call {
  background: transparent;
  color: var(--gray, #666);
  border: 1px solid var(--gray-light, #e2e8f0);
  box-shadow: none;
  font-size: 13px;
  padding: 8px 14px;
}
.vcb-btn-call:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; transform: none; box-shadow: none; }

/* Layout mobile compact : photo plus petite, infos resserrées, CTA full-width primaire */
@media (max-width: 700px) {
  .vehicle-contact-bubble {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 14px;
    gap: 12px;
    margin-top: 16px;
    border-radius: 10px;
  }
  .vcb-photo img,
  .vcb-photo-placeholder { width: 56px; height: 56px; border-width: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
  .vcb-photo-placeholder { font-size: 24px; }
  .vcb-eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 2px; }
  .vcb-name { font-size: 17px; margin-bottom: 4px; }
  .vcb-bio { font-size: 12px; line-height: 1.4; margin-bottom: 10px; max-height: 2.8em; overflow: hidden; }
  .vcb-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  /* Le bouton message prend toute la largeur, "Appeler" devient un lien discret en dessous */
  .vcb-btn-msg {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
  }
  .vcb-btn-call {
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    justify-content: flex-start;
    gap: 4px;
  }
  .vcb-btn-call:hover { background: none; }
  .vcb-btn-call svg { width: 12px; height: 12px; }
  /* Cache les icônes sociales sur mobile dans la bulle (encombrant + redondant avec footer) */
  .vehicle-contact-bubble .social-links { display: none; }
}

/* Sticky CTA — variante avec avatar du commercial */
.vehicle-sticky-cta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7);
}
.vehicle-sticky-cta.has-avatar {
  padding-left: 8px;
}

/* ─ Ville du véhicule (catalogue + fiche) ─ */
.vehicle-garage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.vehicle-garage svg { color: var(--red); }
.vehicle-garage-distance {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(204,6,5,0.08);
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

.page-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.page-hero-location svg { color: var(--red); }
.page-hero-location strong { color: #fff; }

/* ─ Bouton "Près de chez moi" + modal ─ */
.btn-near-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 12px;
}
.btn-near-me:hover { background: var(--red); color: #fff; }
.btn-near-me.is-active { background: var(--red); color: #fff; }
.btn-near-me.is-loading { opacity: 0.6; pointer-events: none; }

.near-me-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: nm-fade 0.2s ease;
}
.near-me-modal[hidden] { display: none; }
@keyframes nm-fade { from { opacity: 0; } to { opacity: 1; } }

.near-me-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.near-me-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.near-me-close:hover { color: #333; }
.near-me-modal-inner h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #111;
}
.near-me-modal-inner p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 16px;
}
.near-me-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.near-me-input-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
.near-me-input-row input:focus { outline: none; border-color: var(--red); }
.near-me-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #900;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 0 !important;
}
.near-me-hint {
  font-size: 12px !important;
  color: #888 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════
   PAGE /garages — listing du réseau
═══════════════════════════════════════════ */

.garages-listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.garage-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.garage-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.garage-card-photo {
  height: 180px;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}
.garage-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.garage-card-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #ccc;
  background: linear-gradient(135deg, #fafafa, #eee);
}

.garage-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.garage-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 6px;
}
.garage-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: #111;
  margin-bottom: 6px;
}
.garage-card-tagline {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}
.garage-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  flex: 1;
}
.garage-card-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}
.garage-card-info-row svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.garage-card-info-row a { color: #00387b; }
.garage-card-info-row a:hover { text-decoration: underline; }

.garage-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ─── Tête de réseau : carte horizontale en pleine largeur ─── */
.garages-headquarters {
  margin-bottom: 32px;
}
.garage-card--featured {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  border: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(204, 6, 5, .08);
}
.garage-card--featured .garage-card-photo {
  height: 100%;
  min-height: 320px;
}
.garage-card--featured .garage-card-title {
  font-size: 32px;
}
.garage-card--featured .garage-card-body {
  padding: 28px 32px;
}
.garage-card-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
@media (max-width: 720px) {
  .garage-card--featured {
    grid-template-columns: 1fr;
  }
  .garage-card--featured .garage-card-photo {
    min-height: 200px;
    height: 200px;
  }
  .garage-card--featured .garage-card-body {
    padding: 22px;
  }
  .garage-card--featured .garage-card-title {
    font-size: 26px;
  }
}

/* ═══════════════════════════════════════════
   CATALOGUE — état vide (aucun résultat)
═══════════════════════════════════════════ */

.empty-results {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 880px;
  margin: 24px auto 0;
}

.empty-results-icon {
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1;
}

.empty-results-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: #111;
  margin-bottom: 12px;
}

.empty-results-lead {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}
.empty-results-lead em {
  font-style: italic;
  color: #00387b;
  font-weight: 600;
}

.empty-results-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}

.empty-results-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.empty-results-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.empty-results-card.vendre {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border-color: rgba(204,6,5,0.15);
}
.empty-results-card.vendre:hover { border-color: var(--red); }

.empty-results-card.recom {
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
  border-color: rgba(0,56,123,0.15);
}
.empty-results-card.recom:hover { border-color: var(--blue); }

.empty-results-card-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.empty-results-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  color: #111;
  margin-bottom: 6px;
}

.empty-results-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.empty-results-card-cta {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
}
.empty-results-card.recom .empty-results-card-cta { color: var(--blue); }

.badge-love {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 999px;
  vertical-align: 2px;
}

.empty-results-reset {
  margin-top: 24px;
  border-top: 1px solid var(--gray-light);
  padding-top: 20px;
}

@media (max-width: 700px) {
  .empty-results { padding: 32px 20px; }
  .empty-results-actions { grid-template-columns: 1fr; }
  .empty-results-card { padding: 18px; }
}

/* ═══════════════════════════════════════════
   RÉSEAUX SOCIAUX D'UN GARAGE
═══════════════════════════════════════════ */

.garage-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.garage-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--gray-light);
  color: var(--blue);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.garage-socials--sm .garage-social { width: 32px; height: 32px; }
.garage-socials--sm .garage-social svg { width: 16px; height: 16px; }
.garage-socials--md .garage-social { width: 40px; height: 40px; }
.garage-socials--md .garage-social svg { width: 20px; height: 20px; }

.garage-social:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}
.garage-social.gs-website:hover    { background: var(--blue); }
.garage-social.gs-facebook:hover   { background: #1877f2; }
.garage-social.gs-instagram:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.garage-social.gs-tiktok:hover     { background: #000; }
.garage-social.gs-youtube:hover    { background: #ff0000; }
.garage-social.gs-linkedin:hover   { background: #0a66c2; }
.garage-social.gs-google:hover     { background: #4285f4; }

/* ─ Sticky CTA "Prendre RDV atelier" sur /services ─ */
.services-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(204,6,5,0.35), 0 2px 6px rgba(0,0,0,0.2);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.services-sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.services-sticky-cta:hover { filter: brightness(1.05); }

@media (max-width: 600px) {
  .services-sticky-cta {
    /* Décalé pour ne pas chevaucher le bouton cookies (déjà masqué sur mobile)
       et pour rester pleine largeur à droite. */
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ─ Encart "Vous écrivez à <Garage>" sur /contact ─ */
.contact-garage-info {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px 0;
  font-size: 14px;
  color: #333;
}
.btn-link-tiny {
  background: none;
  border: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: underline;
}
.btn-link-tiny:hover { background: rgba(204,6,5,0.06); }

/* ── Favoris véhicules (likes localStorage) ──────────────────────────────── */
.pa-like-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s, background .15s, color .15s;
  padding: 0;
  color: #94a3b8;
}
.pa-like-btn:hover { transform: scale(1.08); background:#fff; color:#cc0605; }
.pa-like-btn.is-liked { color:#cc0605; background:#fff1f1; }
.pa-like-btn svg { width:20px; height:20px; pointer-events:none; }
.pa-like-btn.is-liked svg { fill: currentColor; }
.pa-like-btn:not(.is-liked) svg { fill: none; stroke: currentColor; stroke-width:2; }
.pa-like-btn.pa-like-pop { animation: paLikePop .28s ease-out; }
@keyframes paLikePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.pa-like-label { position:absolute; left:-9999px; }

/* Variante "grosse" pour la fiche véhicule */
.pa-like-btn--lg { width:48px; height:48px; }
.pa-like-btn--lg svg { width:24px; height:24px; }

/* Compteur header */
.pa-likes-counter {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px;
  background:#cc0605; color:#fff; font-size:11px; font-weight:700;
  border-radius:9px; vertical-align:middle; margin-left:4px;
}
