/* =========================================================
   UPB — FOOTER GLOBAL (voir upb-footer.php)
   Conforme à l'artefact validé « Footer UPB — Desktop & Mobile ».
   Palette officielle UPB : beige doux #FBF6EE · rose accent #D98FA0 ·
   chocolat #704B3E (traits : chocolat à faible opacité).
   Point de rupture desktop / mobile : 1280px (même que le header).
   Adaptation ≤ 374px : liens légaux centrés et empilés.
   Le footer natif d'Astra (#colophon) n'est masqué que si ce footer
   est présent juste avant lui.
   ========================================================= */

.upb-ftr ~ #colophon,
.upb-ftr ~ .site-footer {
    display: none !important;
}

.upb-ftr,
.upb-ftr *,
.upb-ftr *::before,
.upb-ftr *::after {
    box-sizing: border-box;
}

/* ---------- Base mobile (≤ 1279px) ---------- */
.upb-ftr {
    width: 100%;
    padding: 64px 24px 40px;
    background: #FBF6EE;
    color: #704B3E;
    font-family: Inter, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upb-ftr a,
.upb-ftr a:hover,
.upb-ftr a:focus {
    color: #704B3E;
    text-decoration: none;
    box-shadow: none;
}

.upb-ftr a:focus-visible {
    outline: 2px solid #704B3E;
    outline-offset: 4px;
    border-radius: 4px;
}

.upb-ftr ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.upb-ftr li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.upb-ftr .upb-ftr-mark {
    display: block;
    width: 48px;
    height: 48px;
}

.upb-ftr .upb-ftr-name {
    margin: 22px 0 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.15;
    color: #704B3E;
    text-align: center;
}

.upb-ftr .upb-ftr-br {
    display: inline;
}

.upb-ftr .upb-ftr-sign {
    margin: 18px 0 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #704B3E;
    text-align: center;
}

.upb-ftr .upb-ftr-sep {
    width: 100%;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.upb-ftr .upb-ftr-sep::before,
.upb-ftr .upb-ftr-sep::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: rgba(112, 75, 62, 0.18);
}

.upb-ftr .upb-ftr-sep span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D98FA0;
}

.upb-ftr .upb-ftr-nav {
    margin-top: 14px;
}

.upb-ftr .upb-ftr-nav .upb-ftr-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upb-ftr .upb-ftr-nav a {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.upb-ftr .upb-ftr-ext {
    flex: none;
    width: 12px;
    height: 12px;
    margin-left: 8px;
}

.upb-ftr .upb-ftr-rule {
    width: 100%;
    height: 1px;
    margin-top: 14px;
    background: rgba(112, 75, 62, 0.18);
}

.upb-ftr .upb-ftr-legal {
    margin-top: 14px;
}

.upb-ftr .upb-ftr-legal .upb-ftr-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    line-height: 1.2;
}

.upb-ftr .upb-ftr-legal .upb-ftr-item {
    display: flex;
    align-items: center;
}

.upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item {
    margin-left: 16px;
    gap: 16px;
}

.upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item::before {
    content: "";
    width: 1px;
    height: 13px;
    background: rgba(112, 75, 62, 0.28);
}

.upb-ftr .upb-ftr-legal a {
    padding: 14px 0;
    font-size: inherit;
    line-height: inherit;
}

/* ---------- Adaptation ≤ 374px : liens légaux empilés ---------- */
@media (max-width: 374px) {
    .upb-ftr .upb-ftr-legal {
        margin-top: 6px;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-list {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item {
        margin-left: 0;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item::before {
        display: none;
    }

    .upb-ftr .upb-ftr-legal a {
        padding: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ---------- Desktop (≥ 1280px) ---------- */
@media (min-width: 1280px) {
    .upb-ftr {
        padding: 88px 40px 44px;
    }

    .upb-ftr .upb-ftr-mark {
        width: 56px;
        height: 56px;
    }

    .upb-ftr .upb-ftr-name {
        margin-top: 28px;
        font-size: 38px;
        line-height: 1.1;
    }

    .upb-ftr .upb-ftr-br {
        display: none;
    }

    .upb-ftr .upb-ftr-sign {
        margin-top: 22px;
        font-size: 21px;
    }

    .upb-ftr .upb-ftr-sep {
        max-width: 960px;
        margin-top: 52px;
        gap: 24px;
    }

    .upb-ftr .upb-ftr-nav {
        margin-top: 40px;
    }

    .upb-ftr .upb-ftr-nav .upb-ftr-list {
        flex-direction: row;
        gap: 64px;
    }

    .upb-ftr .upb-ftr-nav a {
        min-height: 0;
        padding: 6px 0;
        font-size: 13px;
    }

    .upb-ftr .upb-ftr-nav a:hover {
        box-shadow: inset 0 -1px 0 #D98FA0;
    }

    .upb-ftr .upb-ftr-ext {
        width: 11px;
        height: 11px;
        margin-left: 7px;
    }

    .upb-ftr .upb-ftr-rule {
        max-width: 960px;
        margin-top: 44px;
    }

    .upb-ftr .upb-ftr-legal {
        margin-top: 26px;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-list {
        flex-wrap: nowrap;
        font-size: 13px;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item {
        margin-left: 28px;
        gap: 28px;
    }

    .upb-ftr .upb-ftr-legal .upb-ftr-item + .upb-ftr-item::before {
        height: 14px;
    }

    .upb-ftr .upb-ftr-legal a {
        padding: 0;
    }

    .upb-ftr .upb-ftr-legal a:hover {
        text-decoration: underline;
        text-decoration-color: #D98FA0;
        text-underline-offset: 4px;
    }
}
