.m-home-filtre {
    opacity: 0;
    min-height: 194px;
    margin-top: 60px;

    @media(width < 787px) {
        min-height: 436px;
        margin-top: 1em;
        margin-bottom: 2em;
    }

    &.loaded {
        opacity: 1;
        transition: opacity 0.5s ease .3s;
    }

    .m-home-filtre__nav-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
        z-index: 1;

        @media(width < 787px) {
            justify-content: flex-start;
        }
    }

    .filtre-mobile-nav {
        display: none;

        @media(width < 787px) {
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            color: var(--wp--preset--color--main);
            cursor: pointer;
            padding: 6px 13px;
            border-radius: 6px 6px 0 0;
            flex-shrink: 0;
            background-color: rgba(255, 255, 255, 0.7);
            height: 42px;

            &[hidden] {
                display: none;
            }
        }

        &.m-home-filtre__nav-prev {
            color: var(--wp--preset--color--primary);
            margin: 0 2px 0 7px;
        }

        &.m-home-filtre__nav-next {
            margin: 0 7px 0 2px;
        }
    }

    .m-home-filtre__nav {
        display: flex;
        justify-content: center;
        margin-bottom: 0;

        @media(width < 787px) {
            flex-wrap: nowrap;
            justify-content: flex-start !important;
            overflow-x: hidden;
        }

        li {
            margin: 0 10px;

            @media(width < 787px) {
                margin: 0 5px;

                &[hidden] {
                    display: none;
                }
            }

            .nav-link {
                font-size: 1rem;
                line-height: 1.875rem;
                font-weight: 500;
                padding: 6px 30px;
                display: block;
                border-radius: 6px 6px 0 0;
                transition: background-color 0.3s ease;
                background-color: rgba(255, 255, 255, 0.7);
                box-shadow: 0 -6px 55px 0 rgba(0, 0, 0, 0.25);
                color: var(--wp--preset--color--main);
                white-space: nowrap;

                &:hover {
                    color: var(--wp--preset--color--primary);
                    cursor: pointer;
                }

                &.active {
                    background-color: #fff;
                    color: var(--wp--preset--color--primary);
                    font-weight: var(--wp--custom--font-weight--black);
                }

                @media(width < 787px) {
                    padding: 6px 20px;
                }
            }
        }
    }

    .m-home-filtre__content {
        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 6px 55px 0 rgba(0, 0, 0, 0.25);
        padding: 24px 40px;
        position: relative;

        @media(width < 787px) {
            padding: 15px 20px;
        }

        &:before {
            content: '';
            background-color: #fff;
            position: absolute;
            z-index: 1;
            top: 0;
            height: 80px;
            left: 10px;
            right: 10px;
        }

        .tab-pane {
            position: relative;
            z-index: 2;
        }

        .estimation-form__input {
            flex: 1 0 0;
        }

        .estimation-form {
            min-width: 80%;
            display: flex;
            flex-wrap: wrap;
            column-gap: 20px;

            .filtres__el__label {
                flex: 100% 0 0;
            }
        }
    }
}