/* Page liste véhicules — charte Propulsecar (#034AAA, League Spartan / Montserrat, cf. accueil) */

.vehicles-page {
  --pc-primary: #034aaa;
  --pc-primary-dark: #0248b1;
  --veh-bg: #f5f6f8;
  --veh-surface: #fff;
  --veh-border: #ebebeb;
  --veh-mid: #6c757d;
  --veh-ink: #111;
  --veh-radius: 12px;
  --veh-shadow: 0 2px 12px rgba(3, 74, 170, 0.07);
  --veh-shadow-hover: 0 10px 28px rgba(3, 74, 170, 0.14);
  background: var(--veh-bg);
}

/* Même colonne que le reste du site (cf. style.css .container — 1140px) */
@media (min-width: 992px) {
  .vehicles-page .container {
    max-width: 1140px !important;
  }
}

/* Bloc héro + barre confiance — même esprit que .home-hero-stack */
.vehicles-hero-band {
  background: transparent;
}

@media (min-width: 992px) {
  .vehicles-hero-band {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 1.25rem 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

.vehicles-hero {
  background: #0B1F3A;
  color: #fff;
  padding: 2rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .vehicles-hero {
    padding: 2.5rem 0 2.5rem;
  }
}

.vehicles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(3, 74, 170, 0.28) 0%, transparent 58%);
  pointer-events: none;
}

.vehicles-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.vehicles-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(3, 74, 170, 0.22);
  border: 1px solid rgba(3, 74, 170, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.vehicles-hero-eyebrow span {
  color: #7eb3f9;
}

.vehicles-hero h1 {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.65rem;
}

.vehicles-hero h1 em {
  font-style: normal;
  color: #7eb3f9;
}

.vehicles-hero-sub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.vehicles-hero-search {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.vehicles-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  outline: none;
}

.vehicles-hero-search button {
  border: 0;
  background: var(--pc-primary);
  color: #fff;
  padding: 0.95rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background 0.2s;
}

.vehicles-hero-search button:hover {
  background: var(--pc-primary-dark);
}

/* Mobile : champ + bouton empilés — libellé « Rechercher » entièrement visible */
@media (max-width: 575.98px) {
  .vehicles-hero-search {
    flex-direction: column;
    max-width: 100%;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  }

  .vehicles-hero-search input {
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 0.85rem 1rem;
  }

  .vehicles-hero-search button {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
  }
}

.vehicles-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.75rem;
}

.vehicles-hero-stat strong {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  color: #fff;
}

.vehicles-hero-stat small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vehicles-trust-bar {
  background: var(--pc-primary);
  color: rgba(255, 255, 255, 0.94);
  padding: 0.65rem 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.vehicles-trust-bar .row {
  row-gap: 0.5rem;
}

.vehicles-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.vehicles-trust-ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.vehicles-main {
  padding: 1.75rem 0 3rem;
}

.vehicles-filter-card {
  background: var(--veh-surface);
  border-radius: var(--veh-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--veh-shadow);
  border: 1px solid var(--veh-border);
}

.vehicles-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.vehicles-filter-head h2 {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.vehicles-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--veh-mid);
  margin-bottom: 0.4rem;
}

.vehicles-results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vehicles-results-count {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.vehicles-results-count span {
  color: var(--pc-primary);
}

.vehicles-view-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--veh-surface);
  border: 1px solid var(--veh-border);
  border-radius: 8px;
  padding: 0.2rem;
}

.vehicles-view-toggle button {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--veh-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.vehicles-view-toggle button.active {
  background: var(--pc-primary);
  color: #fff;
}

/* Grille : 1 col mobile, 2 tablette, 3 desktop (cartes moins larges) */
.vehicles-grid:not(.vehicles-grid--list) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .vehicles-grid:not(.vehicles-grid--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .vehicles-grid:not(.vehicles-grid--list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.vehicles-grid.vehicles-grid--list {
  grid-template-columns: 1fr;
}

.vehicles-grid--list .vehicles-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: stretch;
}

@media (max-width: 575.98px) {
  .vehicles-grid--list .vehicles-card {
    grid-template-columns: 1fr;
  }
}

.vehicles-card {
  background: var(--veh-surface);
  border-radius: var(--veh-radius);
  overflow: hidden;
  box-shadow: var(--veh-shadow);
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.vehicles-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--veh-shadow-hover);
  border-color: rgba(3, 74, 170, 0.35);
}

.vehicles-card-media {
  position: relative;
  background: #eceef2;
}

.vehicles-card-hero-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.vehicles-card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.vehicles-card:hover .vehicles-card-hero-img {
  transform: scale(1.05);
}

.vehicles-card-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #f0f2f6;
  border-top: 1px solid var(--veh-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.vehicles-card-thumbs::-webkit-scrollbar {
  height: 4px;
}

.vehicles-card-thumbs::-webkit-scrollbar-thumb {
  background: rgba(3, 74, 170, 0.25);
  border-radius: 4px;
}

.vehicles-card-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .vehicles-card-thumb {
    width: 48px;
    height: 36px;
  }
}

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

.vehicles-card-thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 74, 170, 0.12);
  color: var(--pc-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px dashed rgba(3, 74, 170, 0.35);
}

.vehicles-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vehicles-card-badge--propulse {
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-dark) 100%);
  color: #fff;
}

.vehicles-card-badge--pro {
  background: var(--pc-primary);
  color: #fff;
}

.vehicles-card-badge--part {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.vehicles-card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.vehicles-card-body {
  padding: 0.85rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicles-card-title {
  font-family: "League Spartan", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  color: var(--veh-ink);
}

@media (min-width: 992px) {
  .vehicles-card-title {
    font-size: 0.92rem;
  }
}

.vehicles-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.vehicles-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--veh-bg);
  color: var(--veh-mid);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.vehicles-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid var(--veh-bg);
}

.vehicles-card-price {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--veh-ink);
  line-height: 1.1;
}

@media (min-width: 992px) {
  .vehicles-card-price {
    font-size: 1.05rem;
  }
}

.vehicles-card-loc {
  font-size: 0.72rem;
  color: var(--veh-mid);
  margin-top: 0.2rem;
}

.vehicles-card-cta {
  flex-shrink: 0;
  background: rgba(3, 74, 170, 0.1);
  color: var(--pc-primary);
  border: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.vehicles-card:hover .vehicles-card-cta {
  background: var(--pc-primary);
  color: #fff;
}

.vehicles-sell-cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-dark) 100%);
  border-radius: var(--veh-radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(3, 74, 170, 0.2);
}

.vehicles-sell-cta h2 {
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.35rem;
}

.vehicles-sell-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.vehicles-sell-cta .btn {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .vehicles-sidebar {
    margin-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .vehicles-sidebar {
    position: sticky;
    top: calc(var(--site-header-height) + 0.75rem);
    align-self: flex-start;
  }

  .vehicles-mobile-filter-btn {
    display: none !important;
  }

  /* Filtres toujours visibles sur desktop (collapse réservé au mobile) */
  #vehicles-filter-collapse.collapse {
    display: block !important;
    visibility: visible !important;
  }
}

.vehicles-pagination .page-link {
  border-radius: 8px;
  margin: 0 0.15rem;
  color: var(--veh-ink);
  border-color: var(--veh-border);
}

.vehicles-pagination .page-item.active .page-link {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
}
