/* Ajout des styles personnalisés pour le menu hamburger FR (3 niveaux) */

#mhf-hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e2622b;
    color: white;
    border: none;
    border-radius: 4px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 6px 12px;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.mhf-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease-in-out;
    z-index: 9998;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
    overflow-y: auto;
}

.mhf-sidebar.open {
    left: 0;
}

.mhf-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e2622b;
}

/* Style pour le titre */
.mhf-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.mhf-level {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mhf-level li {
    margin-bottom: 10px;
}

.mhf-link {
    display: flex;
    align-items: center;
    color: #e2622b;
    font-size: 16px;
    text-decoration: none !important; /* Supprime tout soulignement sur le lien */
    padding: 6px 10px;
    border-radius: 5px;
}

.mhf-link:hover {
    background-color: #f3f3f3;
}

.mhf-link:hover .mhf-text {
    color: #c3471f;
    text-decoration: underline;
}

.mhf-text {
    flex-grow: 1;
}

.mhf-toggle {
    background: none;
    border: none;
    color: #2d3142;
    cursor: pointer;
    font-size: 14px;
    padding: 0 5px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    text-decoration: none !important;
    border-bottom: none !important; /* Supprime tout effet de bordure */
}

.mhf-link:hover .mhf-toggle,
.mhf-link:hover .mhf-toggle:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    color: #2d3142 !important;
}

.mhf-toggle.open {
    transform: rotate(90deg);
}

.mhf-level.mhf-hidden {
    display: none;
}

.mhf-level:not(.mhf-hidden) {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

#mhf-hamburger::before {
    content: "☰ MENU";
    color: white;
}

/* TITRES DES RÉGIONS EN PLUS PETIT MAIS EN GRAS */
.mhf-level.mhf-root li > .mhf-link {
    font-size: 15px;
    font-weight: bold;
}

/* AJOUT D’UN EFFET VISUEL AUX SOUS-MENUS */
.mhf-level:not(.mhf-root) {
    margin-top: 5px;
    margin-left: 10px;
    border-left: 2px solid #eee;
    padding-left: 10px;
}

/* Bloque tout soulignement hérité */
.mhf-sidebar a,
.mhf-sidebar a:hover,
.mhf-sidebar a:focus,
.mhf-sidebar a:active {
    text-decoration: none !important;
}