/* NavMenu.razor.css */
.nav-menu {
    padding: 1rem;
    height: 100%;
}

/* Éléments de navigation */
.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link2 {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .nav-link2:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    .nav-link2.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white !important;
        font-weight: 600;
    }

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Sections avec détails */
.nav-section {
    margin-bottom: 0.5rem;
}

    .nav-section details {
        border-radius: 8px;
    }

        .nav-section details[open] {
            background-color: rgba(0, 0, 0, 0.1);
        }

.nav-section-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .nav-section-header::after {
        content: '▶';
        position: absolute;
        right: 1rem;
        font-size: 0.7rem;
        transition: transform 0.2s ease;
        opacity: 0.7;
    }

details[open] .nav-section-header::after {
    transform: rotate(90deg);
}

.nav-section-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-section-content {
    padding: 0.5rem 0;
}

/* Sous-liens - couleur ivoire */
.sub-link {
    padding-left: 3rem;
    font-size: 0.9rem;
    color: ivory !important;
    font-weight: 400;
}

    .sub-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: white !important; 
    }

    .sub-link.active {
        background-color: rgba(255, 255, 255, 0.15);
        color: white !important; 
    }

/* Remove default details marker */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* Animation pour l'ouverture/fermeture */
details[open] .nav-section-content {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

                                                