

/* ===== merged: acheter.css ===== */

/* ===== PAGE ACHETER – Mise en page professionnelle ===== */

:root {
  --acheter-white: #fff;
  --acheter-white-full: #ffffff;
  --acheter-cream: #F5F0E6;
  --acheter-cream-soft: #FAF6EE;
  --acheter-surface: #f8fafc;
  --acheter-surface-muted: #f1f5f9;
  --acheter-surface-soft: #f9fafb;
  --acheter-border: #e5e7eb;
  --acheter-text: #374151;
  --acheter-text-muted: #64748b;
  --acheter-text-soft: #94a3b8;
  --acheter-primary: #385e6b;
  --acheter-accent: #f2deb9;
  --acheter-shadow-xs: rgba(44, 62, 80, 0.04);
  --acheter-shadow-sm: rgba(44, 62, 80, 0.06);
  --acheter-shadow-md: rgba(44, 62, 80, 0.08);
  --acheter-primary-wash: rgba(56, 94, 107, 0.1);
  --acheter-gold-line: rgba(212, 175, 122, 0.18);
  --acheter-gold-wash: rgba(212, 175, 122, 0.08);
  --acheter-overlay: rgba(11, 13, 26, 0.55);
}

.acheter-page {
  padding-bottom: 2rem;
}

/* ----- Hero ----- */
.acheter-page .acheter-hero {
  background: linear-gradient(160deg, rgba(44, 62, 80, 0.96) 0%, rgba(56, 94, 107, 0.92) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--acheter-white);
}

.acheter-page .acheter-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.acheter-page .acheter-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--acheter-white);
}

.acheter-page .acheter-hero .acheter-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ----- Layout filtre + résultats ----- */
.acheter-page .acheter-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto 2rem;
  padding: 0 1.5rem;
  align-items: start;
}

/* ----- Colonne Filtres ----- */
.acheter-page .filters-section-acheter {
  background: var(--acheter-white);
  border: 1px solid var(--acheter-shadow-sm);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--acheter-shadow-xs), 0 8px 32px -8px var(--acheter-shadow-sm);
  padding: 1.35rem 1.1rem;
  position: sticky;
  top: 92px;
  height: fit-content;
}

.acheter-page .filters-title-acheter {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark, var(--primary-dark));
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent, var(--acheter-accent));
}

.acheter-page .filters-form-acheter .filter-group-acheter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.acheter-page .filters-form-acheter .filter-group-acheter:last-of-type {
  margin-bottom: 0;
}

.acheter-page .filter-group-acheter-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.875rem;
}

.acheter-page .filter-group-acheter-select,
.acheter-page .filter-group-acheter-input {
  border: 1px solid var(--acheter-border);
  background: var(--acheter-white);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acheter-page .filter-group-acheter-select:focus,
.acheter-page .filter-group-acheter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--acheter-primary-wash);
  outline: none;
}

.acheter-page .filter-group-acheter-select-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.acheter-page .filter-button-acheter {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: var(--primary, var(--acheter-primary));
  color: var(--acheter-white);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.acheter-page .filter-button-acheter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 94, 107, 0.18);
  background: var(--primary-dark, var(--primary-dark));
}

/* ----- Sous-menus Marque / Univers (même format que les autres filtres) ----- */
.filter-submenu-acheter-wrap {
  margin-bottom: 1rem;
}
.filter-submenu-acheter-wrap .filter-group-acheter-label {
  margin-bottom: 0.35rem;
}
.filter-submenu-acheter {
  position: relative;
}
/* Même style que .filter-group-acheter-select */
.filter-submenu-trigger.filter-submenu-trigger-select-style {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--acheter-border);
  border-radius: 8px;
  background: var(--acheter-white) !important;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--acheter-text) !important;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.filter-submenu-trigger.filter-submenu-trigger-select-style:hover {
  border-color: var(--primary, var(--acheter-primary));
  box-shadow: 0 2px 8px rgba(56, 94, 107, 0.06);
}
.filter-submenu-trigger.filter-submenu-trigger-select-style[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--acheter-primary-wash);
}
.filter-submenu-selected {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--acheter-text);
}
.filter-submenu-selected:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}
.filter-submenu-trigger-arrow {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #6b7280;
  transition: transform 0.2s;
}
.filter-submenu-trigger[aria-expanded="true"] .filter-submenu-trigger-arrow {
  transform: rotate(180deg);
}
.filter-submenu-panel {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--acheter-border);
  border-radius: 8px;
  background: var(--acheter-white);
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
}
.filter-submenu-panel[hidden] {
  display: none !important;
}
.filter-submenu-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--acheter-border);
  border-radius: 6px;
  font-size: 0.875rem;
  background: var(--acheter-surface-soft);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.filter-submenu-search:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--acheter-white);
}
.filter-submenu-list {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 6px;
}
.filter-submenu-item {
  padding: 8px 10px;
  font-size: 0.875rem;
  color: var(--acheter-text);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.filter-submenu-item:hover,
.filter-submenu-item:focus {
  background: rgba(56, 94, 107, 0.08);
  outline: none;
}
.filter-submenu-item.filter-submenu-item-clear {
  color: var(--acheter-text-muted);
  font-style: italic;
}
.filter-submenu-item.filter-submenu-item-empty {
  color: var(--acheter-text-soft);
  cursor: default;
  font-style: italic;
}

/* ----- Zone résultats ----- */
.acheter-page .acheter-results-wrap {
  min-width: 0;
}

.acheter-page .acheter-results-wrap .container-acheter {
  padding: 0;
}

.acheter-page .acheter-results-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark, var(--primary-dark));
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--acheter-shadow-md);
}

/* Bandeaux type leboncoin (page Acheter) */
.acheter-page .banner-ad-wrap,
.banner-ad-wrap {
  margin: 0 0 1rem;
  padding: 10px 16px;
  background: var(--acheter-surface-muted);
  border-radius: 12px;
  text-align: center;
}
.acheter-page .banner-ad-label,
.banner-ad-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.acheter-page .banner-ad-brand,
.banner-ad-brand { font-size: 1rem; font-weight: 700; color: var(--primary, var(--acheter-primary)); }
.acheter-page .banner-ad-tag,
.banner-ad-tag { font-size: 0.75rem; color: var(--acheter-text-muted); }

.acheter-page .banner-promo-wrap,
.banner-promo-wrap { margin: 0 0 1.5rem; }
.acheter-page .banner-promo,
.banner-promo {
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.4) 0%, rgba(251, 207, 232, 0.35) 100%);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.acheter-page .banner-promo-text,
.banner-promo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.acheter-page .banner-promo-question,
.banner-promo-question { font-size: 0.9375rem; color: #475569; margin: 0 0 1rem; }
.acheter-page .banner-promo-actions,
.banner-promo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.acheter-page .banner-promo-btn,
.banner-promo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--acheter-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.acheter-page .banner-promo-btn:hover,
.banner-promo-btn:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.acheter-page .banner-promo-btn-icon,
.banner-promo-btn-icon { font-size: 1.5rem; line-height: 1; }

.acheter-page .statues-grid-acheter,
.statues-grid-acheter.tsume-style {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  padding: 0.5rem 0;
}

.acheter-page .pagination-acheter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.acheter-page .pagination-acheter .page {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

/* Cartes annonces – enveloppe raffinée */
.acheter-page .listing-card-acheter-wrap,
.listing-card-acheter-wrap {
  position: relative;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.acheter-page .listing-card-acheter-wrap .listing-card-acheter,
.listing-card-acheter-wrap .listing-card-acheter {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.acheter-page .listing-card-acheter-wrap .listing-card-favori,
.listing-card-acheter-wrap .listing-card-favori {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: var(--lt-control-height, 44px);
  height: var(--lt-control-height, 44px);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.acheter-page .listing-card-acheter-wrap .listing-card-favori:hover,
.listing-card-acheter-wrap .listing-card-favori:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  background: var(--acheter-white);
}

.acheter-page .listing-card-acheter-wrap .listing-card-favori.is-favori,
.listing-card-acheter-wrap .listing-card-favori.is-favori {
  background: rgba(233, 30, 99, 0.12);
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.2);
}

.acheter-page .listing-card-acheter,
.listing-card-acheter {
  display: block;
  background: var(--acheter-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--acheter-shadow-sm);
  box-shadow: 0 2px 12px var(--acheter-shadow-xs), 0 8px 32px -8px var(--acheter-shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}

.acheter-page .listing-card-acheter:hover,
.listing-card-acheter:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(44, 62, 80, 0.14), 0 0 0 1px rgba(255, 111, 0, 0.08);
  border-color: rgba(255, 111, 0, 0.15);
}

.acheter-page .listing-card-acheter-image,
.listing-card-acheter-image {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--acheter-surface) 0%, var(--acheter-surface-muted) 100%);
  overflow: hidden;
  position: relative;
}

/* Badge À la une (annonces en avant) */
.acheter-page .listing-badge-featured,
.listing-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(94, 53, 177, 0.95);
  color: var(--acheter-white);
}

.acheter-page .listing-card-acheter-image::after,
.listing-card-acheter-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.acheter-page .listing-card-acheter-image img,
.listing-card-acheter-image img {
  width: 100%;
  height: 100%;
  /* contain : ne jamais rogner une figurine (fond neutre sur le conteneur) */
  object-fit: contain;
  transition: transform 0.4s ease;
}

.acheter-page .listing-card-acheter:hover .listing-card-acheter-image img,
.listing-card-acheter:hover .listing-card-acheter-image img {
  transform: scale(1.04);
}

.acheter-page .listing-card-acheter-placeholder,
.listing-card-acheter-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acheter-text-soft);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.acheter-page .listing-card-acheter-content,
.listing-card-acheter-content {
  padding: 1rem 1.25rem 1.25rem;
  background: linear-gradient(to bottom, var(--acheter-white-full) 0%, #fefefe 100%);
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Format type leboncoin : prix en tête, puis titre, puis meta (catégorie · lieu) – hauteur uniforme */
.acheter-page .listing-card-acheter-price,
.listing-card-acheter-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary, var(--acheter-primary));
  margin: 0 0 0.4rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.acheter-page .listing-card-acheter-title,
.listing-card-acheter-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 2.7em;
}

.acheter-page .listing-card-acheter-meta,
.listing-card-acheter-meta {
  font-size: 0.8125rem;
  color: var(--acheter-text-muted);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.listing-card-acheter-footer {
  padding: 0.5rem 1.25rem 1rem;
  background: var(--acheter-white);
  border: 1px solid var(--acheter-shadow-sm);
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin-top: -1px;
}

.listing-card-acheter-actions {
  margin: 0;
  padding: 0;
}

.listing-card-acheter-direct {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary, var(--acheter-primary));
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--primary, var(--acheter-primary));
  transition: background 0.2s, color 0.2s;
}

.listing-card-acheter-direct:hover {
  background: var(--primary, var(--acheter-primary));
  color: var(--acheter-white);
}

.acheter-page .acheter-loading,
.acheter-page .acheter-empty,
.acheter-page .acheter-error,
.acheter-loading,
.acheter-empty,
.acheter-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--acheter-text-muted);
  font-size: 1rem;
  background: linear-gradient(145deg, var(--acheter-surface) 0%, var(--acheter-surface-muted) 100%);
  border-radius: 16px;
  border: 1px dashed var(--border-light);
}

/* ----- Badge et chips filtres appliqués ----- */
.acheter-filters-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acheter-white);
  background: var(--primary);
  border-radius: 999px;
}
.acheter-filters-badge.is-visible {
  display: inline-flex;
}

.acheter-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
  min-height: 0;
}

.acheter-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.875rem;
  background: var(--light-gray);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--primary-dark);
}

.acheter-filter-chip-label {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acheter-filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.acheter-filter-chip-remove:hover {
  background: var(--border-light);
  color: var(--primary-dark);
}

.acheter-filter-chip-remove:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----- Toggle filtres (mobile) ----- */
.acheter-filters-toggle-btn {
  display: none;
}

.filters-section-acheter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.filters-section-acheter-header .filters-title-acheter {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filters-section-acheter-header {
  display: none;
}

.acheter-filters-close-btn {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--acheter-border);
  border-radius: 8px;
  background: var(--acheter-surface-soft);
  color: var(--acheter-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.acheter-filters-close-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .acheter-page .acheter-layout {
    grid-template-columns: 1fr;
    position: relative;
  }

  .acheter-page .filters-section-acheter {
    position: static;
  }

  .acheter-filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: var(--acheter-white);
    border: 1px solid var(--acheter-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--acheter-shadow-sm);
    color: var(--primary-dark, var(--primary-dark));
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  .acheter-filters-toggle-btn:hover {
    background: var(--acheter-surface-soft);
    border-color: var(--accent, var(--acheter-accent));
    color: var(--accent, var(--acheter-accent));
  }

  .acheter-filters-toggle-btn[aria-expanded="true"] .acheter-filters-toggle-icon {
    transform: rotate(-180deg);
  }

  .acheter-filters-toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .filters-section-acheter-header {
    display: flex;
  }

  /* ===== Filtres mobile : BOTTOM SHEET (panneau coulissant depuis le bas)
     — plus d'accordéon qui pousse le contenu. Voile + verrou scroll gérés
     par .filters-open / body.acheter-filters-locked (script inline page). */
  .acheter-page .filters-section-acheter,
  .acheter-layout-flex .filters-section-acheter {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--lt-z-overlay, 500);
    margin: 0;
    max-height: 82dvh; /* dvh : suit la barre d'adresse mobile */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    background: var(--lt-color-surface, var(--acheter-white, #ffffff));
    box-shadow: 0 -18px 48px rgba(8, 12, 24, 0.35);
    padding-bottom: calc(var(--lt-space-lg, 1.5rem) + env(safe-area-inset-bottom, 0px));
    transform: translateY(103%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
  }

  .acheter-page .acheter-layout.filters-open .filters-section-acheter,
  .acheter-layout-flex.filters-open .filters-section-acheter {
    transform: translateY(0);
    visibility: visible;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Poignée de préhension */
  .acheter-layout-flex .filters-section-acheter::before,
  .acheter-page .filters-section-acheter::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--lt-color-text-muted, #64748b) 45%, transparent);
  }

  /* Voile derrière la sheet */
  .acheter-layout-flex.filters-open::before,
  .acheter-page .acheter-layout.filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: calc(var(--lt-z-overlay, 500) - 1);
    background: rgba(4, 8, 18, 0.55);
  }

  /* Page figée quand la sheet est ouverte */
  body.acheter-filters-locked {
    overflow: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .acheter-page .filters-section-acheter,
    .acheter-layout-flex .filters-section-acheter {
      transition: none;
    }
  }

  .acheter-filters-close-btn {
    display: inline-flex;
    align-items: center;
  }
}

/* ----- Cartes compactes sur mobile (MOBILE-FIRST : base = mobile,
   les colonnes viennent de la grille canonique auto-fill — plus aucun
   repeat(N) en dur ; plus de crop max-height : aspect-ratio + contain). ----- */
@media (max-width: 768px) {
  .acheter-page .listing-card-acheter-image,
  .listing-card-acheter-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .acheter-page .listing-card-acheter-image img,
  .listing-card-acheter-image img {
    border-radius: 10px;
  }
  .acheter-page .listing-card-acheter,
  .listing-card-acheter {
    border-radius: 10px;
  }
  /* Zone texte plus compacte — tailles via tokens (≥ lisible, pas de px en dur) */
  .acheter-page .listing-card-acheter-content,
  .listing-card-acheter-content {
    padding: var(--lt-space-sm, 0.5rem) var(--lt-space-sm, 0.5rem) calc(var(--lt-space-sm, 0.5rem) + 2px);
    min-height: 4.25rem;
  }
  .acheter-page .listing-card-acheter-price,
  .listing-card-acheter-price {
    font-size: var(--lt-text-md, 1rem);
    margin: 0 0 2px;
  }
  .acheter-page .listing-card-acheter-title,
  .listing-card-acheter-title {
    font-size: var(--lt-text-sm, 0.875rem);
    margin: 0 0 2px;
    min-height: 2.4em;
  }
  .acheter-page .listing-card-acheter-meta,
  .listing-card-acheter-meta {
    font-size: var(--lt-text-xs, 0.75rem);
  }
}


/* ===== merged: acheter-edition.css ===== */

/* =============================================================================
   LOGUETOWN — Page « Acheter » Édition Collector
   Override premium cohérent avec /css/loguetown-edition.css.
   Scopé sous .acheter-page-edition pour ne pas polluer le reste.
   ========================================================================== */

.acheter-page-edition {
  --ae-navy: #0B0D1A;
  --ae-navy-soft: #16213E;
  --ae-champagne: #D4AF7A;
  --ae-champagne-deep: #A8855A;
  --ae-coral: #E94560;
  --ae-paper: #F5F0E6;
  --ae-cream: #FAF6EE;
  --ae-line: rgba(11, 13, 26, 0.08);
  --ae-line-strong: rgba(11, 13, 26, 0.16);
  --ae-shadow-sm: 0 1px 2px rgba(11, 13, 26, 0.06);
  --ae-shadow-md: 0 8px 24px -8px rgba(11, 13, 26, 0.16);
  --ae-shadow-lg: 0 24px 48px -16px rgba(11, 13, 26, 0.22);
  --ae-radius-sm: 10px;
  --ae-radius-md: 14px;
  --ae-radius-lg: 22px;
  --ae-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ae-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --ae-sans: 'Inter', system-ui, -apple-system, sans-serif;

  background: linear-gradient(180deg, var(--acheter-cream-soft) 0%, var(--acheter-white-full) 280px, var(--acheter-white-full) 100%);
  font-family: var(--ae-sans);
  color: var(--ae-navy);
}

/* ============================================================
   1. HERO ÉDITORIAL
   ============================================================ */
.acheter-page-edition .ae-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 36px;
  background:
    radial-gradient(circle at 18% 20%, var(--acheter-gold-line), transparent 55%),
    radial-gradient(circle at 82% 80%, rgba(233, 69, 96, 0.06), transparent 60%),
    linear-gradient(180deg, var(--acheter-cream-soft) 0%, var(--acheter-white-full) 100%);
  border-bottom: 1px solid var(--ae-line);
}
.acheter-page-edition .ae-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.acheter-page-edition .ae-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ae-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ae-champagne-deep);
  margin: 0 0 14px;
}
.acheter-page-edition .ae-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ae-champagne-deep);
}
.acheter-page-edition .ae-title {
  font-family: var(--ae-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ae-navy);
  font-weight: 600;
}
.acheter-page-edition .ae-title em {
  font-style: italic;
  color: var(--ae-champagne-deep);
  font-weight: 400;
}
.acheter-page-edition .ae-lead {
  font-size: 1.05rem;
  color: rgba(11, 13, 26, 0.68);
  max-width: 620px;
  line-height: 1.55;
  margin: 0;
}

/* Bandeau stats / actions sous le hero */
.acheter-page-edition .ae-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 16px 20px;
  background: var(--acheter-white);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius-lg);
  box-shadow: var(--ae-shadow-sm);
}
.acheter-page-edition .ae-results-count {
  font-family: var(--ae-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ae-champagne-deep);
  margin-right: auto;
}
.acheter-page-edition .ae-results-count strong {
  color: var(--ae-navy);
  font-weight: 700;
}
.acheter-page-edition .ae-sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.acheter-page-edition .ae-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ae-navy);
  background: transparent;
  border: 1px solid var(--ae-line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}
.acheter-page-edition .ae-sort-pill:hover {
  border-color: var(--ae-champagne-deep);
  background: var(--acheter-gold-wash);
}
.acheter-page-edition .ae-sort-pill[aria-pressed="true"],
.acheter-page-edition .ae-sort-pill.is-active {
  background: var(--ae-navy);
  color: var(--acheter-white);
  border-color: var(--ae-navy);
}

/* ============================================================
   2. LAYOUT
   ============================================================ */
.acheter-page-edition .acheter-layout-flex {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ============================================================
   3. SIDEBAR FILTRES
   ============================================================ */
.acheter-page-edition .filters-section-acheter {
  position: sticky;
  top: 96px;
  background: var(--acheter-white);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius-lg);
  padding: 22px 20px;
  box-shadow: var(--ae-shadow-sm);
}
.acheter-page-edition .filters-section-acheter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ae-line);
}
.acheter-page-edition .filters-title-acheter {
  font-family: var(--ae-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--ae-navy);
  border: none;
  padding: 0;
}
.acheter-page-edition .filter-group-acheter {
  margin-bottom: 18px;
}
.acheter-page-edition .filter-group-acheter-label {
  font-family: var(--ae-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ae-champagne-deep);
  margin-bottom: 6px;
  display: block;
}
.acheter-page-edition .filter-group-acheter-input,
.acheter-page-edition .filter-group-acheter-select,
.acheter-page-edition .filter-submenu-trigger {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--ae-sans);
  color: var(--ae-navy);
  background: var(--acheter-white);
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-sm);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.acheter-page-edition .filter-group-acheter-input:focus,
.acheter-page-edition .filter-group-acheter-select:focus,
.acheter-page-edition .filter-submenu-trigger:focus {
  border-color: var(--ae-champagne-deep);
  box-shadow: 0 0 0 3px var(--acheter-gold-line);
}
.acheter-page-edition .filter-group-acheter-select {
  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 fill='%23A8855A' d='M6 8 0 1.5 1.4 0 6 4.6 10.6 0 12 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.acheter-page-edition .filter-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.acheter-page-edition .filter-submenu-trigger-arrow {
  color: var(--ae-champagne-deep);
  font-size: 9px;
}
.acheter-page-edition .filter-submenu-selected:empty::before {
  content: attr(data-placeholder);
  color: rgba(11, 13, 26, 0.4);
}
.acheter-page-edition .filter-submenu-panel {
  position: absolute;
  z-index: 30;
  margin-top: 6px;
  width: 100%;
  background: var(--acheter-white);
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-md);
  box-shadow: var(--ae-shadow-md);
  padding: 10px;
}
.acheter-page-edition .filter-submenu-search {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-sm);
  margin-bottom: 8px;
  outline: none;
}
.acheter-page-edition .filter-submenu-list {
  max-height: 240px;
  overflow-y: auto;
}
.acheter-page-edition .filter-submenu-list::-webkit-scrollbar { width: 6px; }
.acheter-page-edition .filter-submenu-list::-webkit-scrollbar-thumb { background: var(--ae-line-strong); border-radius: 3px; }
.acheter-page-edition .filter-submenu-list > * {
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}
.acheter-page-edition .filter-submenu-list > *:hover,
.acheter-page-edition .filter-submenu-list > *.is-active {
  background: rgba(212, 175, 122, 0.14);
  color: var(--ae-navy);
}

/* Bouton filtrer */
.acheter-page-edition .filter-button-acheter {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  font-family: var(--ae-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acheter-white);
  background: var(--ae-navy);
  border: none;
  border-radius: var(--ae-radius-sm);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.acheter-page-edition .filter-button-acheter:hover {
  background: var(--ae-navy-soft);
  transform: translateY(-1px);
}

/* Toggle / close mobile */
.acheter-page-edition .acheter-filters-toggle-btn,
.acheter-page-edition .acheter-filters-close-btn {
  display: none;
}

/* ============================================================
   4. RÉSULTATS — TITRES & CHIPS FILTRES ACTIFS
   ============================================================ */
.acheter-page-edition .bibliotheque-section-acheter {
  min-width: 0;
}
.acheter-page-edition .container-acheter {
  max-width: none;
  padding: 0;
}
.acheter-page-edition .acheter-page-title,
.acheter-page-edition .acheter-page-intro,
.acheter-page-edition .results-title {
  display: none; /* Le hero remplace */
}
.acheter-page-edition .acheter-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.acheter-page-edition .acheter-filters-chips:empty { display: none; }
.acheter-page-edition .acheter-filters-chips > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--acheter-white);
  border: 1px solid var(--ae-line-strong);
  border-radius: 999px;
  color: var(--ae-navy);
}
.acheter-page-edition .acheter-filters-chips button {
  background: transparent;
  border: none;
  color: var(--ae-coral);
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
}

/* Bandeau promo : édition épurée (remplace les emojis) */
.acheter-page-edition .banner-ad-wrap { display: none; }
.acheter-page-edition .banner-promo-wrap {
  margin: 0 0 22px;
}
.acheter-page-edition .banner-promo {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--ae-navy) 0%, var(--ae-navy-soft) 100%);
  color: var(--acheter-white);
  border-radius: var(--ae-radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ae-shadow-md);
}
.acheter-page-edition .banner-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, var(--acheter-gold-line), transparent 50%);
  pointer-events: none;
}
.acheter-page-edition .banner-promo-text {
  font-family: var(--ae-serif);
  font-size: 1.25rem;
  margin: 0;
  font-weight: 500;
  flex: 1 1 280px;
  position: relative;
  color: var(--acheter-white);
  text-shadow: 0 2px 10px var(--acheter-overlay);
}
.acheter-page-edition .banner-promo-question { display: none; }
.acheter-page-edition .banner-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.acheter-page-edition .banner-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--ae-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-navy);
  background: var(--ae-champagne);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}
.acheter-page-edition .banner-promo-btn:hover {
  transform: translateY(-1px);
  background: #E5C091;
}
.acheter-page-edition .banner-promo-btn-icon {
  font-size: 16px;
  filter: grayscale(0.2);
}

/* ============================================================
   5. GRILLE & CARTES ANNONCE
   ============================================================ */
/* GRILLE CANONIQUE (toutes peaux) — jamais de nombre de colonnes en dur.
   min(160px, 46%) garantit 2 colonnes dès 320px sans scroll horizontal,
   puis le nombre de colonnes suit la largeur disponible (auto-fill). */
.acheter-page-edition .statues-grid-acheter,
.acheter-page .statues-grid-acheter,
.statues-grid-acheter.tsume-style {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 46%), 1fr));
  gap: clamp(8px, 1.8vw, 18px);
}

@media (min-width: 1024px) {
  .acheter-page-edition .statues-grid-acheter,
  .acheter-page .statues-grid-acheter,
  .statues-grid-acheter.tsume-style {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.acheter-page-edition .listing-card-acheter-wrap {
  position: relative;
  background: var(--acheter-white);
  border-radius: var(--ae-radius-md);
  overflow: hidden;
  border: 1px solid var(--ae-line);
  box-shadow: var(--ae-shadow-sm);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 220ms ease,
              border-color 220ms ease;
}
.acheter-page-edition .listing-card-acheter-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--ae-shadow-lg);
  border-color: rgba(212, 175, 122, 0.45);
}
.acheter-page-edition .listing-card-acheter {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.acheter-page-edition .listing-card-acheter-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--acheter-cream) 0%, #EFE7D5 100%);
  overflow: hidden;
}
.acheter-page-edition .listing-card-acheter-image img {
  width: 100%;
  height: 100%;
  /* contain : ne jamais rogner une figurine */
  object-fit: contain;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acheter-page-edition .listing-card-acheter-wrap:hover .listing-card-acheter-image img {
  transform: scale(1.05);
}
.acheter-page-edition .listing-card-acheter-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ae-champagne-deep);
  font-family: var(--ae-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Badge "À la une" en or, top-left */
.acheter-page-edition .listing-badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  font-family: var(--ae-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-navy);
  background: var(--ae-champagne);
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(212, 175, 122, 0.4);
}

/* Favori top-right glassmorph */
.acheter-page-edition .listing-card-favori {
  position: absolute;
  top: 10px;
  right: 10px;
  width: var(--lt-control-height, 44px);
  height: var(--lt-control-height, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(11, 13, 26, 0.12);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}
.acheter-page-edition .listing-card-favori:hover {
  transform: scale(1.08);
  background: var(--acheter-white);
}
.acheter-page-edition .listing-card-favori .fav-icon {
  font-size: 16px;
  line-height: 1;
}
.acheter-page-edition .listing-card-favori.is-favori {
  background: var(--ae-coral);
}
.acheter-page-edition .listing-card-favori.is-favori .fav-icon {
  filter: brightness(0) invert(1);
}

/* Contenu */
.acheter-page-edition .listing-card-acheter-content {
  padding: 14px 16px 16px;
}
.acheter-page-edition .listing-card-acheter-price {
  font-family: var(--ae-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ae-champagne-deep);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.acheter-page-edition .listing-card-acheter-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ae-navy);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.acheter-page-edition .listing-card-acheter-meta {
  font-family: var(--ae-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acheter-overlay);
  margin: 0;
}

/* Footer carte (Acheter direct) */
.acheter-page-edition .listing-card-acheter-footer {
  padding: 0 16px 16px;
}
.acheter-page-edition .listing-card-acheter-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--ae-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acheter-white);
  background: var(--ae-navy);
  border-radius: var(--ae-radius-sm);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.acheter-page-edition .listing-card-acheter-direct:hover {
  background: var(--ae-navy-soft);
  transform: translateY(-1px);
}

/* ============================================================
   6. SKELETON LOADING
   ============================================================ */
.acheter-page-edition .listing-card-skeleton {
  background: var(--acheter-white);
  border-radius: var(--ae-radius-md);
  overflow: hidden;
  border: 1px solid var(--ae-line);
}
.acheter-page-edition .listing-card-skeleton__image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(110deg, var(--acheter-cream) 8%, var(--acheter-cream-soft) 18%, var(--acheter-cream) 33%);
  background-size: 200% 100%;
  animation: ae-shimmer 1.4s linear infinite;
}
.acheter-page-edition .listing-card-skeleton__content {
  padding: 14px 16px;
}
.acheter-page-edition .listing-card-skeleton__line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(110deg, var(--acheter-cream) 8%, var(--acheter-cream-soft) 18%, var(--acheter-cream) 33%);
  background-size: 200% 100%;
  animation: ae-shimmer 1.4s linear infinite;
}
.acheter-page-edition .listing-card-skeleton__line:nth-child(1) { width: 35%; }
.acheter-page-edition .listing-card-skeleton__line:nth-child(2) { width: 90%; }
.acheter-page-edition .listing-card-skeleton__line:nth-child(3) { width: 60%; }
@keyframes ae-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   7. EMPTY STATE
   ============================================================ */
.acheter-page-edition .empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--acheter-white);
  border: 1px dashed var(--ae-line-strong);
  border-radius: var(--ae-radius-lg);
}
.acheter-page-edition .empty-state-icon {
  font-size: 38px;
  margin-bottom: 14px;
  opacity: 0.55;
}
.acheter-page-edition .empty-state-title {
  font-family: var(--ae-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ae-navy);
}
.acheter-page-edition .empty-state-text {
  color: rgba(11, 13, 26, 0.6);
  margin: 0 auto 22px;
  max-width: 460px;
  line-height: 1.55;
}
.acheter-page-edition .empty-state-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.acheter-page-edition .empty-state-actions a {
  padding: 12px 22px;
  font-family: var(--ae-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: var(--ae-radius-sm);
  text-decoration: none;
  transition: transform 180ms ease;
}
.acheter-page-edition .empty-state-actions .primary {
  background: var(--ae-navy);
  color: var(--acheter-white);
}
.acheter-page-edition .empty-state-actions .secondary {
  background: transparent;
  color: var(--ae-navy);
  border: 1px solid var(--ae-line-strong);
}
.acheter-page-edition .empty-state-actions a:hover {
  transform: translateY(-1px);
}

/* ============================================================
   8. PAGINATION
   ============================================================ */
.acheter-page-edition .pagination-acheter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  padding: 24px 0;
}
.acheter-page-edition .pagination-acheter a,
.acheter-page-edition .pagination-acheter button,
.acheter-page-edition .pagination-acheter span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-family: var(--ae-mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-sm);
  background: var(--acheter-white);
  color: var(--ae-navy);
  text-decoration: none;
  transition: all 180ms ease;
}
.acheter-page-edition .pagination-acheter a:hover {
  border-color: var(--ae-champagne-deep);
  background: var(--acheter-gold-wash);
}
.acheter-page-edition .pagination-acheter .active,
.acheter-page-edition .pagination-acheter [aria-current="page"] {
  background: var(--ae-navy);
  color: var(--acheter-white);
  border-color: var(--ae-navy);
}

/* ============================================================
   9. RESPONSIVE — TABLETTE
   ============================================================ */
@media (max-width: 1024px) {
  .acheter-page-edition .acheter-layout-flex {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-top: 20px;
  }
  /* BOTTOM SHEET (était : drawer latéral translateX) — aligné sur le
     comportement canonique mobile, ancré en bas, hauteur 82dvh max. */
  .acheter-page-edition .filters-section-acheter {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 82dvh;
    height: auto;
    margin: 0;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: var(--lt-z-overlay, 500);
    padding-bottom: calc(var(--lt-space-lg, 1.5rem) + env(safe-area-inset-bottom, 0px));
    transform: translateY(103%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
    box-shadow: var(--ae-shadow-lg);
  }
  .acheter-page-edition .acheter-layout-flex.filters-open .filters-section-acheter {
    transform: translateY(0);
    visibility: visible;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .acheter-page-edition .acheter-layout-flex.filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 26, 0.5);
    backdrop-filter: blur(2px);
    z-index: calc(var(--lt-z-overlay, 500) - 1);
    animation: ae-fade-in 200ms ease;
  }
  @keyframes ae-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .acheter-page-edition .acheter-filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 11px 18px;
    background: var(--ae-navy);
    color: var(--acheter-white);
    border: none;
    border-radius: 999px;
    font-family: var(--ae-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--ae-shadow-md);
  }
  .acheter-page-edition .acheter-filters-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: var(--ae-navy);
  }
  .acheter-page-edition .filter-button-acheter {
    position: sticky;
    bottom: 0;
    margin-top: 18px;
  }
}

/* ============================================================
   10. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .acheter-page-edition .ae-hero {
    padding: 36px 18px 24px;
  }
  .acheter-page-edition .ae-toolbar {
    margin: 18px 16px 0;
    padding: 12px 14px;
    border-radius: var(--ae-radius-md);
  }
  .acheter-page-edition .ae-results-count {
    flex: 1 1 100%;
    margin-bottom: 4px;
  }
  .acheter-page-edition .ae-sort {
    flex: 1 1 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .acheter-page-edition .ae-sort::-webkit-scrollbar { display: none; }
  .acheter-page-edition .ae-sort-pill {
    flex: 0 0 auto;
  }
  .acheter-page-edition .statues-grid-acheter {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .acheter-page-edition .listing-card-acheter-content {
    padding: 12px 12px 14px;
  }
  .acheter-page-edition .listing-card-acheter-price {
    font-size: 1.05rem;
  }
  .acheter-page-edition .listing-card-acheter-title {
    font-size: 0.85rem;
    min-height: 2.4em;
  }
  .acheter-page-edition .listing-card-favori {
    width: 34px;
    height: 34px;
  }
  .acheter-page-edition .banner-promo {
    padding: 18px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .acheter-page-edition .banner-promo-text {
    font-size: 1.05rem;
  }
  .acheter-page-edition .banner-promo-actions {
    width: 100%;
  }
  .acheter-page-edition .banner-promo-btn {
    flex: 1 1 50%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .acheter-page-edition .statues-grid-acheter {
    grid-template-columns: 1fr;
  }
  .acheter-page-edition .ae-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 360px) {
  .acheter-page-edition .statues-grid-acheter,
  .acheter-page-edition .listings-grid-acheter {
    gap: 8px;
  }
  .acheter-page-edition .ae-title {
    font-size: 1.65rem;
  }
  .acheter-page-edition .acheter-filters-toggle-btn {
    width: 100%;
    min-height: 44px;
  }
}

/* ============================================================
   11. ACCESSIBILITÉ — focus visible
   ============================================================ */
.acheter-page-edition a:focus-visible,
.acheter-page-edition button:focus-visible,
.acheter-page-edition input:focus-visible,
.acheter-page-edition select:focus-visible {
  outline: 2px solid var(--ae-champagne-deep);
  outline-offset: 2px;
}

/* Reveal au scroll : fade-in subtil sur les cartes */
@media (prefers-reduced-motion: no-preference) {
  .acheter-page-edition .listing-card-acheter-wrap {
    animation: ae-card-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  @keyframes ae-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
