/**
 * Listes d'articles : vignettes nettes, hauteur uniforme, grilles archives.
 *
 * Ratio SmartMag main-slider / main-block listes : 702×336.
 */

.listing .image-link,
.listing.grid-overlay article .image-link,
.highlights > article > a.image-link,
.news-focus .focus .image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 702 / 336;
	width: 100%;
	line-height: 0;
}

.listing .image-link img,
.listing.grid-overlay .image-link img,
.highlights > article > a.image-link img,
.news-focus .focus .image-link img,
.listing-alt > a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* listing-alt : vignette à gauche, conserver le crop thème */
.listing-alt > a {
	display: block;
	overflow: hidden;
	aspect-ratio: 351 / 185;
	line-height: 0;
}

@media (min-width: 769px) {
	/* Secours si une liste archive conserve grid-3 côté markup */
	body.category .listing.grid-3 > .column,
	body.tag .listing.grid-3 > .column,
	body.tax .listing.grid-3 > .column,
	body.search .listing.grid-3 > .column,
	body.author .listing.grid-3 > .column,
	body.date .listing.grid-3 > .column {
		width: 50%;
	}

	body.category .listing.grid-3 > .column:nth-child(3n+1),
	body.tag .listing.grid-3 > .column:nth-child(3n+1),
	body.tax .listing.grid-3 > .column:nth-child(3n+1),
	body.search .listing.grid-3 > .column:nth-child(3n+1),
	body.author .listing.grid-3 > .column:nth-child(3n+1),
	body.date .listing.grid-3 > .column:nth-child(3n+1) {
		clear: none;
	}

	body.category .listing.grid-3 > .column:nth-child(odd),
	body.tag .listing.grid-3 > .column:nth-child(odd),
	body.tax .listing.grid-3 > .column:nth-child(odd),
	body.search .listing.grid-3 > .column:nth-child(odd),
	body.author .listing.grid-3 > .column:nth-child(odd),
	body.date .listing.grid-3 > .column:nth-child(odd) {
		clear: both;
	}
}

/* Sidebar — liste à vignettes */
.sidebar .dm-posts-thumbs .posts-list.thumb {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .dm-posts-thumbs .posts-list.thumb li {
	overflow: hidden;
	padding: 14px 0;
	/* Une seule ligne : neutraliser .widget li + .posts-list .content du thème */
	border-bottom: 1px solid #e8e8e8;
	line-height: 1.45;
}

.sidebar .dm-posts-thumbs .posts-list.thumb li:first-child {
	padding-top: 0;
}

.sidebar .dm-posts-thumbs .posts-list.thumb li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sidebar .dm-posts-thumbs .posts-list.thumb > li > a:first-child {
	float: left;
	margin-right: 12px;
	display: block;
	width: 72px;
	aspect-ratio: 110 / 96;
	overflow: hidden;
	line-height: 0;
}

.sidebar .dm-posts-thumbs .posts-list.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sidebar .dm-posts-thumbs .posts-list.thumb .content {
	overflow: hidden;
	margin-left: 0;
	min-height: 0;
	border-bottom: 0;
	line-height: 1.45;
}

.sidebar .dm-posts-thumbs .posts-list.thumb .content time {
	display: block;
	font-size: 11px;
	color: #8a9299;
	margin-bottom: 4px;
}

.sidebar .dm-posts-thumbs .posts-list.thumb .content > a {
	font-size: 13px;
	line-height: 1.35;
	color: #19232d;
	text-decoration: none;
}

.sidebar .dm-posts-thumbs .posts-list.thumb .content > a:hover {
	color: #3192d3;
}

.sidebar .widget_categories .cat-item {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}

.sidebar .widget_categories .cat-item:last-child {
	border-bottom: 0;
}
