/* ════════════════════════════════════════════════
   Listing (filtres + résultats) + contrôles formulaires
   ════════════════════════════════════════════════ */
body { background: var(--beige-fond); }

.listing-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 22px; padding-bottom: 6px;
}
.listing-title { font-weight: 800; font-size: 30px; margin: 0 0 4px; color: var(--vert-fonce); }
.listing-count { margin: 0; color: var(--texte-secondaire); font-size: 14.5px; font-weight: 600; }
.listing-count strong { color: var(--vert-primaire); }
.sort-form label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--texte-secondaire); }
.sort-form select { border: 1.5px solid var(--bordure-input); background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--texte-principal); cursor: pointer; }

.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; padding-top: 18px; padding-bottom: 50px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.no-results { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--texte-secondaire); font-weight: 600; }

/* ─── Sidebar filtres ─── */
.filters { position: sticky; top: 88px; background: #fff; border: 1px solid var(--bordure); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-card); }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__title { font-family: 'Bitter', serif; font-weight: 700; font-size: 17px; color: #28332c; display: flex; align-items: center; gap: 8px; }
.filters__title svg { width: 17px; height: 17px; color: var(--vert-primaire); }
.filters__clear { font-size: 12.5px; color: var(--texte-gris-clair); font-weight: 700; text-decoration: none; }
.filter-group { padding: 14px 0; border-top: 1px solid #F1EFE8; }
.filter-group__title { margin: 0 0 11px; font-size: 13px; font-weight: 800; color: var(--vert-primaire); letter-spacing: .02em; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--texte-principal); cursor: pointer; margin-bottom: 10px; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #cdd6cf; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: .12s; }
.check__box svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--vert-primaire); border-color: var(--vert-primaire); }
.check input:checked + .check__box svg { opacity: 1; }
.check__count { margin-left: auto; color: var(--texte-gris-clair); font-size: 12px; font-weight: 700; }
.check__label.stars { font-size: 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span { display: inline-block; border: 1.5px solid var(--bordure-input); background: #fff; color: var(--texte-secondaire); font-weight: 700; font-size: 12.5px; padding: 7px 12px; border-radius: 999px; transition: .12s; }
.pill input:checked + span { border-color: #bcd6c4; background: var(--vert-pale); color: var(--vert-primaire); }

.budget { display: flex; align-items: center; gap: 8px; }
.budget input { width: 100%; border: 1.5px solid var(--bordure-input); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; outline: 0; }
.budget input:focus { border-color: var(--vert-primaire); }
.filters .btn { margin-top: 12px; }

/* ─── Contrôles formulaires génériques ─── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field > span { font-size: 12.5px; font-weight: 800; color: var(--vert-primaire); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--bordure-input); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-weight: 600; color: var(--texte-principal); outline: 0; background: #fff;
}
.field textarea { resize: vertical; line-height: 1.6; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--vert-primaire); }
.form-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.form-ok { background: #E6F4EC; color: #1B7A4B; border: 1px solid #bfe6cf; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }

@media (max-width: 880px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ─── Pages d'authentification ─── */
.auth-body { background: var(--beige-fond); min-height: 100vh; display: flex; }
.auth-wrap { margin: auto; padding: 32px 18px; width: 100%; max-width: 420px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo img { height: 40px; width: auto; }
.auth-card { background: #fff; border: 1px solid var(--bordure); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-card); }
.auth-card__title { font-weight: 800; font-size: 24px; margin: 0 0 6px; color: var(--vert-fonce); }
.auth-card__sub { margin: 0 0 22px; color: var(--texte-secondaire); font-size: 14.5px; }
.auth-card__foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; }
.auth-card__foot a { color: var(--vert-primaire); font-weight: 700; text-decoration: none; }
.auth-sep { border: 0; border-top: 1px solid var(--bordure); margin: 18px 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row .field { min-width: 0; }
