footer{
    display: flex;
    flex-direction: column;
    color: var(--wp--preset--color--blanc);
    & .footer-image{
        display: flex;
        width: 100%;
        height: 60vh;
        & img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        &.no-image{
            display: none;
        }
    }
    & .footer-container{
        display: flex;
        flex-direction: column;
        padding: 2rem var(--container-space) 1rem;
        background-color: var(--wp--preset--color--gris-fonce);
        min-height: 40vh;
        & .footer-wrapper{
            display: flex;
            justify-content: space-between;
            & .footer-col{
                display: flex;
                flex-direction: column;
                & .footer-logo {
                    width: 178px;
                }
                & .footer-infos{
                    padding-top: 1rem;
                    font-size: var(--wp--preset--font-size--m-text);
                }
                & .footer-menu{
                    & h4{
                        font-weight: 600;
                        font-size: var(--wp--preset--font-size--m-text);
                    }
                    & ul {
                        display: flex;
                        flex-direction: column;
                        gap: 0.5rem;
                        font-size: var(--wp--preset--font-size--xs-text);
                        & li{
                            & a{
                                color: var(--wp--preset--color--blanc);
                            }
                        }
                    }

                }
            }
            & .footer-up-btn{
                background: url(../svg/up_arrow.svg) no-repeat center center;
                width: 50px;
                height: 50px;
                cursor: pointer;
                transform: translateY(150%);
            }
            &:first-child{
                padding-bottom: 2rem;
                border-bottom: solid 1px var(--wp--preset--color--vert);
            }
            &:nth-child(2){
                display: flex;
                padding-top: 2rem;
                font-size: var(--wp--preset--font-size--xs-text);
                padding-bottom: 2rem;
                & .footer-legals{
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    & a{
                        color: var(--wp--preset--color--blanc);
                    }
                }
            }
        }
    }
}
@media (max-width:820px){
    footer{
        & .footer-container{
            & .footer-wrapper{
                flex-wrap: wrap;
                position: relative;
                & .footer-col{
                    width: 50%;
                    & .footer-menu{
                        & h4{
                            margin-top: 0;
                        }
                    }
                }
                & .footer-up-btn{
                    background: url(../svg/up_arrow.svg) no-repeat center center;
                    width: 50px;
                    height: 50px;
                    cursor: pointer;
                    transform: translateY(50%);
                    position: absolute;
                    top: 0;
                    right: 2rem;
                }  
            }
        }
    }
}
@media (max-width: 576px) { 
    footer{
        & .footer-container{
            & .footer-wrapper{
                flex-direction: column;
                & .footer-col{
                    width: 100%;
                    & .footer-menu{
                        & h4{
                            margin-top: 1rem;
                        }
                    }
                }
                & .footer-up-btn{
                    background: url(../svg/up_arrow.svg) no-repeat center center;
                    width: 50px;
                    height: 50px;
                    cursor: pointer;
                    transform: translateY(0%);
                    position: absolute;
                    top: 0;
                    right: 2rem;
                }  
            }
        }
    }
}