/* ============================================================
   THEME UPGRADE — modernisation "pro" par-dessus le design existant.
   Chargé APRÈS main.css/components.css : ne modifie que l'apparence,
   aucune structure ni fonction touchée. Retirable en 1 ligne.
   ============================================================ */

/* --- Fond & rythme vertical plus aéré --- */
body { background: #FBFCFD; }
.section { padding: 3.75rem 0; }

/* --- Navbar plus nette --- */
.navbar {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(16,24,40,0.06), 0 6px 24px rgba(16,24,40,0.04);
}
.navbar-link { font-weight: 600; letter-spacing: -0.01em; }
.navbar-link:hover, .navbar-link.active { background: rgba(27,67,50,0.06); color: var(--color-primary); }

/* --- Navbar : ne jamais rogner le bouton de compte (beaucoup d'entrées) --- */
.navbar-inner { max-width: 1440px; gap: 0.6rem; }
.navbar-logo, .navbar-actions { flex-shrink: 0; }           /* logo + compte toujours entiers */
.navbar-logo .brand-logo { height: 32px; }
.navbar-nav { min-width: 0; flex-shrink: 1; flex-wrap: nowrap; gap: 0.15rem; }
.navbar-link { padding: 0.4rem 0.55rem; white-space: nowrap; }
.navbar-actions { gap: 0.4rem; }
/* Le hamburger est redondant quand le menu horizontal s'affiche (desktop) */
@media (min-width: 1025px) { #menu-btn { display: none !important; } }

/* --- Menu déroulant « Louer » (Location / Meublé / Court séjour) --- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle { background: none; border: none; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 0.25rem; }
/* À 0.8 le chevron tombait à 3.58:1 sur blanc. */
.nav-caret { font-size: 0.7em; opacity: 1; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 0.35rem;
  display: none; flex-direction: column; z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-item { padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--color-text); font-weight: 500; white-space: nowrap; font-size: 0.9rem; }
.nav-dropdown-item:hover { background: var(--color-surface-2); color: var(--color-primary); }

/* Bascule en menu hamburger dès 1024px (les entrées ne tiennent pas en dessous) */
@media (max-width: 1024px) {
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--navbar-height); left: 0; right: 0;
    background: var(--color-surface); padding: 1rem;
    box-shadow: var(--shadow); border-bottom: 1px solid var(--color-border); z-index: 200;
  }
  .navbar-nav.open .navbar-link { padding: 0.75rem 1rem; font-size: 1rem; min-height: 44px; }
  /* Le déroulant « Louer » s'affiche en liste dans le menu mobile */
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-menu { position: static; display: flex; box-shadow: none; border: none; padding: 0 0 0 0.75rem; min-width: 0; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}

/* --- Boutons : radius plus sobre + ombres douces (aspect pro) --- */
.btn { border-radius: 10px; letter-spacing: -0.01em; }
.btn-lg, .btn-xl { border-radius: 12px; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(27,67,50,0.22); }
.btn-accent { box-shadow: 0 6px 18px rgba(255,107,53,0.18); }
.btn-accent:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(255,107,53,0.30); }

/* ============================ HERO ============================ */
.hero { padding: 5.5rem 1rem 5rem; }
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 64px;
  background: linear-gradient(180deg, transparent, rgba(251,252,253,0.0) 0%, #FBFCFD 100%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 2.25rem; }
.hero-counter { background: rgba(255,255,255,0.14); }

/* Barre de recherche : carte flottante premium */
#hero-search {
  border-radius: 18px !important;
  padding: 0.45rem !important;
  gap: 0 !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.30), 0 2px 6px rgba(0,0,0,0.10) !important;
  border: 1px solid rgba(255,255,255,0.5);
}
#hero-search .form-control {
  height: 58px;
  padding: 0 1.1rem !important;
  font-size: 0.95rem;
  border-radius: 12px !important;
  background: transparent;
}
#hero-search select.form-control:not(:last-of-type) {
  border-right: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
}
#hero-search .form-control:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255,107,53,0.35);
  border-radius: 12px !important;
}
#hero-search .btn {
  height: 58px;
  padding: 0 1.7rem !important;
  border-radius: 12px !important;
  font-size: 1rem;
}
@media (max-width: 720px) {
  #hero-search { grid-template-columns: 1fr 1fr !important; gap: 0.4rem !important; }
  #hero-search .btn { grid-column: 1 / -1; }
  #hero-search select.form-control:not(:last-of-type) { border-right: none !important; border-radius: 12px !important; }
}

/* Onglets du hero */
#hero-tabs .tab { font-weight: 600; font-size: 0.95rem; padding: 0.5rem 1.1rem; }

/* ===================== EN-TÊTES DE SECTION ===================== */
.section-header { align-items: center; margin-bottom: 1.6rem; }
.section-title { font-size: 1.55rem; letter-spacing: -0.02em; }
.section-title::after { display: none; } /* retire le petit tiret, plus épuré */
.section-subtitle { font-size: 0.95rem; margin-top: 0.25rem; }
.section-header .btn-ghost { font-weight: 600; color: var(--color-primary); }
.section-header .btn-ghost:hover { color: var(--color-accent); background: transparent; }

/* ===================== CARTES ===================== */
.listing-card {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 2px 6px rgba(16,24,40,0.06);
}
.listing-card:hover {
  box-shadow: 0 20px 44px rgba(16,24,40,0.13);
  transform: translateY(-4px);
}
.card { border-radius: 16px; }

/* Stat cards + quartiers */
.stat-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 2px 8px rgba(16,24,40,0.05); }
.stat-card .stat-value { font-size: 1.9rem; }
#neighborhoods .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
#neighborhoods .card:hover { border-color: rgba(27,67,50,0.22); box-shadow: 0 12px 28px rgba(16,24,40,0.10); }

/* ============ SECTION SERVICES (verte) ============ */
section[style*="var(--color-primary)"] { padding: 4rem 0 !important; }
section[style*="var(--color-primary)"] .card {
  border-radius: 16px !important;
  transition: transform .2s ease, background .2s ease;
}
section[style*="var(--color-primary)"] a.card:hover {
  background: rgba(255,255,255,0.16) !important;
  transform: translateY(-3px);
}

/* ============ CTA PROFESSIONNELS ============ */
#pro-cta-section { padding: 4.25rem 0 !important; }
#pro-cta-grid > div { border-radius: 18px !important; transition: transform .2s ease, box-shadow .2s ease; }
#pro-cta-grid > div:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,24,40,0.12) !important; }

/* ============ FOOTER ============ */
footer h5 { letter-spacing: 0.02em; font-size: 0.8rem; text-transform: uppercase; opacity: 0.9; }
footer a:hover { color: #fff !important; }

/* --- Correctif mobile : la fiche du bien (grille 1fr 340px inline) doit s'empiler --- */
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr !important; }
  .listing-layout > div[style*="sticky"] { position: static !important; }
}

/* --- Rangée Sauvegarder / Partager / Signaler : jamais rognée --- */
.listing-actions-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.15rem; }
.listing-actions-row .btn { padding: 0.4rem 0.45rem; font-size: 0.78rem; flex: 1 1 auto; min-width: 0; }
