/* FEATURED LISTINGS — CAROUSEL (Swiper) - Correctif overflow pour supprimer le décalage. */
.featured-listings {
  padding: 3.25rem 0 6.25rem;
  background: #fff;
  --bs-card-border-width: 0;
  overflow: hidden; /* n'élargit jamais la page */
}
.featured-listings .carrousel-title {
    padding: 0;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding-left: 5rem;
    margin-bottom: 2.5rem;
    position: relative;
}
/* Titre + commandes */
.featured-listings .big-title-carrousel {
  padding: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: 5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.featured-listings h2 {
  font: var(--h2-font);
  color: #222;
}
.swiper-slide.card {
  border: 0;
}

/* Container */
.featured-listings .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}
.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    position: absolute;
    right: 8rem;
    top: 20%;
}
/* Flèches de contrôle (n'influencent pas la largeur de page) */
.controls {
    display: flex;
    gap: 2.1875rem;
    pointer-events: auto;
    width: 100px;
        position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    display: flex;
    gap: 2.1875rem;
    pointer-events: auto;
}
.controls button {
  border: none;
  background: transparent;
  color: #004c66;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.controls button:hover {
  color: #008996;
}
.controls button.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.controls button svg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}
.featured-listings .controls.controls--hidden {
  display: none !important;
}

/* Wrapper full-bleed (ne déborde jamais du viewport) */
.bleed-right {
  width: calc(100vw - 5rem);
  max-width: 100vw;
  position: relative;
  margin-left: 0;
}

/* Viewport Swiper — CLIP obligatoire pour éviter le décalage horizontal */
.carousel-viewport,
.featured-listings .swiper {
  width: 100%;
  position: relative;
  cursor: default;
  overflow: initial !important;
}

/* Wrapper + slides */
.featured-listings .swiper-wrapper {
  display: flex;
  gap: 0; /* ⬅️ IMPORTANT: pas de gap CSS, Swiper gère l’espace */
  will-change: transform;
}
.swiper-wrapper .swiper-slide {
  width: 23rem;
  margin-right: 0; /* neutralise l'ancien spacing inline de Swiper */
}

/* Carte */
.bleed-right .card {
  display: flex;
  flex-direction: column;
  border: 0;
}
.card-media {
  position: relative;
  height: 27rem;
  border-radius: 1.5rem; /* 24px */
  overflow: hidden;
  margin-bottom: 1.25rem; /* 20px */
  cursor: pointer;
}
.services-cta-card img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s cubic-bezier(0.2, 0, 0.2, 1);
}
.services-cta-card:hover img,
.services-cta-card:focus-within img,
.featured-listings .card-media:hover img,
.featured-listings .card-media:focus-within img {
  transform: scale(1.15);
}
.card .badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border: 1px solid #c2ac85;
  border-radius: 0.375rem;
  padding: 0.375rem 1rem; /* 6px 16px */
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  color: #ceae7e;
}

/* Infos */
.card-info p {
  margin: 0;
}
.card-info p.details {
  min-height: 1rem;
}
.card-info .details {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ceae7e;
  margin-top: 0.625rem;
}
.card-info .price {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0.75rem;
  color: #222;
}

.immobilier--service-louer .card-info p.price,
.immobilier--service-vendre .card-info p.price {
  display: none;
}


@media (min-width: 1024px) {
  .carousel-viewport,
  .featured-listings .swiper {
    padding-right: 5rem;
    margin-left: 5rem;
  }
  .featured-listings{
    padding-bottom: 3rem;
  }
}
@media (max-width: 768px) {
  .featured-listings .big-title-carrousel {
      padding-left: 0rem;
      position: relative;
      align-items: center;
      display: flex;
      flex-direction: column;
      align-content: center;
  }
  .featured-listings .big-title-carrousel h2{
    text-align: center;
  }
    .featured-listings{
    padding-bottom: 2rem;
  }
}