/* ============================================================
   Articles / Actualités
   ============================================================ */

.wp-block-post {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border: 2px solid #800020;
	border-radius: 10px;
	padding: 30px 20px 20px;
	background: #fff;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease-in-out;
	position: relative;
	text-align: left;
}

.wp-block-post:hover {
	transform: scale(1.02);
}

.actualites-cards {
	cursor: pointer;
}

/*
 * Lien invisible couvrant toute la carte pour la rendre cliquable.
 * Le titre (.wp-block-post-title a) reste au-dessus via z-index: 2.
 */
.wp-block-post a {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	text-decoration: none;
	color: inherit;
}

/* Image mise en avant ronde et centrée */
.wp-block-post-featured-image {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.wp-block-post-featured-image img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 50%;
}

/* Catégorie */
.taxonomy-category {
	font-size: 0.9em;
	font-weight: 600;
	color: #800020;
	text-transform: uppercase;
	margin-bottom: 10px;
	text-align: left;
}

.posts-grid .taxonomy-category {
	text-align: center;
}

/* Le lien de catégorie n'est pas cliquable (la carte entière l'est déjà) */
.taxonomy-category a {
	text-decoration: none;
	color: inherit;
	pointer-events: none;
	margin-top: 10px;
}

/* Le titre reste cliquable par-dessus le lien de couverture */
.wp-block-post-title {
	font-size: 1.2em;
	margin-top: 5px;
	font-weight: bold;
}

.wp-block-post-title a {
	text-decoration: none;
	color: #800020;
	position: relative;
	z-index: 2;
}

.posts-grid .wp-block-post-date time {
	color: #800020;
}

/* Force l'alignement gauche dans les blocs groupe des cartes */
.wp-block-group {
	text-align: left;
}

.wp-block-query ul {
	padding: 0;
}

/* Mobiles (jusqu'à 768px) */
@media screen and (max-width: 768px) {
	.taxonomy-category {
		margin-top: 30px !important;
	}
}


/* ============================================================
   Single article
   ============================================================ */

.single-post-banner {
	max-width: 900px;
	margin: 0 auto;
}

.banner-single-post .wp-block-post-featured-image img {
	border-radius: 50%;
}
