.filtre {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    opacity: 0;
    transition: all 200ms ease-in-out;
    background-image: linear-gradient(rgba(239, 234, 229, 0.4), rgba(239, 234, 229, 0.4)),
        linear-gradient(#ffffff, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 15px 40px;
    min-height: 129px;

    @media(width < 1400px) {
        min-height: inherit;
    }

    &.is-admin {
        opacity: 1 !important;
    }

    &.loaded {
        opacity: 1;
    }

    .filtres {
        gap: inherit;
        justify-content: flex-start;

        .filtres__el {
            .filtres__el__label {
                margin: 0;
            }
        }
    }

    .facetwp-facet {
        margin-bottom: 0;

        .fs-wrap {
            width: auto;
            min-width: 250px;
        }
    }

    .moreFilters {
        background-color: transparent;
        border: none;
        text-transform: uppercase;
        color: var(--wp--preset--color--secondary);
        padding: 17px 8px;
        font-weight: var(--wp--preset--font-weight--bold);
        font-size: .875rem;

        i {
            margin-right: 8px;
        }

        &:hover {
            cursor: pointer;
        }
    }

    #moreFilters {
        .filtres {
            margin-top: 1em;
        }

    }

    .filtre-reset {
        margin: 17px 0 0;
    }

}

.filtre-mobile-bouton {
    position: fixed;
    background-color: rgba(255, 255, 255, 1);
    bottom: 0;
    z-index: 2;
    left: 0;
    right: 0;
    text-align: center;
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    padding: 14px 15px;

    button:not(.switch) {
        width: auto;
        margin-right: auto;
    }

    .views {
        display: flex;
        align-items: center;

        .switch {
            font-weight: normal;
            border-radius: 4px;
            border: none;
            padding: 5px 15px;
            background-color: transparent;
            line-height: 1.875rem;

            &:hover {
                cursor: pointer;
            }

            &.active {
                background-color: var(--wp--preset--color--secondary-accent);
            }

            span {
                display: none;
            }
        }
    }

    @media(width < 380px) {
        .wp-block-button__link {
            font-size: 1rem;
            padding: 8px 1em;
        }
    }

    #filtreMobileModal {
        margin: 0;
        color: var(--wp--preset--color--main);
        background-image: linear-gradient(rgba(239, 234, 229, 0.4), rgba(239, 234, 229, 0.4)),
            linear-gradient(#ffffff, #ffffff);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        padding: 15px;

        .modal-dialog {
            width: auto;
        }

        .modal-content {
            background-color: transparent;

            .btn-close {
                margin-left: auto;
                --bs-btn-close-color: var(--wp--preset--color--primary);
            }

            .modal-body {
                padding: 0 10px 0 0;

                .filtres {
                    flex-direction: column;
                    flex-wrap: wrap;
                    align-items: flex-start;
                    gap: 15px;

                    .filtres__el {
                        width: 100%;

                        .filtres__el__label {
                            margin: 0;
                        }
                    }
                }
            }
        }

        .facetwp-facet {
            margin-bottom: 0;

            .fs-wrap {
                width: 100%;
                max-width: 100%;
            }

            .facetwp-autocomplete {
                width: 100%;
            }
        }

    }