/* ===== NAV HAMBURGER — partagé entre toutes les pages secondaires ===== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #514988;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-logo { height: 64px; width: auto; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-placeholder {
        position: relative;
        padding: 14px 4%;
    }
    .nav-logo { height: 52px; }

    .nav-placeholder nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #F8F4EF;
        flex-direction: column;
        padding: 4px 5% 18px;
        z-index: 200;
        border-top: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    .nav-placeholder nav.open { display: flex; }
    .nav-placeholder nav a {
        margin-left: 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        font-size: 0.9rem;
    }
    .nav-placeholder nav a:last-child { border-bottom: none; }
}

/* ===== BOUTON RETOUR EN HAUT (mobile uniquement) ===== */
#btn-top {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 16px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2C3E50;
    color: #F5E6C8;
    font-size: 1.4rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
@media (max-width: 900px) {
    #btn-top.visible { display: flex; }
}
