nav {
    background-color: #f8f8f8;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Limite ici aussi pour aligner le contenu du menu */
    margin: auto;
    padding: 0 15px;
}

.navbar {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.navbar li {
    margin-right: 15px;
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #333;
    padding: 3px 5px; /* Réduit le remplissage pour rendre la survol plus fine */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s; /* Transition ajoutée */
}

.navbar a:hover, .navbar li.selected a {
    background-color: lightblue; /* Couleur de fond en bleu clair au survol */
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
    width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar li:hover .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .navbar li {
        margin-bottom: 10px;
        margin-right: 0;
    }

}

.navbar-brand {
            text-decoration: none; 
            color: #333; 
            font-size: 3.5rem; 
            font-weight: bold; 
            transition: color 0.3s ease, transform 0.3s ease; 
            background: linear-gradient(45deg, #4CAF50, #8BC34A);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .navbar-brand:hover {
            color: #4CAF50; 
            transform: rotate(5deg) scale(1.05); /* Léger effet de rotation et de mise à l'échelle */
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Éclat lors du survol */
        }
        
        .navbar-brand::after {
            content: ''; 
            display: block;
            width: 0;
            height: 2px; 
            background: #4CAF50; 
            transition: width 0.4s; 
            margin: auto; 
        }

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


.hamburger {
    display: none;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar {
        display: none;
        width: 100%;
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
    }
}