/* Navigation principale - LAN RAPAS */
@import url(variables.css);
/* Points 1-2-3-4-6 : icônes, bordures, hover/actif, typo, délimitation */

nav {
    background: linear-gradient(180deg, rgba(187, 134, 252, 0.06) 0%, var(--nav-dark) 20%);
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 1px solid rgba(187, 134, 252, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: var(--text-lighter);
    margin: 0;
    text-decoration: none;
    padding: 14px 20px;
    min-width: 100px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links a:last-of-type {
    border-right: none;
}

.nav-links a .nav-icon {
    font-size: 0.95em;
    opacity: 0.9;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(187, 134, 252, 0.2);
    box-shadow: inset 0 0 20px rgba(187, 134, 252, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: white;
    font-weight: 600;
    background-color: rgba(187, 134, 252, 0.25);
    box-shadow: inset 0 0 24px rgba(187, 134, 252, 0.1);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    .nav-links a {
        padding: 12px 20px;
        width: 100%;
        min-width: 0;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links a:last-of-type {
        border-bottom: none;
    }
}
