/* =========================================================
   CUSTOM GLOBAL STYLES – Immobilier Madagascar
   Fichier : assets/css/custom.css
   ========================================================= */

/* ===============================
   RESET / BASE (sécurisant)
   =============================== */

.pg-values *,
.pg-values *::before,
.pg-values *::after {
  box-sizing: border-box;
}

/* ===============================
   SECTION : NOS VALEURS (4 BLOCS)
   =============================== */

.pg-values {
  padding: 80px 0;
  background-color: #ffffff;
}

.pg-values-head {
  text-align: center;
  margin-bottom: 36px;
}

.pg-values-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.pg-values-subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   GRID – 4 BLOCS ALIGNÉS
   =============================== */

.pg-values-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
  align-items: stretch;
}

/* ===============================
   CARTE INDIVIDUELLE
   (pg-value-item = ton HTML)
   =============================== */

.pg-value-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pg-value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* ===============================
   ICÔNE
   =============================== */

.pg-value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pg-value-icon ion-icon {
  font-size: 30px;
  color: #ef4444;
}

/* ===============================
   TEXTE
   =============================== */

.pg-value-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.pg-value-text {
  font-size: 0.98rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1100px) {
  .pg-values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .pg-values {
    padding: 60px 0;
  }

  .pg-values-grid {
    grid-template-columns: 1fr !important;
  }

  .pg-values-title {
    font-size: 1.8rem;
  }
}

/* =====================================================
   SUPPRESSION GLOBALE DE LA BARRE HEADER-TOP
   (email / localisation / réseaux sociaux)
   ===================================================== */

.header-top {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header {
  padding-top: 0 !important;
}

.header[data-header] {
  top: 0 !important;
}

/* =====================================================
   CONTACT PAGE – BACKGROUND IMAGE + BLUR + DARK OVERLAY
   ===================================================== */

.contact-wrap {
  position: relative;
  padding: 140px 0 80px;
  background-image: url("../images/contact-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contact-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  z-index: 0;
}

.contact-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.contact-wrap::after {
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}

.contact-wrap > .container {
  position: relative;
  z-index: 1;
}
.contact-card {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.96);
}

/* =====================================================
   SEARCH HERO (ROA STYLE) – Recherche.html
   ===================================================== */

.search-hero {
  position: relative;
  height: 360px;
  background-image: url("../images/search-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.search-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 30, 0.65) 0%,
    rgba(10, 20, 30, 0.50) 55%,
    rgba(10, 20, 30, 0.32) 100%
  );
}

.search-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.25) 100%
  );
}

.search-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.search-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  width: fit-content;
}

.search-title {
  color: #fff;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.search-subtitle {
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  font-size: 16px;
  margin: 0;
}

.search-section {
  margin-top: -90px;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.search-section .pg-search-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
  .search-hero { height: 320px; }
  .search-section { margin-top: -70px; }
}

@media (max-width: 600px) {
  .search-hero { height: 300px; }
  .search-section { margin-top: -60px; }
}

/* =====================================================
   ✅ HEADER COMPACT (déjà en place)
   ===================================================== */

body {
  padding-top: 0 !important;
}

.header .header-bottom {
  padding: 6px 0 !important;
  margin: 0 !important;
}

.header .header-bottom .container {
  min-height: 64px !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.header a.logo img {
  height: 36px !important;
  width: auto !important;
  display: block !important;
}

.header .navbar-link {
  padding: 10px 10px !important;
  line-height: 1 !important;
}

.header .header-bottom-actions-btn {
  padding: 10px 12px !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .header .header-bottom {
    padding: 4px 0 !important;
  }

  .header .header-bottom .container {
    min-height: 56px !important;
    gap: 12px !important;
  }

  .header a.logo img {
    height: 30px !important;
  }

  .header .navbar-link {
    padding: 9px 8px !important;
  }
}

/* =====================================================
   ✅ NAV MOBILE + GLASS (SANS TOUCHER DESKTOP)
   + ✅ FIX FOOTER MOBILE (footer collé en bas)
   ===================================================== */

@media (max-width: 767px) {

  /* 1) On enlève la barre fixe en bas (mobile only) */
  .header-bottom-actions {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    z-index: 6 !important;
  }

  /* 2) Hamburger glass dark */
  .header-bottom-actions-btn[data-nav-open-btn] {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 14px !important;

    display: grid !important;
    place-items: center !important;

    background: rgba(12, 26, 44, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    box-shadow: 0 14px 30px rgba(0,0,0,0.22) !important;

    position: relative !important;
    z-index: 7 !important;
  }

  .header-bottom-actions-btn[data-nav-open-btn] span {
    display: none !important;
  }

  .header-bottom-actions-btn[data-nav-open-btn] ion-icon {
    margin: 0 !important;
    font-size: 26px !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
  }

  .header-bottom-actions-btn[data-nav-open-btn]:active {
    transform: translateY(1px) !important;
  }

  .overlay { z-index: 8 !important; }
  .navbar { z-index: 9 !important; }

  .navbar-link {
    width: 100% !important;
    display: block !important;
    padding: 14px 10px !important;
  }

  /* 3) Search box glass (index) */
  #home-search-box.hero-pg-box,
  #home-search-box {
    background: rgba(255, 255, 255, 0.60) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;

    box-shadow: 0 26px 60px rgba(0,0,0,0.18) !important;
  }

  #home-search-box input,
  #home-search-box select {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  #home-search-box .hero-pg-btn {
    box-shadow: 0 18px 36px rgba(0,0,0,0.18) !important;
  }

  /* =====================================================
     ✅ FIX FOOTER MOBILE (le problème "footer un peu en haut")
     - 1) On supprime le margin-bottom mobile (68px de style.css)
     - 2) On force le footer à rester en bas de l'écran si page courte
     ===================================================== */

  /* Structure page mobile en flex */
  html, body {
    height: 100% !important;
  }

  body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Le contenu prend l'espace */
  body > main {
    flex: 1 0 auto !important;
  }

  /* Le footer colle en bas */
  .footer {
    margin-top: auto !important;
    margin-bottom: 0 !important; /* annule le 68px mobile de style.css */
  }
}
/* =========================================================
   CUSTOM GLOBAL STYLES – MaisonLouer
   Fichier : assets/css/custom.css
   Objectif de ce patch :
   - Changer UNIQUEMENT la couleur du footer
   - Mobile + Desktop
   - Sans impacter header ni layout
   ========================================================= */

/* =====================================================
   FOOTER – COULEUR UNIFIÉE (MOBILE + DESKTOP)
   Ancienne couleur : #282b37
   Nouvelle couleur  : #0b203a
   ===================================================== */

/* Footer principal */
.footer {
  background-color: #0b203a !important;
}

/* Barre inférieure du footer */
.footer-bottom {
  background-color: #0b203a !important;
}

/* Textes et liens : on garde la lisibilité */
.footer,
.footer a,
.footer p,
.footer span {
  color: #ffffff !important;
}

/* Hover lien footer (léger contraste, sans changer le style global) */
.footer a:hover {
  opacity: 0.85;
}
