.wrapper-footer {
    position: relative;
    background-color: var(--pix-color-primary);
    color: var(--pix-color-background);
    padding: clamp(100px, 20vw, 180px) 20px 50px;

    background-image: url('https://adnpixec.com/549_petitjeanetch/wp-content/uploads/2026/06/footer-background-2x.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

:where(.wrapper-footer figure) {
    margin: 0;
}

.wrapper-footer__footer-top {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('i/pattern-footer-bandeau.svg') repeat-x bottom center;
    background-size: auto 200%;
}

.wrapper-footer__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.wrapper-footer__footer-menu {
    padding: 0;
    list-style: none;
    text-align: center;
}

.wrapper-footer__footer-menu a {
    color: var(--pix-color-background);
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    padding: 1.6px 0;

    &:hover {
      color: var(--pix-color-accent);
    }
}

.wrapper-footer__footer-menu a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: url('i/external.svg') center center no-repeat;
    background-size: contain;
    margin-left: 0.2em;
    margin-bottom: 0.2em;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(92%) sepia(19%) saturate(343%) hue-rotate(323deg) brightness(106%) contrast(96%);
}
.wrapper-footer__footer-menu a[target="_blank"]:hover::after {
    filter: none;
}

.wrapper-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.wrapper-footer__figure {
    max-width: 290px;
}

.wrapper-footer__text {
    text-align: center;
    margin-top: var(--pix-base-font-size);
}

.wrapper-footer__heading {
    color: currentColor;
    font-family: var(--pix-heading-font);
    font-weight: 400;
    line-height: 1;
    font-size: 32px;
    margin-bottom: 8px;

    &::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background: var(--pix-color-accent);
        margin: 0 auto;
        margin-top: 8px;
    }
}

.footer-nav__list {
    text-align: center;
}

.footer-nav__link {
    color: var(--pix-color-backgroud);
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    padding: 1.6px 0;

    &:hover {
        color: var(--pix-color-accent);
    }
}


.footer-reseaux {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1.5em;
}
.footer-reseaux__link {
    display: inline-block;
}
.footer-reseaux__link:hover .footer-reseaux__image {
    filter: brightness(0) saturate(100%) invert(86%) sepia(35%) saturate(646%) hue-rotate(162deg) brightness(98%) contrast(79%);
}

.wrapper-footer__footer-button {
    margin-top: 16px;
}

.wrapper-footer__footer-button-link {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--pix-color-accent);
    color: var(--pix-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.wrapper-footer__footer-tradition {
    max-width: 260px;
    margin: 130px auto 80px;
}

.wrapper-footer__separator {
    max-width: 460px;
    margin: 0 auto 40px;
}

.mention__text {
    --link-color-hover: var(--pix-color-accent);
    a {
        color: currentcolor;
        text-decoration: none;
        font-weight: 500
    }
}

@media (width <= 1040px) {
    .wrapper-footer__container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }

    .wrapper-footer__column-column-1 {
        grid-column: 1 / 3;
    }
}

@media (width <= 610px) {
    .wrapper-footer__container {
        grid-template-columns: 1fr;
    }

    .wrapper-footer__column-column-1 {
        grid-column: 1;
    }

    .wrapper-footer__footer-tradition {
        max-width: 200px;
    }
}
