/* =====================================================
   Affichage des actualités (shortcode [afg_actualites])
   ===================================================== */

.afg-caa-actualites {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.afg-caa-carte {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afg-caa-carte:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.afg-caa-carte-image img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.afg-caa-carte-contenu {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.2rem;
}

.afg-caa-carte-date {
	margin: 0;
	color: #64748b;
	font-size: 0.85rem;
}

.afg-caa-carte-titre {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.afg-caa-carte-titre a {
	color: #08405f;
	text-decoration: none;
}

.afg-caa-carte-titre a:hover,
.afg-caa-carte-titre a:focus {
	text-decoration: underline;
}

.afg-caa-carte-extrait {
	margin: 0;
	color: #334155;
	font-size: 0.95rem;
}

.afg-caa-carte-lien {
	align-self: flex-start;
	margin-top: auto;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: #0a5b8a;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
}

.afg-caa-carte-lien:hover,
.afg-caa-carte-lien:focus {
	background: #0c7ab5;
}

.afg-caa-vide {
	padding: 1rem;
	color: #64748b;
	font-style: italic;
}
