/* ==========================================================================
   La Maison du Bébé · corrections de pages du thème at_movic (toute l'année)
   Chargé par le module « Saisons LMDB » sur les pages concernées.
   --------------------------------------------------------------------------
   1. Page Marques (/fabricants) : grille de cartes (logo, nom, description courte,
      nombre de produits, bouton) au lieu de lignes écrasées.
   Couleurs : variables --lm-* déjà définies par la boutique pour body#manufacturer.
   ========================================================================== */

/* 1 · Page Marques -------------------------------------------------------- */
body#manufacturer #main > h1 {
  margin: 8px 0 6px;
  text-align: left;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--lm-ink, #14323D);
}
body#manufacturer #main > h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--lm-pink, #E8537A);
}
body#manufacturer .list-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
body#manufacturer .list-brands > li.brand {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--lm-line, #E6EEF0);
  border-radius: 20px;
  background: #FFFFFF;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body#manufacturer .list-brands > li.brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(20, 50, 61, 0.35);
}
/* les colonnes Bootstrap du thème (col-xl-3, col-xl-4…) deviennent des blocs empilés */
body#manufacturer .list-brands > li.brand > div {
  float: none;
  flex: none;
  width: auto;
  max-width: none;
  padding-inline: 18px;
  text-align: center;
}
body#manufacturer .list-brands .brand-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid var(--lm-line, #E6EEF0);
  background: #FFFFFF;
}
body#manufacturer .list-brands .brand-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
body#manufacturer .list-brands .brand-img img {
  width: auto;
  max-width: 100%;
  height: 134px;
  object-fit: contain;
}
body#manufacturer .list-brands .brand-infos {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding-block: 16px 4px;
}
body#manufacturer .list-brands .brand-infos p { margin: 0; text-align: center; }
body#manufacturer .list-brands .brand-infos p:first-child a {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--lm-ink, #14323D);
}
/* description : 3 lignes, la suite est sur la page de la marque */
body#manufacturer .list-brands .brand-infos p:not(:first-child) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lm-mute, #4F6871);
}
body#manufacturer .list-brands .brand-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-block: 12px 16px;
}
body#manufacturer .list-brands .brand-products > a:first-child {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lm-teal, #007F97);
}
body#manufacturer .list-brands .brand-products .btn {
  display: block;
  float: none;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 575px) {
  body#manufacturer .list-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body#manufacturer .list-brands > li.brand > div { padding-inline: 12px; }
  body#manufacturer .list-brands .brand-img { height: 110px; }
  body#manufacturer .list-brands .brand-img img { height: 96px; }
  body#manufacturer .list-brands .brand-infos p:not(:first-child) { display: none; }
  body#manufacturer .list-brands .brand-products .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  body#manufacturer .list-brands > li.brand { transition: none; }
  body#manufacturer .list-brands > li.brand:hover { transform: none; }
}
