.footer {
    background: var(--dark);
    padding: 20px 0 0 0;

    li:not(.bouton) {
        * a {
            transition: var(--transition);

            &:hover {
                color: var(--main-color-2) !important;
            }
        }
    }

    @media (max-width: 992px) {

        &>.container {
            display: flex;
            flex-direction: column-reverse;

            .menu__top_footer {
                padding: 30px 0 0 0;
            }
        }
    }

    .menu__top_footer {
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: end;
        color: var(--white);
        padding: 12px 30px;

        @media (min-width: 992px) {
            align-items: center;
        }

        @media (max-width: 992px) {
            flex-direction: column;
            gap: 10px;
        }

        li {
            list-style: none;
            font-weight: var(--bold);

            @media (max-width: 992px) {
                border: none !important;
            }

            &:not(:last-child) {
                margin-right: 20px;
                padding-right: 20px;
                border-right: 1px solid var(--white);
            }

            &.top_social {
                font-size: 0px;
                background-repeat: no-repeat;
                background-size: contain;
                width: 20px;
                height: 20px;
                transition: var(--transition);

                &:hover {
                    opacity: 0.7;
                }

                &:not(:last-child) {
                    padding-right: 40px;
                }

                &>a {
                    height: 22px;
                    width: 22px;
                    display: block;
                }
            }

            &.malentendant a,
            &.espace a,
            &.magasin a {
                display: flex;
                gap: 8px;

                &:before {
                    content: '';
                    display: inline-block;
                    width: 18px;
                    height: 18px;
                    background-size: contain;
                    background-repeat: no-repeat;
                }
            }

            &.malentendant a {
                &:before {
                    background-image: url(../img/icon_malentendant.svg);
                }
            }

            &.espace a {
                &:before {
                    background-image: url(../img/icon_espace.svg);
                }
            }

            &.magasin a {
                &:before {
                    background-image: url(../img/icon_magasin.svg);
                }
            }
        }
    }

    .footer__main {
        display: flex;
        justify-content: space-between;

        @media (max-width: 992px) {
            flex-direction: column;
            gap: 20px;
        }

        .footer__agency {
            flex: 0.2;

            >img {
                width: 212px;
                height: 82px;
            }

            >p {
                margin-top: 25px;
                font-size: 14px;
                color: var(--white) !important;
            }

            *:not(p) {
                &:not(:hover) {
                    color: var(--white) !important;
                }

                &:hover {
                    color: var(--main-color-2) !important;
                }
            }
        }

        .footer__menu {
            display: flex;
            flex-wrap: wrap;
            flex: 0.7;

            @media (max-width: 768px) {
                flex-direction: column;
                gap: 20px;
            }

            .menu__footer {
                margin: 30px 0 0 0;
                padding: 0;
                display: flex;
                justify-content: end;
                gap: 20px;
                width: 100%;

                @media (max-width: 768px) {
                    flex-direction: column;
                    gap: 0px 20px;
                }

                li,
                a {
                    color: var(--white) !important;
                    list-style: none !important;
                }

                li.current-page-ancestor,
                li.current-menu-item {
                    >a {
                        color: var(--main-color-2) !important;
                    }
                }

                li {
                    &:hover {
                        >a {
                            color: var(--main-color-2) !important;
                        }
                    }
                }

                >li {
                    @media (max-width: 768px) {
                        &:not(:last-child) {
                            margin-bottom: 20px;
                        }
                    }

                    &>a {
                        font-weight: var(--bold);
                    }

                    &:before {
                        display: none;
                    }

                    .sub-menu {
                        padding: 10px 0 0 0;
                        display: flex;
                        flex-direction: column;
                        gap: 5px;

                        a {
                            font-size: 12px;
                            font-weight: var(--regular);
                            line-height: 16px;
                        }
                    }
                }
            }
        }
    }

    .footer__last {
        width: 100%;
        margin-top: 30px;
        background: var(--dark-grey);
        padding: 30px 0;
        text-align: center;

        .container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;

            p,
            a {
                color: var(--white) !important;
                margin: 0;
                font-size: 12px;

                &:hover {
                    color: var(--main-color-2) !important;
                }
            }
        }
    }
}