/* ═══════════════════════════════════════════════
   PIÈCES EXPRESS — RESPONSIVE FIXES
   - Suppression des espaces inutilisés
   - Catégories sur une seule ligne (scroll horizontal)
   - Marques : utilisation maximale de l'espace
   ═══════════════════════════════════════════════ */

/* ── Sections : padding réduit ── */
.section {
  padding: 2.5rem 0;
}
.section-header {
  margin-bottom: 1.5rem;
}

/* ── Container full-width responsive ── */
.container {
  max-width: 1600px;
  padding: 0 clamp(0.75rem, 2vw, 2rem);
}

/* ── Hero : plus compact ── */
.hero-slim { min-height: 220px; }
.hero-slim .hero-content { padding-top: 2rem; padding-bottom: 2rem; }
.hero-slim .hero-desc { font-size: 0.92rem; }

/* ═══ MARQUES PARTENAIRES : Grille pleine largeur ══ */
.brands-strip {
  display: grid !important;
  grid-template-columns: repeat(10, 1fr) !important;
  gap: 0;
  border-top: 1px solid #222;
  border-left: 1px solid #222;
  width: 100%;
}
.brand-strip-item {
  flex: unset;
  min-width: unset;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
}
.brand-strip-link {
  padding: 1rem 0.5rem;
  gap: 0.35rem;
}
.brand-strip-logo {
  width: 44px;
  height: 44px;
}
.brand-strip-name {
  font-size: 0.68rem;
}
.brand-strip-count {
  font-size: 0.6rem;
}

@media(max-width:1200px) {
  .brands-strip {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}
@media(max-width:768px) {
  .brands-strip {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .brand-strip-logo { width: 36px; height: 36px; }
}
@media(max-width:480px) {
  .brands-strip {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ═══ CATÉGORIES : UNE SEULE LIGNE (scroll horizontal) ══ */
.cat-grid-img {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.5rem;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #E11D2E #1a1a1a;
  -webkit-overflow-scrolling: touch;
  /* Snap pour mobile */
  scroll-snap-type: x mandatory;
}
.cat-grid-img::-webkit-scrollbar {
  height: 4px;
}
.cat-grid-img::-webkit-scrollbar-track {
  background: #111;
  border-radius: 2px;
}
.cat-grid-img::-webkit-scrollbar-thumb {
  background: #E11D2E;
  border-radius: 2px;
}

/* Chaque card de catégorie : taille fixe */
.cat-card-wrap {
  flex: 0 0 auto !important;
  width: calc((100% - 8 * 0.75rem) / 9) !important;
  min-width: 130px;
  max-width: 200px;
  scroll-snap-align: start;
}

/* Sur desktop large : toutes les catégories visibles sans scroll */
@media(min-width: 1400px) {
  .cat-card-wrap {
    width: calc((100% - 8 * 0.75rem) / 9) !important;
    max-width: none;
  }
}
@media(max-width:1200px) {
  .cat-card-wrap {
    width: 160px !important;
    min-width: 140px;
  }
}
@media(max-width:768px) {
  .cat-card-wrap {
    width: 140px !important;
    min-width: 120px;
  }
}
@media(max-width:480px) {
  .cat-card-wrap {
    width: 130px !important;
    min-width: 110px;
  }
}

/* Aspect ratio des cards catégories */
.cat-card-img {
  aspect-ratio: 0.85 / 1;
}

/* ═══ PRODUITS : grille plus dense ══ */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
}
@media(max-width:1400px) {
  .products-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media(max-width:1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media(max-width:768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media(max-width:400px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ═══ FOOTER : Trust bar responsive ══ */
@media(max-width:640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══ HEADER : search prend plus d'espace ══ */
.hdr-search {
  flex: 1;
  max-width: none;
  min-width: 0;
}

/* ═══ Bandeau filtre : sticky under header ══ */
#active-filter-bar {
  top: 72px;
}
@media(max-width:768px) {
  #active-filter-bar { top: 60px; }
}

/* ═══ Section dark : background unifié ══ */
.section-dark {
  background: var(--bg-secondary);
}

/* Ajout d'un indicateur de scroll horizontal sur mobile */
@media(max-width:768px) {
  .cat-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
  }
  .cat-scroll-hint svg {
    animation: scrollHint 1.5s ease-in-out infinite;
  }
  @keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
  }
}
@media(min-width:769px) {
  .cat-scroll-hint { display: none; }
}
