.navbar {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-item a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Hover + animation underline */
.navbar-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ff006e;
    transition: width 0.3s ease;
}

.navbar-item a:hover {
    color: #ff006e;
}

.navbar-item a:hover::after {
    width: 100%;
}

/* Page active */
.navbar-item.active a {
    color: #ff006e;
}

.navbar-item.active a::after {
    width: 100%;
}

/* Mode clair */

body.light-mode .navbar-item a {
    color: #000000;
}

body.light-mode .navbar-item a:hover {
    color: #ff006e;
}

body.light-mode .navbar-item a::after {
    background: #ff006e;
}

/* MOBILE */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 20px;
    }
}
