/* header.css — Styles du header et header mobile pour House Of Brands */

/* ------------------------------------------
   TOP HEADER (barre supérieure)
------------------------------------------ */
.hob-top-header {
  background-color: #f5f5f5;
  font-size: 0.875rem;
  color: #333;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.hob-top-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hob-top-header__message {
  margin: 0;
  text-align: center;
}

/* ------------------------------------------
   HEADER PRINCIPAL
------------------------------------------ */
.hob-header {
  background-color: #fff;
  position: relative;
  z-index: 99;
}

.hob-header__inner {
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
}


/* Logo */
.hob-header__logo img {
    height: 2.5rem !important;
  width: auto;
      object-fit: cover;
}

@media (max-width: 395px) {
.hob-site-logo img {
    height: 2rem !important;
}
}
.hob-site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

/* Navigation */
.hob-header__nav .hob-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.hob-header__logo,
.hob-header__icons {
  z-index: 2;
}
.hob-site-logo img {
  max-width: 140px;
  height: auto;
  display: block;
}


/* ------------------------------------------
   MENU HEADER ORDINATEUR > 1024px
------------------------------------------ */

.hob-header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hob-header__nav .menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}


.hob-header__nav .hob-menu li {
    margin: 0;
    letter-spacing: 0.1rem;
}

.hob-header__nav .hob-menu a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
   transition: color .4s ease;
}

.hob-header__nav .hob-menu a:hover {
  color: #555;
   transition: color .4s ease;
}


/* 1) Prépare le lien pour porter la barre centrée */
.hob-header__nav .hob-menu a {
  position: relative;
  overflow: hidden;
}

/* 2) Barre “underline” initialement au centre, échelle à 0 */
.hob-header__nav .hob-menu a::before {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 0.0625rem;
    background: rgb(24 24 24 / 32%);
    transform: scaleX(0);
    transform-origin: center bottom;
    transition: transform 0.3s ease;
    
}

/* 3) Au hover ou sur l’item actif → échelle à 1 */
.hob-header__nav .hob-menu a:hover::before{
  transform: scaleX(1);
}

.hob-header__nav .hob-menu li.current-menu-item a::before {
  background: rgb(24 24 24 / 60%);
  animation: expandFromCenter 0.3s ease 0.5s forwards;
}

/* 1) On définit l’animation */
@keyframes expandFromCenter {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}






/* ------------------------------------------
   Extras icônes > 1024px
------------------------------------------ */

/* Extras (icônes) */
.hob-header__extras {

  display: flex;
  gap: 1rem;
}

.hob-header__right-area {
  display: flex;
  align-items: center;
  gap: 1rem; /* espace entre les éléments */
}

/* Icônes */

.hob-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hob-header__extras {
    fill: #434343;
}


/* Bouton burger (toggle menu mobile) */
.hob-menu-toggle {
  display: none; /* masqué par défaut */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.3s ease;
}


.hob-icon {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: #1d1d1b;
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 1.5;
    overflow: visible;
}

svg.hob-icon.hob-icon--heart-full {
    fill: #1d1d1b;
}

/* ------------------------------------------
CSS pour le comportement du header au scroll - sticky header
------------------------------------------ */



/* Header toujours en fixed, mais caché par défaut */
.hob-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.6s ease;
  pointer-events: auto;
  z-index: 99;
}

/* caché : opacity 0 + translateY(-100%) */
.hob-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}





/* ------------------------------------------
   Responsive
------------------------------------------ */



/* —— Desktop : on désactive le container du mobile au cas où sur ordinateur—— */
@media (min-width: 1025px) {
  #hob-mobile-menu-container {
    display: none;
  }
}


/* Gestion menu mobile : Masquage du menu ordinateur, affichage du bouton de menu mobile, animation du clic sur le bouton*/

@media (max-width: 1024px) {


 .hob-header__nav {
    display: none;
  }
  .hob-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
 
.hob-icon--menu {
  width: 24px;
  height: auto;
  overflow: visible;

}

.mobile-menu-opened .hob-icon--menu {
  width: 24px;
  height: auto;
  overflow: visible;
z-index: 98;
}


/* Transformation des barre du menu en close button */
.hob-icon--menu .bar {
  transform-box: fill-box;
  -webkit-transform-box: fill-box;
  transform-origin: center center;
  transition: transform .3s ease, opacity .3s ease;
}
/* ÉTAT OUVERT : on masque la barre du milieu… */
.mobile-menu-opened .bar--middle {
  opacity: 0;
}
/* … et on recentre + tourne les deux autres barres */
/* Calculé pour viewBox 0 0 41 16 */
.mobile-menu-opened .bar--top {
  transform: translateY(-8px) rotate(45deg);
}
.mobile-menu-opened .bar--bottom {
  transform: translateY(7px) rotate(-45deg);
}







.hob-top-header {
    position: relative;
  z-index: 90;
}

.hob-header__inner{
  position: relative;
  z-index: 90;
  height: 70px;
}


body.mobile-menu-opened{
  overflow: hidden;
}







/* 1) Le drawer, juste après le header dans votre flux */
#hob-mobile-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    top: 0;
    left: 0;

    position: absolute;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height .5s cubic-bezier(0, 0, 0, 1.11);
    background: #f5f5f5;
    border-bottom: 1px solid #dfdfdf;
    pointer-events: none;
}

/* 2) Quand la classe existe, on lève le pointer et on déploie */
#hob-mobile-menu-container.mobile-menu-opened {
 
  pointer-events: auto;
  /* height final : tout l’écran moins la hauteur du header */
  height: calc(100vh - var(--hob-header-height));
  transition: height .7s cubic-bezier(0, 0, 0, 1.11);
}




.hob-mobile-menu-inner{
       padding: 8rem 1rem;
}

.hob-mobile-menu-inner-before{
      padding: 0.5rem 1rem;
      background-color: #fff;
      border-radius: 0.5rem;
}

/* Styles pour le menu mobile */
.hob-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hob-menu-mobile li {
  margin: 0;
}

.hob-menu-mobile li a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hob-menu-mobile li a:hover,
.hob-menu-mobile li.current-menu-item > a {
  background-color: #f0f0f0;
  color: #000;
}

/* Si vous avez des sous-menus (ul.sub-menu), indentez-les */
.hob-menu-mobile .sub-menu {
  list-style: none;
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hob-menu-mobile .sub-menu li a {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}




.hob-mobile-menu-inner-after{
      padding: 0.5rem 1rem;
      background-color: #fff;
      border-radius: 0.5rem;
}




}



