/* Styles pour les cards en étagement */
@media (min-width: 992px) {
  .card-etagement-left {
    transform: translateX(-30px);
    z-index: 2;
  }

  .card-etagement-center {
    z-index: 1;
  }

  .card-etagement-right {
    transform: translateX(30px);
    z-index: 0;
  }
}

/* Tous les écrans - styles communs */
.card-hover {
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-hover:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Styles pour les cartes de propriétés */
.popular-list-1 {
  margin-bottom: 15px;
}

.popular-list-1 .swiper-slide {
  height: 200px !important; /* Réduire la hauteur des slides d'images */
  overflow: hidden;
}

.popular-list-1 .property-content {
  padding: 15px 12px;
}

.popular-list-1 .media-body {
  margin-bottom: 10px;
}

.popular-list-1 .box-title {
  margin-bottom: 5px;
  font-size: 16px;
}

.popular-list-1 .box-text {
  margin-bottom: 5px;
}

.popular-list-1 .property-featured {
  padding: 8px 0;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.popular-list-1 .property-featured li {
  font-size: 13px;
  padding: 0 5px;
}

.popular-list-1 .property-bottom {
  padding-top: 8px;
}

/* Styles pour les cartes de catégorie */
.blog-card.style-2 {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card.style-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card.style-2 .blog-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.blog-card.style-2 .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card.style-2:hover .blog-img img {
  transform: scale(1.05);
}

.blog-card.style-2 .date {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 15px 10px 10px;
  text-align: center;
}

.blog-card.style-2 .date a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.blog-card.style-2 .blog-content {
  padding: 15px;
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card.style-2 .blog-content p {
  margin-bottom: 15px;
  line-height: 1.4;
  font-size: 14px;
}

.blog-card.style-2 .blog-content .th-btn {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 14px;
}

/* ===== Catégories (Nouvelle disposition) ===== */
.category-section-wrapper {
  position: relative;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.category-grid .category-col {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
} /* mobile >=576 */
@media (min-width: 992px) {
  .category-grid .category-col {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  } /* 2 colonnes */
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #111;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.category-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
  opacity: 0.95;
  transition: opacity 0.5s ease;
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  transition: transform 1.2s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.35);
}
.category-card:hover img {
  transform: scale(1.08);
}
.category-card:hover:before {
  opacity: 1;
}
.category-card .cat-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-card .cat-badge {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.category-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  color: #fff;
}
.category-card p {
  font-size: 0.78rem;
  line-height: 1.25rem;
  margin: 0;
  color: #e6e6e6;
  opacity: 0.85;
}
.category-card .th-btn {
  --btn-padding-y: 6px;
  --btn-padding-x: 16px;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: 0.7rem;
  line-height: 1;
  margin-top: auto;
  align-self: start;
  transform: translateY(4px);
  opacity: 0;
  transition: all 0.45s ease;
}
.category-card:hover .th-btn {
  transform: translateY(0);
  opacity: 1;
}

/* Mode slider mobile (on cache la grille au-dessous de lg) */
@media (max-width: 991.98px) {
  .category-grid-desktop {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .category-slider-mobile {
    display: none !important;
  }
}

/* Pagination fine tuning (si Swiper utilisé en mobile) */
.category-slider-mobile .slider-pagination2 {
  bottom: -6px;
}

/* ===== Section Vision / Mission / Valeurs ===== */
.feature-section {
  margin-top: 60px;
  margin-bottom: 40px;
}
.feature-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
}
.feature-image {
  flex: 1 1 420px;
  min-height: 430px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.28);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.feature-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 65%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 0.85;
  transition: opacity 0.6s ease;
}
.feature-image:hover:after {
  opacity: 0.95;
}
.feature-pills {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-item {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 18px 22px 18px 20px;
  background: #ffffff;
  border: 1px solid #edf0f3;
  border-radius: 18px;
  box-shadow: 0 6px 14px -6px rgba(24, 32, 56, 0.08);
  transition: box-shadow 0.45s ease, transform 0.45s ease,
    border-color 0.45s ease;
}
.feature-item:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    rgba(255, 193, 7, 0.15),
    rgba(255, 193, 7, 0)
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px -10px rgba(24, 32, 56, 0.18);
  border-color: #eb641b;
}
.feature-item:hover:before {
  opacity: 1;
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #222, #111);
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.38);
}
.feature-icon i {
  font-size: 26px;
}
.feature-body {
  flex: 1;
  position: relative;
  z-index: 2;
}
.feature-body h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-body p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.35rem;
  color: #4d5661;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #fff7df;
  padding: 4px 9px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991.98px) {
  .feature-wrapper {
    gap: 28px;
  }
  .feature-image {
    min-height: 340px;
  }
  .feature-item {
    padding: 16px 18px;
  }
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  .feature-body h4 {
    font-size: 1rem;
  }
  .feature-body p {
    font-size: 0.78rem;
    line-height: 1.28rem;
  }
}

@media (max-width: 575.98px) {
  .feature-image {
    min-height: 300px;
  }
  .feature-pills {
    gap: 14px;
  }
  .feature-item {
    border-radius: 16px;
  }
  .feature-icon {
    border-radius: 14px;
  }
}

/* Effet de flou diagonal sur le hero */
.hero-blur-effect {
  position: relative;
  overflow: hidden;
}

.hero-blur-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

/* Activation au survol OU par la classe scrolled */
.hero-blur-effect:hover::before,
.hero-blur-effect.scrolled::before {
  opacity: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-blur-effect .hero-content-wrapper {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

/* Agrandissement au survol OU par la classe scrolled */
.hero-blur-effect:hover .hero-content-wrapper,
.hero-blur-effect.scrolled .hero-content-wrapper {
  transform: scale(1.05);
}

.hero-blur-effect:hover .hero-title,
.hero-blur-effect:hover .title2,
.hero-blur-effect:hover .hero-text p,
.hero-blur-effect.scrolled .hero-title,
.hero-blur-effect.scrolled .title2,
.hero-blur-effect.scrolled .hero-text p {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.hero-blur-effect .hero-title,
.hero-blur-effect .title2,
.hero-blur-effect .hero-text p {
  transition: transform 0.5s ease;
}
