/* Alain CRC : feuille unique du site, écrite pour le téléphone d'abord.
   Design repris d'alain-crc.fr : Poppins fin, encre #181818, citron #f0ff92, pied sombre. */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-italic.woff2) format("woff2"); }

:root {
	--encre: #181818;
	--texte: #4d4d4d;
	--doux: #6b6b6b;
	--citron: #f0ff92;
	--citron-vif: #e4f56a;
	--nuit: #1a1e26;
	--nuit-cta: #121c1c;
	--sable: #f6f6f1;
	--ligne: #e5e5e0;
	--blanc: #fff;
	--marge: 20px;
	--max: 1200px;
	--lecture: 820px;
	--entete-h: 68px;
	--rayon: 14px;
	--section: clamp(64px, 10vw, 120px);
	--titre-xl: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
	--titre-l: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
	--titre-m: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
	--ombre: 0 10px 30px -12px rgba(24, 24, 24, .18);
}
@media (min-width: 700px) { :root { --marge: 32px; } }
@media (min-width: 1000px) { :root { --marge: 48px; --entete-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0; background: var(--blanc); color: var(--texte);
	font: 400 1rem/1.75 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
@media (min-width: 1000px) { body { font-size: 1.0625rem; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--encre); }
h1, h2, h3, h4 { color: var(--encre); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
p, ul, ol, figure, blockquote { margin: 0 0 1.2em; }
strong, b { font-weight: 600; color: var(--encre); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--citron); color: var(--encre); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 8px; }
.evitement:focus { top: 12px; }
.icone { width: 1.15em; height: 1.15em; flex: none; }

.conteneur { width: 100%; max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.conteneur--lecture { max-width: calc(var(--lecture) + 2 * var(--marge)); }
.section { padding-block: var(--section); }
.section--sable { background: var(--sable); }
.section--haut-serre { padding-top: clamp(24px, 4vw, 48px); }

/* Lien qui rend toute la carte cliquable */
.lien-etendu { text-decoration: none; }
.lien-etendu::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Surtitre à l'éclat (« Domaines d'intervention ») */
.surtitre { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--encre); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.surtitre__eclat { width: 18px; height: 18px; }
.titre-section { font-size: var(--titre-l); font-weight: 400; letter-spacing: -.02em; margin-bottom: clamp(28px, 4vw, 56px); }
.titre-section--moyen { font-size: var(--titre-m); }

/* ---------- Boutons ---------- */
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
	font-size: .9375rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.bouton .icone { transition: transform .2s; }
.bouton:hover .icone { transform: translateX(3px); }
.bouton--citron { background: var(--citron); color: var(--encre); }
.bouton--citron:hover { background: var(--citron-vif); }
.bouton--encre { background: var(--encre); color: var(--blanc); }
.bouton--encre:hover { background: #000; }
.bouton--contour { border-color: var(--encre); color: var(--encre); border-radius: 6px; width: 100%; }
.bouton--contour:hover { background: var(--encre); color: var(--blanc); }
.bouton--grand { min-height: 56px; padding-inline: 30px; font-size: 1rem; }

/* ---------- Bandeau du slogan (ordinateur) ---------- */
.bandeau { display: none; background: var(--encre); color: rgba(255, 255, 255, .78); font-size: .8125rem; }
.bandeau__ligne { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 24px; }
.bandeau p { margin: 0; }
.bandeau__slogan { color: var(--citron); letter-spacing: .04em; }
.bandeau__infos { display: flex; gap: 24px; }
.bandeau__infos > * { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bandeau__infos a:hover { color: var(--blanc); }
.bandeau .icone { width: 14px; height: 14px; }
@media (min-width: 1000px) { .bandeau { display: block; } }

/* ---------- En-tête ---------- */
/* Le fond flouté est porté par un calque (::before) et non par l'en-tête : un backdrop-filter sur l'en-tête
   en ferait le cadre des éléments « fixed » qu'il contient, et le panneau du menu mobile serait écrasé à sa hauteur. */
.entete { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.entete::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); }
@supports (backdrop-filter: blur(8px)) { .entete::before { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.menu-ouvert .entete::before { background: var(--blanc); }
.entete.est-defile { border-bottom-color: var(--ligne); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.entete__ligne { display: flex; align-items: center; gap: 16px; min-height: var(--entete-h); }
.entete__logo { display: block; flex: none; margin-right: auto; padding-block: 8px; }
.logo { width: auto; height: 46px; }
@media (min-width: 1000px) { .logo { height: 60px; } }
.logo--compact { display: none; }
@media (max-width: 559px) { .logo--avec-compact { display: none; } .logo--compact { display: block; } }
.entete__actions { display: flex; align-items: center; gap: 8px; }
.entete__devis { display: none; }
.entete__tel, .entete__burger {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre); cursor: pointer; padding: 0;
}
.entete__burger { background: var(--citron); border-color: var(--citron); }
.entete__burger .icone--fermer, .menu-ouvert .entete__burger .icone--menu { display: none; }
.menu-ouvert .entete__burger .icone--fermer { display: block; }
@media (min-width: 560px) { .entete__devis { display: inline-flex; } }

/* Navigation : panneau plein écran sur téléphone */
.navigation {
	position: fixed; inset: var(--entete-h) 0 0; z-index: 49; display: flex; flex-direction: column;
	background: var(--blanc); padding: 8px var(--marge) calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto; overscroll-behavior: contain;
	visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.menu-ouvert .navigation { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.menu-ouvert { overflow: hidden; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--ligne); }
.menu > li > a { flex: 1; padding: 16px 0; color: var(--encre); font-size: 1.5rem; font-weight: 300; text-decoration: none; }
.menu a[aria-current="page"], .menu .current-menu-item > a, .menu .current-menu-ancestor > a { font-weight: 500; }
.menu__ouvrir { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sable); color: var(--encre); cursor: pointer; }
.menu__ouvrir .icone { transition: transform .2s; }
.menu__ouvrir[aria-expanded="true"] .icone { transform: rotate(180deg); }
.sub-menu { display: none; width: 100%; list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--citron); }
.sub-menu.est-ouvert { display: block; }
.sub-menu a { display: block; padding: 10px 0; color: var(--texte); font-size: 1rem; text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { color: var(--encre); }
.navigation__pied { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }
.navigation__slogan { margin: 0; color: var(--doux); font-size: .875rem; letter-spacing: .04em; }
.navigation__tel { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); font-size: 1.25rem; text-decoration: none; }
.navigation__pied .bouton { width: 100%; }

@media (min-width: 1000px) {
	.entete__burger, .entete__tel, .navigation__pied { display: none; }
	.navigation { position: static; inset: auto; z-index: auto; flex-direction: row; padding: 0; overflow: visible; background: none; visibility: visible; opacity: 1; transform: none; transition: none; }
	.menu { display: flex; align-items: center; gap: 4px; }
	/* La pastille de survol entoure l'entrée entière : le lien et, s'il y en a une, sa flèche. */
	.menu > li { border: 0; flex-wrap: nowrap; border-radius: 999px; transition: background-color .2s; }
	.menu > li:hover, .menu > li:focus-within, .menu > li:has(> a[aria-current="page"]), .menu > li.current-menu-item, .menu > li.current-menu-ancestor { background: var(--sable); }
	.menu > li > a { padding: 10px 14px; font-size: .9375rem; font-weight: 400; }
	.menu a[aria-current="page"], .menu .current-menu-item > a, .menu .current-menu-ancestor > a { font-weight: 400; }
	.menu > li.menu-item-has-children > a { padding-right: 2px; }
	.menu__ouvrir { width: 28px; height: 28px; margin-right: 8px; background: none; }
	.sub-menu {
		position: absolute; top: calc(100% + 6px); left: 0; display: block; width: max-content; min-width: 280px; max-width: 360px;
		margin: 0; padding: 10px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre);
		visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
	}
	.sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu, .sub-menu.est-ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
	.sub-menu a { padding: 10px 14px; border-radius: 8px; font-size: .9375rem; color: var(--encre); }
	.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--sable); }
	.entete__actions { margin-left: 12px; }
}

/* ---------- Accueil ---------- */
.accueil > h1, .accueil > .accueil-titre {
	max-width: calc(var(--max) + 2 * var(--marge)); margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--marge) clamp(24px, 3.5vw, 44px);
	font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 300; line-height: 1.12; letter-spacing: -.025em;
}
.accueil > p { max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.accueil > .cta { margin-block: var(--section); }
.accueil > .derniers-articles + .cta { margin-top: 0; }

/* Carrousel */
.carrousel { position: relative; }
.carrousel__piste {
	display: flex; gap: clamp(12px, 2vw, 30px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding-inline: var(--marge); scroll-padding-inline: var(--marge); scrollbar-width: none; touch-action: pan-x pan-y;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__photo { flex: 0 0 86%; margin: 0; scroll-snap-align: center; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sable); }
.carrousel__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .carrousel__photo { flex-basis: 52%; } }
.points { display: flex; justify-content: center; gap: 2px; margin: 22px auto 0; width: max-content; padding: 2px 6px; border: 1px solid var(--ligne); border-radius: 6px; background: var(--blanc); }
.points:empty { display: none; }
.points button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.points button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c9c9c4; transition: background-color .2s, transform .2s; }
.points button[aria-current="true"]::before { background: var(--encre); transform: scale(1.15); }

/* Services */
.services__grille { display: grid; gap: 40px; }
.services__visuel { display: none; }
.services__photo { width: 100%; height: auto; aspect-ratio: 646 / 1024; object-fit: cover; }
.services__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service { position: relative; padding: 22px 0 26px; border-top: 1px solid var(--ligne); display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
.service__titre { grid-column: 1; margin: 0 0 8px; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); font-weight: 400; line-height: 1.2; }
.service__texte { grid-column: 1; margin: 0; font-size: .9375rem; line-height: 1.7; }
.pastille { grid-column: 2; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--citron); color: var(--encre); transition: transform .25s, background-color .2s; }
.service:hover .pastille { transform: rotate(90deg); background: var(--citron-vif); }
.service:hover .service__titre a { text-decoration: underline; }
@media (min-width: 700px) {
	.services__liste { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 16px; }
	.service { display: block; padding-bottom: 72px; }
	.service__texte { margin-bottom: 0; }
	.pastille { position: absolute; left: 0; bottom: 18px; width: 40px; height: 40px; }
}
@media (min-width: 1000px) {
	.services__grille { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
	.services__visuel { display: block; position: sticky; top: calc(var(--entete-h) + 32px); }
	.service { border-top: 0; }
}

/* Témoignages */
.temoignages { background: var(--citron); color: var(--encre); overflow: hidden; }
.temoignages__grille { display: grid; gap: 32px; align-items: center; }
.temoignages__visuel { max-width: 190px; }
.temoignages__corps { min-width: 0; }
.temoignages__piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.temoignages__piste::-webkit-scrollbar { display: none; }
.avis { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.avis__texte { margin: 0 0 28px; padding: 0 0 28px; border-bottom: 1px solid var(--encre); }
.avis__texte p { margin: 0; font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); font-weight: 300; line-height: 1.45; color: var(--encre); }
.avis__auteur { display: grid; gap: 4px; }
.etoiles { display: flex; gap: 2px; }
.etoiles .icone { width: 16px; height: 16px; }
.avis__nom { font-weight: 500; font-size: 1.0625rem; }
.avis__quand { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.temoignages .points { margin: 24px 0 0 auto; background: transparent; border-color: rgba(24, 24, 24, .25); }
.temoignages .points button::before { background: rgba(24, 24, 24, .3); }
.temoignages .points button[aria-current="true"]::before { background: var(--encre); }
@media (min-width: 900px) {
	.temoignages__grille { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); }
	.temoignages__visuel { max-width: none; }
}

/* Cartes d'articles */
.cartes { display: grid; gap: 40px 28px; }
@media (min-width: 700px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { position: relative; display: flex; flex-direction: column; }
.carte__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); margin-bottom: 18px; }
.carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte:hover .carte__photo img { transform: scale(1.04); }
.carte__meta { margin: 0 0 8px; font-size: .875rem; color: var(--doux); }
.carte__meta strong { font-weight: 500; }
.carte__titre { margin: 0 0 10px; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.25; }
.carte:hover .carte__titre a { text-decoration: underline; }
.carte__extrait { margin: 0; font-size: .9375rem; line-height: 1.65; }
.derniers-articles__tout { margin: clamp(40px, 5vw, 64px) 0 0; }
.vide { font-size: 1.125rem; }

/* Appel à l'action */
.cta {
	display: grid; max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto; background: var(--nuit-cta); color: #fffdc7; overflow: hidden;
}
.cta__corps { padding: clamp(32px, 6vw, 64px); align-self: center; }
.cta__titre { margin: 0 0 16px; color: var(--citron); font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.cta__texte { margin: 0 0 32px; max-width: 34ch; color: rgba(255, 253, 199, .85); }
.cta__corps p:last-child { margin: 0; }
.cta__visuel { min-height: 280px; }
.cta__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 28%; }
@media (min-width: 700px) { .cta { grid-template-columns: 1fr 42%; } .cta__visuel { min-height: 100%; } }
.prose > .cta { margin-inline: calc(-1 * min(var(--marge), 40px)); }
@media (min-width: 1000px) { .prose > .cta { margin-inline: -64px; } }

/* ---------- En-tête de page ---------- */
.entete-page { padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.entete-page__titre { margin: 0; font-size: var(--titre-l); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.entete-page__chapeau { margin: 20px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--texte); max-width: 60ch; }
.ariane { margin-bottom: clamp(18px, 3vw, 28px); font-size: .8125rem; color: var(--doux); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.ariane li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #b5b5b0; }
.ariane a { text-decoration: none; }
.ariane a:hover { color: var(--encre); text-decoration: underline; }
.ariane [aria-current] { color: var(--encre); }

/* Article */
.article__categorie { margin: 0 0 14px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.etiquettes a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--citron); color: var(--encre); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.etiquettes a:hover { background: var(--encre); color: var(--citron); }
.article__categorie a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--citron); color: var(--encre); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; font-size: .875rem; color: var(--doux); }
.article__photo { max-width: var(--max); margin: 0 auto clamp(32px, 5vw, 56px); padding-inline: var(--marge); }
.article__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Contenu éditorial (pages et articles) ---------- */
.prose { max-width: calc(var(--lecture) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge) var(--section); }
.prose > * + h2 { margin-top: clamp(48px, 6vw, 72px); }
.prose > * + h3 { margin-top: 36px; }
.prose h2 { font-size: var(--titre-m); font-weight: 400; letter-spacing: -.015em; }
.prose h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); font-weight: 600; font-style: italic; line-height: 1.35; margin-bottom: .7em; }
.prose h4 { font-size: 1.125rem; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; padding-left: .25em; }
.prose ul li::marker { color: var(--encre); }
.prose ol li::marker { color: var(--encre); font-weight: 600; }
.prose a { color: var(--encre); text-decoration-color: var(--citron-vif); text-decoration-thickness: 3px; }
.prose a:hover { background: var(--citron); }
.prose .bouton { text-decoration: none; }
.prose .bouton:hover { background: var(--citron-vif); }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: .875rem; color: var(--doux); }
.prose .wp-block-separator { margin: clamp(48px, 6vw, 72px) 0; border: 0; border-top: 1px solid var(--ligne); }
.prose .wp-block-separator + h2 { margin-top: 0; }
.prose .wp-block-columns { display: grid; gap: 28px; margin-bottom: 1.2em; }
.prose .wp-block-column > :last-child { margin-bottom: 0; }
.prose .wp-block-column > h3:first-child { margin-top: 0; }
.prose .wp-block-column figure { margin: 0; }
@media (min-width: 700px) { .prose .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 40px; } }
.prose .alignwide { --large: min(var(--max), 100vw - 2 * var(--marge)); width: var(--large); max-width: none; margin-inline: calc(50% - var(--large) / 2); }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--citron-vif); font-size: 1.15rem; color: var(--encre); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.prose th { color: var(--encre); font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.liste-liens { list-style: none; padding: 0 !important; }
.liste-liens a { font-size: 1.125rem; }

/* Pagination */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; color: var(--encre); }
.pagination .current { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* ---------- Formulaire ---------- */
.formulaire { margin: 32px 0 0; padding: clamp(22px, 4vw, 40px); background: var(--sable); border-radius: var(--rayon); }
.formulaire__grille { display: grid; gap: 18px; }
@media (min-width: 700px) { .formulaire__grille { grid-template-columns: 1fr 1fr; gap: 22px 24px; } .champ--large { grid-column: 1 / -1; } }
.champ { margin: 0; display: grid; gap: 6px; }
.champ label { color: var(--encre); font-size: .9375rem; font-weight: 500; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #d6d6cf; border-radius: 10px; background: var(--blanc);
	font-size: 1rem; /* 16px : iOS ne zoome pas */ transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--citron); }
.champ [aria-invalid="true"] { border-color: #b3261e !important; }
.champ__erreur { color: #b3261e; font-size: .875rem; }
.champ--case { grid-template-columns: auto 1fr; align-items: start; gap: 6px 12px; }
.champ--case input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--encre); }
.champ--case label { font-weight: 400; font-size: .875rem; line-height: 1.6; color: var(--texte); }
.champ--case .champ__erreur { grid-column: 2; }
.formulaire__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 0; }
.formulaire__envoi .bouton { width: 100%; }
@media (min-width: 560px) { .formulaire__envoi .bouton { width: auto; } }
.formulaire__note { font-size: .8125rem; color: var(--doux); }
.formulaire__alerte { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #8c1d18; }
.formulaire__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__merci { margin: 32px 0 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--rayon); background: var(--citron); color: var(--encre); }
.formulaire__merci-titre { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.formulaire__merci p:last-child { margin: 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .72); font-size: .9375rem; padding-top: clamp(56px, 8vw, 104px); }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { color: var(--citron); }
.pied .bouton--citron, .pied .bouton--citron:hover { color: var(--encre); }
.pied p { margin: 0 0 1em; }
.pied__appel { display: grid; gap: 28px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pied__accroche { margin: 0 !important; color: var(--blanc); font-size: var(--titre-l); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
.pied__accroche span { color: var(--citron); }
@media (min-width: 900px) { .pied__appel { grid-template-columns: 1fr auto; } }
.pied__colonnes { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 640px) { .pied__colonnes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pied__colonnes { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.logo--pied { height: 52px; }
.logo--inverse { filter: brightness(0) invert(1); }
.pied__logo { display: inline-block; margin-bottom: 18px; }
.pied__slogan { color: var(--citron); letter-spacing: .04em; }
.pied__titre { margin-bottom: 18px !important; color: var(--blanc); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.pied__liens, .pied__contact, .reseaux, .pied__legaux { list-style: none; margin: 0; padding: 0; }
.pied__liens li { margin-bottom: 4px; }
.pied__liens a { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, .85); }
.pied__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.pied__contact .icone { margin-top: 4px; color: var(--citron); }
.pied__lien-fort { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; font-weight: 500; color: var(--citron) !important; }
.reseaux { display: flex; gap: 10px; margin-top: 22px; }
.reseaux a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--citron); color: var(--encre); }
.reseaux a:hover { background: var(--blanc); color: var(--encre); }
.reseaux .icone { width: 18px; height: 18px; }
.pied__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.pied__legal p { margin: 0; }
.pied__legaux { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied__legaux a { color: rgba(255, 255, 255, .7); }

/* Apparition douce des sections (désactivée si l'utilisateur réduit les animations) */
@media (prefers-reduced-motion: no-preference) {
	.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.js .apparait.est-visible { opacity: 1; transform: none; }
}

@media print {
	.bandeau, .entete, .pied, .cta, .formulaire, .carrousel .points { display: none !important; }
	body { color: #000; }
}

/* ---------- Carte des chantiers ---------- */
.chantiers { background: var(--nuit); color: rgba(255, 255, 255, .75); }
.chantiers .surtitre, .chantiers .titre-section { color: var(--blanc); }
.chantiers .titre-section { margin-bottom: 12px; }
.chantiers__entete { display: grid; gap: 8px 48px; align-items: end; margin-bottom: clamp(24px, 4vw, 40px); }
.chantiers__chapeau { margin: 0; max-width: 42ch; }
@media (min-width: 900px) { .chantiers__entete { grid-template-columns: 1fr auto; } .chantiers__chapeau { text-align: right; } }
.carte-geo { height: clamp(380px, 68vh, 600px); border-radius: var(--rayon); overflow: hidden; background: #0e1116; isolation: isolate; }
.carte-geo__sans-js { padding: 24px; }
/* Fond OpenStreetMap passé en sombre : inversion, puis teinte remise à l'endroit. */
.carte-geo .tuiles-sombres { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(1.15) saturate(.35); }
.carte-geo .leaflet-control-attribution { background: rgba(14, 17, 22, .75); color: rgba(255, 255, 255, .55); font: 11px/1.4 Poppins, sans-serif; }
.carte-geo .leaflet-control-attribution a { color: rgba(255, 255, 255, .8); }
.carte-geo .leaflet-bar { border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.carte-geo .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; background: var(--encre); color: var(--blanc); border-color: #2c2c2c; font-size: 20px; }
.carte-geo .leaflet-bar a:hover { background: #000; color: var(--citron); }
.pointeur { background: none; border: 0; }
.pointeur__point { position: absolute; inset: 4px; border-radius: 50%; background: var(--citron); border: 3px solid var(--encre); box-shadow: 0 0 0 2px var(--citron); transition: transform .2s; }
.pointeur__point::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--citron); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .pointeur__point::after { animation: pulsation 2.4s ease-out infinite; } }
@keyframes pulsation { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.pointeur:hover .pointeur__point, .pointeur:focus-visible .pointeur__point { transform: scale(1.2); }
.popup-chantier .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.popup-chantier .leaflet-popup-content { margin: 0; width: 260px !important; font-family: Poppins, sans-serif; }
.popup-chantier .leaflet-popup-close-button { top: 8px !important; right: 8px !important; width: 30px !important; height: 30px !important; border-radius: 50%; background: rgba(255, 255, 255, .92) !important; color: var(--encre) !important; font: 20px/30px sans-serif !important; z-index: 2; }
.fiche__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sable); }
.fiche__corps { padding: 14px 16px 16px; }
.fiche__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.fiche__tags a { display: block; padding: 2px 10px; border-radius: 999px; background: var(--citron); color: var(--encre) !important; font-size: 11px; font-weight: 500; line-height: 1.7; text-decoration: none; }
.fiche__tags a:hover { background: var(--encre); color: var(--citron) !important; }
.fiche__titre { margin: 0 0 10px; font-size: 1.05rem; font-weight: 500; line-height: 1.3; color: var(--encre); }
.fiche__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fiche__quartier { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; color: var(--doux); font-size: .8125rem; }
.fiche__lien { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--citron) !important; transition: transform .2s; }
.fiche__lien:hover { transform: translateX(3px); }

/* ---------- Page « Nos chantiers » ---------- */
.pleine-largeur > .chantiers:first-child { padding-top: clamp(40px, 6vw, 72px); }
.chantiers__tout { margin: 28px 0 0; text-align: center; }
.liste-chantiers__chapeau { max-width: 56ch; margin: -16px 0 28px; }
.filtres { display: flex; gap: 8px; margin: 0 calc(-1 * var(--marge)) 32px; padding: 2px var(--marge) 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.filtres::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filtres { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.filtre { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); color: var(--encre); font-size: .9375rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.filtre span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sable); font-size: .75rem; font-weight: 500; }
.filtre:hover { border-color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.filtre[aria-pressed="true"] span { background: var(--citron); color: var(--encre); }
.cartes-chantiers { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .cartes-chantiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .cartes-chantiers { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.chantier-carte { position: relative; display: flex; flex-direction: column; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.chantier-carte[hidden] { display: none; }
.chantier-carte--lien:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.chantier-carte__photo { position: relative; aspect-ratio: 4 / 3; background: var(--sable); overflow: hidden; }
.chantier-carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.chantier-carte--lien:hover .chantier-carte__photo img { transform: scale(1.04); }
.chantier-carte__budget { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(24, 24, 24, .82); color: var(--blanc); font-size: .8125rem; font-weight: 500; backdrop-filter: blur(4px); }
.chantier-carte__corps { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.chantier-carte__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.chantier-carte__tags li { padding: 2px 10px; border-radius: 999px; background: var(--citron); color: var(--encre); font-size: .75rem; font-weight: 500; }
.chantier-carte__titre { margin: 0 0 14px; font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.chantier-carte--lien:hover .chantier-carte__titre a { text-decoration: underline; }
.chantier-carte__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.chantier-carte__quartier { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); font-size: .875rem; }
.chantier-carte__quartier .icone { width: 16px; height: 16px; }
.chantier-carte__fleche { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--citron); transition: transform .2s; }
.chantier-carte--lien:hover .chantier-carte__fleche { transform: translateX(3px); }
.liste-chantiers__vide { margin: 24px 0 0; }

/* Galeries et alignements du texte des chantiers (éditeur classique) */
.prose .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 32px 0; }
@media (min-width: 700px) { .prose .gallery-columns-3, .prose .gallery-columns-4 { grid-template-columns: repeat(3, 1fr); } }
.prose .gallery-item { margin: 0; }
.prose .gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }
.prose .gallery br { display: none; }
.prose .aligncenter { display: block; margin-inline: auto; text-align: center; }
.prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { font-size: .875rem; color: var(--doux); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* « D'autres chantiers » en bas d'une page de chantier */
.autres-chantiers__entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.autres-chantiers__entete .titre-section { margin-bottom: 0; }
.autres-chantiers .chantier-carte { border-color: transparent; box-shadow: 0 1px 2px rgba(24, 24, 24, .06); }

/* ---------- Page d'un chantier ---------- */
.chantier-entete { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 40px); }
.chantier-entete__titre { max-width: 18ch; margin: 0; font-size: var(--titre-l); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; }
.chantier-entete__resume { max-width: 58ch; margin: 22px 0 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--texte); }
.chantier-hero { margin: 0 auto clamp(40px, 6vw, 80px); }
.chantier-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; border-radius: var(--rayon); }
@media (min-width: 700px) { .chantier-hero img { aspect-ratio: 21 / 9; } }

.chantier-grille { display: grid; gap: 40px; padding-bottom: var(--section); }
@media (min-width: 1000px) { .chantier-grille { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; } }

/* Le récit */
.chantier-contenu { min-width: 0; font-size: 1.0625rem; }
.chantier-contenu > :first-child { margin-top: 0; }
.chantier-contenu > p:first-child { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.6; color: var(--encre); font-weight: 300; }
.chantier-contenu > * + h2 { margin-top: clamp(44px, 6vw, 64px); }
.chantier-contenu h2 { position: relative; padding-top: 18px; font-size: var(--titre-m); font-weight: 400; letter-spacing: -.015em; }
.chantier-contenu h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--citron-vif); }
.chantier-contenu h3 { font-size: 1.25rem; font-weight: 600; font-style: italic; }
.chantier-contenu ul { list-style: none; padding: 0; }
.chantier-contenu ul li { position: relative; margin-bottom: 14px; padding-left: 38px; }
.chantier-contenu ul li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--citron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chantier-contenu ol { padding-left: 1.3em; }
.chantier-contenu figure { margin: 36px 0; }
.chantier-contenu figure img { width: 100%; border-radius: var(--rayon); object-fit: cover; aspect-ratio: 3 / 2; }
.chantier-contenu .wp-block-columns { display: grid; gap: 28px; align-items: center; margin: 32px 0; }
@media (min-width: 700px) { .chantier-contenu .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 40px; } }
.chantier-contenu .wp-block-column > :last-child { margin-bottom: 0; }
.chantier-contenu .wp-block-column > :first-child { margin-top: 0; }
.chantier-contenu .wp-block-column figure { margin: 0; }
.chantier-contenu .wp-block-column figure img { aspect-ratio: 4 / 5; }
.chantier-contenu a:not(.bouton) { color: var(--encre); text-decoration-color: var(--citron-vif); text-decoration-thickness: 3px; }
.chantier-contenu > .cta { margin: clamp(48px, 6vw, 72px) 0 0; border-radius: var(--rayon); }

/* La fiche « En bref » */
.chantier-fiche { position: relative; }
@media (min-width: 1000px) { .chantier-fiche { position: sticky; top: calc(var(--entete-h) + 24px); } }
.chantier-fiche__carte { padding: 24px; border-radius: var(--rayon); background: var(--sable); }
.chantier-fiche__titre { margin: 0 0 18px; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--encre); }
.chantier-fiche dl { margin: 0; display: grid; gap: 0; }
.chantier-fiche dl > div { padding: 16px 0; border-top: 1px solid var(--ligne); }
.chantier-fiche dt { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .8125rem; color: var(--doux); }
.chantier-fiche dt .icone { width: 15px; height: 15px; }
.chantier-fiche dd { margin: 0; color: var(--encre); font-weight: 500; }
.chantier-fiche__budget { font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; }
.chantier-fiche dd ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chantier-fiche dd ul a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--blanc); color: var(--encre); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.chantier-fiche dd ul a:hover { background: var(--citron); }
.chantier-fiche__appel { display: grid; gap: 12px; margin-top: 8px; padding: 18px; border-radius: 12px; background: var(--nuit-cta); color: var(--blanc); }
.chantier-fiche__appel p { margin: 0; color: var(--citron); font-size: 1.25rem; font-weight: 600; }
.chantier-fiche__appel .bouton { width: 100%; padding-inline: 16px; white-space: nowrap; font-size: .9375rem; }
.chantier-fiche__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--blanc); text-decoration: none; font-size: .9375rem; }

/* Miniature de carte dans « En bref » */
.chantier-fiche__plan { display: block; margin: 16px 0 0; border-radius: var(--rayon); overflow: hidden; }
.chantier-fiche__plan:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.chantier-fiche__mini-carte { display: block; height: 220px; background: #0e1116; cursor: pointer; }
.chantier-fiche__mini-carte .tuiles-sombres { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(1.15) saturate(.35); }
.chantier-fiche__mini-carte .leaflet-control-attribution { background: rgba(14, 17, 22, .7); color: rgba(255, 255, 255, .5); font: 9px/1.4 Poppins, sans-serif; }
.chantier-fiche__mini-carte .leaflet-control-attribution a { color: rgba(255, 255, 255, .7); }
.chantier-fiche__plan:hover .pointeur__point { transform: scale(1.2); }

/* ---------- Chantiers à l'honneur (accueil) ---------- */
.honneur { position: relative; }
.honneur { --bord: max(var(--marge), calc((100vw - var(--max)) / 2)); --ecart: clamp(12px, 2vw, 24px); }
/* La première carte s'aligne sur le titre ; les suivantes dépassent à droite pour inviter à faire défiler. */
.honneur__piste { display: flex; gap: var(--ecart); margin: 0; padding: 0 var(--bord); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bord); scrollbar-width: none; touch-action: pan-x pan-y; }
.honneur__piste::-webkit-scrollbar { display: none; }
.honneur__carte { position: relative; flex: 0 0 86%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--rayon); overflow: hidden; background: var(--nuit); color: var(--blanc); }
@media (min-width: 700px) { .honneur__carte { flex-basis: calc((min(100vw, var(--max) + 2 * var(--marge)) - 2 * var(--marge) - var(--ecart)) / 2); aspect-ratio: 4 / 3; } }
.honneur__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.honneur__carte--lien:hover .honneur__photo { transform: scale(1.04); }
.honneur__carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 30%, rgba(10, 12, 16, .45) 55%, rgba(10, 12, 16, .9) 100%); pointer-events: none; }
.honneur__texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 3vw, 32px); }
.honneur__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.honneur__tags li { padding: 3px 12px; border-radius: 999px; background: var(--citron); color: var(--encre); font-size: .75rem; font-weight: 500; }
.honneur__titre { margin: 0 0 10px; max-width: 24ch; color: var(--blanc); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.85rem); font-weight: 400; line-height: 1.2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.honneur__titre a { color: inherit; }
.honneur__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.honneur__pied > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.honneur__fleche { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--citron); color: var(--encre); transition: transform .2s; }
.honneur__carte--lien:hover .honneur__fleche { transform: translateX(4px); }
.honneur__bas { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.honneur__bas .points { margin: 0; }
.honneur__tout { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--encre); font-weight: 500; text-decoration: none; white-space: nowrap; }
.honneur__tout:hover { text-decoration: underline; }
@media (max-width: 479px) {
	.honneur__bas { gap: 10px; }
	.honneur__tout { font-size: .875rem; gap: 6px; }
	.honneur .points button { width: 20px; }
}

/* Deux éléments qui se suivent dans une colonne : WordPress remet leurs marges à zéro (blockGap), on rétablit l'espace. */
.chantier-contenu .wp-block-column > * + *, .prose .wp-block-column > * + * { margin-top: 1em; }

/* Case « Je ne suis pas un robot » */
.robot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 0; }
.robot__case { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 18px 10px 12px; border: 1px solid #d6d6cf; border-radius: 10px; background: var(--blanc); color: var(--encre); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.robot__case:hover { border-color: var(--encre); }
.robot__coche { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #b5b5ad; border-radius: 6px; transition: background-color .2s, border-color .2s; }
.robot--calcul .robot__coche { border-color: var(--citron-vif); border-top-color: var(--encre); border-radius: 50%; animation: robot-tourne .7s linear infinite; }
@keyframes robot-tourne { to { transform: rotate(360deg); } }
.robot--ok .robot__coche { border-color: var(--encre); background: var(--citron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.robot--ok .robot__case { cursor: default; border-color: var(--encre); }
.robot__etat { font-size: .875rem; color: var(--doux); }
.robot--ok .robot__etat { color: #2e7d32; }
.robot--erreur .robot__case { border-color: #b3261e; }
.robot--erreur .robot__etat { color: #b3261e; }
