/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f5f4;
  color: #1c1917;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ===== COULEURS ===== */
:root {
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --red-500:   #ef4444;
  --red-100:   #fee2e2;
  --orange-400:#fb923c;
  --orange-100:#ffedd5;
  --gray-50:   #fafaf9;
  --gray-100:  #f5f5f4;
  --gray-200:  #e7e5e4;
  --gray-400:  #a8a29e;
  --gray-500:  #78716c;
  --gray-700:  #44403c;
  --gray-900:  #1c1917;
  --white:     #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar__logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: background .15s, color .15s;
  border: none;
  background: transparent;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active {
  background: var(--green-50);
  color: var(--green-700);
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 2px;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--white);
}
/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 760px) {
  .navbar { gap: 12px; padding: 0 16px; }
  .nav-link { padding: 6px 8px; }
  .nav-link__label { display: none; }   /* sur téléphone : icônes seules */
}
@media (max-width: 400px) {
  .navbar { gap: 6px; padding: 0 10px; }
  .navbar__nav { gap: 0; }
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 640px) {
  /* Pages avec .page container */
  .page { padding-left: 12px !important; padding-right: 12px !important; }

  /* Grilles qui passent en 1 colonne */
  .stats-grid { grid-template-columns: 1fr !important; }
  .account-layout { grid-template-columns: 1fr !important; }
  .my-ads-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Messenger : panneau gauche plein écran */
  .messenger { flex-direction: column; }
  .conv-panel { width: 100% !important; border-right: none; border-bottom: 1px solid var(--gray-200); max-height: 280px; }
  .chat-panel--active { min-height: 340px; }

  /* Auth */
  .auth-body { padding: 16px !important; }

  /* Toast plus petit */
  .toast { right: 12px; left: 12px; max-width: unset; font-size: 13px; }
}

/* ===== ACCOUNT POPUP ===== */
.navbar__account-wrap { position: relative; }

.account-popup {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  z-index: 200;
  overflow: hidden;
}
.account-popup.is-open {
  display: block;
  animation: apIn .15s ease-out;
}
@keyframes apIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ap-header {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ap-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-name  { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.ap-email { font-size: 12px; color: rgba(255,255,255,.72); }

.ap-stats {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.ap-rating { font-size: 13px; font-weight: 700; color: #f59e0b; }
.ap-divider-v { width: 1px; height: 14px; background: var(--gray-200); }
.ap-sales  { font-size: 13px; color: var(--gray-500); }
.ap-verified {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  background: #fef9c3; color: #854d0e;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.ap-verified svg { width: 11px; height: 11px; }

.ap-wallet {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: background .15s;
}
.ap-wallet:hover { background: var(--gray-50); }
.ap-wallet-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-600, #57534e);
}
.ap-wallet-left svg { width: 15px; height: 15px; color: var(--green-700); }
.ap-wallet-right { display: flex; align-items: center; gap: 4px; }
.ap-wallet-right strong { font-size: 13px; font-weight: 700; color: var(--green-700); }
.ap-wallet-right svg { width: 14px; height: 14px; color: var(--gray-400); }

.ap-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 16px 2px;
}
.ap-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .12s;
}
.ap-menu-item:hover { background: var(--gray-50); color: var(--gray-900); }
.ap-menu-item svg { width: 15px; height: 15px; color: var(--gray-400); flex-shrink: 0; }
.ap-item-label { flex: 1; }
.ap-count {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700);
}
.ap-badge-unverified {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-500);
}
.ap-chevron { margin-left: auto; width: 14px !important; height: 14px !important; color: var(--gray-300, #d6d3d1) !important; }

.ap-footer {
  padding: 8px 16px 10px;
  border-top: 1px solid var(--gray-100);
}
.ap-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 9px;
  border: none; background: none;
  font-size: 13px; font-weight: 600;
  color: var(--red-500);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.ap-logout:hover { background: var(--red-100); }
.ap-logout svg { width: 15px; height: 15px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 320px;
}
.toast--show    { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--green-700); }
.toast--error   { background: var(--red-500); }
.toast--info    { background: #1d4ed8; }

/* ===== PARTAGER UNE ANNONCE (ouvrirPartage dans components.js) ===== */
.partage { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.partage__btn {
  flex: 1; min-width: 110px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--gray-700);
}
.partage__btn--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.partage__btn--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.partage__lien { display: flex; gap: 8px; margin-top: 12px; }
.partage__lien input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid var(--gray-200); border-radius: 8px; background: var(--gray-50); font-size: 13px; color: var(--gray-700); }
.partage__lien button { height: 40px; padding: 0 14px; border-radius: 8px; border: none; background: var(--green-700); color: #fff; font-size: 13px; font-weight: 700; }
.lien-partager { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: none; background: none; font-size: 12px; font-weight: 600; color: var(--green-700); }
.lien-partager:hover { text-decoration: underline; }

/* ===== CHAMP TÉLÉPHONE AVEC PAYS (htmlChampTelephone dans supabase.js) ===== */
.champ-tel { display: flex; gap: 8px; }
.champ-tel__pays, .champ-tel__numero {
  height: 44px; padding: 0 10px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: var(--gray-50); font-family: inherit; font-size: 16px; color: var(--gray-900); outline: none;
}
.champ-tel__pays { flex: 0 0 auto; max-width: 46%; font-size: 14px; }
.champ-tel__numero { flex: 1; min-width: 0; }
.champ-tel__pays:focus, .champ-tel__numero:focus { border-color: var(--green-600); background: var(--white); }

/* ===== BANDEAU « numéro de téléphone manquant » (components.js) ===== */
.bandeau-tel { padding: 10px 16px; background: var(--orange-100); color: #7c2d12; text-align: center; font-size: 13px; line-height: 1.5; }
.bandeau-tel a { margin-left: 6px; color: #7c2d12; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ===== FENÊTRES SBH (sbhConfirmer, sbhDemander, sbhNoter dans components.js) ===== */
.sbh-dialogue {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.48);
  opacity: 0; transition: opacity .15s;
}
.sbh-dialogue.is-open { opacity: 1; }
.sbh-dialogue__boite {
  width: 100%; max-width: 400px; padding: 22px 22px 18px;
  background: var(--white); border-radius: 18px; box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.sbh-dialogue__titre { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.sbh-dialogue__message { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--gray-500); white-space: pre-line; }
.sbh-dialogue__label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.sbh-dialogue__champ {
  width: 100%; margin-top: 12px; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--gray-50);
  font-family: inherit; font-size: 16px; color: var(--gray-900); outline: none; resize: vertical;
}
.sbh-dialogue__label + .sbh-dialogue__champ, .sbh-dialogue__label + .sbh-dialogue__ligne .sbh-dialogue__champ { margin-top: 0; }
.sbh-dialogue__champ:focus { border-color: var(--green-600); background: var(--white); }
.sbh-dialogue__ligne { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sbh-dialogue__ligne .sbh-dialogue__champ { margin-top: 0; font-size: 20px; font-weight: 800; }
.sbh-dialogue__suffixe { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.sbh-dialogue__actions { display: flex; gap: 10px; margin-top: 18px; }
.sbh-dialogue__annuler {
  flex: 1; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700);
  font-size: 14px; font-weight: 600;
}
.sbh-dialogue__ok {
  flex: 2; height: 44px; border-radius: 10px; border: none;
  background: var(--green-700); color: var(--white); font-size: 14px; font-weight: 700;
}
.sbh-dialogue__ok:hover:not(:disabled) { background: var(--green-600); }
.sbh-dialogue__ok--danger { background: var(--red-500); }
.sbh-dialogue__ok--danger:hover:not(:disabled) { background: #dc2626; }
.sbh-dialogue__ok:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.sbh-etoiles { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.sbh-etoile { border: none; background: none; padding: 2px; font-size: 38px; line-height: 1; color: var(--gray-200); transition: transform .1s, color .1s; }
.sbh-etoile.is-on { color: #f59e0b; }
.sbh-etoile:hover { transform: scale(1.12); }
.sbh-etoiles__libelle { margin-top: 4px; text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-500); min-height: 18px; }

/* ===== APPAREIL PHOTO (sbhPrendrePhoto, sbhScanVisage dans components.js) ===== */
.sbh-camera { position: relative; margin-top: 14px; overflow: hidden; border-radius: 14px; background: #111; aspect-ratio: 4/3; }
.sbh-camera--visage { aspect-ratio: 3/4; max-height: 52vh; margin-left: auto; margin-right: auto; }
.sbh-camera video, .sbh-camera img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbh-camera--visage video { transform: scaleX(-1); }   /* effet miroir, plus naturel pour un selfie */
.sbh-camera [hidden] { display: none; }
.sbh-camera__cadre { position: absolute; pointer-events: none; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.sbh-camera__cadre--carte  { left: 8%; right: 8%; top: 18%; bottom: 18%; border-radius: 12px; }
.sbh-camera__cadre--visage { left: 18%; right: 18%; top: 10%; bottom: 14%; border-radius: 50%; }
.sbh-camera__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #fff; font-size: 13px; line-height: 1.5; }
.sbh-camera__msg:empty { display: none; }
.sbh-camera__consigne { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; text-align: center; font-size: 14px; font-weight: 700; }
.sbh-camera__reprendre { display: block; width: 100%; height: 40px; margin-top: 8px; border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700); font-size: 14px; font-weight: 600; }
.sbh-scan__vignettes { display: flex; gap: 8px; margin-top: 8px; }
.sbh-scan__vignettes:empty { display: none; }
.sbh-scan__vignettes img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }

/* ===== SIGNALEMENT (fenêtre créée par components.js) ===== */
.lien-signaler {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0; border: none; background: none;
  font-size: 12px; font-weight: 500; color: var(--gray-500);
}
.lien-signaler:hover { color: var(--red-500); text-decoration: underline; }
.lien-signaler[hidden] { display: none; }
.lien-signaler svg { width: 13px; height: 13px; }

.signal-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.48);
}
.signal-overlay.is-open { display: flex; }
.signal-modal {
  width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 24px 24px 20px;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.signal-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signal-modal__titre { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.signal-modal__close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--gray-100); color: var(--gray-500); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.signal-modal__close:hover { background: var(--gray-200); color: var(--gray-900); }
.signal-modal__cible {
  margin: 4px 0 16px; font-size: 13px; color: var(--gray-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.signal-modal__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.signal-modal__option { font-weight: 400; color: var(--gray-500); }
.signal-modal__motifs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.signal-modal__motif {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; color: var(--gray-900); cursor: pointer;
}
.signal-modal__motif:hover { border-color: var(--gray-400); }
.signal-modal__motif:has(input:checked) { border-color: var(--red-500); background: #fef2f2; }
.signal-modal__motif input { accent-color: var(--red-500); }
.signal-modal__details {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: var(--gray-50); color: var(--gray-900);
  font-family: inherit; font-size: 16px; line-height: 1.5;
  resize: vertical; outline: none;
}
.signal-modal__details:focus { border-color: var(--gray-400); background: var(--white); }
.signal-modal__note { margin-top: 8px; font-size: 12px; color: var(--gray-500); }
.signal-modal__footer { display: flex; gap: 10px; margin-top: 18px; }
.signal-modal__annuler {
  flex: 1; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700);
  font-size: 14px; font-weight: 600;
}
.signal-modal__envoyer {
  flex: 2; height: 44px; border-radius: 10px; border: none;
  background: var(--red-500); color: var(--white);
  font-size: 14px; font-weight: 700;
}
.signal-modal__envoyer:hover:not(:disabled) { background: #dc2626; }
.signal-modal__envoyer:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }

/* ===== PIED DE PAGE (injecté par components.js dans #footer-container) ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer__texte {
  max-width: 320px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-500);
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__titre {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-500);
}
.footer__col a { font-size: 14px; color: var(--gray-700); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--green-700); text-decoration: underline; }
.footer__bas {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}
.footer__legal { display: block; margin-top: 6px; }
.footer__legal a { color: var(--gray-500); text-decoration: underline; }
.footer__legal a:hover { color: var(--green-700); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; padding: 28px 16px 16px; }
  .footer__marque,
  .footer__col--aide { grid-column: 1 / -1; }   /* pleine largeur : l'adresse email tient sur une ligne */
}

/* ===== BASCULE « ACHETER | VENDRE » (components.js, en haut des pages Acheter et Vendre) ===== */
.bascule {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 14px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.bascule__choix {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.bascule__choix:hover { background: var(--gray-100); color: var(--gray-900); }
.bascule__choix.is-actif,
.bascule__choix.is-actif:hover { background: var(--green-700); color: var(--white); cursor: default; }

/* ===== VISIONNEUSE DE PHOTOS (components.js : ouvrirVisionneuse) ===== */
.visionneuse {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  background: #000;              /* opaque : la fiche en dessous ne se voit plus */
  touch-action: none;           /* les gestes (balayer, pincer) sont gérés par la visionneuse, même partis des flèches */
}
.visionneuse__haut {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: var(--white);
}
.visionneuse__compteur { font-size: 14px; font-weight: 600; }
.visionneuse__outils { display: flex; gap: 8px; }
.visionneuse__btn, .visionneuse__nav {
  border: none; border-radius: 50%; color: var(--white);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.visionneuse__btn { width: 40px; height: 40px; font-size: 20px; background: rgba(255, 255, 255, .14); }
.visionneuse__btn:hover { background: rgba(255, 255, 255, .28); }
.visionneuse__scene {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.visionneuse.is-zoom .visionneuse__scene { cursor: grab; }
.visionneuse__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  user-select: none; cursor: zoom-in;
  transition: transform .15s ease-out;
}
.visionneuse.is-zoom .visionneuse__img { cursor: grab; }
.visionneuse.is-zoom.is-geste .visionneuse__img { cursor: grabbing; }
.visionneuse.is-geste .visionneuse__img { transition: none; }   /* la photo suit le doigt sans retard */
.visionneuse__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 30px;
  background: rgba(0, 0, 0, .5);                    /* lisible sur une photo claire comme sur le fond noir */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}
.visionneuse__nav:hover { background: rgba(0, 0, 0, .75); }
.visionneuse__nav--prec { left: 12px; }
.visionneuse__nav--suiv { right: 12px; }
@media (max-width: 640px) {
  .visionneuse__nav { width: 40px; height: 40px; font-size: 26px; }
}

/* Bouton « Plein écran » sur la grande photo d'une fiche d'annonce */
.detail__main { position: relative; }
.detail__main.is-zoomable img { cursor: zoom-in; }   /* seulement s'il y a de vraies photos */
.detail__agrandir {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: none; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: var(--white);
  font-size: 12px; font-weight: 600;
}
.detail__agrandir svg { width: 14px; height: 14px; flex-shrink: 0; }
.detail__agrandir:hover { background: rgba(0, 0, 0, .78); }
.detail__agrandir[hidden] { display: none; }

/* ===== LOCATION (location.sql) : pastille « À louer », récapitulatif de la demande de location ===== */
:root { --blue-700: #1d4ed8; --blue-50: #eff6ff; }
.badge-location {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--blue-700); color: var(--white);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.sbh-dialogue__recap {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--green-50); font-size: 14px; line-height: 1.5; color: var(--gray-700);
}
.sbh-dialogue__recap strong { color: var(--green-700); }
