/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
#manufacturer #main ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: stretch;
}

/**
 * Harmonisation du style de la page Éditeurs (suppliers) 
 * avec celui de la page Auteurs (manufacturers)
 * PrestaShop 8.2.3 - Thème Classic
 * 
 * À copier dans : Apparence > Thème et Logo > Personnalisation avancée
 */

/* Appliquer le même style aux pages suppliers et manufacturers */
#suppliers ul,
#supplier ul,
.page-suppliers ul,
body[id*="supplier"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* S'assurer que les items de la liste ont le même style */
#suppliers li.brand,
#supplier li.brand,
.page-suppliers li.brand,
body[id*="supplier"] li.brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

#suppliers li.brand:hover,
#supplier li.brand:hover,
.page-suppliers li.brand:hover,
body[id*="supplier"] li.brand:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image */
#suppliers .brand-img,
#supplier .brand-img,
.page-suppliers .brand-img,
body[id*="supplier"] .brand-img {
  text-align: center;
  margin-bottom: 1rem;
}

#suppliers .brand-img a,
#supplier .brand-img a,
.page-suppliers .brand-img a,
body[id*="supplier"] .brand-img a {
  display: inline-block;
}

#suppliers .brand-img img,
#supplier .brand-img img,
.page-suppliers .brand-img img,
body[id*="supplier"] .brand-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* Informations */
#suppliers .brand-infos,
#supplier .brand-infos,
.page-suppliers .brand-infos,
body[id*="supplier"] .brand-infos {
  flex: 1;
  margin-bottom: 1rem;
}

#suppliers .brand-infos p,
#supplier .brand-infos p,
.page-suppliers .brand-infos p,
body[id*="supplier"] .brand-infos p {
  margin-bottom: 0.5rem;
}

#suppliers .brand-infos p:first-child,
#supplier .brand-infos p:first-child,
.page-suppliers .brand-infos p:first-child,
body[id*="supplier"] .brand-infos p:first-child {
  font-weight: 600;
  font-size: 1.125rem;
}

#suppliers .brand-infos p:first-child a,
#supplier .brand-infos p:first-child a,
.page-suppliers .brand-infos p:first-child a,
body[id*="supplier"] .brand-infos p:first-child a {
  color: #232323;
  text-decoration: none;
}

#suppliers .brand-infos p:first-child a:hover,
#supplier .brand-infos p:first-child a:hover,
.page-suppliers .brand-infos p:first-child a:hover,
body[id*="supplier"] .brand-infos p:first-child a:hover {
  color: #000;
  text-decoration: underline;
}

#suppliers .brand-infos p:not(:first-child),
#supplier .brand-infos p:not(:first-child),
.page-suppliers .brand-infos p:not(:first-child),
body[id*="supplier"] .brand-infos p:not(:first-child) {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Liens produits */
#suppliers .brand-products,
#supplier .brand-products,
.page-suppliers .brand-products,
body[id*="supplier"] .brand-products {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#suppliers .brand-products a,
#supplier .brand-products a,
.page-suppliers .brand-products a,
body[id*="supplier"] .brand-products a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f6f6f6;
  color: #232323;
  text-decoration: none;
  text-align: center;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

#suppliers .brand-products a:hover,
#supplier .brand-products a:hover,
.page-suppliers .brand-products a:hover,
body[id*="supplier"] .brand-products a:hover {
  background: #e5e5e5;
}

#suppliers .brand-products a:last-child,
#supplier .brand-products a:last-child,
.page-suppliers .brand-products a:last-child,
body[id*="supplier"] .brand-products a:last-child {
  background: #232323;
  color: #fff;
  font-weight: 500;
}

#suppliers .brand-products a:last-child:hover,
#supplier .brand-products a:last-child:hover,
.page-suppliers .brand-products a:last-child:hover,
body[id*="supplier"] .brand-products a:last-child:hover {
  background: #000;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
  #suppliers li.brand,
  #supplier li.brand,
  .page-suppliers li.brand,
  body[id*="supplier"] li.brand {
    flex-direction: row;
    align-items: flex-start;
  }
  
  #suppliers .brand-img,
  #supplier .brand-img,
  .page-suppliers .brand-img,
  body[id*="supplier"] .brand-img {
    flex: 0 0 150px;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  
  #suppliers .brand-infos,
  #supplier .brand-infos,
  .page-suppliers .brand-infos,
  body[id*="supplier"] .brand-infos {
    flex: 1;
  }
  
  #suppliers .brand-products,
  #supplier .brand-products,
  .page-suppliers .brand-products,
  body[id*="supplier"] .brand-products {
    flex: 0 0 auto;
    min-width: 150px;
    align-self: center;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  #suppliers li.brand,
  #supplier li.brand,
  .page-suppliers li.brand,
  body[id*="supplier"] li.brand {
    padding: 1rem;
  }
  
  #suppliers .brand-img,
  #supplier .brand-img,
  .page-suppliers .brand-img,
  body[id*="supplier"] .brand-img {
    margin-bottom: 1rem;
  }
  
  #suppliers .brand-products a,
  #supplier .brand-products a,
  .page-suppliers .brand-products a,
  body[id*="supplier"] .brand-products a {
    font-size: 0.813rem;
    padding: 0.4rem 0.8rem;
  }

  /* Variante 1 - Plus générique */
.page-brand #manufacturer-short_description,
.page-manufacturer #manufacturer-short_description {
    display: none !important;
}

/* Variante 2 - Ciblage par section */
section#main #manufacturer-short_description {
    display: none !important;
}

/* Variante 3 - Le plus simple si rien ne marche */
div#manufacturer-short_description {
    display: none !important;
}
}