.header-white:not(.sticky) {
    #header .custom-logo-link,
    #header .menu-item:not(.button-header),
    #burgerBtn{
        color:var(--e-global-color-bf37baa);
    }
    .custom-logo-link{
        .logo-white{display:block;}
        .logo {display: none;}
     }
}



/*-----------------------------------------------------------
# LOGO et STICKY
-------------------------------------------------------------- */
/*Normal*/
.custom-logo-link {
    transition:all ease 0.3s;
    font-family: "ACETONE";
    font-size:2em;
    text-decoration: none;
    color:var(--e-global-color-primary);
    align-items: center;
    gap:var(--s-spacing);   
    height: 80px;
    display: -ms-flexbox;
    display: inline-flex;
    padding: 0 0;
    margin: 10px 0;
}
.custom-logo-link>div {
height: 100%;
width: auto;

}
.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: sticky;
    z-index: 998;
    width: 100%;
    left: 0;
    transition: all .3s ease;
    top:0;
}
.elementor-editor-active {
    #header {
        pointer-events: none;
        z-index: 0;
    }
    #content {
        overflow: visible;
    }
}

#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:var(--s-spacing);
    padding:0 var(--container-default-padding-right);
    nav {
        flex-grow: 1;
    }
    #menu-left {
        justify-content: flex-end;
    }
}


.menu-desktop {
    justify-content: flex-end;
}

.tutor-header-profile-content,
.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: 0;
        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 {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            text-decoration: none;
            color:var(--e-global-color-primary);
             > 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 */
                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) {
    .tutor-header-profile-content:hover > .sub-menu,
    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;
            font-weight:500;
            text-decoration: none;

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

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

        &: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 { 
  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: relative;
    z-index: 999;
    cursor: pointer;
    transition: all 0.6s ease-in;
        flex-shrink: 0;
  &: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-main {
    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;
    .logo-white {
        width: 50px;
        height: auto;
    }
    ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap:var(--s-spacing);
    }
    li {
        list-style: none;
         transform: translateX(-100px);
         opacity: 0;
         transition: all 0.6s ease-in;
        a {
            color:var(--e-global-color-bf37baa);
            opacity: 0.75;
            text-decoration: none;
            font-size: 5vw;
        }
        &.current-menu-item a {
            opacity: 1;

        }
    }    
        ul.menu-tutor {
            margin-top:var(--spacing);
            border-radius: var(--radius);
            background:var(--e-global-color-bf37baa);
            padding:var(--container-default-padding-top);
            a {
                opacity: 0.9;
                color:var(--e-global-color-primary);

            }
        }

    


  .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);
   .custom-logo-link {
    color:var(--e-global-color-bf37baa);
    .logo {
         display: none;
       }
       .logo-white {
        display: block;
       }
   }

   
    #menu-mobile-main {
        transform:translateX(0);
        li {
            
            transform: translateX(0px);
            opacity: 1;
            a {display: inline-block;}
            &: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; }
          
        }

         .menu-item.button-header>a {
            margin:0;
            background: var(--e-global-color-bf37baa);
            color:var(--e-global-color-primary);
         }
    }


  #burgerBtn {
    border-color:transparent;
    &:before {
      transform: rotate(45deg);
      width:33px;
      left:-2px;
      background:var(--e-global-color-bf37baa);
    }
    &:after {
      transform: rotate(135deg);
      bottom:11px;
      width:33px;
      left:-2px;
      background:var(--e-global-color-bf37baa);
    }
  }
}


@media only screen and (max-width:1024px ) {


    #header .custom-logo-link{height: 40px;}
    body.sticky #header .custom-logo-link {height: 34px;}
    .menu-desktop {display:none;}
    #burgerBtn  {display:block;}
    

        /*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;
    }
}