/* CSS pour le menu personnalisé */
.my-custom-menu {
    display: flex;
    list-style-type: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.my-custom-menu li {
    position: relative;
}

.my-custom-menu > li {
    margin: 5px 0;
    padding: 5px;
}

.my-custom-menu li a {
    gap: 3px;
    text-decoration: none;
}

.parent-menu-item > a{
    display: flex;
    font-size: 18px !important;
    font-family: 'latoblack' ,sans-serif;
    border-left: 2px solid transparent;
    padding-left: 2px;
}

.my-custom-menu li a {
    text-decoration: none;
}

.child-menu {
    display: none;
    list-style-type: none;
    position: absolute;
    top: 100%;
    margin: 0;
    padding: 10px 20px;
    gap: 10px;
    background-color: #ecf5f9;
    border-left: 1px solid transparent;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.parent-menu-item.has-children:hover > a{
    border-left: 2px solid;
}

.parent-menu-item:hover > .child-menu {
    display: flex;
    flex-direction: column;
    width: -webkit-fill-available;
    min-width: max-content;
    border-left: 2px solid;
}

.child-menu li {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.child-menu li a{
    display: flex;
    align-items: center;
}

.my-custom-menu a{
    border-bottom: 2px transparent;
}

.my-custom-menu a.active-link{
    border-bottom: 2px solid #0875a1;
}

.my-custom-menu a:hover.active-link{
    border-bottom: 2px solid #2ba4d8;
}

.parent-menu-item:hover > a.active-link {
    border-left: 2px solid transparent;
}

@media(max-width: 780px) {
    #mobile_top_menu_wrapper {
        position: absolute;
    }

    #mobile_top_menu_wrapper.active {
        position: relative;
        transform: translate(calc(100% + 15px), 0) !important;
    }

    .my-custom-menu{
        flex-direction: column;
        gap: 10px;
        height: 100%
    }

    .my-custom-menu > li {
        margin: 5px 0;
        padding: 5px;
    }

    .my-custom-menu > li.has-children {
        border-left: 2px solid;
    }

    .child-menu{
        position: unset;
        display: flex;
        flex-direction: column;
        width: -webkit-fill-available;
        min-width: max-content;
        border-left: none;
        background-color: transparent;
        box-shadow: none;
    }

    .parent-menu-item:hover > a,
    .parent-menu-item:hover > .child-menu {
        border-left: unset;
    }

    #mobile_top_menu_wrapper {
      height: 100vh;
      position: fixed;
      display: none;
      transition: all 0.7s ease;
      right: calc(100vh + 15px);
      width: 100%;
   }


   #mobile_top_menu_wrapper.custommenu-active {
      height: 100vh;
      position: fixed;
      display: block;
      transition: all 0.7s ease;
      right: calc(100vh + 15px);
      width: 100%;
      overflow-x: scroll;
   }
}
