* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { --primaire: #1F5D4C; --secondaire: #D8A24A; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f3f5f2; color: #1c2b24;
}
a { color: inherit; }

.topbar {
  padding: 22px 20px 18px; background: linear-gradient(160deg, #1F5D4C, #16402f); color: #fff;
  text-align: center;
}
.brand { font-size: 1.6rem; font-weight: 800; }
.tagline { opacity: .85; font-size: .95rem; margin-top: 4px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; max-width: 1100px; margin: 0 auto;
}
.toolbar select, .toolbar input {
  padding: 10px 12px; border: 1px solid #d7ddda; border-radius: 8px; background: #fff;
  font-size: .92rem; flex: 1; min-width: 140px;
}
.toolbar select:focus, .toolbar input:focus { outline: none; border-color: var(--primaire); }

.biens-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
  max-width: 1100px; margin: 0 auto; padding: 4px 20px 40px; min-height: 200px;
}
.empty-state { padding: 60px 20px; text-align: center; color: #6b7a72; grid-column: 1 / -1; }

.bien-card {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06);
  text-decoration: none; color: inherit; display: block; transition: transform .12s;
}
.bien-card:hover { transform: translateY(-3px); }
.bien-card .photo { width: 100%; height: 190px; object-fit: cover; background: #e6e9e7; display: block; }
.bien-card .photo.placeholder { display: flex; align-items: center; justify-content: center; color: #9aa8a1; font-size: .85rem; }
.bien-card .body { padding: 14px 16px; }
.bien-card .agence-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primaire);
  background: #e3f3ec; padding: 2px 9px; border-radius: 20px; margin-bottom: 6px;
}
.bien-card h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.bien-card .meta { font-size: .85rem; color: #6b7a72; margin-bottom: 10px; }
.bien-card .prix { font-weight: 700; color: var(--primaire); font-size: 1.05rem; }

.type-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #9aa8a1; font-weight: 700; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.pill.disponible { background: #e3f3ec; color: #1F5D4C; }
.pill.reserve, .pill.sous_compromis { background: #fdf1de; color: #a5680c; }
.pill.loue, .pill.vendu { background: #e6e6e6; color: #555; }
.pill.maintenance { background: #fbe4e2; color: #b23127; }

.site-footer {
  text-align: center; padding: 24px 20px 40px; font-size: .85rem; color: #6b7a72;
}
.site-footer a { text-decoration: none; font-weight: 600; color: var(--primaire); }
.site-footer a:hover { text-decoration: underline; }
.site-footer span { margin: 0 10px; opacity: .5; }
