nav {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    left: 5%;
    top: 20px; /* Effet flottant */
    border-radius: 16px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* État initial et Scrolled unifiés avec Glassmorphism */
nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    padding: 12px 5%; /* Légèrement plus petit au scroll */
}

.nav-left a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -1px;
}

.nav-left a span {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    gap: 30px;
}

.nav-right a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.nav-right a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Indicateur style "point" au lieu d'une ligne */
.nav-right a::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-right a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Mobile Menu Styles */
.nav-mobile, #mobile-menu, #menu-toggle { display: none; }

@media (max-width: 768px) {
    nav { width: 94%; left: 3%; top: 10px; }
    .nav-right { display: none; }
    .nav-mobile { display: block; }

    #menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: var(--primary-color);
        border: 1px solid var(--border-glass);
        border-radius: 8px;
        cursor: pointer;
    }

    #mobile-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 110%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    #mobile-menu.open { display: flex; }

    #mobile-menu a {
        padding: 15px 20px;
        text-decoration: none;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background 0.3s;
    }

    #mobile-menu a:hover {
        background: rgba(56, 189, 248, 0.1);
        color: var(--primary-color);
    }
}