/* -------------------------- FOOTER TOP -------------------------- */

#footer .footerTop{
    padding-block: 100px 120px;
    background-color: var(--primary);
    border-radius: 40px 40px 0px 0px;
}

#footer .footerTop .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#footer .footerTop .titre{
    font-size: 43px;
    line-height: 50px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    font-family: "alwyn-new-web", sans-serif;
}

#footer .footerTop .paragraphe,
#footer .footerTop .paragraphe *{
    font-size: 20px;
    line-height: 27px;
    color: #fff;
    margin-bottom: 24px;
    max-width: 750px;
    margin-inline: auto;
    text-align: center;
}

@media (min-width: 993px){
    #footer .footerTop .btn:hover{
        border-color: #fff;
    }
}

@media (max-width: 992px){
    #footer .footerTop{
        padding-block: 50px 70px;
        border-radius: 20px 20px 0px 0px;
    }
    #footer .footerTop .titre{
        font-size: 30px;
        line-height: 35px;
    }
    #footer .footerTop .paragraphe,
    #footer .footerTop .paragraphe *{
        font-size: 16px;
        line-height: 22px;
    }
}

/* -------------------------- FOOTER BOTTOM -------------------------- */

#footer .footerBottom{
    padding-block: 0px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 30px;
}

#footer .footerBottom *{
    color: var(--primary);
    font-size: 13px;
    line-height: 18px;
}

/* -------------------------- FOOTER MIDDLE -------------------------- */

#footer .footerMiddle{
    padding-block: 36px 50px;
    background-color: #fff;
}

#footer .footerMiddle .container{
    display: flex;
    justify-content: space-between;
    gap: 40px 80px;
}

#footer .footerMiddle .menu-footer-container{
    width: 100%;
}

#footer .footerMiddle #menu-footer{
    display: flex;
    justify-content: space-between;
    gap: 40px 80px;
}

#footer .footerMiddle #menu-footer > li > a{
    text-transform: uppercase;
    font-size: 20px;
    line-height: 27px;
    color: var(--primary);
}

#footer .footerMiddle #menu-footer > li.customLink > a{
    cursor: default;
    pointer-events: none;
}

#footer .footerMiddle #menu-footer > li .sub-menu{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

#footer .footerMiddle #menu-footer > li .sub-menu li a{
    font-size: 16px;
    line-height: 22px;
    color: var(--primary);
}

#footer .footerMiddle .logo,
#footer .footerMiddle img{
    max-width: 200px;
    display: block;
}

#footer .footerMiddle .reseaux{
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reseaux li{
    border-radius: 8px;
    border: solid 1px var(--primary);
    height: 40px;
    background-color: #fff;
}

.reseaux li a{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 45px;
    gap: 12px;
    height: 100%;
}

.reseaux li a,
.reseaux li p{
    font-size: 16px;
    line-height: 22px;
    color: var(--primary);
}

.reseaux li svg{
    max-height: 20px; 
}

@media (min-width: 993px){
    .reseaux li:hover a,
    .reseaux li:hover p{
        color: #fff !important;
    }
    .reseaux li:hover{
        background-color: var(--primary) !important;
    }
    .reseaux li:hover svg path{
        fill: #fff !important;
    }
    .reseaux li:hover svg path#Tracé_19453{
        fill: var(--primary) !important;
    }
}

@media (max-width: 1400px){
    #footer .footerMiddle #menu-footer{
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 992px){
    #footer .footerMiddle .container{
        flex-direction: column;
    }
    #footer .footerMiddle .reseaux li{
        width: 210px;
    }
}

@media (max-width: 500px){
    #footer .footerMiddle .logo,
    #footer .footerMiddle img{
        max-width: 170px;
    }
    #footer .footerMiddle #menu-footer{
        flex-direction: column;
        gap: 50px;
    }
}

/* -------------------------- SPECIAL PAGES -------------------------- */

body.page-12 #footer .footerTop,
body.page-28 #footer .footerTop,
body.page-479 #footer .footerTop,
body.page-481 #footer .footerTop,
body:has(> main.singleOffreEmploi) #footer .footerTop {
    display: none;
}

body:not(.page-12, .page-28, .page-479, .page-481):not(:has(main.singleOffreEmploi)) #footer .footerMiddle {
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
}

@media (max-width: 992px) {
    body:not(.page-12, .page-28, .page-479, .page-481):not(:has(main.singleOffreEmploi)) #footer .footerMiddle {
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
    }
}
