/*
 * CSS du header et du footer, reconstruits depuis les exports Elementor
 * "header json export" (elementor-7123) et "footer expor json" (elementor-7126).
 * Ce balisage (includes/header.php, includes/footer.php) est custom : aucune
 * règle du CSS Elementor copié (global.css, post-*.css) ne le couvre. Les
 * couleurs/polices ci-dessous sont reprises telles quelles des réglages JSON.
 */

:root {
	--jade-primary: #0B6E34;
	--jade-secondary: #D9A62E;
	--jade-neutral: #58595B;
	--jade-background: #F2F1EE;

	/* Jaune d'accent utilisé pour le bouton "Faire un don" et les états de
	   survol (menu, "Voir plus", réseaux sociaux du footer) — cohérent avec
	   la référence fournie par l'utilisateur. */
	--jade-yellow: #FFC107;
	--jade-blue: #2196F3;
	--jade-emerald: #10B981;

	/* Polices du kit global Elementor : ces variables sont référencées par
	   ~130 règles dans global.css et par la plupart des post-*.css (ex.
	   font-family:var( --e-global-typography-text-font-family ), Sans-serif)
	   mais n'étaient définies nulle part dans l'export (kit CSS d'origine non
	   capturé) — tout le texte du site retombait donc sur le Sans-serif par
	   défaut du navigateur. Les définir ici applique Poppins/Roboto à
	   l'ensemble du site sans toucher aux ~130 règles existantes. */
	/* Titres passés en serif (Playfair Display) sur demande explicite de
	   l'utilisateur, référence fournie — "primary"/"secondary" pilotent la
	   plupart des titres (h1-h6, .elementor-heading-title) sur les ~130
	   règles qui utilisent déjà cette variable via var(). "text"/"accent"
	   restent en Poppins/Roboto (paragraphes, boutons). */
	--e-global-typography-primary-font-family: 'Playfair Display';
	--e-global-typography-secondary-font-family: 'Playfair Display';
	--e-global-typography-text-font-family: 'Poppins';
	--e-global-typography-accent-font-family: 'Roboto';

	/* Couleurs reprises de l'export header (nav-menu widget) */
	--nav-item-color: #222223;
	--nav-item-hover: var(--jade-yellow);
	--nav-item-active: var(--jade-yellow);
	--nav-dropdown-bg: #FFFFFF;
	--nav-dropdown-color: #253750;
	--nav-dropdown-hover-bg: #EDF1FC;
	--nav-dropdown-hover-color: #91C73D;

	/* Couleurs reprises de l'export footer */
	--footer-bg: #161818;
	--footer-border: #41546E;
	--footer-heading: #15BD7C;
	--footer-text: #FFFFFF;
	--footer-icon: #15BD7C;

	/* Dégradé de marque (turquoise → or) utilisé sur les grands bandeaux
	   décoratifs du site (héros, sections "Vision/Mission", "Nos valeurs"...).
	   Chaque section fait varier l'angle pour éviter un rendu répétitif. */
	--brand-gradient-a: #189985;
	--brand-gradient-b: #EFD24A;
}

/* ---------- Polices globales ---------- */
/* Poppins pour le texte courant. Tous les titres en Playfair Display (serif),
   demande explicite de l'utilisateur avec référence fournie. `!important` :
   de nombreux widgets Elementor exportés (post-*.css) codent en dur
   font-family:"Roboto" sur .elementor-heading-title avec une spécificité très
   élevée (ex. .elementor-1331 .elementor-element.elementor-element-xyz
   .elementor-heading-title) qu'une règle h1..h6 normale ne peut pas battre
   par la cascade seule — nécessaire pour couvrir vraiment TOUS les titres du
   site, pas seulement ceux qui suivent déjà la variable
   --e-global-typography-primary-font-family (déjà mise à jour ci-dessus). */

body {
	font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.section-heading {
	font-family: 'Playfair Display', 'Georgia', serif !important;
}

/* ---------- Header ---------- */

#site-header {
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 5px;
}

#site-header .header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	gap: 24px;
}

#site-header .site-logo {
	flex: 0 0 auto;
	display: block;
}

#site-header .site-logo img {
	height: 64px;
	width: auto;
	display: block;
}

#site-header .nav-toggle {
	display: none;
}

#site-header .main-nav {
	flex: 1 1 auto;
}

#site-header .nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

#site-header .nav-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

#site-header .nav-menu > li > a {
	display: block;
	padding: 16px 0;
	color: var(--nav-item-color);
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 13px;
	white-space: nowrap;
}

#site-header .nav-menu > li > .submenu-toggle {
	background: none;
	border: none;
	padding: 4px;
	margin-left: 2px;
	cursor: pointer;
	color: inherit;
}

#site-header .nav-menu > li > .submenu-toggle i {
	font-size: 11px;
	opacity: 0.6;
}

#site-header .nav-menu > li > a:hover,
#site-header .nav-menu > li.current > a {
	color: var(--nav-item-active);
}

#site-header .nav-menu > li:hover > a {
	color: var(--nav-item-hover);
}

/* Sous-menus : masqués par défaut, affichés en dropdown au survol/focus */
#site-header .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	background: var(--nav-dropdown-bg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-radius: 3px;
	display: none;
	z-index: 10;
}

#site-header .nav-menu > li:hover > .sub-menu,
#site-header .nav-menu > li:focus-within > .sub-menu {
	display: block;
}

/* Le sélecteur ci-dessus ne cible que le 1er niveau (enfant direct de
   .nav-menu > li) : sans cette règle, survoler un item du 1er sous-menu
   (ex. "Lutte contre la pauvreté") n'ouvrait jamais son propre sous-sous-menu
   (Donation Mobilier Scolaire, etc.), qui restait bloqué en display:none. */
#site-header .sub-menu li:hover > .sub-menu,
#site-header .sub-menu li:focus-within > .sub-menu {
	display: block;
}

#site-header .sub-menu li {
	position: relative;
	display: flex;
	align-items: center;
}

#site-header .sub-menu a {
	display: block;
	flex: 1 1 auto;
	padding: 10px 20px;
	color: var(--nav-dropdown-color);
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

#site-header .sub-menu .submenu-toggle {
	flex: 0 0 auto;
	background: none;
	border: none;
	padding: 8px 16px;
	cursor: pointer;
	color: var(--nav-dropdown-color);
}

#site-header .sub-menu .submenu-toggle i {
	font-size: 10px;
	opacity: 0.6;
}

#site-header .sub-menu a:hover {
	color: var(--nav-dropdown-hover-color);
	background: var(--nav-dropdown-hover-bg);
	text-decoration: underline;
	text-decoration-color: var(--nav-dropdown-hover-color);
}

/* Sous-sous-menu (ex. Lutte contre la pauvreté > Mivelogna) : ouvert sur le côté */
#site-header .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.nav-backdrop {
	display: none;
}

body.nav-scroll-lock {
	overflow: hidden;
}

/* ---------- Actions du header : langue / recherche / don ---------- */

#site-header .header-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: 20px;
}

#site-header .lang-switcher {
	position: relative;
}

#site-header .lang-current {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	padding: 8px 0;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--nav-item-color);
}

#site-header .lang-flag {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	display: block;
}

#site-header .lang-current i.fa-chevron-down {
	font-size: 9px;
	opacity: 0.6;
	transition: transform 0.15s ease;
}

#site-header .lang-switcher.open .lang-current i.fa-chevron-down {
	transform: rotate(180deg);
}

#site-header .lang-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 160px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	display: none;
	z-index: 10;
}

#site-header .lang-switcher.open .lang-menu {
	display: block;
}

#site-header .lang-option {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 10px 18px;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--nav-dropdown-color);
	text-decoration: none;
	box-sizing: border-box;
}

#site-header .lang-option img {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}

#site-header .lang-option:hover {
	background: var(--nav-dropdown-hover-bg);
	color: var(--nav-dropdown-hover-color);
}

#site-header .lang-option--active {
	font-weight: 700;
	color: var(--jade-primary);
}

#site-header .search-toggle {
	background: none;
	border: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	color: var(--nav-item-color);
	font-size: 16px;
}

#site-header .search-toggle:hover {
	background: var(--jade-background);
	color: var(--jade-primary);
}

.btn-donate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--jade-yellow);
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.btn-donate:hover {
	background: var(--jade-primary);
	color: #fff;
}

.btn-donate i {
	font-size: 12px;
}

.btn-donate--mobile {
	display: none;
}

/* ---------- Panneau de recherche (glisse depuis la gauche, toutes tailles
   d'écran — contient logo, recherche, contact JADE et réseaux sociaux) ---------- */

.search-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(420px, 90vw);
	background: #fff;
	box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
	padding: 48px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	z-index: 1101;
}

.search-panel.open {
	transform: translateX(0);
}

.search-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 48px;
}

.search-panel-header img {
	height: 40px;
	width: auto;
}

.search-panel-close {
	background: var(--jade-background);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #1a1a1a;
	cursor: pointer;
}

.search-panel-close:hover {
	background: var(--jade-primary);
	color: #fff;
}

.search-panel-form {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ddd;
	padding-bottom: 14px;
	margin-bottom: 44px;
}

.search-panel-form input {
	flex: 1 1 auto;
	border: none;
	font-size: 15px;
	font-family: 'Poppins', sans-serif;
	color: #333;
}

.search-panel-form input::placeholder {
	color: #999;
}

.search-panel-form button {
	background: none;
	border: none;
	color: var(--jade-primary);
	font-size: 16px;
	cursor: pointer;
	flex: 0 0 auto;
}

.search-panel h3 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1a1a1a;
	margin: 0 0 24px;
}

.search-panel-contact {
	list-style: none;
	margin: 0 0 44px;
	padding: 0;
}

.search-panel-contact li {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.search-panel-contact li:last-child {
	margin-bottom: 0;
}

.search-panel-contact .search-panel-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #EFEFEF;
	color: #4A4A4A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

.search-panel-contact a,
.search-panel-contact span {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
}

.search-panel-contact a:hover {
	color: var(--jade-primary);
}

.search-panel .social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.search-panel .social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #EFEFEF;
	color: #4A4A4A;
	font-size: 14px;
}

.search-panel .social-icons a:hover {
	background: var(--jade-primary);
	color: #fff;
}

.search-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 1100;
}

.search-backdrop.open {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 900px) {
	#site-header .header-search { display: none; }
}

/* ---------- Footer ---------- */

#site-footer {
	position: relative;
	background: var(--footer-bg);
	color: var(--footer-text);
	margin-top: 48px;
	overflow: hidden;
}

/* Illustration décorative dans le coin du pied de page (assets/shape,
   fournie par l'utilisateur — motif clair pensé pour un fond sombre comme
   celui du footer). */
#site-footer::before {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -30px;
	width: 320px;
	height: 140px;
	background: url('/assets/shape/footer-hand-1-1.png') right bottom / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}

#site-footer .footer-inner,
#site-footer .footer-bottom {
	position: relative;
	z-index: 1;
}

#site-footer .footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px 24px 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	border-bottom: 1px solid var(--footer-border);
}

/* Pages avec newsletter flottante (accueil, nos-activites) : la carte newsletter
   chevauche le haut du footer (margin-bottom négatif sur .section-newsletter,
   voir accueil.css) — le footer reçoit donc un padding-top qui remplace son
   margin-top habituel, calé pour laisser exactement 30px visibles entre le bas
   de la carte et le début du contenu du footer. */
body.page-acceuil #site-footer,
body.page-nos-activites #site-footer {
	margin-top: 0;
	/* +100px demandés : plus de fond noir visible au-dessus des colonnes du
	   footer, au-delà du chevauchement de la carte newsletter (voir
	   .section-newsletter dans accueil.css). */
	padding-top: 220px;
}

body.page-acceuil #site-footer .footer-inner,
body.page-nos-activites #site-footer .footer-inner {
	padding-top: 0;
}

#site-footer .footer-logo {
	height: 60px;
	width: auto;
	margin-bottom: 20px;
}

#site-footer h4 {
	color: var(--footer-heading);
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 20px;
	margin: 0 0 16px;
}

#site-footer .footer-icon-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#site-footer .footer-icon-list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}

#site-footer .footer-icon-list li i {
	color: var(--footer-icon);
	font-size: 8px;
	flex: 0 0 auto;
}

#site-footer .footer-icon-list--contact li i {
	font-size: 14px;
}

#site-footer .footer-icon-list a {
	color: var(--footer-text);
	text-decoration: none;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.5;
}

#site-footer .footer-icon-list a:hover {
	color: var(--jade-yellow);
}

#site-footer .footer-icon-list li:hover i {
	color: var(--jade-yellow);
}

#site-footer .social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#site-footer .social-icons a {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	text-decoration: none;
}

#site-footer .social-icons a:hover {
	background: var(--jade-yellow);
	color: #161818;
}

#site-footer .footer-bottom {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

#site-footer .footer-copyright,
#site-footer .footer-credit {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	color: #f3f3f3;
}

#site-footer .footer-credit a {
	color: var(--footer-heading);
	text-decoration: none;
}

#site-footer .footer-credit .heart {
	color: #ff0000;
}

@media (max-width: 900px) {
	#site-header {
		padding: 0;
	}

	#site-header .header-inner {
		padding: 10px 16px;
	}

	#site-header .site-logo img {
		height: 44px;
	}

	/* Langue et bouton "Faire un don" du header passent dans le panneau
	   burger (bouton don en bas, voir .btn-donate--mobile) — seule la
	   recherche reste dans la barre, à côté du burger. */
	#site-header .header-actions {
		margin-left: auto;
		gap: 8px;
	}

	#site-header .lang-switcher,
	#site-header .btn-donate--desktop {
		display: none;
	}

	/* Burger : 3 barres qui se transforment en croix quand le menu est ouvert
	   (aria-expanded piloté par assets/js/site.js). */
	#site-header .nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		flex: 0 0 auto;
	}

	#site-header .nav-toggle span {
		display: block;
		width: 24px;
		height: 2px;
		background: var(--nav-item-color);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	#site-header.nav-open .nav-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	#site-header.nav-open .nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	#site-header.nav-open .nav-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Panneau du menu : hors écran par défaut, glisse depuis la droite —
	   comme le tiroir de navigation d'une application mobile — plutôt que le
	   sous-menu "toujours ouvert" précédent qui poussait toute la page. */
	#site-header .main-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 85vw);
		background: #fff;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 76px 0 24px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		z-index: 1001;
	}

	#site-header.nav-open .main-nav {
		transform: translateX(0);
	}

	.nav-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
		z-index: 999;
	}

	#site-header.nav-open ~ .nav-backdrop {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}

	#site-header .nav-menu {
		gap: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 0 8px;
	}

	/* Chaque item : lien (flex-grow) + bouton toggle 44px côte à côte, la
	   ligne entière passe sous le lien si le libellé + bouton dépassent. */
	#site-header .nav-menu > li {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		border-bottom: 1px solid var(--jade-background, #F2F1EE);
	}

	#site-header .nav-menu > li > a {
		flex: 1 1 auto;
		padding: 14px 8px;
	}

	#site-header .nav-menu > li > .submenu-toggle,
	#site-header .sub-menu .submenu-toggle {
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#site-header .nav-menu > li > .submenu-toggle i,
	#site-header .sub-menu .submenu-toggle i {
		transition: transform 0.2s ease;
	}

	#site-header .submenu-open > .submenu-toggle i {
		transform: rotate(90deg);
	}

	/* Sous-menus repliés par défaut (accordéon au tap, voir assets/js/site.js)
	   au lieu d'être toujours affichés — corrige la liste géante qui poussait
	   tout le contenu de la page vers le bas. */
	#site-header .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		background: var(--jade-background, #F2F1EE);
		border-radius: 0;
		min-width: 0;
		width: 100%;
		padding: 0;
	}

	#site-header .nav-menu > li:hover > .sub-menu,
	#site-header .nav-menu > li:focus-within > .sub-menu,
	#site-header .sub-menu li:hover > .sub-menu,
	#site-header .sub-menu li:focus-within > .sub-menu {
		display: none;
	}

	/* !important : la règle desktop ".nav-menu > li:hover > .sub-menu" (hors
	   media query, donc toujours chargée) est plus spécifique que ce
	   sélecteur — sans ça, un appareil hybride souris+petit écran pourrait
	   passer outre l'état piloté par JS et bloquer l'accordéon fermé. */
	#site-header .submenu-open > .sub-menu {
		display: block !important;
	}

	#site-header .sub-menu li {
		flex-wrap: wrap;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
	}

	#site-header .sub-menu a {
		padding: 12px 8px 12px 24px;
		font-size: 14px;
		white-space: normal;
	}

	#site-header .sub-menu .sub-menu a {
		padding-left: 40px;
	}

	/* Bouton "Faire un don" du panneau burger (masqué par défaut, voir la
	   règle de base .btn-donate--mobile) — affiché en bas du tiroir. */
	#site-header .btn-donate--mobile {
		display: flex;
		justify-content: center;
		margin: 24px 16px 0;
	}

	#site-footer .footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Fil d'Ariane (breadcrumbs) ---------- */
/* Composant partagé (membre.php, category.php, activite.php) — vit ici plutôt
   que dans un CSS de page spécifique pour être stylé partout où il apparaît. */

.breadcrumbs {
	font-family: 'Quicksand', 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #999;
	margin-bottom: 24px;
}

.breadcrumbs a {
	color: var(--brand-gradient-a, #189985);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* ---------- Bandeau de page (À propos, Nos activités, …) ---------- */
/* Reconstruit depuis les exports "about us export" (elementor-7131) et
   "Nos activite export json" (elementor-7134) : même section d'en-tête sur
   les deux pages (fond vert + motif + dégradé). */

.page-hero {
	min-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: #097D50;
	background-image:
		linear-gradient(200deg, rgba(24, 153, 133, 0.75), rgba(239, 210, 74, 0.75)),
		url('/wp-content/uploads/2023/04/Background.png');
	background-repeat: repeat;
	background-size: auto, cover;
	padding: 24px;
}

.page-hero h1 {
	color: #fff;
	font-size: 50px;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 600px) {
	.page-hero {
		min-height: 258px;
	}

	.page-hero h1 {
		font-size: 30px;
	}
}

/* ---------- Section "Suivez-nous sur les réseaux sociaux" ---------- */

.social-follow {
	padding: 64px 24px;
	text-align: center;
}

.social-follow h2 {
	color: #126D30;
	font-size: 40px;
	font-weight: 700;
	margin: 0 0 12px;
}

.social-follow p {
	max-width: 600px;
	margin: 0 auto 28px;
	color: #444;
	line-height: 1.6;
}

.social-follow .social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.social-follow .social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #EDF1FC;
	color: #126D30;
	font-size: 18px;
	text-decoration: none;
}

.social-follow .social-icons a:hover {
	background: var(--jade-yellow);
	color: #1a1a1a;
}

@media (max-width: 600px) {
	.social-follow h2 {
		font-size: 30px;
	}
}

@media (max-width: 600px) {
	#site-footer .footer-inner {
		grid-template-columns: 1fr;
	}

	#site-footer .footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* ==========================================================================
 * Animations d'apparition au défilement — sitewide, sur demande explicite de
 * l'utilisateur ("comme Heartox", qui utilise WOW.js + animate.css). Version
 * légère sans dépendance externe : IntersectionObserver (assets/js/site.js)
 * ajoute .is-visible aux cartes/sections déjà existantes ci-dessous quand
 * elles entrent dans le viewport. Porté par la classe .js sur <html> (ajoutée
 * en tout début de <head>, voir includes/header.php) : sans JS, ces sélecteurs
 * ne matchent jamais et le contenu reste visible normalement dès le chargement
 * — jamais de contenu caché si le script ne tourne pas.
 * ========================================================================== */

.js .cause-card,
.js .volet-icon-card,
.js .events-home-card,
.js .recentes-home-card,
.js .membre-card,
.js .activite-card,
.js .evenement-card,
.js .recherche-card,
.js .volet-card,
.js .contact-card,
.js .annonce-card,
.js .don-wall-item,
.js .valeur-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .cause-card.is-visible,
.js .volet-icon-card.is-visible,
.js .events-home-card.is-visible,
.js .recentes-home-card.is-visible,
.js .membre-card.is-visible,
.js .activite-card.is-visible,
.js .evenement-card.is-visible,
.js .recherche-card.is-visible,
.js .volet-card.is-visible,
.js .contact-card.is-visible,
.js .annonce-card.is-visible,
.js .don-wall-item.is-visible,
.js .valeur-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.js .cause-card,
	.js .volet-icon-card,
	.js .events-home-card,
	.js .recentes-home-card,
	.js .membre-card,
	.js .activite-card,
	.js .evenement-card,
	.js .recherche-card,
	.js .volet-card,
	.js .contact-card,
	.js .annonce-card,
	.js .don-wall-item,
	.js .valeur-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
 * Léger zoom au survol des photos — sitewide, sur les activités, événements
 * et galeries photo des membres (demande explicite de l'utilisateur). Chaque
 * conteneur listé a déjà overflow:hidden dans son propre fichier CSS sauf
 * mention contraire ; redéfini ici aussi pour ne rien laisser dépasser au
 * zoom même si ce n'était pas déjà le cas.
 * ========================================================================== */

.activite-card-media,
.recent-widget-media,
.activite-nos-activites-media,
.related-activites-media,
.recentes-home-card-photo,
.recherche-card-photo,
.evenement-photo,
.evenement-photo-frame,
.annonce-photo-frame,
.annonce-card-photo,
.membre-card-photo,
.gallery-grid li {
	overflow: hidden;
}

.activite-card-media img,
.recent-widget-media img,
.activite-nos-activites-media img,
.related-activites-media img,
.recentes-home-card-photo img,
.recherche-card-photo img,
.evenement-photo img,
.evenement-photo-frame img,
.annonce-photo-frame img,
.annonce-card-photo img,
.membre-card-photo img,
.gallery-grid img {
	transition: transform 0.35s ease;
}

.activite-card-media:hover img,
.recent-widget-media:hover img,
.activite-nos-activites-media:hover img,
.related-activites-media:hover img,
.recentes-home-card-photo:hover img,
.recherche-card-photo:hover img,
.evenement-photo:hover img,
.evenement-photo-frame:hover img,
.annonce-photo-frame:hover img,
.annonce-card-photo:hover img,
.membre-card-photo:hover img,
.gallery-grid li:hover img {
	transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.activite-card-media img,
	.recent-widget-media img,
	.activite-nos-activites-media img,
	.related-activites-media img,
	.recentes-home-card-photo img,
	.recherche-card-photo img,
	.evenement-photo img,
	.evenement-photo-frame img,
	.annonce-photo-frame img,
	.annonce-card-photo img,
	.membre-card-photo img,
	.gallery-grid img {
		transition: none;
	}

	.activite-card-media:hover img,
	.recent-widget-media:hover img,
	.activite-nos-activites-media:hover img,
	.related-activites-media:hover img,
	.recentes-home-card-photo:hover img,
	.recherche-card-photo:hover img,
	.evenement-photo:hover img,
	.evenement-photo-frame:hover img,
	.annonce-photo-frame:hover img,
	.annonce-card-photo:hover img,
	.membre-card-photo:hover img,
	.gallery-grid li:hover img {
		transform: none;
	}
}

/* Boîte de visualisation photo en grand (lightbox) — voir includes/lightbox.php
   et assets/js/site.js. Remplace le clic "ouvre un nouvel onglet" sur les
   galeries d'activité/événement et de membre. */
.jade-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(10, 10, 10, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
}

.jade-lightbox[hidden] { display: none; }

.jade-lightbox-stage {
	position: relative;
	max-width: min(90vw, 1100px);
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.jade-lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.jade-lightbox-count {
	margin: 12px 0 0;
	color: #eee;
	font-size: 13px;
	letter-spacing: 0.03em;
}

.jade-lightbox-close,
.jade-lightbox-prev,
.jade-lightbox-next {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.jade-lightbox-close:hover,
.jade-lightbox-prev:hover:not(:disabled),
.jade-lightbox-next:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.25);
}

.jade-lightbox-close {
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
}

.jade-lightbox-prev,
.jade-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 18px;
}

.jade-lightbox-prev { left: 20px; }
.jade-lightbox-next { right: 20px; }

/* Pas de boucle (demande explicite) : bouton masqué en bout de galerie
   plutôt que de reboucler sur la première/dernière photo. */
.jade-lightbox-prev:disabled,
.jade-lightbox-next:disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 640px) {
	.jade-lightbox-prev, .jade-lightbox-next { width: 42px; height: 42px; }
	.jade-lightbox-prev { left: 8px; }
	.jade-lightbox-next { right: 8px; }
	.jade-lightbox-close { top: 10px; right: 10px; }
}

/* Bandeau "dernière annonce" (toast) — voir includes/notifications.php et
   assets/js/site.js. Reste discret, coin bas-gauche, ne bloque jamais le
   reste de l'interface (position fixed, largeur limitée). */
.jade-toast {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 1000;
	width: min(340px, calc(100vw - 40px));
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	padding: 18px 20px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.jade-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.jade-toast-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: none;
	font-size: 20px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px;
}

.jade-toast-close:hover { color: #333; }

.jade-toast-eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jade-primary, #0B6E34);
}

.jade-toast-title {
	margin: 0 0 8px;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	color: #1a1a1a;
	padding-right: 12px;
}

.jade-toast-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--jade-primary, #0B6E34);
	text-decoration: none;
}

.jade-toast-link:hover { text-decoration: underline; }

/* Bouton d'activation des notifications push — pastille discrète, coin
   bas-droit, masquée par défaut (voir assets/js/site.js : n'apparaît que si
   l'API Notification est disponible et la permission pas encore décidée). */
.jade-push-optin {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--jade-primary, #0B6E34);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(11, 110, 52, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
}

.jade-push-optin:hover {
	background: var(--jade-secondary, #0d8543);
	transform: translateY(-2px);
}

.jade-push-optin i { color: var(--jade-yellow, #FFC107); }

@media (max-width: 600px) {
	.jade-toast, .jade-push-optin {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
	}
	.jade-push-optin { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.jade-toast {
		transition: none;
	}
}
