/* Style de base */

.logged-in #mbp-burger-icon{
    top: 52px;
}
/* Style de base du burger */
#mbp-burger-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    transition: transform 0.5s ease;
}

#mbp-burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px;
    background-color: #004988;
    transition: 0.3s ease;
}
.home #mbp-burger-icon span {
    background-color: #004988;
}
#mbp-burger-icon.blanc span {
    background-color: #fff;
}

/* Effet croix */
#mbp-burger-icon.active span{
    background-color:#fff;
}
#mbp-burger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    
}

#mbp-burger-icon.active span:nth-child(2) {
    opacity: 0; /* Cache la barre du milieu */
}

#mbp-burger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay du menu */
.bg-total{
    position: fixed;
    top:0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}
#mbp-menu-overlay {
    position: fixed;
    top: 110px;
    left: 0;
    width: 411px; /* Largeur du menu (modifiable) */
    max-width: 80%;
    height: 100%;
    background-color: #004a87;
    color: #fff;
    z-index: 1000;
    transform: translateX(-100%); /* Hors de l'écran */
    transition: transform 0.5s ease; /* Ajout d’une transition douce */
}

#mbp-menu-overlay.active {
    transform: translateX(0); /* Glisse le menu dans l'écran */
}
.bg-total.active {
    opacity: 1; /* Rend visible */
    visibility: visible; /* Assure que le fond est visible */
    transition: opacity 0.5s ease; 
}

#mbp-menu-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - 110px);
}

.mbp-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

/* Liens du menu */
#mbp-menu-content .menu-item a {
    position: relative;
    color: #fff; /* Couleur du texte */
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px; /* Espace sous le texte */
    transition: color 0.3s ease; /* Transition de couleur (optionnelle) */
    padding: 10px 0 5px;
    font-size:26px;
}

#mbp-menu-content .menu-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff; /* Couleur du soulignement */
    transition: width 0.3s ease; /* Transition pour l'animation du trait */
}

#mbp-menu-content  .menu-item a:hover::after {
    width: 100%; /* Fait grandir le trait sur toute la largeur du lien */
}
@media only screen and (max-width: 1040px) {
    #mbp-burger-icon span{
        background-color: #fff;
    }
}
@media only screen and (max-width: 800px) {
#mbp-menu-content .menu-item a {
    font-size:24px;
}
}
