/* -------------
    HEADER — views/structure/header.html.twig
    États .fixed / .scrolling / .reset-fixed : mainJs (spe.fixedHeader)
------------- */

.header {
    position: fixed;
    top: 0;
    background-color: var(--white);
    width: 100%;
    z-index: 2;
}

.header.reset-fixed {
    position: static;
}

.header.fixed {
    position: fixed;
    transform: translateY(-100%);
    transition: transform .4s;
}

.header.fixed:not(.scrolling) {
    transform: translateY(0);
}

.header.fixed.scrolling.reset-fixed {
    transition: transform 0s;
}

.header__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--container-padding);
}

.header__logo {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0 7px;
}

.header__logo a {
    color: inherit;
    text-decoration: none;
}

.header__logo img {
    min-width: 105px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* -------------
    FOOTER — views/structure/footer.html.twig
------------- */

/* Fond clair : le logo du footer (options ACF logo_dark) est foncé */
.footer {
    background-color: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    margin-top: auto;
    padding: 30px 0;
}

@media (max-width: 991px) {
    .footer {
        padding-bottom: 90px; /* barre de menu mobile */
    }
}

.footer a {
    color: inherit;
}

.footer__inner,
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 992px) {
    .footer__inner,
    .footer__brand {
        flex-direction: row;
    }

    .footer__inner {
        justify-content: space-between;
    }

    .footer__brand {
        gap: 60px;
    }
}
