/* Navbar */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111111;
    padding: 15px 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Menu principal (Desktop) */
.desktop-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.desktop-menu li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Appliquer la couleur verte au lien actif */
.desktop-menu li a.active {
    color: #49D13C;
    font-weight: bold;
}

/* Barre de séparation */
.border-gradient {
    width: 75%;
    height: 4px;
    background: linear-gradient(to right, #49D13C 40%, #111111 60%);
    position: absolute;
    bottom: 0;
}

/* --- MENU BURGER (Mobile) --- */
.menu-burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 4; /* Assure qu'il est au-dessus de tout */
}

/* Navbar mobile cachée par défaut */
.navbar-mobile {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #111111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    transition: right 0.3s ease-in-out;
    z-index: 5; /* Plus grand que l'overlay */
}

/* Correction pour afficher les liens dans le menu mobile */
.navbar-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

.navbar-mobile ul li {
    padding: 15px;
}

.navbar-mobile ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

/* Lien actif en vert dans le menu mobile */
.navbar-mobile ul li a.active {
    color: #49D13C;
    font-weight: bold;
}

/* Overlay pour fermer le menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Affichage mobile */
@media screen and (max-width: 768px) {
    .menu-burger {
        display: block;
    }
    .desktop-menu {
        display: none;  /* Cache la navbar desktop en mobile */
    }
}

/* Réaffichage du menu sur ordinateur */
@media screen and (min-width: 769px) {
    .desktop-menu {
        display: flex !important; /* Réaffiche le menu principal */
    }
}
.github-icon {
    width: 30px;
    height: 30px;
    margin-top: -50px;
    transform: translateY(10px);
    
}

