body.liste-articles header.entry-header {
	position: relative;
	z-index: 1;
	margin-top: 30px;
	overflow: visible;
}

body.liste-articles header.entry-header h1 {
	position: relative;
}

body.liste-articles header.entry-header h1::after {
	position: absolute;
	content: "Blogue";
	top: -65%;
	left: 50%;
	transform: translateX(-50%);
	right: auto;
	width: 100%;
	height: 100%;
	z-index: -1;
	font-size: 22rem;
	text-transform: uppercase;
	opacity: 0.03;
}

body.liste-articles.page-template-template-liste-nouvelles header.entry-header h1::after,
body.liste-articles.page-template-template-liste-nouvelles-php header.entry-header h1::after {
	content: "Nouvelles";
}

body.liste-articles.page-template-template-liste-evenements header.entry-header h1::after,
body.liste-articles.page-template-template-archives-evenements header.entry-header h1::after {
	content: "Événements";
}

body.liste-articles .entry-header .entry-header-container {
	display: block;
}

body.liste-articles .liste-blogue.aucun {
	padding-top: 0 !important;
}

body.liste-articles .liste-filters {
	position: relative;
	z-index: 30;
}

body.liste-articles .liste-filters .ui-select {
	z-index: 31;
}

body.liste-articles .liste-filters .ui-select.is-open {
	z-index: 40;
}

body.liste-articles .liste-filters .ui-select-menu {
	z-index: 41;
}

body.liste-articles .liste-filter-links {
	flex-wrap: wrap;
}

body.liste-articles .liste-filter-links .btn {
	margin-top: 0 !important;
}

body.liste-articles .liste-filter-select-wrap {
	justify-content: flex-start;
	pointer-events: auto;
}

@media (max-width: 991px) {
	body.liste-articles .liste-filter-links {
		display: none !important;
	}

	body.liste-articles .liste-filter-select-wrap {
		display: flex !important;
	}
}

@media (min-width: 992px) {
	body.liste-articles .liste-filter-links {
		display: flex !important;
	}

	body.liste-articles .liste-filter-select-wrap {
		display: none !important;
	}
}

body.liste-articles .liste-featured-link {
	display: block;
	text-decoration: none;
}

body.liste-articles .liste-featured-layout {
	margin-left: 0;
	margin-right: 0;
}

body.liste-articles .liste-featured-layout > * {
	padding-left: 0;
	padding-right: 0;
}

body.liste-articles .liste-featured-image {
	position: relative;
	width: 100%;
	padding-bottom: 56%;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.liste-articles .liste-featured-image .media-frame-image:not(.placeholder) {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.liste-articles .liste-featured-image .media-frame-image.placeholder {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 42% !important;
	height: 42% !important;
	max-width: 220px;
	max-height: 220px;
	object-fit: contain !important;
}

body.liste-articles .liste-featured-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-top-right-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
}

body.liste-articles .liste-featured-title {
	color: var(--sixth);
	margin-top: 0;
}

body.liste-articles .liste-featured-title .featured-title-end {
	color: inherit;
}

body.liste-articles .liste-featured-content .btn {
	position: relative;
    z-index: 3;
    width: fit-content;
    white-space: nowrap;
    color: var(--third) !important;
	align-self: flex-start;
	margin-top: 0 !important;
	margin-left: 0 !important;
}

body.liste-articles .liste-featured-content .btn:hover, .liste-featured-link:hover .btn, .liste-featured-link:hover span.btn-white {
	background-color: var(--primary) !important;
	color: var(--sixth) !important;
}

body.liste-articles .liste-description > :last-child {
	margin-bottom: 0;
}

@media (max-width: 991px) {
	body.liste-articles header.entry-header h1::after {
		top: -67%;
		font-size: 10rem;
		left: 67%;
	}

	body.liste-articles .liste-featured-image .media-frame-image.placeholder {
		width: 34% !important;
		height: 34% !important;
		max-width: 140px;
		max-height: 140px;
	}

	body.liste-articles .liste-featured-content {
		border-top-right-radius: 0;
		border-bottom-left-radius: var(--border-radius);
	}
}

@media (min-width: 992px) {
	body.liste-articles header.entry-header {
		margin-top: 76px;
	}

	body.liste-articles .liste-featured-image {
		padding-bottom: 67%;
		height: 100%;
	}
}

/* Événements : images carrées (taille evenement-liste 1786×1786) */
body.liste-articles.page-template-template-liste-evenements .liste-featured-image {
	padding-bottom: 100%;
}

@media (min-width: 992px) {
	body.liste-articles.page-template-template-liste-evenements .liste-featured-image {
		padding-bottom: 100%;
		height: auto;
	}
}

body.liste-articles.page-template-template-liste-evenements .liste-card-image,
body.liste-articles.page-template-template-archives-evenements .liste-card-image {
	aspect-ratio: 1 / 1;
}

/* Nouvelles : ratio selon format liste (1092×764) ou liste-old (1600×787) */
body.liste-articles.page-template-template-liste-nouvelles .liste-card-image.liste-image-liste,
body.liste-articles.page-template-template-liste-nouvelles-php .liste-card-image.liste-image-liste {
	aspect-ratio: 1092 / 764;
}

body.liste-articles.page-template-template-liste-nouvelles .liste-card-image.liste-image-liste-old,
body.liste-articles.page-template-template-liste-nouvelles-php .liste-card-image.liste-image-liste-old {
	aspect-ratio: 1600 / 787;
}

body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste,
body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste {
	padding-bottom: 69.96%;
}

body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste-old,
body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste-old {
	padding-bottom: 49.19%;
}

@media (min-width: 992px) {
	body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste,
	body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste,
	body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste-old,
	body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste-old {
		height: auto;
	}

	body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste,
	body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste {
		padding-bottom: 69.96%;
	}

	body.liste-articles.page-template-template-liste-nouvelles .liste-featured-image.liste-image-liste-old,
	body.liste-articles.page-template-template-liste-nouvelles-php .liste-featured-image.liste-image-liste-old {
		padding-bottom: 49.19%;
	}
}