.ws-membres-archive {
	display: grid;
	grid-template-columns: 1fr 360px;
	grid-template-areas:
		"a b1"
		"a b2"
		"a .";
    align-items: flex-start;
    justify-content: flex-start;
	row-gap: 20px;
	column-gap: 56px;
	padding-bottom: 50px;
}

.ws-membres-archive__post {
	grid-area: a;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.ws-membres-archive__header h1 {
	margin-bottom: 14px;
    line-height: 1;
}

.ws-membres-archive__header h2 {
	color: var(--sporsora-quinary-color);
	margin-bottom: 5px;
}

.ws-membres-archive__header p {
	color: var(--sporsora-tertiary-color);
	font-weight: 500;
}

.ws-membres-archive__content {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.ws-membres-archive__item {
	padding: 30px 0;
	border-bottom: dotted 2px #ddd;
	text-align: center;
}

.ws-membres-archive__item-body {
	padding: 5px 35px;
	border-right: dotted 2px #ddd;
	text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-membres-archive__item:nth-child(5n) .ws-membres-archive__item-body,
.ws-membres-archive__item:last-child .ws-membres-archive__item-body {
	border-right: none;
}

/* Supprimer la bordure de la dernière ligne */
.ws-membres-archive__item:nth-child(5n + 1):nth-last-child(-n + 5),
.ws-membres-archive__item:nth-child(5n + 1):nth-last-child(-n + 5) ~ .ws-membres-archive__item,
.ws-membres-archive__item:nth-child(5n + 1):nth-last-child(-n + 4),
.ws-membres-archive__item:nth-child(5n + 1):nth-last-child(-n + 4) ~ .ws-membres-archive__item,
.ws-membres-archive__item:nth-child(5n + 2):nth-last-child(-n + 3),
.ws-membres-archive__item:nth-child(5n + 2):nth-last-child(-n + 3) ~ .ws-membres-archive__item,
.ws-membres-archive__item:nth-child(5n + 3):nth-last-child(-n + 2),
.ws-membres-archive__item:nth-child(5n + 3):nth-last-child(-n + 2) ~ .ws-membres-archive__item,
.ws-membres-archive__item:nth-child(5n):nth-last-child(1) {
	border-bottom: none;
}

.ws-membres-archive__back-to-top {
	text-align: right;
}

.ws-membres-archive > div:nth-child(2) {
	grid-area: b1;
}

.ws-membres-archive > div:nth-child(3) {
	grid-area: b2;
}

@media (max-width: 1000px) {
    .ws-membres-archive__item-body {
        padding: 5px 20px;
    }
}

@media (max-width: 767px) {
	.ws-membres-archive {
        grid-template-areas: unset;
        display: flex;
        flex-direction: column;
	}

    .ws-membres-archive__post,
    .ws-membres-archive > div:nth-child(2),
    .ws-membres-archive > div:nth-child(3) {
        grid-area: unset;
    }

	.ws-membres-archive__post {
		order: 2;
	}
	.ws-membres-archive > div:nth-child(2) {
		order: 3;
	}
	.ws-membres-archive > div:nth-child(3) {
		order: 1;
	}

    /* ---- */

    .ws-membres-archive__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .ws-membres-archive__item:nth-child(2n) .ws-membres-archive__item-body,
    .ws-membres-archive__item:last-child .ws-membres-archive__item-body {
        border-right: none;
    }

    /* Supprimer la bordure de la dernière ligne */
    .ws-membres-archive__item:nth-child(2n + 1):nth-last-child(-n + 2),
    .ws-membres-archive__item:nth-child(2n + 1):nth-last-child(-n + 2) ~ .ws-membres-archive__item,
    .ws-membres-archive__item:nth-child(2n):nth-last-child(1) {
        border-bottom: none;
    }
}
