/* ----------------------------------------------------------------------
   CSS SPÉCIFIQUE - PAGE D'ACCUEIL MAMAN SAGO IMMOBILIER
------------------------------------------------------------------------- */
:root {
  --primary: #1e3a8a; /* Bleu Royal Profond */
  --secondary: #dc2626; /* Rouge Identitaire Logo */
}

/* --- 1. HERO SECTION & BACKGROUND MULTI-ÉCRANS --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  background-image: url("../img/biens/header-cover.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.85) 30%,
    rgba(15, 23, 42, 0.4) 100%
  );
  z-index: 1;
}

.text-primary {
  color: var(--primary) !important;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.dynamic-badge {
  background-color: rgba(220, 38, 38, 0.15) !important;
  border: 1px solid var(--secondary);
  color: var(--secondary) !important;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* --- 2. BLOC MOTEUR DE RECHERCHE INTEGRÉ --- */
.search-engine-wrapper {
  background: #ffffff;
  border-radius: 6px;
  padding: 2rem;
  margin-top: 3.5rem;
}

.bar-shadow {
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.search-tabs .nav-link {
  font-weight: 700;
  color: var(--dark);
  background: #f1f5f9;
  border: none !important;
  padding: 0.6rem 1.5rem;
  margin-right: 0.5rem;
  border-radius: 4px 4px 0 0 !important;
  transition: var(--transition-fast);
}

.search-tabs .nav-link:hover {
  background: #e2e8f0;
}

.search-tabs .nav-link.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.search-engine-wrapper .form-select,
.search-engine-wrapper .form-control {
  height: 52px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

.search-engine-wrapper .input-group-text {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
}

/* --- 3. SECTION SERVICES & CARDS --- */
.title-line {
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(30, 58, 138, 0.06);
}

.service-card .icon-box {
  width: 65px;
  height: 65px;
  background-color: rgba(30, 58, 138, 0.05);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
  transition: var(--transition-fast);
}

.service-card:hover .icon-box {
  background-color: var(--secondary);
  color: #ffffff;
}

/* --- 4. BANDEAU COMPTEUR DE CONFIANCE --- */
.banner-counter {
  background: linear-gradient(135deg, var(--primary) 0%, #11255a 100%);
  position: relative;
}

/* --- 5. BOITE DE DIALOGUE CTA --- */
.cta-box {
  background: #f8fafc;
  border-color: var(--border-color) !important;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(30, 58, 138, 0.03) 0%,
    transparent 80%
  );
}

/* --- 6. ADAPTATION STRUCTURELLE RESPONSIVE (MEDIA QUERIES) --- */

/* Très grands écrans et ordinateurs standard */
@media (min-width: 992px) {
  .search-engine-wrapper {
    padding: 2.25rem 2.5rem;
  }
}

/* Tablettes et Écrans Intermédiaires (iPad/Ajustements tactiles) */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .search-engine-wrapper {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

/* Écrans Mobiles Compacts (Smartphones) */
@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .display-3 {
    font-size: 2.15rem !important;
    line-height: 1.2;
  }

  .search-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .search-engine-wrapper {
    padding: 1.25rem 1rem;
  }

  .btn-search {
    padding: 0.85rem 1rem !important;
  }

  .font-size-sm {
    font-size: 0.8rem;
  }

  .cta-box {
    padding: 2rem 1.5rem !important;
  }
}
