/*
Theme Name: Bouger les lignes v2
Description: Thème custom bougerleslignes.fr — carte contributive des cantines (CDC v2). 0 jQuery, 1 CSS, 1 JS defer, SEO maison, identité « brocoli explorateur » (encre/vert profond/vert/clair/orange/corail/surligneur/crème).
Author: Digicalys
Version: 0.4.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: bll-v2
*/

/* ---------- Fonts self-hosted (variables, latin, swap) ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-var-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/caveat-var-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat Brush";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/caveat-brush-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Palette identité v2 « brocoli explorateur » (charte.md, character sheet + mesures logo). */
	--encre: #1F2937;          /* texte, contours */
	--surface-sombre: #0B2A20; /* header, footer, panneaux (vert profond) */
	--vert-fonce: #2E7D32;     /* marque, liens, CTA secondaires */
	--vert: #4CAF50;           /* confirmation, bio, succès */
	--vert-clair: #C8E669;     /* tags, fonds d'accent doux */
	--orange: #FFB74D;         /* contribution, chaleureux */
	--tomate: #FF6B6B;         /* CTA primaires, barre top (corail) */
	--surligneur: #FDCF2F;     /* geste signature (mesuré sur le logo) */
	--cahier: #F8F6EE;         /* fond principal (crème) */
	--papier: #FFFFFF;
	--encre-80: #3f4a55;
	--encre-60: #6b7280;
	--ligne: #e4e1d5;
	--tomate-fonce: #E85858;
	--vert-fonce-sombre: #256B29;
	--orange-fonce: #E89E3A;
	--sauge: var(--vert);
	--carotte: var(--orange);

	--radius-s: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--ombre: 0 1px 2px rgb(31 41 55 / .05), 0 10px 30px -6px rgb(31 41 55 / .10);
	--ombre-forte: 0 2px 4px rgb(31 41 55 / .08), 0 22px 44px -12px rgb(31 41 55 / .22);
	--ease: cubic-bezier(.22, .8, .3, 1);

	--font-titre: "Archivo", system-ui, sans-serif;
	--font-texte: "Inter", system-ui, sans-serif;
	--font-script: "Caveat", "Comic Sans MS", cursive; /* annotations, jamais texte d'interface */
	--font-marqueur: "Caveat Brush", "Caveat", cursive; /* titres script façon marqueur (H1 accueil, citation) */

	/* Accueil validé 14/09 (maquette Alban) : teintes mesurées */
	--vert-encre: #14332C;   /* H1 script, titres script */
	--corail-cta: var(--tomate); /* Corail canonique : contraste du CTA avec le vert profond. */
	--corail-sticker: #E4573F;
	--postit: #FBE18D;
	--blob-rose: #F8E3DE;
	--blob-jaune: #FCF2D2;
	--blob-creme: #F1EFD9;
	--blob-vert: #E3EDD6;
	--mer: #DCE9EF;
	--fond-etapes: #F6F5F2;

	--max: 1160px;
	--header-h: 68px;
	--padd-section: clamp(40px, 7vw, 84px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	font-family: var(--font-texte);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--encre);
	background: var(--cahier);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* ---------- Liens : style signature ---------- */
a { color: var(--tomate); text-decoration: none; }
.article-contenu a:not(.bouton),
.page-contenu a:not(.bouton) {
	font-weight: 550;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--tomate) 45%, transparent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: background .18s var(--ease), color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.article-contenu a:not(.bouton):hover,
.page-contenu a:not(.bouton):hover {
	color: var(--encre);
	text-decoration-color: var(--surligneur);
	background: linear-gradient(transparent 62%, var(--surligneur) 62%, var(--surligneur) 94%, transparent 94%);
}

:focus-visible { outline: 3px solid var(--carotte); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-titre);
	font-weight: 780;
	font-stretch: 92%;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--encre);
	margin: 0 0 .45em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.22rem, 2.4vw, 1.5rem); }

table, code, kbd, samp, .num { font-variant-numeric: tabular-nums; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	top: -52px; left: 12px;
	z-index: 100;
	background: var(--surface-sombre);
	color: #fff;
	padding: 12px 18px;
	border-radius: 0 0 var(--radius-s) var(--radius-s);
	transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

::selection { background: var(--surligneur); color: var(--encre); }

/* ---------- Layout ---------- */
.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 28px); }
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site-principal { flex: 1; padding: clamp(22px, 4vw, 40px) 0 clamp(48px, 7vw, 88px); }
.section { margin: clamp(34px, 6vw, 64px) 0; }
.section--papier {
	background: var(--papier);
	border-radius: var(--radius-lg);
	padding: var(--padd-section);
	box-shadow: var(--ombre);
}

/* ---------- Barre top ---------- */
.barre-top { background: var(--tomate); height: 6px; }

/* ---------- Header ---------- */
.entete-bloc { margin-top: clamp(14px, 2.5vw, 24px); position: sticky; top: 10px; z-index: 90; }
.entete {
	background: var(--surface-sombre);
	border-radius: 999px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 clamp(16px, 2.5vw, 26px);
	min-height: var(--header-h);
	box-shadow: 0 12px 30px -10px rgb(31 41 55 / .35);
}
.entete a { color: #fff; text-decoration: none; }
.logo-marque {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	white-space: nowrap;
	text-decoration: none;
}
.logo-marque img { width: auto; height: 44px; flex: none; }
.logo-marque .wordmark {
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 1.7rem;
	line-height: .9;
	letter-spacing: 0;
	display: inline-block;
	transform: rotate(-2deg);
	transition: color .15s;
}
.logo-marque:hover .wordmark { color: var(--surligneur); }

@media (max-width: 860px) {
	.logo-marque img { height: 36px; }
	.logo-marque .wordmark { font-size: 1.4rem; }
}

.nav-principal ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	align-items: center;
	gap: 2px;
}
.nav-principal a {
	display: block;
	padding: 10px 15px;
	border-radius: 999px;
	font-weight: 550;
	font-size: .95rem;
	transition: background .15s var(--ease);
}
.nav-principal a:hover { background: rgb(255 255 255 / .14); }
.nav-principal .current-menu-item > a,
.nav-principal .current-page-ancestor > a,
.nav-principal .current-category-ancestor > a { background: rgb(255 255 255 / .18); }
.nav-principal .menu-item-has-children { position: relative; }
.nav-principal .sub-menu {
	position: absolute;
	top: calc(100% + 8px); left: 0;
	min-width: 230px;
	background: var(--papier);
	color: var(--encre);
	border-radius: var(--radius);
	box-shadow: var(--ombre-forte);
	padding: 8px;
	display: none;
	z-index: 95;
}
.nav-principal li:focus-within > .sub-menu,
.nav-principal li:hover > .sub-menu { display: block; }
.nav-principal .sub-menu a { color: var(--encre); padding: 10px 14px; border-radius: var(--radius-s); font-size: .93rem; }
.nav-principal .sub-menu a:hover { background: var(--cahier); }
.nav-principal .nav-action { display: none; }

.burger {
	display: none;
	background: rgb(255 255 255 / .1);
	border: 0;
	color: #fff;
	padding: 11px;
	cursor: pointer;
	border-radius: 50%;
	transition: background .15s;
}
.burger:hover { background: rgb(255 255 255 / .2); }
.site .burger { background: rgb(31 41 55 / .08); color: var(--encre); }
.site .burger:hover { background: rgb(31 41 55 / .16); }
.burger svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
	.entete-bloc { top: 8px; }
	.burger { display: block; }
	.nav-principal {
		position: fixed;
		inset: 0;
		background: var(--surface-sombre);
		display: none;
		z-index: 95;
		padding: 92px 28px 40px;
		overflow-y: auto;
	}
	.nav-principal.ouvert { display: block; }
	.nav-principal ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav-principal > ul > li > a { font-size: 1.45rem; font-family: var(--font-titre); font-weight: 750; padding: 13px 14px; }
	.nav-principal .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 18px; }
	.nav-principal .sub-menu a { color: rgb(255 255 255 / .72); font-size: 1.08rem; font-family: var(--font-texte); font-weight: 500; padding: 8px 10px; }
	.fermer-nav {
		position: absolute;
		top: 18px; right: 18px;
		background: rgb(255 255 255 / .12);
		border-radius: 50%;
		padding: 12px;
	}
}

/* ---------- Boutons ---------- */
.bouton {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--tomate);
	color: var(--surface-sombre);
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .93rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	padding: 16px 30px;
	cursor: pointer;
	box-shadow: 0 10px 22px -8px rgb(227 93 68 / .55);
	transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.bouton:hover { background: var(--tomate); color: var(--surface-sombre); transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgb(227 93 68 / .6); }
.bouton:active { transform: translateY(0); }
.bouton svg { transition: transform .16s var(--ease); }
.bouton:hover svg { transform: translateX(4px); }
.bouton--encre { background: var(--surface-sombre); color: #fff; box-shadow: 0 10px 22px -8px rgb(31 41 55 / .5); }
.bouton--encre:hover { background: #172420; color: #fff; box-shadow: 0 16px 30px -8px rgb(31 41 55 / .55); }
.bouton--contour {
	background: transparent;
	color: var(--encre);
	box-shadow: inset 0 0 0 2.5px var(--encre);
}
.bouton--contour:hover {
	background: var(--surface-sombre);
	color: #fff;
	box-shadow: inset 0 0 0 2.5px var(--encre), 0 14px 26px -10px rgb(31 41 55 / .4);
}
.bouton--petit { padding: 11px 20px; font-size: .84rem; }

.lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .84rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--encre);
	text-decoration: none;
}
.lien-fleche svg { transition: transform .16s var(--ease); }
.lien-fleche:hover { color: var(--tomate); }
.lien-fleche:hover svg { transform: translateX(5px); }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--surligneur);
	color: var(--encre);
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .76rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 7px 15px;
	text-decoration: none;
	transition: transform .15s var(--ease);
}
.badge:hover { transform: scale(1.04); }
.badge--sauge { background: var(--sauge); color: #fff; }
.badge--carotte { background: var(--carotte); }
.badge--tomate { background: var(--tomate); color: #fff; }

/* ---------- Hero (maquette CDC p.14, éditorialisée) ---------- */
.hero {
	background:
		radial-gradient(120% 140% at 88% -10%, #FBEDB9 0%, #F8F0CC 44%, #F7F3E1 100%);
	border-radius: var(--radius-lg);
	margin-top: clamp(16px, 3vw, 28px);
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(30px, 5.5vw, 64px) clamp(26px, 5vw, 64px);
}
.hero::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 2px dashed rgb(31 41 55 / .14);
	border-radius: calc(var(--radius-lg) - 8px);
	pointer-events: none;
}
.hero-texte { position: relative; z-index: 1; }
.hero .sur-titre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-titre);
	font-weight: 780;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tomate);
	margin: 0 0 18px;
}
.hero .sur-titre::before {
	content: "";
	width: 26px; height: 10px;
	background: var(--surligneur);
	border-radius: 999px;
}
.hero h1 { max-width: 15ch; margin-bottom: .45em; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero .chapo-hero { max-width: 46ch; margin: 0 0 1.6em; font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--encre-80); }
.hero .chapo-hero strong { font-weight: 650; }
.hero .surligne { background: linear-gradient(transparent 52%, var(--surligneur) 52%, var(--surligneur) 94%, transparent 94%); padding: 0 .06em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-reassurance { font-size: .88rem; color: var(--encre-60); margin: 18px 0 0; }

.hero-visuel { position: relative; z-index: 1; }
.hero-visuel img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--ombre-forte);
	transform: rotate(1.4deg);
	transition: transform .35s var(--ease);
}
.hero-visuel:hover img { transform: rotate(0deg) scale(1.015); }

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero-visuel { order: -1; max-width: 460px; }
	.hero-visuel img { transform: rotate(0); }
}

/* ---------- Sur-titre de section ---------- */
.tete-section { margin-bottom: clamp(20px, 3vw, 30px); }
.tete-section .kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-titre);
	font-weight: 780;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tomate);
	margin: 0 0 10px;
}
.tete-section .kicker::before { content: ""; width: 26px; height: 10px; background: var(--surligneur); border-radius: 999px; }
.tete-section h2 { margin: 0; }
.tete-section .sous-titre { color: var(--encre-60); max-width: 60ch; margin: 8px 0 0; }
.section-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-titre h2 { margin: 0; }

/* ---------- Grille de cards ---------- */
.cartes { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.cartes--3 { grid-template-columns: repeat(3, 1fr); }
.cartes--2 { grid-template-columns: repeat(2, 1fr); }
.cartes--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cartes--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
	.cartes--3, .cartes--2 { grid-template-columns: 1fr; }
	.cartes--4 { grid-template-columns: 1fr; }
}

.carte {
	background: var(--papier);
	border-radius: var(--radius);
	border-left: var(--bord-gauche, 6px) solid var(--carotte);
	box-shadow: var(--ombre);
	padding: clamp(20px, 2.6vw, 28px) clamp(22px, 2.8vw, 30px);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.carte:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); }
.carte--tomate { border-left-color: var(--tomate); }
.carte--sauge { border-left-color: var(--sauge); }
.carte--surligneur { border-left-color: var(--surligneur); }
.carte--encre { border-left-color: var(--encre); }
.carte .icone-carte {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 14px;
	background: var(--cahier);
	color: var(--encre);
	margin-bottom: 14px;
}
.carte h3 { font-size: 1.14rem; margin-bottom: .4em; }
.carte p { margin: 0; color: var(--encre-60); font-size: .96rem; line-height: 1.62; }

/* ---------- Card article ---------- */
.carte-article {
	background: var(--papier);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.carte-article:hover { box-shadow: var(--ombre-forte); transform: translateY(-4px); }
.carte-article .vignette {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--blob-vert);
	display: block;
	overflow: hidden;
}
.carte-article .vignette img {
	width: 100%; height: 100%;
	object-fit: cover;
	position: absolute; inset: 0;
	transition: transform .5s var(--ease);
}
.carte-article:hover .vignette img { transform: scale(1.045); }
.carte-article .vignette .placeholder-icone {
	position: absolute; inset: 0;
	margin: auto;
	width: 52px; height: 52px;
	color: var(--sauge);
	opacity: .75;
}
.carte-article .vignette .badge {
	position: absolute;
	left: 14px; top: 14px;
	z-index: 2;
	box-shadow: 0 4px 14px rgb(31 41 55 / .22);
}
.carte-article .corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.carte-article h3 { margin: 0; font-size: 1.14rem; line-height: 1.24; }
.carte-article h3 a {
	color: var(--encre);
	text-decoration: none;
	background-image: linear-gradient(var(--surligneur), var(--surligneur));
	background-repeat: no-repeat;
	background-size: 0% 38%;
	background-position: 0 82%;
	transition: background-size .3s var(--ease);
}
.carte-article:hover h3 a { background-size: 100% 38%; }
.carte-article .meta { font-size: .82rem; color: var(--encre-60); display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; padding-top: 4px; }
.carte-article .meta svg { width: 14px; height: 14px; }
.carte-article .extrait { margin: 0; font-size: .95rem; color: var(--encre-80); line-height: 1.6; }
.carte-article .lire-suite {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tomate);
	text-decoration: none;
}
.carte-article .lire-suite svg { transition: transform .18s var(--ease); }
.carte-article:hover .lire-suite svg { transform: translateX(5px); }

/* ---------- Filtres rubriques (pills pleine couleur) ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(22px, 3vw, 30px); padding: 0; list-style: none; }
.filtres a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--papier);
	box-shadow: var(--ombre);
	border-radius: 999px;
	padding: 10px 19px;
	font-size: .9rem;
	font-weight: 620;
	font-family: var(--font-titre);
	color: var(--encre);
	text-decoration: none;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, color .15s;
}
.filtres a:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.filtres .courant a { background: var(--surface-sombre); color: #fff; }
/* Rotation de couleurs sur les pills (façon diététique, mais sobre : point coloré) */
.filtres li:nth-child(4n+1) a::before,
.filtres li:nth-child(4n+2) a::before,
.filtres li:nth-child(4n+3) a::before,
.filtres li:nth-child(4n+4) a::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 50%;
	flex: none;
}
.filtres li:nth-child(4n+1) a::before { background: var(--tomate); }
.filtres li:nth-child(4n+2) a::before { background: var(--carotte); }
.filtres li:nth-child(4n+3) a::before { background: var(--sauge); }
.filtres li:nth-child(4n+4) a::before { background: var(--surligneur); }
.filtres .courant a::before { background: var(--surligneur); }

/* ---------- Encarts larges (carte, analyse) ---------- */
.encart-large {
	background: var(--papier);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre);
	overflow: hidden;
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: center;
}
.encart-large .visuel { position: relative; height: 100%; min-height: 260px; background: var(--surface-sombre); }
.encart-large .visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.encart-large .contenu-encart { padding: clamp(26px, 4vw, 48px); }
.encart-large h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.encart-large h3 svg { width: 26px; height: 26px; color: var(--tomate); flex: none; }
.encart-large p { color: var(--encre-80); margin: 0 0 1.3em; max-width: 50ch; }
@media (max-width: 860px) {
	.encart-large { grid-template-columns: 1fr; }
	.encart-large .visuel { min-height: 210px; order: -1; }
}

/* ---------- En-tête de page / archive ---------- */
.tete-page { margin: clamp(8px, 2vw, 18px) 0 clamp(24px, 4vw, 38px); max-width: 66ch; }
.tete-page .sur-titre {
	font-family: var(--font-titre);
	font-weight: 780;
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: .8rem;
	color: var(--tomate);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.tete-page .sur-titre::before { content: ""; width: 26px; height: 10px; background: var(--surligneur); border-radius: 999px; }
.tete-page h1 { margin-bottom: .3em; }
.tete-page p { color: var(--encre-80); margin: .5em 0 0; font-size: 1.06rem; }

/* ---------- Single ---------- */
.tete-article { max-width: 820px; margin: 0 auto clamp(20px, 3vw, 30px); }
.tete-article .badge { margin-bottom: 16px; }
.tete-article h1 { margin-bottom: .35em; }
.tete-article .chapo { font-size: clamp(1.08rem, 1.8vw, 1.24rem); color: var(--encre-80); line-height: 1.55; margin: 0; }
.meta-article {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-size: .89rem;
	color: var(--encre-60);
	margin-top: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ligne);
}
.meta-article a { color: var(--encre); font-weight: 620; text-decoration: none; }
.meta-article a:hover { color: var(--tomate); }
.meta-article span { display: inline-flex; align-items: center; gap: 6px; }
.meta-article svg { width: 15px; height: 15px; }

.image-une {
	max-width: 820px;
	margin: 0 auto clamp(26px, 4vw, 40px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--ombre-forte);
}
.image-une img { width: 100%; }

.article-contenu {
	background: var(--papier);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre);
	padding: clamp(26px, 5vw, 56px);
	max-width: 820px;
	margin: 0 auto;
}
.article-contenu p { margin: 0 0 1.25em; line-height: 1.78; }
.article-contenu ul, .article-contenu ol { padding-left: 1.35em; margin: 0 0 1.25em; }
.article-contenu li { margin-bottom: .45em; }
.article-contenu li::marker { color: var(--tomate); font-weight: 700; }
.article-contenu img { border-radius: var(--radius); }
.article-contenu blockquote {
	margin: 1.7em 0;
	padding: 20px 28px;
	border-left: 6px solid var(--surligneur);
	background: #FBF3CF;
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.08em;
}
.article-contenu blockquote p:last-child { margin-bottom: 0; }
.article-contenu h2, .article-contenu h3 { margin-top: 1.9em; scroll-margin-top: 100px; }
.article-contenu h2::after {
	content: "";
	display: block;
	width: 44px; height: 8px;
	border-radius: 999px;
	background: var(--surligneur);
	margin-top: 10px;
}
.article-contenu table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em; font-size: .95rem; border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--ombre); }
.article-contenu th { background: var(--surface-sombre); color: #fff; text-align: left; padding: 12px 15px; }
.article-contenu td { border: 1px solid var(--ligne); border-bottom: 0; padding: 11px 15px; background: var(--papier); }
.article-contenu tr:nth-child(even) td { background: #F8F5EB; }
.article-contenu tr:last-child td { border-bottom: 1px solid var(--ligne); }
figure.wp-caption { margin: 0 0 1.4em; }
figcaption { font-size: .85rem; color: var(--encre-60); padding-top: 8px; }

/* ---------- TOC ---------- */
.toc {
	background: var(--cahier);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin: 0 0 2em;
	border: 1px solid var(--ligne);
}
.toc details summary {
	cursor: pointer;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: 1rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.toc details summary::after { content: "+"; font-size: 1.4rem; color: var(--tomate); line-height: 1; }
.toc details[open] summary::after { content: "–"; }
.toc ol { margin: 14px 0 4px; padding-left: 1.25em; }
.toc li { margin: 5px 0; font-size: .95rem; }
.toc li::marker { color: var(--tomate); font-weight: 700; }
.article-contenu .toc a,
.toc a {
	color: var(--encre);
	text-decoration: none;
	font-weight: 520;
	background: none;
}
.article-contenu .toc a:hover,
.toc a:hover { color: var(--tomate); background: none; }

/* ---------- Bas d'article ---------- */
.bas-article {
	max-width: 820px;
	margin: clamp(26px, 4vw, 38px) auto 0;
	display: grid;
	gap: 18px;
}
.encart-note {
	background: var(--surface-sombre);
	color: rgb(255 255 255 / .92);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre-forte);
	padding: clamp(24px, 4vw, 40px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 30px;
}
.encart-note .contenu-note { flex: 1; min-width: 260px; }
.encart-note h3 { color: #fff; font-size: 1.25rem; margin-bottom: .35em; display: flex; align-items: center; gap: 10px; }
.encart-note h3 svg { width: 22px; height: 22px; color: var(--surligneur); flex: none; }
.encart-note p { margin: 0 0 4px; color: rgb(255 255 255 / .78); max-width: 52ch; }
.encart-note a { color: var(--surligneur); font-weight: 650; text-underline-offset: 3px; }
.encart-note a:hover { color: #fff; }
.encart-note .bouton { flex: none; }

/* ---------- Related ---------- */
.grille-suite { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
@media (max-width: 860px) { .grille-suite { grid-template-columns: 1fr; } }
.section-related {
	background: var(--papier);
	border-radius: var(--radius-lg);
	padding: clamp(26px, 4.5vw, 52px);
	box-shadow: var(--ombre);
}

/* ---------- Pagination ---------- */
.pagination-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: clamp(30px, 5vw, 44px) 0 6px;
	font-family: var(--font-titre);
	font-weight: 720;
}
.pagination-nav .nombres-page {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: var(--papier);
	border-radius: 14px;
	box-shadow: var(--ombre);
	color: var(--encre);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.pagination-nav .nombres-page:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.pagination-nav .nombres-page.courante { background: var(--surface-sombre); color: #fff; transform: none; }

/* ---------- Formulaires ---------- */
.form-bll {
	background: var(--papier);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre);
	padding: clamp(26px, 4.5vw, 48px);
	max-width: 660px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
}
.form-bll label, .digi-contact-form label { font-weight: 620; font-size: .95rem; display: block; margin-bottom: 7px; }
.form-bll input[type="text"], .form-bll input[type="email"], .form-bll input[type="url"],
.form-bll textarea, .form-bll select,
.digi-contact-form input[type="text"], .digi-contact-form input[type="email"], .digi-contact-form textarea {
	width: 100%;
	font: inherit;
	color: var(--encre);
	background: var(--cahier);
	border: 2px solid transparent;
	border-radius: 14px;
	padding: 13px 16px;
	transition: border-color .15s, background .15s;
}
.form-bll input:focus, .form-bll textarea:focus,
.digi-contact-form input:focus, .digi-contact-form textarea:focus { outline: none; border-color: var(--sauge); background: #fff; }
.form-bll .hp, .digi-contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.note-formulaire { font-size: .86rem; color: var(--encre-60); margin: 0; }
.digi-contact-form .bouton { margin-top: 6px; }
.digi-contact-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--tomate);
	color: #fff;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .93rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	border: 0;
	border-radius: 999px;
	padding: 15px 30px;
	cursor: pointer;
	box-shadow: 0 10px 22px -8px rgb(227 93 68 / .55);
	transition: transform .16s var(--ease), background .16s var(--ease);
}
.digi-contact-form button[type="submit"]:hover { background: var(--tomate-fonce); transform: translateY(-2px); }

.avis-bll { border-top: 1px solid var(--ligne); padding-top: clamp(22px, 3vw, 30px); margin-top: clamp(22px, 3vw, 30px); display: grid; gap: 16px; }
.avis-bll h3 { margin: 0; }
.comment-form p { margin: 0 0 16px; }
.comment-notes { font-size: .86rem; color: var(--encre-60); }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comment-list .comment-body {
	background: var(--papier);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: 18px 22px;
}
.comment-list .children { list-style: none; padding-left: 26px; display: grid; gap: 14px; margin-top: 14px; }
.comment-author img { border-radius: 50%; width: 42px; height: 42px; }
.comment-metadata { font-size: .8rem; color: var(--encre-60); }
.comment-reply-link { font-weight: 650; font-size: .85rem; }

/* ---------- Étapes service ---------- */
.etapes-parcours { counter-reset: etape; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.etapes-parcours li {
	counter-increment: etape;
	background: var(--papier);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: 18px 22px 18px 74px;
	position: relative;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.etapes-parcours li:hover { transform: translateX(4px); box-shadow: var(--ombre-forte); }
.etapes-parcours li::before {
	content: counter(etape, decimal-leading-zero);
	position: absolute;
	left: 20px; top: 50%;
	transform: translateY(-50%);
	width: 38px; height: 38px;
	display: grid;
	place-items: center;
	background: var(--surface-sombre);
	color: var(--surligneur);
	border-radius: 13px;
	font-family: var(--font-titre);
	font-weight: 780;
	font-size: .84rem;
}

/* ---------- Liens du footer ---------- */
.pied a { color: #fff; text-decoration: none; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied ul a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color .15s var(--ease);
}

/* ---------- Divers ---------- */
.search-form { display: flex; gap: 10px; max-width: 540px; }
.search-form input[type="search"] {
	flex: 1;
	font: inherit;
	padding: 14px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--papier);
	box-shadow: var(--ombre);
	transition: border-color .15s, box-shadow .15s;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--sauge); box-shadow: var(--ombre-forte); }
.search-form button { border-radius: 999px; padding: 14px 22px; }

.aucun-resultat {
	background: var(--papier);
	border-radius: var(--radius);
	border-left: 6px solid var(--surligneur);
	box-shadow: var(--ombre);
	padding: clamp(24px, 4vw, 36px);
	color: var(--encre-80);
}

/* État vide avec la mascotte (identité v3). */
.aucun-resultat--lentillette {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 14px;
	border-left: none;
	padding-bottom: 0;
	overflow: hidden;
}
.aucun-resultat--lentillette img { width: clamp(140px, 18vw, 190px); height: auto; }
.aucun-resultat--lentillette p { margin: 0; max-width: 46ch; }

/* Titre avec trait surligneur (identité v3, maquette Le Journal). */
.titre-trait { position: relative; display: inline-block; }
.titre-trait::after {
	content: "";
	position: absolute;
	left: 0;
	right: 18%;
	bottom: -0.06em;
	height: 0.16em;
	background: var(--surligneur);
	border-radius: 999px;
	transform: rotate(-0.6deg);
	pointer-events: none;
}

/* Teaser de la carte des menus (identité v3, maquette screen-04). */
.panneau-carte {
	position: relative;
	background: var(--surface-sombre);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--ombre-forte);
}
.panneau-carte img { display: block; width: 100%; height: auto; }
.badge-carte {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--surligneur);
	color: var(--encre);
	font-family: var(--font-titre);
	font-weight: 780;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .78rem;
	padding: 8px 14px;
	border-radius: 999px;
}

.page-404 { text-align: center; padding: clamp(48px, 9vw, 96px) 20px; }
.page-404 .code {
	font-family: var(--font-titre);
	font-size: clamp(4.6rem, 12vw, 8rem);
	font-weight: 820;
	color: var(--tomate);
	line-height: 1;
	letter-spacing: -.04em;
	text-shadow: 6px 6px 0 var(--surligneur);
	margin: 0;
}

/* =========================================================
   Identité v2 « brocoli explorateur » — composants CDC v2
   ========================================================= */

/* ---------- Annotations script (mascotte, notes) ---------- */
.annotation-script {
	font-family: var(--font-script);
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--vert-fonce);
	transform: rotate(-2deg);
	display: inline-block;
}
.annotation-script--clair { color: var(--surligneur); }

/* ---------- Hero v2 : recherche + mascotte ---------- */
.hero--carte {
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre);
}

.recherche-hero {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 0 0 18px;
}
.recherche-hero input[type="search"] {
	flex: 1;
	font: inherit;
	color: var(--encre);
	background: var(--cahier);
	border: 2px solid var(--encre);
	border-radius: 999px;
	padding: 14px 22px;
	min-width: 0;
	transition: box-shadow .15s var(--ease), border-color .15s;
}
.recherche-hero input[type="search"]:focus {
	outline: none;
	border-color: var(--vert-fonce);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--surligneur) 55%, transparent);
}
.recherche-hero button { padding: 14px 24px; }

/* ---------- Chiffres ---------- */
.chiffres {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 2.4vw, 24px);
}
.chiffre {
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: 0 3px 0 rgb(31 41 55 / .08);
	padding: clamp(16px, 2.4vw, 24px);
	text-align: center;
}
.chiffre .valeur {
	display: block;
	font-family: var(--font-titre);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	line-height: 1.1;
	color: var(--vert-profond, var(--surface-sombre));
}
.chiffre .valeur--vert { color: var(--vert-fonce); }
.chiffre .valeur--orange { color: var(--orange-fonce); }
.chiffre .libelle { display: block; margin-top: 4px; color: var(--encre-60); font-size: .95rem; }
@media (max-width: 720px) {
	.chiffres { grid-template-columns: 1fr; }
	.chiffre { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
}

/* ---------- Mini carte France (SVG composant réel) ---------- */
.carte-france-composant {
	position: relative;
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	overflow: hidden;
}
.carte-france-composant svg { display: block; width: 100%; height: auto; }
.carte-france-composant .contour-france {
	fill: color-mix(in srgb, var(--vert-clair) 22%, var(--papier));
	stroke: var(--encre);
	stroke-width: 1.4;
}
.pin-ville { cursor: pointer; }
.pin-ville circle.coeur {
	fill: var(--vert);
	stroke: var(--encre);
	stroke-width: 1.4;
	transition: r .15s var(--ease);
}
.pin-ville:hover circle.coeur,
.pin-ville:focus circle.coeur { r: 9; }
.pin-ville text {
	font-family: var(--font-titre);
	font-weight: 700;
	font-size: 11px;
	fill: var(--encre);
	paint-order: stroke;
	stroke: var(--papier);
	stroke-width: 3px;
	stroke-linejoin: round;
	pointer-events: none;
	opacity: 0;
}
.pin-ville:hover text, .pin-ville:focus text { opacity: 1; }
.carte-france-composant figcaption {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: var(--papier);
	border: 1.5px solid var(--encre);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: .82rem;
	color: var(--encre-60);
}
.page-template-page-la-carte .carte-france-composant > svg { height: clamp(320px, 55vw, 640px); }

/* ---------- Bande contribution (orange doux) ---------- */
.bande-contribution-theme {
	background: color-mix(in srgb, var(--orange) 30%, var(--papier));
	border: 2px solid var(--encre);
	border-radius: var(--radius-lg);
	box-shadow: var(--ombre);
	padding: clamp(22px, 4vw, 40px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
}
.bande-contribution-theme .texte h2 { margin-bottom: .25em; }
.bande-contribution-theme .texte p { margin: 0; color: var(--encre-80); max-width: 52ch; }
.bande-contribution-theme .actions { display: flex; align-items: center; gap: 18px; }
.bande-contribution-theme .mascotte { width: clamp(90px, 12vw, 140px); height: auto; flex: none; }

/* ---------- Derniers menus ---------- */
.derniers-menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
@media (max-width: 860px) { .derniers-menus { grid-template-columns: 1fr; } }
.dernier-menu {
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: 0 3px 0 rgb(31 41 55 / .08);
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.dernier-menu:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.dernier-menu .ville { font-family: var(--font-titre); font-weight: 780; font-size: 1.1rem; color: var(--encre); }
.dernier-menu .ville a { color: inherit; }
.dernier-menu .etab { color: var(--encre-80); font-size: .95rem; }
.dernier-menu .date { color: var(--encre-60); font-size: .85rem; font-variant-numeric: tabular-nums; }
.dernier-menu .badge { align-self: flex-start; margin-top: 6px; }

/* ---------- Mentions de prudence (BR-15) ---------- */
.mention-prudence {
	font-size: .88rem;
	color: var(--encre-60);
	text-align: center;
	margin: clamp(24px, 4vw, 36px) auto 0;
	max-width: 62ch;
}

/* ---------- Grille de villes (partagée avec digi-cantine) ---------- */
.grille-villes {
	list-style: none;
	margin: 32px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.bll-card--ville a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 20px;
	text-decoration: none;
	color: var(--encre);
}
.bll-card--ville__nom { font-weight: 700; font-size: 1.05rem; }
.bll-card--ville__total { color: var(--encre-60); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bll-card--ville { background: var(--papier); border-radius: var(--radius-s); box-shadow: var(--ombre); transition: transform .18s var(--ease); }
.bll-card--ville:hover { transform: translateY(-2px); }

/* ---------- État vide brocoli ---------- */
.aucun-resultat--brocoli {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 14px;
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: clamp(24px, 4vw, 36px);
}
.aucun-resultat--brocoli p { margin: 0; max-width: 46ch; }

/* Mobile : le formulaire hero ne doit pas forcer la largeur du panneau. */
@media (max-width: 560px) {
	.recherche-hero { flex-wrap: wrap; }
	.recherche-hero button { width: 100%; justify-content: center; }
	.hero-texte, .hero-visuel { min-width: 0; max-width: 100%; }
}

/* =========================================================
   Pixel-perfect v2 — retour aux maquettes screen-01/03/04
   ========================================================= */

/* ---------- Header massif + CTA ---------- */
:root { --header-h: 76px; }
.logo-marque img { height: 48px; }
.logo-marque .wordmark { font-size: 1.95rem; }
.entete { padding: 0 clamp(16px, 2.5vw, 30px); gap: 20px; }
.entete .nav-principal ul { gap: 4px; }
.entete .nav-principal a { font-size: 1rem; padding: 11px 17px; }
.entete .bouton-header {
	background: var(--tomate);
	color: var(--surface-sombre);
	border-radius: 999px;
	padding: 12px 22px;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s var(--ease), transform .15s var(--ease);
}
.entete .bouton-header:hover { background: var(--tomate); color: var(--surface-sombre); transform: translateY(-1px); }
@media (max-width: 1020px) {
	.logo-marque img { height: 40px; }
	.logo-marque .wordmark { font-size: 1.55rem; }
	.entete .bouton-header { display: none; }
}

/* ---------- Hero plat (fond crème, sans panneau) ---------- */
.hero-hero {
	display: grid;
	grid-template-columns: 1.02fr .98fr;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(28px, 5vw, 72px) 0 clamp(20px, 3vw, 40px);
	position: relative;
}
.hero-hero .badge-sticker {
	display: inline-block;
	background: var(--cahier);
	border: 2px solid var(--encre);
	border-radius: 14px;
	transform: rotate(-3deg);
	font-family: var(--font-titre);
	font-weight: 800;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 8px 16px;
	margin: 0 0 22px;
	box-shadow: 3px 3px 0 rgb(31 41 55 / .12);
}
.hero-hero h1 {
	font-weight: 830;
	text-transform: uppercase;
	font-size: clamp(2.6rem, 5.2vw, 4rem);
	line-height: .98;
	letter-spacing: -.015em;
	color: var(--surface-sombre);
	max-width: 12ch;
	margin-bottom: .5em;
}
.hero-hero h1 .mot-surligne {
	position: relative;
	display: inline-block;
	z-index: 0;
}
.hero-hero h1 .mot-surligne::after {
	content: "";
	position: absolute;
	left: -.05em; right: -.12em; bottom: .02em;
	height: .22em;
	background: var(--surligneur);
	border-radius: 999px;
	transform: rotate(-1.2deg);
	z-index: -1;
}
.hero-hero .chapo-hero { max-width: 44ch; font-size: clamp(1.04rem, 1.7vw, 1.2rem); margin: 0 0 1.5em; color: var(--encre-80); }
.hero-hero .hero-reassurance { font-size: .88rem; color: var(--encre-60); margin-top: 16px; max-width: 44ch; }

/* Recherche composée : pill blanche, loupe, bouton corail à droite */
.recherche-pill {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--papier);
	border: 2.5px solid var(--encre);
	border-radius: 999px;
	padding: 6px 6px 6px 22px;
	max-width: 560px;
	box-shadow: 0 3px 0 rgb(31 41 55 / .12);
}
.recherche-pill .icone-loupe { color: var(--encre); flex: none; margin-right: 12px; }
.recherche-pill input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--encre);
	padding: 14px 8px;
}
.recherche-pill input[type="search"]:focus { outline: none; }
.recherche-pill:focus-within { box-shadow: 0 3px 0 rgb(31 41 55 / .12), 0 0 0 3px color-mix(in srgb, var(--surligneur) 60%, transparent); }
.recherche-pill button {
	flex: none;
	background: var(--tomate);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 15px 26px;
	font-family: var(--font-titre);
	font-weight: 750;
	font-size: .95rem;
	cursor: pointer;
	transition: background .15s var(--ease), transform .15s var(--ease);
}
.recherche-pill button:hover { background: var(--tomate-fonce); transform: translateY(-1px); }
.recherche-pill button:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }

/* Brocoli hero + annotation + éclats */
.hero-visuel-v2 { position: relative; text-align: center; }
.hero-visuel-v2 img { width: 100%; max-width: 620px; height: auto; }
.hero-visuel-v2 .annotation {
	position: absolute;
	top: 4%;
	right: -2%;
	font-family: var(--font-script);
	font-weight: 600;
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	line-height: 1.05;
	color: var(--surface-sombre);
	transform: rotate(-4deg);
	text-align: left;
	max-width: 12ch;
}
.hero-visuel-v2 .eclat {
	position: absolute;
	width: 26px; height: 3px;
	background: var(--encre);
	border-radius: 999px;
	opacity: .85;
}
.hero-visuel-v2 .eclat-1 { left: 14%; top: 22%; transform: rotate(-38deg); }
.hero-visuel-v2 .eclat-2 { left: 11%; top: 31%; width: 18px; transform: rotate(-38deg); }
.hero-visuel-v2 .eclat-3 { right: 8%; bottom: 12%; transform: rotate(32deg); }
@media (max-width: 900px) {
	.hero-hero { grid-template-columns: 1fr; }
	.hero-visuel-v2 { order: -1; max-width: 420px; margin: 0 auto; }
	.hero-visuel-v2 .annotation { right: 0; }
}

/* ---------- Chiffres avec picto ---------- */
.chiffres-v2 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 2.4vw, 22px);
}
.chiffre-v2 {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: 0 3px 0 rgb(31 41 55 / .10);
	padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 26px);
}
.chiffre-v2 .pastille {
	flex: none;
	width: 54px; height: 54px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--vert-clair);
	color: var(--surface-sombre);
	border: 2px solid var(--encre);
}
.chiffre-v2 .pastille svg { width: 26px; height: 26px; }
.chiffre-v2 .pastille--orange { background: color-mix(in srgb, var(--orange) 55%, white); }
.chiffre-v2 .valeur {
	display: block;
	font-family: var(--font-titre);
	font-weight: 820;
	font-variant-numeric: tabular-nums;
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	line-height: 1;
	color: var(--surface-sombre);
}
.chiffre-v2 .libelle { display: block; color: var(--encre-60); font-size: .92rem; margin-top: 2px; }
@media (max-width: 860px) {
	.chiffres-v2 { grid-template-columns: 1fr; }
	.chiffre-v2 { padding: 12px 18px; }
}

/* ---------- Encart carte enrichi ---------- */
.encart-large .visuel--carte {
	background: var(--papier);
	display: grid;
	place-items: center;
	padding: 18px;
}
.pills-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills-filtres a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--papier);
	border: 1.5px solid var(--encre);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: .86rem;
	font-weight: 620;
	color: var(--encre);
	text-decoration: none;
	transition: transform .15s var(--ease), background .15s;
}
.pills-filtres a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.pills-filtres li:nth-child(2) a::before { background: var(--surligneur); }
.pills-filtres li:nth-child(3) a::before { background: var(--corail); }
.pills-filtres li:nth-child(4) a::before { background: var(--vert-fonce); }
.pills-filtres a:hover { transform: translateY(-2px); background: var(--vert-clair); }

/* ---------- Ils font bouger les lignes ---------- */
.cartes-initiatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
@media (max-width: 860px) { .cartes-initiatives { grid-template-columns: 1fr; } }
.carte-initiative {
	background: var(--papier);
	border: 2px solid var(--encre);
	border-radius: var(--radius);
	box-shadow: 0 3px 0 rgb(31 41 55 / .10);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.carte-initiative:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte-initiative .vignette { aspect-ratio: 4 / 3; background: var(--cahier); }
.carte-initiative .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-initiative .corps { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-initiative h3 { margin: 0; font-size: 1.18rem; }
.carte-initiative p { margin: 0; color: var(--encre-80); font-size: .96rem; line-height: 1.6; }
.carte-initiative .lire { margin-top: auto; padding-top: 8px; }

/* ---------- Bande contribution avec brocoli ---------- */
.bande-contribution-theme { gap: 18px 28px; padding: clamp(20px, 3.4vw, 36px) clamp(22px, 3.6vw, 44px); }
.bande-contribution-theme .mascotte {
	width: clamp(120px, 16vw, 190px);
	height: auto;
	flex: none;
	border-radius: 0;
	margin: -12px 0;
}

/* ---------- Compteurs ville plein couleur ---------- */
.compteur--vert { background: var(--vert); color: #fff; }
.compteur--vert[aria-pressed="false"] { background: var(--vert); }
.compteur--jaune { background: var(--surligneur); color: var(--encre); }
.compteur--orange { background: var(--orange); color: #fff; }
.compteur { font-weight: 720; }

/* ---------- Ajustements pixel-perfect ---------- */
.hero-hero h1 { max-width: 15ch; }
.bande-contribution-theme .texte { flex: 1; min-width: 240px; }
.bande-contribution-theme .actions { margin-left: auto; }
.carte-france-composant .contour-france {
	fill: #EEF3DC;
	stroke: var(--encre);
	stroke-width: 1.6;
	stroke-linejoin: round;
}
.carte-france-composant .pin-ville circle.coeur { fill: var(--vert); stroke: var(--encre); stroke-width: 2; }

/* =========================================================
   Accueil VALIDÉ 14/09 (maquette Alban) — pixel perfect
   ========================================================= */

/* ---------- Header commun : variante accueil, logo complet ---------- */
body.home { background: #FDFCF8; }
.site .entete-bloc { position: relative; top: 0; margin-top: 0; padding-top: 12px; background: #FDFCF8; }
body.home .site-principal { padding-top: 14px; padding-bottom: 0; }
.site .entete {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	color: var(--encre);
	min-height: 92px;
	padding: 0;
	gap: 18px;
}
.site .entete .logo-marque img { height: 82px; width: auto; }
.site .entete { justify-content: flex-start; }
.site .entete .nav-principal { margin-left: clamp(16px, 3.5vw, 56px); margin-right: auto; }
.site .entete .nav-principal a { color: var(--encre); font-size: 1.02rem; padding: 11px 16px; white-space: nowrap; }
.site .entete .bouton-header { background: #0B2A20; color: #fff; }
.site .nav-principal a:hover { background: rgb(31 41 55 / .07); }
.site .nav-principal .current-menu-item > a,
.site .nav-principal .current-page-ancestor > a,
.site .nav-principal .current-category-ancestor > a { background: rgb(31 41 55 / .09); }
.site .entete .nav-principal .sub-menu a { color: var(--encre); }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.lien-recherche {
	display: grid;
	place-items: center;
	padding: 11px;
	border-radius: 50%;
	color: var(--encre);
	transition: background .15s var(--ease);
}
.lien-recherche:hover { background: rgb(31 41 55 / .07); }
.site .lien-recherche { color: var(--encre); }
.bouton-header {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--surface-sombre);
	color: #fff;
	border-radius: 999px;
	padding: 13px 24px;
	font-family: var(--font-texte);
	font-weight: 650;
	font-size: 1rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s var(--ease), transform .15s var(--ease);
}
.site .entete .bouton-header:hover { background: #0A1F1A; color: #fff; }
.bouton-header:hover { background: var(--tomate-fonce); color: #fff; transform: translateY(-1px); }
.bouton-header svg { transition: transform .16s var(--ease); }
.bouton-header:hover svg { transform: translateX(4px); }
.decor-feuilles { position: absolute; right: max(14px, calc((100vw - 1380px) / 2 - 50px)); top: 4px; pointer-events: none; }
@media (max-width: 1180px) { .decor-feuilles { display: none; } }
@media (max-width: 1020px) {
	.site .entete .logo-marque img { height: 62px; }
	.bouton-header { display: none; }
	.site .entete { min-height: 72px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
	.entete { gap: 12px; }
	.entete .nav-principal a { padding: 11px 10px; font-size: .94rem; }
	.site .entete .nav-principal { margin-left: 8px; }
}
@media (max-width: 860px) {
	.entete .logo-marque { margin-right: auto; }
	.site .entete .nav-principal { margin: 0; }
	.site .entete .nav-principal a { color: var(--cahier); }
	.site .nav-principal a:hover { background: rgb(255 255 255 / .12); }
	.site .nav-principal .current-menu-item > a,
	.site .nav-principal .current-page-ancestor > a,
	.site .nav-principal .current-category-ancestor > a { background: rgb(255 255 255 / .18); }
	.site .entete .nav-principal .sub-menu a { color: var(--cahier); }
	.burger { flex: none; }
	.burger.ouvert { position: fixed; top: 20px; right: 24px; z-index: 100; color: var(--cahier); background: rgb(255 255 255 / .12); }
	.site .burger.ouvert { color: var(--cahier); background: rgb(255 255 255 / .12); }
	.site .entete .nav-principal .nav-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 22px; background: var(--cahier); color: var(--surface-sombre); font-size: 1rem; font-weight: 700; border-radius: 999px; }
}
@media (max-width: 560px) {
	.entete { gap: 8px; padding: 0 12px; }
	.entete .logo-marque .wordmark { font-size: 1.2rem; }
	.entete .logo-marque img { height: 32px; }
	.burger, .lien-recherche { padding: 10px; }
}

/* ---------- Hero accueil ---------- */
.conteneur--plein { max-width: none; padding: 0; }
.conteneur--large { max-width: 1380px; }
.hero-accueil {
	display: grid;
	grid-template-columns: .92fr 1.08fr;
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
	max-width: 1380px;
	margin: 0 auto;
	padding: clamp(18px, 2.6vw, 34px) clamp(18px, 3vw, 36px) clamp(26px, 3vw, 44px);
}
.badge-service {
	display: inline-block;
	background: var(--surligneur);
	color: var(--encre);
	font-family: var(--font-texte);
	font-weight: 750;
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 8px;
	padding: 6px 14px;
	margin: 0 0 14px;
}
.titre-marqueur {
	font-family: var(--font-marqueur);
	font-weight: 400;
	font-size: clamp(3.5rem, 7vw, 6.5rem);
	line-height: .88;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--vert-encre);
	margin: 0 0 .32em;
}
.titre-marqueur .point-interrogation { font-size: .62em; vertical-align: .28em; }
.titre-marqueur .ligne2 { white-space: nowrap; }
.souligne-marqueur { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.souligne-marqueur::after {
	content: "";
	position: absolute;
	left: -.04em; right: -.14em; bottom: .015em;
	height: .26em;
	background: var(--surligneur);
	border-radius: 999px;
	transform: rotate(-1.6deg);
	z-index: -1;
}
.chapo-accueil {
	font-weight: 620;
	font-size: clamp(1.08rem, 1.5vw, 1.3rem);
	line-height: 1.42;
	margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 30px; }
.hero-accueil .bouton {
	background: var(--corail-cta);
	box-shadow: 0 6px 16px -6px rgb(210 70 50 / .5);
	font-family: var(--font-texte);
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
	padding: 16px 30px;
	font-size: 1.05rem;
}
.hero-accueil .bouton:hover { background: var(--tomate); }
.hero-accueil .bouton--corail { color: var(--surface-sombre); }
.hero-accueil .bouton--contour { background: transparent; box-shadow: inset 0 0 0 2px var(--encre); }
.hero-accueil .bouton--contour:hover { background: var(--surface-sombre); color: #fff; }
.preuves {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 0;
	padding: 0;
	max-width: 650px;
}
.preuves li { display: flex; align-items: flex-start; gap: 9px; font-size: .875rem; line-height: 1.4; font-weight: 550; }
.preuves .preuve-icone { color: var(--vert-fonce); flex: none; display: grid; place-items: center; }
.preuves .preuve-icone svg { width: 22px; height: 22px; }

/* Visuel : illustration + notes HTML en cqw (échelle proportionnelle) */
.hero-visuel { position: relative; container-type: inline-size; }
.hero-visuel > img { width: 100%; height: auto; box-shadow: none; border-radius: 0; transform: none; }
.hero-visuel:hover > img { transform: none; }
.hero-annotation {
	position: absolute;
	top: 9cqw; right: 5cqw;
	z-index: 2;
	margin: 0;
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 4.6cqw;
	line-height: 1.08;
	color: var(--vert-encre);
	transform: rotate(-4deg);
	text-align: left;
}
.surligne-script {
	background: linear-gradient(transparent 58%, var(--surligneur) 58%, var(--surligneur) 92%, transparent 92%);
	padding: 0 .04em;
}

.note { position: absolute; z-index: 2; }
.note--blanche {
	left: 79%; top: 45%;
	width: 21.5%; min-height: 32%;
	background: #FDFCF6;
	color: var(--encre);
	border: .28cqw solid var(--encre);
	border-radius: 1.4cqw;
	transform: rotate(4deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .4cqw;
	padding: 1.4cqw;
	box-shadow: 0 1.2cqw 2.4cqw rgb(31 41 55 / .16);
}
.note--blanche .note-vgt {
	margin: 0;
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 2.1cqw;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.note--blanche .note-score {
	margin: 0;
	font-family: var(--font-titre);
	font-weight: 820;
	font-size: 4.6cqw;
	line-height: 1;
}
.note--blanche .note-check { color: var(--vert-fonce); }
.note--blanche .note-check svg { width: 3.6cqw; height: 3.6cqw; stroke-width: 3; }

.note--blob {
	left: 62.5%; top: 67.5%;
	width: 33.5%; min-height: 31.5%;
	background: #F8D574;
	color: var(--vert-encre);
	border-radius: 54% 46% 52% 48% / 52% 55% 45% 48%;
	transform: rotate(-6deg);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0;
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 2.7cqw;
	line-height: 1.12;
	padding: 2.4cqw 3cqw;
}
.badge-rond {
	position: absolute;
	left: 11.5%; top: 67.5%;
	width: 12%;
	aspect-ratio: 1;
	background: #FDFCF6;
	border: .3cqw solid var(--encre);
	border-radius: 50%;
	transform: rotate(-9deg);
	display: grid;
	place-items: center;
	text-align: center;
	margin: 0;
	font-family: var(--font-texte);
	font-weight: 800;
	font-size: 1.5cqw;
	letter-spacing: .05em;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--vert-fonce);
	padding: 1cqw;
	box-shadow: 0 .8cqw 1.8cqw rgb(31 41 55 / .16);
	z-index: 3;
}
.fleche-courbe { position: absolute; left: 55%; top: 84%; z-index: 1; }
.fleche-courbe svg { width: 10cqw; height: auto; }

@media (max-width: 900px) {
	.site .entete-bloc { padding-top: 4px; }
	.site .entete { min-height: 64px; }
	.site .entete .logo-marque { padding: 4px 0; }
	.site .entete .logo-marque img { height: 56px; }
	body.home .site-principal { padding-top: 0; }
	.hero-accueil { grid-template-columns: 1fr; padding-top: 8px; gap: 12px; }
	.hero-accueil .badge-service { margin-bottom: 10px; }
	.hero-accueil .chapo-accueil { margin-bottom: 18px; }
	.hero-accueil .hero-actions { margin-bottom: 18px; }
	/* width explicite : container-type inline-size fait sinon s'effondrer l'item sur piste auto */
	.hero-accueil .hero-visuel { order: 0; width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
	.hero-accueil { padding: 8px 18px 16px; gap: 10px; }
	.hero-accueil .chapo-accueil br { display: none; }
	.hero-accueil .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
	.hero-accueil .hero-actions .bouton { justify-content: center; padding: 13px 20px; }
	.hero-accueil .titre-marqueur { font-size: clamp(2.8rem, 13.5vw, 4.5rem); }
	.hero-accueil .preuves { gap: 10px 16px; }
}
/* Tablette : l’illustration occupe la droite du titre, les actions restent larges. */
@media (min-width: 600px) and (max-width: 900px) {
	.hero-accueil {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
		grid-template-areas: "intro visuel" "actions actions" "preuves preuves";
		gap: 18px 20px;
		align-items: start;
	}
	.hero-accueil .hero-texte { display: contents; }
	.hero-accueil .hero-intro { grid-area: intro; min-width: 0; }
	.hero-accueil .titre-marqueur { font-size: clamp(2.4rem, 6vw, 3.4rem); }
	.hero-accueil .chapo-accueil { margin-bottom: 0; }
	.hero-accueil .chapo-accueil br { display: none; }
	.hero-accueil .hero-visuel { grid-area: visuel; align-self: center; max-width: none; }
	.hero-accueil .hero-actions { grid-area: actions; margin: 0; }
	.hero-accueil .preuves { grid-area: preuves; max-width: none; }
}

/* ---------- Étapes 1→4 ---------- */
.note--menus .note-score { font-size: 3.6cqw; line-height: 1.1; }
.menus-home { background: var(--creme, #F8F6EE); padding: clamp(28px, 4vw, 52px) 0; }
.menus-villes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.menu-ville { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 2px solid var(--encre); border-radius: 22px; background: #fff; color: var(--encre); text-decoration: none; box-shadow: 0 3px 0 rgb(31 41 55 / .08); transition: border-color .15s var(--ease), background .15s var(--ease); }
.menu-ville:hover { background: #F4F8EC; border-color: var(--vert-fonce); color: var(--encre); }
.menu-ville-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.menu-ville-icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #E8F0DD; color: var(--vert-fonce); }
.menu-ville-etat { font-size: .78rem; font-weight: 650; background: var(--surligneur); padding: 5px 10px; border-radius: 999px; }
.menu-ville h3 { margin: 0 0 8px; font-size: 1.65rem; color: var(--vert-encre); }
.menu-ville p { margin: 0 0 12px; font-size: .95rem; }
.menu-ville .menu-ville-date { color: var(--encre-60); font-size: .85rem; }
.menu-ville-lien { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-weight: 700; }
@media (max-width: 860px) { .menus-villes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .menus-villes { grid-template-columns: 1fr; gap: 16px; } .menu-ville { padding: 20px; } }
.etapes-home { background: var(--fond-etapes); padding: clamp(34px, 4.5vw, 60px) 0 clamp(38px, 5vw, 66px); margin: clamp(26px, 3.5vw, 48px) 0 0; }
.etapes-grille {
	list-style: none;
	margin: 0 auto; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(24px, 3.5vw, 52px);
}
.etape-blob {
	position: relative;
	display: grid;
	place-items: center;
	width: 150px;
	height: 112px;
	margin-bottom: 6px;
}
.etape-blob::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--blob, var(--blob-rose));
	border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%;
}
.etape-blob--rose { --blob: var(--blob-rose); }
.etape-blob--jaune { --blob: var(--blob-jaune); }
.etape-blob--creme { --blob: var(--blob-creme); }
.etape-blob--vert { --blob: var(--blob-vert); }
.etape-blob svg { position: relative; z-index: 1; }
.etapes-grille h3 { font-size: 1.34rem; margin: 4px 0 8px; }
.etapes-grille p { margin: 0; color: var(--encre-80); font-size: .95rem; line-height: 1.58; max-width: 30ch; }
@media (max-width: 1020px) { .etapes-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapes-grille { grid-template-columns: 1fr; } }

/* ---------- La carte (3 cartes) ---------- */
.carte-home { margin: clamp(34px, 4.5vw, 64px) 0; }
.carte-home-grille {
	margin: 0 auto;
	display: grid;
	grid-template-columns: .96fr 1fr 1.12fr;
	gap: clamp(14px, 1.8vw, 24px);
	align-items: stretch;
}
.carte-visuel {
	position: relative;
	background: var(--mer);
	border-radius: var(--radius);
	padding: 10px;
	display: grid;
	place-items: center;
	min-height: 380px;
	overflow: hidden;
}
.carte-visuel .carte-france-composant {
	background: transparent;
	border: 0;
	box-shadow: none;
	width: 94%;
	height: auto;
}
.carte-visuel .carte-france-composant .contour-france { fill: #FBF6E6; stroke-width: 2; }
.carte-annotation {
	position: absolute;
	left: 7%; bottom: 5%;
	margin: 0;
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.05;
	color: var(--vert-encre);
	transform: rotate(-8deg);
	max-width: 14ch;
}
.carte-fleche { position: absolute; left: 4%; bottom: 4%; opacity: .9; }
.carte-panneau {
	background: var(--papier);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: clamp(24px, 2.6vw, 36px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}
.carte-panneau h2 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.12; margin: 2px 0 12px; }
.carte-panneau p { margin: 0 0 22px; color: var(--encre-80); font-size: .97rem; line-height: 1.6; }
.carte-home .bouton { font-family: var(--font-texte); font-weight: 650; font-size: .98rem; letter-spacing: 0; text-transform: none; padding: 13px 24px; }
.carte-citation {
	position: relative;
	margin: 0;
	background: #E7EFE0;
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 380px;
}
.citation-script {
	margin: 0;
	padding: clamp(20px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px) 0;
	font-family: var(--font-marqueur);
	font-size: clamp(1.5rem, 1.9vw, 1.9rem);
	line-height: 1.18;
	color: var(--vert-encre);
	text-align: center;
}
.carte-citation img {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 56%;
	object-fit: cover;
	object-position: bottom;
}
@media (max-width: 1020px) {
	.carte-home-grille { grid-template-columns: 1fr; }
	.carte-visuel, .carte-citation { min-height: 300px; }
	.carte-citation { min-height: 320px; }
}

/* ---------- Journal + post-it ---------- */
.journal-home { margin: clamp(40px, 5vw, 72px) 0 0; }
.journal-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.journal-tete h2 { font-size: clamp(1.5rem, 2.1vw, 1.95rem); margin: 2px 0 0; }
.journal-home .lien-fleche { text-transform: none; letter-spacing: 0; font-family: var(--font-texte); font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.journal-grille {
	display: grid;
	grid-template-columns: repeat(3, 1fr) .78fr;
	gap: clamp(16px, 2vw, 26px);
	align-items: stretch;
}
.postit-journal {
	position: relative;
	background: var(--postit);
	border-radius: 12px;
	transform: rotate(3.5deg);
	padding: 24px 22px 58px;
	margin: 0 4px 0 10px;
	align-self: center;
	box-shadow: 0 10px 22px -8px rgb(31 41 55 / .25);
}
.postit-journal p {
	margin: 0;
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 1.62rem;
	line-height: 1.06;
	color: var(--vert-encre);
}
.postit-smiley { position: absolute; right: 14px; bottom: 12px; opacity: .9; }
.postit-fleche { position: absolute; left: -52px; bottom: -18px; }
@media (max-width: 1100px) {
	.journal-grille { grid-template-columns: repeat(3, 1fr); }
	.postit-journal { grid-column: 1 / -1; max-width: 340px; margin: 6px auto 0; }
	.postit-fleche { display: none; }
}
@media (max-width: 860px) {
	.journal-grille { grid-template-columns: 1fr; }
	.journal-tete { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer validé ---------- */
.pied { background: transparent; color: var(--cahier); font-size: .95rem; position: relative; border-radius: 0; margin-top: clamp(48px, 6vw, 80px); padding: 0; overflow: hidden; }
.pied-vague { color: var(--surface-sombre); line-height: 0; }
.pied-vague svg { width: 100%; height: clamp(26px, 3.6vw, 52px); display: block; margin-bottom: -1px; }
.pied-fond { background: var(--surface-sombre); color: var(--cahier); padding: clamp(26px, 3.4vw, 48px) 0 26px; position: relative; }
.pied-grille { display: grid; grid-template-columns: 1.2fr .85fr .75fr 1.3fr; gap: clamp(24px, 3vw, 42px); align-items: start; }
.pied-marque .logo-marque { display: inline-flex; align-items: center; gap: 10px; }
.pied .logo-marque img { height: 64px; }
.pied .logo-marque .wordmark {
	font-size: 2rem;
	line-height: .86;
	display: inline-block;
	transform: rotate(-2deg);
}
.pied-marque .baseline-script {
	margin: 8px 0 0 4px;
	font-family: var(--font-script);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--vert-clair);
	line-height: 1.35;
	transform: rotate(-2deg);
}
.pied .pied-titre { color: var(--surligneur); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 10px 0 18px; }
.pied ul { gap: 6px; }
.pied ul a { font-size: .92rem; opacity: 1; padding: 6px 0; }
.pied ul a:hover { color: var(--surligneur); }
.pied-devise { position: relative; display: flex; flex-direction: column; gap: 28px; }
.annotation-script--pied {
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 1.65rem;
	line-height: 1.1;
	color: var(--cahier);
	transform: rotate(-4deg);
	max-width: 24ch;
	margin: 6px 0 0;
	position: relative;
}
.annotation-script--pied::after {
	content: "";
	display: block;
	margin: 8px 8% 0 auto;
	width: 54%; height: 7px;
	background: var(--surligneur);
	border-radius: 999px;
	transform: rotate(-2deg);
}
.sticker-corail {
	position: relative;
	align-self: flex-end;
	width: 230px;
	max-width: 100%;
	min-height: 142px;
	padding: 26px 38px;
	background: var(--corail-sticker);
	border-radius: 56% 44% 48% 52% / 46% 53% 47% 54%;
	transform: rotate(-7deg);
	display: grid;
	place-items: center;
	text-align: center;
	z-index: 2;
}
.sticker-texte {
	font-family: var(--font-script);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.08;
	color: var(--surface-sombre);
	max-width: 12ch;
}
.sticker-corail .sparkles {
	position: absolute;
	left: 6px; top: 40%;
	display: grid;
	gap: 8px;
}
.pied-pousse { position: absolute; right: 28px; top: -25px; z-index: 2; transform: rotate(7deg); }
.pied-bas {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px 24px;
	position: relative;
	z-index: 3;
	padding-right: 0;
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid rgb(248 246 238 / .18);
	font-size: .82rem;
	color: #C7D6CE;
}
.pied-bas-liens { display: inline-flex; align-items: center; gap: 8px; }
.pied-bas a { color: var(--cahier); padding: 5px 0; }
.pied-bas a:hover { color: #fff; }
.pied .mention-prudence { color: #B4C9BD; font-size: .82rem; line-height: 1.6; margin: 14px 0 0; text-align: left; max-width: 92ch; }
@media (max-width: 1020px) {
	.pied-grille { grid-template-columns: 1fr 1fr; }
	.pied-marque { grid-column: 1 / -1; }
	.pied-devise { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
	.sticker-corail { width: 220px; flex: none; }
}
@media (max-width: 560px) {
	.pied-grille { gap: 24px 16px; }
	.pied .logo-marque img { height: 56px; }
	.pied .logo-marque .wordmark { font-size: 1.8rem; }
	.pied-devise { gap: 14px; }
	.annotation-script--pied { font-size: 1.4rem; }
	.sticker-corail { width: 164px; min-height: 132px; padding: 24px; }
	.sticker-texte { font-size: 1.3rem; }
	.pied-bas { flex-direction: column; gap: 14px; }
}

/* ---------- Cantines : mêmes composants et rythme que l'accueil ---------- */
.site-principal > .conteneur:has(> .bll-ville, > .bll-fiche, > .bll-annuaire) { max-width: 1380px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) { padding-bottom: 24px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) > .conteneur { max-width: none; padding: 0; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .fil { margin: 0 0 24px; font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; }
.site .bll-page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); align-items: center; gap: 28px; margin-bottom: 32px; }
.site .bll-page-intro { min-width: 0; }
.site .bll-page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 18px; max-width: 23ch; overflow-wrap: break-word; }
.site .bll-page-hero h1 mark { background: var(--surligneur); color: inherit; padding: 0 .1em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.site .bll-page-hero .badge-service { margin-bottom: 16px; }
.site .bll-page-hero .sous-titre { margin: 0 0 8px; color: var(--encre); font-size: 1rem; line-height: 1.55; }
.bll-page-chapo, .bll-page-adresse { margin: 0; max-width: 60ch; color: var(--encre-60); font-size: .95rem; line-height: 1.6; }
.site .bll-page-illustration { position: relative; margin: 0; padding-top: 18px; }
.bll-page-illustration img { width: 100%; height: auto; display: block; }
.bll-page-dessin { position: relative; container-type: inline-size; }
.site .bll-page-illustration figcaption { position: absolute; top: 0; right: 0; padding: 0; font-family: var(--font-script); font-weight: 700; color: var(--vert-encre); font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1; transform: rotate(3deg); }
.bll-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; font-family: var(--font-texte); font-size: .93rem; line-height: 1.4; white-space: nowrap; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .btn svg { width: 18px; height: 18px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .btn--corail { color: var(--encre); box-shadow: 0 6px 16px -6px rgb(210 70 50 / .3); }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .btn--vert { background: var(--vert-encre); color: #fff; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .btn--vert:hover { background: #174635; }
.site .bll-lien-menu { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; font-weight: 700; color: var(--vert-encre); text-decoration: none; padding: 6px 0; }
.site .bll-lien-menu:hover { text-decoration: underline; text-underline-offset: 4px; }
.bll-lien-menu svg { width: 20px; height: 20px; }
.site .outils-liste { background: #fff; border: 1px solid var(--ligne); border-radius: 22px; padding: 24px; margin-bottom: 24px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr); align-items: end; gap: 20px; }
.site .barre-recherche-ville { margin: 0; }
.barre-recherche-ville label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.bll-recherche-champ { position: relative; }
.bll-recherche-champ > span { position: absolute; inset: 0 auto 0 16px; display: flex; align-items: center; pointer-events: none; color: var(--encre-60); }
.bll-recherche-champ svg { width: 20px; height: 20px; }
.site .champ-recherche { max-width: none; padding: 13px 16px 13px 48px; font: inherit; font-size: .95rem; line-height: 1.5; background: #FDFCF8; }
.site .compteurs { margin: 0; gap: 8px; }
.site .compteur { font-family: var(--font-texte); font-size: .82rem; line-height: 1.4; padding: 10px 14px; background: #F5F8EF; color: var(--vert-encre); border: 1px solid #CCD7C7; min-height: 44px; }
.site .compteur--jaune { background: #FFF7D5; border-color: #E4D59A; }
.site .compteur--orange { background: #FFF0DC; border-color: #E8CB9F; }
.site .compteur[aria-pressed="true"] { background: var(--vert-encre); border-color: var(--vert-encre); color: #fff; box-shadow: inset 0 0 0 1px var(--vert-encre); }
.site .liste-etablissements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.site .bll-card--etablissement { display: flex; flex-direction: column; align-items: stretch; padding: 24px; gap: 16px; border-radius: 22px; }
.bll-card--etablissement__infos { min-width: 0; flex: 1; }
.bll-card-reperes { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bll-type { font-size: .79rem; font-weight: 650; color: var(--encre-60); }
.site .bll-card--etablissement h2 { font-size: clamp(1.12rem, 1.5vw, 1.4rem); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.site .bll-card--etablissement .meta { font-size: .86rem; line-height: 1.55; margin: 6px 0; }
.site .bll-card--etablissement > .bll-lien-menu { border-top: 1px solid var(--ligne); padding-top: 16px; justify-content: space-between; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .badge { background: #E8F0DD; color: var(--vert-encre); border: 0; border-radius: 999px; font: 650 .75rem/1.4 var(--font-texte); letter-spacing: 0; text-transform: none; padding: 6px 10px; box-shadow: none; white-space: nowrap; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .badge:hover { transform: none; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .badge--gris { background: #FFF4CD; color: #665325; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .badge--avenir { background: #E9EFF7; color: #304C68; }
.site .bll-annuaire .menus-villes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.site .bll-annuaire .menu-ville h2 { font-size: 1.65rem; line-height: 1.16; color: var(--vert-encre); margin: 0 0 8px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.site .bll-annuaire .menu-ville { min-width: 0; }
.site .bll-annuaire .menu-ville-etat { white-space: normal; }
.site .bll-fiche .bloc-menu { margin-top: 0; scroll-margin-top: 24px; }
.site .bll-fiche :is(.bloc-menu, .bloc-features, .bloc-sources) > h2 { font-size: 1.5rem; margin: 0 0 22px; }
.site .bll-note-archive { background: #FFF4CD; color: #665325; border-left: 4px solid var(--surligneur); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 22px; font-size: .9rem; line-height: 1.55; }
.site .bloc-menu-hebdo { padding: 26px; border-radius: 24px; }
.site .bloc-menu-hebdo__header { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site .bloc-menu-hebdo__header h3 { font-size: 1.17rem; line-height: 1.35; color: var(--vert-encre); }
.site .menu-jours { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.site .menu-jour { min-width: 0; background: #F8F6EE; border: 1px solid #E8E5D9; border-radius: 14px; padding: 16px; }
.site .menu-jour h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; color: var(--vert-encre); text-transform: capitalize; font-size: .94rem; margin: 0 0 14px; padding: 0; }
.menu-jour-numero { background: #E4EDDA; padding: 4px 8px; border-radius: 8px; font-size: .88rem; }
.site .menu-jour ul { font-size: .86rem; line-height: 1.65; overflow-wrap: anywhere; }
.site .menu-jour li { padding: 0; }
.site .menu-jour li + li { margin-top: 8px; }
.site .menu-variante { border-top: 1px solid #DDD9CB; padding-top: 12px; margin-top: 12px; font-size: .83rem; }
.site .menu-jour li:first-child .menu-variante { border: 0; padding-top: 0; margin-top: 0; }
.site .bloc-menu-hebdo__footer { font-size: .8rem; line-height: 1.55; margin-top: 22px; padding-top: 16px; }
.site :is(.menu-autre-semaine, .menus-precedents) { border: 1px solid #D9DDCF; border-radius: 16px; background: #fff; margin: 12px 0; padding: 0 20px; }
.site :is(.menu-autre-semaine, .menus-precedents) > summary { cursor: pointer; font-weight: 700; font-size: .93rem; line-height: 1.5; color: var(--vert-encre); padding: 18px 0; }
.site .menu-autre-semaine > summary .badge { margin-left: 12px; }
.site :is(.menu-autre-semaine, .menus-precedents)[open] > summary { margin-bottom: 0; }
.site :is(.menu-autre-semaine, .menus-precedents) .bloc-menu-hebdo { border: 0; box-shadow: none; padding: 4px 0 22px; border-radius: 0; }
.site .bll-fiche :is(.bloc-features, .bloc-sources) { padding: 26px; background: #fff; border: 1px solid var(--ligne); border-radius: 22px; margin-top: 30px; }
.site .bloc-features > .meta { margin: 0; font-size: .95rem; }
.site .liste-sources { margin: 0; gap: 14px; font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .bande-contribution { background: #FFF0DC; padding: 24px 28px; gap: 24px; border: 1px solid #E9D7BB; margin-top: 36px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .bande-contribution__texte { flex: 1; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .bande-contribution h2 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .bande-mascotte { width: 112px; }
.site :is(.bll-ville, .bll-fiche, .bll-annuaire) > .conteneur > .mention-prudence { font-size: .78rem; line-height: 1.6; margin-bottom: 0; }
@media (max-width: 1020px) {
	.site .bll-page-hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; }
	.site .outils-liste { grid-template-columns: 1fr; gap: 16px; }
	.site .bll-annuaire .menus-villes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.site .bll-page-hero { grid-template-columns: minmax(0, 1fr) 125px; grid-template-areas: "badge badge" "titre titre" "meta dessin" "chapo dessin" "actions actions"; gap: 10px 16px; margin-bottom: 24px; }
	.site .bll-page-intro { display: contents; }
	.site .bll-page-hero h1 { grid-area: titre; font-size: 2rem; margin-bottom: 8px; }
	.site .bll-page-hero .badge-service { grid-area: badge; justify-self: start; font-size: .72rem; margin: 0 0 4px; }
	.site .bll-page-hero .sous-titre { grid-area: meta; margin: 0; font-size: .9rem; }
	.site .bll-page-hero :is(.bll-page-chapo, .bll-page-adresse) { grid-area: chapo; font-size: .86rem; }
	.site .bll-page-illustration { grid-area: dessin; align-self: center; width: 100%; margin: 0; padding-top: 28px; }
	.site .bll-page-illustration figcaption { font-size: .95rem; }
	.site .bll-page-actions { grid-area: actions; gap: 12px 18px; margin-top: 14px; }
	.site .liste-etablissements, .site .bll-annuaire .menus-villes { grid-template-columns: 1fr; gap: 16px; }
	.site .outils-liste { padding: 18px; border-radius: 18px; }
	.site .bll-card--etablissement { padding: 20px; }
	.site .bll-card--etablissement h2 { font-size: 1.2rem; }
	.site .bloc-menu-hebdo { padding: 18px; }
	.site .menu-jours { grid-template-columns: 1fr; margin-top: 18px; }
	.site .menu-jour { padding: 16px; }
	.site .bloc-menu-hebdo__header h3 { font-size: 1.05rem; }
	.site .bll-fiche :is(.bloc-features, .bloc-sources) { padding: 20px; }
	.site .bande-contribution { flex-wrap: wrap; flex-direction: row; padding: 20px; gap: 16px; }
	.site :is(.bll-ville, .bll-fiche, .bll-annuaire) .bande-mascotte { display: block; width: 88px; }
	.site .bande-contribution .btn { margin-left: auto; }
}
