.footer {
    padding: 15vw 0 4vh;
    width: 100%;

    background-color: var(--color-red);
    background-size: cover;
    background-position: center;

    mask-image: url(/wp-content/themes/domainegregoire/assets/img/footer-mask.png);
    mask-size: cover;
    mask-position: top;
    mask-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 4vh;
}

.footer__social {
    margin-top: 8vh;

    display: flex;
    gap: 0.5em;
}

.footer__social .social__link {
    display: flex;
    justify-content: center;
    align-items: flex-end;

    width: max(35px, 4vh);
    aspect-ratio: 1;
}

.footer__social .social__link.instagram img {
    width: 85%;
    aspect-ratio: 1;
}

.footer__social .social__link.email img,
.footer__social .social__link.phone img {
    width: 75%;
    aspect-ratio: 1;
}

.footer__title,
.footer__subject {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 0;
}

.footer__address {
    text-align: center;
    color: var(--color-white);
    margin: 0.5em 0 0;
}

.footer__nav .menu {
    display: flex;
}

.footer__nav .menu li {
    text-align: center;
}

.footer__nav .menu li a {
    color: var(--color-white);
}

.footer__nav .menu li:not(:last-of-type) a:after {
    content: '|';
    padding: 0 0.5em;
}

/* Lien « Gestion des cookies » (ouvre le panneau de consentement). */
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer__cookies {
    color: var(--color-white);
    cursor: pointer;
}

.footer__nav .menu + .footer__cookies:before {
    content: '|';
    padding: 0 0.5em;
}

@media screen and (max-width: 767px) {
    .footer__nav {
        flex-direction: column;
        gap: 1em;
    }

    .footer__nav .menu {
        flex-direction: column;
        gap: 1em;
    }

    .footer__nav .menu li:not(:last-of-type) a:after {
        content: unset;
    }

    .footer__nav .menu + .footer__cookies:before {
        content: unset;
    }
}

.go-top {
    position: fixed;
    right: max(20px, 2vw);
    bottom: max(20px, 2vw);
    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;
    padding: 0;

    color: var(--color-white);
    background-color: var(--color-red);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-top:hover {
    opacity: 0.85;
}

.go-top svg {
    width: 55%;
    height: 55%;
}
