/* =========================================================================
   PEUGEOT WEBSTORE GUADELOUPE — Homepage
   Implémentation du Figma "PEUGEOT WEBSTORE 2026" (node 1:7269)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --blue:          #00a3e0;
  --magenta:       #aa0060;
  --black:         #000000;
  --navy:          #152848;
  --text:          #333333;
  --text-muted:    #787b80;
  --text-legal:    #7c7c7c;
  --card-bg:       #ececee;
  --card-border:   rgba(81, 81, 81, .2);
  --input-bg:      #f3f3f3;
  --input-border:  #bebebe;
  --header-alpha:  rgba(255, 255, 255, .53);

  --container:        1100px;
  --container-header: 1170px;
  --gutter:           20px;

  --font: "Peugeot New", "PeugeotNew", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-legal: Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.4px;
  line-height: 20.8px;
}

img { display: block; max-width: 100%; }
ul  { margin: 0; padding: 0; list-style: none; }
p   { margin: 0; }
a   { color: inherit; text-decoration: none; }

button, select, input {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* ---------- Boutons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 15px;
  border: 0;
  font-size: 12.8px;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: #008cc0; }

.btn--outline {
  width: 300px;
  max-width: 100%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }

/* =========================================================================
   HEADER — node 1:3
   ========================================================================= */
.site-header {
  background: var(--black);
  padding-left: 10px;
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--container-header));
  min-height: 75px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__logo {
  width: 52px;
  height: 56.77px;
  flex: none;
}

.site-header__titles {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  min-width: 0;
}

.site-header__title {
  font-size: 17.6px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.site-header__subtitle {
  font-size: 12.8px;
  line-height: 16px;
  color: var(--header-alpha);
  text-transform: uppercase;
}

.site-header__help {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.site-header__help-icon {
  width: 24px;
  height: 26.67px;
  margin-bottom: 2px;
}

.site-header__help-label {
  font-size: 11.2px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================================
   HERO — node 1:27
   ========================================================================= */
.hero {
  padding: 10px 0 0;
}

.hero__panel {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  min-height: 400px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 30px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* --- carte de recherche — node 1:29 --- */
.search-card {
  position: relative;
  z-index: 1;
  width: 416px;
  max-width: 100%;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-card__heading {
  margin: 0;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 20.8px;
  color: var(--text);
}

.search-card__count-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.search-card__count {
  font-size: 25.6px;
  line-height: 20.8px;
  font-weight: 700;
  color: var(--blue);
}

.search-card__count-label,
.search-card__claim {
  display: block;
  text-transform: uppercase;
}

.search-card__claim { margin-top: 6px; }

.search-card__field {
  display: flex;
  flex-direction: column;
}

.search-card__label {
  font-size: 14.4px;
  line-height: 20.8px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.search-card__select {
  height: 40px;
  width: 100%;
  padding: 8px 28px 8px 16px;
  background: var(--input-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center / 10px auto;
  border: 1px solid var(--input-border);
  border-radius: 0;
  font-size: 14px;
  line-height: 19px;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

.search-card__submit {
  height: 47px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 20px;
}

/* =========================================================================
   OFFRES — node 1:42
   ========================================================================= */
.offers { padding-top: 20px; }

.offers__title {
  margin: 0;
  font-size: 29px;
  line-height: 36px;
  font-weight: 400;
  color: #000;
  text-align: center;
}

.offers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

/* --- carte offre — node 1:45 --- */
.offer {
  padding: 10px;
}

.offer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 429px;
  border: 1px solid var(--card-border);
}

.offer__head { padding: 15px 15px 0; }

.offer__title {
  margin: 0;
  font-size: 14.4px;
  line-height: 20.8px;
  font-weight: 400;
  color: #000;
}

.offer__model {
  font-size: 16px;
  font-weight: 700;
  margin-right: 12px;
}

.offer__version {
  font-size: 14.4px;
  font-weight: 400;
}

.offer__trim { display: block; }

.offer__media {
  width: 100%;
  aspect-ratio: 344.63 / 159.39;
  overflow: hidden;
}

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

.offer__body {
  background: var(--card-bg);
  padding: 15px 15px 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer__pricing {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.offer__lease { flex: 1 1 0; min-width: 0; }

.offer__lease-title {
  font-size: 14.4px;
  line-height: 17.6px;
  font-weight: 700;
  color: #000;
}
.offer__lease-title sup {
  font-size: 11.2px;
  font-weight: 400;
  vertical-align: baseline;
}

.offer__no-deposit {
  font-size: 11.2px;
  line-height: 17.6px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.offer__mentions {
  margin-top: 5px;
  font-family: var(--font-legal);
  font-size: 9.6px;
  line-height: 12.8px;
  color: var(--text);
}

.offer__mentions a {
  color: #000;
  text-decoration: underline;
}

.offer__discount {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--magenta);
  text-align: right;
}

.offer__discount-amount {
  font-size: 20.8px;
  line-height: 18.4px;
  font-weight: 700;
  white-space: nowrap;
}
.offer__discount-amount .currency { font-size: 14.4px; }

.offer__discount-label {
  font-size: 11.2px;
  line-height: 17.6px;
  font-weight: 700;
  text-transform: uppercase;
}

.offer__cta { width: 100%; }

.offer__consumption {
  font-family: var(--font-legal);
  font-size: 9px;
  line-height: 11px;
  color: var(--text-legal);
}

/* --- pied de section offres — node 1:6951 --- */
.offers__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 60px;
}

.offers__legal {
  width: 100%;
  font-size: 9.8px;
  line-height: 20px;
  color: var(--text);
}

/* =========================================================================
   RÉASSURANCE + GAMME — node 1:6956
   ========================================================================= */
.brand { padding-bottom: 40px; }

.brand__title {
  margin: 0;
  font-size: 16px;
  line-height: 20.8px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  text-transform: uppercase;
}

.brand__title--range { margin-top: 40px; }

.reassurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 19px;
}

.reassurance__item {
  width: 260px;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reassurance__icon {
  width: var(--picto-w, 66px);
  height: var(--picto-h, 60px);
  margin: 12.5px 0 17.5px;
}

.reassurance__text {
  font-size: 12.8px;
  line-height: 17.6px;
  color: var(--text-muted);
  text-align: center;
}

/* --- grille gamme — nodes 1:6984 → 1:7129 --- */
.range {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  margin-top: 20px;
}

.range__item {
  width: 220px;
  max-width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Le visuel Figma est zoomé à 120.51 % et recadré de 10.25 % sur chaque bord. */
.range__media {
  position: relative;
  width: 100%;
  aspect-ratio: 199.97 / 93.77;
  overflow: hidden;
}

.range__media img {
  position: absolute;
  top: -10.25%;
  left: -10.26%;
  width: 120.52%;
  height: 120.51%;
  max-width: none;
  object-fit: contain;
}

.range__name {
  padding-top: 15px;
  font-size: 14.4px;
  line-height: 20.8px;
  color: var(--text);
}

.range__item:hover .range__media img { transform: scale(1.03); }
.range__media img { transition: transform .2s ease; }

/* =========================================================================
   FOOTER — nodes 1:7144 / 1:7194
   ========================================================================= */
.site-footer { background: var(--black); color: #fff; }

.site-footer__main {
  padding: 30px 0 40px;
  display: flex;
  justify-content: flex-end;
}

.site-footer__contact { width: 228px; }

.site-footer__label {
  font-size: 16px;
  line-height: 20.8px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
}

.phone-btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  margin-bottom: 25px;
  padding: 0 15px 0 41px;
  background: #fff;
}

.phone-btn__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 24.44px;
}

.phone-btn__number {
  font-size: 20.8px;
  line-height: 22.4px;
  color: var(--navy);
  white-space: nowrap;
}

.socials { display: flex; gap: 5px; }

.socials__link {
  width: 45px;
  height: 45px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials__link img {
  width: var(--icon-w, 20px);
  height: var(--icon-h, 24px);
}

.site-footer__legal { background: var(--black); padding: 20px 0; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11.2px;
  line-height: 20px;
  color: #fff;
}

.site-footer__links a:hover { text-decoration: underline; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* ---- Tablette large : la carte hero rétrécit, offres sur 2 colonnes ---- */
@media (max-width: 1080px) {
  .offers__grid { grid-template-columns: repeat(2, 1fr); }
  .range        { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Tablette ---- */
@media (max-width: 900px) {
  .hero__panel {
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
  }
  .hero__bg {
    position: static;
    height: 220px;
  }
  .search-card { width: 100%; }

  .site-header__subtitle { font-size: 11.5px; }

  .reassurance { flex-wrap: wrap; gap: 20px 0; }
  .reassurance__item { width: 50%; }

  .site-footer__main { justify-content: flex-start; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .site-header { padding-left: 0; }
  .site-header__inner {
    padding: 12px 0;
    gap: 12px;
  }
  .site-header__logo { width: 40px; height: 43.7px; }
  .site-header__title { font-size: 14px; line-height: 18px; }
  .site-header__subtitle { font-size: 10px; line-height: 13px; }
  .site-header__titles { padding-left: 12px; }

  .offers__title { font-size: 22px; line-height: 28px; }
  .offers__grid { grid-template-columns: 1fr; }
  .offer { padding: 10px 0; }
  .offer__inner { min-height: 0; }

  .reassurance__item { width: 100%; padding: 0; }

  .range { grid-template-columns: repeat(2, 1fr); }
  .range__item { width: 100%; }

  .brand__title { font-size: 14px; line-height: 19px; }

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

  .site-footer__contact { width: 100%; }
  .site-footer__links { gap: 8px 20px; }
}

/* =========================================================================
   FICHE VÉHICULE — Figma node 1:7592
   ========================================================================= */

.vehicle { display: block; }

/* --- Bouton secondaire (contour noir) — nodes 1:7353 / 1:7361 / 1:7384 --- */
.btn--ghost {
  background: #fff;
  border: 1px solid #000;
  color: #252525;
  font-size: 11.2px;
  font-weight: 700;
  line-height: 16px;
}
.btn--ghost:hover { background: #252525; color: #fff; }

/* --- Fil d'Ariane — node 1:7300 --- */
.breadcrumb { background: #fff; }

.breadcrumb__list {
  display: flex;
  align-items: center;
  min-height: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--card-bg);
  font-size: 14.4px;
  line-height: 14.4px;
  color: #162032;
}

.breadcrumb__list li { display: flex; align-items: center; }
.breadcrumb__list a:hover { text-decoration: underline; }

.breadcrumb__arrow {
  width: 5px;
  height: 8.125px;
  margin: 0 10px;
  flex: none;
}

/* --- Titre — node 1:7313 --- */
.vehicle-head { padding: 5px 0 20px; }

.vehicle-head__title {
  margin: 0 0 5px;
  font-size: 19.2px;
  line-height: 22.4px;
  font-weight: 700;
  color: #252525;
}

.vehicle-head__sub {
  font-size: 14.4px;
  line-height: 20px;
  color: var(--text);
}

/* --- Galerie + encart — node 1:7319 --- */
.vehicle-main {
  display: flex;
  align-items: flex-start;
}

/* --- Galerie — node 1:7320 --- */
.gallery {
  position: relative;
  flex: 0 0 800px;
  max-width: 800px;
  background: #fff;
  overflow: hidden;
}

.gallery__viewport { overflow: hidden; }

.gallery__track {
  display: flex;
  transition: transform .35s ease;
}

.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gallery__dot {
  width: 9.83px;
  height: 9.83px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  /* Écart assumé vs Figma : les puces blanches sur fond blanc seraient
     invisibles, un léger contour les rend utilisables. */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .45));
}

.gallery__dot.is-active { background: #fff; }

.gallery__next {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery__next img {
  width: 40px;
  height: 41px;
  transform: scaleY(-1);
}

/* --- Encart LOA — node 1:7340 --- */
.offer-box {
  flex: 0 0 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 15px 30px;
  border: 2px solid var(--card-bg);
}

.offer-box__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-box__title {
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 700;
  color: #252525;
}

.offer-box__from {
  font-size: 14.4px;
  line-height: 19.2px;
  color: #252525;
}

.offer-box__price {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--magenta);
}

.offer-box__unit {
  font-size: 16px;
  color: var(--magenta);
}

.offer-box__rents {
  margin-top: 12px;
  font-size: 11.2px;
  line-height: 14.4px;
  color: #515151;
}

.offer-box__warning {
  margin-top: 17px;
  padding-bottom: 17px;
  font-family: var(--font-legal);
  font-size: 9.6px;
  font-weight: 700;
  line-height: 13.8px;
  text-transform: uppercase;
  color: #515151;
}

.offer-box__cta { width: 100%; }

.offer-box__watchers {
  padding: 14px;
  background: rgba(12, 185, 0, .18);
  font-size: 12.8px;
  line-height: 16px;
  color: var(--text);
}

.offer-box__watchers strong { font-weight: 700; }

.offer-box__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 5px;
}

.offer-box__discount {
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 700;
  color: #252525;
}

.offer-box__discount strong { color: var(--magenta); }

.offer-box__ttc {
  font-size: 9.6px;
  font-weight: 400;
  color: var(--magenta);
}

.offer-box__bar {
  height: 6px;
  background: #f7f7f7;
}

/* --- Barre de prix collante — node 1:7364 --- */
/* Repère invisible : sert à détecter le moment où la barre se colle. */
.price-bar__sentinel { height: 0; }

.price-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0;
  background: var(--card-bg);
  transition: box-shadow .2s ease;
}

.price-bar.is-stuck { box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }

.price-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.price-bar__block {
  display: flex;
  flex-direction: column;
  flex: none;
}

.price-bar__label {
  font-size: 12.8px;
  line-height: 16px;
  color: var(--text);
}

.price-bar__value {
  font-size: 25.6px;
  line-height: 28.8px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.price-bar__value--loa { color: var(--magenta); }

.price-bar__unit {
  font-size: 19.2px;
  font-weight: 400;
}

.price-bar__ttc {
  font-size: 12.8px;
  line-height: 14.4px;
  text-align: right;
  color: #000;
}

.price-bar__ttc--loa { color: var(--magenta); }

.price-bar__actions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-bar__btn {
  width: 308px;
  max-width: 100%;
}

.price-bar .btn--primary { border: 2px solid var(--blue); }

.price-bar__or {
  padding: 0 10px;
  font-size: 12.8px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text);
}

/* --- Synthèse — node 1:7390 --- */
.synthese { padding: 20px 0; }

.synthese__title {
  margin: 0 0 31px;
  font-size: 20.8px;
  line-height: 20.8px;
  font-weight: 700;
  color: #252525;
  text-transform: uppercase;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dbdbdb;
}

.spec {
  padding: 15px;
  border-right: 1px solid #dbdbdb;
}

.spec:last-child { border-right: 0; }

.spec__head {
  position: relative;
  min-height: 22.41px;
  margin-bottom: 10px;
  padding-left: 30px;
  display: flex;
  align-items: center;
}

.spec__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
}

.spec__title {
  font-size: 14.4px;
  line-height: 22.4px;
  font-weight: 700;
  color: #252525;
}

.spec__text {
  font-size: 12.8px;
  line-height: 16px;
  color: #3e4156;
}

.spec__rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec__row { display: flex; }

.spec__row dt,
.spec__row dd {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0 10px;
  font-size: 12.8px;
  line-height: 16px;
  color: #3e4156;
}

.spec__row dd { text-align: right; }
.spec__row dd em { font-style: italic; }

/* --- Mentions légales — node 1:7458 --- */
.legal { padding: 185px 0 60px; }

.legal__line,
.legal__block {
  font-size: 8px;
  line-height: 14.4px;
  color: var(--text);
}

.legal__block { margin-top: 9px; }

/* --- Responsive fiche véhicule --- */
@media (max-width: 1080px) {
  .gallery   { flex: 1 1 auto; max-width: none; }
  .offer-box { flex: 0 0 280px; max-width: 280px; }
}

@media (max-width: 900px) {
  .vehicle-main { flex-direction: column; }
  .gallery,
  .offer-box { flex: 1 1 auto; max-width: none; width: 100%; }
  .offer-box { margin-top: 20px; }

  .price-bar__inner { flex-wrap: wrap; }
  .price-bar__actions { flex: 1 0 100%; }

  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2n) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid #dbdbdb; }

  .legal { padding: 60px 0 40px; }
}

@media (max-width: 640px) {
  .vehicle-head__title { font-size: 16px; line-height: 20px; }
  .gallery__next { width: 56px; }

  .price-bar__value { font-size: 20px; line-height: 24px; }
  .price-bar__unit  { font-size: 15px; }
  .price-bar__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .price-bar__btn { width: 100%; }
  .price-bar__or { text-align: center; padding: 0; }

  .specs { grid-template-columns: 1fr; }
  .spec { border-right: 0; border-bottom: 1px solid #dbdbdb; }
  .spec:last-child { border-bottom: 0; }
}

/* --- État vide (API indisponible) --- */
.offers__empty {
  margin: 30px 0;
  padding: 20px;
  background: var(--card-bg);
  font-size: 14.4px;
  line-height: 20.8px;
  color: var(--text);
  text-align: center;
}

/* =========================================================================
   LISTE DES VÉHICULES — vehicules.php
   ========================================================================= */
.listing { display: block; }

.listing__head { padding: 20px 0 15px; }

.listing__title {
  margin: 0 0 5px;
  font-size: 25.6px;
  line-height: 28.8px;
  font-weight: 700;
  color: #252525;
}

.listing__count {
  font-size: 14.4px;
  line-height: 20.8px;
  color: var(--text);
}
.listing__count strong { color: var(--blue); }

/* --- Barre de filtres --- */
.filters {
  background: var(--card-bg);
  padding: 15px 0;
}

.filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.filters__field {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  min-width: 0;
  gap: 4px;
}

.filters__field label {
  font-size: 12.8px;
  line-height: 16px;
  color: var(--text);
}

.filters__field select {
  height: 40px;
  width: 100%;
  padding: 8px 28px 8px 12px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center / 10px auto;
  border: 1px solid var(--input-border);
  border-radius: 0;
  font-size: 14px;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

.filters__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.filters__actions .btn { padding: 0 24px; }

.filters__reset {
  font-size: 12.8px;
  color: var(--text);
  text-decoration: underline;
}

/* --- Lien sur le visuel des cartes --- */
.offer__media { display: block; }

/* --- Pagination --- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 0 10px;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 12.8px;
  text-transform: uppercase;
}

.pager__link:hover { background: var(--blue); color: #fff; }

.pager__link.is-disabled {
  border-color: var(--input-border);
  color: #949494;
  pointer-events: none;
}

.pager__status {
  font-size: 12.8px;
  color: var(--text);
}

@media (max-width: 640px) {
  .listing__title { font-size: 20px; line-height: 24px; }
  .filters__field { flex: 1 1 100%; }
  .filters__actions { flex: 1 1 100%; }
  .filters__actions .btn { flex: 1; }
  .pager { flex-wrap: wrap; gap: 10px; }
}

/* =========================================================================
   DEMANDE D'INFORMATIONS — Figma node 1:7827
   ========================================================================= */
.contact { display: block; }

.contact__head { padding: 4.5px 0 5px; }

.contact__title {
  margin: 0;
  font-size: 19.2px;
  line-height: 22.4px;
  font-weight: 700;
  color: #252525;
}

.contact__main {
  display: flex;
  align-items: flex-start;
  gap: 200px;
  padding-bottom: 40px;
}

/* `align-items: flex-start` est indispensable au position:sticky de l'encart :
   un `stretch` étirerait l'aside sur toute la hauteur et le figerait. */

.contact__col {
  flex: 0 0 600px;
  max-width: 600px;
  padding-top: 10px;
}

/* --- Bandeau vert — node 1:7649 --- */
.contact__watchers {
  padding: 14px;
  margin-bottom: 9.3px;
  background: rgba(12, 185, 0, .18);
  font-size: 12.8px;
  line-height: 16px;
  color: var(--text);
}
.contact__watchers strong { font-weight: 700; }

/* --- Accroche — node 1:7652 --- */
.contact__lead {
  padding-top: 9.5px;
  font-size: 19.2px;
  line-height: 25.6px;
  color: var(--blue);
}

.contact__intro {
  margin-top: 9.3px;
  font-size: 14.4px;
  line-height: 17.6px;
  color: var(--text);
}

.contact__errors,
.contact__success {
  margin-top: 15px;
  padding: 14px;
  font-size: 14.4px;
  line-height: 19.2px;
}

.contact__errors {
  background: rgba(170, 0, 96, .1);
  color: var(--magenta);
}

.contact__success {
  background: rgba(12, 185, 0, .18);
  color: var(--text);
}
.contact__success strong { display: block; font-weight: 700; }

/* --- Récapitulatif véhicule — node 1:7686 --- */
.contact-car {
  flex: 0 0 300px;
  max-width: 300px;
  padding: 15px;
  border: 2px solid var(--card-bg);
  background: #fff;
}

/* Le récapitulatif suit la lecture du formulaire sur grand écran. */
@media (min-width: 901px) {
  .contact-car {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}

.contact-car__media {
  display: block;
  width: 266px;
  max-width: 100%;
  height: 133px;
  overflow: hidden;
}

.contact-car__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-car__title {
  padding-top: 5px;
  font-size: 14.4px;
  line-height: 19.2px;
  color: var(--text);
}

.contact-car__prices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 60px 0 5px;
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 700;
  color: #252525;
}

.contact-car__prices strong { color: var(--magenta); }
.contact-car__net { color: #252525; }

.contact-car__ttc {
  font-size: 9.6px;
  font-weight: 400;
}
.contact-car__ttc--magenta { color: var(--magenta); }

/* --- Responsive --- */
@media (max-width: 1080px) {
  .contact__main { gap: 40px; }
  .contact__col  { flex: 1 1 auto; max-width: none; }
}

@media (max-width: 900px) {
  .contact__main { flex-direction: column; }
  .contact-car   { flex: 1 1 auto; max-width: none; width: 100%; }
  .contact-car__media { width: 100%; }
  .contact-car__prices { padding-top: 25px; }
}

@media (max-width: 640px) {
  .contact__lead { font-size: 16px; line-height: 21px; }
}

/* =========================================================================
   FORMULAIRE EN ÉTAPES — parcours repris de la landing « offres-tour »
   ========================================================================= */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 20px;
}

/* Piège à robots : hors écran, jamais lu par un lecteur d'écran */
.stepper__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Progression --- */
.stepper__progress {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 0;
  background: #fff;
}

.stepper__count {
  font-size: 12.8px;
  line-height: 16px;
  color: var(--text-muted);
}

.stepper__bar {
  height: 4px;
  margin-top: 6px;
  background: var(--card-bg);
  overflow: hidden;
}

.stepper__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width .35s ease;
}

/* --- Étape --- */
.step {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Filet discret entre deux étapes, pour marquer la séparation sans surcharger. */
.step + .step {
  padding-top: 34px;
  border-top: 1px solid var(--card-bg);
}

.step__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 16px;
  font-size: 16px;
  line-height: 22.4px;
  font-weight: 700;
  color: #252525;
}

.step__num {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  font-size: 12px;
  color: var(--text);
}

.step__hint {
  margin: -6px 0 12px;
  font-size: 12.8px;
  line-height: 17.6px;
  color: var(--text-muted);
}

/* Étapes verrouillées : visibles mais grisées et non cliquables */
.stepper--enhanced .step:not(.is-active) {
  opacity: .35;
  pointer-events: none;
  filter: grayscale(1);
}

.stepper--enhanced .step { transition: opacity .3s ease, filter .3s ease; }

.stepper--enhanced .step.is-active .step__num {
  background: var(--blue);
  color: #fff;
}

/* --- Boutons de choix --- */
/* Deux réponses : côte à côte, largeurs égales. */
.step__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Trois réponses ou plus : empilées, toutes de la même longueur. */
.step__choices--stack {
  flex-direction: column;
  flex-wrap: nowrap;
}

.choice {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.step__choices--stack .choice { flex: 0 0 auto; width: 100%; }

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--input-border);
  background: #fff;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  color: var(--text);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.choice input:hover + span { border-color: var(--blue); }

.choice input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.choice input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* --- Champs de saisie --- */
.stepper__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.stepper__field label {
  font-size: 14.4px;
  line-height: 20px;
  color: var(--text);
}

.stepper__field input,
.stepper__field select {
  height: 45px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #b6b3b3;
  border-radius: 0;
  font-size: 14px;
  color: var(--text);
}

.stepper__field input::placeholder { color: #999; }

.stepper__field select {
  padding: 8px 28px 8px 16px;
  background: var(--input-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center / 10px auto;
  appearance: none;
  cursor: pointer;
}

.stepper__field input:focus,
.stepper__field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.stepper__field .is-valid { border-color: #0cb900; }
.stepper__field .is-error { border-color: var(--magenta); }

.stepper__error {
  padding-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--magenta);
}

/* --- Validation --- */
.stepper__submit {
  height: 60px;
  margin-top: 10px;
  border: 2px solid var(--blue);
  font-size: 14.4px;
}

.stepper__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.stepper__noscript {
  margin-top: 10px;
  font-size: 12.8px;
  color: var(--text-muted);
}

/* =========================================================================
   PAGE MERCI — merci.php
   ========================================================================= */
.thanks { display: block; }

.thanks__inner {
  max-width: 640px;
  padding: 60px 0 80px;
  text-align: center;
}

.thanks__badge { color: var(--blue); }

.thanks__title {
  margin: 20px 0 15px;
  font-size: 25.6px;
  line-height: 30px;
  font-weight: 700;
  color: #252525;
}

.thanks__text {
  margin-bottom: 10px;
  font-size: 14.4px;
  line-height: 20.8px;
  color: var(--text);
}

.thanks__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 25px 0 35px;
}

.thanks__phones .phone-btn {
  margin-bottom: 0;
  border: 1px solid var(--input-border);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.thanks__actions .btn { padding: 0 26px; }

@media (max-width: 640px) {
  .step__choices { flex-direction: column; }
  .choice        { flex: 1 1 100%; }
  .thanks__inner { padding: 40px 0 50px; }
  .thanks__title { font-size: 20px; line-height: 25px; }
  .thanks__actions .btn { width: 100%; }
}
