/* ----- MENU HAMBURGER & MOBILE ----- */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    padding: 0.5rem;
    z-index: 101;
}

/* Affichage du bouton et transformation du menu sur mobile */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-surface);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 100;
        align-items: flex-start;
    }

    .navbar-nav.active {
        right: 0;
    }

    /* Les actions mobiles deviennent visibles */
    .mobile-only {
        display: block !important;
        width: 100%;
    }
    .mobile-only a {
        display: block;
        padding: 0.6rem 0;
        font-weight: 500;
        color: var(--color-text-secondary);
        border-bottom: 1px solid var(--color-border-light);
    }
    .mobile-only a:hover {
        color: var(--color-primary);
    }

    /* Cacher les actions desktop en mobile */
    .navbar-actions {
        display: none;
    }
}

/* Sur desktop, on cache les éléments mobiles */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}