/**
 * Hummingbird Child — styles personnalisés
 *
 * Les CSS du thème parent sont chargés en premier.
 * Ajoutez ici uniquement vos surcharges.
 */

:root {
  --lbm-menu-bg: #003b56;
  --lbm-menu-color: #fff;
  --lbm-menu-hover-bg: rgba(255, 255, 255, 0.14);
  --lbm-menu-current-bg: rgba(255, 255, 255, 0.22);

  --lbm-h1-size: clamp(2rem, 1.35rem + 2.2vw, 2.75rem);
  --lbm-h2-size: clamp(1.625rem, 1.25rem + 1.15vw, 2.125rem);
  --lbm-h3-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.625rem);
  --lbm-h4-size: 1.25rem;
  --lbm-h5-size: 1.125rem;
  --lbm-h6-size: 1rem;
}

/* Hiérarchie visuelle H1 > H2 > H3 > H4 > H5 > H6 */
h1:not(.header-bottom__h1),
.h1 {
  font-size: var(--lbm-h1-size);
}

h2,
.h2,
.section-title {
  font-size: var(--lbm-h2-size);
}

h3,
.h3 {
  font-size: var(--lbm-h3-size);
}

h4,
.h4 {
  font-size: var(--lbm-h4-size);
}

h5,
.h5 {
  font-size: var(--lbm-h5-size);
}

h6,
.h6 {
  font-size: var(--lbm-h6-size);
}

.page-title-section,
.product__name {
  font-size: var(--lbm-h1-size);
}

.left-block__title,
.right-block__title {
  font-size: 1.25rem;
}

@media (min-width: 1200px) {
  .header-bottom {
    overflow-x: clip;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Barre dédiée sous le logo / la recherche */
  .ps-mainmenu.ps-mainmenu--desktop {
    position: relative;
    z-index: 2;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 20;
    background-color: var(--lbm-menu-bg);
  }

  .ps-mainmenu.ps-mainmenu--desktop::before {
    content: "";
    position: absolute;
    inset: 0 auto;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background-color: var(--lbm-menu-bg);
    z-index: -1;
    pointer-events: none;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__desktop {
    width: 100%;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree {
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-item-wrapper {
    border-radius: 0;
    transition: background-color 0.2s ease;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle {
    color: var(--lbm-menu-color);
    padding-block: 0.85rem;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link {
    padding-inline: 0.85rem 0.65rem;
    white-space: nowrap;
    font-weight: 500;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle {
    padding-inline: 0.15rem 0.75rem;
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:hover,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:active,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle:hover,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link {
    color: var(--lbm-menu-color);
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-item-wrapper:hover,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:has(.ps-mainmenu__tree-dropdown-toggle[aria-expanded="true"]) .ps-mainmenu__tree-item-wrapper {
    background-color: var(--lbm-menu-hover-bg);
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-item-wrapper {
    background-color: var(--lbm-menu-current-bg);
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:focus,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle:focus {
    color: var(--lbm-menu-color);
    outline-color: var(--lbm-menu-color);
  }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .submenu__right-items .menu-item__group--child .menu-item__group-main-item,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .submenu__right-items .menu-item__group--nochild .menu-item__group-main-item {
    font-size: 1rem;
  }
}

/* Slider accueil : largeur du container, pas full viewport */
.ps-imageslider .carousel {
  overflow: hidden;
  border-radius: var(--bs-border-radius);
}

/* Titres des modules sur la page d'accueil */
.page-content--home .section-title {
  text-align: center;
}

/* Footer : 5 colonnes alignées (3 listes de liens + compte + coordonnées) */
@media (min-width: 992px) {
  .footer__main-top.row {
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .footer__main-top.row > .footer-block {
    flex: 1 1 0;
    width: 20%;
    max-width: 20%;
    margin-bottom: 0;
  }

  .footer__main-top .footer-block__title {
    min-height: 1.5em;
    margin-bottom: 1.5rem;
  }
}

#footer .ps-contactinfo__infos {
  display: block;
  align-items: unset;
}

.footer__main {
  background: var(--lbm-menu-bg);
}

.product__reference {
  margin: 0 0 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

/* Descriptions produit / catégorie / CMS : H2/H3/H4 à la taille des paragraphes */
.product__description-short h2,
.product__description-short h3,
.product__description-short h4,
.product__description-short .h2,
.product__description-short .h3,
.product__description-short .h4,
.product__description h2,
.product__description h3,
.product__description h4,
.product__description .h2,
.product__description .h3,
.product__description .h4,
.category__description h2,
.category__description h3,
.category__description h4,
.category__description .h2,
.category__description .h3,
.category__description .h4,
.category__additional-description h2,
.category__additional-description h3,
.category__additional-description h4,
.category__additional-description .h2,
.category__additional-description .h3,
.category__additional-description .h4,
.page-content--cms h2,
.page-content--cms h3,
.page-content--cms h4,
.page-content--cms .h2,
.page-content--cms .h3,
.page-content--cms .h4 {
  font-size: inherit;
}

.details__item--reference {
  display: none;
}

/* Vignettes des sous-catégories */
.subcategory__list--with-images {
  gap: 1rem;
}

.subcategory__link--with-image {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.5rem;
  text-align: center;
}

.subcategory__thumbnail,
.subcategory__list--with-images .subcategory__thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.subcategory__name {
  display: block;
  font-weight: 500;
}
