/* =====================================
   BASE
===================================== */
body {
  margin: 0;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #222;
}

h1 {
  margin-bottom: 20px;
  font-size: 1.6em;
}

/* =====================================
   MODULE RECHERCHE
===================================== */
.biens-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.biens-search select,
.biens-search input,
.biens-search button {
  padding: 8px 10px;
  font-size: 0.95em;
}

.biens-search select,
.biens-search input {
  border: 1px solid #ccc;
}

.biens-search button {
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.biens-search button:hover {
  background: #555;
}

/* =====================================
   GRILLE DES BIENS
===================================== */
.biens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* =====================================
   AUCUN RÉSULTAT
===================================== */
.no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #666;
}

/* =====================================
   CARTE BIEN
===================================== */
.bien-card {
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

/* IMAGE */
.bien-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* =====================================
   BADGES
===================================== */
.badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 8px;
  font-size: 0.7em;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-vendu {
  background: #b30000;
}

.badge-loue {
  background: #555;
}

.badge-nouveaute {
  background: #0066cc;
}

.badge-coupcoeur {
  background: #e60073;
}

.badge-exclusivite {
  background: #000;
}

/* =====================================
   OVERLAY DESCRIPTIF (DESKTOP)
===================================== */
.bien-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bien-card:hover .bien-overlay {
  opacity: 1;
}

.bien-overlay h3 {
  margin: 0 0 6px 0;
  font-size: 1.05em;
}

.bien-overlay p {
  margin: 4px 0;
  font-size: 0.9em;
}

/* =====================================
   PAGINATION
===================================== */
.pagination {
  margin-top: 25px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
}

.pagination a:hover {
  background: #333;
  color: #fff;
}

/* =====================================
   RESPONSIVE – MOBILE
===================================== */
@media (max-width: 768px) {

  body {
    padding: 15px;
  }

  .biens-search {
    flex-direction: column;
  }

  .bien-card {
    cursor: default;
  }

  .bien-card img {
    height: 180px;
  }

  /* PAS DE SURVOL SUR MOBILE */
  .bien-overlay {
    position: relative;
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
  }

}
