/* Bouton Hamburger */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3;
    outline: none;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px;
    background-color: #333;
    transition: 0.3s;
}

/* Menu Slide */
.hamburger-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Caché hors écran */
    width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    transition: left 0.4s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow-y: auto;
}

.hamburger-menu.active {
    left: 0; /* Glisse le menu depuis la gauche */
}

/* Styles des liens de menu */
.accordion-menu > li {
    list-style: none;
    margin: 1rem 0;
}

.accordion-menu > li > a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-menu .submenu {
    display: none;
    list-style: none;
    padding-left: 1.5rem;
}

.accordion-menu .submenu a {
    color: #ff7f50; /* Orange corail pour sous-menus */
    font-size: 1rem;
}

/* Active le sous-menu */
.accordion-menu .submenu.active {
    display: block;
}

/* Transformation du bouton hamburger en croix */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
