body {
  background: #fff;
}
.annonce-main {
  padding: 135px 2vw 40px 2vw;
  min-height: 100vh;
  background: #fff;
}
.annonce-filtre {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px -10px #0056b340;
  border: 1.5px solid #e0e7ef;
  margin-bottom: 38px;
  padding: 22px 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.filtre-form-centered {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}
.filtre-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  align-items: center;
}
.filtre-label {
  font-size: 0.99em;
  color: #0056b3;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.filtre-btn,
.filtre-dropdown-btn {
  background: #fff;
  border: 1.3px solid #c9d6e6;
  border-radius: 8px;
  padding: 11px 26px 11px 14px;
  font-size: 1em;
  color: #234;
  cursor: pointer;
  text-align: left;
  position: relative;
  min-width: 140px;
  transition: border-color 0.2s;
}
.filtre-btn:after,
.filtre-dropdown-btn:after {
  content: 'expand_more';
  font-family: 'Material Icons';
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: #7a8fa7;
  pointer-events: none;
}
.filtre-dropdown {
  position: relative;
  width: 100%;
}
.filtre-dropdown-menu {
  display: none;
  position: absolute;
  left: 0; top: 44px;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  box-shadow: 0 6px 24px -12px #0056b328;
  z-index: 15;
  padding: 9px 0;
  animation: fadeIn 0.18s;
}
.filtre-dropdown.open .filtre-dropdown-menu {
  display: block;
}
.filtre-dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 1em;
  color: #234;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
}
.filtre-dropdown-menu label:hover {
  background: #f4f8fc;
}
.filtre-dropdown-menu input[type="checkbox"] {
  accent-color: #0056b3;
}
.filtre-dropdown-menu .dropdown-opt {
  padding: 8px 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.filtre-dropdown-menu .dropdown-opt:hover,
.filtre-dropdown-menu .dropdown-opt:focus {
  background: #f4f8fc;
}
.prix-range {
  display: flex;
  align-items: center;
  gap: 9px;
}
.prix-range input {
  width: 70px;
  border: 1.3px solid #c9d6e6;
  border-radius: 8px;
  padding: 8px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.18s;
}
.prix-range input:focus {
  border-color: #0056b3;
}
.annonce-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 1200px;
  margin: 0 auto;
}
.annonce-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px -10px #0056b328;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ruban-prix {
  position: absolute;
  top: 17px;
  left: -40px;
  background: #0056b3;
  color: #fff;
  font-weight: bold;
  padding: 6px 38px;
  transform: rotate(-34deg);
  font-size: 1.05em;
  box-shadow: 0 2px 10px -6px #3335;
  z-index: 2;
  letter-spacing: 1px;
}
.annonce-content {
  padding: 18px 16px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.annonce-titre {
  font-size: 1.16em;
  color: #0056b3;
  margin-bottom: 3px;
}
.annonce-desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.desc-ligne {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #222;
  font-size: 1em;
}
.desc-ico {
  font-size: 1.13em !important;
  color: #5aa8e9;
  vertical-align: middle;
}
.no-result {
  text-align: center;
  color: #0056b3;
  font-weight: bold;
  font-size: 1.2em;
  padding: 36px 0;
}
@media (max-width: 1050px) {
  .annonce-list { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .annonce-filtre { padding: 16px 5vw; }
}
@media (max-width: 700px) {
  .annonce-list { grid-template-columns: 1fr; gap: 15px; }
  .annonce-filtre { border-radius: 8px; }
  .filtre-form-centered { flex-direction: column; gap: 11px;}
  .filtre-btn, .filtre-dropdown-btn { min-width: 100px; padding: 9px 20px 9px 10px; font-size: 0.97em;}
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-7px);} to { opacity: 1; transform: none;} }
/* ===== Mobile-friendly grid for annonce list (append to end) ===== */
.annonce-list {
  /* more flexible grid: auto-fit columns with a comfortable min width */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Ensure card images are responsive and preserve aspect */
.image-wrap { aspect-ratio: 4 / 3; }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }