.header-white:not(.sticky) {
    #header .logo,
    #header .menu-item:not(.button-header),
    #burgerBtn{
        filter: brightness(0) invert(1);
    }

}



/*-----------------------------------------------------------
# LOGO et STICKY
-------------------------------------------------------------- */
/*Normal*/
.custom-logo-link {
transition:all ease 0.3s;
}
.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{
      background:#fff;
      box-shadow: var(--big-box-shadow);
      .custom-logo-link {
        height:50px;
      }
      .menu-desktop {
        & > .menu-item:not(.button-header) {
            &:before {
                transform:translateY(20px);
            }
        }
    }

    }
}

/*-----------------------------------------------------------
# HEADER
-------------------------------------------------------------- */
#header {
    position: fixed;
    z-index: 998;
    width: 100%;
    left: 0;
    transition: all .3s ease;
    padding: 0 var(--container-default-padding-right);
}
.elementor-editor-active {
    #header {
        pointer-events: none;
    }
}

#header .nav-wrapper {
    box-shadow:none;
    max-width: 2000px;
    line-height: 1;
    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;
    gap:64px;
    nav {
        flex-grow: 1;
    }
    #menu-left {
        justify-content: flex-end;
    }
}

#header .custom-logo-link {
    height: 80px;
    display: -ms-flexbox;
    /* display: -webkit-flex; */
    display: inline-flex
;
    /* height: 80%; */
    padding: 0 0;
    /* width: 100%; */
    margin: var(--s-spacing) auto;
}
.custom-logo-link>div {
height: 100%;
width: auto;
}
.menu-desktop {
    flex-grow:10;
    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 {

    > .button-header {
        margin-left:auto;
    }
    > .menu-item:not(.button-header) {
        > a {
            color: var(--e-global-color-primary );
            padding: 0 1rem;
            display: block;
            text-transform: uppercase;
            font-size:0.9em;

        }
        &:hover,
        &.current-menu-item {

            &:before {
                height: 70px;
            }
        }
        &.current-menu-item {
            > a {
                font-weight: 500;
            }
        }

        &:before {
            background: var(--e-global-color-accent);
            width: 4px;
            height: 0;
            content: "";
            position: absolute;
            top: -100px;
            left: calc(50% - 2px);
            -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;
}


.menu-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: 26px;
    width: 30px;
    box-sizing: border-box;
    position: absolute;
    z-index: 999;
    left: 20px;
    top: 50%;
    cursor: pointer;
    transition: all 0.6s ease-in;
    margin-top: -13px;
  &: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: 998;
    list-style-type: none;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 6vw;
    left:0;
    justify-content: center;
    background: var(--e-global-color-primary);
    transform: translateX(-100vw);
    transition :all 0.6s ease-in;
  li {
    list-style: none;
     transform: translateX(-100px);
     opacity: 0;
     transition: all 0.6s ease-in;
    a {
        font-family: var(--e-global-typography-e07f100-font-family), Sans-serif;
        font-size: var(--e-global-typography-e07f100-font-size);
        font-weight: var(--e-global-typography-e07f100-font-weight);
        color: var(--e-global-color-613c2a5);
        opacity: 0.5;
    }
    &.current-menu-item a {
        opacity: 1;

    }

  }


  .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 {
            
            transform: translateX(0px);
            opacity: 1;
           
            &:nth-child(1) { transition-delay: 0.1s; }
            &:nth-child(2) { transition-delay: 0.2s; }
            &:nth-child(3) { transition-delay: 0.3s; }
            &:nth-child(4) { transition-delay: 0.4s; }
            &:nth-child(5) { transition-delay: 0.5s; }
            &:nth-child(6) { transition-delay: 0.6s; }
            &:nth-child(7) { transition-delay: 0.7s; }
          
        }
    }

  #content {
    transform:translateX(100vw);
    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}
    #header .custom-logo-link{height: 40px;}
    body.sticky #header .custom-logo-link {height: 34px;}
    .menu-desktop {display:none;}
    #burgerBtn  {display:block;}
    
    #header .nav-wrapper, body.sticky #header.nav-wrapper {
        padding: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;
    }
}