/* ============================================================
   FOOTER
   À compléter une fois le design validé
   ============================================================ */

#site-footer {
    background: var(--color-black);
    color: var(--color-white, #FFFFFD);
    padding-block: 64px 0px;
    padding-inline: 32px;
    /* padding-top: 120px; */
    clip-path: ellipse(260% 55% at 50% 55%);
    transform: translateY(-16px);
}

/* Écart avec le dernier bloc : le translateY mord de 16 px sur sa marge basse,
   il ne restait que 24 px après un bloc en py-40. Sur le site seulement : dans le
   Shadow DOM de l'app, body ne vise rien et le fragment reste tel quel. */
body > #site-footer {
    margin-top: 80px;
}

/* Dernier bloc sur fond coloré : le footer reste collé, le fond passe derrière
   son arrondi (une marge laisserait une bande blanche entre les deux). Les 40 px
   passent dans la section, sous son contenu, sur son propre fond. */
body:has(#main-content > section:last-of-type[style*="background"]) > #site-footer {
    margin-top: 0;
}

#main-content > section:last-of-type[style*="background"] > :last-child {
    margin-bottom: 40px;
}
#site-footer *{
    color: var(--color-white);
}
#site-footer a{
    text-decoration: none;
    font-weight: 400;
}

/* Footer Top */
.footer-top {
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding-bottom: 32px;
}
.footer-top .infos{
    max-width: 300px;
}
.footer-top .infos .rs{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.footer-top .infos .rs img{
    width: 40px;
}
.footer-top > div:not(.infos){
   width: 100%;
}
    /* Menu Footer */
    .footer-top .menu-footer{
        display: flex;
        flex-direction: row;
        gap: 40px;
        justify-content: space-between;
        width: 100%;
    }
    .footer-top .menu-footer ul, .footer-top .menu-footer li{
        list-style: none;
        padding: 0px;
    }
    .footer-top .menu-footer > li > a{
        color: transparent !important;
        background: var(--gradient-titre);
        background-clip: text;
        font-family: "Cabinet";
        font-size: clamp(22px, 2.5vw, 28px);
        pointer-events: none;
        font-weight: 700 !important;
    }
    .footer-top .menu-footer .sub-menu{
        margin-bottom: 0;
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .footer-top .menu-footer .sub-menu > li{
        padding-right: 16px;
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: fit-content;
    }
    .footer-top .menu-footer .sub-menu > li::after{
        content: "";
        width: 8px;
        height: 8px;
        transform: rotate(-45deg) translateY(2px);
        border-bottom: solid 2px var(--color-white);
        border-right: solid 2px var(--color-white);
        transition: .3s;
    }
    .footer-top .menu-footer .sub-menu > li::before{
        content: "";
        width: 100%;
        height: 1px;
        background: var(--color-white);
        display: block;
        position: absolute;
        left: 0;
        bottom: -8px;
        clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
        transition: .3s;
    }
    .footer-top .menu-footer .sub-menu > li:hover::before{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .footer-top .menu-footer .sub-menu > li:hover::after{
        transform: rotate(-45deg) translateY(6px) translateX(4px);
    }

@media screen and (max-width:1150px) {
    .footer-top{
        flex-direction: column;
        align-items: center;
    }
    .footer-top .infos{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
@media screen and (max-width:850px) {
    .menu-footer{
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu-footer > li{
        min-width: calc(50% - 20px);
    }
}
@media screen and (max-width:650px){
    .menu-footer > li{
        width: 100%;
    }
    .footer-top .infos{
        align-items: start;
        text-align: start;
        width: 100%;
        max-width: none;
    }
}

/* Paiement sécurisé : texte + logos des cartes sur fond blanc */
.payments-footer{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 48px;
}
.payments-footer__titre{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}
.payments-footer__titre svg{
    flex-shrink: 0;
}
.payments-footer__logos{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.payments-footer__logos li{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 40px;
    padding: 5px 7px;
    background: var(--color-white);
    border-radius: 6px;
}
.payments-footer__logos img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media screen and (max-width:650px){
    .payments-footer{
        align-items: center;
    }
    .payments-footer__logos{
        justify-content: center;
    }
}
.footer-bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-block: 24px;
    border-top: solid 1px var(--color-secondary);
}
.footer-bottom .menu-legal{
    list-style: none;
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
}
.footer-bottom a:hover{
    text-decoration: underline !important;
}

@media screen and (max-width:1024px) {
    .footer-bottom{
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
@media screen and (max-width:768px) {
    #site-footer {
        clip-path: ellipse(450% 55% at 50% 55%);
    }
}