nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
    background: #fff;
}

nav .logo {
    position: absolute;
    left: 20px;
    height: 40px;
}

.hamburger {
    height: var(--header-height -10px);
    padding-right: 10px;
    font-size: 30px;
    display: none;
}

.nav-title {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #333;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    padding: 10px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        height: 50px;
        justify-content: space-between;
        cursor: pointer;
    }

    nav .logo {
        position: static;
        display: block;
        transform: translateX(10px);
    }

    .hamburger {
        display: block;
    }

    .nav-title {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        width: 100%;
        border-top: 1px solid #ccc;
        overflow: hidden;
        max-height: 0; /* Fermé */
        transition: max-height 0.3s ease;
    }

    .nav-list a {
        display: block;
        width: 100%;
    }

    nav.open .nav-list {
        max-height: 400px; /* Assez pour tout le menu */
    }
}

@media (min-width: 768px) and (max-width: 950px) {
    .nav-list a {
        font-size: 12px;
    }
}