/* ================================================================
   TAHITI BUSINESS GROUPE — Design Épuré Blanc/Noir (Jour 3)
   Inspiré : ladagemaxime.com + Facebook Marketplace
   ================================================================ */

/* Screen-reader only — hides visually but keeps accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  --bg:        #ffffff;
  --bg-alt:    #f8f9fa;
  --bg-alt2:   #f0f2f5;
  --surface:   #ffffff;
  --text:      #111827;
  --text-sub:  #374151;
  --text-hint: #6b7280;
  --border:    #d1d5db;
  --border-md: #9ca3af;
  --primary:   #111827;
  --primary-h: #000000;
  --accent:    #111827;
  --accent-h:  #000000;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --shadow:    0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.20);
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Font family override — single high-specificity rule replaces all
   scattered !important font-family declarations.
   html body * beats Tailwind single-class selectors (e.g. .font-sans). */
html body,
html body *:not(code):not(pre):not(kbd):not(samp) {
  font-family: Arial, Helvetica, sans-serif;
}
html body code, html body pre, html body kbd, html body samp {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  /* Prevent any element from causing horizontal scroll on mobile
     (clip = no scroll, no stacking-context side effects → sticky still works) */
  overflow-x: clip;
}

body {
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* font-weight sur button/input/etc. */
button, input, select, textarea, a,
nav, header, li, span, div, p, label {
  font-weight: 500;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Form inputs ─────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,108,241,.12);
}
.form-input::placeholder { color: var(--text-hint); }
select.form-input option  { background: white; color: var(--text); }
textarea.form-input       { resize: vertical; min-height: 100px; }

/* ── Search bar (header Zone 1) ──────────────────────────────── */
.search-bar {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,108,241,.10);
}
.search-bar__input {
  flex: 1;
  min-width: 0;        /* allow flex item to shrink below content width */
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  outline: none;
  font-family: inherit;
}
.search-bar__input::placeholder { color: var(--text-hint); }
.search-bar__btn {
  padding: 0 18px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: background .15s;
}
.search-bar__btn:hover { background: var(--primary-h); }

/* ── Logo header ─────────────────────────────────────────────── */
.logo-header {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity .15s;
}
.logo-header:hover { opacity: .82; }
@media (max-width: 640px) { .logo-header { height: 48px; } }

/* ── Header shadow ───────────────────────────────────────────── */
.header-shadow {
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,.04);
}

/* ── Annonce card ─────────────────────────────────────────────── */
.annonce-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1),
              border-color .25s;
  cursor: pointer;
  opacity: 1;
}
@media (hover: hover) {
  .annonce-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
}
.annonce-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt2);
  display: block;
  transition: transform .35s;
}
.annonce-card__body  { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.annonce-card__title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.annonce-card__price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
  margin-top: auto;
}
.annonce-card__meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Seller line on annonce cards: avatar + note · location */
.annonce-card__seller {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  white-space: nowrap;
}
.annonce-card__avatar-link {
  flex-shrink: 0;
  line-height: 0;
}
.annonce-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.annonce-card__avatar--initials {
  background: #e0e0e0;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.annonce-card__name {
  font-weight: 600;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.annonce-card__note {
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.annonce-card__loc {
  color: var(--text-sub);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.annonce-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ── Pub slots (sidebar) ─────────────────────────────────────── */
.pub-slot {
  background: var(--bg);
  border: 2px dashed var(--border-md);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.pub-slot.filled {
  border-style: solid;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.pub-slot:hover { border-color: var(--primary); }

/* ── Encarts pub vides — design statique dégradé bleu polynésien ──── */
.pub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background: #111111;
  border-radius: 12px;
  text-decoration: none;
}
.pub-empty:hover { opacity: .92; }
.pub-empty__title {
  font-weight: 800; font-size: 17px;
  color: #fff;
  letter-spacing: .01em;
  margin-bottom: 4px;
  position: relative; z-index: 2;
}
.pub-empty__price {
  font-weight: 600; font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
  position: relative; z-index: 2;
}
.pub-empty__cta {
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .02em;
  position: relative; z-index: 2;
}
.pub-empty__cta:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(255,255,255,.3); }
.pub-empty__zone {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
  position: relative; z-index: 2;
}
/* Twinkling star dots */
.pub-star {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}
.pub-star--lg {
  width: 4px; height: 4px;
  box-shadow: 0 0 4px rgba(255,255,255,.6);
}
@keyframes twinkle {
  0%, 100% { opacity: .1; }
  50% { opacity: 1; }
}

/* ── Pub strip vide — fond noir étoilé (accueil haut/milieu/bas) ── */
.pub-strip-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  background: #111111;
  overflow: hidden;
  min-height: 70px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity .15s;
}
.pub-strip-empty:hover { opacity: .92; }
.pub-strip-empty::before,
.pub-strip-empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
                     radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,.8), transparent),
                     radial-gradient(1.5px 1.5px at 90px 40px, #fff, transparent),
                     radial-gradient(1.5px 1.5px at 130px 20px, rgba(255,255,255,.6), transparent),
                     radial-gradient(2px 2px at 160px 60px, #fff, transparent),
                     radial-gradient(1.5px 1.5px at 50px 10px, #fff, transparent),
                     radial-gradient(2px 2px at 110px 55px, rgba(255,255,255,.7), transparent),
                     radial-gradient(1.5px 1.5px at 180px 35px, #fff, transparent);
  background-size: 200px 100px;
  animation: stripTwinkle 4s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
.pub-strip-empty::after {
  background-position: 80px 50px;
  animation-delay: 2s;
  opacity: 0.7;
}
@keyframes stripTwinkle {
  0%   { opacity: 0.3; }
  100% { opacity: 1; }
}
.pub-strip-empty__zone {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.85);
  position: relative; z-index: 2;
}
.pub-strip-empty__title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  position: relative; z-index: 2;
}
.pub-strip-empty__price {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  position: relative; z-index: 2;
}
.pub-strip-empty__cta {
  display: inline-block;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s, background .15s;
  position: relative; z-index: 2;
}
.pub-strip-empty__cta:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,255,255,.3);
}
/* Responsive strip : colonne sur mobile */
@media (max-width: 479px) {
  .pub-strip-empty {
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    min-height: 90px;
  }
}

/* ── Pub strip label ─────────────────────────────────────────── */
.pub-strip-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  text-align: right;
  padding: 0 4px 2px;
  line-height: 1;
}

/* ── Billboard (header pub, full width) ──────────────────────── */
.billboard-wrap {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.billboard-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.billboard-wrap:hover .billboard-img { opacity: .93; }
@media (min-width: 640px)  { .billboard-img { height: 220px; } }
@media (min-width: 1024px) { .billboard-img { height: 300px; } }

.billboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 2px dashed #bfdbfe;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s;
}
@media (min-width: 640px)  { .billboard-empty { height: 220px; } }
@media (min-width: 1024px) { .billboard-empty { height: 300px; } }
.billboard-empty:hover { border-color: var(--primary); }
.billboard-empty__size  { font-size: 11px; color: var(--text-hint); }
.billboard-empty__title { font-size: 16px; font-weight: 700; color: var(--text); font-family: inherit; }
.billboard-empty__price { font-size: 22px; font-weight: 900; color: var(--primary); }
.billboard-empty__cta   { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: underline; }

/* ── Rectangle publicitaire fixe pleine largeur ─────────────────── */
.pub-bg-fixed {
  position: fixed;
  top: 108px;   /* juste sous le header sticky (zone1 64px + zone2 44px) */
  left: 0;
  width: 100vw;
  height: auto;
  max-height: 300px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 6px 32px rgba(0,0,0,.22);
  background: #000;
}
.pub-bg-fixed-link {
  display: block;
  width: 100%;
  text-decoration: none;
  pointer-events: auto;
}
.pub-bg-fixed-img {
  width: 100%;
  height: auto;
  display: block;
}
.pub-bg-fixed-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #06030f;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

/* Espaceur < hauteur pub → le contenu chevauche le bas du billboard */
.pub-spacer {
  height: 120px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Responsive billboard */
@media (max-width: 767px) {
  .pub-bg-fixed { height: auto; max-height: 200px; }
  .pub-spacer   { display: none; }
}
@media (max-width: 479px) {
  .pub-bg-fixed { height: auto; max-height: 140px; }
  .pub-spacer   { display: none; }
}

/* Bulles blanches pour textes lisibles sur fond billboard ───────── */
.over-img {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Couche contenu par-dessus l'image fixe — transparent pour voir l'image */
main {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ── Category nav – Zone 2 ────────────────────────────────────── */
.cat-nav {
  display: flex;
  align-items: stretch;
  height: 44px;
  gap: 0;
  overflow: visible;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.cat-nav-link:hover         { color: var(--primary); border-bottom-color: var(--primary); }
.cat-nav-link--all          { font-weight: 700; color: #111827; padding-right: 8px; }
.cat-nav-link--pub          { color: var(--primary); font-weight: 700; }
.cat-nav-link--pub:hover    { color: var(--primary-h); border-bottom-color: var(--primary-h); }

/* Category icon (inline img replacing emojis) */
.cat-icon { display:inline-block; vertical-align:middle; width:38px; height:38px; object-fit:contain; flex-shrink:0; }
.cat-icon--invert { filter: invert(1) brightness(2); }
.cat-icon--lg { display:inline-block; vertical-align:middle; width:120px; height:120px; object-fit:contain; }
.cat-icon--card { width:100%; height:100%; object-fit:contain; }

.cat-nav-chevron {
  width: 12px;
  height: 12px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform .15s;
}
.cat-nav-item:hover .cat-nav-chevron { transform: rotate(180deg); }

/* ── Dropdown ─────────────────────────────────────────────────── */
.cat-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
/* for user menu in Zone 1 (no fixed height context) */
.user-menu { height: auto; }

.cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  z-index: 1000;
  padding: 6px 0;
  /* Fix hover gap : opacity+visibility > display:none */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s cubic-bezier(.4,0,.2,1),
              transform .18s cubic-bezier(.4,0,.2,1),
              visibility .18s;
}
.cat-dropdown--right { left: auto; right: 0; }

/* Hover ET focus-within (accessibilité clavier) */
.cat-nav-item:hover .cat-dropdown,
.cat-nav-item:focus-within .cat-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cat-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.cat-dropdown a:hover { background: #eff6ff; color: var(--primary); }

/* user menu inner link overrides */
.cat-dropdown .user-menu-admin { color: var(--primary); font-weight: 600; }
.cat-dropdown .user-menu-django { color: #6b7280; }
.user-menu-sep { border-top: 1px solid #f3f4f6; }
.cat-dropdown .user-menu-logout { color: var(--danger); }
.cat-dropdown .user-menu-logout:hover { background: #fef2f2; }

.cat-dropdown__header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 8px 16px 4px;
}

/* ── Boutons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,108,241,.3); }
.btn-accent  { background: var(--accent);  color: #fff; }
.btn-accent:hover  { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,.25); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--bg-alt2); }
.btn-danger  { background: var(--danger); color: #fff; }

/* ── Category pill (index quick-access, kept for other pages) ─── */
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.cat-pill:hover {
  border-color: var(--primary);
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-pill.active {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
}
.cat-pill__icon { font-size: 1.6rem; line-height: 1; }
.cat-pill__label { font-size: 11px; font-weight: 600; color: var(--text-sub); text-align: center; }

/* ── Sidebar layout ───────────────────────────────────────────── */
.layout-with-sidebar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.layout-main   { flex: 1; min-width: 0; }
/* Sidebar gauche — gérée via #left-sidebar-pub dans #layout-row (desktop grid) */
/* top = zone1(64px) + zone2(44px) + 8px gap */
.layout-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 116px;
  /* Pousse la sidebar vers le bord droit de la fenêtre :
     compense le padding px-4 du container + la marge auto de max-w-7xl */
  margin-right: clamp(-120px, calc((80rem - 100vw) / 2), 0px);
}

/* #left-sidebar-pub masqué par défaut (mobile), affiché dans @media ≥1025px */
#left-sidebar-pub { display: none; }
@media (max-width: 1024px) {
  .layout-with-sidebar { flex-direction: column; }
  .layout-sidebar { width: 100%; position: static; margin-right: 0; }
}

/* ── Ads grid ─────────────────────────────────────────────────── */
.ads-grid {
  display: grid;
  /* min(200px, 45%) → sur 320px donne 144px → 2 colonnes auto
     sur 640px donne 200px → 3 colonnes, sur 1024px → 5 colonnes
     Aucun breakpoint nécessaire : le navigateur calcule tout */
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr));
  gap: clamp(6px, 1.5vw, 16px);
}
.ads-grid--5 {
  /* Même logique, items légèrement plus petits */
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr));
  gap: clamp(6px, 1.5vw, 16px);
}

/* ── Category Carousel ────────────────────────────────────────── */
.cat-carousel-wrapper {
  position: relative;
}
.cat-carousel {
  overflow: hidden;
}
.cat-carousel__track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.cat-carousel__item {
  flex: 0 0 calc(20% - 10px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cat-carousel__btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #374151;
  z-index: 10;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: manipulation;
}
.cat-carousel__btn:hover:not([disabled]) {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}
.cat-carousel__btn[disabled] {
  opacity: 0.2;
  cursor: default;
}
.cat-carousel__btn--prev { left: -15px; }
.cat-carousel__btn--next { right: -15px; }
@media (max-width: 640px) {
  /* Carousel : exactement 2 items visibles + flèches */
  .cat-carousel .cat-carousel__item   { flex: 0 0 calc(50% - 6px); }
  .cat-carousel .cat-carousel__btn    { display: flex; width: 44px; height: 44px; font-size: 18px; }
  .cat-carousel .cat-carousel__btn--prev { left: 2px; }
  .cat-carousel .cat-carousel__btn--next { right: 2px; }
}

/* ── Cat label card : demi-largeur dans le carousel ── */
.cat-carousel__item.cat-carousel__item--label {
  flex: 0 0 calc(12.5% - 6px);
  min-width: 100px;
}
@media (max-width: 640px) {
  .cat-carousel__item.cat-carousel__item--label { flex: 0 0 calc(25% - 6px); }
}
/* ── Cat section row : carte label fixe + carousel ── */
.cat-section-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.cat-section-row__carousel {
  flex: 1;
  min-width: 0;
}
.cat-label-card {
  flex: 0 0 95px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1),
              border-color .25s;
  cursor: pointer;
}
.cat-label-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.cat-label-card__top {
  flex-shrink: 0;
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.cat-label-card__icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 0;
  padding: 8px;
}
.cat-label-card__icon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.cat-label-card__bottom {
  flex-shrink: 0;
  padding: 8px 12px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .cat-label-card { display: none; }
}

/* ── Bandeau titre catégorie — cliquable en entier ── */
.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  padding: 10px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s, border-color .15s;
}
.cat-section-header:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.06);
  border-color: #d1d5db;
}

/* ── Carousel Promo — overflow vertical pour cartes expandables ── */


/* ── Promo Card — carte expandable au clic ────────────────────── */
.promo-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
@media (hover: hover) {
  .promo-card:not(.open):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
}
.promo-card.open {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 5;
}
.promo-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 8px;
}
.promo-card__title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 6px;
}
.promo-card__preview {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card.open .promo-card__preview {
  display: none;
}
.promo-card__expand {
  display: none;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.6;
}
.promo-card.open .promo-card__expand {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.promo-card__expand p {
  margin: 0 0 12px;
}
.promo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  margin-top: 2px;
}
.promo-card__cta:hover {
  background: #111827;
  color: #fff;
}
.promo-card__source {
  margin-top: 8px;
  font-size: 0.65rem;
  color: #6b7280;
}
.promo-card__hint {
  margin-top: 8px;
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 600;
  text-align: right;
}
.promo-card.open .promo-card__hint {
  display: none;
}
.promo-card__badge,
.promo-card__title,
.promo-card__preview,
.promo-card__expand,
.promo-card__hint {
  padding-left: 14px;
  padding-right: 14px;
}
.promo-card__badge { margin-top: 12px; }
.promo-card__hint  { padding-bottom: 14px; }

/* ── Info Card ────────────────────────────────────────────────── */
.info-card__photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
}
.info-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: box-shadow .2s;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
.info-card__meta {
  padding: 6px 16px 12px;
  font-size: .68rem;
  color: #9ca3af;
  display: flex;
  gap: 10px;
}
.info-card__badge,
.info-card__title,
.info-card__preview,
.info-card__expand,
.info-card__hint {
  padding-left: 16px;
  padding-right: 16px;
}
.info-card__badge { margin-top: 12px; }
.info-card__hint  { padding-bottom: 14px; }
@media (hover: hover) {
  .info-card:not(.open):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
}
.info-card.open {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}
.info-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
.info-card__title    { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .88rem; line-height: 1.3; color: #111827; margin-bottom: 6px; }
.info-card__preview  { font-size: .78rem; color: #6b7280; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.info-card.open .info-card__preview { display: none; }
.info-card__expand   { display: none; font-size: .8rem; color: #374151; line-height: 1.6; }
.info-card.open .info-card__expand  { display: block; animation: fadeIn .2s ease; }
.info-card__expand p { margin: 0 0 12px; }
.info-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f4f6; color: #111827; font-size: .72rem; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; text-decoration: none; margin-top: 2px; transition: background .2s, color .2s;
}
.info-card__cta:hover { background: #111827; color: #fff; }
.info-card__source   { margin-top: 8px; font-size: .65rem; color: #6b7280; }
.info-card__hint     { margin-top: 8px; font-size: .65rem; color: #6b7280; font-weight: 600; text-align: right; }
.info-card.open .info-card__hint { display: none; }

/* ── Nouveauté Card ───────────────────────────────────────────── */
.nouv-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: box-shadow .2s;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
@media (hover: hover) {
  .nouv-card:not(.open):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
}
.nouv-card.open {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}
.nouv-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
.nouv-card__title    { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .88rem; line-height: 1.3; color: #111827; margin-bottom: 6px; }
.nouv-card__preview  { font-size: .78rem; color: #6b7280; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nouv-card.open .nouv-card__preview { display: none; }
.nouv-card__expand   { display: none; font-size: .8rem; color: #374151; line-height: 1.6; }
.nouv-card.open .nouv-card__expand  { display: block; animation: fadeIn .2s ease; }
.nouv-card__expand p { margin: 0 0 12px; }
.nouv-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f4f6; color: #111827; font-size: .72rem; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; text-decoration: none; margin-top: 2px; transition: background .2s, color .2s;
}
.nouv-card__cta:hover { background: #111827; color: #fff; }
.nouv-card__source   { margin-top: 8px; font-size: .65rem; color: #6b7280; }
.nouv-card__hint     { margin-top: 8px; font-size: .65rem; color: #6b7280; font-weight: 600; text-align: right; }
.nouv-card.open .nouv-card__hint { display: none; }
.nouv-card__badge,
.nouv-card__title,
.nouv-card__preview,
.nouv-card__expand,
.nouv-card__hint {
  padding-left: 16px;
  padding-right: 16px;
}
.nouv-card__badge { margin-top: 12px; }
.nouv-card__hint  { padding-bottom: 14px; }

/* ── Carte "Voir tout" (11e carte du carousel) ────────────────── */
.cat-voir-tout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  color: #6b7280;
}
.cat-voir-tout:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}
.cat-voir-tout__arrow {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 8px;
  line-height: 1;
  display: block;
}
.cat-voir-tout__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

/* ── Stat card ────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card__value { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-card__label { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* ── Badges statut ────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-actif   { background: #dcfce7; color: #166534; }
.badge-modere  { background: #fef9c3; color: #854d0e; }
.badge-vendu   { background: #f3f4f6; color: #6b7280; }
.badge-expire  { background: #fee2e2; color: #991b1b; }
.badge-pro     { background: #dbeafe; color: #1e40af; }
.badge-admin   { background: #fce7f3; color: #9d174d; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes toastIn {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast.success { background: #fff; border-left: 4px solid var(--accent);  color: var(--text); }
.toast.error   { background: #fff; border-left: 4px solid var(--danger);  color: var(--text); }
.toast.info    { background: #fff; border-left: 4px solid var(--primary); color: var(--text); }

/* ── Infinite scroll loader ───────────────────────────────────── */
.load-sentinel { height: 4px; }
.load-spinner  {
  display: none;
  justify-content: center;
  padding: 24px;
}
.load-spinner.active { display: flex; }
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Detail page photo mosaic ─────────────────────────────────── */
.detail-mosaic {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 8px;
  height: 400px;
}
.detail-mosaic__main {
  height: 400px;
}
.detail-mosaic__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 400px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .detail-mosaic {
    grid-template-columns: 1fr;
    height: auto;
  }
  .detail-mosaic__main {
    height: 260px;
  }
  .detail-mosaic .detail-mosaic__main img { max-height: 260px; }
  .detail-mosaic__thumbs {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .detail-mosaic__thumbs::-webkit-scrollbar { display: none; }
  .detail-mosaic__thumbs > div {
    flex: 0 0 72px;
    height: 56px;
    min-height: auto;
  }
}
@media (min-width: 641px) and (max-width: 767px) {
  .detail-mosaic {
    height: 320px;
  }
  .detail-mosaic__main {
    height: 320px;
  }
  .detail-mosaic .detail-mosaic__main img { max-height: 320px; }
  .detail-mosaic__thumbs {
    height: 320px;
  }
}

/* ── Photo gallery ────────────────────────────────────────────── */
.photo-main { aspect-ratio: 16/10; object-fit: contain; background: var(--bg-alt); width: 100%; border-radius: var(--radius); }
.photo-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.photo-thumb:hover, .photo-thumb.active { opacity: 1; border-color: var(--primary); }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.active { display: flex; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.lightbox-close:hover { color: #e5e5e5; }

.lightbox-content {
  display: flex;
  gap: 28px;
  background: #fff;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.lightbox-left {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  padding: 16px;
}

.lightbox-img-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform .2s ease;
  user-select: none;
  user-select: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.lightbox-arrow:hover { background: rgba(0,0,0,.7); }
.lightbox-arrow--prev { left: 8px; }
.lightbox-arrow--next { right: 8px; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  flex-shrink: 0;
}
.lightbox-thumb {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.lightbox-thumb:hover, .lightbox-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

.lightbox-right {
  flex: 1 1 45%;
  padding: 24px 24px 24px 0;
  overflow-y: auto;
  min-width: 0;
}
.lightbox-desc {
  max-height: 200px;
  overflow-y: auto;
}

/* Lightbox mobile */
@media (max-width: 768px) {
  .lightbox-overlay { padding: 0; }
  .lightbox-content {
    flex-direction: column;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .lightbox-left {
    flex: 0 0 auto;
    max-height: 55vh;
  }
  .lightbox-img { max-height: 40vh; }
  .lightbox-right {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
  }
  .lightbox-close {
    top: 8px;
    right: 12px;
    color: #333;
    text-shadow: none;
  }
}

/* ── Transitions globales ─────────────────────────────────────── */
a, button { transition: color .15s, background .15s, border-color .15s, box-shadow .15s; }

/* ── Lazy image ───────────────────────────────────────────────── */
img[data-src] { transition: opacity .4s; }
img.loaded     { opacity: 1; }

/* ── Mobile CTA sticky ────────────────────────────────────────── */
@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 40;
    display: flex;
    gap: 8px;
  }
  body { padding-bottom: 72px; }
}
@media (min-width: 769px) { .sticky-cta { display: none; } }
/* -- Pub strip compacte (inter-catégories) -- */
.pub-strip-img-wrap { display: block; border-radius: var(--radius); overflow: hidden; }
.pub-strip-img { width: 100%; height: auto; display: block; }
@media (min-width: 1025px) {
  .pub-strip-img-wrap { max-width: 80%; margin: 0 auto; }
}

/* billboard-milieu-empty supprimé — utilise .pub-empty avec styles inline */

/* ── annonce-card: div wrapper (was <a>) ──────────────────────────── */
.annonce-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
@media (hover: hover) { .annonce-card__link:hover .annonce-card__img { transform: scale(1.04); } }

/* ── Contacter button on cards ───────────────────────────────── */
.btn-contact-card {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-contact-card:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Contact modal overlay ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
}
.modal-box {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 640px) {
  .modal-box {
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    animation: fadeScale .2s cubic-bezier(.4,0,.2,1);
  }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-close-btn:hover { background: #f3f4f6; color: #111827; }
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* ── Chat thread ─────────────────────────────────────────────── */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 4px;
  padding-right: 4px;
}
.chat-thread:empty { display: none; }
.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.chat-bubble--me {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-bubble--other {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-bubble__text {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble--me    .chat-bubble__text { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble--other .chat-bubble__text { background: #f3f4f6; color: #111827; border-bottom-left-radius: 4px; }
.chat-bubble__time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 3px;
  padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════════
   JOUR 9 — RESPONSIVE MOBILE (320px → desktop)
   ══════════════════════════════════════════════════════════════ */

/* ── Cat-nav: horizontal scroll on mobile ────────────────────── */
@media (max-width: 767px) {
  .cat-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  /* No hover on touch → hide dropdowns entirely */
  .cat-nav-item .cat-dropdown,
  .cat-nav-item:hover .cat-dropdown,
  .cat-nav-item:focus-within .cat-dropdown { display: none; }
  .cat-nav-chevron { display: none; }
  .cat-nav-link { padding: 0 10px; font-size: 12px; }
}

/* ── iOS input font-size: prevent auto-zoom on focus ─────────── */
@media (max-width: 767px) {
  .form-input { font-size: 16px; }
  .search-bar__input { font-size: 16px; }
}

/* ── Ad cards: fluid text — clamp(min, fluide, max) ─────────── */
/* Aucun breakpoint : taille calculée en continu selon la largeur  */
.annonce-card__body    { padding: clamp(5px, 1.5vw, 10px) clamp(7px, 2vw, 12px); }
.annonce-card__title   { font-size: clamp(10px, 2.8vw, 13px); }
.annonce-card__price   { font-size: clamp(12px, 3.2vw, 15px); }
.annonce-card__meta    { font-size: clamp(8px, 2vw, 11px); gap: clamp(4px, 1vw, 8px); margin-top: clamp(2px, 0.5vw, 5px); }
.btn-contact-card { font-size: clamp(10px, 2.2vw, 12px); }

/* ── Header search: compact on very small screens ────────────── */
@media (max-width: 480px) {
  .search-bar__btn { padding: 0 12px; }
}

/* ── Header Zone 1: compact & aligned on mobile ──────────────── */
/* logo (shrink-0) | form flex-1 | actions (shrink-0)
   → reduce gap + height so it feels native on phones            */
@media (max-width: 767px) {
  /* Allow search form to shrink to available space */
  header form[method="get"] { min-width: 0; }
  /* Compact header height (64px → 56px) and tighter gap (12px → 8px) */
  header .flex.items-center.h-16 { height: 56px; gap: 8px; position: relative; }
  /* Logo: cap width on mobile, preserves search space */
  header .logo-header { max-width: 120px; }
  /* search button: trim padding on mobile */
  header .search-bar__btn { padding: 0 12px; }

  /* ── Search expand on focus: pleine largeur par-dessus le header ── */
  header form[method="get"] {
    transition: none;
  }
  header form[method="get"]:focus-within {
    position: absolute;
    left: 12px;
    right: 12px;
    z-index: 50;
  }
  header form[method="get"]:focus-within .search-bar {
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
  }
}
@media (max-width: 400px) {
  header .flex.items-center.h-16 { gap: 6px; padding-left: 12px; padding-right: 12px; }
  header .logo-header { max-width: 100px; }
}

/* ── Bottom navigation bar ───────────────────────────────────── */
.bottom-nav { display: none; }

@media (max-width: 767px) {
  /* Hide old 2-button sticky bar if still in DOM */
  .sticky-cta { display: none; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: visible;
  }

  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

.bottom-nav__item {
  flex: 1;
  min-width: 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 9px;
  font-weight: 500;
  transition: color .12s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  white-space: nowrap;
}
.bottom-nav__item:active { opacity: .65; }

.bottom-nav .bottom-nav__item--deposer {
  flex: none;
  width: 64px;
  height: 68px;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  margin: 0 3px;
  margin-top: -16px;
  gap: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.bottom-nav__item--deposer span {
  text-align: center;
  width: 100%;
}
.bottom-nav__item--deposer:active { opacity: .85; }

.bottom-nav__badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* ── Hamburger button (mobile only) ─────────────────────────── */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:hover,
.hamburger-btn:active { background: var(--bg-alt2); border-color: var(--border-md); }

@media (max-width: 767px) {
  .hamburger-btn { display: flex; }
  /* Zone 2 hidden on mobile — slide panel takes over */
  #cat-zone-2 { display: none; }
  /* Messages icon in header hidden on mobile — bottom nav has it */
  .msg-icon-header { display: none; }
  /* Cap logo on small screens for more search space */
  .logo-header { max-width: 120px; }
}

/* ── Slide menu overlay ──────────────────────────────────────── */
.slide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 499;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.slide-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* ── Slide menu panel ────────────────────────────────────────── */
.slide-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100dvh;
  background: #fff;
  z-index: 500;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 40px rgba(0,0,0,.18);
  transition: right .32s cubic-bezier(.4,0,.2,1);
  overscroll-behavior: contain;
}
.slide-menu--open { right: 0; }

.slide-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.slide-menu__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt2);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.slide-menu__close:hover { background: var(--border-md); color: var(--text); }

.slide-menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  overscroll-behavior: contain;
}
.slide-menu__sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.slide-cat-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.slide-cat-link:hover,
.slide-cat-link:active { background: #eff6ff; color: var(--primary); }
.slide-cat-link--all  { color: var(--text-sub); font-size: 14px; font-weight: 400; }
.slide-cat-link--cta   { color: var(--accent); font-weight: 700; }
.slide-cat-link--admin { color: #6b7280; font-size: 13px; }
.slide-cat-icon       { font-size: 20px; width: 36px; text-align: center; flex-shrink: 0; }

.slide-menu__section-title {
  padding: 10px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-hint);
}

/* ── Accordéon sous-catégories (slide menu mobile) ─── */
.slide-accordion__toggle {
  justify-content: flex-start;
  position: relative;
}
.slide-accordion__chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform .25s ease;
}
.slide-accordion__toggle.open .slide-accordion__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.slide-accordion__toggle.open {
  color: var(--primary);
  background: #eff6ff;
}
.slide-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #f9fafb;
}
.slide-sub-link {
  display: block;
  padding: 11px 20px 11px 62px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-sub);
  text-decoration: none;
  transition: background .12s, color .12s;
  border-bottom: 1px solid #f3f4f6;
  -webkit-tap-highlight-color: transparent;
}
.slide-sub-link:first-child {
  font-weight: 600;
  color: var(--primary);
}
.slide-sub-link:last-child {
  border-bottom: none;
}
.slide-sub-link:hover,
.slide-sub-link:active {
  background: #e0f2fe;
  color: var(--primary);
}

/* ── Override Tailwind : fonds colorés → gris très clair ─────────── */
body .bg-blue-50, body .bg-blue-100,
body .bg-emerald-50, body .bg-emerald-100,
body .bg-amber-50,  body .bg-amber-100,
body .bg-green-50,  body .bg-green-100  { background-color: #f9fafb; }

/* ── Override Tailwind : boutons colorés → noir ─────────────────── */
body .bg-blue-600,   body .bg-blue-700,
body .bg-emerald-600, body .bg-emerald-700,
body .bg-amber-500,  body .bg-amber-600,
body .bg-green-600,  body .bg-green-700   { background-color: #111827; }

body .hover\:bg-blue-700:hover, body .hover\:bg-blue-800:hover,
body .hover\:bg-blue-50:hover,
body .hover\:bg-emerald-700:hover,  body .hover\:bg-emerald-500:hover,
body .hover\:bg-amber-600:hover,    body .hover\:bg-amber-400:hover { background-color: #000; }

/* ── Override Tailwind : textes colorés → noir ───────────────────── */
body .text-blue-600,   body .text-blue-700,   body .text-blue-800,
body .text-emerald-600, body .text-emerald-700,
body .text-amber-600,  body .text-amber-700,
body .text-green-600,  body .text-green-700   { color: #111827; }

body .hover\:text-blue-800:hover    { color: #000; }

/* ── Override Tailwind : bordures colorées → gris ───────────────── */
body .border-blue-200,    body .border-blue-300,    body .border-blue-400,
body .border-emerald-100, body .border-emerald-200, body .border-emerald-300, body .border-emerald-400,
body .border-amber-200,   body .border-amber-300,   body .border-amber-400,
body .border-blue-500 { border-color: #d1d5db; }

body .hover\:border-blue-300:hover, body .hover\:border-blue-400:hover,
body .hover\:border-emerald-400:hover,
body .hover\:border-amber-400:hover { border-color: #111827; }

/* ── Override Tailwind : gradients colorés → noir ───────────────── */
body .bg-gradient-to-r {
  background: linear-gradient(to right, #1a1a1a, #000000);
}

/* ── Badges colorés dans rubriques → monochrome ─────────────────── */
.bg-amber-100.text-amber-700,
.bg-blue-50.text-blue-700,
.bg-emerald-50.text-emerald-700,
.bg-emerald-100.text-emerald-700 {
  background-color: #f3f4f6;
  color: #111827;
}

/* ── Exceptions : pubs conservent leurs couleurs ────────────────── */
/* Les pubs utilisent des classes custom (.billboard-*, .pub-slot)  */
/* pas de classes Tailwind colorées → aucun conflit                 */

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE CARDS — Rubriques (Promo / Info / Nouveauté)
   ═══════════════════════════════════════════════════════════════════ */
.article-card {
  display: block;
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,.18);
  border-color: #000;
  text-decoration: none;
  color: inherit;
}

.article-card__image {
  width: 100%;
  height: 150px;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.article-card:hover .article-card__image img {
  transform: scale(1.05);
}
.article-card__emoji {
  font-size: 52px;
  line-height: 1;
  filter: grayscale(30%);
  transition: filter .3s ease;
}
.article-card:hover .article-card__emoji {
  filter: grayscale(0%);
}

.article-card__body  { padding: 16px 18px 14px; }
.article-card__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #111827;
  color: #111827;
  padding: 2px 7px;
  margin-bottom: 9px;
}
.article-card__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.35;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__desc {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}
.article-card__cta {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.article-card:hover .article-card__cta { color: #000; }

/* ── Rubrique grid ───────────────────────────────────────────────── */
.rubrique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .rubrique-grid { grid-template-columns: 1fr; }
}

/* ── Section header rubriques ────────────────────────────────────── */
.rubrique-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111827;
}
.rubrique-section-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0;
}
.rubrique-section-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #111827;
  padding: 2px 7px;
  color: #111827;
}
.rubrique-section-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   JOUR 13 — SPINNERS · FAVORIS · UX POLISH
   ═══════════════════════════════════════════════════════════════ */

/* ── Loading spinner ─────────────────────────────────────────── */
@keyframes tbg-spin { to { transform: rotate(360deg); } }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: tbg-spin .6s linear infinite;
  vertical-align: -3px;
  margin-right: 6px;
}

/* ── Favoris button ─────────────────────────────────────────── */
.fav-btn { transition: background .2s, color .2s, border-color .2s; }
.fav-btn.fav-active,
[data-fav-pk].fav-active {
  color: #e11d48;
}

/* ── Scroll-to-top ajustement monochrome ──────────────────────── */
/* Already in main.js - just ensure it's above bottom-nav on mobile */
@media (max-width: 767px) {
  /* Scroll-to-top is injected at bottom-6 left-6 — fine above bottom nav */
}

/* ── Toast style harmonisé ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px; /* above bottom nav */
  right: 16px;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  max-width: 280px;
  transition: opacity .3s, transform .3s;
}
.toast.success { border-left: 3px solid #10b981; }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid #6b7280; }

/* ── Messages Django harmonisés B&W ─────────────────────────── */
.bg-green-50.border-green-200 {
  background: #f9fafb;
  border-color: #111827;
  color: #111827;
}
.bg-red-50.border-red-200 {
  background: #fff5f5;
  border-color: #ef4444;
  color: #7f1d1d;
}

/* ── Admin stats bar chart ──────────────────────────────────── */
.stat-bar {
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 3px;
  padding-bottom: 4px;
}
.stat-bar__col {
  flex: 1;
  background: #111827;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity .2s;
}
.stat-bar__col:hover { opacity: .7; }

/* ── Footer Pro Let's GoWeb ───────────────────────────────────── */
.footer-pro {
  background: #111827;
  color: #fff;
  margin-top: 24px;
  padding: 24px 24px 20px;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.logo-footer {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}
.footer-credits p { margin: 0; }
.letsgo-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .3s ease, transform .3s ease;
  display: inline-block;
}
.letsgo-link:hover {
  border-bottom-color: #fff;
  transform: translateY(-1px);
}

/* ── Lien Let's GoWeb footer ──────────────────────────────────── */
.letsgo-link-footer {
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.letsgo-link-footer:hover { color: #1a6cf1; }

/* ── Spacer désactivé — le billboard est désormais en flux statique */
.pub-spacer.pub-spacer { display: none; }

/* Sidebar droite et billboard masqués par défaut (mobile) */
#layout-billboard { display: none; }
#right-sidebar-pubs { display: none; }

/* Cartes pub inline dans le carousel — cachées sur desktop, affichées sur mobile */
.mobile-pub-inject { display: none; }

/* ── Animation d'entrée des panneaux ────────────────────────────── */
@keyframes frameAppear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ FRAME LAYOUT PREMIUM ─ desktop ≥ 1025px ════════════════════════
   Architecture Flexbox propre — plus de position:fixed pour les zones :
     #layout-outer    — colonne flex centrée, 100vh
       #layout-billboard — bande pub en haut (height fixe, shadow forte)
       #layout-row    — rangée flex : cadre + sidebar
         #main-frame  — flex:1, scrollable, coins arrondis en haut
         #right-sidebar-pubs — 300px, scrollable, coins arrondis en haut
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  html, body { height: 100%; }
  body {
    overflow: hidden;
    background: #f5f6f8; /* fond blanc cassé neutre */
    padding-bottom: 0;
  }

  /* ── Conteneur principal pleine largeur ─────────────────────── */
  #layout-outer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Accent coloré en haut : visible sur pages sans billboard */
    background: linear-gradient(to bottom, #d6e4ff 0%, #f5f6f8 90px);
  }

  /* ── Billboard : bandeau pub pleine largeur ──────────────────── */
  #layout-billboard {
    display: block;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
  }
  #layout-billboard .pub-bg-fixed {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: auto;
    box-shadow: none;
    background: transparent;
  }
  #layout-billboard .pub-bg-fixed-link {
    display: block;
    width: 100%;
  }
  #layout-billboard .pub-bg-fixed-img {
    width: 100%;
    height: auto;
    display: block;
  }
  .pub-bg-fixed-empty { gap: 6px; }

  /* ── Rangée : cadre centré + sidebar droite ─────────────────── */
  /* Grille symétrique 300px | 1fr | 300px :
     – col 1 (300px) : espace vide à gauche → cadre parfaitement centré
     – col 2 (1fr)   : cadre principal
     – col 3 (300px) : sidebar collée au bord droit
     Par défaut (sans billboard) : padding-top pour que les coins arrondis soient visibles.
     Quand billboard présent (sibling selector) : margin négatif pour l'effet de chevauchement. */
  #layout-row {
    flex: 1;
    display: grid;
    grid-template-columns: 160px 1fr 250px; /* spacer asymétrique → cadre plus large, sidebar compacte */
    column-gap: 10px;
    padding: 12px 10px 0; /* espace en haut par défaut (pages sans billboard) */
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 0;
  }

  /* Chevauchement billboard → cadre uniquement quand le billboard est présent */
  #layout-billboard + #layout-row {
    padding-top: 0;
    margin-top: -18px;
  }

  /* ── Cadre central scrollable ───────────────────────────────── */
  #main-frame {
    grid-column: 2;
    min-height: 0;
    overflow-y: auto;
    background: var(--bg-alt);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
    animation: frameAppear 200ms ease-out;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
  }
  #main-frame::-webkit-scrollbar       { width: 5px; }
  #main-frame::-webkit-scrollbar-track { background: transparent; }
  /* Nav catégories : scroll horizontal, dropdowns en position:fixed */
  #main-frame .cat-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  #main-frame .cat-nav::-webkit-scrollbar { display: none; }
  #main-frame .cat-nav-link { padding: 0 5px; font-size: 0.82rem; }
  #main-frame .cat-dropdown {
    position: fixed;
    top: auto;
    left: auto;
  }
  #main-frame::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

  /* ── Sidebar droite ─────────────────────────────────────────── */
  #right-sidebar-pubs {
    display: block;
    grid-column: 3;
    /* pas de margin-top par défaut (pages sans billboard) */
    min-height: 0;
    overflow-y: auto;
    background: transparent;
    border-radius: 10px 10px 0 0;
    animation: frameAppear 200ms ease-out 60ms both;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
  }

  /* Quand billboard présent : compensation + 5px d'espace sous le billboard */
  #layout-billboard + #layout-row #right-sidebar-pubs {
    margin-top: 23px;
  }
  #right-sidebar-pubs::-webkit-scrollbar       { width: 4px; }
  #right-sidebar-pubs::-webkit-scrollbar-track { background: transparent; }
  #right-sidebar-pubs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
  #right-sidebar-pubs .pub-slot {
    border: none;
    border-radius: 0;
    background: transparent;
  }
  #right-sidebar-pubs .pub-empty {
    border-radius: 0;
  }

  /* ── Sidebar inline dans la page → masquée (gérée hors cadre) ─ */
  body .layout-sidebar       { display: none; }
  body .layout-with-sidebar  { display: block; }
  body .layout-main          { width: 100%; max-width: 100%; }

  /* Override : dans la sidebar droite, réafficher le contenu */
  body #right-sidebar-pubs .layout-sidebar {
    display: block;
    width: 100%;
    position: static;
    top: auto;
    margin-right: 0;
  }

  /* ── Sidebar gauche (pub unique) ─────────────────────────────── */
  #left-sidebar-pub {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 10px 10px 0 0;
    animation: frameAppear 200ms ease-out 60ms both;
    padding: 0;
    align-self: stretch;
  }
  #left-sidebar-pub > .pub-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  #left-sidebar-pub .pub-empty {
    flex: 1;
    min-height: 0;
    border-radius: 0;
  }

  /* Quand billboard présent : même compensation que le cadre */
  #layout-billboard + #layout-row #left-sidebar-pub {
    margin-top: 23px;
  }
}

/* ── Déposer dropdown PRO ─────────────────────────────────────── */
.deposer-wrap {
  position: relative;
}

.deposer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111111;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 150ms;
  box-shadow: 0 1px 3px rgba(0,0,0,.20);
  line-height: 1;
  white-space: nowrap;
}
.deposer-btn:hover { background: #333333; }

.deposer-chevron {
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.deposer-wrap.open .deposer-chevron { transform: rotate(180deg); }

.deposer-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  right: auto;
  min-width: 175px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.deposer-wrap.open .deposer-menu,
.deposer-menu.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.deposer-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 120ms;
}
.deposer-menu__item:hover {
  background: #f0fdf4;
  color: #059669;
}
.deposer-menu__icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Mobile : menu fixe au-dessus de la bottom nav */
.deposer-menu--mobile {
  position: fixed;
  bottom: calc(64px + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  right: auto;
  top: auto;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.deposer-menu--mobile.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE & MOBILE
   Règle : rien ne touche ≥ 1025px (layout premium desktop intact)
   ═══════════════════════════════════════════════════════════════ */

/* ── ANTI-OVERFLOW HORIZONTAL (mobile & tablette) ─────────────── */
@media (max-width: 1024px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; max-width: 100vw; }
  #layout-outer { overflow-x: hidden; }
  /* Sidebar : forcer 100% et jamais 280px fixe */
  .layout-sidebar { width: 100%; max-width: 100%; min-width: 0; }
  /* Carousel wrapper : ne pas clipper les boutons ni les promos expandables */
  .cat-carousel-wrapper { overflow: visible; }
  /* Images : ne jamais dépasser leur conteneur */
  img { max-width: 100%; }

  /* ── Billboard : bandeau pub au-dessus du contenu ──────────── */
  #layout-billboard {
    display: block;
    height: auto;
    overflow: hidden;
  }
  #layout-billboard .pub-bg-fixed {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: auto;
    box-shadow: none;
    pointer-events: auto;
  }
  #layout-billboard .pub-bg-fixed-img {
    width: 100%;
    height: auto;
  }
  #layout-billboard .pub-bg-fixed-empty {
    gap: 3px;
    min-height: 80px;
  }
  /* Spacer inutile sur mobile (billboard n'est plus en position:fixed) */
  .pub-spacer { display: none; }
}

/* ── TABLETTE (641px → 1024px) ────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {

  /* Carousels : 3 items visibles sur tablette */
  .cat-carousel__item {
    flex: 0 0 calc(33.333% - 8px);
  }

  /* Pages : py-8 → py-5 */
  .max-w-7xl.mx-auto.px-4.py-8 {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ── MOBILE (≤ 640px) ────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Photo principale détail : ratio plus carré, moins de hauteur */
  .photo-main {
    aspect-ratio: 4/3;
  }

  /* Thumbnails : un peu plus grandes pour être tapables */
  .photo-thumb {
    width: 80px;
    height: 62px;
    min-width: 80px;
  }

  /* Header formulaire dépôt : moins de padding */
  body .deposer-form-header {
    padding: 16px 20px;
  }
  .deposer-form-header h1 {
    font-size: 1.2rem;
  }

  /* Barre d'actions détail : boutons circulaires en ligne */
  .detail-actions-bar {
    flex-direction: row;
    gap: 8px;
  }
  body .detail-actions-bar > * {
    width: auto;
    min-height: unset;
    margin-left: 0;
  }
  body .detail-actions-bar > .ml-auto {
    margin-left: auto;
  }

  /* Bulle "annonce parfaite" : étire sur la largeur au-dessus de la bottom nav */
  #bulle-parfaite {
    left: 8px;
    right: 8px;
    max-width: none;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 10px);
  }

  /* Formulaire : py-8 → py-3 sur mobile */
  .max-w-7xl.mx-auto.px-4.py-8 {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Dropzone photos : padding plus serré */
  #dropzone {
    padding: 20px 16px;
  }

  /* Filtres liste annonces : font-size 16px anti-zoom iOS */
  .ads-grid + div .form-input,
  .layout-main .form-input {
    font-size: 16px;
  }
}

/* ── MICRO-AJUSTEMENTS (≤ 767px) ─────────────────────────────── */
@media (max-width: 767px) {

  /* Touch targets minimum recommandé 44px */
  .btn {
    min-height: 44px;
  }
  .btn-contact-card {
    min-height: 44px;
    padding: 10px 0;
    font-size: 12px;
  }

  /* Boutons carousel : dans le cadre pour ne pas sortir de l'écran */
  .cat-carousel__btn--prev { left: 2px; }
  .cat-carousel__btn--next { right: 2px; }

  /* Pages contenu : réduire py-8 */
  .max-w-7xl.mx-auto.px-4 {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Vider le trop-plein de padding sur les cards de contenu */
  .bg-white.border.border-gray-200.rounded-2xl.p-6 {
    padding: 16px;
  }

  /* Titre annonce détail : moins imposant */
  .bg-white.border.border-gray-200.rounded-2xl.p-6 h1.text-2xl {
    font-size: 1.25rem;
  }

  /* Prix détail : réduit */
  .text-3xl.font-black.text-blue-600 {
    font-size: 1.5rem;
  }

  /* Breadcrumb : texte plus petit */
  nav.text-xs.text-gray-400.mb-6 {
    margin-bottom: 12px;
    font-size: 11px;
  }

  /* Pagination : boutons full width sur très petit */
  .flex.justify-center.items-center.gap-2 {
    flex-wrap: wrap;
  }

  /* Section "Vendeur" : avatar + texte plus compact */
  .w-14.h-14.bg-blue-600 {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ── HOMEPAGE MOBILE — carousels & annonces compacts ──────────── */
@media (max-width: 767px) {

  /* Promo card : plus compacte */
  .promo-card {
    padding: 0;
  }
  .promo-card__title {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }
  .promo-card__preview {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
  }

  /* Annonce card : image moins haute pour voir plus de contenu */
  .annonce-card__img {
    aspect-ratio: 16/9;
  }
  .annonce-card__body {
    padding: 7px 9px 9px;
  }
  .annonce-card__title {
    font-size: 11px;
  }
  .annonce-card__price {
    font-size: 13px;
  }
  .annonce-card__meta {
    font-size: 9px;
    margin-top: 3px;
  }
  .annonce-card__seller { gap: 4px; margin-top: 4px; font-size: 10px; }
  .annonce-card__avatar { width: 18px; height: 18px; }
  .annonce-card__avatar--initials { font-size: 8px; }
  .annonce-card__note { font-size: 10px; }

  /* Masquer le bouton Contacter sur mobile pour réduire la taille des fiches */
  .btn-contact-card { display: none; }

  /* Boutons flèches carousel : visibles et dans l'espace (min 44px pour tactile) */
  .cat-carousel__btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
  }
  .cat-carousel__btn--prev { left: 2px; }
  .cat-carousel__btn--next { right: 2px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST LAYOUT — max-width: 768px
   ───────────────────────────────────────────────────────────────
   1. Billboard pub FIXE en haut (80px) — rendu amélioré
   2. Sidebar droite SUPPRIMÉE → 100% largeur écran
   3. Slider carousel : 2 items + pubs intégrées + scroll-snap
   ZÉRO impact sur desktop (≥769px) — uniquement media queries
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── 1. BILLBOARD — fixe 80px, lisibilité améliorée ──────────── */
  #layout-billboard {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px !important;
    z-index: 200;
    overflow: hidden;
  }
  #layout-billboard .pub-bg-fixed {
    position: static;
    width: 100%;
    height: 80px !important;
    z-index: auto;
    box-shadow: none;
    pointer-events: auto;
  }
  /* Image/vidéo pub : s'adapte à la hauteur */
  #layout-billboard .pub-bg-fixed-img  { width: 100%; height: 80px; object-fit: cover; }
  #layout-billboard .pub-bg-fixed-link { height: 80px; display: block; }
  /* État vide (.pub-empty) : centrée dans 80px */
  #layout-billboard .pub-empty,
  #layout-billboard .pub-bg-fixed-empty {
    min-height: 80px !important;
    height: 80px !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 8px;
    border-radius: 0;
  }
  #layout-billboard .pub-empty__zone { display: none; }
  #layout-billboard .pub-empty__title { font-size: 14px; margin-bottom: 0; }
  #layout-billboard .pub-empty__price { font-size: 12px; margin-bottom: 0; }
  #layout-billboard .pub-empty__cta   { font-size: 11px; padding: 5px 12px; }
  /* Texte alterné — taille adaptée au 80px mobile */
  #layout-billboard .pub-space-text .pub-txt-main { font-size: 13px; }
  #layout-billboard .pub-space-text .pub-txt-phone { font-size: 15px; letter-spacing: .06em; }
  .pub-spacer { display: none; }

  /* ── 2. COMPENSATION BILLBOARD FIXE 80px ─────────────────────── */
  /* margin-top uniquement quand le billboard est présent */
  #layout-billboard + #layout-row { margin-top: 80px; }
  #layout-billboard + #layout-row #main-frame header { top: 80px; }
  /* Pages sans billboard (formulaires) : pas de décalage */
  #layout-billboard-absent + #layout-row { margin-top: 0; }
  #layout-billboard-absent + #layout-row #main-frame header { top: 0; }

  /* ── 3. LAYOUT — sidebars supprimées, contenu 100% largeur ─────── */
  #right-sidebar-pubs { display: none; }
  #left-sidebar-pub   { display: none; }
  #main-frame { margin-right: 0; }
  /* layout-with-sidebar est flex column : on force align-items:stretch      */
  /* pour que .layout-main prenne 100% de la largeur (pas juste son contenu) */
  body .layout-with-sidebar { align-items: stretch; }
  body .layout-main { width: 100%; }
  /* Masquer le sidebar in-flow (_sidebar_pubs.html inclus dans index.html)   */
  body .layout-sidebar { display: none; }

  /* ── 4. PUB STRIP INTER-SECTIONS — pleine largeur téléphone ─────── */
  /* Compense le padding px-4 (12px × 2 = 24px) du container max-w-7xl  */
  body .billboard-milieu-empty {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-radius: 0;
  }

  /* ── 5. SLIDER CAROUSEL — scroll-snap, 2 items visibles ──────── */
  /* padding-top : overflow-x:scroll force overflow-y:auto par le navigateur */
  /* → sans padding, le haut des cartes arrondies est rogné                  */
  body .cat-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Autorise scroll horizontal ET vertical (ne bloque pas le scroll page) */
    touch-action: pan-x pan-y;
  }
  .cat-carousel::-webkit-scrollbar { display: none; }
  body .cat-carousel .cat-carousel__item {
    flex: 0 0 auto;
    width: calc(50vw - 18px);  /* (100vw - 24px - 12px) / 2 */
    scroll-snap-align: start;
  }
  /* Flèches : overflow:visible sur le wrapper pour ne pas clipper les boutons */
  body .cat-carousel-wrapper { overflow: visible; }
  body .cat-carousel-wrapper .cat-carousel__btn {
    display: flex;
    position: absolute;
    top: 32%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    z-index: 30;
    touch-action: manipulation;
  }
  body .cat-carousel-wrapper .cat-carousel__btn--prev { left: 4px; }
  body .cat-carousel-wrapper .cat-carousel__btn--next { right: 4px; }

  /* ── 5. CARTES PUB INLINE (mobile-only) ──────────────────────── */
  /* Affichage : override le display:none global défini hors media query  */
  body .mobile-pub-inject { display: flex; }

  /* Style : identique à .annonce-card mais teinte dorée + badge "Sponsorisé" */
  .mobile-pub-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #fbbf24;
    background: #fffbeb;
    position: relative;
    transition: transform .2s, box-shadow .2s;
  }
  @media (hover: hover) { .mobile-pub-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); } }

  /* Badge "Sponsorisé" superposé à l'image */
  .mobile-pub-card__badge {
    position: absolute;
    top: 7px; left: 7px;
    background: #f59e0b;
    color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    z-index: 2;
  }
  /* Image (ratio 4/3 identique aux cartes annonces) */
  .mobile-pub-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
  }
  /* Placeholder sans image */
  .mobile-pub-card__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
  }
  /* Corps texte */
  .mobile-pub-card__body {
    padding: 7px 9px 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
  }
  .mobile-pub-card__title {
    font-size: 11px; font-weight: 700;
    color: #111827; line-height: 1.3;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .mobile-pub-card__cta {
    font-size: 10px; font-weight: 700;
    color: #d97706; margin-top: auto;
  }

  /* ── 6. SCROLL NATUREL — annule le scroll interne desktop ───────── */
  /* Desktop : body{overflow:hidden} + #main-frame{overflow-y:auto;height:100vh} */
  /* Sur mobile on veut que la page entière scroll, sans boîte interne.          */
  body { overflow: auto; }
  #main-frame { overflow-y: visible; height: auto; }
  /* Lightbox mobile : la description n'a pas besoin d'un scroll interne         */
  .lightbox-desc { max-height: none; overflow-y: visible; }

  /* ── 7. PRÉ-TRIAGE — scroll horizontal sur mobile ───────────────── */
  /* Desktop garde .ads-grid (grille). Sur mobile, .pretriage-grid    */
  /* bascule en scroll horizontal pour parcourir plus d'annonces.    */
  .pretriage-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px 0;
    margin: 0 -4px;
    touch-action: pan-x pan-y;
  }
  .pretriage-grid::-webkit-scrollbar { display: none; }
  .pretriage-grid > .annonce-card {
    flex: 0 0 auto;
    width: calc(50vw - 20px);
    scroll-snap-align: start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE AVANCÉ — tous les appareils
   Breakpoints couverts :
   Approche fluide : clamp() + min() + vw/% — 0 breakpoint pixel pour
   les tailles de texte, grilles et espacements.
   Seuls les comportements de layout (sidebar, nav, billboard)
   nécessitent encore des breakpoints discrets.
   ═══════════════════════════════════════════════════════════════ */

/* ── HEADER FLUIDE — logo & hauteur s'adaptent en continu ────── */
@media (max-width: 767px) {
  /* Logo : clamp(80px → scale → 120px) selon la largeur */
  header .logo-header { max-width: clamp(80px, 28vw, 120px); }
  /* Annule le ml-4 Tailwind du lien logo sur très petits écrans */
  body header a.flex-shrink-0 { margin-left: clamp(0px, 2vw, 16px); margin-right: clamp(2px, 1vw, 8px); }
  /* Padding horizontal du container header */
  header .flex.items-center.h-16 { padding-left: clamp(8px, 3vw, 16px); padding-right: clamp(8px, 3vw, 16px); }
}

/* ── CONTENU GÉNÉRAL — padding horizontal fluide ─────────────── */
@media (max-width: 1024px) {
  .max-w-7xl.mx-auto.px-4 {
    padding-left: clamp(8px, 3vw, 16px);
    padding-right: clamp(8px, 3vw, 16px);
  }
}

/* ── CAROUSEL MOBILE — items fluides selon vw ────────────────── */
/* Sur mobile : 2 items visibles, taille = (100vw - padding) / 2 */
@media (max-width: 640px) {
  body .cat-carousel .cat-carousel__item {
    flex: 0 0 auto;
    /* clamp : min 140px, idéalement 46vw, max 240px → toujours 2 items */
    width: clamp(140px, 46vw, 240px);
  }
}

/* ── TABLETTES PAYSAGE (≥769px) — bottom-nav masquée ─────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ── TÉLÉPHONE PAYSAGE — billboard & header compacts ─────────── */
@media (max-width: 767px) and (orientation: landscape) {
  #layout-billboard { height: 56px !important; }
  #layout-billboard .pub-bg-fixed     { height: 56px !important; }
  #layout-billboard .pub-bg-fixed-img { height: 56px; object-fit: cover; }
  #layout-billboard .pub-bg-fixed-link{ height: 56px; display: block; }
  #layout-billboard .pub-empty,
  #layout-billboard .pub-bg-fixed-empty { min-height: 56px !important; height: 56px !important; }
  #layout-billboard + #layout-row { margin-top: 56px; }
  #layout-billboard + #layout-row #main-frame header { top: 56px; }
  header .flex.items-center.h-16 { height: 48px; }
  .bottom-nav { height: 50px; }
  .bottom-nav__item { height: 50px; }
}

/* ── Arial — page détail annonce ─────────────────────────────── */
.layout-main h1,
.layout-main h2,
.layout-main h3,
.layout-main .text-3xl,
.layout-main .text-2xl,
.layout-main .text-xl,
.layout-main .text-lg,
.layout-main .font-black,
.layout-main .font-bold,
.layout-main p,
.layout-main .whitespace-pre-wrap,
.layout-main .spec-label,
.layout-main .spec-value,
.layout-main .font-semibold {
  font-family: Arial, Helvetica, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOCATION SELECTOR — Sélecteur géographique interactif
   ═══════════════════════════════════════════════════════════════════════════ */

.loc-selector {
  position: relative;
  width: 100%;
}

/* ── Trigger (bouton principal) ────────────────────────────────────────── */

.loc-selector__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 14px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, border-radius .2s, box-shadow .2s, border-width .2s;
}
.loc-selector__trigger:hover {
  border-color: #9ca3af;
}
.loc-selector__placeholder {
  color: #6b7280;
}
.loc-selector__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: 600;
}
.loc-selector__arrow {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
}

/* ── Panel (dropdown — inline expand) ─────────────────────────────────── */

.loc-selector__panel {
  overflow: hidden;
  background: #fff;
  border: 2px solid #60a5fa;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin-top: -2px;
  min-width: 0;
  animation: panelExpand 300ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transform-origin: top center;
}

/* Trigger gets matching blue border + connected corners when open */
.loc-selector--open .loc-selector__trigger {
  border-color: #60a5fa;
  border-width: 2px;
  border-radius: 14px 14px 0 0;
  box-shadow: none;
}

@keyframes panelExpand {
  0%   { opacity: 0; transform: scaleY(0); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */

.loc-selector__breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  flex-wrap: wrap;
}
.loc-selector__bc-link {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
.loc-selector__bc-link:hover {
  text-decoration: underline;
}
.loc-selector__bc-sep {
  color: #6b7280;
  font-size: 11px;
}
.loc-selector__bc-current {
  color: #374151;
  font-weight: 700;
}
.loc-selector__back {
  margin-left: auto;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
}
.loc-selector__back:hover {
  background: #f3f4f6;
}

/* ── Content area ──────────────────────────────────────────────────────── */

.loc-selector__content {
  padding: 16px;
}
.loc-selector__loading {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-size: 13px;
}

/* ── Level 1 : Grille d'îles ──────────────────────────────────────────── */

.loc-selector__islands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.loc-selector__island-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  transition: all .15s;
  text-align: center;
}
.loc-selector__island-chip:hover {
  background: #ecfdf5;
  border-color: #1D9E75;
  color: #0F6E56;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(29,158,117,.15);
}
.loc-selector__island-emoji {
  font-size: 20px;
  line-height: 1;
}

/* ── Level 2 : Carte SVG ──────────────────────────────────────────────── */

.loc-selector__map-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
.loc-selector__svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}
.loc-selector__svg .commune-zone {
  transition: fill-opacity .15s, filter .15s;
}

/* ── Zoom overlay ─── */
.loc-selector__zoom-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}
.loc-selector__zoom-overlay > * {
  pointer-events: auto;
}
.loc-selector__zoom-back,
.loc-selector__zoom-toute {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.loc-selector__zoom-back {
  background: rgba(255,255,255,.92);
  color: #333;
}
.loc-selector__zoom-back:hover {
  background: #fff;
}
.loc-selector__zoom-toute {
  background: #3b82f6;
  color: #fff;
}
.loc-selector__zoom-toute:hover,
.loc-selector__zoom-toute.active {
  background: #2563eb;
}

/* ── Level 2C / 3 : Liste communes / quartiers ────────────────────────── */

.loc-selector__commune-list,
.loc-selector__quartier-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.loc-selector__commune-chip,
.loc-selector__quartier-chip {
  padding: 10px 8px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.loc-selector__commune-chip:hover,
.loc-selector__quartier-chip:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #2563eb;
}
.loc-selector__commune-chip--all,
.loc-selector__quartier-chip--all {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #2563eb;
  font-weight: 700;
  grid-column: 1 / -1;
}
.loc-selector__commune-chip.loc-selector__commune-chip--active,
.loc-selector__quartier-chip.loc-selector__quartier-chip--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* ── Tags (sélections) ────────────────────────────────────────────────── */

.loc-selector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}
.loc-selector__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
}
.loc-selector__tag-remove {
  background: none;
  border: none;
  color: #1e40af;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  font-weight: 700;
  opacity: .6;
  transition: opacity .15s;
}
.loc-selector__tag-remove:hover {
  opacity: 1;
}
.loc-selector__clear-all {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.loc-selector__clear-all:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ── Hidden inputs ─────────────────────────────────────────────────────── */

.loc-selector__hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOCATION SELECTOR — Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .loc-selector__content {
    max-height: 70vh;
    overflow-y: auto;
  }
  .loc-selector__islands {
    grid-template-columns: repeat(2, 1fr);
  }
  .loc-selector__commune-list,
  .loc-selector__quartier-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .loc-selector__svg {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .loc-selector__islands {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .loc-selector__island-chip {
    padding: 10px 4px;
    font-size: 11px;
  }
  .loc-selector__commune-list,
  .loc-selector__quartier-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE AUDIT FIXES — targeted mobile/tablet improvements
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Touch targets: ensure 44px minimum for all interactive elements on mobile ── */
@media (max-width: 767px) {
  /* Buttons in filter forms, action bars, etc. */
  button[type="submit"],
  a.btn,
  .dep-chip,
  .dep-radio-btn,
  .dep-cat-card {
    min-height: 44px;
  }
  /* Small action buttons (Voir, Modifier, Vendu, Supprimer) in mes_annonces */
  .bg-gray-50.border-t a,
  .bg-gray-50.border-t button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── Mes annonces: annonce card header wraps gracefully on narrow screens ── */
@media (max-width: 480px) {
  /* Title row: let the flex container wrap */
  .flex.items-center.gap-3.p-4.pb-3 {
    flex-wrap: wrap;
  }
}

/* ── Edit annonce form: ensure form padding is comfortable on mobile ── */
@media (max-width: 640px) {
  body .p-6.md\:p-8 {
    padding: 16px;
  }
}

/* ── Profil vendeur: distribution bars and identity section ── */
@media (max-width: 480px) {
  /* Rating distribution: full width stacked */
  body .w-full.sm\:w-64 {
    width: 100%;
  }
}

/* ── Pagination ── */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}
.pagination-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
  text-decoration: none;
}
.pagination-btn.pagination-active {
  background: #111;
  color: #fff;
  border-color: #111;
  cursor: default;
}
.pagination-disabled {
  color: #999;
  cursor: default;
  pointer-events: none;
  background: #fafafa;
  border-color: #eee;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  font-size: 14px;
  color: #666;
  user-select: none;
}

/* ── Liste filters: on very narrow screens, stack to 1 column ── */
@media (max-width: 400px) {
  body .grid.grid-cols-2.sm\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Fix potential overflow from fixed-width elements in flex containers ── */
@media (max-width: 767px) {
  /* Ensure breadcrumb doesn't overflow */
  nav.text-xs {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Truncate long titles in annonce detail */
  .layout-main h1 {
    word-break: break-word;
  }
  /* Ensure specs grid doesn't overflow */
  body .grid.grid-cols-2.sm\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Hover utility classes (CSP-safe, replace inline onmouseover/onmouseout) ── */
.btn-hover-dark {
  background: #111111;
  transition: background .15s;
}
.btn-hover-dark:hover {
  background: #333333;
}
.btn-hover-pro {
  background: #1a6cf1;
  transition: background .2s;
}
.btn-hover-pro:hover {
  background: #1554c0;
}
.btn-hover-light {
  background: transparent;
  transition: background .2s;
}
.btn-hover-light:hover {
  background: #f9fafb;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE AUDIT — Mobile (< 768px) & Tablet (768-1024px)
   Corrections ciblées pour l'affichage sur petits et moyens ecrans.
   NE TOUCHE PAS : bottom-nav, head base.html, desktop >= 1025px.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── GLOBAL — Prevent any horizontal overflow on all sub-desktop screens ── */
@media (max-width: 1024px) {
  /* Extra safety: table, pre, iframe, video can cause overflow */
  table { max-width: 100%; overflow-x: auto; display: block; }
  pre   { max-width: 100%; overflow-x: auto; word-break: break-all; }
  iframe, video { max-width: 100%; height: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE  (< 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── General spacing: reduce excessive vertical padding on content pages ── */
  .max-w-7xl.mx-auto.px-4.py-4 {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .max-w-4xl.mx-auto.px-4.py-8,
  .max-w-5xl.mx-auto.px-4 {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* ── Section headers: wrap text if long category names ── */
  .cat-section-header {
    padding: 8px 12px;
    gap: 8px;
  }
  body .cat-section-header h2 {
    font-size: 0.9rem;
    gap: 6px;
  }
  .cat-section-header .cat-icon {
    width: 28px;
    height: 28px;
  }

  /* ── Over-img bubbles: tighter padding on mobile ── */
  .over-img {
    padding: 6px 10px;
  }
  body .over-img h2 {
    font-size: 0.9rem;
  }

  /* ── Detail page: tighter spacing ── */
  .max-w-7xl.mx-auto.px-4.py-8 {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* ── Detail page title & price section: less padding ── */
  .bg-white.border.border-gray-200.rounded-2xl.p-6.shadow-sm {
    padding: 14px;
  }

  /* ── Detail price: prevent very long prices from overflowing ── */
  .text-3xl.font-black {
    word-break: break-word;
  }

  /* ── Detail action bar: boutons circulaires en ligne ── */
  .detail-actions-bar {
    flex-direction: row;
    gap: 8px;
  }
  body .detail-actions-bar > * {
    width: auto;
    min-height: unset;
    margin-left: 0;
    text-align: unset;
  }
  body .detail-actions-bar > .ml-auto {
    margin-left: auto;
  }
  .detail-actions-bar button,
  .detail-actions-bar a {
    min-height: unset;
    padding: 0;
    font-size: unset;
  }

  /* ── Detail vendeur section: compact layout ── */
  .layout-main .flex.items-start.gap-4 {
    gap: 12px;
  }
  .layout-main .w-16.h-16 {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  /* ── Detail "Contacter" button: ensure touch target ── */
  .layout-main .btn.btn-primary.w-full {
    min-height: 48px;
    font-size: 15px;
  }

  /* ── Specs grid: 2 cols on mobile (already done but ensure robustness) ── */
  .layout-main .grid.grid-cols-2.sm\:grid-cols-3 {
    gap: 6px;
  }
  .layout-main .grid.grid-cols-2.sm\:grid-cols-3 > div {
    padding: 8px 10px;
  }

  /* ── Similaires grid: 2 columns minimum on mobile ── */
  .layout-main .ads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── Liste annonces filters: tighter on mobile ── */
  .bg-white.border.border-gray-200.rounded-2xl.p-4.mb-6 {
    padding: 12px;
    margin-bottom: 12px;
  }

  /* ── Liste annonces "aucun resultat" card: less padding ── */
  .bg-white.border.border-gray-200.rounded-2xl.p-16 {
    padding: 32px 16px;
  }

  /* ── Mes annonces: compact action bar ── */
  .flex.items-center.gap-2.px-4.py-2\.5 {
    padding: 8px 12px;
    gap: 6px;
  }
  .flex.items-center.gap-2.px-4.py-2\.5 a,
  .flex.items-center.gap-2.px-4.py-2\.5 button {
    min-height: 36px;
    padding: 6px 10px;
  }

  /* ── Mes annonces: remontee bar wraps properly ── */
  .flex.items-center.gap-3.mb-4.bg-blue-50 {
    padding: 10px 12px;
    gap: 8px;
  }

  /* ── Mes annonces: title row ── */
  .flex.items-center.justify-between.mb-6 {
    gap: 8px;
  }

  /* ── Deposer page: category cards — ensure 2 per row minimum ── */
  .dep-cat-grid {
    gap: 6px;
  }
  .dep-cat-card {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }
  .dep-cat-card--rubrique {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }
  .dep-cat-icon {
    width: 56px;
    height: 56px;
  }
  .dep-cat-name {
    font-size: 10px;
    max-width: 100px;
  }

  /* ── Deposer: submit button ── */
  .dep-submit {
    min-height: 48px;
    font-size: 15px;
  }

  /* ── Rubrique grid: single column on mobile ── */
  .rubrique-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Rubrique section header: wrap properly ── */
  .rubrique-section-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }
  .rubrique-section-header h2 {
    font-size: 16px;
  }

  /* ── Article cards: reduce image height ── */
  .article-card__image {
    height: 120px;
  }
  .article-card__body {
    padding: 12px 14px 10px;
  }

  /* ── Profil vendeur: compact identity section ── */
  .max-w-5xl .px-6.pb-6.pt-3 {
    padding: 12px 14px 14px;
  }

  /* ── Toast above bottom-nav ── */
  .toast {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    right: 10px;
    left: 10px;
    max-width: none;
  }

  /* ── Cat section row: on mobile, hide label card and let carousel take full width ── */
  .cat-section-row {
    gap: 0;
  }

  /* ── Carousel wrapper: enough space for absolutely-positioned arrows ── */
  .cat-carousel-wrapper {
    padding: 0 4px;
  }

  /* ── Location selector: proper mobile sizing ── */
  .loc-selector__trigger {
    min-height: 44px;
    font-size: 14px;
  }

  /* ── Enregistrer button on detail page: full-width, touch-friendly ── */
  .enregistrer-btn {
    min-height: 44px;
    justify-content: center;
  }

  /* ── Share popup: full width on mobile ── */
  #share-btn {
    min-height: 44px;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET  (768px - 1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {

  /* ── General padding: slightly reduce from desktop ── */
  .max-w-7xl.mx-auto.px-4.py-8 {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .max-w-7xl.mx-auto.px-4.py-4 {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* ── Carousel items: 3 items on tablet ── */
  .cat-carousel__item {
    flex: 0 0 calc(33.333% - 8px);
  }

  /* ── Carousel buttons: visible and properly sized for tablet ── */
  .cat-carousel__btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .cat-carousel__btn--prev { left: -12px; }
  .cat-carousel__btn--next { right: -12px; }

  /* ── Ads grid: 3 columns on tablet ── */
  .ads-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* ── Detail mosaic: maintain 2-column grid ── */
  .detail-mosaic {
    height: 350px;
  }
  .detail-mosaic__main {
    height: 350px;
  }
  .detail-mosaic .detail-mosaic__main img { max-height: 350px; }
  .detail-mosaic__thumbs {
    height: 350px;
  }

  /* ── Detail action bar: horizontal sans wrap ── */
  .detail-actions-bar {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .detail-actions-bar > * {
    min-height: unset;
  }

  /* ── Filters: 2x2 grid on tablet portrait ── */
  .grid.grid-cols-2.sm\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Deposer category grid: 3 items per row ── */
  .dep-cat-grid {
    gap: 10px;
  }
  .dep-cat-card {
    min-width: calc(33.333% - 10px);
    flex: 1 1 calc(33.333% - 10px);
  }

  /* ── Rubrique grid: 2 columns ── */
  .rubrique-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ── Lightbox: slightly more compact ── */
  .lightbox-content {
    max-width: 90vw;
  }

  /* ── Location selector islands: 3 columns on tablet ── */
  .loc-selector__islands {
    grid-template-columns: repeat(3, 1fr);
  }
  .loc-selector__commune-list,
  .loc-selector__quartier-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Mes annonces: ensure action buttons stay horizontal ── */
  .flex.items-center.gap-2.px-4.py-2\.5 {
    flex-wrap: wrap;
  }

  /* ── Section header: proper sizing ── */
  .cat-section-header .cat-icon {
    width: 32px;
    height: 32px;
  }

  /* ── Profil vendeur: proper spacing ── */
  .max-w-5xl .px-6.pb-6.pt-3 {
    padding: 16px 20px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SMALL MOBILE (< 400px) — extra tight screens
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {

  /* ── Ads grid: 2 columns but very tight gap ── */
  .ads-grid {
    gap: 4px;
  }

  /* ── Annonce card body: very compact ── */
  .annonce-card__body {
    padding: 5px 6px 7px;
  }
  .annonce-card__title {
    font-size: 10px;
  }
  .annonce-card__price {
    font-size: 12px;
  }

  /* ── Carousel items: slightly narrower ── */
  body .cat-carousel .cat-carousel__item {
    width: clamp(130px, 44vw, 170px);
  }

  /* ── Header: extra compact ── */
  .cat-section-header {
    padding: 6px 10px;
  }
  .cat-section-header h2 {
    font-size: 0.82rem;
  }

  /* ── Deposer cat cards: 2 per row, smaller icons ── */
  .dep-cat-icon {
    width: 48px;
    height: 48px;
  }
  .dep-cat-name {
    font-size: 9px;
  }

  /* ── Detail page: even more compact ── */
  .bg-white.border.border-gray-200.rounded-2xl.p-6.shadow-sm {
    padding: 10px;
  }

  /* ── Pagination: compact on tiny screens ── */
  .pagination-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .pagination-ellipsis {
    min-width: 24px;
    min-height: 36px;
    font-size: 12px;
  }

  /* ── Profil vendeur metrics: stack vertically ── */
  .profil-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .profil-metrics .separator {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT — basic print-friendly reset
   ═══════════════════════════════════════════════════════════════ */
@media print {
  #layout-billboard,
  .bottom-nav,
  .layout-sidebar,
  #right-sidebar-pubs,
  #left-sidebar-pub,
  .cat-carousel__btn,
  .slide-menu,
  .slide-overlay,
  .toast {
    display: none !important;
  }
  body { padding-bottom: 0 !important; }
  #main-frame { overflow: visible !important; }
}

/* ============================================
   SKELETON LOADING — Placeholders images
   ============================================ */

.img-skeleton {
  position: relative;
  overflow: hidden;
  background: #e8e8e8;
}

.img-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease-in-out infinite;
}

@keyframes img-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.img-skeleton img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-skeleton.loaded img {
  opacity: 1;
}

.img-skeleton.loaded::before {
  display: none;
}

/* Placeholder erreur image */
.img-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 2rem;
}

/* ── Barre vendeur au-dessus de la photo ─────────────────── */
.annonce-card__seller-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  min-height: 26px;
  background: var(--color-surface, #fff);
  overflow: visible;
  text-decoration: none;
  color: inherit;
}

.annonce-card__seller-bar-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.annonce-card__seller-bar-initials {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.annonce-card__seller-bar-name {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  color: var(--color-text-secondary, #374151);
}

.annonce-card__seller-bar-note {
  font-size: 10px;
  color: #F59E0B;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 2px;
}

/* ── Étoiles avec remplissage partiel ─────────────────────── */
.annonce-card__stars {
  position: relative;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-left: auto; /* pousse vers la droite (équivalent ml-auto) */
  white-space: nowrap;
}
.annonce-card__stars-empty {
  color: #9ca3af;
}
.annonce-card__stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #F59E0B;
}

/* Sur très petits écrans (< 200px de card) : masquer les étoiles, garder avatar+nom */
@media (max-width: 360px) {
  .annonce-card__stars { display: none; }
  .annonce-card__seller-bar-name { font-size: 10px; }
}

/* ── Localisation standalone dans le body (sans barre vendeur) */
.annonce-card__body .annonce-card__loc {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bouton favori sur la photo des cards ─────────────────────── */
.annonce-card__fav-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  z-index: 2;
}
.annonce-card__fav-btn--saved {
  background: rgba(220, 38, 38, 0.75);
}
.annonce-card__fav-btn--saved .annonce-card__fav-icon {
  fill: #fff;
  stroke: #fff;
}
@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.35); }
  50%  { transform: scale(1.1); }
  75%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.annonce-card__fav-btn--beat {
  animation: heartbeat 0.45s ease;
}

/* ── Badge transaction (À VENDRE / À LOUER) ──────────────── */
.annonce-card__tx {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}
.annonce-card__tx--vente    { background: #059669; }   /* vert emerald-600 */
.annonce-card__tx--location { background: #2563eb; }   /* bleu blue-600 */

/* ── Badge Boost avec flamme animée ──────────────────────── */
.annonce-card__boost-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 5px;
  letter-spacing: .3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2px;
}

@keyframes flame {
  0%, 100% { transform: scaleY(1) rotate(-3deg); }
  25%       { transform: scaleY(1.15) rotate(2deg); }
  50%       { transform: scaleY(0.9) rotate(-2deg); }
  75%       { transform: scaleY(1.1) rotate(3deg); }
}

.annonce-card__boost-flame {
  display: inline-block;
  animation: flame 0.8s ease-in-out infinite;
  transform-origin: bottom center;
  font-size: 9px;
  line-height: 1;
}
