* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px; /* éviter que le contenu passe sous le header */
}

header {
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo à gauche / burger à droite */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Effet de fond du header après défilement */
header.scrolled {
    background-color: brown;
    transition: background-color 0.4s ease;
}


.logo-container {
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(6.5px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255);
    border-radius: 25px;
    padding: 15px 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}


nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* BOUTON BURGER */
.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: rgb(255, 255, 255);
}

/* VERSION MOBILE */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: -100%; /* caché hors écran */
        width: 100%;
        height: 100vh;
        background-color: #6e6e6e;
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 9998;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    nav ul li a {
        font-size: 20px;
        font-weight: bold;
        color: white;
    }

    .burger {
        display: block;
        z-index: 9999; /* au-dessus du menu */
    }

    /* Quand le menu est actif */
    nav.active {
        left: 50%; /* plein écran */
        padding-top: 25%;
    }
}
