.archive-residence__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.archive-residence__item {
    width: calc(25% - 15px);
}

.archive-residence__subtitle {
    font-size: 24px;
    padding-bottom: 100px;
}

.archive-residence__description {
    padding-bottom: 40px;
    margin-bottom: 40px;
    background: radial-gradient(circle, var(--vertPale), var(--vertPale) 1px, transparent 1px) repeat-x 1px bottom;
    background-size: 12px 4px;
}

.archive-residence__pagination {
    position: relative;
    z-index: 1;
    text-align: center;
    justify-content: center;
    margin-top: var(--space-lg);
}

.archive-residence__pagination .nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.archive-residence__pagination .nav-links a {
    display: flex;
}

.archive-residence__pagination .nav-links svg {
    max-width: none;
}

.archive-residence__pagination .nav-links .page-numbers {
    width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.archive-residence__pagination .nav-links .page-numbers.current {
    border-radius: 50%;
    color: var(--vert);
    background-color: var(--vertClair);
    font-weight: bold;
    cursor: pointer;
}





.archive-residence__filter {
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px;      Ancien CSS pour afficher tous les filtres */

    row-gap: 20px;
    justify-content: space-evenly;
}

.archive-residence__select,
.archive-residence__checkbox-group {
    display: flex;
    align-items: center;
    /* flex: 1 1 calc(1/3 * 100% - 40px);       Ancien CSS pour afficher tous les filtres */
}

.archive-residence__select {
    
    /* justify-content: space-between;          Ancien CSS pour afficher tous les filtres */

    gap: 20px;
}

.archive-residence__select.small-select {
    justify-content: left;
    gap: 8px;
}

.archive-residence__select label {
    font-weight: bold;
    white-space: nowrap;
}

.archive-residence__select select {
    height: fit-content;
    padding: 5px;
    border: 2px solid;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    /* width: 75%;      Ancien CSS pour afficher tous les filtres */
    width: 100%;
}

.archive-residence__select.small-select select {
    width: auto;
}

.archive-residence__checkbox-group {
    flex-wrap: wrap;
    gap: 40px;
}

.archive-residence__buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 120px;
    gap: 20px;
}

.archive-residence__buttons .btn.btn-primary:focus {
    background-color: var(--orange);
    border-color: var(--orange);
}

.archive-residence__buttons .btn.btn-primary:focus:hover {
    background-color: var(--rose);
    border-color: var(--rose);
}

.archive-residence__reset {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
}

.archive-residence__reset i {
    color: var(--vert);
}

.archive-residence__checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-residence__checkbox-group input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--blanc);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    display: grid;
    place-content: center;
}

.archive-residence__checkbox-group input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    display: none;
    box-shadow: inset 1em 1em var(--vert);
}

.archive-residence__checkbox-group input[type="checkbox"]:checked::before {
    display: block;
}


@media (max-width: 1199px) {
    .archive-residence__item {
        width: calc((100% / 3 ) - (40px / 3));
    }

    .archive-residence__select {
        flex: 1 1 calc(1/2 * 100% - 20px);
    }
    
    .archive-residence__select select {
        width: 70%;
    }

    .archive-residence__select.small-select {
        justify-content: space-between;
    }
}

@media (max-width: 991px) {
    .archive-residence__subtitle {
        padding-bottom: 50px;
    }
    .archive-residence__item {
        width: calc((100% / 2 ) - 10px);
    }
    .archive-residence__select label {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .archive-residence__select {
        justify-content: space-between;
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .archive-residence__item {
        width: 100%;
    }
}