/* ============================================================
   CATEGORIES.CSS — TedPlas · Page catégories
   Fidèle au design system index.css
   ============================================================ */

@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 — identiques à index.css ──────────────────── */
: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;

  /* Locaux */
  --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', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   FIL D'ARIANE
═══════════════════════════════════════════════════════════ */
.breadcrumb-container {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
}

.breadcrumb-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-speed);
  font-weight: 500;
}

.breadcrumb-item:hover { color: var(--primary-orange); }

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 700;
  pointer-events: none;
}

.breadcrumb-separator {
  color: var(--border-color);
  font-size: 10px;
  margin: 0 2px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
═══════════════════════════════════════════════════════════ */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px;
}

.content-wrapper {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR FILTRES — card pattern index.css
═══════════════════════════════════════════════════════════ */
.filters-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
  position: sticky;
  top: calc(var(--header-height) + 14px);
  overflow: hidden;
  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-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light-gray);
}

.filters-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.1px;
}

.filters-header h3 i { color: var(--primary-orange); }

.btn-reset-filters {
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  transition: all var(--transition-speed);
  font-family: inherit;
}

.btn-reset-filters:hover {
  background: var(--orange-pale);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.filters-content { padding: 6px 0; }

/* Section filtre */
.filter-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child { border-bottom: none; }

.filter-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-title i { color: var(--primary-orange); font-size: 11px; }

/* Liste des filtres */
.filter-list { display: flex; flex-direction: column; gap: 2px; }

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed);
}

.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;
}

/* Catégories avec icône */
.category-item { justify-content: flex-start; }
.category-icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }
.category-name { font-size: 13px; }

/* Checkbox / Radio */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-speed);
}

.filter-checkbox:hover { background: var(--orange-pale); color: var(--primary-orange); }

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
  accent-color: var(--primary-orange);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FILTRE PRIX — VERSION PRO (style grande marketplace)
═══════════════════════════════════════════════════════════ */
.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Slider track */
.price-slider-track {
  position: relative;
  height: 4px;
  background: var(--border-color);
  border-radius: 99px;
  margin: 6px 4px 4px;
}

.price-slider-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
  border-radius: 99px;
  pointer-events: none;
  transition: left var(--transition-speed), width var(--transition-speed);
}

.price-slider-track input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
}

.price-slider-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2.5px solid var(--primary-orange);
  box-shadow: 0 2px 8px rgba(246, 107, 14, 0.3);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s, box-shadow 0.15s;
}

.price-slider-track input[type="range"]::-webkit-slider-thumb:hover,
.price-slider-track input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(246, 107, 14, 0.45);
}

.price-slider-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2.5px solid var(--primary-orange);
  box-shadow: 0 2px 8px rgba(246, 107, 14, 0.3);
  cursor: pointer;
  pointer-events: all;
}

/* Affichage des valeurs min/max */
.price-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.price-field-input {
  display: flex;
  align-items: center;
  background: var(--bg-light-gray);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 7px 9px;
  gap: 4px;
  transition: all var(--transition-speed);
}

.price-field-input:focus-within {
  border-color: var(--primary-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.price-field-input span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.price-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: inherit;
  width: 100%;
  min-width: 0;
}

.price-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.price-separator {
  color: var(--text-light);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 18px;
}

/* Bouton appliquer */
.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;
  font-family: inherit;
  transition: all var(--transition-speed);
  box-shadow: 0 3px 10px rgba(246, 107, 14, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .1px;
}

.btn-apply-price:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(246, 107, 14, 0.38);
  background: linear-gradient(135deg, var(--primary-orange-hover) 0%, var(--primary-orange) 100%);
}

.btn-apply-price:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(246, 107, 14, 0.2);
}

/* Filtre select */
.filter-select {
  width: 100%;
  padding: 9px 32px 9px 11px;
  font-size: 13px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light-gray);
  cursor: pointer;
  transition: all var(--transition-speed);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.filter-select:focus {
  border-color: var(--primary-orange);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

/* ═══════════════════════════════════════════════════════════
   ZONE ANNONCES
═══════════════════════════════════════════════════════════ */
.ads-main { flex: 1; min-width: 0; }

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.2px;
}

.results-count { font-size: 13px; color: var(--text-secondary); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all var(--transition-speed);
  box-shadow: 0 1px 4px var(--shadow-light);
}

.sort-select:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.btn-filters-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-speed);
  box-shadow: 0 1px 4px var(--shadow-light);
}

.btn-filters-mobile:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: var(--orange-pale);
}

/* ═══════════════════════════════════════════════════════════
   GRILLE DES ANNONCES — card pattern identique à index.css
═══════════════════════════════════════════════════════════ */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.ad-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.ad-card:hover {
  box-shadow: 0 8px 28px var(--shadow-medium);
  transform: translateY(-3px);
  border-color: rgba(246, 107, 14, 0.12);
}

.ad-card.featured { border-color: var(--primary-orange); }

/* Badge vedette */
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Image */
.ad-image-link { display: block; text-decoration: none; }

.ad-image {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--bg-light-gray);
  position: relative;
}

.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;
  color: var(--text-light);
  font-size: 40px;
}

/* Contenu carte */
.ad-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.ad-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.ad-title a:hover { color: var(--primary-orange); }

.ad-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: -.2px;
}

.ad-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.ad-meta span { display: flex; align-items: center; gap: 3px; }
.ad-meta i { font-size: 11px; }

/* Footer carte */
.ad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
}

.seller-info i { color: var(--border-color); font-size: 14px; flex-shrink: 0; }

.seller-info span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85px;
}

/* Badge vérifié — aligné avec le reste du projet */
.verified-badge-inline {
  color: var(--verified-color);
  font-size: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  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% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 9px;
  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% + 1px);
  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; }

.rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Bouton favori — même style que search.css */
.btn-favorite {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-speed) cubic-bezier(.68, -.55, .265, 1.55);
}

.btn-favorite:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: var(--orange-pale);
  transform: scale(1.12);
}

.btn-favorite.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.35);
}

.btn-favorite.active:hover { transform: scale(1.12); }

/* ═══════════════════════════════════════════════════════════
   ÉTAT VIDE
═══════════════════════════════════════════════════════════ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
}

.no-results i {
  font-size: 54px;
  color: var(--text-light);
  margin-bottom: 18px;
  display: block;
}

.no-results h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-reset {
  padding: 10px 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;
  font-family: inherit;
  transition: all var(--transition-speed);
  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 — identique à search.css
═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed);
  font-family: inherit;
  cursor: pointer;
}

.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; }

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  transition: all var(--transition-speed);
  font-family: inherit;
  cursor: pointer;
}

.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 4px; font-size: 14px; 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; }

/* ═══════════════════════════════════════════════════════════
   ALERTES
═══════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown .3s ease;
}

.alert i { flex-shrink: 0; }

.alert-error {
  background: rgba(255, 59, 48, 0.08);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-success {
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
  border-left: 4px solid var(--success);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ads-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-height: 60px; }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 999;
    border-radius: 0;
    overflow-y: auto;
    max-height: 100vh;
    transition: left var(--transition-speed);
    border: none;
    box-shadow: none;
  }

  .filters-sidebar.open {
    left: 0;
    box-shadow: 4px 0 20px var(--shadow-strong);
  }

  .content-wrapper { flex-direction: column; }
  .ads-main { width: 100%; }
  .btn-filters-mobile { display: inline-flex; }

  /* Prix responsive mobile */
  .price-display { gap: 6px; }
  .price-field-input { padding: 8px 10px; }
  .price-input { font-size: 14px; }
}

@media (max-width: 600px) {
  .main-container { padding: 14px 12px; }
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ad-image { height: 138px; }
  .ad-content { padding: 10px 10px 12px; gap: 6px; }
  .ad-title { font-size: 12px; }
  .ad-price { font-size: 14px; }
  .page-title { font-size: 17px; }
  .pagination-btn { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .ads-grid { grid-template-columns: 1fr; }
  .ad-image { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Print */
@media print {
  .filters-sidebar, .toolbar, .pagination,
  .filters-overlay, .btn-favorite { display: none; }
}