/* ===== 27motors — thème sombre (design desktop) ===== */
:root {
  --bg: #0c0c0c;
  --bg-alt: #111111;
  --bg-card: #161616;
  --bg-elevated: #1c1c1c;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.28);
  --font: "DM Sans", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --header-h: 132px;
  --nav-link: clamp(0.88rem, 1.25vw, 1.0625rem);
}

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

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition), color var(--transition); }
a:hover { opacity: 0.92; color: var(--text); }
button { font-family: inherit; cursor: pointer; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.shell--narrow { max-width: 720px; }
.shell--legal { max-width: 920px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo--img { text-transform: none; letter-spacing: 0; }
.logo-img {
  display: block;
  height: clamp(58px, 8vw, 88px);
  width: auto;
  max-width: min(320px, 65vw);
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
}

.nav-desktop .nav-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
}
.nav-row a {
  font-size: var(--nav-link);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.nav-row a:hover { color: var(--text); opacity: 1; }
.nav-row--second a { font-size: calc(var(--nav-link) * 0.9); color: var(--faint); }

.header-aside {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.header-mail, .header-tel {
  font-size: 0.85rem;
  color: var(--muted);
}
.header-mail:hover, .header-tel:hover { color: var(--text); opacity: 1; }

.btn-header {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
}
.btn-header:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.06); opacity: 1; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  cursor: pointer;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  margin-top: 0.25rem;
}
.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
.btn-outline-light {
  display: inline-flex;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

/* ===== Hero (desktop : vidéo pleine largeur) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg) url("../images/hero-bg.jpg") center center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-content {
  max-width: 560px;
  text-align: left;
}
.hero-title {
  margin: 0 0 1.25rem;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}

/* ===== Sections sombres ===== */
.block-dark {
  padding: 4rem 0;
  background: var(--bg);
}
.block-dark--alt { background: var(--bg-alt); }

/* ===== Vantaggi ===== */
.vantaggi .shell { max-width: 800px; }
.vantaggi-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.vantaggi-intro {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}
.vantaggi-intro strong { color: var(--text); font-weight: 600; }
.vantaggi-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.vantaggi-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}
.vantaggi-list li:last-child { margin-bottom: 0; }
.vantaggi-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}
.home-see-more {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: 0.92rem;
}
.home-see-more a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-see-more a:hover { color: var(--text); opacity: 1; }
.home-copy { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.vantaggi-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translate(-55%, -60%) rotate(-45deg);
}

/* ===== Marchi — bandeau défilant (desktop : animation CSS, pas de flèches) ===== */
.marques {
  padding: 3.25rem 0;
  background: #080808;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marques-inner { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.marques-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-align: center;
  margin: 0 0 1.35rem;
}
.marques-carousel {
  display: flex;
  align-items: center;
  max-width: 100%;
}
.marques-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.marques-track {
  display: flex;
  gap: 4.5rem;
  animation: marques-scroll 40s linear infinite;
  width: max-content;
  align-items: center;
}
.marques-track:hover { animation-play-state: paused; }
@keyframes marques-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marques-btn { display: none; }
.marque-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  opacity: 0.88;
  min-height: 64px;
}
.marque-logo:hover { opacity: 1; }
.marque-logo img {
  height: clamp(52px, 7vw, 72px);
  width: auto;
  max-width: min(260px, 38vw);
  object-fit: contain;
  filter: none;
  opacity: 0.98;
}

/* ===== Titres section ===== */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 0 0 0.5rem;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  color: var(--text);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* ===== Page (contattaci, etc.) ===== */
.page-main { padding-top: var(--header-h); }
.page-head {
  padding: 2.5rem 0 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.contact-bullets {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
}
.contact-bullets li { margin-bottom: 0.6rem; }
.contact-bullets strong { color: var(--text); }
.contact-bullets a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.contact-bullets a:hover { opacity: 0.85; }
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.contact-info strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.contact-info a { color: var(--text); }
.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--faint); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--border-strong);
}
.form-row textarea { resize: vertical; min-height: 100px; }

/* ===== Véhicules ===== */
.vehicules-inner { padding: 0 1.5rem; }
.vehicules-head .section-subtitle { margin-bottom: 1.25rem; }
.veicoli-intro { text-align: center; }
.veicoli-intro .vehicules-head .section-title,
.veicoli-intro .section-subtitle { margin-left: auto; margin-right: auto; }
.veicoli-testo {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
}
.veicoli-testo p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.veicoli-testo a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.veicoli-testo a:hover { opacity: 0.85; }
.veicoli-testo strong { color: var(--text); }
.veicoli-btn-catalogo { margin-top: 0.25rem; }
.veicoli-catalogo--nascosto { display: none !important; }
.veicoli-catalogo:not(.veicoli-catalogo--nascosto) {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.filtre-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filtre-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filtre-group select {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  min-width: 130px;
}
.btn-reset { margin-left: auto; }
.vehicules-count {
  font-size: 0.88rem;
  color: var(--faint);
  margin: 0 0 1.25rem;
}
.vehicules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.vehicules-empty {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
}
.vehicules-empty.hidden { display: none; }

.vehicule-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.vehicule-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.vehicule-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  object-fit: cover;
}
.vehicule-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.vehicule-card-marque {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0 0 0.25rem;
}
.vehicule-card-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.vehicule-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.vehicule-card-specs span { display: flex; align-items: center; gap: 0.35rem; }
.vehicule-card-prix {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin-top: auto;
}
.vehicule-card-cta {
  margin-top: 1rem;
  width: 100%;
  padding: 0.65rem;
  font-size: 0.88rem;
}

/* ===== Prose / pages légales ===== */
.prose {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;
}
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.85; }
.prose strong { color: var(--text); }
.prose h2 { font-size: 1.25rem; color: var(--text); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.05rem; color: var(--text); margin: 1.5rem 0 0.5rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* ===== Legal tables ===== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}
.legal-table th, .legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 38%;
  max-width: 200px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.legal-table td { font-weight: 600; color: var(--text); line-height: 1.45; }

/* ===== Home legal summary ===== */
.home-legal-summary {
  padding: 3rem 0 3.25rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.shell--legal-home { max-width: 760px; }
.home-legal-card {
  padding: 1.75rem 1.5rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.home-legal-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.home-legal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.home-legal-dl { margin: 0 0 1.25rem; padding: 0; }
.home-legal-pair {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 0.65rem 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.home-legal-pair:last-child { border-bottom: none; }
.home-legal-dl dt { margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.home-legal-dl dd { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.home-legal-dl dd a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.home-legal-privacy { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.home-legal-privacy strong { color: var(--text); }
.home-legal-more { margin: 0; font-size: 0.92rem; }
.home-legal-link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ===== Footer ===== */
.footer {
  padding: 2rem 1.5rem;
  background: #050505;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer--extended {
  text-align: left;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-weight: 700; letter-spacing: 0.12em; font-size: 1rem; margin: 0 0 0.75rem; }
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 0 0 0.65rem;
}
.footer-tag { font-size: 0.92rem; color: var(--muted); line-height: 1.55; margin: 0; }
.footer-grid p { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.88rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-legal { font-size: 0.8rem; color: var(--faint); margin: 0; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--text); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 1.75rem; }
.modal-body .vehicule-card-image { border-radius: var(--radius); margin-bottom: 1rem; }
.modal-body .vehicule-detail-name { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.35rem; }
.modal-body .vehicule-detail-marque { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 0.75rem; }
.modal-body .vehicule-detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.modal-body .vehicule-detail-specs dt { font-size: 0.75rem; color: var(--faint); margin: 0; }
.modal-body .vehicule-detail-specs dd { font-weight: 600; margin: 0 0 0.35rem; color: var(--text); }
.modal-body .vehicule-detail-prix { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.modal-body .vehicule-detail-garantie { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }

/* ===== Responsive — optimisations mobile uniquement ===== */
@media (max-width: 1100px) {
  :root { --header-h: 88px; }
  .header-inner { flex-wrap: nowrap; }
  .nav-desktop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-desktop.is-open { display: block; }
  .nav-desktop .nav-rows { align-items: stretch; }
  .nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
  }
  .nav-row a {
    font-size: clamp(0.95rem, 2.8vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--text);
  }
  .header-aside { display: none; }
  .header-inner { justify-content: center; position: relative; padding-right: 56px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo-img { height: clamp(52px, 14vw, 72px); max-width: min(260px, 72vw); }
  .nav-toggle { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; }
  .marques-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--text); cursor: pointer; }
  .marques-btn-icon { font-size: 1.65rem; }
  .marques-carousel { gap: 0.35rem; }
  .marques-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }
  .marques-viewport::-webkit-scrollbar { display: none; }
  .marques-track { animation: none; gap: clamp(2rem, 5vw, 4.5rem); }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }
  html, body { overflow-x: hidden; background: var(--bg); }
  .shell { padding: 0 1rem; }
  .header { background: rgba(12, 12, 12, 0.97); }
  .logo-img { height: clamp(56px, 16vw, 76px); max-width: min(280px, 78vw); }
  .hero { padding: calc(var(--header-h) + 1rem) 0 2.5rem; min-height: 70vh; }
  .hero-bg { background: #000; }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% center;
    border-radius: 0;
  }
  .contact-inner { grid-template-columns: 1fr; }
  .filtres { flex-direction: column; align-items: stretch; }
  .btn-reset { margin-left: 0; }
  .vehicules-grid { grid-template-columns: 1fr; }
  .modal-body .vehicule-detail-specs { grid-template-columns: 1fr; }
  input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: max(16px, 1rem); }
}

@media (max-width: 540px) {
  .marque-logo img { max-width: min(200px, 52vw); height: clamp(44px, 11vw, 60px); }
  .home-legal-pair { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.85rem 0; }
}
