.wrapper-footer {
    --footer-bg: #F4F1EA;
    --footer-text: #323232;

    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);

    font-size: 1em;
    text-align: center;

    margin-top: clamp(40px, 10vw,120px);
}

.wrapper-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(40px, 6vw, 90px);
    background: url('i/footer-top.svg') bottom center;
    background-size: 100% 100%;
    pointer-events: none;
}

.wrapper-footer::after {
    content: '';
    background: url('i/footer-bottom.svg') top center no-repeat;
    background-size: 100% auto;
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 330;
}


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

.wrapper-footer a {
    text-decoration: none;
}

/* Logo */
.wrapper-footer__logo {
    position: relative;
    z-index: 1;
    width: 320px;
    margin: 0 auto;
    margin-top: -60px;
}

.wrapper-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Colonnes */
.wrapper-footer__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--pix-space-l);
    max-width: 1600px;
    margin: 0 auto;

    margin-top: 120px;

    padding-inline: 20px;
}

.wrapper-footer__column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper-footer__heading {
    font-family: var(--pix-heading-font);
    font-weight: 700;
    line-height: 1.1;
    font-size: 1.6em;
    text-transform: uppercase;
    margin: 0 0 0.8em;
}

.wrapper-footer__text,
.wrapper-footer__contact {
    margin: 0;
    line-height: 1.6;
}

.wrapper-footer__text:is(address) {
    font-style: normal;
}

.wrapper-footer__link {
    font-weight: 700;
}

.wrapper-footer__link--plan {
    display: inline-block;
    margin-bottom: 0.6em;
}

.wrapper-footer__contact {
    line-height: 1.9;
}

.wrapper-footer__hours {
    margin: 0 0 1.8em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Bouton RDV */
.wrapper-footer__btn-rdv {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.8em 1.6em;
    border-radius: 999px;
    background: var(--pix-gradient);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    transition: filter 0.2s, transform 0.2s;
}

.wrapper-footer__btn-rdv:hover {
    filter: brightness(1.30);
    color: #fff;
}

.wrapper-footer__btn-rdv-icon {
    flex-shrink: 0;
}

/* Réseaux */
.footer-reseaux {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
}

.footer-reseaux__link {
    display: inline-block;
}

.footer-reseaux__image {
    display: block;
    height: 3.2em;
    width: auto;
}

/* Boutiques */
.wrapper-footer__boutiques {
    max-width: 1500px;
    margin: clamp(50px, 12vw,150px) auto 0;
    padding: 0 1em;
}

.wrapper-footer__boutiques-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 7vw, 100px);
}

.boutique-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--pix-radius-s);
    overflow: hidden;
    text-align: center;
}

.boutique-card__figure {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.boutique-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.boutique-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2em 1em;
}

.boutique-card__title {
    font-family: "PT Serif", serif;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--footer-title);
    margin: 0 0 0.6em;
}

.boutique-card__categories {
    margin: 0;
    font-weight: 700;
    font-size: 0.85em;
}

.boutique-card__ville {
    margin: 0 0 0.9em;
    font-size: 1em;
}

.boutique-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em 1.4em;
    border-radius: 999px;
    background: #F4F1EA;
    border: 2px solid #fff;
    color: #004985;
    font-size: 0.75em;
    text-transform: uppercase;
    transition: background 0.2s;
}


/* Mentions */
.wrapper-footer__mentions {
    position: relative;
    z-index: 1;
    margin-top: 120px;
    font-size: 0.85em;
    color: #B5B5B5;
    padding: 0 1em;
}

.wrapper-footer__mentions p {
    margin: 0 0 1em;
}

.wrapper-footer__mentions a {
    color: #B5B5B5;
    font-weight: 700;
}

.wrapper-footer__mentions a:hover {
    color: #323232;
}

.mention__paiements {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

/* Responsive */
@media (max-width: 1350px) {
    .wrapper-footer__logo {
        width: 280px;
        margin-top: -45px;
    }

    .wrapper-footer__container {
        margin-top: 90px;
    }

    .wrapper-footer__heading {
        font-size: 1.3em;
    }

    .footer-reseaux__image {
        height: 2.6em;
    }
}

@media (max-width: 1040px) {
    .wrapper-footer__logo {
        width: 220px;
        margin-top: -30px;
    }

    .wrapper-footer__container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2em;
        margin-top: 70px;
    }

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

    .wrapper-footer__boutiques-list {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
        gap: 1em;
    }

    .wrapper-footer__hours {
        margin-bottom: 1em;
    }
    
}

@media (max-width: 610px) {
    .wrapper-footer {
        font-size: 18px;
    }
    .wrapper-footer__logo {
        width: 180px;
        margin-top: -20px;
    }

    .wrapper-footer__container {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .boutique-card {
        grid-template-columns: 1fr;
    }

    .boutique-card__figure {
        max-height: 200px;
    }

    .boutique-card__image {
        max-width: 200px;
    }

    a.email-link {
        font-size: 0.9em;
    }
}
