/* Navigation commune du site : sobre, sticky, extensible.
   Ajouter une page = ajouter un <li> dans .nav-links. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid #E5E9F2;
}

.site-nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #16213B;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 28px;
    display: block;
}

.brand:hover {
    color: #0070F2;
}

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

.nav-links a {
    color: #66738C;
    text-decoration: none;
    font-size: 0.98em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: #0070F2;
}

.nav-links a[aria-current="page"] {
    color: #16213B;
    font-weight: 600;
    border-bottom-color: #0070F2;
}

/* Bouton accordeon, visible seulement sur mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #16213B;
    margin: 5px 0;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-nav {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        padding-top: 6px;
        border-top: 1px solid #E5E9F2;
    }

    .site-nav.open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.05em;
        border-bottom: none;
    }

    .nav-links a[aria-current="page"] {
        color: #0070F2;
        border-bottom: none;
    }
}
