/* Style pour le bouton hamburger */
.ec-elements-hamburger {
    position: relative;
    top: 0px;
    right: 30px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    z-index: 1000;
    cursor: pointer;
    padding: 0;
}
.hamburger--spring .hamburger-inner::before {
    top: 15px;
}
.hamburger--spring .hamburger-inner::after {
    top:30px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    height: 3px;
    background-color: #ffffff;
    border-radius: 0px;
}
.hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner::before, .hamburger.is-active .hamburger-inner::after {
    background-color: #ffffff;
}
.hamburger--spring.is-active .hamburger-inner::after,
.hamburger--spring.is-active .hamburger-inner::before {
    top: 5px;
}
.hamburger-box {
    width: 40px;
    height: 40px;
}

.ec-elements-hamburger p {
    font-size: 12px;
    line-height: 1;
    float: left;
    width: auto;
    transform: rotate(-90deg);
    position: absolute;
    top: 10px;
    right: -30px;
    color:#fff;
}

.ec-elements-bar {
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Style du menu en plein écran, caché au départ */
.ec-elements-fullscreen-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    opacity: 0;  /* Le menu est invisible par défaut */
    visibility: hidden; /* Le menu est caché */
    z-index: 999;  /* Il doit être derrière le bouton hamburger */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform .5s ease;
    display:flex;
    padding:0 50px;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}



/* Transition Fade */
.ec-elements-fullscreen-menu-wrapper.active[data-transition-type="fade"] .ec-elements-fullscreen-menu {
    opacity: 1;  /* Le menu devient visible */
    visibility: visible;
}

/* Transition Top */
.ec-elements-fullscreen-menu-wrapper[data-transition-type="top"] .ec-elements-fullscreen-menu {
    transform: translateY(-100%);  /* Le menu est hors de l'écran au départ */
    visibility: visible;
}

.ec-elements-fullscreen-menu-wrapper.active[data-transition-type="top"] .ec-elements-fullscreen-menu {
    transform: translateY(0);  /* Le menu glisse vers le bas */
    opacity: 1;  /* Le menu devient visible */
}

/* Transition Bottom */
.ec-elements-fullscreen-menu-wrapper[data-transition-type="bottom"] .ec-elements-fullscreen-menu {
    transform: translateY(100%);
    visibility: visible;
}

.ec-elements-fullscreen-menu-wrapper.active[data-transition-type="bottom"] .ec-elements-fullscreen-menu {
    transform: translateY(0);
    opacity: 1;
}

/* Transition Left */
.ec-elements-fullscreen-menu-wrapper[data-transition-type="left"] .ec-elements-fullscreen-menu {
    transform: translateX(-100%);
    visibility: visible;
}

.ec-elements-fullscreen-menu-wrapper.active[data-transition-type="left"] .ec-elements-fullscreen-menu {
    transform: translateX(0);
    opacity: 1;
}

/* Transition Right */
.ec-elements-fullscreen-menu-wrapper[data-transition-type="right"] .ec-elements-fullscreen-menu {
    transform: translateX(100%);
    visibility: visible;
}

.ec-elements-fullscreen-menu-wrapper.active[data-transition-type="right"] .ec-elements-fullscreen-menu {
    transform: translateX(0);
    opacity: 1;
}

/* Style pour les éléments du menu */
.ec-elements-menu,  .ec-elements-fullscreen-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    /*position: absolute;
    top: 50%;
    transform: translateY(-50%);*/
}

.ec-elements-fullscreen-menu li {
    margin: 20px 0;
    opacity: 0;  /* Début de l'élément invisible */
    transform: translateY(10px);  /* On déplace les éléments vers le bas pour qu'ils apparaissent de cette manière */
    transition: opacity .3s ease-in-out, transform .3s ease-in-out;
    transform-origin: center top;
    transition-delay: 0s;  /* Par défaut, aucun délai */
}

.ec-elements-fullscreen-menu li.show {
    opacity: 1;  /* L'élément devient visible */
    transform: translateY(0);  /* L'élément revient à sa position d'origine */
}

.ec-elements-fullscreen-menu li ,.ec-elements-fullscreen-menu li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
}
.ec-elements-fullscreen-menu ul li a:hover {
    transform: translateX(-20px);
    position: relative;
    padding-right: 20px;
}

/* Style de la flèche de retour */
.ec-elements-back-button {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    line-height: 1em;
    z-index:400;
}

.ec-elements-menu .sub-menu {
    display: none;  /* Cacher les sous-menus */
    opacity: 0;  /* Faire disparaître les sous-menus */
    transition: opacity 0.5s ease;  /* Animation de fondu */
}

.ec-elements-menu .sub-menu.show {
    opacity: 1;  /* Le sous-menu devient visible */
}

/* Lorsque le sous-menu est actif, on le fait apparaître avec un effet fade */
.ec-elements-menu .menu-item.active > .sub-menu {
    display: block;  /* Afficher les sous-menus */
    opacity: 1;  /* Le sous-menu devient visible */
}

@media (max-width: 767px) {
    .ec-elements-fullscreen-menu {
        width: 100vw;
        align-items: center;
    }
    .ec-elements-menu,  .ec-elements-fullscreen-menu ul {
        text-align: center;
    }
    .ec-elements-fullscreen-menu li ,.ec-elements-fullscreen-menu li a {
        font-size: 20px;
    }
    .ec-elements-fullscreen-menu li {
        margin: 10px 0;
    }
}



