/*-----------------------------------------------------------
# LOGO et STICKY
-------------------------------------------------------------- */
/*Normal*/
.custom-logo-link, .custom-logo-link svg, .custom-logo-link img {
    position: relative;
    height: 100%;
    display: block;
    width: auto;
}
.custom-logo-link .logo {display:block;}
.custom-logo-link .logo-white {display:none;}

/*Sticky*/
body.sticky {
    .custom-logo-link .logo-white{display:none;}
    .custom-logo-link .logo {display:block;}
    #header .nav-wrapper {    
        line-height:60px;
        height:60px;
    }
    #header{
      background:#fff;
      -webkit-box-shadow: 0 4px 6px 0 rgb(12 0 46 / 6%);
      box-shadow: 0 4px 6px 0 rgb(12 0 46 / 6%);
    }
}

/*-----------------------------------------------------------
# HEADER
-------------------------------------------------------------- */
#header {
    position: fixed;
    z-index: 998;
    width: 100%;
    left: 0;
    transition: all .3s ease;
    padding: 0 var(--container-default-padding-right);
}
#header .nav-wrapper {
    box-shadow:none;
    max-width: 2000px;
    line-height: 100px;
    height:100px;
    margin:0 auto;
    transition: all .3s ease-in-out;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    z-index: 99;
}

#header .custom-logo-link {
    max-height:80px;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    height: 60%;
    padding:0 0;
}
.custom-logo-link>div {
height: 100%;
width: auto;
}
.menu-desktop {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    list-style: none;
    text-align:center;
    align-items:center;
    -webkit-align-items:center;
    -ms-align-items:center;
    margin:0;
    padding:0;
    transition: all .3s ease;
    li {
        margin: 0;
        position: relative;
    }
    
    .sub-menu {
        line-height: 1;
        list-style: none;
        position: absolute;
        border-radius: 8px;
        left: 50%;
        padding: 1em 2em;
        margin: 0;
        max-width: 340px;
        width: max-content;
        -webkit-box-shadow: 0px 8px 38px 5px rgba(0, 0, 0, 0.16);
        box-shadow: 0px 8px 38px 5px rgba(0, 0, 0, 0.16);
        background: #fff;
        -webkit-transform: translateY(20px) translateX(-50%);
        -ms-transform: translateY(20px) translateX(-50%);
        transform: translateY(20px) translateX(-50%);
        -webkit-transition: all .3s ease-in;
        -o-transition: all .3s ease-in;
        transition: all .3s ease-in;
        opacity: 0;
        visibility: hidden;

        &.menuopen {
            pointer-events:initial;
            visibility: visible;
            opacity: 1;
            transform:translateY(0px);
        }

        li > a {
            text-align: left;
            white-space: normal;
            padding:10px 0;
            transition: all .3s ease-in-out; 
            color:var(--e-global-color-text);
            display: flex;
            justify-content: space-between;
            width: 100%;
            gap:10px;
             > span {
                content: '';
                display: inline-block;
                width: 20px;
                background-image: url('../images/icon-arrow-right.svg');
                background-repeat: no-repeat;
                background-size: contain;
                vertical-align: middle;
                margin-left: 5px; /* Ajustez selon vos besoins */
                opacity: 0;
                transform:translateX(-10px);
                transition: all .3s ease-in-out;
                flex-shrink: 0;
            }
        }
        li:hover > a > span {
            opacity: 1;
            transform:translateX(0);
        }
         li:hover > a {
            color:var(--e-global-color-primary);
        }
    }
}


@media(hover: hover) and (pointer: fine) {
    ul.menu-desktop > li:hover > .sub-menu {
        pointer-events:initial;
        visibility: visible;
        opacity: 1;
                -webkit-transform: translateY(0) translateX(-50%);
        -ms-transform: translateY(0) translateX(-50%);
        transform: translateY(0) translateX(-50%);
    }

}


.menu-item > a {
    position: relative;
}
.menu-desktop > .menu-item:not(.button-header) > a {
    color: var(--e-global-color-primary );
    padding: 0 1rem;
    display: block;
}
.current-menu-item:not(.button-header) > a,
.menu-desktop > .current-menu-item:not(.button-header) > a{
    font-weight: bold;
}

#nav-desktop>li.current-menu-item:not(.button-header)>a:before, 
#nav-desktop>li:not(.button-header):hover>a:before {
    width: 100%;
}
#nav-desktop>li:not(.button-header) a:before {
    background: var(--e-global-color-accent);
    height: 4px;
    width: 0;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    -o-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
/* SUBMENU */
.sub-menu {
    margin:0;
    padding:0;
}


#nav-desktop {
    .sub-menu {
        > li > a {
            text-align: left;
            white-space: normal;
            padding: 10px 0;
            transition: all .3s ease-in-out;
            color: var(--e-global-color-text);
            display: flex;
            justify-content: space-between;
            width: 100%;
            gap: 10px;
            &:hover {
                color: var(--e-global-color-primary);
            }
        }
        li.half {position: relative;}
        li.half > .sub-menu {
            width: 50vw;
            top:100%;
            left: 50% !important;
            /* right: 0 !important; */
            transform: translateX(-50%);
        }
        li.half:hover > .sub-menu {
            transform: translateX(-50%);
        }
    }
}
 


/* MOBILE */
body {
  overflow-x: hidden;
  position: relative;
  width: 100vw;
  transition :all 0.6s ease-in;
}
#content {
  position:relative;
  z-index:20;
  width:100%;
  height:100%;
  overflow:hidden;
  visibility:visible;
  transition :all 0.6s ease-in;
}

#burgerBtn {
    display: none;
  border-top:2px solid var(--e-global-color-primary);
  height:25px;
  width:30px;
  box-sizing:border-box;
  position:relative;
  z-index:30;
  left:20px;
  cursor:pointer;
  transition :all 0.6s ease-in;
  &:before {
    content:"";
    display:block;
    position:absolute;
    height:2px;
    width:30px;
    left:0;
    background:var(--e-global-color-primary);
    top:10px;
    transition :all 0.6s ease-in;
  }
  &:after {
    content:"";
    display:block;
    position:absolute;
    height:2px;
    width:30px;
    left:0;
    background:var(--e-global-color-primary);
    bottom:0;
    transition :all 0.6s ease-in;
  }
}

#menu-mobile {
  position:fixed;
  top:0;
  z-index:10;
  list-style-type:none;
  margin:100px 0 0 20px;
  padding:0;
  overflow:hidden;
  display:flex;
  gap:1rem;
  flex-direction:column;
  transform:translateX(-200px);
  li {
    transition :all 0.6s ease-in;
    a {
        color:#fff;
    }
    & + li {
      margin-left:-40px;
      & + li {
        margin-left:-80px;
        & + li {
          margin-left:-120px;
        }
      }
    }
  }
  .menu-item-has-children {
        > a {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;
        }

        > a > span {
           display: block;
            content: "";
            background-image: url(../images/down-white.svg);
            /* position: absolute; */
            /* right: 15px; */
            /* top: 10px; */
            color: #fff;
            width: 40px;
            font-size: 2em;
            height: 20px;
            background-size: 15px;
            background-repeat: no-repeat;
            background-position: center center;
            transform: rotate(180deg);
        }
        &.active > a > span {
             transform: rotate(0deg);
        }
    }
    .sub-menu {
        position: static;
        width: 100%;
        padding: 10px 0 20px 0;
        background: 0 0;
        box-shadow: none;
        transform: none;
        -webkit-transform: none;
        display: none;
        -webkit-animation: showslow .2s ease-in;
        animation: showslow .2s ease-in;
        max-width: 100%;
        max-height: inherit;
        overflow-y: auto;
        li > a {
            padding: 5px 15px 5px 15px;
            display: block;
        }
    }
}


.navigation {
   background: var(--e-global-color-primary);
    #menu-mobile {
        transform:translateX(0);
        li {
            width: 200px;
            margin-left: 0;
            list-style: none;
          }
    }

  #content {
    transform:translateX(260px);
    background: #fff;
  }
  #burgerBtn {
    border-color:transparent;
    &:before {
      transform: rotate(45deg);
      width:33px;
      left:-2px;
      background:#fff;
    }
    &:after {
      transform: rotate(135deg);
      bottom:11px;
      width:33px;
      left:-2px;
      background:#fff;
    }
  }
}


@media only screen and (max-width:1024px ) {
    main {
        padding-top: 60px;
    }
    #header {padding: 0}
    .menu-desktop {display:none;}
    #burgerBtn  {display:block;}
    #header .custom-logo-link {
        position: absolute;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
    }
    #header .nav-wrapper, body.sticky #header.nav-wrapper {
        line-height: 60px;
        height: 60px;
        padding: 0 20px 0 0;
    }
        /*Client MEnu Mobile */
    .menu-desktop .sub-menu {
        right: 0;
        position: absolute;
        left: 0;
        /* top: 60px; */
        width: 100%;
        border-radius: 0;
        transform: translateY(0px);
        box-shadow: none;
        margin: 0;
        border-top: 1px solid #efefef;
    }
}