body{
    margin: 0;
    padding-top: 10vh;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    z-index: 1000; /* Assure que la barre est au-dessus */
}

#navbar.scrolled {
    background-color: #f5f5f5;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30vw;
    margin-left: 5vw;
}

.links ul {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: space-between;
    width: 100%;
}

nav ul {
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: #aaaaaa;
    font-weight: 400;
    margin: 0;
    position: relative;
}

nav ul li a,
nav ul li a:after,
nav ul li a:before {
    transition: all .5s;
}

nav ul li a:hover {
    color: #f5f5f5 !important;
}

.dark-theme nav ul li a:hover {
    color: #f5f5f5 !important;
}

.light-theme nav ul li a:hover {
    color: #333 !important;
}

/* Underline stroke effect */
nav.stroke .links ul li a {
    position: relative;
}

nav.stroke .links ul li a:after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    content: '';
    color: transparent;
    background: #aaa;
    height: 1px;
    transition: width 0.5s;
}

nav.stroke .links ul li a:hover:after {
    width: 100%;
}

/* Fill underline effect */
nav.fill .links ul li a {
    position: relative;
    transition: color 0.5s;
}

nav.fill .links ul li a:after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 2px;
    background: #aaa;
    content: '';
    opacity: 0;
    transition: opacity 0.5s;
}

nav.fill .links ul li a:hover {
    color: #fff;
}

nav.fill .links ul li a:hover:after {
    opacity: 1;
}

.navimg {
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.logo {
    padding: 0;
    margin-left: 2vw;
}

.logo a {
    color: #f5f5f5;
    text-decoration: none;
    border: none;
    font-size: 25px;
    font-weight: 500;
    padding: 0;
}

.dark-theme .logo a {
    color: #f5f5f5;
}

.light-theme .logo a {
    color: #333;
}

.active {
    color: #f5f5f5 !important;
}

.dark-theme .active {
    color: #f5f5f5 !important;
}

.light-theme .active {
    color: #333 !important;
}

.languages {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 2vw;
}

.languages img {
    width: 40px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.languages p {
    color: #aaa;
    font-size: 1.2rem;
    font-weight: 400;
}

.languages img:hover {
    transform: scale(1.1);
}

.languages img.active-lang ~ .highlight {
    left: 1vw;
}