/*
Theme Name:   Bonchamp Automobiles 
Theme URI:    https://bonchampautomobiles.fr
Description:  Thème enfant 
Author:       Florian Lebrun
Author URI:   https://lebrunflorian.info
Template:     jupiterx
Version:      1.5.0
Requires PHP: 7.4
Text Domain:  bonchamp-astra-child
*/

/* =============================================================
   Jetons de design — relevés dans la maquette Figma Bonchamp
   ============================================================= */
:root {
  --bc-navy: #2a4a7f;        /* titres, boutons, chips actifs */
  --bc-navy-dark: #1f3860;   /* hover boutons */
  --bc-blue: #145585;        /* « Bleu Bonchamp » : header / hero / footer */
  --bc-red: #e74c3c;         /* prix, badges énergie, slider budget */
  --bc-green: #10b981;       /* accent hybride */
  --bc-text: #6a7282;        /* texte courant */
  --bc-text-light: #99a1af;  /* sous-titres, placeholders */
  --bc-border: #f3f4f6;      /* bordures cartes / séparateurs */
  --bc-border-2: #e5e7eb;    /* bordures inputs */
  --bc-bg-soft: #f8f9fb;     /* fond inputs */
  --bc-navy-tint: rgba(42, 74, 127, 0.08);
  --bc-navy-tint-soft: rgba(42, 74, 127, 0.05);
  --bc-red-tint: rgba(231, 76, 60, 0.08);
  --bc-green-tint: rgba(16, 185, 129, 0.08);
  --bc-radius: 16px;
  --bc-radius-sm: 14px;
  --bc-radius-xs: 10px;
  --bc-shadow: 0 4px 16px rgba(20, 45, 80, 0.06);
  --bc-shadow-hover: 0 10px 28px rgba(20, 45, 80, 0.12);
  --bc-font: 'Poppins', sans-serif;
}

/* =============================================================
   Base des blocs AutoWP
   ============================================================= */
.iwp__property {
  font-family: var(--bc-font);
  color: var(--bc-text);
}

.iwp__property a {
  text-decoration: none;
}

/* =============================================================
   Carte véhicule
   ============================================================= */
.iwp__items {
  grid-gap: 24px;
}

.iwp__items .iwp__item {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.iwp__items .iwp__item:hover {
  box-shadow: var(--bc-shadow-hover);
  transform: translateY(-3px);
}

.iwp__items .iwp__item > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.iwp__items .iwp__item .iwp__item-header {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

/* Le wrapper doit remplir le header pour que la photo soit recadrée
   à la même hauteur sur toutes les cartes */
.iwp__items .iwp__item .iwp__item-header .iwp__item-image {
  height: 100%;
}

.iwp__items .iwp__item .iwp__item-header img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.iwp__items .iwp__item .iwp__item-year {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  color: var(--bc-navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--bc-radius-xs);
  box-shadow: 0 2px 8px rgba(20, 45, 80, 0.15);
}

.iwp__items .iwp__item .iwp__item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}

.iwp__items .iwp__item .iwp__item-content .iwp__item-text {
  padding: 0;
}

.iwp__items .iwp__item .iwp__item-content .iwp__item-text h3 {
  margin: 0 0 2px;
  font-family: var(--bc-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bc-navy);
}

.iwp__items .iwp__item .iwp__item-content .iwp__item-text p.version {
  margin: 0;
  font-family: var(--bc-font);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bc-text-light);
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grille de caractéristiques (année / boîte / km / CV) */
.iwp__item-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 16px;
}

.iwp__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.iwp__spec-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bc-navy-tint-soft);
  border-radius: var(--bc-radius-xs);
  color: var(--bc-navy);
}

.iwp__spec-icon svg {
  width: 14px;
  height: 14px;
}

.iwp__spec-value {
  font-size: 12px;
  color: var(--bc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges énergie / garantie */
.iwp__item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bc-border);
}

.iwp__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.iwp__badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.iwp__badge-energie {
  color: var(--bc-red);
  background: var(--bc-red-tint);
}

.iwp__badge-energie[data-energie*='hybride'] {
  background: var(--bc-green-tint);
}

.iwp__badge-garantie {
  color: var(--bc-navy);
  background: var(--bc-navy-tint);
}

/* Prix + bouton */
.iwp__item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.iwp__items .iwp__item .iwp__item-footer p.price {
  margin: 0;
  font-family: var(--bc-font);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--bc-red);
  white-space: nowrap;
}

.iwp__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bc-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--bc-radius-sm);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.iwp__btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.iwp__items .iwp__item:hover .iwp__btn {
  background: var(--bc-navy-dark);
}

.iwp__items .iwp__item:hover .iwp__btn svg {
  transform: translateX(3px);
}

/* =============================================================
   Barre de recherche
   ============================================================= */
.iwp__searchbar {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 24px;
  margin-bottom: 8px;
}

.iwp__searchbar-top {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.iwp__searchbar-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  font-family: var(--bc-font);
  font-size: 13px;
  color: var(--bc-navy);
  background: var(--bc-bg-soft);
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iwp__searchbar-input::placeholder {
  color: var(--bc-text-light);
}

.iwp__searchbar-input:focus {
  border-color: var(--bc-navy);
  box-shadow: 0 0 0 3px var(--bc-navy-tint);
}

.iwp__btn-filtres,
.iwp__btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--bc-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.iwp__btn-filtres {
  background: var(--bc-border);
  border: 1px solid var(--bc-border);
  color: var(--bc-navy);
}

.iwp__btn-filtres:hover {
  background: var(--bc-border-2);
}

.iwp__btn-filtres svg {
  width: 15px;
  height: 15px;
}

.iwp__btn-filtres .iwp__chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.iwp__btn-filtres[aria-expanded='false'] .iwp__chevron {
  transform: rotate(180deg);
}

.iwp__btn-reset {
  background: #fff;
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--bc-red);
}

.iwp__btn-reset:hover {
  background: var(--bc-red-tint);
}

.iwp__btn-reset svg {
  width: 13px;
  height: 13px;
}

/* Rangée de filtres */
.iwp__searchbar-filters {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.iwp__searchbar-filters.is-closed {
  display: none;
}

.iwp__filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--bc-navy);
  margin-bottom: 10px;
}

.iwp__filter select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  font-family: var(--bc-font);
  font-size: 13px;
  color: var(--bc-navy);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4a7f' 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;
  background-size: 14px;
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-xs);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.iwp__filter select:focus {
  border-color: var(--bc-navy);
  box-shadow: 0 0 0 3px var(--bc-navy-tint);
}

/* Chips énergie */
.iwp__filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iwp__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iwp__chip span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bc-text);
  background: #fff;
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.iwp__chip span:hover {
  border-color: var(--bc-navy);
  color: var(--bc-navy);
}

.iwp__chip input:checked + span {
  background: var(--bc-navy);
  border-color: var(--bc-navy);
  color: #fff;
}

.iwp__chip input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--bc-navy-tint);
}

/* Sliders */
.iwp__filter-slider input[type='range'] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--bc-navy);
  cursor: pointer;
}

.iwp__filter-budget input[type='range'] {
  accent-color: var(--bc-red);
}

.iwp__filter-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--bc-text-light);
}

.iwp__filter-values output {
  font-weight: 700;
  color: var(--bc-navy);
}

.iwp__filter-budget .iwp__filter-values output {
  color: var(--bc-red);
}

/* =============================================================
   En-tête de listing (compteur + tri)
   ============================================================= */
.iwp__property-listing__header {
  margin-top: 24px;
}

.iwp__property-listing__header .header-left p {
  font-size: 14px;
  color: var(--bc-text-light);
}

.iwp__property-listing__header .header-left p strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--bc-navy);
  margin-right: 4px;
}

.iwp__property-listing__header .boxselect select {
  height: 44px;
  padding: 0 36px 0 14px;
  font-family: var(--bc-font);
  font-size: 13px;
  color: var(--bc-navy);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4a7f' 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;
  background-size: 14px;
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-xs);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

/* Message aucun résultat */
.iwp_noresults {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--bc-text);
}

.iwp_noresults .iwp_noresults-contact {
  max-width: 520px;
  margin: 12px auto 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bc-navy);
}

.iwp_noresults .iwp__btn {
  display: inline-flex;
}

/* =============================================================
   Pagination
   ============================================================= */
.iwp__property-listing__results .iwp__property-pagination a,
.iwp__property-listing__results .iwp__property-pagination span,
.iwp__property-listing__results .iwp__property-pagination .next,
.iwp__property-listing__results .iwp__property-pagination .prev {
  border-radius: var(--bc-radius-xs);
  border: 1px solid var(--bc-border-2);
  box-shadow: none;
  background: #fff;
  color: var(--bc-navy);
  font-weight: 600;
}

.iwp__property-listing__results .iwp__property-pagination span,
.iwp__property-listing__results .iwp__property-pagination a:hover,
.iwp__property-listing__results .iwp__property-pagination .prev:hover,
.iwp__property-listing__results .iwp__property-pagination .next:hover {
  background: var(--bc-navy);
  border-color: var(--bc-navy);
  color: #fff;
}

/* =============================================================
   Carrousel (accueil) — carte compacte + chevrons + bouton
   ============================================================= */
.iwp__items.iwp__items-carousel .swiper_carousel {
  padding: 10px 4px;
}

.iwp__items.iwp__items-carousel .swiper_carousel .swiper-slide {
  height: auto;
  display: flex;
}

/* Chevrons nus (sans cercle), à l'extérieur des cartes */
.iwp__items.iwp__items-carousel .swiper-button-prev,
.iwp__items.iwp__items-carousel .swiper-button-next {
  width: 28px;
  height: 44px !important;
  margin-top: -22px !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 26px !important;
  border: none;
  transform: none;
  transition: opacity 0.2s ease;
}

.iwp__items.iwp__items-carousel .swiper-button-prev:hover,
.iwp__items.iwp__items-carousel .swiper-button-next:hover {
  opacity: 0.6;
}

.iwp__items.iwp__items-carousel .swiper-button-prev:after,
.iwp__items.iwp__items-carousel .swiper-button-next:after {
  content: none;
}

.iwp__items.iwp__items-carousel .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145585' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") !important;
}

.iwp__items.iwp__items-carousel .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145585' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") !important;
}

/* Carte compacte du carrousel */
.iwp__citem {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  box-shadow: var(--bc-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.iwp__citem:hover {
  box-shadow: var(--bc-shadow-hover);
  transform: translateY(-3px);
}

.iwp__citem > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
}

.iwp__citem-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--bc-radius-xs);
  overflow: hidden;
  background: var(--bc-bg-soft);
  margin-bottom: 14px;
}

.iwp__citem-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.iwp__citem-title {
  margin: 0 0 2px;
  font-family: var(--bc-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bc-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iwp__citem-version {
  margin: 0;
  font-size: 12px;
  color: var(--bc-text-light);
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iwp__citem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.iwp__citem-price {
  margin: 0;
  font-family: var(--bc-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--bc-red);
  white-space: nowrap;
}

.iwp__citem-price span {
  font-size: 10px;
  font-weight: 500;
  color: var(--bc-text-light);
  text-transform: uppercase;
}

.iwp__citem-price .iwp__citem-price--ask {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-red);
  text-transform: none;
}

.iwp__citem-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bc-blue);
  white-space: nowrap;
}

.iwp__citem-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.iwp__citem:hover .iwp__citem-link svg {
  transform: translateX(3px);
}

/* Bouton « Voir tous nos véhicules d'occasion » */
.iwp__carousel-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.iwp__btn-lg {
  font-size: 13px;
  padding: 15px 26px;
}

.iwp__btn-lg:hover {
  background: var(--bc-navy-dark);
  color: #fff;
}

.iwp__btn-lg:hover svg {
  transform: translateX(3px);
}

/* =============================================================
   Fiche véhicule (single)
   ============================================================= */

/* Fil d'ariane */
.iwp__header-breadcrumb ul li a,
.iwp__header-breadcrumb ul li span,
.iwp__header-breadcrumb ul li:after {
  font-size: 12px;
  color: var(--bc-text-light);
  text-transform: none;
}

/* Titre + caractéristiques + prix */
.iwp__header-title__address h1 {
  font-family: var(--bc-font);
  font-weight: 700;
  font-size: 28px;
  color: var(--bc-navy);
}

.iwp__header-title__caracteristiques {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.iwp__header-title__caracteristiques div {
  margin-right: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-navy);
  background: var(--bc-navy-tint);
  border-radius: 999px;
  padding: 6px 14px;
}

.iwp__header-title__caracteristiques div + div:before {
  content: none;
}

.iwp__header-title__price span.iwp_price {
  font-family: var(--bc-font);
  font-weight: 800;
  font-size: 30px;
  color: var(--bc-red);
}

/* Galerie */
.iwp__header-swiper,
.iwp__header-swiper .swiper {
  border-radius: var(--bc-radius);
  overflow: hidden;
}

.iwp__header-swiper .swiper-button-next,
.iwp__header-swiper .swiper-button-prev {
  color: var(--bc-navy);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--bc-shadow);
}

.iwp__header-swiper .swiper-button-next:after,
.iwp__header-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

.iwp__header-swiper .swiper-pagination-bullet-active {
  background: var(--bc-navy);
}

.iwp__header-gallery div.figure-item {
  border-radius: var(--bc-radius);
  overflow: hidden;
}

/* Cartes de contenu (résumé, équipements, observations) */
.iwp__block {
  box-shadow: var(--bc-shadow);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  background: #fff;
  margin-bottom: 24px;
}

.iwp__block.iwp__card .iwp__card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--bc-border);
}

.iwp__block.iwp__card .iwp__card-header h2 {
  font-family: var(--bc-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--bc-navy);
  border-left: 3px solid var(--bc-red);
  padding-left: 12px;
  line-height: 1.3;
}

.iwp__block.iwp__card .iwp__card-header svg {
  fill: var(--bc-navy);
}

.iwp__block.iwp__card .iwp__card-body {
  padding: 24px;
}

.iwp__block.iwp__card .iwp__card-body ul li {
  color: var(--bc-text);
  font-size: 13px;
  padding: 6px 0;
}

/* Liste résumé : libellé + valeur */
.iwp__block-overview .iwp__overview-list li {
  margin-bottom: 0;
  padding: 12px 8px;
  border-bottom: 1px solid var(--bc-border);
}

.iwp__block-overview .iwp__overview-list .iwp__media-body span {
  font-size: 12px;
  color: var(--bc-text-light);
  margin-bottom: 4px;
}

.iwp__block-overview .iwp__overview-list .iwp__media-body strong {
  font-weight: 600;
  font-size: 13px;
  color: var(--bc-navy);
  margin-left: 0;
}

/* Sidebar : coordonnées + annonces similaires */
.iwp__content .iwp__row .iwp__sidebar-agent,
.iwp__content .iwp__row .iwp__sidebar-others {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 24px;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content h3 {
  color: var(--bc-navy);
  font-weight: 700;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content p {
  color: var(--bc-text);
  font-size: 13px;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-email,
.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: var(--bc-radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-email {
  background: var(--bc-red);
  color: #fff;
  word-break: break-all;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-email:hover {
  background: #d64534;
  color: #fff;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-tel {
  background: var(--bc-navy);
  color: #fff;
}

.iwp__content .iwp__row .iwp__sidebar-agent__content a.agent-tel:hover {
  background: var(--bc-navy-dark);
  color: #fff;
}

.iwp__content .iwp__row .iwp__sidebar-others h4 {
  font-family: var(--bc-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--bc-navy);
  text-align: left;
  border-left: 3px solid var(--bc-red);
  padding-left: 12px;
}

.iwp__content .iwp__row .iwp__sidebar-others .iwp__items .iwp__item {
  box-shadow: var(--bc-shadow);
}

/* Formulaire de contact sidebar */
.iwp__content .iwp__row .iwp__sidebar-agent__form form input,
.iwp__content .iwp__row .iwp__sidebar-agent__form form textarea {
  font-family: var(--bc-font);
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-xs);
  background: var(--bc-bg-soft);
}

.iwp__content .iwp__row .iwp__sidebar-agent__form form input[type='submit'] {
  background-color: var(--bc-navy);
  border: none;
  border-radius: var(--bc-radius-sm);
  font-weight: 600;
}

.iwp__content .iwp__row .iwp__sidebar-agent__form form input[type='submit']:hover {
  background-color: var(--bc-navy-dark);
}

/* =============================================================
   Correctifs Elementor / JupiterX
   ============================================================= */
/* La galerie d'images (bande photos concession) déborde de 3px à cause
   des marges négatives de sa rangée → décalage horizontal de la page. */
.elementor-widget-image-gallery {
  overflow-x: clip;
}

/* =============================================================
   Bloc « Trouvez votre véhicule idéal » — shortcode [vehicule_ideal]
   ============================================================= */
.iwp__finder-head {
  text-align: center;
  margin-bottom: 28px;
}

.iwp__finder-head h2 {
  margin: 0 0 10px;
  font-family: var(--bc-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bc-navy);
}

.iwp__finder-head h2 span {
  color: var(--bc-red);
}

.iwp__finder-head p {
  margin: 0;
  font-size: 14px;
  color: var(--bc-text);
}

/* Toggle Occasion / Neuf */
.iwp__finder-toggle {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 28px;
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  box-shadow: var(--bc-shadow);
  padding: 4px;
}

.iwp__finder-toggle label {
  display: inline-flex;
  margin: 0;
}

.iwp__finder-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iwp__finder-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bc-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.iwp__finder-toggle span:hover {
  color: var(--bc-navy);
}

.iwp__finder-toggle input:checked + span {
  background: var(--bc-navy);
  color: #fff;
}

.iwp__finder-toggle input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--bc-navy-tint);
}

/* Tuiles de filtres rapides */
.iwp__finder-types {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.iwp__finder-type {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px 14px;
  background: #fff;
  border: 2px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  box-shadow: var(--bc-shadow);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.iwp__finder-type:hover {
  border-color: var(--bc-navy);
  transform: translateY(-2px);
}

.iwp__finder-type.is-active {
  border-color: var(--bc-navy);
  box-shadow: var(--bc-shadow-hover);
}

.iwp__finder-type-icon {
  color: var(--bc-navy);
  display: inline-flex;
}

.iwp__finder-type-icon svg {
  width: 24px;
  height: 24px;
}

.iwp__finder-type-label {
  font-family: var(--bc-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bc-navy);
  text-align: center;
}

/* Barre de recherche rapide */
.iwp__finder-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  box-shadow: var(--bc-shadow);
  padding: 6px 6px 6px 22px;
}

.iwp__finder-search:focus-within {
  border-color: var(--bc-navy);
  box-shadow: 0 0 0 3px var(--bc-navy-tint);
}

.iwp__finder-search-ico {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--bc-text-light);
}

.iwp__finder-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  height: 44px;
  font-family: var(--bc-font);
  font-size: 13px;
  color: var(--bc-navy);
}

.iwp__finder-search input::placeholder {
  color: var(--bc-text-light);
}

.iwp__finder-submit {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bc-red);
  color: #fff;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.iwp__finder-submit:hover {
  background: #d64534;
}

.iwp__finder-submit svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.iwp__finder-submit:hover svg {
  transform: translateX(3px);
}

@media screen and (max-width: 1024px) {
  .iwp__finder-types {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .iwp__finder-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .iwp__finder-head h2 {
    font-size: 24px;
  }

  .iwp__finder-search {
    border-radius: var(--bc-radius);
    flex-wrap: wrap;
    padding: 12px;
  }

  .iwp__finder-search input {
    flex: 1 1 100%;
    height: 38px;
  }

  .iwp__finder-submit {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   Fiche véhicule — layout Figma (surcharge autowp/single/single-1.php)
   ============================================================= */
.iwp__single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    'gallery sidebar'
    'content sidebar';
  gap: 24px;
  align-items: start;
}

.iwp__single-content {
  grid-area: content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.iwp__single-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 24px;
  min-width: 0;
}

/* Galerie */
.iwp__s-gallery {
  grid-area: gallery;
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 12px;
}

.iwp__s-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bc-bg-soft);
}

.iwp__s-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwp__s-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--bc-navy);
  box-shadow: 0 2px 10px rgba(20, 45, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.iwp__s-gallery-nav:hover {
  background: var(--bc-border);
}

.iwp__s-gallery-nav svg {
  width: 16px;
  height: 16px;
}

.iwp__s-gallery-prev {
  left: 14px;
}

.iwp__s-gallery-next {
  right: 14px;
}

.iwp__s-gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(20, 45, 80, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.iwp__s-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.iwp__s-gallery-thumb {
  flex: 0 0 calc(25% - 8px);
  aspect-ratio: 16 / 10;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.iwp__s-gallery-thumb.is-active,
.iwp__s-gallery-thumb:hover {
  border-color: var(--bc-navy);
  opacity: 1;
}

/* Carte onglets */
.iwp__s-tabs-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  overflow: hidden;
}

.iwp__s-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--bc-border);
  padding: 0 12px;
  overflow-x: auto;
}

.iwp__s-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 12px 14px;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--bc-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.iwp__s-tab:hover {
  color: var(--bc-navy);
}

.iwp__s-tab.is-active {
  color: var(--bc-navy);
  font-weight: 700;
  border-bottom-color: var(--bc-red);
}

.iwp__s-panel {
  display: none;
  padding: 8px 24px 24px;
}

.iwp__s-panel.is-active {
  display: block;
}

/* Tableau libellé / valeur (2 paires par ligne) */
.iwp__s-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.iwp__s-table-cell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bc-border);
}

.iwp__s-table-cell span {
  font-size: 13px;
  color: var(--bc-text-light);
}

.iwp__s-table-cell strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-navy);
  text-align: right;
}

/* Équipements */
.iwp__s-equipements {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.iwp__s-equipements li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--bc-text);
}

.iwp__s-equipements li svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  color: var(--bc-green);
}

.iwp__s-sep {
  border: none;
  border-top: 1px solid var(--bc-border);
  margin: 18px 0;
}

.iwp__s-observations {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bc-text);
}

/* Services associés */
.iwp__s-services {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 24px;
}

.iwp__s-services h2 {
  margin: 0 0 20px;
  font-family: var(--bc-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--bc-navy);
  border-left: 3px solid var(--bc-red);
  padding-left: 12px;
  line-height: 1.3;
}

.iwp__s-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.iwp__s-service + .iwp__s-service {
  border-left: 1px solid var(--bc-border);
  padding-left: 24px;
}

.iwp__s-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bc-red-tint);
  color: var(--bc-red);
  margin-bottom: 10px;
}

.iwp__s-service-icon svg {
  width: 16px;
  height: 16px;
}

.iwp__s-service h3 {
  margin: 0 0 6px;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-red);
}

.iwp__s-service p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--bc-text-light);
}

/* Sidebar */
.iwp__s-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 24px;
}

.iwp__s-marque {
  display: inline-block;
  background: var(--bc-border);
  color: var(--bc-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.iwp__s-title {
  margin: 0 0 2px;
  font-family: var(--bc-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bc-navy);
}

.iwp__s-version {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--bc-text-light);
}

.iwp__s-price {
  background: var(--bc-bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.iwp__s-price strong {
  display: block;
  font-family: var(--bc-font);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bc-red);
}

.iwp__s-price span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--bc-text-light);
}

/* Tuiles specs 2×2 */
.iwp__s-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.iwp__s-spec {
  background: var(--bc-bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.iwp__s-spec-ico {
  display: block;
  color: var(--bc-navy);
  margin-bottom: 6px;
}

.iwp__s-spec-ico svg {
  width: 15px;
  height: 15px;
}

.iwp__s-spec-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--bc-text-light);
  margin-bottom: 2px;
}

.iwp__s-spec strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.iwp__s-badges {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 18px;
}

/* Boutons CTA */
.iwp__s-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iwp__s-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--bc-radius-sm);
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background 0.2s ease;
}

.iwp__s-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.iwp__s-btn-red {
  background: var(--bc-red);
  color: #fff;
}

.iwp__s-btn-red:hover {
  background: #d64534;
  color: #fff;
}

.iwp__s-btn-navy {
  background: var(--bc-navy);
  color: #fff;
}

.iwp__s-btn-navy:hover {
  background: var(--bc-navy-dark);
  color: #fff;
}

/* Partager / Imprimer */
.iwp__s-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bc-border);
}

.iwp__s-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  background: #fff;
  border: 1px solid var(--bc-border-2);
  border-radius: var(--bc-radius-xs);
  font-family: var(--bc-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.iwp__s-btn-ghost:hover {
  border-color: var(--bc-navy);
  color: var(--bc-navy);
}

.iwp__s-btn-ghost.is-copied {
  border-color: var(--bc-green);
  color: var(--bc-green);
}

.iwp__s-btn-ghost svg {
  width: 14px;
  height: 14px;
}

@media screen and (max-width: 1024px) {
  .iwp__single-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'gallery'
      'sidebar'
      'content';
  }

  .iwp__single-sidebar {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  .iwp__s-services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .iwp__s-service + .iwp__s-service {
    border-left: none;
    padding-left: 0;
  }

  .iwp__s-table,
  .iwp__s-equipements {
    grid-template-columns: 1fr;
  }
}

@media print {
  .iwp__s-share,
  .iwp__s-gallery-nav,
  .iwp__s-actions {
    display: none !important;
  }

  .iwp__single-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'gallery'
      'sidebar'
      'content';
  }

  .iwp__s-panel {
    display: block !important;
  }
}

/* =============================================================
   Responsive
   ============================================================= */
@media screen and (max-width: 1100px) {
  .iwp__searchbar-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .iwp__searchbar-top {
    flex-wrap: wrap;
  }

  .iwp__searchbar-input {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 600px) {
  .iwp__searchbar {
    padding: 16px;
  }

  .iwp__searchbar-filters {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .iwp__items .iwp__item .iwp__item-content {
    padding: 16px 18px 18px;
  }

  .iwp__item-footer {
    flex-wrap: wrap;
  }

  .iwp__header-title__price span.iwp_price {
    font-size: 26px;
  }
}
