/*
 * HOREL 02/11/2026 : styles du nouveau menu burger (templates/components/global/horel-burger.tpl).
 * Fichier propre à HOREL. La fenêtre #horelBurgerMenu (ouverture, largeur 480 px max, glissement depuis la gauche)
 * reste gérée par le thème ; ce fichier ne s'occupe que de son contenu.
 * Charte : Montserrat, noir #121212 sur blanc, traits de 1 px, pas d'ombre, marges de 24 px.
 * Si ce fichier est modifié : augmenter le numéro « hb_v » dans horel-burger.tpl, puis purger Varnish.
 */

#horelBurgerMenu .hb {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  color: #121212;
  font-family: Montserrat, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
#horelBurgerMenu .hb *,
#horelBurgerMenu .hb *::before,
#horelBurgerMenu .hb *::after {
  box-sizing: border-box;
}
#horelBurgerMenu .hb a,
#horelBurgerMenu .hb a:hover,
#horelBurgerMenu .hb a:focus {
  color: #121212;
  text-decoration: none;
}
#horelBurgerMenu .hb button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
#horelBurgerMenu .hb a:focus-visible,
#horelBurgerMenu .hb button:focus-visible {
  outline: 1px solid #121212;
  outline-offset: -1px;
}
#horelBurgerMenu .hb .hb-ico,
#horelBurgerMenu .hb .hb-ico * {
  fill: none;
  stroke: #121212;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Barre du haut : fermer + logo, trait de 1 px */
#horelBurgerMenu .hb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #121212;
}
#horelBurgerMenu .hb .hb-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
}
#horelBurgerMenu .hb-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
}
#horelBurgerMenu .hb-logo img {
  display: block;
  height: 15px;
  width: auto;
  max-width: none;
}

/* Écrans : empilés, chacun glisse depuis la droite */
#horelBurgerMenu .hb-stage {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
#horelBurgerMenu .hb-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(0);
  transition: transform .2s ease-out;
}
#horelBurgerMenu .hb-panel.hb-dehors {
  transform: translateX(100%);
}
#horelBurgerMenu .hb-panel[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #horelBurgerMenu .hb-panel {
    transition: none;
  }
}
#horelBurgerMenu .hb-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
#horelBurgerMenu .hb-scroll--accueil {
  padding-top: 16px;
}

/* En-tête d'un sous-écran : retour + « Voir tout », trait de 1 px */
#horelBurgerMenu .hb-head {
  flex: 0 0 56px;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #121212;
}
#horelBurgerMenu .hb .hb-back {
  height: 56px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}
#horelBurgerMenu .hb-back span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#horelBurgerMenu .hb a.hb-all,
#horelBurgerMenu .hb a.hb-all:hover,
#horelBurgerMenu .hb a.hb-all:focus {
  flex-shrink: 0;
  display: block;
  line-height: 44px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  /* !important obligatoire : le thème impose « a { text-decoration: none !important } » sur tous les liens */
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px;
}

/* Lignes */
#horelBurgerMenu .hb .hb-row {
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
#horelBurgerMenu .hb .hb-row--main {
  min-height: 56px;
  font-size: 18px;
  font-weight: 500;
}
#horelBurgerMenu .hb .hb-row--hl {
  font-weight: 500;
}
#horelBurgerMenu .hb .hb-row--sec {
  font-size: 15px;
  font-weight: 500;
}
#horelBurgerMenu .hb-with-ico {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Séparateurs et blocs */
#horelBurgerMenu .hb-sep {
  height: 1px;
  background: #121212;
  margin: 16px 24px;
}
#horelBurgerMenu .hb-sep--legal {
  margin-bottom: 8px;
}
#horelBurgerMenu .hb-gap {
  height: 16px;
}
#horelBurgerMenu .hb-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 0 24px;
}
#horelBurgerMenu .hb .hb-legal a {
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #767676;
}
#horelBurgerMenu .hb .hb-label {
  margin: 0;
  padding: 24px 24px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #767676;
}

/* Le badge d'avis eTrusted passait par-dessus le menu ouvert */
html:has(#horelBurgerMenu.in) [id^="minimized-trustbadge"],
html:has(#horelBurgerMenu.in) [id^="trustbadge"],
html:has(#horelBurgerMenu.show) [id^="minimized-trustbadge"],
html:has(#horelBurgerMenu.show) [id^="trustbadge"] {
  display: none !important;
}
