/* ==========================================================================
   DVO — Feuille allégée : style.css privé des sections propres à la page
   d'accueil. Servie à la fiche véhicule, à « à propos » et aux mentions
   légales, qui n'utilisaient qu'une fraction du fichier complet.

   FICHIER GÉNÉRÉ — NE PAS MODIFIER À LA MAIN.
   Éditer css/style.css, puis relancer : node tools/alleger-css.js
   ========================================================================== */

/* ==========================================================================
   DVO - Style Mecanicus Dark
   Clean, elegant, minimal - Dark theme
   ========================================================================== */

/* Police auto-hébergée (RGPD : plus aucun appel aux serveurs Google Fonts).
   Fonte variable : couvre tous les poids 400–700 en un seul fichier. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-v2.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}

/* Variables */
:root {
  /* Palette monochrome — thème CLAIR (rampe inversée).
     Convention conservée : --black = fond, --white = encre (texte/titres). */
  --black: #ffffff;     /* fond principal (clair) */
  --dark: #f4f5f6;      /* fond alterné */
  --gray-900: #f7f8f9;  /* surface la plus claire (cartes) */
  --gray-800: #edeef0;  /* surfaces & bordures subtiles */
  --gray-700: #e0e2e5;  /* bordures */
  --gray-600: #c4c7cb;  /* bordures — trop clair pour du texte, voir ci-dessous */
  --gray-500: #6e7279;  /* texte estompé — 4,54:1 sur le fond des cartes */
  /* --gray-600 servait à la fois de bordure et de texte « très estompé ».
     En texte il tombait à 1,60:1 : l'année d'une annonce était pratiquement
     invisible. La bordure garde sa teinte, le texte prend celle-ci. */
  --texte-estompe: #707174;
  --gray-400: #676d73;  /* texte secondaire */
  --gray-300: #464b51;  /* texte courant */
  --gray-200: #292c31;  /* texte fort */
  --gray-100: #16181b;  /* presque noir */
  --white: #0b0b0c;     /* encre (texte / titres) */
  
  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-800);
  height: 84px;
}

.nav__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 40px;
  border-radius: 6px;
}

/* Ombre au défilement : une classe plutôt qu'un style réécrit à chaque
   événement de scroll (voir js/app.js) */
.nav--scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

.nav__links {
  display: none;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  padding: 10px 20px;
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
}

.nav__phone:hover {
  background: var(--gray-200);
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav__burger span {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav__burger.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__burger.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__phone { display: flex; }
  .nav__burger { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--black);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: var(--transition);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-300);
  border-bottom: 1px solid var(--gray-800);
}

.mobile-menu__phone {
  margin-top: auto;
  text-align: center;
  background: var(--white);
  color: var(--black) !important;
  border-radius: 12px;
  border: none !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.btn--primary:hover {
  background: var(--gray-200);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-600);
}

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

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 16px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 80px 0;
  background: var(--black);
}

.section--alt {
  background: var(--dark);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Le stock est le cœur de la page : son titre n'a pas besoin des 48 px de
   respiration des sections de présentation, qui laissaient un trou de 96 px
   avant la rangée de filtres. */
#vehicules .section__header { margin-bottom: 16px; }

.section__header h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--white);
}

.section__header p {
  color: var(--gray-500);
  margin-top: 8px;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: var(--transition);
  white-space: nowrap;
}

.section__link:hover {
  color: var(--white);
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.reviews-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

.reviews-rating span:last-child {
  font-size: 14px;
  color: var(--gray-500);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 24px;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-card__author {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.review-card__date {
  font-size: 13px;
  color: var(--gray-500);
}

.review-card__stars {
  color: #f59e0b;
  font-size: 14px;
}

.review-card__text {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 32px;
  border-top: 1px solid var(--gray-800);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-800);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer__logo {
  height: 48px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 280px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--gray-500);
}

.footer__col a,
.footer__col span {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--texte-estompe);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-form-wrapper h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-intro {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

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

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-200);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  color: var(--white);
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-500);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--white);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--white);
}

.contact-info__item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info__item p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.contact-info__item a {
  color: var(--gray-300);
  transition: var(--transition);
}

.contact-info__item a:hover {
  color: var(--white);
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-700);
}

/* Bouton consentement carte (RGPD) */
.map-consent {
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  background: var(--gray-900);
  color: var(--gray-300);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.map-consent:hover { background: var(--gray-800); }
.map-consent svg { color: var(--gray-500); margin-bottom: 4px; }
.map-consent__title { font-size: 15px; font-weight: 600; color: #fff; }
.map-consent__sub { font-size: 13px; color: var(--gray-400); }
.map-consent__note { font-size: 11px; color: var(--gray-500); max-width: 280px; margin-top: 6px; }

/* ===== Assistant guidé "Trouver ma voiture" ===== */
.dvo-assist-launcher {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--white); color: #000; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: transform .2s, opacity .2s;
}
.dvo-assist-launcher:hover { transform: translateY(-2px); }
.dvo-assist-launcher.hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.dvo-assist-panel {
  position: fixed; left: 20px; bottom: 20px; z-index: 1001;
  width: 360px; max-width: calc(100vw - 40px); max-height: 70vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--gray-900); border: 1px solid var(--gray-700); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dvo-assist-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.dvo-assist-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--gray-800);
}
.dvo-assist-head strong { display: block; font-size: 15px; color: var(--white); }
.dvo-assist-head span { display: block; font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.dvo-assist-close { background: none; border: none; color: var(--gray-400); font-size: 16px; cursor: pointer; line-height: 1; padding: 4px; }
.dvo-assist-close:hover { color: var(--white); }

.dvo-assist-body { padding: 18px; overflow-y: auto; }

.dvo-assist-progress { display: flex; gap: 6px; margin-bottom: 16px; }
.dvo-assist-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--gray-800); }
.dvo-assist-progress span.on { background: var(--white); }

.dvo-assist-q { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.dvo-assist-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 14px; }

.dvo-assist-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dvo-assist-chip {
  text-align: left; padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: var(--gray-800); border: 1px solid transparent; color: var(--white); font-size: 14px;
  transition: border-color .15s, background .15s;
}
.dvo-assist-chip:hover { border-color: var(--white); background: var(--gray-700); }

.dvo-assist-result-head strong { display: block; font-size: 15px; color: var(--white); }
.dvo-assist-result-head p { font-size: 13px; color: var(--gray-400); margin: 4px 0 14px; }

.dvo-assist-results { display: flex; flex-direction: column; gap: 10px; }
.dvo-assist-card {
  display: flex; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none;
  background: var(--gray-800); border: 1px solid transparent; transition: border-color .15s;
}
.dvo-assist-card:hover { border-color: var(--texte-estompe); }
.dvo-assist-card img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--gray-700); }
.dvo-assist-card__info { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.dvo-assist-card__name { font-size: 14px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dvo-assist-card__meta { font-size: 12px; color: var(--gray-400); }
.dvo-assist-card__price { font-size: 14px; font-weight: 700; color: var(--white); }

.dvo-assist-actions { display: flex; flex-direction: column; gap: 8px; }
.dvo-assist-btn {
  display: block; text-align: center; padding: 12px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--gray-600); color: var(--white); font-size: 14px; font-weight: 600; margin-top: 12px;
}
.dvo-assist-btn--primary { background: var(--white); color: #000; border-color: var(--white); }
.dvo-assist-restart { width: 100%; margin-top: 14px; padding: 10px; background: none; border: none; color: var(--gray-400); font-size: 13px; cursor: pointer; }
.dvo-assist-restart:hover { color: var(--white); }

@media (max-width: 480px) {
  .dvo-assist-panel { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 80vh; }
  .dvo-assist-launcher { left: 10px; bottom: 10px; }
  .dvo-assist-launcher span { display: none; }
  .dvo-assist-launcher { padding: 14px; }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (max-width: 640px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer - New Design
   ========================================================================== */

.footer {
  background: var(--black);
  border-top: 1px solid var(--gray-800);
  padding: 64px 0 32px;
}

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

.footer__logo {
  width: 80px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--gray-300);
}

.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 6px 0;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer__contact a {
  color: var(--gray-300);
  transition: var(--transition);
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
  font-size: 13px;
  color: var(--gray-500);
}

.footer__bottom a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer__bottom a:hover {
  color: var(--white);
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */

.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.floating-btn span {
  display: none;
}

.floating-btn--phone {
  background: var(--white);
  color: var(--black);
}

.floating-btn--phone:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.floating-btn--email {
  background: var(--gray-800);
  color: var(--white);
  border: 1px solid var(--gray-700);
}

.floating-btn--email:hover {
  background: var(--gray-700);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

@media (min-width: 768px) {
  .floating-btn span {
    display: inline;
  }
}

/* Sur ordinateur, ces deux boutons recouvraient le prix et le bouton « Voir »
   des cartes de la grille, et le mot du vendeur sur la fiche — pour répéter un
   numéro déjà affiché en haut de chaque page. Ils ne servent que sur téléphone,
   où l'en-tête est replié dans le menu. */
@media (min-width: 768px) {
  .floating-buttons { display: none; }
}

@media (max-width: 767px) {
  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }
  
  .floating-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  
  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   BADGES & MONTHLY PRICE - Intégration subtile
   ========================================================================== */

/* Badge générique (utilise le style existant) */
.vehicle-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--white);
  color: var(--black);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Badge Vendu - Rouge */
.vehicle-card__badge--sold {
  background: #dc2626;
  color: var(--white);
}


/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 14px;
  color: var(--gray-300);
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Ajustement pour mobile avec cookie banner + floating buttons */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 76px;
  }
}

/* ==========================================================================
   ACCESSIBILITÉ & UX ADDITIONS
   ========================================================================== */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Mention d'information RGPD sous les formulaires */
.form-privacy {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--gray-500);
}
.form-privacy a { color: var(--gray-400); text-decoration: underline; }

/* Skeleton loading */
.vc--skeleton { pointer-events: none; }
.vc--skeleton .vc__img-wrap {
  aspect-ratio: 16/10;
}
.skeleton-pulse {
  background: linear-gradient(90deg, var(--gray-800) 25%, var(--gray-700) 50%, var(--gray-800) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--gray-800) 25%, var(--gray-700) 50%, var(--gray-800) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-line--short { width: 40%; }
.skeleton-line--medium { width: 70%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--gray-700);
}

/* ==========================================================================
   THÈME CLAIR — adaptations des couleurs codées en dur (restylage N&B)
   La palette de base est inversée dans :root. Ce bloc corrige les rares
   valeurs rgba()/hex non basées sur les variables, pour le passage en clair.
   ========================================================================== */

/* Barre de navigation translucide sur fond clair */
.nav { background: rgba(255, 255, 255, 0.92); }

/* Survols translucides : du blanc vers le noir */
.btn--outline:hover { background: rgba(0, 0, 0, 0.045); }
.why-badge { background: rgba(0, 0, 0, 0.06); }

/* Étoiles d'avis en monochrome */
.reviews-stars,
.reviews-rating,
.review-card__stars { color: #111 !important; }

/* Badges "Vendu" en noir (au lieu du rouge) */
.vehicle-card__badge--sold,
.vc__sold-veil span { background: #111; color: #fff; }

/* Filtres (selects) : translucide noir au lieu de translucide blanc */
.filters-bar select {
  background-color: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.12);
}
.filters-bar select:hover {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.25);
}
.filters-bar select:focus { border-color: rgba(0, 0, 0, 0.4); }
.filters-bar select option { background: #fff; color: #111; }

/* Champ de recherche : même habillage que les selects (pilule) */
#filterSearch {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  padding: 10px 18px;
  color: var(--gray-300);
  font-size: 13px;
  font-family: inherit;
  min-width: 210px;
  flex: 1.4;
}
#filterSearch::placeholder { color: var(--gray-500); }
#filterSearch:hover { background-color: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.25); }
#filterSearch:focus { outline: none; border-color: rgba(0, 0, 0, 0.4); }

/* Bouton reset & toggle "Vendu" en neutre */
#resetBtn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gray-300);
  border-color: rgba(0, 0, 0, 0.15);
}
#resetBtn:hover { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.3); }
#toggleVenduLabel { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.12); }
#toggleVenduLabel:hover { border-color: rgba(0, 0, 0, 0.25); }

/* Cartes & flottants : ombres adoucies pour fond clair */
.vc:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); }
.floating-btn { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }

/* Assistant guidé : corriger les couleurs de texte forcées en #000 */
.dvo-assist-launcher,
.dvo-assist-btn--primary { color: var(--black); }
.dvo-assist-launcher { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.dvo-assist-panel { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
.map-consent__title { color: var(--white); }


/* Anneau de focus en noir */
:focus-visible { outline-color: #111; }

/* Icônes SVG des cartes services (remplacent les anciens emojis) */
.service-card__icon { line-height: 0; }
.service-card__icon svg { width: 38px; height: 38px; stroke: var(--white); display: block; }

/* ==========================================================================
   LOGO CHROMÉ — barre de nav & footer sombres + photo du hero
   ========================================================================== */
.nav {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__logo img { height: 62px; width: auto; border-radius: 0; }
.nav__links a { color: rgba(255, 255, 255, 0.72); }
.nav__links a:hover { color: #fff; }
.nav__phone { background: #fff; color: #0a0a0a; }
.nav__phone:hover { background: rgba(255, 255, 255, 0.85); }
.nav__burger span { background: #fff; }
.mobile-menu { background: #000; }
.mobile-menu a { color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-menu__phone { background: #fff; color: #0a0a0a !important; border: none !important; }

/* Footer sombre (cohérent avec le logo chromé) */
.footer { background: #0b0c0e; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__brand p { color: rgba(255, 255, 255, 0.55); }
.footer__links h4, .footer__contact h4 { color: rgba(255, 255, 255, 0.85); }
.footer__links a, .footer__contact a, .footer__contact p { color: rgba(255, 255, 255, 0.6); }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__bottom { color: rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bottom a { color: rgba(255, 255, 255, 0.6); }
.footer__bottom a:hover { color: #fff; }

/* Photo du hero (teaser M4, feux jaunes) : pas de N&B ni d'assombrissement,
   l'image est déjà sombre et les feux jaunes doivent rester jaunes */
.hero__bg img { filter: none; }
/* En portrait, cadrer sur la calandre et les phares (voiture à droite de l'image) */
@media (max-width: 640px) { .hero__bg img { object-position: 55% center; } }

/* Hero : logo texte "Douai Véhicules Occasions" (police de l'enseigne) + adresse */
.hero__content--logo { display: flex; flex-direction: column; align-items: flex-start; }
.hero__brand { margin: 0 0 20px; line-height: 0; }
.hero__tagline {
  display: block;
  margin-top: 16px;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  /* Le conteneur du hero force les capitales : ce sous-titre doit rester une
     phrase, sinon il concurrence le logo au lieu de le compléter. */
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}
.hero__brand img {
  width: clamp(280px, 44vw, 540px);
  height: auto;
  display: block;
}
.hero__address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}
.hero__address svg { flex-shrink: 0; opacity: 0.85; }
@media (max-width: 640px) {
  .hero__brand { margin-bottom: 14px; }
  .hero__brand img { width: min(300px, 80%); }
  .hero__address { margin-bottom: 28px; }
}

/* Accessibilité : titre H1 visuellement masqué (conservé pour le SEO) */
.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;
}

/* Engagements : grille adaptative (2 ou 3 cartes restent centrées) */
.why-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 920px; margin-left: auto; margin-right: auto; }
