/* Navbar */
.navbar {
    display: block;
    justify-content: space-between;
    top: 0;
    z-index: 1000;
   
    padding: 3rem 0;
    text-align: center;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
    background: rgba(0, 0, 50, 0.6);
    /* backdrop-filter: blur(20px); */
}
.nav-links {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.nav-link {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #3A3DFF, #8B8DFF);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.8s ease;
}
.nav-link:hover {
    background: linear-gradient(135deg, #5A5DFF, #AFAFFF);
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

/* Menu hamburger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute; /* Positionnement absolu par rapport à la navbar */
    top: 15px; /* Ajustez selon vos préférences */
    left: 15px; /* Ajustez selon vos préférences */
    z-index: 1100; /* S'assure qu'il est au-dessus du reste */
}

.menu-toggle div {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #3A3DFF, #8B8DFF);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 50, 0.9);
        position: relative;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        gap: 0;
      
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-radius: 0;
        transition: background 0.3s ease;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active div:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active div:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}