/* 🔹 Style général de la navbar */
.navbar {
    background: black;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* position: relative; */
    position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: black;
z-index: 1000;
}

/* Correction du sous-menu */
.navbar ul {
list-style: none;
padding: 0;
margin: 0;
}

.navbar ul li {
position: relative;
}

/* Styles pour le menu déroulant */
.navbar ul li ul {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: rgba(0, 0, 0, 0.9);
width: 200px;
padding: 10px 0;
z-index: 999;
}

.navbar ul li:hover ul {
display: block;
}

/* Ajout d'un espace pour ne pas cacher la div en dessous */
.menu-container {
margin-top: 70px; /* Ajuste selon la hauteur de ta navbar */
}
/* 🔹 Logo */
.logo {
display: flex;
align-items: center; /* Alignement vertical */
margin-left: 20px; /* Déplace légèrement à droite */
}

.logo img {
height: 70px; /* Ajuste la taille */
width: auto; /* Garde le ratio */
}


/* 🔹 Menu burger à droite */
.menu-burger {
    font-size: 50px;
    color: white;
    cursor: pointer;
    display: none; /* Caché sur PC */
    width: 50px; /* Augmente la largeur */
    height: 40px; /* Augmente la hauteur */
}


/* 🔹 Liste principale */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    transition: 0.3s;
}

.nav-links a:hover {
    background: red;
}

/* 🔹 Sous-menu */
.submenu {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    top: 100%;
    left: 0;
}

.submenu li {
    display: block;
}

.submenu li a {
    padding: 10px;
    display: block;
    color: white;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu li a:hover {
    background: darkred;
}

/* 🔹 Afficher le sous-menu au survol */
.has-submenu:hover .submenu {
    display: block;
}

/* 📱 Responsive Design */
@media screen and (max-width: 768px) {
    .menu-burger {
        display: block; /* Afficher le menu burger */
    }

    .nav-links {
        display: none; /* Caché par défaut sur mobile */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 250px;
        background: black;
        padding: 10px 0;
        text-align: right;
    }

    .nav-links.show {
        display: flex; /* Afficher le menu quand actif */
    }

    .nav-links li {
        padding-right: 20px;
    }

    .submenu {
        position: relative;
        width: 100%;
        height: 100%;
    }
}


