/*
 * CSS de la page "Nos activités", reconstruite depuis l'export Elementor
 * "Nos activite export json" (elementor-7134-2026-08-24.json). Le widget
 * dynamique "posts" (skin cards, filtré sur des term_id WordPress non
 * présents dans data/activites.json) est remplacé par une vraie liste des
 * 109 activités, paginée côté serveur (12 par page, comme dans l'export).
 */

.activites-section {
	padding: 56px 0;
}

.activites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.activite-card {
	display: block;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activite-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.activite-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.activite-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--jade-background, #F2F1EE);
}

.activite-card-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.activite-card-media img,
.activite-card-media .activite-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.activite-card-category {
	position: absolute;
	left: 8px;
	bottom: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 4px 10px;
	border-radius: 999px;
}

/* Une couleur par volet d'activités, pour les repérer d'un coup d'œil dans
   la grille "Nos activités" / pages catégorie. */
.activite-card-category--lutte-contre-la-pauvrete {
	background: var(--jade-yellow, #FFC107);
	color: #1a1a1a;
}

.activite-card-category--vulgarisation-des-outils-tic {
	background: var(--jade-blue, #2196F3);
}

.activite-card-category--protection-de-lenvironnement {
	background: var(--jade-emerald, #10B981);
}

.activite-card-body {
	padding: 20px 22px 24px;
}

.activite-card time {
	display: block;
	color: #8F8A8A;
	font-size: 14px;
	margin-bottom: 8px;
}

.activite-card h3 {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.activite-card p {
	color: #444;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 14px;
}

.activite-card .read-more {
	color: #057A37;
	font-weight: 700;
	font-size: 15px;
	transition: color 0.15s ease;
}

.activite-card:hover .read-more {
	color: var(--jade-yellow);
}

.activites-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 48px;
}

.page-num,
.page-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	flex: 0 0 auto;
}

.page-num {
	background: #fff;
	color: #333;
	border: 1px solid #ccc;
}

.page-num:hover {
	border-color: var(--jade-yellow, #FFC107);
	color: #1a1a1a;
	background: var(--jade-yellow, #FFC107);
}

.page-num--active {
	border: 2px solid #1a1a1a;
	color: #1a1a1a;
}

.page-arrow {
	background: var(--jade-primary, #0B6E34);
	color: #fff;
	border: none;
	font-size: 16px;
}

.page-arrow:hover {
	background: var(--jade-yellow, #FFC107);
	color: #1a1a1a;
}

.page-arrow--disabled {
	background: #ccc;
	color: #eee;
	cursor: default;
}

.activites-empty {
	text-align: center;
	color: #666;
	padding: 48px 0;
}

/* ---------- Affiche promotionnelle (sidebar fiche activité) ---------- */

.activite-affiche {
	margin-bottom: 24px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

.activite-affiche img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Widget "Activités récentes" (sidebar fiche activité) ---------- */

.recent-widget {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
}

.recent-widget h3 {
	color: #1E743B;
	font-size: 20px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #1E743B;
	display: inline-block;
}

.recent-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.recent-widget li {
	margin-bottom: 14px;
}

.recent-widget li:last-child {
	margin-bottom: 0;
}

.recent-widget li a {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.recent-widget-media {
	flex: 0 0 auto;
	width: 64px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--jade-background, #F2F1EE);
}

.recent-widget-media img,
.recent-widget-media .activite-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.recent-widget-body h4 {
	font-size: 13px;
	line-height: 1.35;
	margin: 0 0 4px;
	color: #14181f;
}

.recent-widget li a:hover h4 {
	color: var(--jade-primary, #097D50);
}

.recent-widget-body span {
	font-size: 11px;
	color: #999;
}

/* ---------- Widgets "Catégories" / "Membres" (sidebar fiche activité /
   catégorie) : lignes blanches avec compteur à droite ---------- */

.categories-widget {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
}

.categories-widget h3 {
	color: #1E743B;
	font-size: 20px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #1E743B;
	display: inline-block;
}

.categories-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.categories-widget li {
	margin-bottom: 10px;
}

.categories-widget li:last-child {
	margin-bottom: 0;
}

.categories-widget a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--jade-background, #F2F1EE);
	border-left: 3px solid var(--jade-primary, #097D50);
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}

.categories-widget a:hover {
	background: var(--jade-background, #F2F1EE);
	color: var(--jade-primary, #097D50);
}

.categories-widget .cat-count {
	flex: 0 0 auto;
	color: #999;
	font-weight: 700;
	font-size: 13px;
}

/* ---------- Archives par année ---------- */

.archives-list {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 24px;
}

.archives-list h3 {
	color: #1E743B;
	font-size: 20px;
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 2px solid #1E743B;
	display: inline-block;
}

.archives-list ul {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	columns: 2;
	column-gap: 20px;
}

.archives-list li {
	margin-bottom: 10px;
	break-inside: avoid;
}

.archives-list a {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.archives-list a i {
	color: var(--jade-primary, #097D50);
	font-size: 12px;
}

.archives-list a:hover {
	color: var(--jade-primary, #097D50);
}

/* ---------- Layout page catégorie / archive avec archives sidebar ---------- */

.activites-layout {
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 900px) {
	.activites-layout {
		grid-template-columns: 1fr;
	}

	.archives-list ul {
		columns: 3;
	}
}

/* ---------- Résultats de recherche (recherche.php) — grille de cartes ---------- */
/* Inspirée d'une référence utilisateur (photo + pastille date, méta,
   "Explore More") mais avec les vrais résultats (activités/membres) — pas de
   lieu/heure fictifs, remplacés par le vrai type de résultat et, pour les
   activités, leur vrai volet. */

.recherche-section {
	padding: 48px 0 80px;
}

.search-page-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 0 32px;
}

.search-page-form input {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 15px;
	font-family: inherit;
}

.search-page-form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border: none;
	border-radius: 999px;
	background: var(--jade-primary, #097D50);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.search-page-form button:hover {
	background: #066943;
}

.recherche-info {
	color: #666;
}

.recherche-count {
	color: #666;
	margin-bottom: 24px;
}

.recherche-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.recherche-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.recherche-card-photo {
	position: relative;
	aspect-ratio: 4 / 3;
}

.recherche-card-photo img,
.recherche-card-photo .activite-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.recherche-card-date {
	position: absolute;
	left: 0;
	bottom: 0;
	background: var(--jade-yellow, #FFC107);
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 0 10px 0 0;
}

.recherche-card-body {
	padding: 22px;
}

.recherche-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--jade-primary, #097D50);
}

.recherche-card-body h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.recherche-card-body h3 a {
	color: #14181f;
	text-decoration: none;
}

.recherche-card-body h3 a:hover {
	color: var(--jade-primary, #097D50);
}

.recherche-card-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 18px;
}

.recherche-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--jade-primary, #097D50);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-decoration: none;
}

.recherche-card-more:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.recherche-grid {
		grid-template-columns: 1fr;
	}
}

