/* Remplacer tout le contenu par : */

/* Style de base - caché par défaut */
.hamburger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 10px;
}

.hamburger-menu .bars {
    position: relative;
    width: 100%;
    height: 100%;
}

.hamburger-menu .bar {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    left: 0;
    transform-origin: center;
}

.hamburger-menu .bar:nth-child(1) {
    top: 25%;
}

.hamburger-menu .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu .bar:nth-child(3) {
    bottom: 25%;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    /* Cache le menu desktop */
    .navbar-links {
        display: none !important;
    }

    /* Affiche le hamburger */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Animation du bouton */
    .hamburger-menu.active {
        transform: rotate(180deg);
        background-color: var(--secondary-color);
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        width: 70%;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 70%;
    }

    /* Le reste du CSS mobile peut rester identique */
    /* ... */


    /* Menu mobile */
    #mobile-menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1100;
        transition: bottom 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        padding: 25px 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #mobile-menu.active {
        bottom: 0;
    }

    /* Header du menu */
    .mobile-menu-header {
        text-align: center;
        padding: 10px 0 25px;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 15px;
    }

    .mobile-menu-title {
        color: var(--accent-color);
        font-family: 'October Crow', Arial, sans-serif;
        font-size: 1.8rem;
        margin: 0;
        letter-spacing: 1px;
    }

    /* Contenu du menu */
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 5px;
        overflow-y: auto;
        flex-grow: 1;
    }

    /* Items du menu */
    .menu-item {
        background-color: var(--secondary-color);
        border-radius: 11px;
        border: 1px dashed var(--accent-color);
        padding: 15px 20px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .menu-item:hover {
        background-color: var(--accent-color);
        transform: translateX(5px);
        border-left: 4px solid var(--accent-color);
    }

    .menu-item.active {
        background-color: var(--primary-color);
        border-left: 4px solid var(--accent-color);
    }

    .menu-item img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        transition: all 0.3s ease;
    }

    .menu-item span {
        font-size: 1rem;
        color: var(--text-color);
        flex-grow: 1;
    }

    .menu-item .arrow-icon {
        color: var(--accent-color);
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .menu-item:hover .arrow-icon {
        transform: translateX(5px);
    }

    /* Bouton de fermeture */
    .close-menu-btn {
        position: absolute;
        right: 0;
        top: 0;
        background: none;
        border: none;
        color: var(--accent-color);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 10px;
        transition: transform 0.3s ease;
    }

    .close-menu-btn:hover {
        transform: rotate(90deg);
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1090;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(8px);
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Animation des items */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-item {
        animation: slideIn 0.4s ease forwards;
        opacity: 0;
    }

    .menu-item:nth-child(1) { animation-delay: 0.1s; }
    .menu-item:nth-child(2) { animation-delay: 0.15s; }
    .menu-item:nth-child(3) { animation-delay: 0.2s; }
    .menu-item:nth-child(4) { animation-delay: 0.25s; }
    .menu-item:nth-child(5) { animation-delay: 0.3s; }
    .menu-item:nth-child(6) { animation-delay: 0.35s; }
    .menu-item:nth-child(7) { animation-delay: 0.4s; }
    .menu-item:nth-child(8) { animation-delay: 0.45s; }
}

/* Sur desktop - affiche le menu normal */
@media (min-width: 769px) {
    .navbar-links {
        display: flex !important;
    }



    #mobile-menu, .hamburger-menu, .menu-overlay {
        display: none !important;
    }
}