/*
Theme Name: Astra Child
Theme URI: 
Description: Thème enfant Astra
Author: Lucie Schoeni
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Header transparent sur archive véhicules */
.site-header {
  border: 0 !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Pour que le hero passe derrière le header */
.post-type-archive-vehicule .vehicule-hero {
  margin-top: 0;
  padding-top: 0;
}

/* =========================
   Archive véhicules
========================= */

.vehicule-archive {
  background: #f5f5f5;
}

/* HERO */

.vehicule-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  background-image: url('/wp-content/uploads/2026/05/tsi-7-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.vehicule-hero__overlay {
  position: absolute;
  //inset: 0;
  //background: rgba(0, 0, 0, 0.42);
}

.vehicule-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.vehicule-hero__content {
  max-width: 760px;
  padding: 60px 0;
  color: #fff;
}

.vehicule-hero__title {
  margin: 0 0 16px;
  font-size: clamp(64px, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
  color: #fff;
}

.vehicule-hero__text {
  font-family: 'Lato';
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* SECTION LISTING */

.vehicule-listing-section {
  padding: 48px 0 80px;
}

.vehicule-listing-section .ast-container, .vehicule-hero .ast-container{
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    //padding-left: 30px;
    //padding-right: 30px;
}

.site-content .ast-container{
    display: flex;
    flex-direction: column;
}
/* =========================
   FILTRES PREMIUM
========================= */

.vehicule-filters {
  margin-bottom: 56px;
}

.vehicule-filters__panel {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.vehicule-filters__top {
  display: grid;
  /* 4 colonnes : Marque | Modèle | Énergie | Boîte
     Le modèle se cache automatiquement si aucune marque n'est sélectionnée */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.vehicule-filter-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vehicule-filter-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.vehicule-filters select,
.vehicule-filters input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vehicule-filters select:focus,
.vehicule-filters input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

/* blocs min / max */

.vehicule-filters__advanced {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.vehicule-filter-range {
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 18px;
  background: #fafafa;
}

.vehicule-filter-range__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vehicule-filter-range__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
}

.vehicule-filter-range__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vehicule-filter-range__inputs input::placeholder {
  color: #9b9b9b;
}

/* boutons */

.vehicule-filters__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
}

.vehicule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s ease;
}

.vehicule-btn--primary {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.vehicule-btn--primary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.vehicule-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #d7d7d7;
}

.vehicule-btn--ghost:hover {
  border-color: #111;
  color: #111;
  background: #f8f8f8;
}

/* responsive */

@media (max-width: 1024px) {
  .vehicule-filters__top,
  .vehicule-filters__advanced {
    grid-template-columns: 1fr 1fr;
  }

  /* 16px minimum sur mobile/tablette → évite le zoom iOS, options lisibles sur Android */
  .vehicule-filters select,
  .vehicule-filters input {
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  .vehicule-filters__panel {
    padding: 20px;
    border-radius: 18px;
  }

  .vehicule-filters__top,
  .vehicule-filters__advanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vehicule-filter-range__inputs {
    grid-template-columns: 1fr;
  }

  .vehicule-filters select,
  .vehicule-filters input {
    height: 52px;
    /* 16px minimum évite le zoom automatique iOS + améliore la lisibilité */
    font-size: 16px !important;
  }

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

/* GRID */

.vehicule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}

/* CARD */

.vehicule-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.vehicule-card__image-link {
  display: block;
  text-decoration: none;
}

.vehicule-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 18px;
  background: #ddd;
}

.vehicule-card__image img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 0.35s ease;
}

.vehicule-card:hover .vehicule-card__image img {
  transform: scale(1.03);
}

.vehicule-card__content {
  padding: 0;
}

.vehicule-card__title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vehicule-card__title a {
  color: #111;
  text-decoration: none;
}

.vehicule-card__meta {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5c5c5c;
}

.vehicule-card__energy {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #666;
}

.vehicule-card__price {
  font-size: 1.55rem;
  font-weight: 500;
  color: #111;
}

/* PAGINATION */

.vehicule-pagination {
  margin-top: 48px;
}

/* EMPTY */

.vehicule-empty {
  font-size: 1rem;
  color: #444;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .vehicule-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }
}

@media (max-width: 767px) {
  .vehicule-hero {
    min-height: 65vh;
  }

  .vehicule-hero__content {
    padding: 40px 0;
  }

  .vehicule-filters__grid {
    grid-template-columns: 1fr;
  }

  .vehicule-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vehicule-card__title {
    font-size: 1.3rem;
  }

  .vehicule-card__price {
    font-size: 1.25rem;
  }
}


/* =========================
   FILTRES ACTIFS / CHIPS
========================= */

#vehiculeResultsArea {
  position: relative;
  transition: opacity 0.2s ease;
}

#vehiculeResultsArea.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.vehicule-active-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.vehicule-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vehicule-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #161616;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.22s ease;
}

.vehicule-filter-chip:hover {
  border-color: #111;
  background: #f7f7f7;
  color: #111;
}

.vehicule-filter-chip__label {
  line-height: 1;
}

.vehicule-filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: #111;
  transform: translateY(-1px);
}

.vehicule-clear-filters {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  background: transparent;
  transition: all 0.22s ease;
}

.vehicule-clear-filters:hover {
  border-color: #111;
  background: #fff;
  color: #111;
}

@media (max-width: 767px) {
  .vehicule-active-filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .vehicule-filter-chip,
  .vehicule-clear-filters {
    min-height: 48px;
    font-size: 0.92rem;
  }
}


.vehicule-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.vehicule-results-count {
  font-size: 1rem;
  color: #4b4b4b;
  font-weight: 500;
}

.vehicule-results-count span {
  color: #111;
  font-weight: 700;
}

.vehicule-pagination {
  margin-top: 48px;
}

.vehicule-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vehicule-pagination .page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicule-pagination .page-numbers a,
.vehicule-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.22s ease;
}

.vehicule-pagination .page-numbers a:hover {
  border-color: #111;
  background: #f8f8f8;
}

.vehicule-pagination .page-numbers .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

.vehicule-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
  color: #777;
}

/* =========================
   single véhicules
========================= */

.vehicule-single {
  background: #f5f5f3;
  color: #181818;
  padding: 48px 0 0;
}

.vehicule-single__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 80px;
  padding-top: 80px !important;
}

.vehicule-single__back {
  margin-bottom: 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.vehicule-single__back a {
  color: #2a2a2a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vehicule-single__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.vehicule-single__title {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vehicule-single__description {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.vehicule-single__description p {
  margin: 0 0 12px;
}

.vehicule-single__description p:last-child {
  margin-bottom: 0;
}

.vehicule-single__meta {
  margin-bottom: 14px;
  font-size: 14px;
  color: #555;
}

.vehicule-single__price {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 34px;
}

/* Image principale single — ratio fixe 16/9, harmonise toutes les photos */
.vehicule-single__main-image {
  overflow: hidden;
  background: #e8e8e6;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}

.vehicule-single__main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Miniatures strip */
.vehicule-single__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.vehicule-single__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 44px;
}

.vehicule-single__thumb {
  background: #e8e8e6;
  overflow: hidden;
}

.vehicule-single__section {
  margin-bottom: 44px;
}

.vehicule-single__section-title,
.vehicule-single__related-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px;
  position: relative;
}

.vehicule-single__section-title::after,
.vehicule-single__related-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: #1b1b1b;
  margin-top: 12px;
}

.vehicule-single__equipements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 36px;
}

.vehicule-single__equipement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #2a2a2a;
}

.vehicule-single__check {
  font-size: 15px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Inline specs (mobile) hidden by default — shown via media query below */
.vehicule-single__specs-inline {
  display: none;
}

.vehicule-single__reassurance {
  display: grid;
  gap: 14px;
  margin-top: 52px;
}

.vehicule-single__reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #2a2a2a;
}

.vehicule-single__right {
  position: sticky;
  top: 32px;
  align-self: start;
}

.vehicule-single__cta-card,
.vehicule-single__specs-card {
  background: transparent;
}

.vehicule-single__cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 42px;
}

.vehicule-single__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: #b0003a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}

.vehicule-single__btn:hover {
  background: #87002d;
  color: #fff;
}

.vehicule-single__phone {
  color: #1c1c1c;
  text-decoration: none;
  font-size: 15px;
}

.vehicule-single__specs {
  display: grid;
}

.vehicule-single__spec-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #a8a8a8;
  font-size: 14px;
}

.vehicule-single__spec-row span:last-child {
  text-align: right;
}

.vehicule-single__related {
  margin-top: 90px;
  padding-top: 60px;
  border-top: 1px solid #d8d8d6;
}

.vehicule-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.vehicule-card--related .vehicule-card__image {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  overflow: hidden;
  background: #e8e8e6;
}

.vehicule-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.vehicule-card__title a {
  color: #181818;
  text-decoration: none;
}

.vehicule-card__meta {
  font-size: 13px;
  color: #5b5b5b;
  margin-bottom: 10px;
}

.vehicule-card__price {
  font-size: 18px;
  font-weight: 600;
}

.vehicule-single__related-link {
  text-align: right;
  margin-top: 24px;
}

.vehicule-single__related-link a {
  color: #181818;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vehicule-single__contact {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #d8d8d6;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
}

.vehicule-single__contact-left h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  text-transform: uppercase;
}

.vehicule-single__contact-left p {
  margin: 0 0 28px;
  color: #555;
  font-size: 15px;
  max-width: 420px;
}

.vehicule-single__contact-right .wpcf7-form {
  display: grid;
  gap: 18px;
}

.vehicule-single__contact-right input,
.vehicule-single__contact-right textarea,
.vehicule-single__contact-right select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #1d1d1d;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: #181818;
}

.vehicule-single__contact-right textarea {
  min-height: 120px;
  resize: vertical;
}

.vehicule-single__contact-right input[type="submit"] {
  width: auto;
  min-width: 160px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 14px 28px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .vehicule-single__hero,
  .vehicule-single__contact {
    grid-template-columns: 1fr;
  }

  .vehicule-single__right {
    position: static;
  }

  /* Sur mobile : specs après images dans la colonne gauche, pas dans la sidebar */
  .vehicule-single__specs-inline {
    display: block;
    margin-bottom: 32px;
  }

  .vehicule-single__specs-card {
    display: none;
  }

  .vehicule-single__equipements,
  .vehicule-single__related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicule-single__related {
    margin-top: 40px;
    padding-top: 28px;
  }
}

@media (max-width: 767px) {
  .vehicule-single__container {
    padding: 0 20px 60px;
  }

  .vehicule-single__title,
  .vehicule-single__price,
  .vehicule-single__contact-left h2 {
    font-size: 28px;
  }

  .vehicule-single__thumbs,
  .vehicule-single__equipements,
  .vehicule-single__related-grid {
    grid-template-columns: 1fr;
  }

  .vehicule-single__spec-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vehicule-single__spec-row span:last-child {
    text-align: left;
  }
}

/* =========================
   SINGLE VEHICULE - THEME DARK
   ========================= */


/* Page blanche */
.single-vehicules .vehicule-single {
  background: #f5f5f3;
  color: #181818;
}

/* Header noir, collé en haut */
.single-vehicules #masthead,
.single-vehicules .site-header,
.single-vehicules .main-header-bar,
.single-vehicules .ast-primary-header-bar {
  position: relative !important;
  top: auto !important;
  background: #0b0b0b !important;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

/* Si Astra force un header transparent */
.single-vehicules.ast-theme-transparent-header #masthead,
.single-vehicules.ast-header-transparent-enabled #masthead,
.single-vehicules.ast-transparent-header #masthead {
  position: sticky !important;
  top: 0;
  background: #0b0b0b !important;
  box-shadow: none;
}

/* Couleurs du header */
.single-vehicules #masthead a,
.single-vehicules #masthead .main-header-menu > .menu-item > a,
.single-vehicules #masthead .site-title a,
.single-vehicules #masthead .site-description,
.single-vehicules #masthead .ast-mobile-menu-trigger-minimal,
.single-vehicules #masthead .ast-icon {
  color: #ffffff !important;
}

/* Fond blanc derrière tout le reste */
.single-vehicules .site-content,
.single-vehicules #content,
.single-vehicules .ast-container,
.single-vehicules .vehicule-single__container {
  background: transparent;
}

/* Si le contenu passe sous le header */
.single-vehicules .vehicule-single {
  padding-top: 32px;
}

/* =========================
   FORM FC7
========================= */

.tsi-form {
    max-width: 100%;
}

.tsi-form__row {
    margin-bottom: 34px;
}

.tsi-form__row--2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tsi-form__group label {
    display: block;
    margin-bottom: 0px;
    font-size: 15px;
    font-weight: 400;
    color: #111;
}

.tsi-form input[type="text"],
.tsi-form input[type="email"],
.tsi-form input[type="tel"],
.tsi-form textarea,
.tsi-form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #111;
    background: transparent;
    padding: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    border-radius: 0;
    box-shadow: none;
}

/* Select spécifique — apparence native conservée, cohérence visuelle */
.tsi-form select {
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    padding: 8px 0 12px 0;
}

.tsi-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.tsi-form textarea {
    min-height: 120px;
    resize: vertical;
}

.tsi-form input:focus,
.tsi-form textarea:focus {
    outline: none;
    border-bottom-color: #111;
    box-shadow: none;
}



.tsi-form__consent {
    font-size: 15px;
    line-height: 1.7;
    color: #111;
}

.tsi-form__consent .wpcf7-list-item {
    margin: 0;
}

.tsi-form__consent input[type="checkbox"] {
    margin-right: 12px;
    transform: translateY(1px);
}

.tsi-form__row--submit {
    margin-top: 24px;
}

.tsi-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 16px 32px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.tsi-form input[type="submit"]:hover {
    opacity: 0.88;
}

.tsi-form .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 13px;
}

.tsi-form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 12px 16px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .tsi-form__row--2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* =========================
   caroussel coup de coeur
========================= */
.tsi-cc-carousel {
    position: relative;
    width: 100%;
    padding-right: 72px;
}

.tsi-cc-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.tsi-cc-carousel__track {
    display: flex;
    gap: 48px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.tsi-cc-carousel__slide {
    flex: 0 0 calc(50% - 24px);
    max-width: calc(50% - 24px);
    background: transparent;
}

.tsi-cc-carousel .vehicule-card__image {
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    margin-bottom: 18px;
}

.tsi-cc-carousel .vehicule-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tsi-cc-carousel .vehicule-card__content {
    padding: 0;
}

.tsi-cc-carousel .vehicule-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.tsi-cc-carousel .vehicule-card__title a {
    color: #111;
    text-decoration: none;
}

.tsi-cc-carousel .vehicule-card__meta {
    margin: 0 0 16px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.tsi-cc-carousel .vehicule-card__price {
    font-size: 18px;
    line-height: 1.2;
    color: #111;
    font-weight: 400;
}

.tsi-cc-carousel__arrow {
    position: absolute;
    top: 34%;
    right: 0;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsi-cc-carousel__arrow:hover,
.tsi-cc-carousel__arrow:focus,
.tsi-cc-carousel__arrow:active,
.tsi-cc-carousel__arrow:focus-visible {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.tsi-cc-carousel__arrow span {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    color: #1d1d1d;
}

.tsi-cc-carousel__arrow span::before {
    content: ">";
    display: block;
}

.tsi-cc-carousel__arrow span::after {
    top: 28px;
    transform: rotate(-45deg);
}

.tsi-cc-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 42px;
}

.tsi-cc-carousel__dot {
    width: 88px;
    height: 2px;
    background: #c8c8c8;
    border: none;
    padding: 0;
    cursor: pointer;
}

.tsi-cc-carousel__dot.is-active {
    background: #111;
}

@media (max-width: 1024px) {
    .tsi-cc-carousel {
        padding-right: 0;
    }

    .tsi-cc-carousel__arrow {
        position: static;
        transform: none;
        margin: 24px 0 0 auto;
        display: block;
    }

    .tsi-cc-carousel__track {
        gap: 24px;
    }

    .tsi-cc-carousel__slide {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .tsi-cc-carousel__dot {
        width: 56px;
    }
}

@media (max-width: 767px) {
    .tsi-cc-carousel__slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tsi-cc-carousel__dots {
        gap: 14px;
    }

    .tsi-cc-carousel__dot {
        width: 32px;
    }
}




/* doublon supprimé — voir la déclaration complète de .tsi-cc-carousel__arrow plus haut */


/* =========================
   Variante : carrousel à 1 véhicule visible
   (utilisée pour le carrousel "Nouveautés / Derniers arrivages")
   → la slide occupe 100% mais l'image reste carrée (1/1) et centrée,
     pour qu'on voie toute la voiture sans déformation ni énorme vide.
========================= */
.tsi-cc-carousel--single .tsi-cc-carousel__slide {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Bloc image centré en 1/1, taille raisonnable en desktop */
.tsi-cc-carousel--single .vehicule-card__image-link {
    display: flex;
    justify-content: center;
}

.tsi-cc-carousel--single .vehicule-card__image {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 620px;          /* ajuste ici la taille de l'image en desktop */
    margin: 0 auto 18px;       /* même espacement image/texte que le carrousel coup de cœur */
}

.tsi-cc-carousel--single .vehicule-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Le texte (titre / meta / prix) est aligné sous l'image, centré aussi */
.tsi-cc-carousel--single .vehicule-card__content {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 1024px) {
    .tsi-cc-carousel--single .vehicule-card__image,
    .tsi-cc-carousel--single .vehicule-card__content {
        max-width: 100%;
    }
}

/* =========================
   Flèche "précédent" — s'applique à TOUT carrousel qui en possède une
   (carrousel à 1 véhicule visible, ou à 2 véhicules avec navigation complète)
========================= */
.tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) {
    padding-left: 72px; /* fait de la place pour la flèche prev à gauche */
}

.tsi-cc-carousel__arrow--prev {
    position: absolute;
    top: 34%;
    left: 0;
    right: auto;
    transform: translateY(-50%) scaleX(-1); /* inverse la pointe ">" en "<" */
}

/* =========================
   Mobile / tablette : barre de contrôle "prev | dots | next" sur une ligne,
   pour tout carrousel équipé de la flèche prev.
========================= */
@media (max-width: 1024px) {
    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__viewport {
        flex: 0 0 100%;
        order: 1;
    }

    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__arrow--prev,
    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__arrow--next,
    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__dots {
        position: static;
        transform: none;
        margin: 0;
    }

    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__arrow--prev {
        order: 2;
        margin-top: 24px;
        flex: 0 0 auto;
        transform: scaleX(-1);
    }

    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__dots {
        order: 3;
        flex: 1 1 auto;
        justify-content: center;
        margin: 24px 12px 0;
    }

    .tsi-cc-carousel:has(.tsi-cc-carousel__arrow--prev) .tsi-cc-carousel__arrow--next {
        order: 4;
        margin-top: 24px;
        flex: 0 0 auto;
    }
}


/* =========================
   SINGLE BLOG
========================= */

/* Débloquer le container Astra sur les articles */
.single-post .site-content > .ast-container {
  max-width: 1320px !important;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

/* Neutraliser le narrow container Astra */
.single-post.ast-narrow-container .site-content > .ast-container {
  max-width: 1320px !important;
}

/* Éviter que #primary garde des marges parasites */
.single-post #primary,
.single-post .ast-separate-container #primary,
.single-post .ast-narrow-container #primary {
  margin: 0 !important;
  padding: 0 !important;
}

.single-post {
  background: #ffffff;
}

.single-post #masthead,
.single-post .site-header,
.single-post .main-header-bar,
.single-post .ast-primary-header-bar {
  position: relative !important;
  top: auto !important;
  background: #0b0b0b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.single-post.ast-theme-transparent-header #masthead,
.single-post.ast-header-transparent-enabled #masthead,
.single-post.ast-transparent-header #masthead {
  position: sticky !important;
  top: 0;
  background: #0b0b0b !important;
  box-shadow: none;
}

.single-post #masthead a,
.single-post #masthead .main-header-menu > .menu-item > a,
.single-post #masthead .site-title a,
.single-post #masthead .site-description,
.single-post #masthead .ast-mobile-menu-trigger-minimal,
.single-post #masthead .ast-icon {
  color: #ffffff !important;
}

.single-post .site-content,
.single-post #content,
.single-post .ast-container {
  background: transparent;
}

.single-post .tsi-blog-single {
  padding: 48px 20px 88px;
}

.single-post .tsi-blog-single article {
  background: #ffffff !important;
}

.single-post .tsi-blog-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.single-post .tsi-article {
  max-width: 100%;
  margin: 0 auto;
}

/* HERO */

.single-post .tsi-article-hero {
  max-width: 980px;
  margin: 0 10px 24px;
}

.single-post .tsi-article-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.single-post .tsi-article-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.single-post .tsi-article-date {
  font-size: 14px;
  font-weight: 600;
  color: #8f1734;
}

.single-post .tsi-article-title {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #111111;
}

.single-post .tsi-article-intro {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: 22px;
  line-height: 1.65;
  color: #343434;
}

.single-post .tsi-article-thumbnail {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}

.single-post .tsi-article-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* LAYOUT */

.single-post .tsi-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 56px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

.single-post .tsi-article-content {
  min-width: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #262626;
}

.single-post .tsi-article-content p {
  margin: 0 0 24px;
}

.single-post .tsi-article-content h2 {
  margin: 52px 0 20px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #111111;
}

.single-post .tsi-article-content h3 {
  margin: 34px 0 16px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  color: #111111;
}

.single-post .tsi-article-content ul,
.single-post .tsi-article-content ol {
  margin: 0 0 24px 24px;
}

.single-post .tsi-article-content li {
  margin-bottom: 10px;
}

.single-post .tsi-article-content strong {
  color: #111111;
}

/* SIDEBAR BLOG - STYLE PLUS EDITORIAL */

.single-post .tsi-article-sidebar {
  position: relative;
}

.single-post .tsi-sidebar-panel {
  position: sticky;
  top: 120px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 34px 32px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.single-post .tsi-sidebar-panel__label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8f1734;
}

.single-post .tsi-sidebar-panel__title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111111;
}

.single-post .tsi-sidebar-panel__text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.8;
  color: #4a4a4a;
}

.single-post .tsi-sidebar-panel__group {
  padding: 18px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.single-post .tsi-sidebar-panel__group:last-of-type {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.single-post .tsi-sidebar-panel__heading {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a7a7a;
}

.single-post .tsi-sidebar-panel__link {
  font-size: 15px;
  line-height: 1.6;
  color: #111111;
  text-decoration: none;
}

.single-post .tsi-sidebar-panel__link:hover {
  color: #8f1734;
}

.single-post .tsi-sidebar-panel__footer {
  margin-top: 26px;
}

.single-post .tsi-sidebar-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: #8f1734;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #8f1734;
  transition: 0.2s ease;
}

.single-post .tsi-sidebar-panel__button:hover {
  background: #74112a;
  border-color: #74112a;
  color: #ffffff;
}

.single-post .tsi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.single-post .tsi-btn--primary {
  background: #8f1734;
  color: #ffffff;
}

.single-post .tsi-btn--primary:hover {
  background: #74112a;
  color: #ffffff;
}

.single-post .tsi-btn--secondary {
  background: #f1eee8;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.single-post .tsi-btn--secondary:hover {
  background: #e8e2d8;
  color: #111111;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .single-post .tsi-article-title {
    font-size: 32px;
  }

  .single-post .tsi-article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 980px;
  }

  .single-post .tsi-sidebar-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .single-post .tsi-blog-single {
    padding: 28px 16px 56px;
  }

  .single-post .tsi-article-hero {
    margin-bottom: 40px;
  }

  .single-post .tsi-article-title {
    font-size: 28px;
    line-height: 1.02;
  }

  .single-post .tsi-article-intro {
    font-size: 16px;
  }

  .single-post .tsi-article-content {
    font-size: 14px;
  }

  .single-post .tsi-article-content h2 {
    font-size: 28px;
  }

  .single-post .tsi-article-content h3 {
    font-size: 24px;
  }

  .single-post .tsi-sidebar-card {
    padding: 22px;
  }
}

.single-post .tsi-article-back {
  margin-bottom: 22px;
}

.single-post .tsi-article-back__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #111111;
  transition: 0.2s ease;
}

.single-post .tsi-article-back__link:hover {
  color: #8f1734;
}


/* =============================================================================
   TOGGLE FILTRE MOBILE
============================================================================= */

/* Bouton toggle — masqué sur desktop */
.vehicule-filters__toggle {
  display: none;
}

/* Panneau : visible par défaut sur desktop */
.vehicule-filters__panel-wrap {
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.28s ease;
  max-height: 2000px;
  opacity: 1;
}

.vehicule-filters__panel-wrap.is-closed {
  max-height: 0;
  opacity: 0;
}

@media (max-width: 1024px) {

  /* Afficher le bouton toggle sur mobile/tablette */
  /* Les états :hover/:focus/:active sont explicites pour neutraliser les overrides Astra */
  .vehicule-filters__toggle,
  .vehicule-filters__toggle:hover,
  .vehicule-filters__toggle:focus,
  .vehicule-filters__toggle:active,
  .vehicule-filters__toggle:focus-visible,
  .vehicule-filters__toggle[aria-expanded="true"] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 4px;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    font-size: 1rem;
    font-weight: 600;
    color: #111 !important;
    cursor: pointer;
    text-align: left;
    box-shadow: none !important;
    outline: none;
    text-decoration: none;
    letter-spacing: normal;
    text-transform: none;
  }

  .vehicule-filters__toggle-label {
    flex: 1;
  }

  /* Badge compteur de filtres actifs */
  .vehicule-filters__toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #b0003a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  /* Chevron animé */
  .vehicule-filters__toggle-icon {
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
  }

  .vehicule-filters__toggle-icon::before,
  .vehicule-filters__toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 9px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 0.2s ease;
  }

  .vehicule-filters__toggle-icon::before { left: 1px;  transform: translateY(-50%) rotate(45deg); }
  .vehicule-filters__toggle-icon::after  { right: 1px; transform: translateY(-50%) rotate(-45deg); }

  .vehicule-filters__toggle[aria-expanded="true"] .vehicule-filters__toggle-icon::before {
    transform: translateY(-50%) rotate(-45deg);
  }
  .vehicule-filters__toggle[aria-expanded="true"] .vehicule-filters__toggle-icon::after {
    transform: translateY(-50%) rotate(45deg);
  }

  /* Ajouter un peu d'espace entre le toggle et le panneau */
  .vehicule-filters__panel-wrap:not(.is-closed) {
    padding-top: 8px;
  }
}


/* =============================================================================
   HERO ARCHIVE — MOBILE
   Image = 50 % viewport, texte centré sur cette hauteur, nav ne mange pas le texte
============================================================================= */

@media (max-width: 1024px) {
  .vehicule-hero {
    min-height: 65vh;
    height: 65vh;
    display: flex;
    align-items: center;
  }

  .vehicule-hero__content {
    padding: 24px 0;
  }
}

@media (max-width: 767px) {
  /* Le header archive est en position absolute → on crée un padding-top
     égal à la hauteur de la nav pour que le texte ne passe pas dessous */
  .vehicule-hero {
    min-height: 65vh;
    height: 65vh;
    box-sizing: border-box;
    align-items: center;
  }

  .vehicule-hero__title {
    font-size: clamp(32px, 6vw, 2.4rem);
  }

  .vehicule-hero__text {
    font-size: 14px;
  }

  .vehicule-listing-section {
    padding: 24px 0 60px;
  }
}


/* =============================================================================
   ARCHIVE — FILTRE MODÈLE DYNAMIQUE
============================================================================= */

.vehicule-filter-item--modele {
  transition: opacity 0.2s ease;
}


/* =============================================================================
   CUSTOM DROPDOWN — remplace les <select> natifs dans les filtres
   (.tsi-select-wrap est injecté par vehicule-filters.js)
============================================================================= */

.tsi-select-wrap {
  position: relative;
  width: 100%;
}

/* Le <select> natif reste dans le DOM pour la valeur du formulaire,
   mais est visuellement caché */
.tsi-select-wrap select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Bouton visible qui imite le select */
.tsi-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  /* Flèche chevron CSS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.tsi-select-btn:hover,
.tsi-select-btn:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
  outline: none;
  background-color: #fff;
}

.tsi-select-btn.is-open {
  border-color: #111;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}

/* Panneau d'options */
.tsi-select-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #111;
  border-top: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tsi-select-panel:not([hidden]) {
  display: block;
}

/* Options */
.tsi-select-option {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tsi-select-option:hover {
  background: #f4f4f4;
}

.tsi-select-option.is-selected {
  font-weight: 600;
  color: #111;
  background: #f8f8f8;
}

/* Sur ≥1025px, on revient aux selects natifs (moins de problèmes desktop) */
@media (min-width: 1025px) {
  .tsi-select-wrap select {
    position: static;
    width: 100%;
    height: 56px;
    opacity: 1;
    pointer-events: auto;
  }

  .tsi-select-btn,
  .tsi-select-panel {
    display: none !important;
  }
}


/* =============================================================================
   SINGLE VÉHICULE — CTA STICKY BAS DE PAGE SUR MOBILE
   Le bouton "Nous contacter" est dans la sidebar (droite). Sur mobile,
   on le fait flotter en bas de l'écran pour qu'il reste accessible.
============================================================================= */

@media (max-width: 767px) {

  /* Barre sticky supprimée — le contact est accessible via le formulaire en bas */
  .vehicule-single__cta-card {
    display: none;
  }

  /* Plus besoin de padding-bottom compensatoire */
  .vehicule-single {
    padding-bottom: 0;
  }

  /* Masquer la specs card du panneau droit sur mobile */
  .vehicule-single__specs-card {
    order: -1;
  }
}

/* =============================================================================
   VOIR PLUS / VOIR MOINS — Caractéristiques & Équipements (mobile)
============================================================================= */

/* ── Caractéristiques : masquer les lignes après la 4e par défaut ──
   NOTE : is-expanded est posé sur .vehicule-single__specs (l'id specsInlineList)
   donc on cible .vehicule-single__specs.is-expanded ── */
@media (max-width: 767px) {
  .vehicule-single__specs .vehicule-single__spec-row:nth-child(n+5) {
    display: none;
  }

  .vehicule-single__specs.is-expanded .vehicule-single__spec-row {
    display: grid !important;
  }

  /* ── Équipements : masquer les items après le 4e ── */
  .vehicule-single__equipements .vehicule-single__equipement:nth-child(n+5) {
    display: none;
  }

  .vehicule-single__equipements.is-expanded .vehicule-single__equipement {
    display: flex !important;
  }
}

/* ── Bouton Voir plus / Voir moins ──
   Utilise un <span role="button"> pour échapper aux styles globaux d'Astra sur <button> ── */
.tsi-voir-plus {
  /* Reset complet des styles hérités */
  all: unset;
  display: none;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
  margin-top: 14px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease;
}

.tsi-voir-plus:hover,
.tsi-voir-plus:focus,
.tsi-voir-plus:active {
  color: #555 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .tsi-voir-plus {
    display: inline-block;
  }
}


/* =============================================================================
   CARROUSEL DE MINIATURES — STRIP HORIZONTAL
   Remplace l'ancienne grille statique .vehicule-single__thumbs
============================================================================= */

/* Conteneur du strip */
.veh-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  user-select: none;
}

/* Zone de défilement masquée */
.veh-strip__viewport {
  overflow: hidden;
  flex: 1;
}

/* Track qui se translate */
.veh-strip__track {
  display: flex;
  gap: 10px;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Chaque miniature : rectangle horizontal 16:9, 4 visibles par défaut */
.veh-strip__thumb {
  flex: 0 0 calc(25% - 8px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e8e8e6;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.veh-strip__thumb:hover {
  opacity: 0.85;
}

.veh-strip__thumb.is-active {
  border-color: #b0003a;
}

.veh-strip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Flèches de navigation */
.veh-strip__arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #333;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.veh-strip__arrow:hover {
  border-color: #999;
  background: #f5f5f5;
}

/* Tablette : 3 miniatures visibles */
@media (max-width: 1024px) {
  .veh-strip__thumb {
    flex: 0 0 calc(33.333% - 7px);
  }
}

/* Mobile : 2 miniatures visibles */
@media (max-width: 767px) {
  .veh-strip {
    gap: 6px;
    margin-top: 8px;
  }

  .veh-strip__thumb {
    flex: 0 0 calc(50% - 5px);
  }

  .veh-strip__arrow {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}


/* =============================================================================
   SINGLE VÉHICULE — CONTACT FORM MOBILE
============================================================================= */

@media (max-width: 767px) {
  .vehicule-single__contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vehicule-single__contact-left h2 {
    font-size: 24px;
  }

  .vehicule-single__contact-left p {
    font-size: 14px;
  }

  .vehicule-single__contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .vehicule-single__contact-actions .vehicule-single__btn {
    width: 100%;
    justify-content: center;
  }
}


/* =============================================================================
   SINGLE VÉHICULE — TABLETTE (768–1024px)
============================================================================= */

@media (min-width: 768px) and (max-width: 1024px) {
  .vehicule-single__container {
    padding: 0 24px 80px;
    padding-top: 60px !important;
  }

  .vehicule-single__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .vehicule-single__equipements {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicule-single__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicule-single__cta-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}


/* =============================================================================
   ARCHIVE — RESPONSIVE TABLETTE (768–1024px)
============================================================================= */

@media (min-width: 768px) and (max-width: 1024px) {
  .vehicule-hero {
    min-height: 50vh;
    height: 50vh;
  }

  .vehicule-filters__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicule-filters__advanced {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}


/* =============================================================================
   LIGHTBOX PLEIN ÉCRAN — style LeBonCoin
   ============================================================================= */

.tsi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tsi-lightbox.is-open {
  display: flex;
}

/* Image centrale */
.tsi-lightbox__img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 120px);
  padding: 0 64px;
  box-sizing: border-box;
}

.tsi-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Compteur */
.tsi-lightbox__counter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Bouton fermer */
.tsi-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}

.tsi-lightbox__close:hover { opacity: 1; }

.tsi-lightbox__close svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Flèches navigation */
.tsi-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 12px;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}

.tsi-lightbox__arrow:hover { color: #fff; }
.tsi-lightbox__arrow--prev { left: 12px; }
.tsi-lightbox__arrow--next { right: 12px; }

.tsi-lightbox__arrow svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Bande de miniatures en bas */
.tsi-lightbox__strip {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  flex-shrink: 0;
  align-items: center;
}

.tsi-lightbox__strip::-webkit-scrollbar { height: 4px; }
.tsi-lightbox__strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

.tsi-lightbox__dot {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  border: 2px solid transparent;
  border-radius: 2px;
}

.tsi-lightbox__dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tsi-lightbox__dot:hover { opacity: 0.75; }
.tsi-lightbox__dot.is-active { opacity: 1; border-color: #fff; }

/* Responsive mobile */
@media (max-width: 600px) {
  .tsi-lightbox__img-wrap { padding: 0 40px; height: calc(100vh - 100px); }
  .tsi-lightbox__arrow svg { width: 24px; height: 24px; }
  .tsi-lightbox__arrow--prev { left: 4px; }
  .tsi-lightbox__arrow--next { right: 4px; }
  .tsi-lightbox__dot { width: 52px; height: 36px; }
}

/* =============================================================================
   DESCRIPTION sous les photos + Points forts ACF
   ============================================================================= */

.vehicule-single__description-below {
  margin: 20px 0 32px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.vehicule-single__description-below p {
  margin: 0 0 12px;
}

.vehicule-single__description-below p:last-child {
  margin-bottom: 0;
}

