/* ============================================
   FOOTER
   Shared across all pages
   ============================================ */

.footer {
    background: var(--ocre);
    padding: 7.5556rem 0 0;
    color: var(--cuivre);
    position: relative;
}

.footer-grid-layout { align-items: flex-start; }

.footer-col h3 {
    /* h3 typography from base — only color varies */
    color: var(--cuivre);
    padding: 0.5556rem 0;
    margin-bottom: 2rem;
}

.footer-col p,
.footer-col a,
.footer-col li {
    font-family: var(--font-body);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body-lg);
    color: var(--cuivre);
}

.footer-col a:hover { opacity: 0.8; }

.footer-contact-info { padding: 0.5556rem 0; }
.footer-contact-info p { margin-bottom: 0.8889rem; }
.footer-contact-info p:last-child { margin-bottom: 0; }

.footer-nav-list { display: flex; flex-direction: column; gap: 0.1111rem; }
.footer-nav-list li { padding: 0.5556rem 0; }

.footer-address-map {
    /* Span 5 of the column's 6 grid tracks so the map never reaches the
       last column on the right. */
    position: relative; /* ancre le bouton-substitut de consentement (.map-consent) */
    width: calc(5 * var(--col) + 4 * var(--grid-gutter));
    max-width: 100%;
    height: clamp(12.2222rem, 16vw, 17.7778rem);
    background: var(--gray-placeholder);
    border-radius: 1.6667rem;
    margin-bottom: 0.5556rem;
    overflow: hidden;
}

.footer-address-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-address-text { padding: 0.5556rem 0; }

/* Bottom bar — laid out on the SAME 12-column grid as the footer body so the
   credit sits under Contact (col 1), the legal links under Navigation (col 4),
   and the "Haut de page" group is right-aligned to column 12. */
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.1111rem;
    padding-bottom: 2.2222rem;
}

.footer-bottom-grid { align-items: center; }

.footer-credit,
.footer-legal-links a {
    font-family: var(--font-body);
    font-size: var(--fs-ui);
    font-weight: var(--fw-regular);
    line-height: var(--lh-ui);
    color: var(--cuivre);
}

/* Groupe de liens légaux (Mentions légales · Gérer les cookies) tenu serré. */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1.6667rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2.2778rem;
}

.footer-bottom-right a {
    font-family: var(--font-body);
    font-size: var(--fs-ui);
    font-weight: var(--fw-regular);
    line-height: var(--lh-ui);
    color: var(--cuivre);
}

.scroll-top-btn {
    width: 3.6111rem;
    height: 3.6111rem;
    background: var(--cuivre);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-top-btn:hover { transform: translateY(-0.1667rem); opacity: 0.9; }
.scroll-top-btn svg { stroke: var(--ocre); }

.footer-social {
    display: flex;
    gap: 2.7222rem;
    margin-top: 1.6667rem;
}

.footer-social a {
    width: 3.6111rem;
    height: 3.6111rem;
    background: var(--cuivre);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover { transform: translateY(-0.1667rem); opacity: 0.9; }

.footer-social a svg { stroke: var(--ocre); }

/* ---------- TEAL VARIANT (theme="teal") ----------
   Teal background + gold (--or) text/accents. Shared across any page that
   sets <ancora-footer theme="teal"> (kinésiologie, contact, …). */
.footer--teal { background: var(--teal); border: 1px solid var(--or); }

.footer--teal .footer-col h3,
.footer--teal .footer-col p,
.footer--teal .footer-col a,
.footer--teal .footer-col li,
.footer--teal .footer-credit,
.footer--teal .footer-legal-links a,
.footer--teal .footer-bottom-right a { color: var(--or); }

.footer--teal .scroll-top-btn { background: var(--or); }
.footer--teal .scroll-top-btn svg { stroke: var(--teal); }

.footer--teal .footer-social a { background: var(--or); }
.footer--teal .footer-social a svg { stroke: var(--teal); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .footer-address-map { width: 100%; }

    /* Narrower than the 3-up footer body: drop the 12-col placement and stack. */
    .footer-bottom-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1111rem;
    }

    .footer-bottom-right { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .footer { padding: 3.3333rem 1.1111rem 0; }
}

@media (max-width: 480px) {
    .footer-address-map { height: 12.2222rem; }
}
