/* NAVBAR */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(10, 15, 20, 0.7);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
}

.links {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.links a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    transition: 0.2s;
}

.links a:hover {
    color: var(--primary);
}

/* ligne invisible de base */
.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 0.25s ease;
}

/* hover */
.links a:hover::after {
    width: 100%;
}

/* actif (page actuelle) */
.links a.active-nav {
    color: var(--text);
}

.links a.active-nav::after {
    width: 100%;
}

/* LOGO NAVBAR */

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
    transition: 0.222s ease;
    filter: drop-shadow(0 0 6px rgba(0, 255, 200, 0.2)) hue-rotate(325deg) saturate(100%);
}

.logo:hover img {
    filter: drop-shadow(0 0 6px rgba(0, 119, 255, 0.866)) hue-rotate(340deg) saturate(150%);
}

.logo span span {
    color: var(--primary);
}

/* BUTTON NAVBAR */

.btn-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(46, 230, 198, 0.3);
    background: rgba(46, 230, 198, 0.1);
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s ease, color 0.2s ease, border 0.2s ease;
    text-decoration: none;
}

.btn-nav:hover a {
    border: 1px solid rgba(46, 230, 198, 0.6);
    box-shadow:
        0 0 10px rgba(46, 230, 198, 0.4),
        0 0 20px rgba(46, 230, 198, 0.3);
}

#icon-nav {
    width: 15px;
    height: 15px;
}