/* ============================================================
   AGENCE IMMOBILIÈRE — STYLE
   Palette: #1a3a52 / #4a90e2 / #f5f5f5 / #27ae60
   ============================================================ */

:root {
  --bleu:        #1a3a52;
  --bleu-mid:    #24527a;
  --bleu-clair:  #4a90e2;
  --bleu-hover:  #3a7dcf;
  --gris-bg:     #f5f5f5;
  --gris-card:   #ffffff;
  --gris-border: #e0e0e0;
  --gris-mid:    #7a7a7a;
  --gris-dark:   #4a4a4a;
  --vert:        #27ae60;
  --vert-dark:   #1e8449;
  --blanc:       #ffffff;
  --rouge-fav:   #e74c3c;
  --roboto:      'Roboto', sans-serif;

  --radius:      8px;
  --shadow-card: 0 2px 12px rgba(26,58,82,0.08);
  --shadow-hover: 0 8px 32px rgba(26,58,82,0.16);
  --transition:  0.25s ease;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--roboto);
  color: var(--gris-dark);
  background: var(--gris-bg);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bleu); color: var(--blanc);
  padding: 0.75rem 1.5rem; border-radius: 32px;
  font-size: 0.875rem; font-weight: 500;
  opacity: 0; transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; white-space: nowrap; z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 900;
  background: var(--bleu);
  box-shadow: 0 2px 16px rgba(0,0,0,0.20);
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1300px; margin: 0 auto;
  padding: 0 2rem; height: 68px; gap: 1.5rem;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.15rem; font-weight: 900;
  color: var(--blanc); letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { font-size: inherit; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  flex: 1; justify-content: center;
}
.nav-links a {
  display: block; padding: 0.4rem 0.85rem;
  color: rgba(255,255,255,0.82); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blanc);
  background: rgba(255,255,255,0.12);
}

.navbar-right { display: flex; align-items: center; gap: 0.75rem; }

.account-btn {
  background: var(--bleu-clair); color: var(--blanc);
  padding: 0.45rem 1rem; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background var(--transition);
  white-space: nowrap;
}
.account-btn:hover { background: var(--bleu-hover); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.burger span {
  display: block; height: 2px; background: var(--blanc); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--bleu-mid); border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 0.5rem 0; }
.mobile-nav a {
  display: block; padding: 0.85rem 2rem;
  color: rgba(255,255,255,0.88); font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,144,226,0.20) 0%, transparent 70%),
    linear-gradient(135deg, #1a3a52 0%, #24527a 50%, #1a3a52 100%);
}

/* City skyline silhouette on hero */
.hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background:
    /* Buildings */
    linear-gradient(0deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.04) 20%,
      transparent 20%
    ),
    radial-gradient(ellipse 100% 100% at 50% 110%, rgba(26,58,82,0.6) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1300px; margin: 0 auto; padding: 5rem 2rem 4rem;
  width: 100%;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
  font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--blanc); line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  color: rgba(255,255,255,0.70); font-size: 1.05rem;
  max-width: 580px; margin-bottom: 2.5rem; line-height: 1.7;
}

/* Search bar */
.search-bar {
  display: flex; align-items: center;
  background: var(--blanc); border-radius: 10px;
  overflow: hidden; max-width: 720px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  height: 58px;
}

.search-icon {
  padding: 0 1rem 0 1.25rem; font-size: 1.1rem;
  color: var(--gris-mid); flex-shrink: 0;
}

.search-input {
  flex: 1; border: none; outline: none;
  font-size: 0.95rem; color: var(--gris-dark);
  background: transparent; padding: 0 0.5rem;
}
.search-input::placeholder { color: var(--gris-mid); }

.search-btn {
  background: var(--bleu-clair); color: var(--blanc);
  padding: 0 1.75rem; height: 100%;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 0 10px 10px 0;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--bleu-hover); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
}
.hstat { display: flex; flex-direction: column; gap: 0.1rem; }
.hstat-n { font-size: 1.6rem; font-weight: 900; color: var(--blanc); }
.hstat-l { font-size: 0.78rem; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; }

/* ── QUICK TABS ───────────────────────────────────────────── */
.quick-tabs {
  display: flex; justify-content: center; gap: 0;
  background: var(--blanc);
  border-bottom: 2px solid var(--gris-border);
}
.qtab {
  padding: 1rem 2rem; font-size: 0.9rem; font-weight: 600;
  color: var(--gris-mid); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color var(--transition), border-color var(--transition);
}
.qtab.active { color: var(--bleu-clair); border-bottom-color: var(--bleu-clair); }
.qtab:hover:not(.active) { color: var(--gris-dark); }

/* ── LISTINGS LAYOUT ──────────────────────────────────────── */
.listings-section { padding: 2rem 0 4rem; }

.listings-container {
  max-width: 1300px; margin: 0 auto; padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.filters-sidebar {
  background: var(--gris-card); border: 1px solid var(--gris-border);
  border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 88px;
}

.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--gris-border);
}
.filters-head h3 { font-size: 1rem; font-weight: 700; color: var(--bleu); }

.filter-reset {
  font-size: 0.78rem; color: var(--bleu-clair); font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  transition: background var(--transition);
}
.filter-reset:hover { background: rgba(74,144,226,0.10); }

.filter-group {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gris-border);
}
.filter-group:last-of-type { border-bottom: none; }

.filter-group h4 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--bleu); margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.checkbox-label {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0; font-size: 0.88rem; color: var(--gris-dark);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--bleu-clair); cursor: pointer;
}

/* Range slider */
.range-wrapper { display: flex; flex-direction: column; gap: 0.6rem; }
.range-input {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: linear-gradient(to right, var(--bleu-clair) 0%, var(--bleu-clair) var(--pct, 100%), var(--gris-border) var(--pct, 100%));
  border-radius: 2px; outline: none; cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--bleu-clair); border-radius: 50%;
  border: 2px solid var(--blanc); box-shadow: 0 0 0 2px var(--bleu-clair);
  cursor: pointer;
}
.range-input::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--bleu-clair); border-radius: 50%;
  border: 2px solid var(--blanc); cursor: pointer;
}
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--gris-mid);
}
.range-cur { color: var(--bleu-clair); font-weight: 700; }

.location-select {
  width: 100%; padding: 0.55rem 0.75rem;
  border: 1px solid var(--gris-border); border-radius: 6px;
  font-size: 0.88rem; color: var(--gris-dark); background: var(--blanc);
  outline: none; cursor: pointer;
  transition: border-color var(--transition);
}
.location-select:focus { border-color: var(--bleu-clair); }

.filters-apply-mobile {
  display: none; width: calc(100% - 2.5rem); margin: 1rem 1.25rem;
  background: var(--bleu-clair); color: var(--blanc);
  padding: 0.9rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
}

/* ── LISTINGS MAIN ────────────────────────────────────────── */
.listings-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem;
}
.listings-count { font-size: 0.9rem; color: var(--gris-mid); }
.listings-count span { font-weight: 700; color: var(--gris-dark); font-size: 1rem; }

.sort-select {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--gris-border); border-radius: 6px;
  font-size: 0.85rem; color: var(--gris-dark); background: var(--blanc);
  outline: none; cursor: pointer;
}

/* ── LISTINGS GRID ────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── LISTING CARD ─────────────────────────────────────────── */
.listing-card {
  background: var(--gris-card);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.listing-card.hidden { display: none; }

/* Property image (CSS art) */
.listing-image {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.prop-img {
  width: 100%; height: 100%;
  transition: transform 0.45s ease;
}
.listing-card:hover .prop-img { transform: scale(1.05); }

/* ── PROPERTY CSS ART ─────────────────────────────────────── */
.prop-apt1 {
  background:
    radial-gradient(ellipse 55% 70% at 78% 20%, rgba(200,220,245,0.65) 0%, transparent 60%),
    radial-gradient(ellipse 25% 25% at 78% 0%, rgba(225,240,255,0.90) 0%, transparent 50%),
    radial-gradient(ellipse 15% 40% at 20% 50%, rgba(180,195,215,0.30) 0%, transparent 60%),
    linear-gradient(180deg, #d4cec6 0%, #e0d9d0 30%, #ccc4b8 65%, #b8b0a4 85%, #a8a098 100%);
}

.prop-house1 {
  background:
    radial-gradient(ellipse 20% 15% at 75% 15%, rgba(255,255,200,0.80) 0%, transparent 50%),
    linear-gradient(180deg,
      #87c7e8 0%, #a8d8f0 22%,
      #f0ebe0 24%, #e8dcc8 38%, #d8c8a0 48%,
      #a8c870 52%, #78b040 60%,
      #58881e 75%, #406015 100%);
}

.prop-loft1 {
  background:
    radial-gradient(ellipse 70% 40% at 50% 15%, rgba(220,195,165,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 80% 30%, rgba(200,175,145,0.25) 0%, transparent 50%),
    linear-gradient(180deg, #3c3230 0%, #484040 20%, #382e2c 40%, #504644 55%, #404040 70%, #343030 100%);
}

.prop-studio1 {
  background:
    radial-gradient(ellipse 55% 65% at 80% 25%, rgba(215,230,250,0.70) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 80% 0%, rgba(235,245,255,0.90) 0%, transparent 50%),
    linear-gradient(180deg, #f0eeea 0%, #f5f3ef 40%, #e0ddd8 65%, #d0cdc8 100%);
}

.prop-apt2 {
  background:
    radial-gradient(ellipse 45% 60% at 72% 22%, rgba(255,220,175,0.50) 0%, transparent 65%),
    radial-gradient(ellipse 25% 28% at 72% 0%, rgba(255,235,195,0.90) 0%, transparent 50%),
    linear-gradient(180deg, #ddd5c5 0%, #e8dece 35%, #d0c8b5 65%, #c0b8a5 85%, #b0a895 100%);
}

.prop-house2 {
  background:
    radial-gradient(ellipse 18% 14% at 70% 12%, rgba(255,255,180,0.85) 0%, transparent 50%),
    linear-gradient(180deg,
      #96c8e0 0%, #b4d8f0 20%,
      #e8ddb0 22%, #dccb8c 38%, #c8b870 48%,
      #90a845 52%, #687030 58%,
      #485020 65%, #383f15 80%, #282d0a 100%);
}

.prop-studio2 {
  background:
    radial-gradient(ellipse 60% 70% at 75% 30%, rgba(210,225,245,0.55) 0%, transparent 60%),
    linear-gradient(160deg, #f5f5f2 0%, #ebebea 40%, #d8d8d5 75%, #c8c8c5 100%);
}

.prop-apt3 {
  background:
    radial-gradient(ellipse 60% 55% at 65% 28%, rgba(175,220,195,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 65% 0%, rgba(200,235,215,0.90) 0%, transparent 50%),
    linear-gradient(180deg, #d0e0d4 0%, #dae8de 35%, #c0d0c4 60%, #a8c4b0 80%, #88b098 100%);
}

.prop-villa1 {
  background:
    radial-gradient(ellipse 55% 30% at 50% 78%, rgba(100,165,225,0.70) 0%, rgba(60,130,200,0.45) 45%, transparent 75%),
    radial-gradient(ellipse 20% 14% at 68% 14%, rgba(255,255,180,0.85) 0%, transparent 50%),
    linear-gradient(180deg,
      #7dbfe0 0%, #a0cce8 15%,
      #e8d8a8 17%, #d8c080 30%, #c8a860 42%,
      #a8c060 46%, #98c848 52%,
      #78b038 58%, #5888f0 65%, #3868d0 80%, #2050b0 100%);
}

/* Favorite button */
.favorite-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.90);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gris-mid);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.favorite-btn:hover { background: var(--rouge-fav); color: var(--blanc); transform: scale(1.1); }
.favorite-btn.active { background: var(--rouge-fav); color: var(--blanc); }

/* Badge */
.listing-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 0.25rem 0.65rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
}
.badge-vente { background: var(--bleu-clair); color: var(--blanc); }
.badge-location { background: var(--vert); color: var(--blanc); }
.badge-prestige { background: #9b59b6; color: var(--blanc); }

/* Card content */
.listing-content { padding: 1.1rem; }

.listing-title {
  font-size: 0.97rem; font-weight: 700; color: var(--bleu);
  margin-bottom: 0.35rem; line-height: 1.3;
}

.listing-location { font-size: 0.82rem; color: var(--gris-mid); margin-bottom: 0.65rem; }

.listing-specs {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.listing-specs span {
  font-size: 0.75rem; color: var(--gris-dark);
  background: var(--gris-bg); padding: 0.2rem 0.55rem;
  border-radius: 4px; border: 1px solid var(--gris-border);
}

.listing-footer { display: flex; align-items: center; justify-content: space-between; }

.listing-price {
  font-size: 1.1rem; font-weight: 900; color: var(--vert);
}

.details-btn {
  background: var(--bleu-clair); color: var(--blanc);
  padding: 0.45rem 1rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700;
  transition: background var(--transition);
}
.details-btn:hover { background: var(--bleu-hover); }

/* Empty state */
.empty-state {
  text-align: center; padding: 5rem 2rem;
  color: var(--gris-mid);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--gris-dark); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }
.btn-reset-all {
  background: var(--bleu-clair); color: var(--blanc);
  padding: 0.7rem 1.5rem; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-reset-all:hover { background: var(--bleu-hover); }

/* Filters FAB (mobile) */
.filters-fab {
  display: none;
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bleu); color: var(--blanc);
  padding: 0.75rem 1.25rem; border-radius: 32px;
  font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(26,58,82,0.4);
  z-index: 500;
  transition: background var(--transition);
}
.filters-fab:hover { background: var(--bleu-mid); }

/* ── SECTION HEADINGS ─────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bleu-clair);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900; color: var(--bleu); line-height: 1.2;
  margin-bottom: 2rem;
}

/* ── AGENTS ───────────────────────────────────────────────── */
.agents { background: var(--blanc); padding: 5rem 0; }

.agents-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; text-align: center; }

.agents-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 0.5rem;
}

.agent-card {
  background: var(--gris-bg); border: 1px solid var(--gris-border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.agent-photo {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--blanc);
  box-shadow: 0 4px 16px rgba(26,58,82,0.15);
}

/* ── AGENT CSS PORTRAITS ──────────────────────────────────── */
.ag1 {
  background:
    radial-gradient(ellipse 46% 32% at 50% 40%, rgba(240,205,170,0.92) 0%, rgba(228,188,150,0.55) 55%, transparent 88%),
    radial-gradient(ellipse 22% 22% at 50% 24%, rgba(80,55,35,0.90) 0%, rgba(65,42,22,0.60) 60%, transparent 90%),
    radial-gradient(ellipse 40% 20% at 50% 18%, rgba(75,50,28,0.82) 0%, transparent 80%),
    linear-gradient(180deg, #dce8f0 0%, #c8d8e8 100%);
}

.ag2 {
  background:
    radial-gradient(ellipse 46% 32% at 50% 40%, rgba(228,190,155,0.92) 0%, rgba(215,175,138,0.55) 55%, transparent 88%),
    radial-gradient(ellipse 24% 24% at 50% 23%, rgba(30,22,18,0.95) 0%, rgba(20,15,12,0.70) 60%, transparent 90%),
    radial-gradient(ellipse 42% 20% at 50% 17%, rgba(25,18,14,0.90) 0%, transparent 80%),
    linear-gradient(180deg, #d8e4ef 0%, #c4d4e8 100%);
}

.ag3 {
  background:
    radial-gradient(ellipse 46% 32% at 50% 40%, rgba(248,215,178,0.92) 0%, rgba(238,200,162,0.55) 55%, transparent 88%),
    radial-gradient(ellipse 22% 22% at 50% 24%, rgba(190,155,65,0.92) 0%, rgba(172,138,52,0.62) 60%, transparent 90%),
    radial-gradient(ellipse 44% 24% at 50% 16%, rgba(200,165,75,0.85) 0%, transparent 80%),
    linear-gradient(180deg, #dce8f0 0%, #c8d8e8 100%);
}

.agent-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--bleu); margin-bottom: 0.25rem; }
.agent-role { font-size: 0.82rem; color: var(--gris-mid); margin-bottom: 0.5rem; }
.agent-count { font-size: 0.85rem; color: var(--gris-dark); font-weight: 600; margin-bottom: 1rem; }

.agent-contact-row { display: flex; justify-content: center; }
.agent-contact-btn {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--bleu); color: var(--blanc);
  border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  transition: background var(--transition);
}
.agent-contact-btn:hover { background: var(--bleu-mid); }

/* ── CONTACT SECTION ──────────────────────────────────────── */
.contact-section { padding: 5rem 0; background: var(--gris-bg); }

.contact-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}

.contact-infos { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.5rem; }

.contact-info-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.ci-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-item strong { display: block; font-size: 0.85rem; color: var(--bleu); margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.88rem; color: var(--gris-mid); }
.contact-info-item a { color: var(--bleu-clair); }
.contact-info-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--blanc); border-radius: var(--radius);
  padding: 2.5rem; border: 1px solid var(--gris-border);
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--gris-dark); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gris-border); border-radius: 6px;
  font-size: 0.9rem; color: var(--gris-dark); background: var(--blanc);
  outline: none; transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--bleu-clair);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%; padding: 0.9rem;
  background: var(--bleu-clair); color: var(--blanc);
  border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; margin-top: 0.5rem;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--bleu-hover); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--bleu); color: rgba(255,255,255,0.80); padding: 4rem 0 0; }

.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
}

.footer-logo { font-size: 1.1rem; font-weight: 900; color: var(--blanc); margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.85rem; line-height: 1.65; }

.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blanc); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li, .footer-col p { font-size: 0.85rem; }
.footer-col a:hover { color: var(--blanc); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 1.25rem 2rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.8; }
.footer-bottom a { color: var(--bleu-clair); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,20,35,0.70);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.property-modal {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.property-modal.open { opacity: 1; pointer-events: all; transform: scale(1); }

.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--gris-dark);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  z-index: 2; transition: all var(--transition);
}
.modal-close:hover { background: var(--rouge-fav); color: var(--blanc); }

.modal-inner {
  background: var(--blanc); border-radius: 12px;
  max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  display: grid; grid-template-columns: 1.1fr 1fr;
  position: relative;
}

/* Modal gallery */
.modal-gallery { display: flex; flex-direction: column; }

.modal-main-img {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 12px 0 0 0;
}

.modal-thumbs {
  display: flex; gap: 6px; padding: 8px;
  background: var(--gris-bg);
}
.modal-thumb {
  flex: 1; aspect-ratio: 3/2; border-radius: 4px;
  cursor: pointer; opacity: 0.7; transition: opacity var(--transition);
  filter: brightness(0.9);
}
.modal-thumb:hover, .modal-thumb.active { opacity: 1; filter: brightness(1); }

/* Modal content */
.modal-content {
  padding: 2rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.9rem;
}

.modal-badge {
  display: inline-block; padding: 0.25rem 0.7rem;
  border-radius: 4px; font-size: 0.72rem; font-weight: 700;
  background: var(--bleu-clair); color: var(--blanc);
  align-self: flex-start;
}

.modal-content h2 { font-size: 1.35rem; font-weight: 900; color: var(--bleu); line-height: 1.2; }
.modal-price { font-size: 1.6rem; font-weight: 900; color: var(--vert); }
.modal-location { font-size: 0.85rem; color: var(--gris-mid); }

.modal-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  padding: 1rem; background: var(--gris-bg); border-radius: 8px;
}
.modal-spec { display: flex; flex-direction: column; gap: 0.1rem; }
.modal-spec strong { font-size: 0.75rem; color: var(--gris-mid); text-transform: uppercase; letter-spacing: 0.05em; }
.modal-spec span { font-size: 0.9rem; font-weight: 700; color: var(--gris-dark); }

.modal-description { font-size: 0.88rem; line-height: 1.7; color: var(--gris-dark); }

.modal-features { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-feature {
  padding: 0.25rem 0.65rem; border-radius: 4px;
  background: rgba(74,144,226,0.10); color: var(--bleu-clair);
  font-size: 0.75rem; font-weight: 600;
}

.modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-primary {
  flex: 1; padding: 0.8rem 1.25rem;
  background: var(--bleu-clair); color: var(--blanc);
  border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  text-align: center; cursor: pointer; border: none;
  transition: background var(--transition);
}
.cta-primary:hover { background: var(--bleu-hover); }
.cta-outline {
  flex: 1; padding: 0.8rem 1.25rem;
  border: 1.5px solid var(--bleu-clair); color: var(--bleu-clair);
  border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  text-align: center; cursor: pointer; background: transparent;
  transition: all var(--transition);
}
.cta-outline:hover { background: var(--bleu-clair); color: var(--blanc); }

.modal-agent-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem; background: var(--gris-bg); border-radius: 8px;
}
.modal-agent-photo {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
}
.modal-agent-name { font-size: 0.9rem; font-weight: 700; color: var(--bleu); }
.modal-agent-role { font-size: 0.75rem; color: var(--gris-mid); }
.modal-agent-phone {
  margin-left: auto; background: var(--bleu); color: var(--blanc);
  padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  transition: background var(--transition);
}
.modal-agent-phone:hover { background: var(--bleu-mid); }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gris-bg); }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bleu-clair); }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .listings-container { grid-template-columns: 240px 1fr; gap: 1.5rem; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .modal-inner { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-main-img { border-radius: 12px 12px 0 0; aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .listings-container { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed; inset: 0; z-index: 800;
    overflow-y: auto; transform: translateX(-100%);
    transition: transform 0.35s ease;
    top: 68px; bottom: 0; width: 300px;
    border-radius: 0;
  }
  .filters-sidebar.open { transform: translateX(0); }
  .filters-apply-mobile { display: block; }
  .filters-fab { display: block; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .search-bar { height: 50px; }
  .search-btn { padding: 0 1rem; font-size: 0.75rem; }
  .quick-tabs { gap: 0; overflow-x: auto; justify-content: flex-start; }
  .qtab { flex-shrink: 0; padding: 0.9rem 1.25rem; }
  .listings-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .modal-specs-grid { grid-template-columns: 1fr 1fr; }
  .modal-content { padding: 1.5rem; }
}
