/* Reset & Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 🔹 Barre de navigation */
.navbar {
    position: fixed;
    display: flex;
    width: 100%;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    background-color: #E3F2E3;
    padding: 15px 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 5; 
}

/* 🔹 Logo */
.logo img {
    width: 50px;
    height: 50px;
}

/* 🔹 Menu principal */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #2C5E2E;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #4A8D4A;
}

/* 🔹 Bouton d'inscription */
.btn-inscription {
    background-color: #C3E6CB;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    color: #2C5E2E;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-inscription:hover {
    background-color: #A8D5B8;
}

/* 🏆 Menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 📱 Mobile : Menu burger visible */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #d4e7d4;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    /* Animation du menu burger */
    .burger.toggle div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    @media screen and (max-width: 768px) {
        .logo img {
            width: 35px; /* Taille réduite */
            height: 35px;
        }
    }
    
}
