/*
 * Streamer-Hub CMS — Pied de page public normalisé
 * CH-014.2.20
 */
.public-footer {
    overflow: hidden;
    padding-block: 0 !important;
}

.ch-public-footer {
    --ch-footer-border: rgba(127, 127, 127, .24);
    width: 100%;
    padding: clamp(30px, 5vw, 58px) 0 22px;
    color: inherit;
    text-align: left;
}


@supports (color: color-mix(in srgb, black, white)) {
    .ch-public-footer { --ch-footer-border: color-mix(in srgb, currentColor 16%, transparent); }
}

.ch-public-footer--custom-colors {
    color: var(--ch-footer-text);
    background: var(--ch-footer-bg);
    box-shadow: 0 0 0 100vmax var(--ch-footer-bg);
    clip-path: inset(0 -100vmax);
}

.ch-public-footer__main {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(0, 1.8fr);
    gap: clamp(28px, 6vw, 82px);
    align-items: start;
}

.ch-public-footer__brand {
    display: grid;
    justify-items: start;
    gap: 13px;
    min-width: 0;
}

.ch-public-footer__logo {
    display: block;
    width: auto;
    max-width: min(210px, 100%);
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.ch-public-footer__title {
    color: inherit;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.2;
}

.ch-public-footer__description {
    max-width: 590px;
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.7;
    opacity: .78;
}

.ch-public-footer__community-links,
.ch-public-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
}

.ch-public-footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

.ch-public-footer--custom-colors a,
.ch-public-footer--custom-colors .ch-public-footer__column > strong {
    color: var(--ch-footer-accent);
}

.ch-public-footer a:hover,
.ch-public-footer a:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ch-public-footer__community-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ch-footer-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ch-public-footer__extensions:empty { display: none; }

.ch-public-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 42px);
}

.ch-public-footer__column {
    display: grid;
    align-content: start;
    gap: 13px;
    min-width: 0;
}

.ch-public-footer__column > strong {
    color: inherit;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ch-public-footer__links {
    display: grid;
    justify-items: start;
    gap: 9px;
}

.ch-public-footer__links a {
    max-width: 100%;
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
    opacity: .74;
    overflow-wrap: anywhere;
}

.ch-public-footer:not(.has-main-content) {
    padding-block: 18px;
}

.ch-public-footer:not(.has-main-content) .ch-public-footer__bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ch-public-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "credit copyright legal";
    align-items: center;
    gap: 18px clamp(18px, 3vw, 44px);
    margin-top: clamp(28px, 5vw, 52px);
    padding-top: 19px;
    border-top: 1px solid var(--ch-footer-border);
}

/* SH-016.4.3 — ligne légale homogène : crédit à gauche, copyright centré, mentions à droite. */
.ch-public-footer__bottom > * {
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: .015em !important;
    text-transform: none !important;
    opacity: .82;
}

.ch-public-footer__credit {
    grid-area: credit;
    justify-self: start;
    text-align: left;
}

.ch-public-footer__copyright {
    grid-area: copyright;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}

.ch-public-footer__legal {
    grid-area: legal;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.ch-public-footer__credit a,
.ch-public-footer__legal {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}

.ch-public-footer.has-credit-only .ch-public-footer__credit {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.ch-public-footer--custom-colors .ch-public-footer__credit,
.ch-public-footer--custom-colors .ch-public-footer__legal {
    color: var(--ch-footer-accent) !important;
}

.ch-public-footer--centered {
    text-align: center;
}

.ch-public-footer--centered .ch-public-footer__main {
    grid-template-columns: 1fr;
    justify-items: center;
}

.ch-public-footer--centered .ch-public-footer__brand,
.ch-public-footer--centered .ch-public-footer__links {
    justify-items: center;
}

.ch-public-footer--centered .ch-public-footer__logo {
    object-position: center;
}

.ch-public-footer--centered .ch-public-footer__community-links {
    justify-content: center;
}

.ch-public-footer--centered .ch-public-footer__columns {
    width: min(880px, 100%);
}

.ch-public-footer--minimal {
    padding-block: 24px 18px;
}

.ch-public-footer--minimal .ch-public-footer__main {
    display: block;
}

.ch-public-footer--minimal .ch-public-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px 20px;
}

.ch-public-footer--minimal .ch-public-footer__logo {
    height: 42px;
}

.ch-public-footer--minimal .ch-public-footer__description {
    display: none;
}

.ch-public-footer--minimal .ch-public-footer__bottom {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .ch-public-footer__main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ch-public-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ch-public-footer {
        padding-top: 34px;
    }

    .ch-public-footer__columns {
        grid-template-columns: 1fr;
    }

    .ch-public-footer--minimal .ch-public-footer__brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .ch-public-footer__bottom {
        grid-template-columns: 1fr;
        grid-template-areas:
            "credit"
            "copyright"
            "legal";
        justify-items: center;
        gap: 9px;
        text-align: center;
    }

    .ch-public-footer__credit,
    .ch-public-footer__copyright,
    .ch-public-footer__legal {
        justify-self: center;
        text-align: center;
        white-space: normal;
    }
}


/* Streamer-Hub CMS — page Mentions légales */
.ch-public-footer__legal { text-decoration: none; }
.ch-public-footer__legal:hover, .ch-public-footer__legal:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.ch-public-footer__credit a { text-decoration: none; }
.sh-legal-notice {
    display: grid;
    gap: var(--sh-legal-section-gap, 1.25rem);
    font-size: var(--sh-legal-text-size, 1rem);
    line-height: 1.65;
}
.sh-legal-notice section {
    padding: var(--sh-legal-section-padding, 1.25rem);
    border: var(--sh-legal-section-border-width, 1px) solid var(--sh-legal-section-border-color, color-mix(in srgb, currentColor 18%, transparent));
    border-radius: var(--sh-legal-section-radius, .75rem);
    background: var(--sh-legal-section-background, color-mix(in srgb, currentColor 4%, transparent));
}
.sh-legal-notice h2 {
    margin: 0 0 .75rem;
    font-size: var(--sh-legal-heading-size, 1.15rem);
    line-height: 1.25;
}
.sh-legal-notice p { margin: .45rem 0 0; }
.sh-legal-notice a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
.sh-legal-notice__updated { opacity: .7; font-size: .9em; }

/* SH-016.3.1 — protection des adresses des mentions légales */
.sh-protected-email { display: inline-flex; align-items: center; gap: .35rem; }
.sh-protected-email__button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.sh-protected-email__button:hover,
.sh-protected-email__button:focus-visible { text-decoration-thickness: 2px; }
.sh-protected-email__button:focus-visible { outline: 2px solid currentColor; outline-offset: .2rem; border-radius: .15rem; }
.sh-protected-email--text,
.sh-protected-email__fallback { overflow-wrap: anywhere; }
