/*
Theme Name: GJINTA
Theme URI: https://www.gjinta.org
Author: Innovation Technology
Author URI: https://innovtech-td.com
Description: Thème sur mesure pour l'association Les Groupements J'INTA (Bodo, Kouh-Est, Tchad). Responsive, accessible, polices auto-hébergées, sans dépendance externe.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gjinta
*/

/* ---------- Jetons de design ---------- */
:root {
	--c-night: #0f2a5c;
	--c-blue: #1d4e9e;
	--c-blue-soft: #e8eef9;
	--c-green: #4f8a25;
	--c-green-light: #8cc63f;
	--c-green-soft: #edf5e3;
	--c-sun: #f4b400;
	--c-sun-dark: #d99a00;
	--c-sand: #f7f3ea;
	--c-sand-dark: #ede6d6;
	--c-ink: #1b2433;
	--c-muted: #596273;
	--c-line: #e3dccb;
	--c-white: #fff;

	--f-title: "Fraunces", Georgia, "Times New Roman", serif;
	--f-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 42, 92, .06), 0 8px 24px rgba(15, 42, 92, .08);
	--shadow-lg: 0 2px 4px rgba(15, 42, 92, .06), 0 20px 48px rgba(15, 42, 92, .14);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-text);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-night); }
h1, h2, h3, h4, h5 { font-family: var(--f-title); font-weight: 600; line-height: 1.18; color: var(--c-night); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-sun); color: var(--c-night); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--c-sun); color: var(--c-night); font-weight: 700; border-radius: 8px;
}
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 600 1rem/1.2 var(--f-text); padding: .9em 1.5em; border-radius: 999px;
	border: 2px solid transparent; text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--primary:hover { background: var(--c-night); color: #fff; box-shadow: var(--shadow); }
.btn--sun { background: var(--c-sun); color: var(--c-night); }
.btn--sun:hover { background: #ffc61a; color: var(--c-night); box-shadow: 0 10px 24px rgba(244, 180, 0, .35); }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-night); }
.btn--ghost:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--c-night); }
.btn--sm { font-size: .92rem; padding: .6em 1.05em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--c-blue); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font: 700 .8rem/1 var(--f-text); text-transform: uppercase; letter-spacing: .14em;
	color: var(--c-green); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--c-green), var(--c-sun)); }
.eyebrow--light { color: var(--c-sun); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--c-night); color: rgba(255, 255, 255, .85); font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar__motto { margin: 0; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__motto::before { content: "« "; color: var(--c-sun); }
.topbar__motto::after { content: " »"; color: var(--c-sun); }
.topbar__contact { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .45em; color: #fff; text-decoration: none; }
.topbar__contact a:hover { color: var(--c-sun); }
.topbar__contact .icon { color: var(--c-sun); }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 92, .08); border-bottom-color: var(--c-line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; transition: min-height .25s; }
.site-header.is-scrolled .site-header__inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--c-night); flex-shrink: 0; }
.brand__logo { width: 64px; height: 64px; border-radius: 50%; transition: width .25s, height .25s; }
.is-scrolled .brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 1.22rem/1.15 var(--f-title); }
.brand__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-green); font-weight: 700; margin-top: .25em; }
.brand--light { color: #fff; }
.brand--light .brand__logo { background: #fff; }

/* Navigation */
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav a {
	display: block; padding: .55rem .62rem; font-weight: 600; font-size: .98rem; color: var(--c-ink); white-space: nowrap;
	text-decoration: none; border-radius: 8px; transition: color .2s, background-color .2s;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current-page-ancestor > a { color: var(--c-blue); background: var(--c-blue-soft); }
.primary-nav .menu-item-has-children > a { padding-right: .3rem; }
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px;
	border: 0; background: transparent; color: var(--c-muted); cursor: pointer; border-radius: 6px; padding: 0;
}
.submenu-toggle svg { transition: transform .2s; }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: .5rem;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.primary-nav .sub-menu a { font-weight: 500; padding: .55rem .8rem; white-space: normal; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--c-sand); color: var(--c-blue); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-nav .menu-cta > a { background: var(--c-sun); color: var(--c-night); margin-left: .5rem; padding: .65rem 1.2rem; border-radius: 999px; }
.primary-nav .menu-cta > a:hover, .primary-nav .menu-cta.current-menu-item > a { background: var(--c-night); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
		border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-night); cursor: pointer;
	}
	.nav-toggle__close { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.primary-nav {
		position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; z-index: 99;
		padding: 110px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
		box-shadow: var(--shadow-lg);
	}
	.nav-open .primary-nav { transform: none; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 42, 92, .45); z-index: 98; }
	.nav-open .site-header { z-index: 101; }
	.nav-toggle { position: relative; z-index: 101; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav .menu > li { flex-wrap: wrap; }
	.primary-nav .menu > li > a { flex: 1; font-size: 1.08rem; padding: .8rem .9rem; }
	.submenu-toggle { width: 44px; height: 44px; }
	.primary-nav .sub-menu {
		position: static; width: 100%; box-shadow: none; border: 0; border-left: 3px solid var(--c-green-light);
		border-radius: 0; margin: 0 0 .4rem .9rem; padding: 0 0 0 .4rem; display: none; opacity: 1; visibility: visible; transform: none;
	}
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .menu-cta > a { margin: .8rem 0 0; text-align: center; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.topbar__motto { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__contact { gap: 1rem; font-size: .84rem; }
	.site-header__inner { min-height: 74px; }
	.brand__logo { width: 50px; height: 50px; }
	.brand__name { font-size: 1.05rem; }
	.brand__tag { font-size: .68rem; }
}

/* ---------- Hero accueil ---------- */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--c-night); isolation: isolate; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.hero__slide {
	background-size: cover; background-position: center; opacity: 0; transform: scale(1.06);
	transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(10, 28, 64, .92) 0%, rgba(10, 28, 64, .72) 45%, rgba(10, 28, 64, .2) 100%),
		linear-gradient(0deg, rgba(10, 28, 64, .55) 0%, transparent 40%);
}
.hero__inner { padding-top: clamp(4rem, 10vh, 7rem); padding-bottom: clamp(5rem, 12vh, 8rem); }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 14ch; margin-bottom: 1.4rem; font-weight: 600; }
.hero__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 58ch; color: rgba(255, 255, 255, .9); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__dots { display: flex; gap: .55rem; margin-top: 3rem; }
.hero__dot { width: 34px; height: 5px; border-radius: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s; }
.hero__dot.is-active { background: var(--c-sun); width: 54px; }

/* ---------- Chiffres clés ---------- */
.stats { position: relative; z-index: 2; margin-top: -3.5rem; }
.stats__grid {
	list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stats__grid li { padding: 1.8rem 1.6rem; border-right: 1px solid var(--c-line); }
.stats__grid li:last-child { border-right: 0; }
.stats__grid strong { display: block; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--f-title); color: var(--c-blue); margin-bottom: .5rem; }
.stats__grid li:nth-child(2) strong { color: var(--c-green); }
.stats__grid li:nth-child(3) strong { color: var(--c-sun-dark); }
.stats__grid span { font-size: .98rem; color: var(--c-muted); line-height: 1.45; display: block; }
@media (max-width: 900px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__grid li:nth-child(2) { border-right: 0; }
	.stats__grid li:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}
@media (max-width: 480px) { .stats__grid li { padding: 1.3rem 1rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); }
.section--sand { background: var(--c-sand); }
.section--intro { padding-top: clamp(5rem, 9vw, 7rem); }
.section-head { max-width: 760px; margin-bottom: 2.8rem; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head--row .section-title { margin-bottom: 0; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-lead { font-size: 1.18rem; color: var(--c-muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.media-stack { position: relative; padding: 0 12% 14% 0; }
.media-stack__a { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-stack__b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.media-stack__badge {
	position: absolute; left: -12px; bottom: 6%; background: var(--c-green); color: #fff; padding: .9rem 1.2rem;
	border-radius: 12px; box-shadow: var(--shadow); font-size: .95rem; line-height: 1.3; max-width: 210px;
}
.media-stack__badge strong { display: block; font: 700 1.25rem/1.2 var(--f-title); color: var(--c-sun); }
.check-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; font-weight: 600; }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--c-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8a25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Objectifs */
.goal-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.goal {
	position: relative; background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem 1.5rem;
	border: 1px solid var(--c-line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.goal:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.goal__icon {
	display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 14px;
	background: var(--c-blue-soft); color: var(--c-blue); margin-bottom: 1.1rem;
}
.goal:nth-child(3n+2) .goal__icon { background: var(--c-green-soft); color: var(--c-green); }
.goal:nth-child(3n+3) .goal__icon { background: #fff4d6; color: var(--c-sun-dark); }
.goal__num { position: absolute; top: 1.3rem; right: 1.4rem; font: 600 .95rem/1 var(--f-title); color: var(--c-line); }
.goal__title { font-size: 1.15rem; margin-bottom: .45rem; }
.goal__text { font-size: 1rem; color: var(--c-muted); margin: 0; line-height: 1.55; }
.entry-content .goal-grid { margin-top: 2rem; }

/* Mot du coordonnateur */
.coord { background: var(--c-night); color: #fff; position: relative; overflow: hidden; }
.coord::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(140, 198, 63, .22), transparent 70%);
}
.coord__inner { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; z-index: 1; }
.coord__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50% 50% var(--radius) 50%; border: 6px solid rgba(255, 255, 255, .12); }
.coord__quote { margin: 0 0 1.5rem; }
.coord__quote .icon { color: var(--c-sun); margin-bottom: .6rem; }
.coord__quote p { font: 400 clamp(1.3rem, 2.3vw, 1.75rem)/1.45 var(--f-title); color: #fff; }
.coord__name { display: flex; flex-direction: column; margin-bottom: 1.8rem; }
.coord__name strong { font-size: 1.15rem; }
.coord__name span { color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .coord__inner { grid-template-columns: 1fr; } .coord__photo { max-width: 260px; } }

/* Cartes */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { object-fit: contain !important; padding: 18%; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .4em; font-size: .9rem; color: var(--c-green); font-weight: 600; margin-bottom: .6rem; }
.card__title { font-size: 1.3rem; margin-bottom: .6rem; }
.card__title a { color: var(--c-night); text-decoration: none; }
.card__title a:hover { color: var(--c-blue); }
.card__excerpt { color: var(--c-muted); font-size: 1rem; flex: 1; }
.card--text .card__body { padding: 1.6rem; }

/* Mosaïque photos */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.mosaic li:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic a { display: block; height: 100%; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic a::after { content: ""; position: absolute; inset: 0; background: rgba(15, 42, 92, 0); transition: background .3s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic a:hover::after { background: rgba(15, 42, 92, .2); }
@media (max-width: 820px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* Tuiles documents */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.tile {
	position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.7rem 1.5rem; border-radius: var(--radius);
	background: var(--c-sand); text-decoration: none; color: var(--c-ink); transition: background .25s, color .25s, transform .25s var(--ease);
}
.tile:hover { background: var(--c-blue); color: #fff; transform: translateY(-4px); }
.tile__icon { color: var(--c-blue); margin-bottom: 1.4rem; }
.tile:hover .tile__icon { color: var(--c-sun); }
.tile__title { font: 600 1.25rem/1.25 var(--f-title); color: var(--c-night); margin-bottom: .35rem; }
.tile:hover .tile__title { color: #fff; }
.tile__text { font-size: .98rem; color: var(--c-muted); padding-right: 2rem; }
.tile:hover .tile__text { color: rgba(255, 255, 255, .85); }
.tile__arrow { position: absolute; right: 1.3rem; bottom: 1.5rem; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(120deg, var(--c-green) 0%, #3d7a1b 55%, var(--c-blue) 140%); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { max-width: 62ch; margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; background: var(--c-night); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 28, 64, .94), rgba(10, 28, 64, .72)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--c-blue) 0 33%, var(--c-green-light) 33% 66%, var(--c-sun) 66%); }
.page-hero__inner { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 22ch; margin: .4rem 0 .6rem; }
.page-hero__subtitle { font-size: 1.18rem; color: rgba(255, 255, 255, .86); max-width: 64ch; margin: 0; }
.breadcrumb { font-size: .92rem; color: rgba(255, 255, 255, .7); display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb a { color: var(--c-sun); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-layout { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.page-layout > .entry { max-width: 860px; margin: 0 auto; }
.page-layout--aside { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.page-layout--aside > .entry { max-width: none; margin: 0; }
@media (max-width: 960px) { .page-layout--aside { grid-template-columns: 1fr; } }
.section-nav { position: sticky; top: 110px; background: var(--c-sand); border-radius: var(--radius); padding: 1.5rem; }
.section-nav__title { font: 600 1.2rem/1.2 var(--f-title); color: var(--c-night); margin-bottom: .8rem; }
.section-nav ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.section-nav li a { display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--c-ink); font-weight: 500; border-left: 3px solid transparent; }
.section-nav li a:hover { background: #fff; color: var(--c-blue); }
.section-nav li a[aria-current] { background: #fff; color: var(--c-blue); font-weight: 700; border-left-color: var(--c-green); }
.section-nav__help { border-top: 1px solid var(--c-line); padding-top: 1.2rem; }
.section-nav__help p { margin: 0 0 .6rem; font-weight: 600; }
@media (max-width: 960px) { .section-nav { position: static; } }

.entry-meta { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; color: var(--c-green); font-weight: 600; margin-bottom: 1.8rem; }
.entry-meta a { color: var(--c-green); }
.entry-meta .sep { color: var(--c-line); }

/* Contenu éditorial */
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--c-sun); background: var(--c-sand); border-radius: 0 var(--radius) var(--radius) 0;
	font: 400 1.25rem/1.55 var(--f-title); color: var(--c-night);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .8rem; font: 600 .95rem var(--f-text); color: var(--c-muted); font-style: normal; }
.entry-content .wp-block-image figcaption, .entry-content figcaption { font-size: .92rem; color: var(--c-muted); text-align: center; margin-top: .6rem; }
.entry-content .lead, .entry-content .is-style-lead { font-size: 1.28rem; color: var(--c-night); line-height: 1.6; }
.entry-content .wp-block-separator { border: 0; height: 1px; background: var(--c-line); margin: 3rem 0; }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-button__link { border-radius: 999px; padding: .85em 1.5em; font-weight: 600; background: var(--c-blue); }
.entry-content .wp-block-button__link:hover { background: var(--c-night); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-blue); border: 2px solid currentColor; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--c-line); padding: .7rem .8rem; text-align: left; }
.entry-content th { background: var(--c-sand); font-weight: 700; }
.entry-content .wp-block-gallery { gap: 12px; }

.callout { background: var(--c-blue-soft); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 2rem 0; border: 1px solid #d4def2; }
.callout--green { background: var(--c-green-soft); border-color: #d9e9c6; }
.callout--sun { background: #fff6dc; border-color: #f6e2a8; }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0 !important; font-size: 1.2rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0; }
.facts li { background: var(--c-sand); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 0; }
.facts strong { display: block; font: 700 1.5rem/1.15 var(--f-title); color: var(--c-blue); margin-bottom: .25rem; }
.facts span { font-size: .95rem; color: var(--c-muted); line-height: 1.4; display: block; }

.timeline { list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; padding-left: 2.6rem; margin-bottom: 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--c-green); }
.timeline strong { display: block; font: 700 1.15rem/1.3 var(--f-title); color: var(--c-night); }

/* Liste de documents */
.doc-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .9rem; }
.doc-item {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.1rem 1.2rem;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); margin: 0 !important; transition: box-shadow .2s, border-color .2s;
}
.doc-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.doc-item__icon { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 64px; border-radius: 10px; background: #fdecea; color: #c0392b; }
.doc-item__icon b { font-size: .62rem; letter-spacing: .06em; margin-top: 2px; }
.doc-item__icon--xlsx, .doc-item__icon--xls { background: var(--c-green-soft); color: var(--c-green); }
.doc-item__title { display: block; font-weight: 700; color: var(--c-night); line-height: 1.35; }
.doc-item__desc { display: block; font-size: .95rem; color: var(--c-muted); }
.doc-item__meta { display: block; font-size: .85rem; color: var(--c-muted); margin-top: .2rem; }
.doc-item__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
	.doc-item { grid-template-columns: auto 1fr; }
	.doc-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Visionneuse de scans */
.scan-viewer { margin: 2rem 0; background: var(--c-sand); border-radius: var(--radius); padding: 1.2rem; }
.scan-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.scan-viewer__count { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--c-night); }
.scan-viewer__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.scan-viewer__grid li { margin: 0 !important; }
.scan-viewer__grid a { position: relative; display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: transform .2s var(--ease), box-shadow .2s; }
.scan-viewer__grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scan-viewer__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 0 !important; }
.scan-viewer__num { position: absolute; bottom: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--c-night); color: #fff; border-radius: 999px; }

/* Visionneuse (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 18, 40, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { color: rgba(255, 255, 255, .85); margin-top: .9rem; text-align: center; font-size: .98rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--c-sun); color: var(--c-night); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 10px 80px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); } }

/* Formulaires */
.contact-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin: 0 0 1.1rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .35rem; color: var(--c-night); }
.field input, .field select, .field textarea, .search-form input {
	width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border: 1.5px solid var(--c-line); border-radius: 10px;
	background: #fff; color: var(--c-ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(29, 78, 158, .15); }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--c-green); }
.field--check label { font-weight: 400; font-size: .95rem; color: var(--c-muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; font-weight: 600; }
.notice--success { background: var(--c-green-soft); color: #2f5a12; border: 1px solid #cfe3b8; }
.notice--error { background: #fdecea; color: #922b21; border: 1px solid #f5c6c0; }
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem auto; }
.search-form .btn { padding: .8rem 1.1rem; border-radius: 10px; }

.contact-cards { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.contact-cards li { margin: 0; background: var(--c-sand); border-radius: var(--radius); padding: 1.3rem; }
.contact-cards .icon { color: var(--c-green); margin-bottom: .6rem; }
.contact-cards strong { display: block; color: var(--c-night); }
.contact-cards a { word-break: break-word; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.post-nav a { display: block; text-decoration: none; font-weight: 600; color: var(--c-night); line-height: 1.35; }
.post-nav a span { display: block; font-size: .85rem; color: var(--c-green); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.post-nav div:last-child { text-align: right; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.empty { text-align: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0b2049; color: rgba(255, 255, 255, .78); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(3.5rem, 7vw, 5rem); padding-bottom: 3rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer__motto { font: italic 400 1.1rem/1.5 var(--f-title); color: var(--c-sun); }
.site-footer__title { font: 700 .85rem/1 var(--f-text); text-transform: uppercase; letter-spacing: .14em; color: #fff; margin: .6rem 0 1.4rem; }
.footer-menu, .footer-contact, .legal-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu { columns: 2; column-gap: 1.5rem; }
.footer-menu li { margin-bottom: .6rem; break-inside: avoid; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--c-sun); }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: 1rem; align-items: flex-start; }
.footer-contact .icon { color: var(--c-green-light); flex-shrink: 0; margin-top: .2rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer__credit { color: rgba(255, 255, 255, .55); }
.site-footer__credit a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__credit a:hover { color: var(--c-sun); }

/* Widgets */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.15rem; }

/* ---------- Animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.hero__slide { transform: none !important; }
}

/* Impression */
@media print {
	.topbar, .site-header, .site-footer, .section-nav, .hero__dots, .lightbox { display: none !important; }
	.page-hero { background: none; color: #000; }
	.page-hero__title { color: #000; }
}

/* Galerie photos */
.photo-grid { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid li { margin: 0 !important; }
.photo-grid a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s var(--ease); }
.photo-grid__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .92rem; line-height: 1.3;
	background: linear-gradient(0deg, rgba(10, 28, 64, .85), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.photo-grid a:hover img { transform: scale(1.06); }
.photo-grid a:hover .photo-grid__cap, .photo-grid a:focus-visible .photo-grid__cap { opacity: 1; transform: none; }
@media (hover: none) { .photo-grid__cap { opacity: 1; transform: none; } }

/* Cartes de projets */
.project-grid { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.project-grid li { margin: 0 !important; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; }
.project-grid .project__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-grid h3 { margin: 0 0 .4rem !important; font-size: 1.25rem; }
.project-grid p { color: var(--c-muted); font-size: 1rem; flex: 1; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3em .7em; border-radius: 999px; background: var(--c-green-soft); color: var(--c-green); margin-bottom: .7rem; align-self: flex-start; }
.badge--sun { background: #fff4d6; color: #9a6d00; }
.badge--blue { background: var(--c-blue-soft); color: var(--c-blue); }
.entry-content .wp-block-media-text { margin: 0 0 2.2rem; background: var(--c-sand); border-radius: var(--radius); overflow: hidden; }
.entry-content .wp-block-media-text img { border-radius: 0; }
.entry-content .wp-block-media-text__content { padding: 1.5rem 2rem; }
