/*
Theme Name: BGE Theme
Theme URI: https://bge-picardie.org
Author: BGE Picardie
Author URI: https://bge-picardie.org
Description: Thème custom fidèle à la maquette de référence (maquette-reference-v3.html). Design system officiel BGE Picardie (couleurs extraites du logo, Bricolage Grotesque + Hanken Grotesk). Les sections dynamiques sont rendues par les plugins bge-* via shortcodes/widgets.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: Proprietary
Text Domain: bge-theme
Tags: custom, performance, custom-front-page
*/

/* ============================================================
   1. Design system — variables (issues de 06_design_system.md)
   ============================================================ */
:root {
	/* Bleu BGE */
	--blue:        #0C4A94;
	--blue-bright: #1565C8;
	--blue-deep:   #062A53;

	/* Rouge BGE */
	--red:         #D8232A;
	--red-deep:    #B11A20;

	/* Réseau */
	--green:       #81B32F;
	--orange:      #E68D14;
	--sky:         #8EB5D5;

	/* Neutres */
	--ink:   #0E2238;
	--paper: #F4F7FB;
	--white: #FFFFFF;
	--line:  #E1E8F2;
	--muted: #5A6B82;

	--shadow:0 22px 50px -26px rgba(6,42,83,.55);
	--radius:18px;

	/* Variantes "ink" pour les couleurs vives utilisées comme TEXTE
	   sur fond clair — corrige le contraste pour conformité AA (RGAA). */
	--green-ink:  #4A7012;
	--orange-ink: #8A5600;
	--sky-ink:    #2E5F8A;

	/* Largeurs de wrap centralisées (source unique de vérité) */
	--wrap-base: 1200px;
	--wrap-wide: 1380px;
}

/* ============================================================
   2. Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, .display {
	font-family: 'Bricolage Grotesque', system-ui, sans-serif;
	line-height: 1.02;
	letter-spacing: -.025em;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.wrap { max-width: var(--wrap-base); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: var(--wrap-wide); }

/* ============================================================
   3. Boutons (.btn-*)
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	font-family: 'Hanken Grotesk', sans-serif;
	border: none;
	cursor: pointer;
	border-radius: 100px;
	padding: .9rem 1.6rem;
	font-size: 1rem;
	transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
	text-decoration: none;
}
.btn-red   { background: var(--red);   color: #fff; box-shadow: 0 12px 26px -10px rgba(216,35,42,.7); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-blue  { background: var(--blue);  color: #fff; }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { transform: translateY(-2px); }

.eyebrow {
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
}

/* ============================================================
   4. Logo mark (cluster réseau)
   ============================================================ */
.mark { width: 40px; height: 40px; flex: none; }

/* ============================================================
   5. Utility bar (gratuit / tel / bureau virtuel)
   ============================================================ */
.utility { background: var(--blue-deep); color: #bcd2ee; font-size: .85rem; }
/* Utility bar : pleine largeur (override du max-width 1200px) */
.utility .wrap {
	max-width: none;
	padding: 0 clamp(16px, 3vw, 48px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 40px;
	flex-wrap: wrap;
	gap: .8rem;
}
.utility strong { color: #fff; }
.utility .u-right { display: flex; gap: 1.4rem; align-items: center; }
.utility a:hover { color: #fff; }

/* ============================================================
   6. Header sticky
   ============================================================ */
header.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(244,247,251,.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
/* Header : largeur contenue (≤ 1500px) pour garder les éléments groupés,
   logo + nav collés à gauche, CTAs poussés à droite par margin-left: auto. */
header.site-header .wrap {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 clamp(16px, 2.5vw, 36px);
	display: flex;
	align-items: center;
	height: 96px;
	gap: clamp(1.2rem, 2.5vw, 2.4rem);
	flex-wrap: nowrap;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; text-decoration: none; }
.logo__img {
	display: block;
	height: 76px;
	width: auto;
	max-height: 84px;
	transition: opacity .2s;
}
.logo:hover .logo__img,
.logo:focus-visible .logo__img { opacity: .85; }
/* Variante footer : utilise la version inversée du logo (fournie par BGE pour
   les fonds non-blancs). Plus grand pour faire signature en bas de page. */
.logo--footer .logo__img {
	height: 96px;
	max-height: 110px;
}

@media (max-width: 520px) {
	.logo__img { height: 56px; }
	.logo--footer .logo__img { height: 72px; }
}

nav.main { display: flex; gap: clamp(1rem, 1.6vw, 1.7rem); align-items: center; font-weight: 600; font-size: .97rem; white-space: nowrap; }
nav.main .item { position: relative; padding: .4rem 0; }
nav.main .item::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
nav.main .item:hover { color: var(--blue); }
nav.main .item:hover::after { width: 100%; }
nav.main .item.active::after { width: 100%; background: var(--blue); }
nav.main .item.active { color: var(--blue); }
nav.main .item.has::before { content: "⌄"; font-size: .7rem; margin-right: .25rem; color: var(--muted); }

/* CTA poussés à droite — ce qui ramène le menu juste à côté du logo */
.nav-cta { display: flex; gap: .6rem; align-items: center; flex-shrink: 0; margin-left: auto; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   7. Hero
   ============================================================ */
/* === Hero — CSS exact de la maquette de référence (état qui fonctionnait) === */
.hero { position: relative; background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 90%); color: #fff; overflow: hidden; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 78% 0%, rgba(216,35,42,.18), transparent 60%); z-index: 0; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 74px 24px 70px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); font-weight: 800; }
.hero h1 .hl { color: #fff; position: relative; display: inline-block; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .32em; background: var(--red); z-index: -1; border-radius: 4px; transform: rotate(-.6deg); }
.hero p.lead { font-size: 1.2rem; color: #d4e3f6; margin: 1.4rem 0 2rem; max-width: 36ch; }
.hero .badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 100px; padding: .5rem 1.05rem; font-size: .88rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: .45rem; }
.pill b { color: #fff; font-weight: 800; }
.pill .g { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pill .o { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pill .s { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.hero-card { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; padding: 12px; backdrop-filter: blur(6px); box-shadow: var(--shadow); }

/* ===== Hero slider (remplace l'ancienne vidéo, garde la carte verre) ===== */
.hero-slider {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	overflow: hidden;
	isolation: isolate;
}
.hero-slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 1.2s ease;
	overflow: hidden;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6,42,83,0) 55%, rgba(6,42,83,.65) 100%);
	pointer-events: none;
}
.hero-slide--green  { background: linear-gradient(135deg, #4a8a1a, #62a022 60%, #81B32F); }
.hero-slide--orange { background: linear-gradient(135deg, #a55e07, #c87413 60%, #E68D14); }
.hero-slide--sky    { background: linear-gradient(135deg, #557fa3, #6a99c0 60%, #8EB5D5); }
.hero-slide--red    { background: linear-gradient(135deg, #8a161c, #b11a20 60%, #D8232A); }
.hero-slide__ic {
	font-size: clamp(4rem, 8vw, 6.5rem);
	filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
	opacity: .95;
	position: relative;
	z-index: 1;
}
.hero-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.hero-slide--photo { background: var(--blue-deep, #062A53); }
/* Surcouche assombrie en bas pour lisibilité du caption sur n'importe quelle photo */
.hero-slide--photo::after {
	background: linear-gradient(180deg, rgba(6,42,83,0) 45%, rgba(6,42,83,.78) 100%);
}
.hero-slide__caption {
	position: absolute;
	left: 18px;
	bottom: 14px;
	color: #fff;
	font-family: 'Hanken Grotesk', sans-serif;
	z-index: 2;
}
.hero-slide__caption b {
	display: block;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: -.01em;
}
.hero-slide__caption small {
	display: block;
	color: rgba(255,255,255,.82);
	font-size: .82rem;
	margin-top: 2px;
}
.hero-slide__label {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: .68rem;
	font-weight: 800;
	color: #fff;
	background: rgba(0,0,0,.32);
	backdrop-filter: blur(4px);
	padding: .32rem .6rem;
	border-radius: 8px;
	z-index: 3;
}
.hero-slider__dots {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	gap: 6px;
	z-index: 3;
}
.hero-slider__dot {
	width: 24px;
	height: 4px;
	border: none;
	background: rgba(255,255,255,.35);
	border-radius: 100px;
	cursor: pointer;
	padding: 0;
	transition: background .3s, width .3s;
}
.hero-slider__dot:hover { background: rgba(255,255,255,.6); }
.hero-slider__dot.is-active { background: #fff; width: 36px; }

.hero-card .meta { display: flex; align-items: center; gap: 13px; padding: 14px 10px 6px; color: #fff; }
.hero-card .meta .av { width: 42px; height: 42px; border-radius: 12px; background: var(--red); flex: none; display: grid; place-items: center; font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; }
.hero-card .meta small { color: #bcd2ee; }

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

/* ============================================================
   8. Sections génériques
   ============================================================ */
section.sec { padding: 78px 0; position: relative; }
.sec-head { max-width: 62ch; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; margin-top: .5rem; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin-top: .7rem; }

/* Section quiz wrapper */
.quiz-sec { background: linear-gradient(180deg, #fff, var(--paper)); position: relative; }
.quiz-sec::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--sky), var(--orange), var(--red)); }

/* ============================================================
   9. Parcours — 4 cartes colorées
   ============================================================ */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: all .18s; cursor: pointer; overflow: hidden; color: inherit; text-decoration: none; display: block; }
.pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .pic-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--c); display: grid; place-items: center; color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.pcard .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: .85rem; color: var(--c); letter-spacing: .05em; }
.pcard h3 { font-size: 1.25rem; margin: .2rem 0 .5rem; }
.pcard p { color: var(--muted); font-size: .93rem; }
.pcard .arrow { margin-top: 14px; color: var(--c); font-weight: 800; font-size: .9rem; }

/* ============================================================
   10. Stats — compteurs animés
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { position: relative; padding: 10px; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat .big { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1; color: var(--blue); }
.stat .big .plus { color: var(--red-deep); }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: .6rem; font-weight: 600; }
.stat:nth-child(1) .big { color: var(--green-ink); }
.stat:nth-child(2) .big { color: var(--blue); }
.stat:nth-child(3) .big { color: var(--orange-ink); }
.stat:nth-child(4) .big { color: var(--red-deep); }

/* ============================================================
   11. Actualités — 3 cartes
   ============================================================ */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ncard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .18s; color: inherit; text-decoration: none; display: block; }
.ncard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ncard .nimg { aspect-ratio: 16/9; background: linear-gradient(135deg,#dbe6f4,#bcd2ee); }
.ncard .nimg img { width: 100%; height: 100%; object-fit: cover; }
.ncard .nbody { padding: 18px 20px 22px; }
.ncard .ncat { font-size: .68rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.ncard h3 { font-size: 1.12rem; margin: .4rem 0 .5rem; line-height: 1.2; }
.ncard .ndate { font-size: .82rem; color: var(--muted); }

/* ============================================================
   12. CTA band bleu
   ============================================================ */
.ctaband { position: relative; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: 26px; padding: 52px; text-align: center; box-shadow: var(--shadow); overflow: hidden; }
.ctaband::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(216,35,42,.5), transparent 70%); top: -120px; right: -60px; }
.ctaband h2 { font-size: 2.2rem; font-weight: 800; position: relative; }
.ctaband p { color: #d4e3f6; margin: .6rem auto 1.7rem; max-width: 48ch; position: relative; }
.ctaband .btn-white { position: relative; }

/* ============================================================
   13. Financeurs / partenaires / certifications
   ============================================================ */
.trust-sec { background: var(--white); border-top: 1px solid var(--line); }
.fin-note { background: #eaf1fb; border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; font-size: .95rem; max-width: 66ch; margin-bottom: 26px; }
.fin-note b { color: var(--blue); }
.logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.logo-chip { min-height: 66px; min-width: 140px; padding: 8px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--blue-deep); font-size: .92rem; text-align: center; line-height: 1.15; transition: all .15s; }
.logo-chip:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.logo-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; margin-top: 3px; }
.labels-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.label-badge { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; font-weight: 700; font-size: .88rem; }
.label-badge .d { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 800; flex: none; }
.partners-min .logo-chip { min-height: 50px; min-width: 118px; font-size: .8rem; color: var(--muted); background: var(--paper); font-weight: 700; }
.ph-note { font-size: .78rem; color: var(--muted); margin-top: 14px; font-style: italic; }

/* ===== Financeurs officiels — rangée mise en avant (avant le marquee) ===== */
.financeurs-officiels {
	margin: 8px 0 32px;
	padding: 22px 24px;
	background: linear-gradient(180deg, #eaf1fb 0%, #f5f9fe 100%);
	border: 1px solid #d4e0f0;
	border-radius: var(--radius);
}
.financeurs-officiels__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: .95rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--blue);
	margin: 0 0 16px;
	text-align: center;
}
.financeurs-officiels__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 3vw, 48px);
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}
.financeurs-officiels__item {
	flex: 0 1 auto;
	display: grid;
	place-items: center;
}
.financeurs-officiels__item img {
	max-height: 72px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

@media (max-width: 640px) {
	.financeurs-officiels { padding: 18px 14px; }
	.financeurs-officiels__row { gap: 22px; }
	.financeurs-officiels__item img { max-height: 56px; max-width: 130px; }
}

/* ===== Marquee partenaires (logos réels) ===== */
.partners-marquee {
	margin-top: 28px;
	overflow: hidden;
	position: relative;
	/* Fade aux extrémités pour l'effet "infini" propre */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.partners-track {
	display: flex;
	align-items: center;
	gap: 56px;
	width: max-content;
	animation: bge-marquee 70s linear infinite;
	will-change: transform;
}
.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track { animation-play-state: paused; }
.partners-marquee--rev .partners-track {
	animation-name: bge-marquee-rev;
	animation-duration: 75s;
}
@keyframes bge-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@keyframes bge-marquee-rev {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}
.partners-item {
	flex: 0 0 auto;
	height: 70px;
	min-width: 110px;
	display: grid;
	place-items: center;
	padding: 0 8px;
}
.partners-item img {
	max-height: 60px;
	max-width: 160px;
	width: auto;
	object-fit: contain;
	filter: grayscale(.15) saturate(.9);
	opacity: .92;
	transition: filter .25s, opacity .25s, transform .25s;
}
.partners-item:hover img {
	filter: grayscale(0) saturate(1);
	opacity: 1;
	transform: scale(1.06);
}

/* Bloc "membre des réseaux" — statique, centré */
.partners-networks {
	margin-top: 38px;
	padding-top: 28px;
	border-top: 1px dashed var(--line);
	text-align: center;
}
.partners-networks__title {
	font-weight: 700;
	color: var(--ink);
	font-size: .95rem;
	margin-bottom: 14px;
}
.partners-networks__row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 36px;
	flex-wrap: wrap;
}
.partners-networks__row .partners-item { height: 56px; }
.partners-networks__row .partners-item img { max-height: 52px; max-width: 140px; }

@media (prefers-reduced-motion: reduce) {
	.partners-track { animation: none; transform: none; }
	.partners-marquee { overflow-x: auto; }
}

@media (max-width: 640px) {
	.partners-item { height: 56px; min-width: 90px; padding: 0 4px; }
	.partners-item img { max-height: 46px; max-width: 130px; }
	.partners-track { gap: 36px; }
}

/* ============================================================
   14. Footer
   ============================================================ */
footer.site-footer { background: var(--ink); color: #9fb2cc; padding: clamp(64px, 6vw, 96px) 0 32px; font-size: .92rem; margin-top: clamp(24px, 3vw, 56px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
footer.site-footer h4 { color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a:hover { color: #fff; }
.foot-eco { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-eco span { background: rgba(255,255,255,.07); border-radius: 7px; padding: 5px 10px; font-size: .78rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #7e93b0; }

/* ============================================================
   15. Photo slots (placeholder pour vraies photos)
   ============================================================ */
.photo-slot { background: linear-gradient(135deg,#dbe6f4,#bcd2ee); position: relative; display: grid; place-items: center; overflow: hidden; }
.photo-slot::after { content: "📷 Photo réelle"; position: absolute; bottom: 8px; font-size: .68rem; font-weight: 800; color: var(--blue); opacity: .65; }
.photo-slot .ic { font-size: 1.8rem; opacity: .45; }

/* ============================================================
   16. Reveal / counter
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   17. Responsive
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	#net { display: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 920px) {
	nav.main { display: none; }
	.burger { display: flex; }
	.hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
	.cards4 { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
	.stat::after { display: none; }
	.news { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.nav-cta .btn-ghost { display: none; }
}

@media (max-width: 520px) {
	.utility .u-left { display: none; }
	.cards4 { grid-template-columns: 1fr; }
	.ctaband { padding: 34px 22px; }
}

/* Section "10 antennes en Picardie" sur la home — fond bleu sombre signature,
   carte Leaflet à gauche (sticky) + liste à droite + canvas réseau en arrière-plan */
.home-antennes-sec {
	background: var(--blue-deep);
	color: #fff;
	overflow: hidden;
	position: relative;
	isolation: isolate;
}
/* Canvas réseau animé en background (z-index 0) — le contenu reste au-dessus (z-index 2) */
.home-antennes-sec__net {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: .55;
	pointer-events: none;
}
.home-antennes-sec::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 400px at 90% 10%, rgba(216,35,42,.16), transparent 60%);
	z-index: 0;
	pointer-events: none;
}
.home-antennes-sec > .wrap { position: relative; z-index: 2; }
.home-antennes-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: start;
	max-width: 100%;
}
/* Carte sticky — suit le scroll quand on parcourt la liste à droite */
.home-antennes-grid__map {
	min-width: 0;
	position: sticky;
	top: 116px; /* hauteur header sticky + petit air */
}
.home-antennes-grid__list { min-width: 0; }
@media (max-width: 920px) {
	.home-antennes-grid__map { position: static; }
}
.home-antennes-grid__list .bge-antennes__head { display: none; }
.home-antennes-grid__list .bge-antennes { padding: 0; background: transparent; }
.home-antennes-grid__list .bge-antennes__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.home-antennes-grid__list .bge-antennes__item { padding: 12px 14px; font-size: .94rem; }
.home-antennes-grid__list .bge-antennes__note { display: none; }

@media (max-width: 1100px) {
	.home-antennes-grid__list .bge-antennes__list { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
	.home-antennes-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   18. Pages internes — page hero (phero), breadcrumb, prose
   ============================================================ */
.phero { position: relative; background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff; overflow: hidden; padding: 64px 0 78px; }
.phero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% -20%, rgba(216,35,42,.18), transparent 60%); }
.phero .wrap { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 20ch; }
.phero p { color: #d4e3f6; font-size: 1.12rem; margin-top: .8rem; max-width: 52ch; }

.crumb { font-size: .84rem; color: #aac6e8; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover, .crumb a:focus-visible { color: #fff; }
.crumb .sep { opacity: .5; }
.crumb--ink { color: var(--muted); }
.crumb--ink a:hover, .crumb--ink a:focus-visible { color: var(--blue); }

.prose { max-width: 72ch; font-size: 1.05rem; }
.prose h2 { font-size: 1.7rem; margin: 1.8rem 0 .7rem; font-weight: 800; }
.prose h3 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; font-weight: 700; }
.prose p { margin: .7rem 0; color: #33485f; }
.prose ul { margin: .6rem 0 1rem 1.1rem; }
.prose li { margin: .35rem 0; color: #33485f; }
.prose strong { color: var(--ink); }

/* ============================================================
   19. Layout avec sidebar (Je me lance)
   ============================================================ */
.layout-side { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.side-card h4,
.side-card .side-card__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	margin: 0 0 12px;
	letter-spacing: -.01em;
	line-height: 1.2;
}
.side-card .side-card__title--tight { margin-bottom: 6px; }
.side-card .side-card__text { margin: 0 0 14px; font-size: .94rem; line-height: 1.5; }
.side-card--stacked { margin-top: 16px; }
.side-card.accent { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border: none; }
.side-card.accent h4,
.side-card.accent .side-card__title { color: #fff; }
.side-card.accent p,
.side-card.accent .side-card__text { color: #d4e3f6; font-size: .94rem; }
.side-card.accent .btn-white { background: #fff; color: var(--blue); width: 100%; justify-content: center; }
.side-list { list-style: none; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.side-list li:last-child { border: none; }
.side-list li.is-current a { color: var(--blue); font-weight: 700; }

/* ============================================================
   20. Chips de filtre + Pager
   ============================================================ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 100px; padding: .5rem 1.1rem; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .15s; color: inherit; text-decoration: none; display: inline-block; font-family: inherit; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.pager .page-numbers,
.pager a, .pager span { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; background: #fff; color: inherit; text-decoration: none; }
.pager .current,
.pager .page-numbers.current,
.pager a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .dots { background: transparent; border: none; }

/* ============================================================
   21. Antenne single (info-list, atelier-row, mini-form)
   ============================================================ */
/* Le wrap interne profite d'une largeur un peu plus grande sur les pages
   single antenne / témoignage pour respirer entre les 2 colonnes. */
.bge-antenne-page .wrap { max-width: var(--wrap-wide); }

/* Section qui suit immédiatement le phero : padding-top renforcé pour décoller */
.phero + main > section:first-child,
.phero + section { padding-top: clamp(56px, 6vw, 96px); }

/* Dernière section avant le footer : padding-bottom renforcé symétrique */
main > section:last-child,
main > div:last-child > section:last-child,
section:has(+ footer) { padding-bottom: clamp(56px, 6vw, 96px); }

.ant-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(48px, 6.5vw, 96px);
	align-items: start;
}
.info-list { list-style: none; margin-top: 8px; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; align-items: flex-start; }
.info-list li .ic { width: 34px; flex: none; font-size: 1.1rem; text-align: center; }
.info-list li b { display: block; margin-bottom: 3px; }
.atelier-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.atelier-row .date { font-weight: 800; color: var(--blue); font-size: .86rem; white-space: nowrap; }
.mini-form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(20px, 2.5vw, 32px);
	box-shadow: var(--shadow);
	position: sticky;
	top: 110px;
}
@media (max-width: 920px) {
	.mini-form { position: static; }
}

/* ============================================================
   21bis. H2 utilitaire pour blocs internes (info-list, ateliers, plan…)
   ============================================================ */
.h2-block,
.bge-block-title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 30px 0 12px;
}
.h2-block:first-child,
.bge-block-title:first-child { margin-top: 0; }
.h2-block--tight,
.bge-block-title--tight { margin: 0 0 6px; }

/* Quote prominent (citation témoignage, mise en avant éditoriale) */
.prose-quote,
.bge-quote {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 1.4rem;
	line-height: 1.4;
	color: var(--blue-deep);
	background: #eaf1fb;
	border-left: 4px solid var(--red);
	padding: 20px 26px;
	border-radius: 12px;
	margin: 0 0 28px;
}

/* ============================================================
   22. Article single
   ============================================================ */
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .9rem; margin: 6px 0 22px; flex-wrap: wrap; }
.article-cat { font-size: .7rem; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 4px 9px; text-transform: uppercase; letter-spacing: .05em; display: inline-block; }
.feat-img { aspect-ratio: 16/8; border-radius: 18px; margin-bottom: 28px; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; gap: 8px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.share .s { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.share .s:hover, .share .s:focus-visible { background: var(--blue); color: #fff; border-color: var(--blue); }

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

/* ============================================================
   23. Qui sommes-nous (équipe + valeurs)
   ============================================================ */
.grid-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member b { display: block; }
.member small { color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value-card .vic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; margin-bottom: 12px; }

@media (max-width: 920px) {
	.layout-side { grid-template-columns: 1fr; }
	.side-card { position: static; }
	.ant-hero-grid { grid-template-columns: 1fr; }
	.grid-team { grid-template-columns: repeat(2, 1fr); }
	.values { grid-template-columns: 1fr; }
}

/* ============================================================
   24. Accessibilité (RGAA 4.1)
   ============================================================ */

/* Lien d'évitement — première chose dans l'ordre de tabulation */
.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--blue);
	color: #fff;
	padding: 12px 18px;
	z-index: 999;
	font-weight: 700;
	border-radius: 0 0 10px 0;
	text-decoration: none;
}
.skip:focus { left: 0; }

/* Focus visible global — anneau orange contrasté sur tout interactif */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.bge-quiz__opt:focus-visible,
.chip:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Visually hidden (lecteur d'écran seulement) */
.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* Mention de conformité dans le footer */
.a11y-mention { font-size: .82rem; color: #7e93b0; }
.a11y-mention a { color: #aac6e8; }
.a11y-mention a:hover, .a11y-mention a:focus-visible { color: #fff; }

/* Bouton + panneau préférences (confort en plus, pas la conformité) */
.a11y-btn {
	position: fixed; right: 18px; bottom: 18px; z-index: 600;
	width: 54px; height: 54px; border-radius: 50%;
	background: var(--blue); color: #fff; border: 2px solid #fff;
	box-shadow: var(--shadow); cursor: pointer;
	font-size: 1.5rem; display: grid; place-items: center;
}
.a11y-btn:hover { background: var(--blue-deep); }
.a11y-panel {
	position: fixed; right: 18px; bottom: 84px; z-index: 600;
	width: 290px; background: #fff; border: 1px solid var(--line);
	border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2,
.a11y-panel h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; margin-bottom: 4px; }
.a11y-panel p.sub { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.a11y-row {
	display: flex; justify-content: space-between; align-items: center;
	gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line);
	font-size: .92rem; font-weight: 600;
}
.a11y-row:last-of-type { border: none; }
.a11y-row button {
	border: 1.5px solid var(--line); background: var(--paper);
	border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer;
	font-family: inherit; font-size: .85rem; color: inherit;
}
.a11y-row button.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.a11y-note { font-size: .72rem; color: var(--muted); margin-top: 12px; font-style: italic; }

/* Mode contraste renforcé (override des tokens) */
html[data-contrast="high"] {
	--blue: #063b7a; --blue-bright: #0b4f9e; --blue-deep: #04254a;
	--red:  #a8181e; --red-deep: #86131a;
	--green:#3f6310; --orange: #7a4d00; --sky: #27567f;
	--green-ink: #365610; --orange-ink: #6a4300; --sky-ink: #244d72;
	--ink:  #0a1a2c; --muted: #2f4257;
	--paper:#ffffff; --line: #bcc8d8;
}

/* Mode texte agrandi */
html[data-fontsize="l"]  { font-size: 113%; }
html[data-fontsize="xl"] { font-size: 128%; }

/* Mode animations réduites — bascule manuelle */
html[data-motion="off"] #net,
html[data-motion="off"] .partners-track,
html[data-motion="off"] .hero-slide { transition: none !important; animation: none !important; }
html[data-motion="off"] #net { display: none; }

/* Mode police lisible (Verdana, espacement large, ligne haute) */
html[data-font="readable"] body {
	font-family: Verdana, Tahoma, sans-serif;
	letter-spacing: .02em;
	word-spacing: .12em;
	line-height: 1.75;
}
html[data-font="readable"] h1,
html[data-font="readable"] h2,
html[data-font="readable"] h3 {
	font-family: Verdana, Tahoma, sans-serif;
	letter-spacing: 0;
}
