/* ==========================================================================
   FOOTER — pied de page (voir maquette : QR code, logo + accroche,
   navigation, mentions légales, partenaires). Mobile-first : les 3 blocs du
   haut s'empilent, passent en ligne à partir du desktop.
   ========================================================================== */
.site-footer {
    display: flex;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-text-light);

    max-width: 1600px;
    margin: 0 auto;
}

/* Même logique que .site-header/.site-header__inner (voir critical.css) : le
   fond du footer va bord à bord (porté par .site-footer), la largeur
   contrainte vit sur .site-footer__wrap, jamais sur .site-footer lui-même —
   mêmes paliers que .site-header__inner (90% par défaut, 74% dès 768px). */
.site-footer__wrap {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 90%;
    max-width: calc(1600px - 17%);
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .site-footer__wrap {
        width: 74%;
    }
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding-top: 3rem;
    border-top: 1px solid var(--color-secondary);
}

.site-footer__top-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 2
}

.site-footer__top-right {
    flex: 1;
}

/* .site-footer__qr {
    order: 2;
} */

.site-footer__qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px dashed var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-grey);
    text-align: center;
}

.site-footer__brand {
    /* order: 1; */
    max-width: 24rem;
}

.site-footer__logo {
    display: block;
    margin: 0 auto;
}

.site-footer__hotel-name {
    margin-top: 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    color: var(--color-secondary);
}

.site-footer__tagline {
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-grey);
}

.site-footer__nav {
    order: 3;
}

.site-footer__nav-title {
    font-size: var(--font-size-sm);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.site-footer__nav-list {
    margin-top: 1rem;
}

.site-footer__nav-list li {
    margin-top: 0.5rem;
}

.site-footer__nav-list a {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.site-footer__bottom {
    display: flex;
    /* flex-direction: column; */
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--color-secondary);
    font-size: var(--font-size-sm);
    color: var(--color-text-grey);
    text-align: center;

    padding-bottom: 2rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__legal a {
    text-decoration: underline;
}

.site-footer__legal-credit::after,
.site-footer__legal-links a:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 0.75rem;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

@media (min-width: 768px) {
    .site-footer__legal {
        justify-content: flex-start;
    }
}

.site-footer__partners {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    width: 100%;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .site-footer__partners {
        width: unset;
    }
}

.site-footer__partner-placeholder {
    padding: 0.5rem 1rem;
    border: 1px dashed var(--color-border);
    font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
    .site-footer__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .site-footer__qr {
        order: 1;
    }

    .site-footer__brand {
        order: 2;
        max-width: 28rem;
    }

    .site-footer__logo {
        margin: 0;
    }

    .site-footer__nav {
        order: 3;
    }

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
