/* ============================================================
   SW MOTORS — Page Véhicules (catalogue 2 fiches)
   ============================================================ */
.swm-vehicles {
  --swm-red: #e30613;
  --swm-red-dark: #b8050f;
  --swm-ink: #0e0e10;
  --swm-anthracite: #1a1a1d;
  --swm-line: #e6e6e9;
  --swm-cream: #f6f5f1;
  --swm-muted: #7c7c83;
  --swm-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --swm-body: 'Manrope', -apple-system, system-ui, sans-serif;

  font-family: var(--swm-body);
  color: var(--swm-ink);
  font-size: clamp(15px, 0.95vw + 13px, 17px);
  line-height: 1.55;
}
.swm-vehicles > section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.swm-vehicles *,
.swm-vehicles *::before,
.swm-vehicles *::after { box-sizing: border-box; }
.swm-vehicles img,
.swm-vehicles svg { display: block; max-width: 100%; height: auto; }

.swm-v-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.swm-v-hero {
  background: var(--swm-ink);
  color: #fff;
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.swm-v-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0, transparent 80px, rgba(227,6,19,0.06) 80px, rgba(227,6,19,0.06) 82px);
  z-index: 0;
  pointer-events: none;
}
.swm-v-hero > * { position: relative; z-index: 1; }
.swm-v-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.65); margin: 0 0 18px;
}
.swm-v-kicker::before { content: ''; width: 32px; height: 2px; background: var(--swm-red); display: block; }
.swm-v-hero h1 {
  font-family: var(--swm-display);
  font-size: clamp(48px, 7vw, 92px);
  text-transform: uppercase; line-height: 0.95; margin: 0 0 18px;
}
.swm-v-lead {
  font-size: clamp(15px, 1.4vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0 auto;
}

/* LISTING */
.swm-v-listing {
  background: var(--swm-cream);
  padding: clamp(50px, 7vw, 90px) 0;
}
.swm-v-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.swm-v-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--swm-line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.swm-v-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}
/* Lien overlay : couvre toute la card mais laisse passer les clics sur details/summary */
.swm-v-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  /* invisible mais cliquable */
}
.swm-v-card__media,
.swm-v-card__body {
  position: relative;
  z-index: 0;
}
.swm-v-card__options {
  position: relative;
  z-index: 2; /* au-dessus du lien overlay pour rester cliquable */
}
.swm-v-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.swm-v-card__cta {
  position: relative;
  z-index: 0;
  font-family: var(--swm-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swm-red);
  font-weight: 700;
  transition: transform .25s ease;
}
.swm-v-card:hover .swm-v-card__cta {
  transform: translateX(4px);
}
.swm-v-card__media {
  position: relative;
  background: #0e0e10;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.swm-v-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swm-v-card__status {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--swm-red);
  color: #fff;
  padding: 6px 14px;
  font-family: var(--swm-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(227,6,19,0.4);
  z-index: 1;
}
.swm-v-card__status--vendu { background: #c62828; }
.swm-v-card__status--reserve { background: #ef6c00; box-shadow: 0 6px 16px rgba(239,108,0,0.4); }
.swm-v-card__status--vente { background: #2e7d32; box-shadow: 0 6px 16px rgba(46,125,50,0.4); }
.swm-v-empty { text-align: center; padding: 40px; color: var(--swm-muted); }
.swm-v-empty a { color: var(--swm-red); font-weight: 700; }

/* Encart LeBonCoin */
.swm-v-lbc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--swm-ink);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.swm-v-lbc:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
}
.swm-v-lbc__txt { display: flex; flex-direction: column; gap: 4px; }
.swm-v-lbc__txt strong {
  font-family: var(--swm-display);
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.02em;
}
.swm-v-lbc__txt span { color: rgba(255,255,255,0.7); font-size: 14px; }
.swm-v-lbc__btn {
  background: var(--swm-red);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .swm-v-lbc { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* ====== FICHE SINGLE VÉHICULE — layout responsive ====== */
.swm-v-single-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.swm-v-single-aside {
  background: #f6f5f1;
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 24px;
}
.swm-v-single-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 800px) {
  .swm-v-single-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .swm-v-single-aside { position: static !important; top: auto !important; }
  .swm-v-single-thumbs { grid-template-columns: repeat(3, 1fr); }
}
.swm-v-card__body { padding: 26px 28px 28px; }
.swm-v-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.swm-v-card__title {
  font-family: var(--swm-display);
  font-size: 36px;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1;
}
.swm-v-card__price {
  font-family: var(--swm-display);
  font-size: 28px;
  color: var(--swm-red);
  line-height: 1;
}
.swm-v-card__price span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--swm-muted);
  margin-top: 4px;
}
.swm-v-card__version {
  font-weight: 600;
  color: var(--swm-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
.swm-v-card__desc {
  font-size: 15px;
  color: #2a2a2e;
  margin: 0 0 22px;
  line-height: 1.55;
}
.swm-v-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border-top: 1px solid var(--swm-line);
  padding-top: 18px;
}
.swm-v-card__specs li {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.swm-v-card__specs strong {
  font-family: var(--swm-display);
  font-size: 18px;
  color: var(--swm-ink);
  letter-spacing: 0.01em;
}
.swm-v-card__specs span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--swm-muted);
  margin-top: 2px;
}
.swm-v-card__options {
  border-top: 1px solid var(--swm-line);
  padding-top: 14px;
}
.swm-v-card__options summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--swm-red);
  list-style: none;
  padding: 6px 0;
  position: relative;
  padding-right: 28px;
}
.swm-v-card__options summary::-webkit-details-marker { display: none; }
.swm-v-card__options summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--swm-display);
  font-size: 22px;
  color: var(--swm-red);
}
.swm-v-card__options[open] summary::after { content: '−'; }
.swm-v-card__options p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--swm-muted);
  line-height: 1.6;
}

/* CTA */
.swm-v-cta {
  background: var(--swm-ink);
  color: #fff;
  padding: clamp(50px, 7vw, 90px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.swm-v-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(227,6,19,0.20), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(227,6,19,0.12), transparent 55%);
  pointer-events: none;
}
.swm-v-cta > * { position: relative; }
.swm-v-cta h2 {
  font-family: var(--swm-display);
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1;
}
.swm-v-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 30px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.swm-v-cta-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.swm-v-btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all .25s ease;
  font-family: var(--swm-body);
}
.swm-v-btn--primary { background: var(--swm-red); color: #fff; border-color: var(--swm-red); }
.swm-v-btn--primary:hover { background: var(--swm-red-dark); border-color: var(--swm-red-dark); transform: translateY(-2px); }
.swm-v-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.swm-v-btn--ghost:hover { background: #fff; color: var(--swm-ink); border-color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .swm-v-grid { grid-template-columns: 1fr; gap: 22px; }
  .swm-v-card__specs { grid-template-columns: repeat(3, 1fr); }
  .swm-v-card__specs li:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .swm-v-card__title-row { flex-wrap: wrap; }
  .swm-v-card__price { font-size: 24px; }
}
