/* =========================================================
   EXTER – feuille de style
   Palette et polices : theme.json. Ici : mise en page et effets.
   ========================================================= */

:root {
	--ex-foret: var(--wp--preset--color--foret);
	--ex-vert: var(--wp--preset--color--vert);
	--ex-sauge: var(--wp--preset--color--sauge);
	--ex-noir: var(--wp--preset--color--noir);
	--ex-gris: var(--wp--preset--color--gris);
	--ex-pierre: var(--wp--preset--color--pierre);
	--ex-ivoire: var(--wp--preset--color--ivoire);
	--ex-mono: var(--wp--preset--font-family--mono);
	--ex-serif: var(--wp--preset--font-family--titres);
	--ex-ease: cubic-bezier(.22, .8, .24, 1);
	--ex-header-h: 84px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ex-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--ex-vert); color: #fff; }
.ex-main { padding: 0 !important; }
.ex-main > .wp-block-post-content > :first-child { margin-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1 em, h2 em, h3 em { font-style: italic; }
:where(h1, h2) em { color: var(--ex-vert); }

/* ---------- En-tête ---------- */
.ex-header {
	position: sticky; top: 0; z-index: 50;
	min-height: var(--ex-header-h);
	padding: .9rem clamp(1.1rem, 5vw, 3rem);
	gap: 1.5rem;
	background: color-mix(in srgb, var(--ex-ivoire) 88%, transparent);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid transparent;
	transition: background .4s var(--ex-ease), color .4s var(--ex-ease), border-color .4s, min-height .3s;
}
header:has(> .ex-header) { position: sticky; top: 0; z-index: 50; }
header:has(> .ex-header) .ex-header { position: relative; }
.ex-header.is-scrolled { border-bottom-color: var(--ex-pierre); }

/* Sur l'accueil, l'en-tête flotte sur le grand visuel sombre. */
body.home header:has(> .ex-header) { position: fixed; left: 0; right: 0; }
body.home .ex-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ex-ivoire); }
body.home .ex-header:not(.is-scrolled) .wp-block-button__link { background: var(--ex-ivoire); color: var(--ex-foret); }

.ex-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.ex-mark { width: 38px; height: 38px; flex: none; transition: transform .8s var(--ex-ease); }
.ex-brand:hover .ex-mark { transform: rotate(90deg); }
.ex-mark__top { stroke: #2E8A57; }
.ex-mark__bottom { stroke: var(--ex-gris); }
.ex-mark__ticks { stroke: currentColor; }
body.home .ex-header:not(.is-scrolled) .ex-mark__top { stroke: #5DBB86; }
body.home .ex-header:not(.is-scrolled) .ex-mark__bottom { stroke: #9AA0A4; }
.ex-brand__name { font-weight: 700; letter-spacing: .2em; font-size: 1.05rem; }
.ex-brand__city { font-family: var(--ex-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; padding-left: .65rem; border-left: 1px solid currentColor; }

.ex-nav .wp-block-navigation-item__content { position: relative; text-decoration: none; padding: .35rem 0; }
.ex-nav .wp-block-navigation__container { gap: clamp(1rem, 2.4vw, 2.25rem); }
.ex-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ex-ease);
}
.ex-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); transform-origin: left; }
.ex-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--ex-foret) !important; color: var(--ex-ivoire) !important; padding: 2rem; }
.ex-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--ex-serif); font-size: 2.4rem; font-weight: 400; }
.ex-header-cta .wp-block-button__link { padding: .75rem 1.25rem; font-size: .9rem; }
@media (max-width: 781px) {
	.ex-header-cta { display: none; }
	.ex-brand__city { display: none; }
}

/* ---------- Boutons ---------- */
.wp-element-button, .wp-block-button__link { transition: background .3s, color .3s, transform .3s var(--ex-ease), box-shadow .3s; }
.wp-block-button__link:hover { background: var(--ex-noir); color: #fff; transform: translateY(-2px); }
.is-style-contour .wp-block-button__link { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.is-style-contour .wp-block-button__link:hover { background: currentColor; }
.is-style-contour .wp-block-button__link:hover { color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); }
.is-style-fleche .wp-block-button__link { background: none; color: inherit; padding: .2rem 0; border-radius: 0; box-shadow: inset 0 -1px 0 currentColor; }
.is-style-fleche .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: .55em; transition: transform .3s var(--ex-ease); }
.is-style-fleche .wp-block-button__link:hover { background: none; color: inherit; transform: none; }
.is-style-fleche .wp-block-button__link:hover::after { transform: translateX(5px); }

/* ---------- Typo utilitaires ---------- */
.is-style-etiquette {
	font-family: var(--ex-mono); font-size: .72rem !important; letter-spacing: .16em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: .6rem; color: var(--ex-gris); margin-bottom: .25rem;
}
.is-style-etiquette::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
	box-shadow: 0 0 0 1.5px var(--ex-vert); background: radial-gradient(circle, var(--ex-vert) 0 2px, transparent 2.5px);
}
.is-style-chapo { font-size: var(--wp--preset--font-size--grand); line-height: 1.55; color: color-mix(in srgb, currentColor 78%, transparent); max-width: 40ch; }
.is-style-note { font-size: var(--wp--preset--font-size--petit); color: color-mix(in srgb, currentColor 65%, transparent); }

/* ---------- Sections ---------- */
.is-style-foret, .is-style-ivoire, .is-style-blanc, .is-style-hero {
	padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important;
	margin-block: 0 !important;
}
.is-style-foret { background: var(--ex-foret); color: var(--ex-ivoire); }
.is-style-ivoire { background: var(--ex-ivoire); }
.is-style-blanc { background: #fff; }
.is-style-foret .is-style-etiquette, .is-style-hero .is-style-etiquette { color: var(--ex-sauge); }
.is-style-foret .is-style-etiquette::before, .is-style-hero .is-style-etiquette::before { box-shadow: 0 0 0 1.5px var(--ex-sauge); background: radial-gradient(circle, var(--ex-sauge) 0 2px, transparent 2.5px); }
.is-style-foret :where(h1, h2) em { color: var(--ex-sauge); }
.is-style-foret .wp-block-button:not(.is-style-contour):not(.is-style-fleche) .wp-block-button__link { background: var(--ex-ivoire); color: var(--ex-foret); }
.is-style-foret .wp-block-button:not(.is-style-contour):not(.is-style-fleche) .wp-block-button__link:hover { background: var(--ex-sauge); }

/* ---------- Grand en-tête (accueil) ---------- */
.is-style-hero {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
	background: var(--ex-foret); color: var(--ex-ivoire);
	padding-top: calc(var(--ex-header-h) + var(--wp--preset--spacing--60)) !important;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}
.is-style-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 70% at 78% 40%, rgba(46, 138, 87, .28), transparent 70%),
		radial-gradient(40% 50% at 10% 100%, rgba(11, 94, 52, .35), transparent 70%);
}
.is-style-hero::after { /* grille fine, comme un plan */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: linear-gradient(var(--ex-ivoire) 1px, transparent 1px), linear-gradient(90deg, var(--ex-ivoire) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.is-style-hero h1 { font-size: clamp(3rem, 8.2vw, 7.5rem); line-height: .96; letter-spacing: -.025em; max-width: 13ch; margin-top: .4rem; }
.is-style-hero .is-style-chapo { margin-top: 1.6rem; }
.is-style-hero .wp-block-buttons { margin-top: 2rem; }

/* Viseur décoratif */
.ex-viseur {
	position: absolute; z-index: -1; pointer-events: none;
	width: min(68vw, 760px); aspect-ratio: 1; right: -6vw; top: 50%;
	translate: var(--vx, 0) calc(-50% + var(--vy, 0px));
	transition: translate 1.2s var(--ex-ease);
	color: var(--ex-ivoire);
}
.ex-viseur svg { width: 100%; height: 100%; overflow: visible; }
.ex-viseur .ring-top { stroke: #2E8A57; }
.ex-viseur .ring-bottom { stroke: rgba(154, 160, 164, .55); }
.ex-viseur .ticks { stroke: rgba(244, 242, 236, .55); }
.ex-viseur .graduation { stroke: rgba(244, 242, 236, .18); transform-origin: 300px 300px; animation: ex-turn 90s linear infinite; }
.ex-viseur .scan { stroke: rgba(169, 205, 181, .55); transform-origin: 300px 300px; animation: ex-turn 7s linear infinite; }
.ex-viseur .lock { fill: #5DBB86; animation: ex-pulse 2.4s ease-in-out infinite; transform-origin: 300px 300px; }
@keyframes ex-turn { to { rotate: 360deg; } }
@keyframes ex-pulse { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1; } }
@media (max-width: 781px) {
	.ex-viseur { width: 125vw; right: -45vw; top: 32%; opacity: .55; }
}

.ex-hero-bas {
	margin-top: var(--wp--preset--spacing--60) !important;
	border-top: 1px solid rgba(244, 242, 236, .18); padding-top: 1.25rem;
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
}
.ex-hero-bas p { margin: 0; font-family: var(--ex-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 242, 236, .72); }
.ex-hero-bas p strong { display: block; color: var(--ex-ivoire); font-family: var(--wp--preset--font-family--texte); font-size: .98rem; letter-spacing: 0; text-transform: none; font-weight: 500; margin-bottom: .25rem; }
@media (max-width: 781px) { .ex-hero-bas { grid-template-columns: 1fr; gap: .9rem; } }

/* Titre à mot changeant */
.is-style-defilant em { position: relative; display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; color: var(--ex-sauge); }
.ex-mots { display: inline-grid; }
.ex-mot { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform .8s var(--ex-ease), opacity .5s; }
.ex-mot.is-on { transform: none; opacity: 1; }
.ex-mot.is-out { transform: translateY(-105%); opacity: 0; }
.is-style-defilant em::after { /* petit trait de visée sous le mot */
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
	background: currentColor; transform-origin: left; animation: ex-trait 2.8s var(--ex-ease) infinite;
}
@keyframes ex-trait { 0% { transform: scaleX(0); } 35%, 75% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Sélecteur de nuisibles ---------- */
.ex-puces { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 1.5rem; }
.ex-puce {
	font: 500 .95rem/1 var(--wp--preset--font-family--texte); color: var(--ex-noir);
	background: transparent; border: 1px solid var(--ex-pierre); border-radius: 999px; padding: .75rem 1.15rem; cursor: pointer;
	transition: background .3s, color .3s, border-color .3s;
}
.ex-puce:hover { border-color: var(--ex-noir); }
.ex-puce[aria-selected="true"] { background: var(--ex-noir); color: var(--ex-ivoire); border-color: var(--ex-noir); }
.ex-puce:focus-visible { outline: 2px solid var(--ex-vert); outline-offset: 3px; }
.is-style-reperage.is-ready > .wp-block-group { display: none; }
.is-style-reperage.is-ready > .wp-block-group.is-on { display: block; animation: ex-apparait .6s var(--ex-ease); }
.is-style-reperage > .wp-block-group {
	background: #fff; border: 1px solid var(--ex-pierre); border-radius: 22px;
	padding: clamp(1.5rem, 4vw, 3rem) !important; position: relative;
}
.is-style-reperage > .wp-block-group h3 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 0 0 1rem; }
.is-style-reperage h4 { margin: 0 0 .6rem; font-family: var(--ex-mono); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ex-gris); }
.is-style-reperage h4 ~ h4 { margin-top: 1.6rem; }
@keyframes ex-apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Coins de visée (cartes et panneaux) */
.is-style-reperage > .wp-block-group::before, .is-style-carte::before {
	content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; transition: opacity .4s, inset .5s var(--ex-ease);
	background:
		linear-gradient(var(--ex-vert), var(--ex-vert)) top left / 16px 1.5px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) top left / 1.5px 16px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) top right / 16px 1.5px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) top right / 1.5px 16px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) bottom left / 16px 1.5px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) bottom left / 1.5px 16px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) bottom right / 16px 1.5px no-repeat,
		linear-gradient(var(--ex-vert), var(--ex-vert)) bottom right / 1.5px 16px no-repeat;
}
.is-style-reperage > .wp-block-group.is-on::before, .is-style-carte:hover::before { opacity: 1; inset: 10px; }

/* ---------- Cartes ---------- */
.is-style-carte {
	position: relative; height: 100%;
	background: #fff; border: 1px solid var(--ex-pierre); border-radius: 22px;
	padding: clamp(1.4rem, 3vw, 2.2rem) !important;
	transition: transform .5s var(--ex-ease), box-shadow .5s var(--ex-ease);
}
.is-style-carte:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10, 42, 28, .45); }
.is-style-carte h3 { font-size: 1.9rem; margin-top: 0; }
.is-style-foret .is-style-carte { background: rgba(244, 242, 236, .04); border-color: rgba(244, 242, 236, .14); }
.wp-block-column > .is-style-carte { height: 100%; }

/* ---------- Étapes numérotées ---------- */
.ex-etapes { counter-reset: etape; }
.is-style-etape { counter-increment: etape; border-top: 1px solid currentColor; padding-top: 1.4rem !important; position: relative; }
.is-style-etape::before {
	content: counter(etape, decimal-leading-zero);
	display: block; font-family: var(--ex-serif); font-style: italic; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1;
	color: var(--ex-vert); margin-bottom: 1.25rem;
}
.is-style-foret .is-style-etape { border-top-color: rgba(244, 242, 236, .25); }
.is-style-foret .is-style-etape::before { color: var(--ex-sauge); }
.is-style-etape h3 { font-size: 2rem; margin: 0 0 .6rem; }

/* ---------- Listes ---------- */
.is-style-coches { list-style: none; padding: 0; }
.is-style-coches li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.is-style-coches li::before {
	content: ""; position: absolute; left: 0; top: .95rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--ex-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.is-style-foret .is-style-coches li::before { background-color: #2E8A57; }
.is-style-communes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.is-style-communes li {
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; padding: .5rem 1rem; font-size: .95rem;
	transition: background .3s, color .3s;
}
.is-style-communes li:hover { background: var(--ex-noir); color: var(--ex-ivoire); }
.is-style-foret .is-style-communes li:hover { background: var(--ex-ivoire); color: var(--ex-foret); }

/* ---------- Grande phrase ---------- */
.ex-manifeste { font-size: clamp(2.4rem, 5.6vw, 5rem) !important; line-height: 1.04; max-width: 18ch; }

/* ---------- FAQ ---------- */
.is-style-faq { border-bottom: 1px solid var(--ex-pierre); padding: 0; margin: 0 !important; }
.is-style-faq:first-of-type { border-top: 1px solid var(--ex-pierre); }
.is-style-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
	padding: 1.5rem 0; font-family: var(--ex-serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2;
}
.is-style-faq summary::-webkit-details-marker { display: none; }
.is-style-faq summary::after {
	content: ""; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--ex-pierre);
	background:
		linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
	transition: transform .4s var(--ex-ease), background-color .3s;
}
.is-style-faq[open] summary::after { transform: rotate(45deg); background-color: var(--ex-ivoire); }
.is-style-faq > :not(summary) { max-width: 62ch; color: color-mix(in srgb, currentColor 80%, transparent); padding-bottom: 1.25rem; margin-top: 0; }

/* ---------- Pied de page ---------- */
.ex-footer { background: var(--ex-foret); color: var(--ex-ivoire); padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: 2rem !important; }
.ex-footer a { color: inherit; text-decoration: none; }
.ex-footer a:hover { text-decoration: underline; }
.ex-footer .is-style-etiquette { color: var(--ex-sauge); }
.ex-footer .is-style-etiquette::before { box-shadow: 0 0 0 1.5px var(--ex-sauge); background: radial-gradient(circle, var(--ex-sauge) 0 2px, transparent 2.5px); }
.ex-footer__brand { font-weight: 700; letter-spacing: .22em; font-size: clamp(3rem, 9vw, 7rem) !important; line-height: 1; margin: 0 0 1rem; color: var(--ex-ivoire); }
.ex-footer__bottom { margin-top: var(--wp--preset--spacing--50) !important; padding-top: 1.25rem; border-top: 1px solid rgba(244, 242, 236, .15); font-size: .85rem; opacity: .75; }
.ex-coords { font-family: var(--ex-mono); letter-spacing: .12em; font-size: .75rem !important; }

/* ---------- Apparition au défilement ---------- */
.ex-js .ex-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ex-ease), transform .9s var(--ex-ease); transition-delay: var(--d, 0s); }
.ex-js .ex-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ex-js .ex-reveal { opacity: 1; transform: none; }
	.ex-mot { transform: none; }
}

/* Alignement à gauche des éléments étroits dans les sections pleine largeur (grille 1240px). */
.alignfull.is-layout-constrained > :is(h1, .is-style-etiquette, .is-style-chapo, .is-style-note, .ex-manifeste, .wp-block-buttons) {
	margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
	margin-right: auto !important;
}
.is-style-etiquette { display: flex; width: fit-content; }
.is-style-hero .ex-viseur { right: -11vw; opacity: .9; }
.is-style-hero > :not(.ex-viseur) { align-self: stretch; }
.ex-main > .wp-block-post-content.alignfull { margin-left: 0 !important; margin-right: 0 !important; }
.is-style-hero > .ex-hero-bas { width: 100%; max-width: 1240px; }
body { overflow-x: clip; }
@media (max-width: 781px) {
	.ex-header-cta { display: none !important; }
	.is-style-hero .ex-viseur { width: 88vw; right: -38vw; top: 17%; opacity: .32; }
	.is-style-hero h1 { font-size: clamp(3.1rem, 13vw, 4rem); }
	.is-style-hero { min-height: auto; }
}

/* ---------- Titre principal : phrase sur une ligne, mot changeant dessous ---------- */
.is-style-hero h1 { max-width: none; }
.is-style-hero h1.is-style-defilant em { display: grid; width: fit-content; }

/* ---------- Rat dans le logo et dans le viseur ---------- */
.ex-mark__rat { fill: currentColor; }
.ex-viseur .rat { fill: rgba(169, 205, 181, .16); }

/* ---------- Raccourci « Demander un passage » dans le sélecteur ---------- */
.ex-panneau-cta {
	display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem;
	background: var(--ex-vert); color: #fff; text-decoration: none; border-radius: 999px; padding: .85rem 1.4rem; font-weight: 500; font-size: .95rem;
	transition: background .3s, transform .3s var(--ex-ease);
}
.ex-panneau-cta::after { content: "→"; transition: transform .3s var(--ex-ease); }
.ex-panneau-cta:hover { background: var(--ex-noir); transform: translateY(-2px); }
.ex-panneau-cta:hover::after { transform: translateX(4px); }

/* ---------- Fenêtre de demande ---------- */
.ex-modale-ouverte { overflow: hidden; }
.ex-modale {
	border: 0; padding: 0; background: transparent; color: var(--ex-noir);
	width: min(760px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
}
.ex-modale::backdrop { background: rgba(10, 42, 28, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ex-modale[open] { animation: ex-apparait .5s var(--ex-ease); }
.ex-modale__boite {
	position: relative; background: var(--ex-ivoire); border-radius: 26px;
	padding: clamp(1.4rem, 4vw, 2.75rem); overflow: auto; max-height: calc(100dvh - 1.5rem);
}
.ex-modale__titre { font-size: clamp(2rem, 4.4vw, 3rem); margin: .25rem 0 1.5rem; }
.ex-modale__titre em { color: var(--ex-vert); }
.ex-form__fermer {
	position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
	border: 1px solid var(--ex-pierre); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ex-noir);
}
.ex-form__fermer:hover { background: var(--ex-noir); color: #fff; }
.ex-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.ex-form legend, .ex-champ > span {
	font-family: var(--ex-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ex-gris);
	margin-bottom: .6rem; display: block; padding: 0;
}
.ex-choix { position: relative; cursor: pointer; }
.ex-choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ex-choix span {
	display: block; border: 1px solid var(--ex-pierre); background: #fff; border-radius: 999px; padding: .6rem 1rem; font-size: .92rem;
	transition: background .25s, color .25s, border-color .25s;
}
.ex-choix:hover span { border-color: var(--ex-noir); }
.ex-choix input:checked + span { background: var(--ex-vert); border-color: var(--ex-vert); color: #fff; }
.ex-choix input:focus-visible + span { outline: 2px solid var(--ex-vert); outline-offset: 2px; }
.ex-form__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.ex-champ--large { grid-column: 1 / -1; }
.ex-champ input, .ex-champ textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: #fff;
	border: 1px solid var(--ex-pierre); border-radius: 14px; padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s;
}
.ex-champ input:focus, .ex-champ textarea:focus { outline: none; border-color: var(--ex-vert); box-shadow: 0 0 0 3px rgba(11, 94, 52, .14); }
.ex-champ textarea { resize: vertical; min-height: 5.5rem; }
.ex-form__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ex-form__erreur { color: #A12A2A; font-size: .92rem; margin: .9rem 0 0; min-height: 1.2em; }
.ex-form__bas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .75rem; }
.ex-form__bas button { cursor: pointer; border: 0; }
.ex-form__bas button:disabled { opacity: .6; cursor: wait; }
.ex-form__legal { font-size: .8rem; color: var(--ex-gris); margin: 0; }
.ex-form__etat { padding: 1rem 0 .5rem; }
.ex-form__merci { font-family: var(--ex-serif); font-size: 2rem; line-height: 1.1; margin: 0 0 .5rem; color: var(--ex-vert); }
@media (max-width: 600px) { .ex-form__grille { grid-template-columns: 1fr; } }

/* ---------- Liste de services numérotée ---------- */
.is-style-prestations {
	list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--50) !important;
	counter-reset: presta; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ex-pierre);
}
.is-style-prestations li {
	counter-increment: presta; position: relative; padding: 1.4rem 1.5rem 1.5rem 3.4rem;
	border-bottom: 1px solid var(--ex-pierre); color: var(--ex-gris); font-size: .95rem; line-height: 1.45;
	transition: background .35s var(--ex-ease);
}
.is-style-prestations li:not(:nth-child(3n)) { border-right: 1px solid var(--ex-pierre); }
.is-style-prestations li::before {
	content: counter(presta, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.55rem;
	font-family: var(--ex-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ex-vert);
}
.is-style-prestations li strong { display: block; color: var(--ex-noir); font-family: var(--ex-serif); font-weight: 400; font-size: 1.65rem; line-height: 1.1; margin-bottom: .35rem; }
.is-style-prestations li:hover { background: var(--ex-ivoire); }
@media (max-width: 900px) {
	.is-style-prestations { grid-template-columns: 1fr 1fr; }
	.is-style-prestations li:not(:nth-child(3n)) { border-right: 0; }
	.is-style-prestations li:nth-child(odd) { border-right: 1px solid var(--ex-pierre); }
}
@media (max-width: 600px) {
	.is-style-prestations { grid-template-columns: 1fr; }
	.is-style-prestations li:nth-child(odd) { border-right: 0; }
}
.ex-etapes { gap: clamp(1.25rem, 3vw, 2.5rem); }

/* Logo officiel (pastille ronde) */
.ex-logo { width: 48px; height: 48px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(20, 35, 36, .08); transition: transform .8s var(--ex-ease); }
.ex-brand:hover .ex-logo { transform: rotate(-8deg) scale(1.04); }

/* Animal du viseur, synchronisé avec le mot du titre */
.ex-viseur .betes { color: rgba(169, 205, 181, .2); }
.ex-viseur .bete { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.82); transition: opacity .7s var(--ex-ease), transform .9s var(--ex-ease); }
.ex-viseur .bete.is-on { opacity: 1; transform: none; }
.ex-viseur .bete path { fill: currentColor; }

/* ---------- Engagements dépliables ---------- */
.is-style-engagement { border-bottom: 1px solid var(--ex-pierre); margin: 0 !important; padding: 0; }
.is-style-engagement:first-of-type { border-top: 1px solid var(--ex-pierre); }
.is-style-engagement summary {
	list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; gap: 1rem;
	padding: 1.15rem 3rem 1.15rem 2.2rem; font-weight: 500; font-size: 1.05rem; line-height: 1.35; transition: color .3s;
}
.is-style-engagement summary::-webkit-details-marker { display: none; }
.is-style-engagement summary::before {
	content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--ex-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
	transition: transform .4s var(--ex-ease);
}
.is-style-engagement summary::after {
	content: ""; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 2rem; height: 2rem; border-radius: 50%;
	border: 1px solid var(--ex-pierre);
	background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
	transition: transform .4s var(--ex-ease), background-color .3s, border-color .3s;
}
.is-style-engagement summary:hover { color: var(--ex-vert); }
.is-style-engagement summary:hover::before { transform: scale(1.12); }
.is-style-engagement[open] summary { color: var(--ex-vert); }
.is-style-engagement[open] summary::after { transform: rotate(45deg); background-color: var(--ex-ivoire); border-color: var(--ex-vert); }
.is-style-engagement > :not(summary) { margin: 0 0 0 2.2rem !important; padding: 0 2.5rem 1.4rem 0; color: color-mix(in srgb, currentColor 78%, transparent); line-height: 1.65; animation: ex-apparait .5s var(--ex-ease); }

/* Grand en-tête recalibré : contenu centré, hauteur limitée, boutons visibles sur un portable 15 pouces. */
.is-style-hero {
	min-height: min(100svh, 860px);
	justify-content: center;
	padding-top: calc(var(--ex-header-h) + clamp(1.5rem, 4vh, 3.5rem)) !important;
	padding-bottom: clamp(2.5rem, 7vh, 5rem) !important;
}
.is-style-hero h1 { font-size: clamp(3rem, min(7.4vw, 11.5vh), 7rem); margin-top: 0; }
.is-style-hero .is-style-chapo { margin-top: clamp(1rem, 2.4vh, 1.6rem); }
.is-style-hero .wp-block-buttons { margin-top: clamp(1.25rem, 3vh, 2rem); }
.is-style-hero .ex-viseur { width: min(60vw, 86vh, 720px); }
@media (max-width: 781px) {
	.is-style-hero { min-height: auto; }
	.is-style-hero .ex-viseur { width: 88vw; }
}
.is-style-hero { min-height: min(86svh, 800px); }
@media (max-width: 781px) { .is-style-hero { min-height: auto; } }

/* Titre : « EXTERmination des / [mot] à Genève » */
.is-style-hero h1.is-style-defilant em { display: inline-grid; width: var(--mot-w, auto); transition: width .6s var(--ex-ease); }
.is-style-hero h1 strong { font-weight: 400; letter-spacing: .01em; }
.is-style-hero h1 { font-size: clamp(2.8rem, min(6.4vw, 10.5vh), 6.2rem); }

/* Photo paysage sous « Le bon geste » */
.ex-photo-paysage { margin-top: clamp(1.75rem, 4vw, 2.75rem) !important; overflow: hidden; border-radius: 24px; }
.ex-photo-paysage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 1.2s var(--ex-ease); }
.ex-photo-paysage:hover img { transform: scale(1.04); }
.ex-mot { justify-self: start; }
.is-style-hero h1.is-style-defilant em { overflow: visible; }
.is-style-hero h1.is-style-defilant .ex-mots { overflow: hidden; padding-bottom: .08em; }

/* Titre des engagements sur une ligne (desktop) */
.ex-une-ligne { font-size: clamp(2.2rem, 4.4vw, 3.6rem) !important; }
@media (min-width: 1000px) { .ex-une-ligne { white-space: nowrap; } }
.ex-engagements-cols { margin-top: clamp(1.75rem, 3.5vw, 2.75rem) !important; gap: clamp(1.5rem, 4vw, 3.5rem); }
.ex-engagements-cols .ex-photo-paysage { margin-top: 0 !important; }

/* « EXTER » dans le titre : même lettrage que le logo (capitales grasses, espacées) */
.is-style-hero h1 strong {
	font-family: var(--wp--preset--font-family--texte); font-weight: 800; font-style: normal;
	font-size: .74em; letter-spacing: .1em; margin-right: .06em;
	color: #fff;
	background: none;
}

/* ---------- Méthode en escalier, avec photos ---------- */
.ex-escalier { align-items: flex-start !important; margin-top: var(--wp--preset--spacing--50) !important; }
.ex-escalier .is-style-etape { display: flex; flex-direction: column; border-top: 0; padding-top: 0 !important; }
.ex-escalier .ex-etape-photo { order: -1; margin: 0 0 1.25rem !important; overflow: hidden; border-radius: 22px; position: relative; }
.ex-escalier .ex-etape-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 1.2s var(--ex-ease); filter: saturate(.9); }
.ex-escalier .is-style-etape:hover .ex-etape-photo img { transform: scale(1.05); }
.ex-escalier .is-style-etape::before { order: 0; font-size: clamp(2.6rem, 4.4vw, 3.6rem); margin-bottom: .6rem; }
.ex-escalier .is-style-etape h3 { order: 1; }
.ex-escalier .is-style-etape p { order: 2; }
@media (min-width: 782px) {
	.ex-escalier > .wp-block-column:nth-child(2) { margin-top: clamp(3rem, 6vw, 5.5rem) !important; }
	.ex-escalier > .wp-block-column:nth-child(3) { margin-top: clamp(6rem, 12vw, 11rem) !important; }
	.ex-escalier > .wp-block-column:nth-child(4) { margin-top: clamp(9rem, 18vw, 16.5rem) !important; }
	/* Fil de l'escalier : une ligne fine qui descend d'une marche à l'autre */
	.ex-escalier > .wp-block-column:not(:first-child) { position: relative; }
	.ex-escalier > .wp-block-column:not(:first-child)::before {
		content: ""; position: absolute; left: calc(-1 * clamp(1.25rem, 3vw, 2.5rem) / 2); top: -2rem; bottom: 40%;
		width: 1px; background: linear-gradient(rgba(169, 205, 181, 0), rgba(169, 205, 181, .35));
	}
}
@media (max-width: 781px) {
	.ex-escalier .ex-etape-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Contact : dégradé vert + photo ---------- */
.ex-contact {
	background:
		radial-gradient(70% 90% at 100% 0%, rgba(46, 138, 87, .55), transparent 60%),
		radial-gradient(60% 80% at 0% 100%, rgba(6, 95, 51, .7), transparent 65%),
		linear-gradient(135deg, #0A2A1C 0%, #0C3A25 55%, #065F33 100%) !important;
}
.ex-contact-cols { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem); }
.ex-contact-photo { margin: 0 !important; overflow: hidden; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.ex-contact-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; transition: transform 1.2s var(--ex-ease); }
.ex-contact-photo:hover img { transform: scale(1.04); }
.ex-contact .ex-manifeste { max-width: 14ch; }

/* ---------- Fond Genève (très discret) dans le grand en-tête ---------- */
.is-style-hero {
	background:
		linear-gradient(180deg, rgba(10, 42, 28, .9) 0%, rgba(10, 42, 28, .82) 55%, rgba(10, 42, 28, .95) 100%),
		url("../img/geneve.jpg") center 62% / cover no-repeat,
		var(--ex-foret) !important;
	background-blend-mode: normal, luminosity, normal;
}

/* ---------- Photo du nuisible dans le sélecteur ---------- */
.ex-nuisible-photo { margin: 1.5rem 0 0 !important; overflow: hidden; border-radius: 18px; }
.ex-nuisible-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; animation: ex-apparait .7s var(--ex-ease); }
.is-style-ivoire .is-style-faq[open] summary::after { background-color: #fff; }

/* Pied de page : crédit et liens légaux */
.ex-footer__bottom a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(244, 242, 236, .35); }
.ex-footer__bottom a:hover { text-decoration-color: currentColor; }
.ex-credit a { text-decoration: none !important; opacity: .85; }
.ex-credit a:hover { opacity: 1; text-decoration: underline !important; }
.ex-form__legal a { color: inherit; }
/* Pages simples (mentions, confidentialité) */
.ex-simple h2 { font-size: 2rem; margin-top: 2.5rem; }
.ex-simple mark { background: #FFF3C4; padding: 0 .25em; border-radius: 4px; }
.ex-footer__marque { display: inline-flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); margin-bottom: 1rem; text-decoration: none !important; color: var(--ex-ivoire); }
.ex-footer__marque img { width: clamp(64px, 8vw, 104px); height: auto; border-radius: 50%; background: #fff; flex: none; transition: transform .8s var(--ex-ease); }
.ex-footer__marque:hover img { transform: rotate(-8deg); }
.ex-footer__marque .ex-footer__brand { margin: 0; display: block; }
.ex-footer__marque .ex-footer__brand { font-size: clamp(2.6rem, 5.4vw, 4.8rem) !important; letter-spacing: .18em; white-space: nowrap; }
.ex-simple { padding-top: calc(var(--wp--preset--spacing--60) + 1rem) !important; }
.ex-main.ex-simple { padding-top: calc(var(--wp--preset--spacing--60) + 1rem) !important; padding-bottom: var(--wp--preset--spacing--70) !important; }
.ex-main.ex-simple { padding-top: clamp(3.5rem, 7vw, 6rem) !important; padding-bottom: clamp(5rem, 9vw, 8rem) !important; }
