/* ============================================================
   SEARCH.CSS — TedPlas · Recherche & résultats
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700;900&display=swap');

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --primary-orange:       #F66B0E;
  --primary-orange-hover: #E55A00;
  --primary-orange-light: #FF7A1F;
  --text-dark:            #212121;
  --text-secondary:       #757575;
  --text-light:           #9E9E9E;
  --bg-cream:             #FFF8F1;
  --bg-white:             #FFFFFF;
  --bg-light-gray:        #F5F5F5;
  --bg-dark:              #1A1A1A;
  --border-color:         #E0E0E0;
  --shadow-light:         rgba(0, 0, 0, 0.05);
  --shadow-medium:        rgba(0, 0, 0, 0.1);
  --shadow-strong:        rgba(0, 0, 0, 0.15);
  --verified-color:       #1DA1F2;
  --success:              #4CAF50;
  --danger:               #FF3B30;
  --warning:              #FF9800;
  --header-height:        70px;
  --transition-speed:     0.3s;
  --card-radius:          16px;
  --orange-pale:          rgba(246, 107, 14, 0.08);
  --orange-glow:          rgba(246, 107, 14, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   BARRE DE RECHERCHE PRINCIPALE
═══════════════════════════════════════════════════════════ */
.search-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  box-shadow: 0 2px 12px var(--shadow-light);
}

.search-header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-search-form { max-width: 900px; margin: 0 auto; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  border: 2px solid var(--primary-orange);
  border-radius: var(--card-radius);
  padding: 4px;
  box-shadow: 0 4px 14px var(--orange-glow);
  transition: all var(--transition-speed);
}

.search-box:focus-within {
  box-shadow: 0 6px 20px rgba(246, 107, 14, 0.25);
}

.search-box-icon {
  padding-left: 14px;
  font-size: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-box-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
  min-width: 0;
}

.search-box-input::placeholder { color: var(--text-light); }

.btn-clear-search {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-speed);
  flex-shrink: 0;
}

.btn-clear-search:hover {
  background: var(--bg-light-gray);
  color: var(--text-dark);
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(246, 107, 14, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(246, 107, 14, 0.4);
}

.btn-search i { font-size: 15px; }

.popular-searches {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.popular-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.popular-tag {
  padding: 5px 14px;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.popular-tag:hover {
  background: var(--orange-pale);
  border-color: rgba(246, 107, 14, 0.3);
  color: var(--primary-orange);
}

/* ═══════════════════════════════════════════════════════════
   FIL D'ARIANE
═══════════════════════════════════════════════════════════ */
.breadcrumb-container {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 11px 0;
}

.breadcrumb-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.breadcrumb-item:hover { color: var(--primary-orange); }
.breadcrumb-item.active { color: var(--text-dark); font-weight: 600; }
.breadcrumb-separator { color: var(--border-color); font-size: 11px; }

/* ═══════════════════════════════════════════════════════════
   CONTAINER PRINCIPAL
═══════════════════════════════════════════════════════════ */
.main-container {
  max-width: 1400px;
  margin: 22px auto;
  padding: 0 24px;
}

/* ✅ CORRIGÉ : min-width: 0 sur le wrapper et ses enfants */
.content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.content-wrapper > * {
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR FILTRES
═══════════════════════════════════════════════════════════ */

/* ✅ CORRIGÉ : overflow-x hidden + min-width 0 */
.filters-sidebar {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  padding: 18px;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  width: 100%;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.filters-sidebar:hover {
  box-shadow: 0 6px 20px var(--shadow-medium);
  border-color: rgba(246, 107, 14, 0.08);
}

.filters-sidebar::-webkit-scrollbar { width: 4px; }
.filters-sidebar::-webkit-scrollbar-track { background: transparent; }
.filters-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.filters-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
}

.filters-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.1px;
  white-space: nowrap;
}

.filters-header h3 i { color: var(--primary-orange); }

.btn-reset-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-reset-filters:hover {
  background: var(--orange-pale);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.filters-content {
  display: flex;
  flex-direction: column;
}

.filter-section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.filter-title i { color: var(--primary-orange); font-size: 12px; }

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-speed);
  cursor: pointer;
  overflow: hidden;           /* ✅ AJOUT */
  text-overflow: ellipsis;    /* ✅ AJOUT */
}

.filter-item:hover { background: var(--orange-pale); color: var(--primary-orange); }
.filter-item.active {
  background: var(--orange-pale);
  color: var(--primary-orange);
  font-weight: 700;
}

.category-icon { font-size: 18px; flex-shrink: 0; }

.category-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;        /* ✅ AJOUT : évite le débordement du texte */
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dark);
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--primary-orange);
  flex-shrink: 0;
}

.filter-checkbox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;        /* ✅ AJOUT */
}

.filter-checkbox:hover span { color: var(--primary-orange); }

/* Prix */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-input {
  flex: 1;
  min-width: 0;               /* ✅ AJOUT */
  padding: 9px 11px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light-gray);
  transition: all var(--transition-speed);
  outline: none;
}

.price-input:focus {
  border-color: var(--primary-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.price-separator {
  color: var(--text-light);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.btn-apply-price {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(246, 107, 14, 0.25);
}

.btn-apply-price:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(246, 107, 14, 0.35);
}

.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light-gray);
  cursor: pointer;
  transition: all var(--transition-speed);
  outline: none;
}

.filter-select:focus {
  border-color: var(--primary-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

/* ═══════════════════════════════════════════════════════════
   BADGE VENDEUR VÉRIFIÉ
═══════════════════════════════════════════════════════════ */
.verified-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--verified-color);
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  cursor: default;
}

.verified-badge-inline i {
  filter: drop-shadow(0 1px 2px rgba(29, 161, 242, 0.3));
  transition: transform var(--transition-speed);
}

.verified-badge-inline:hover i { transform: scale(1.2); }

.verified-badge-inline::after {
  content: "Vendeur vérifié";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: 10;
}

.verified-badge-inline::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-dark);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: 10;
}

.verified-badge-inline:hover::after,
.verified-badge-inline:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   ZONE RÉSULTATS
═══════════════════════════════════════════════════════════ */
.results-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;               /* ✅ AJOUT */
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg-white);
  padding: 18px 20px;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
}

.toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;               /* ✅ AJOUT */
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-term { color: var(--primary-orange); }
.results-count { font-size: 13px; color: var(--text-secondary); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-filters-mobile {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(246, 107, 14, 0.25);
  white-space: nowrap;
}

.btn-filters-mobile:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(246, 107, 14, 0.35);
}

.sort-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light-gray);
  cursor: pointer;
  transition: all var(--transition-speed);
  outline: none;
}

.sort-select:focus {
  border-color: var(--primary-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

/* ═══════════════════════════════════════════════════════════
   GRILLE DES ANNONCES
═══════════════════════════════════════════════════════════ */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  min-width: 0;               /* ✅ AJOUT */
}

.ad-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
  transition: all var(--transition-speed);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;               /* ✅ AJOUT */
}

.ad-card:hover {
  box-shadow: 0 8px 28px var(--shadow-medium);
  transform: translateY(-4px);
  border-color: rgba(246, 107, 14, 0.12);
}

.ad-card.featured { border-color: var(--primary-orange); }

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--bg-dark);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.ad-image-link { display: block; text-decoration: none; }

.ad-image {
  width: 100%;
  height: 200px;
  background: var(--bg-light-gray);
  position: relative;
  overflow: hidden;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.ad-card:hover .ad-image img { transform: scale(1.05); }

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-gray);
  color: var(--text-light);
  font-size: 44px;
}

.ad-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;               /* ✅ AJOUT */
}

.ad-category { margin-bottom: 2px; }

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--orange-pale);
  border-radius: 99px;
  font-size: 11px;
  color: var(--primary-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
}

.ad-title a {
  color: var(--text-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-speed);
}

.ad-title a:hover { color: var(--primary-orange); }

.ad-title mark {
  background: rgba(246, 107, 14, 0.12);
  color: var(--primary-orange-hover);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.ad-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  letter-spacing: -.2px;
}

.negotiable-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border-radius: 99px;
  border: 1px solid rgba(76, 175, 80, 0.25);
  white-space: nowrap;
}

.ad-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
  min-width: 0;
}

.ad-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-meta i { font-size: 11px; flex-shrink: 0; }

.ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  gap: 8px;
  min-width: 0;
}

/* ── Seller info ─────────────────────────────────────────── */
.seller-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.seller-info > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Avatar vendeur */
.seller-avatar-search,
.seller-avatar-cat {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
}

.seller-avatar-search img,
.seller-avatar-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--warning);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* Bouton favori */
.btn-favorite {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(.68,-.55,.265,1.55);
  flex-shrink: 0;
}

.btn-favorite:hover {
  transform: scale(1.12);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: var(--orange-pale);
}

.btn-favorite.active {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.btn-favorite.active:hover { transform: scale(1.12); }
.btn-favorite.loading { pointer-events: none; opacity: .6; }

/* ═══════════════════════════════════════════════════════════
   AUCUN RÉSULTAT
═══════════════════════════════════════════════════════════ */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
}

.no-results i { font-size: 60px; color: var(--text-light); margin-bottom: 18px; }
.no-results h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.no-results p  { font-size: 15px; color: var(--text-secondary); margin-bottom: 22px; }

.suggestions { margin: 20px 0; }

.suggestions-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

.suggestion-link {
  display: inline-block;
  padding: 7px 14px;
  margin: 4px;
  background: var(--bg-light-gray);
  border: 1.5px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.suggestion-link:hover {
  background: var(--orange-pale);
  border-color: rgba(246, 107, 14, 0.3);
  color: var(--primary-orange);
}

.btn-reset {
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(246, 107, 14, 0.3);
}

.btn-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(246, 107, 14, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.pagination-btn:hover {
  background: var(--orange-pale);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.pagination-numbers { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.pagination-number {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.pagination-number:hover {
  background: var(--orange-pale);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(246, 107, 14, 0.3);
}

.pagination-dots { color: var(--text-light); padding: 0 6px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   OVERLAY MOBILE
═══════════════════════════════════════════════════════════ */
.filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.55);
  backdrop-filter: blur(2px);
  z-index: 998;
}

.filters-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25%       { transform: scale(1.3); }
  50%       { transform: scale(1.1); }
  75%       { transform: scale(1.2); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 240px 1fr; }
  .ads-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .search-header { padding: 14px 0; }
  .search-header-wrapper { padding: 0 14px; }
  .search-box { padding: 2px; border-radius: 12px; }
  .search-box-input { padding: 11px 8px; font-size: 14px; }
  .btn-search { padding: 10px 14px; }
  .btn-search span { display: none; }
  .popular-searches { margin-top: 10px; gap: 7px; }

  .main-container { margin: 14px auto; padding: 0 14px; }
  .content-wrapper { grid-template-columns: 1fr; }

  /* ✅ CORRIGÉ : sidebar mobile */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 999;
    border-radius: 0;
    max-height: 100vh;
    transition: left var(--transition-speed) ease;
    border: none;
    box-shadow: none;
    padding-top: 24px;
  }

  .filters-sidebar.active {
    left: 0;
    box-shadow: 4px 0 24px var(--shadow-strong);
  }

  .btn-filters-mobile { display: flex; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .toolbar-left { align-items: flex-start; }
  .page-title { font-size: 18px; }
  .toolbar-right { justify-content: space-between; }

  .ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
  }

  .ad-image { height: 155px; }
  .ad-content { padding: 12px; gap: 7px; }
  .ad-title { font-size: 13px; }
  .ad-price { font-size: 15px; }

  .pagination { gap: 5px; padding: 14px; }
  .pagination-btn { padding: 7px 11px; font-size: 12px; }
  .pagination-number { min-width: 34px; height: 34px; font-size: 12px; }
}

@media (max-width: 480px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
  .pagination-numbers { display: none; }
}

@media print {
  .search-header, .filters-sidebar, .toolbar,
  .pagination, .filters-overlay { display: none; }
}