/* ==========================================================================
   Inf'Faune — variante « identique »
   Reprend les valeurs du site Elementor actuel (kit global + CSS des pages).
   ========================================================================== */

:root {
	--if-bg: #fefefe;
	--if-surface: #ffffff;
	--if-text: #000000;
	--if-heading: #404535;
	--if-primary: #707c57;     /* vert sauge */
	--if-primary-ink: #fefefe;
	--if-dark: #404535;        /* olive foncé */
	--if-light: #f7f6f4;
	--if-accent: #707c57;
	--if-border: #d2d2d2;
	--if-link: #404535;
	--if-link-hover: #707c57;

	--if-font: "Poppins", system-ui, sans-serif;
	--if-font-display: "Poppins", system-ui, sans-serif;
	--if-font-size: 16px;
	--if-line: 1.6;

	--if-gutter: 20px;
	--if-wide: 1140px;
	--if-content: calc(1140px + 2 * var(--if-gutter));
	--if-header-h: 100px;

	--if-radius: 5px;
	--if-radius-img: 10px;
	--if-radius-btn: 15px;

	--if-space-s: 30px;
	--if-space-m: 50px;
	--if-space-l: 80px;

	--if-menu-bg: #404535;
	--if-menu-text: #f7f6f4;
}
@media (max-width: 767px) { :root { --if-gutter: 16px; --if-header-h: 80px; } }

/* En-tête : reprend l'en-tête Elementor n° 9 du site actuel ------------------- */
.site-header { background: #707c57; color: #fefefe; }
.site-header__inner { min-height: 0; padding-block: 5px; max-width: none; padding-inline: clamp(16px, 2vw, 40px); }
.if-menu { flex-wrap: nowrap; }
.if-menu a { white-space: nowrap; }
.site-branding .custom-logo-link { margin-left: clamp(0px, 2.4vw, 44px); }
.site-branding .custom-logo { width: clamp(76px, 7.5vw, 114px); max-height: none; height: auto; }
.if-logo-text { color: #fefefe; }
.main-navigation { margin-left: auto; gap: clamp(12px, 2.3vw, 44px); }
.if-menu { gap: 0; }
.if-menu > li { margin: 0 clamp(7px, 1.05vw, 26px); }
.if-menu a {
	position: relative; padding: 24px 0;
	font-family: "Poppins", sans-serif; font-size: clamp(14px, 1.2vw, 19px); font-weight: 300; line-height: 1;
	color: #fefefe; text-shadow: 0 4px 13px rgba(0, 0, 0, .24);
}
.if-menu a:hover, .if-menu a:focus, .if-menu .current-menu-item > a { color: #fefefe; }
.if-menu a::after { /* soulignement Elementor : 2px blanc */
	content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 2px;
	background: #fefefe; opacity: 0; transform: translateY(11px);
	transition: opacity .4s, transform .4s;
}
.if-menu a:hover::after, .if-menu a:focus::after, .if-menu .current-menu-item > a::after { opacity: 1; transform: none; }
.if-don-button {
	margin-right: clamp(0px, 2.3vw, 44px); padding: 12px clamp(14px, 1.5vw, 24px); border: 0; border-radius: 7px;
	background: rgba(255, 255, 255, .16); color: #fff;
	font-family: "Poppins", sans-serif; font-size: clamp(14px, 1.05vw, 16px); font-weight: 500; gap: 10px;
	text-shadow: 0 4px 11px rgba(0, 0, 0, .3); box-shadow: 0 3px 5px 0 rgba(0, 0, 0, .5);
	transition: background-color .3s ease;
}
.if-don-button:hover, .if-don-button:focus { background: rgba(255, 255, 255, .28); color: #fff; }
.if-don-button .if-icon { filter: drop-shadow(0 4px 11px rgba(0, 0, 0, .3)); }
.menu-toggle { color: #fff; }
.menu-toggle .if-icon { width: 30px; height: 30px; }
@media (max-width: 1040px) and (min-width: 961px) {
	.if-menu > li { margin: 0 5px; }
	.if-menu a { font-size: 13.5px; }
	.site-branding .custom-logo { width: 64px; }
	.if-don-button { padding: 10px 11px; font-size: 13.5px; }
	.main-navigation { gap: 10px; }
}
/* Menu mobile : liste blanche, texte vert (réglages Elementor « dropdown ») */
@media (max-width: 960px) {
	.site-branding .custom-logo { width: 72px; }
	.main-navigation {
		background: #fff; color: #707c57; justify-content: flex-start; gap: 24px;
		padding-top: calc(var(--if-header-h) + 30px);
	}
	.menu-is-open .site-header .menu-toggle { color: #707c57; }
	.main-navigation .if-menu { width: 100%; gap: 0; font-size: 20px; align-items: stretch; }
	.main-navigation .if-menu > li { width: 100%; }
	.main-navigation .if-menu > li { margin: 0; border-bottom: 1px solid #e8e8e8; }
	.main-navigation .if-menu a {
		display: block; padding: 21px 0; color: #707c57; text-shadow: none; font-size: 20px; text-align: center;
	}
	.main-navigation .if-menu a:hover, .main-navigation .if-menu .current-menu-item > a { background: rgba(112, 124, 87, .24); color: #707c57; }
	.main-navigation .if-menu a::after { display: none; }
	.main-navigation .if-don-button {
		background: #707c57; color: #fff; font-size: 22px; padding: 10px 24px; text-shadow: none; margin: 0;
	}
}

/* Titres de page : Poppins 900 italique en contour (style « 4eec7cc » du kit) --- */
.if-page-title,
.is-style-contour,
.is-style-citation {
	font-family: "Poppins", sans-serif;
	font-weight: 900;
	font-style: italic;
	line-height: 1;
	letter-spacing: 0;
	color: #fefefe;
	-webkit-text-stroke: 1px #404535;
	paint-order: stroke fill;
}
.if-page-title { font-size: clamp(32px, 7vw, 52px); }
.if-page-header { padding-top: 68px; padding-bottom: 20px; }
.is-style-contour { font-size: clamp(26px, 5vw, 40px); margin-block: 50px 30px !important; }
.is-style-citation {
	font-size: clamp(25px, 4.6vw, 52px);
	text-transform: uppercase;
	color: transparent;
	padding-top: 30px;
	margin-block: 50px 30px !important;
}

h2 { font-size: 28px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 400; color: #000; }

/* Bandeau d'accueil -------------------------------------------------------------- */
.if-hero { --if-hero-h: 0px; --if-hero-align: stretch; --if-hero-overlay: rgba(0, 0, 0, .3); }
.if-hero__content { --if-hero-pad: 300px 40px 170px; text-align: right; }
.if-hero__title {
	font-size: 115px; font-weight: 700; line-height: 1;
	color: rgba(255, 255, 255, .54);
	text-shadow: 0 0 10px rgba(0, 0, 0, .3);
}
.if-hero__quote { margin-top: 20px !important; margin-right: 5px; font-size: 19px; font-weight: 300; color: #fff; }
@media (max-width: 767px) {
	.if-hero__content { --if-hero-pad: 220px 16px 140px; }
	.if-hero__title { font-size: 80px; }
	.if-hero__quote { font-size: 15px; }
}
@media (max-width: 380px) { .if-hero__title { font-size: 62px; } }

/* Frise (accueil) : ligne centrale, cartes vertes alternées --------------------- */
.if-timeline { max-width: calc(1140px + 2 * var(--if-gutter)); padding: 10px var(--if-gutter) !important; }
.if-timeline::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
	transform: translateX(-50%); background: #d2d2d2;
}
.if-timeline__item {
	width: calc(50% - 40px - 2px);
	background: #707c57; color: #fff; border-radius: 5px;
	padding: 20px !important; text-align: center; margin-bottom: 50px !important;
}
.if-timeline__item:nth-child(odd) { margin-right: auto !important; margin-left: 0 !important; }
.if-timeline__item:nth-child(even) { margin-left: auto !important; margin-right: 0 !important; }
.if-timeline__item::before { /* pastille sur la ligne */
	content: ""; position: absolute; top: 30%; width: 45px; height: 45px; border-radius: 50%;
	background: #fefefe radial-gradient(circle, #707c57 0 6px, transparent 7px); border: 2px solid #404535;
}
.if-timeline__item:nth-child(odd)::before { right: calc(-40px - 2px - 22.5px); }
.if-timeline__item:nth-child(even)::before { left: calc(-40px - 2px - 22.5px); }
.if-timeline__item::after { /* flèche vers la ligne */
	content: ""; position: absolute; top: 30%; transform: translateY(-50%) translateY(22px);
	border: 11px solid transparent;
}
.if-timeline__item:nth-child(odd)::after { right: -22px; border-left-color: #707c57; }
.if-timeline__item:nth-child(even)::after { left: -22px; border-right-color: #707c57; }
.if-timeline__media img { border-radius: 0; }
.if-timeline__body { padding-top: 15px; font-size: 15px; }
.if-timeline__body p { color: #fff; text-align: left; }
.if-timeline__more a { color: #fff; text-decoration: underline; }
@media (max-width: 767px) {
	.if-timeline::before { left: calc(var(--if-gutter) + 22px); }
	.if-timeline__item, .if-timeline__item:nth-child(odd), .if-timeline__item:nth-child(even) { width: auto; margin-left: 60px !important; margin-right: 0 !important; }
	.if-timeline__item:nth-child(odd)::before, .if-timeline__item:nth-child(even)::before { left: -60.5px; right: auto; }
	.if-timeline__item:nth-child(odd)::after, .if-timeline__item:nth-child(even)::after { left: -22px; right: auto; border-left-color: transparent; border-right-color: #707c57; }
	.if-timeline__body { font-size: 13px; }
}

/* Texte de l'accueil */
.if-prose p { font-size: 15px; text-align: justify; color: #000; }
.if-prose .wp-block-button.is-style-outline .wp-block-button__link {
	border: 0; box-shadow: none; padding: 0; background: none; color: #000;
	text-decoration: underline; font-size: 14px; font-weight: 400;
}
.if-prose .wp-block-button.is-style-outline .wp-block-button__link:hover { transform: scale(1.1); }
@media (max-width: 767px) { .if-prose p { font-size: 13px; } }

/* Boutons -------------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link { border-radius: 15px; font-family: "Poppins", sans-serif; font-weight: 600; background: #707c57; color: #fefefe; padding: 15px 40px; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: #fefefe; color: #707c57; border: 2px solid #707c57;
	box-shadow: 0 3px 2px -2px rgba(0, 0, 0, .5);
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(6px); }

/* Intro centrée (Prestations, Pédagogie…) */
.if-intro { font-size: 17px; color: #000; padding-inline: 90px !important; }
.if-lead { font-size: 22px; text-align: center; }
@media (max-width: 767px) { .if-intro { padding-inline: var(--if-gutter) !important; } }

/* Sections image / texte (Prestations) --------------------------------------------- */
.if-split { max-width: calc(1140px + 2 * var(--if-gutter)); margin-block: 0 !important; }
.if-split__media .wp-block-image img { width: 90%; margin-inline: auto; border-radius: 10px; }
.if-split__text h3 { margin: 10px; }
.if-split__text p, .if-split__text li { font-size: 17px; color: #000; }
.entry-content > .if-divider {
	max-width: 940px; padding: 0; height: 0;
	border: 0; border-top: 1px solid #000; opacity: 1;
	margin-block: 45px !important;
}
.if-urgence { background: #f7f6f4; border-left: 4px solid #707c57; border-radius: 5px; }
.if-phone a { color: #404535; }

/* Presse ---------------------------------------------------------------------------- */
.if-card { text-align: center; }
.if-card__media img { border-radius: 10px; }
.if-card__quote { margin-top: 18px; font-style: italic; }
.if-card .wp-block-buttons { justify-content: center; }
.if-socials { justify-content: center; }

/* Philippe -------------------------------------------------------------------------- */
.if-profile { max-width: calc(1140px + 2 * var(--if-gutter)); }
.if-profile__name { font-size: 18px; }
.if-profile__text p { font-size: 16px; }

/* Don ------------------------------------------------------------------------------- */
.is-style-bandeau-vert, .if-don-tiers { background: #707c57; color: #fefefe; }
.if-tier p {
	font-family: "Poppins", sans-serif; font-size: 41px; font-weight: 700; line-height: 1em;
	color: #fefefe; margin-bottom: .45em !important;
}
.if-tier .if-tier__label { margin-bottom: 0 !important; }
@media (max-width: 767px) { .if-tier p { font-size: 32px; } }
.if-note { font-size: 16px; padding-block: 30px; opacity: 1; }

/* Contact */
.if-contact__info p { color: #000; }
.if-contact__info a { color: #000; }
.if-contact .if-socials { justify-content: flex-start; }

/* Lecteur PDF */
.if-pdf__link { color: #404535; font-weight: 600; }

/* Pied de page : reprend le pied Elementor n° 57 du site actuel ---------------- */
.site-footer { background: #404535; color: #f7f6f4; padding: 0 0 30px; overflow: hidden; }
.site-footer a { color: #f7f6f4; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
/* Bande vert sauge pleine largeur avec les réseaux */
.site-footer__top {
	justify-content: center; padding: 14px 0;
	background: #707c57; box-shadow: 0 0 0 100vmax #707c57; clip-path: inset(0 -100vmax);
}
.site-footer .if-social { gap: 15px; }
.site-footer .if-social__link {
	width: auto; height: auto; padding: .3em; border-radius: 0;
	background: #707c57; color: #f7f6f4;
}
.site-footer .if-social__link .if-icon { width: 30px; height: 30px; }
.site-footer .if-social__link:hover { transform: none; opacity: .8; }
/* Colonnes */
.site-footer__columns { border-top: 0; padding: 30px 0 0; gap: 0; }
.site-footer__title {
	margin: 30px 20px 10px 30px;
	font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 700; color: #f7f6f4;
}
.site-footer__columns ul { margin: 0 0 30px 20px; }
.site-footer__columns li { font-size: 14px; font-weight: 300; line-height: 15px; }
.site-footer__columns li + li { margin-top: 14px; }
.site-footer__col:first-child li { text-shadow: 0 0 10px rgba(0, 0, 0, .3); }
@media (max-width: 767px) {
	.site-footer .if-social { gap: 5px; }
	.site-footer__columns { grid-template-columns: 1fr; padding-top: 0; }
}

/* Articles -------------------------------------------------------------------------- */
.if-single .entry-content p { text-align: justify; }
.if-post-card__title a:hover { color: #707c57; }

/* Apparition : les titres « citation » arrivent latéralement comme sur l'ancien site */
.js-reveal .entry-content > .is-style-citation:not(.is-visible) { transform: translateX(40px); }
