/*
Theme Name:   MD Paysage
Theme URI:    https://mdpaysages.com
Description:  MD Paysage, paysagiste dans le Pays de Gex. Thème enfant de Frost : site sombre et végétal, photos en grand, jardin interactif, une page par prestation.
Author:       FrameGenesis
Author URI:   https://framegenesis.com
Template:     frost
Version:      1.0.0
Text Domain:  mdpaysages
*/

/* ==========================================================================
   MD Paysage, design system (classes md-*)
   Frost ne fournit que la plomberie FSE ; tout l'habillage est ici.
   Tokens : verts recalés sur le vert du logo #88B426 (retour client du 2026-10-20).
   Texte foncé sur le vert logo (blanc illisible dessus : contraste 2,4:1).
   ========================================================================== */

:root {
	--vert-logo: #88b426;
	--vert-logo-hover: #9bc63c;
	--vert-foret: #567a14; /* même teinte, assez foncé pour du texte sur blanc (5:1) */
	--vert-foret-hover: #46640f;
	--vert-profond: #1c2611;
	--vert-clair: #88b426;
	--whatsapp: #25d366; /* vert officiel WhatsApp, texte foncé dessus (contraste) */
	--whatsapp-hover: #3be07a;
	--noir: #111512;
	--anthracite: #2b302c;
	--sable: #f3f1ea;
	--blanc: #ffffff;
	--or-doux: #d9a441;
	--muted: #5b635d;
	--muted-dark: rgba(255, 255, 255, 0.72);
	--line: rgba(17, 21, 18, 0.1);
	--line-dark: rgba(255, 255, 255, 0.14);

	--font-heading: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-field: 10px;
	--pill: 999px;
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--t: 250ms;

	--container: 1200px;
	--gutter: 20px;
	--section: 56px;
	--header-h: 72px;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; }
}

@media (min-width: 1024px) {
	:root { --section: 96px; --header-h: 84px; }
}

/* ---------- Base (neutralise les styles globaux de Frost) ---------- */

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--anthracite);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

@media (min-width: 768px) {
	body { font-size: 18px; }
}

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > header, .wp-site-blocks > footer, .site-header, .site-footer { margin: 0; padding: 0; }
main.wp-block-group { margin: 0; padding: 0; }
main.wp-block-group > * + * { margin-block-start: 0; }

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--vert-foret); text-underline-offset: 3px; transition: color var(--t) var(--ease); }
a:hover { color: var(--vert-profond); }

:focus-visible {
	outline: 3px solid var(--vert-clair);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 { color: inherit; margin: 0; }

.md-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}

.screen-reader-text, .md-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.md-skip {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 200;
	padding: 10px 18px;
	background: var(--vert-clair);
	color: var(--noir);
	border-radius: var(--pill);
	font-weight: 600;
	transition: top var(--t) var(--ease);
}
.md-skip:focus { top: 12px; }

/* ---------- Typographie ---------- */

.md-h1, .md-h2 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.md-h1 { font-size: clamp(40px, 6.2vw, 64px); }
.md-h2 { font-size: clamp(30px, 4.2vw, 44px); }
.md-h1 em, .md-h2 em { font-style: italic; color: var(--vert-clair); }
.md-section--light .md-h2 em, .md-section--sand .md-h2 em { color: var(--vert-foret); }

.md-h3 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
}
@media (min-width: 768px) { .md-h3 { font-size: 24px; } }

/* Pas de surtitre (kicker) au-dessus des titres (retour du 2026-10-01).
   .md-label : petit titre en Fraunces pour un bloc qui n'a pas d'autre titre
   (« Souvent associé à », « Nous joindre », encart conseil…). */
.md-label {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
}

.md-lead { font-size: 18px; line-height: 1.6; max-width: 62ch; }
@media (min-width: 768px) { .md-lead { font-size: 20px; } }

.md-prose { max-width: 70ch; }
.md-prose p { margin: 0 0 1.1em; }
.md-prose h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 1.6em 0 0.6em; color: var(--noir); }
.md-prose .md-h2 { font-size: clamp(30px, 4.2vw, 44px); margin-top: 0; color: inherit; }
.md-prose h3 { font-size: 20px; font-weight: 600; margin: 1.4em 0 0.5em; color: var(--noir); }
.md-prose ul, .md-prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.md-prose li { margin-bottom: 0.4em; }

.md-muted { color: var(--muted); }

/* ---------- Sections (alternance sombre / claire, brief) ---------- */

.md-section { padding: var(--section) 0; position: relative; }
.md-section--light { background: var(--blanc); color: var(--anthracite); }
.md-section--sand { background: var(--sable); color: var(--anthracite); }
.md-section--dark { background: var(--noir); color: var(--blanc); }
.md-section--deep { background: var(--vert-profond); color: var(--blanc); }
.md-section--flush-top { padding-top: 0; }

.md-section--dark .md-muted, .md-section--deep .md-muted { color: var(--muted-dark); }

/* Carte topographique en filigrane (sections sombres). Une seule grande
   carte (assets/images/topo.svg, générée par _tools/topo.py : relief réaliste,
   courbe maîtresse toutes les 5), affichée en cover : ni raccord ni motif
   répété. Chaque section en montre une autre région, avec un fondu radial
   vers le texte et une dérive très lente (transform uniquement). */
.md-section--contour { isolation: isolate; overflow: hidden; }
.md-section--contour::before {
	content: "";
	position: absolute;
	inset: -6%;
	z-index: -1;
	pointer-events: none;
	background: url("assets/images/topo.svg") var(--topo-pos, 30% 40%) / cover no-repeat;
	opacity: var(--topo-opacity, 0.26);
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at var(--topo-focus, 75% 25%), #000 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.12) 100%);
	mask-image: radial-gradient(ellipse 85% 75% at var(--topo-focus, 75% 25%), #000 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.12) 100%);
	animation: md-topo-drift 60s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes md-topo-drift {
	from { transform: translate3d(-1.2%, -0.8%, 0) scale(1.02); }
	to { transform: translate3d(1.2%, 0.8%, 0) scale(1.05); }
}
main > .md-section--contour:nth-of-type(3n + 1) { --topo-pos: 15% 20%; --topo-focus: 82% 18%; }
main > .md-section--contour:nth-of-type(3n + 2) { --topo-pos: 85% 70%; --topo-focus: 18% 78%; }
main > .md-section--contour:nth-of-type(3n) { --topo-pos: 50% 95%; --topo-focus: 70% 60%; }
.md-section--deep.md-section--contour { --topo-opacity: 0.3; }
.md-page-hero.md-section--contour { --topo-pos: 70% 30%; --topo-focus: 85% 40%; }

.md-head { max-width: 760px; margin: 0 0 40px; }
.md-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.md-head p { margin: 16px 0 0; }
.md-head--split {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
}
.md-head--split > div { max-width: 700px; }
@media (min-width: 1024px) { .md-head { margin-bottom: 56px; } }

/* ---------- Boutons (brief : pilule, grossit à 105 %, 98 % au clic) ---------- */

.md-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--pill);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.md-btn:hover { transform: scale(1.05); }
.md-btn:active { transform: scale(0.98); }
.md-btn .md-icon { flex: none; }

.md-btn--primary { background: var(--vert-logo); color: var(--noir); }
.md-btn--primary:hover, .md-btn--primary:focus-visible { background: var(--vert-logo-hover); color: var(--noir); }

.md-btn--light { background: var(--blanc); color: var(--noir); }
.md-btn--light:hover { background: var(--sable); color: var(--noir); }

.md-btn--ghost { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, 0.7); }
.md-btn--ghost:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }

.md-btn--outline { background: transparent; color: var(--vert-foret); border-color: var(--vert-foret); }
.md-btn--outline:hover { background: var(--vert-foret); color: var(--blanc); }

/* WhatsApp : couleur de la marque pour qu'il ressorte (retour client du 2026-10-20). */
/* Bouton blanc + logo vert WhatsApp : ressort sur fond sombre sans faire
   cohabiter deux verts à côté du bouton devis (retour du 2026-10-20). */
.md-btn--whatsapp { background: var(--blanc); color: var(--noir); }
.md-btn--whatsapp .md-icon { color: var(--whatsapp); }
.md-btn--whatsapp:hover, .md-btn--whatsapp:focus-visible { background: var(--sable); color: var(--noir); }

.md-btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.md-btn--block { width: 100%; }

.md-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.md-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
	color: var(--vert-foret);
}
.md-link-arrow .md-icon { transition: transform var(--t) var(--ease); }
.md-link-arrow:hover .md-icon { transform: translateX(4px); }
.md-section--dark .md-link-arrow, .md-section--deep .md-link-arrow { color: var(--vert-clair); }
.md-section--dark .md-link-arrow:hover, .md-section--deep .md-link-arrow:hover { color: var(--blanc); }

/* ---------- Badges ---------- */

.md-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: var(--pill);
	background: var(--vert-clair);
	color: var(--vert-profond);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

/* ---------- Image zoom (cadre fixe, zoom 106 % au survol, brief) ---------- */

.md-zoom { overflow: hidden; position: relative; }
.md-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.md-zoom:hover img, a:hover .md-zoom img, a:focus-visible .md-zoom img { transform: scale(1.06); }

.md-credit {
	font-size: 11px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.75);
}
.md-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.md-credit a:hover { color: var(--blanc); }
.md-credit--corner {
	position: absolute;
	right: 10px; bottom: 8px;
	z-index: 2;
	padding: 3px 8px;
	border-radius: var(--pill);
	background: rgba(0, 0, 0, 0.45);
}
.md-credit--dark { color: var(--muted); }
.md-credit--dark a:hover { color: var(--noir); }

/* ==========================================================================
   En-tête, transparent sur l'accroche, noir plein au défilement (brief)
   ========================================================================== */

.md-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	color: var(--blanc);
	transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.md-header::before {
	/* Léger voile en haut pour garder le menu lisible sur une photo claire. */
	content: "";
	position: absolute;
	inset: 0 0 -40px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
	pointer-events: none;
	transition: opacity 300ms var(--ease);
}
.md-header.is-solid { background: var(--noir); box-shadow: 0 1px 0 var(--line-dark); }
.md-header.is-solid::before { opacity: 0; }
body.admin-bar .md-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .md-header { top: 32px; } }

.md-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
}

.md-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	line-height: 0;
}
.md-logo__img {
	display: block;
	width: auto;
	height: 50px;
	/* Ombre discrète : le vert du logo reste lisible sur une photo claire
	   tant que l'en-tête est transparent. */
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.45));
	transition: transform 400ms var(--ease), filter 300ms var(--ease);
}
.md-logo:hover .md-logo__img { transform: scale(1.04); }
.md-header.is-solid .md-logo__img, .md-footer .md-logo__img { filter: none; }
@media (min-width: 768px) { .md-logo__img { height: 64px; } }
.md-footer .md-logo__img { height: 96px; }

.md-nav__list { list-style: none; margin: 0; padding: 0; }
.md-nav__list a, .md-nav__subtoggle {
	color: inherit;
	text-decoration: none;
	font-family: var(--font-body);
	font-weight: 600;
}

.md-header__actions { display: flex; align-items: center; gap: 12px; }
.md-header__cta { display: none; }
.md-header__phone {
	display: none;
	align-items: center;
	gap: 8px;
	color: var(--blanc);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.md-header__phone:hover { color: var(--vert-clair); }

.md-burger {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--blanc);
	cursor: pointer;
	position: relative;
	z-index: 120;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.md-burger:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.2); }
.md-burger span, .md-burger span::before, .md-burger span::after {
	display: block;
	width: 20px; height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 300ms var(--ease), opacity 200ms;
}
.md-burger span { position: relative; }
.md-burger span::before, .md-burger span::after { content: ""; position: absolute; left: 0; }
.md-burger span::before { top: -6px; }
.md-burger span::after { top: 6px; }
.md-burger[aria-expanded="true"] span { background: transparent; }
.md-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.md-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile : menu plein écran (brief). */
@media (max-width: 1023px) {
	.md-nav {
		position: fixed;
		inset: 0;
		z-index: 110;
		display: flex;
		flex-direction: column;
		padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
		background: var(--noir);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
	}
	.md-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	body.md-nav-open { overflow: hidden; }
	body.md-nav-open .md-header { background: var(--noir); }

	.md-nav__list > li { border-bottom: 1px solid var(--line-dark); }
	.md-nav__list > li > a, .md-nav__subtoggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 56px;
		padding: 8px 0;
		border: 0;
		background: none;
		font-family: var(--font-heading);
		font-size: 26px;
		text-align: left;
		cursor: pointer;
		color: var(--blanc);
	}
	/* Services : lien vers /services/ + bouton qui déplie la liste. */
	.md-nav__list > li.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.md-nav__list > li.has-sub > .md-nav__subtoggle { justify-content: center; width: 56px; }
	.md-nav__list > li.has-sub > .md-sub { grid-column: 1 / -1; }
	.md-nav__subtoggle .md-icon { transition: transform 300ms var(--ease); }
	.md-nav__subtoggle[aria-expanded="true"] .md-icon { transform: rotate(180deg); }
	.md-sub { display: none; padding: 0 0 16px; }
	.md-sub.is-open { display: block; }
	.md-sub ul { list-style: none; margin: 0; padding: 0; }
	.md-sub a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; color: var(--muted-dark); text-decoration: none; font-weight: 600; }
	.md-sub a:hover { color: var(--vert-clair); }
	.md-sub small { display: none; }
	.md-sub__icon { color: var(--vert-clair); display: inline-flex; }
	.md-sub .md-sub__all { color: var(--vert-clair); }
	.md-nav__mobile-actions { display: grid; gap: 12px; margin-top: 32px; }
}

@media (min-width: 1024px) {
	.md-burger, .md-nav__mobile-actions { display: none; }
	.md-header__cta { display: inline-flex; }
	.md-nav { flex: 1; display: flex; justify-content: center; }
	.md-nav__list { display: flex; align-items: center; gap: 4px; }
	.md-nav__list > li { position: relative; }
	.md-nav__list > li > a, .md-nav__subtoggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		padding: 8px 14px;
		border: 0;
		border-radius: var(--pill);
		background: none;
		font-size: 15px;
		cursor: pointer;
		transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
	}
	.md-nav__list > li > a:hover, .md-nav__list > li > a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: var(--blanc); }
	.md-nav__subtoggle .md-icon { transition: transform 300ms var(--ease); }

	/* Services : le lien et son chevron forment une seule pastille. */
	.md-nav__list > li.has-sub { display: inline-flex; align-items: center; border-radius: var(--pill); transition: background-color var(--t) var(--ease); }
	.md-nav__list > li.has-sub:hover, .md-nav__list > li.has-sub:has(> a[aria-current="page"], > a.is-section) { background: rgba(255, 255, 255, 0.12); }
	.md-nav__list > li.has-sub > a { padding-right: 2px; }
	.md-nav__list > li.has-sub > a:hover, .md-nav__list > li.has-sub > a[aria-current="page"] { background: none; }
	.md-nav__list > li.has-sub > .md-nav__subtoggle { padding: 8px 12px 8px 4px; }

	/* Menu déroulant "Services" : panneau 2 colonnes avec icônes. */
	.md-sub {
		position: absolute;
		top: calc(100% + 12px);
		left: 50%;
		width: min(640px, 90vw);
		padding: 12px;
		border-radius: var(--radius);
		background: var(--noir);
		box-shadow: var(--shadow), 0 0 0 1px var(--line-dark);
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 8px);
		transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
	}
	.md-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.has-sub:hover .md-sub, .has-sub:focus-within .md-sub, .md-sub.is-open {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
		transition-delay: 0s;
	}
	.has-sub:hover .md-nav__subtoggle .md-icon, .md-nav__subtoggle[aria-expanded="true"] .md-icon { transform: rotate(180deg); }
	.md-sub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
	.md-sub a {
		display: flex;
		align-items: flex-start;
		gap: 14px;
		padding: 12px;
		border-radius: 10px;
		color: var(--blanc);
		text-decoration: none;
		transition: background-color var(--t) var(--ease);
	}
	.md-sub a:hover { background: rgba(255, 255, 255, 0.07); color: var(--blanc); }
	.md-sub a strong { display: block; font-size: 15px; }
	.md-sub a small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted-dark); }
	.md-sub__icon {
		flex: none;
		display: grid;
		place-items: center;
		width: 40px; height: 40px;
		border-radius: 10px;
		background: var(--vert-profond);
		color: var(--vert-clair);
		transition: transform var(--t) var(--ease);
	}
	.md-sub a:hover .md-sub__icon { transform: scale(1.08); }
	.md-sub .md-sub__all { justify-content: center; align-items: center; gap: 8px; margin-top: 4px; padding: 12px; border-top: 1px solid var(--line-dark); border-radius: 0 0 10px 10px; color: var(--vert-clair); font-weight: 600; font-size: 14px; }
}

@media (min-width: 1280px) {
	.md-header__phone { display: inline-flex; }
}

/* Bouton d'appel / WhatsApp flottant, mobile (brief). */
.md-fab {
	position: fixed;
	right: 16px; bottom: 16px;
	z-index: 90;
	display: grid;
	gap: 10px;
	justify-items: end;
}
.md-fab a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 56px;
	height: 56px;
	padding: 0 18px;
	border-radius: var(--pill);
	background: var(--vert-foret);
	color: var(--blanc);
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.md-fab a:hover { transform: scale(1.08); color: var(--blanc); background: var(--vert-foret-hover); }
.md-fab a:active { transform: scale(0.98); }
.md-fab a.md-fab__phone { width: 56px; padding: 0; background: var(--noir); color: var(--blanc); border: 1px solid rgba(255, 255, 255, 0.25); box-sizing: border-box; }
.md-fab a.md-fab__phone:hover { background: var(--anthracite); color: var(--blanc); }
.md-fab a.md-fab__devis { background: var(--vert-logo); color: var(--noir); }
.md-fab a.md-fab__devis:hover { background: var(--vert-logo-hover); color: var(--noir); }
/* WhatsApp : pastille verte WhatsApp avec libellé, visible aussi sur ordinateur
   (retour client du 2026-10-20). Pas d'animation (retour d'Alex, même jour). */
/* Fond blanc + logo vert WhatsApp, comme le bouton du bandeau : le vert
   WhatsApp en aplat jurait avec le vert du logo (retour du 2026-10-21). */
.md-fab a.md-fab__whatsapp { height: 60px; padding: 0 22px 0 18px; background: var(--blanc); color: var(--noir); font-size: 17px; box-shadow: 0 8px 24px rgba(17, 21, 18, 0.22), 0 0 0 1px var(--line); }
.md-fab a.md-fab__whatsapp .md-icon { color: var(--whatsapp); }
.md-fab a.md-fab__whatsapp:hover { background: var(--sable); color: var(--noir); }
@media (min-width: 1024px) {
	.md-fab { right: 24px; bottom: 24px; }
	.md-fab a.md-fab__phone, .md-fab a.md-fab__devis { display: none; }
}
body.md-nav-open .md-fab { display: none; }
/* Masqués sur l'accroche, apparaissent au premier défilement (motion.js). */
.md-js .md-fab { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms; }
.md-js .md-fab.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s; }

/* ==========================================================================
   Accroche accueil, plein écran, zoom lent Ken Burns (brief)
   ========================================================================== */

.md-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 48px) 0 72px;
	overflow: hidden;
	background: var(--noir);
	color: var(--blanc);
	isolation: isolate;
}
.md-hero__media { position: absolute; inset: 0; z-index: -2; }
.md-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.md-kenburns img { animation: md-kenburns 12s var(--ease) forwards; transform-origin: 60% 40%; }
@keyframes md-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.md-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(17, 21, 18, 0.92) 0%, rgba(17, 21, 18, 0.45) 45%, rgba(17, 21, 18, 0.25) 100%),
		linear-gradient(to right, rgba(17, 21, 18, 0.55), transparent 70%);
}
.md-hero__content { max-width: 780px; }
.md-hero .md-h1 { margin-bottom: 20px; }
.md-hero .md-lead { color: rgba(255, 255, 255, 0.88); margin: 0 0 32px; }
.md-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
}
.md-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.md-hero__meta .md-icon { color: var(--vert-clair); }
.md-hero__scroll {
	position: absolute;
	right: var(--gutter);
	bottom: 32px;
	display: none;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	writing-mode: vertical-rl;
}
.md-hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--vert-clair), transparent); animation: md-scrollcue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes md-scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1024px) {
	.md-hero { padding-bottom: 96px; }
	.md-hero__scroll { display: inline-flex; }
}

/* ---------- Accroche des pages internes ---------- */

.md-page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 62vh;
	padding: calc(var(--header-h) + 64px) 0 56px;
	overflow: hidden;
	background: var(--noir);
	color: var(--blanc);
	isolation: isolate;
}
.md-page-hero--short { min-height: 0; padding-bottom: 48px; }
.md-page-hero__media { position: absolute; inset: 0; z-index: -2; }
.md-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.md-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(17, 21, 18, 0.9) 5%, rgba(17, 21, 18, 0.5) 55%, rgba(17, 21, 18, 0.35));
}
.md-page-hero--plain::after { background: none; }
.md-page-hero--plain { background: var(--vert-profond); }
.md-page-hero__content { max-width: 820px; }
.md-page-hero .md-lead { color: rgba(255, 255, 255, 0.86); margin: 20px 0 0; }
.md-page-hero .md-actions { margin-top: 28px; }
@media (min-width: 1024px) { .md-page-hero { min-height: 70vh; padding-bottom: 80px; } .md-page-hero--short { min-height: 0; padding-bottom: 64px; } }

/* ---------- Fil d'Ariane ---------- */

.md-breadcrumb { background: var(--sable); font-size: 14px; }
.md-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 14px 0; list-style: none; }
.md-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.md-breadcrumb a { color: var(--anthracite); text-decoration: none; font-weight: 600; }
.md-breadcrumb a:hover { color: var(--vert-foret); text-decoration: underline; }
.md-breadcrumb .md-icon { color: var(--muted); }
.md-breadcrumb [aria-current] { color: var(--muted); }

/* ==========================================================================
   Bandeau de confiance
   ========================================================================== */

.md-trust { background: var(--vert-profond); color: var(--blanc); padding: 40px 0; }
.md-trust__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.md-trust__value {
	display: block;
	font-family: var(--font-heading);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 600;
	line-height: 1;
	color: var(--vert-clair);
	font-variant-numeric: tabular-nums;
}
.md-trust__label { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--muted-dark); }
@media (min-width: 768px) {
	.md-trust { padding: 56px 0; }
	.md-trust__list { grid-template-columns: repeat(var(--cols, 4), 1fr); }
	.md-trust__list > li + li { border-left: 1px solid var(--line-dark); padding-left: 24px; }
}

/* ==========================================================================
   Jardin interactif (pièce maîtresse de l'accueil)
   Pleine largeur. Survol : la zone s'éclaire et son liseré brille, sans
   zoom. Clic : la caméra (transform de .md-garden__stage) zoome sur la
   zone et le panneau de la prestation s'ouvre (assets/js/main.js).
   ========================================================================== */

.md-garden { position: relative; --panel-w: min(420px, 38vw); --cam: 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.md-garden__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #0b0f0c;
}
@media (min-width: 768px) and (max-width: 1023px) {
	.md-garden__frame { aspect-ratio: 16 / 10; }
	.md-garden__panel { max-height: max(45vh, calc(100vh - var(--header-h) - 62.5vw - 12px)) !important; }
}
@media (min-width: 1024px) {
	.md-section--garden { padding-bottom: 0; }
	/* Toujours entière à l'écran sous l'en-tête (et la barre d'admin WP) :
	   main.js l'y aimante au clic et quand on s'arrête de défiler tout près. */
	.md-garden__frame { aspect-ratio: auto; height: clamp(440px, calc(100vh - var(--header-h)), 960px); }
	body.admin-bar .md-garden__frame { height: clamp(440px, calc(100vh - var(--header-h) - 32px), 960px); }
	@supports (height: 100svh) {
		.md-garden__frame { height: clamp(440px, calc(100svh - var(--header-h)), 960px); }
		body.admin-bar .md-garden__frame { height: clamp(440px, calc(100svh - var(--header-h) - 32px), 960px); }
	}
}
.md-garden__stage {
	position: absolute;
	inset: 0;
	--k: 1;
	transform-origin: 0 0;
	transition: transform var(--cam);
}
.md-garden__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92) saturate(1.05); transition: filter 500ms var(--ease); }
.md-garden.is-hover .md-garden__img { filter: brightness(0.7) saturate(0.95); }
.md-garden.is-open .md-garden__img { filter: brightness(0.42) saturate(0.7); }
.md-garden__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.md-garden__zone { cursor: pointer; outline: none; }
.md-garden__lit { opacity: 0; transition: opacity 400ms var(--ease), filter 400ms var(--ease); }
.md-garden__zone.is-hover .md-garden__lit,
.md-garden__zone.is-active .md-garden__lit { opacity: 1; filter: brightness(1.12) saturate(1.12); }
.md-garden__shape {
	fill: transparent;
	stroke: rgba(236, 246, 226, 0);
	stroke-width: 2;
	stroke-linejoin: round;
	transition: stroke 300ms var(--ease);
}
.md-garden__zone.is-hover .md-garden__shape { stroke: rgba(236, 246, 226, 0.95); filter: drop-shadow(0 0 6px rgba(190, 230, 150, 0.9)); }
.md-garden__zone.is-active .md-garden__shape { stroke: var(--vert-clair); filter: drop-shadow(0 0 8px rgba(136, 180, 38, 0.95)); }
.md-garden__zone:focus-visible .md-garden__shape { stroke: var(--blanc); stroke-width: 3; }

/* Points pulsants : placés par le JS dans le repère de la photo, et
   contre-zoomés (--k) pour garder leur taille quand la caméra avance. */
.md-garden__pin {
	position: absolute;
	left: 0; top: 0;
	display: block;
	width: 0; height: 0;
	visibility: hidden;
	pointer-events: none;
	transform-origin: 0 0;
	transform: translate(var(--px, 0), var(--py, 0)) scale(calc(1 / var(--k)));
	transition: transform var(--cam), opacity 300ms var(--ease);
}
.md-garden.is-placed .md-garden__pin { visibility: visible; }
.md-garden.is-open .md-garden__pin { opacity: 0; }
.md-garden__dot {
	position: absolute;
	width: 16px; height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--vert-clair);
	box-shadow: 0 0 0 4px rgba(17, 21, 18, 0.35);
	transition: transform 300ms var(--ease);
}
.md-garden__dot::after {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px solid var(--vert-clair);
	animation: md-pulse 2.2s var(--ease) infinite;
	animation-delay: var(--d, 0s);
}
@keyframes md-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.md-garden__pin.is-hover .md-garden__dot { transform: scale(1.25); }
.md-garden__label {
	position: absolute;
	left: 0; bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--pill);
	background: var(--blanc);
	color: var(--noir);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.md-garden__label .md-icon { color: var(--vert-foret); }
.md-garden__pin.is-hover .md-garden__label { opacity: 1; transform: translate(-50%, 0); }

/* Panneau de la prestation */
.md-garden__panel {
	position: absolute;
	top: 24px; right: 24px; bottom: 24px;
	z-index: 4;
	width: var(--panel-w);
	box-sizing: border-box;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 32px 28px 24px;
	border-radius: var(--radius);
	background: rgba(250, 249, 245, 0.95);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--anthracite);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	transform: translateX(calc(100% + 40px));
	visibility: hidden;
	transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 550ms;
}
.md-garden__panel.is-open { transform: none; visibility: visible; transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
/* Zone dans la moitié droite de la photo : le panneau s'ouvre à gauche. */
@media (min-width: 1024px) {
	.md-garden.is-panel-left .md-garden__panel { right: auto; left: 24px; transform: translateX(calc(-100% - 40px)); }
	.md-garden.is-panel-left .md-garden__panel.is-open { transform: none; }
}
@media (max-width: 1023px) {
	.md-garden__panel {
		position: fixed;
		top: auto; left: 0; right: 0; bottom: 0;
		z-index: 130;
		width: auto;
		/* Hauteur libre sous la photo (4:3, puis 16:10), en-tête déduit. */
		max-height: max(45vh, calc(100vh - var(--header-h) - 75vw - 12px));
		padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
		background: var(--blanc);
		transform: translateY(105%);
	}
}
.md-garden__close {
	position: absolute;
	top: 14px; right: 14px;
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 21, 18, 0.07);
	color: inherit;
	cursor: pointer;
	transition: background-color var(--t) var(--ease);
}
.md-garden__close:hover { background: rgba(17, 21, 18, 0.14); }
.md-garden__detail { animation: md-rise 400ms var(--ease); }
@keyframes md-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.md-garden__detail-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--vert-profond); color: var(--vert-clair); }
.md-garden__detail-title { margin: 0 48px 12px 0; font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--noir); outline: none; }
.md-garden__detail-lead { margin: 0 0 20px; color: var(--muted); }
.md-garden__detail-list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; }
.md-garden__detail-list li { display: flex; gap: 10px; align-items: flex-start; }
.md-garden__detail-list .md-icon { flex: none; margin-top: 3px; color: var(--vert-foret); }
.md-garden__detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.md-garden__detail-actions .md-btn { flex: 1 1 auto; }
.md-garden__detail-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.md-garden__detail-nav button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: 600 14px var(--font-body); text-align: left; cursor: pointer; }
.md-garden__detail-nav button:hover { color: var(--vert-foret); }
/* Tiroir mobile : la croix reste en haut et les deux boutons restent en bas
   pendant qu'on fait défiler le contenu du tiroir. */
@media (max-width: 1023px) {
	.md-garden__panel { padding-top: 16px; }
	.md-garden__close { position: sticky; top: 0; z-index: 2; float: right; margin-right: -6px; background: #eef0ec; }
	.md-garden__detail-icon { display: none; }
	.md-garden__detail-title { margin-top: 6px; }
	.md-garden__detail-actions {
		position: sticky;
		bottom: calc(-24px - env(safe-area-inset-bottom, 0px));
		z-index: 1;
		margin: 0 calc(var(--gutter) * -1);
		padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
		background: var(--blanc);
		box-shadow: 0 -10px 20px rgba(255, 255, 255, 0.9);
	}
	.md-garden__detail-actions .md-btn { min-height: 46px; padding: 12px 18px; font-size: 15px; }
}

/* Liste des prestations : sous la photo sur mobile, barre flottante sur grand écran */
.md-garden__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr; /* toutes les cartes à la hauteur de la plus haute */
	gap: 8px;
	margin: 16px var(--gutter) 0;
	padding: 0;
	list-style: none;
}
.md-garden__list li { display: flex; }
.md-garden__list a {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	line-height: 1.25;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--blanc);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--t) var(--ease);
}
.md-garden__list a:hover, .md-garden__list a.is-hover, .md-garden__list a.is-active { background: var(--vert-foret); color: var(--blanc); }
.md-garden__list .md-icon { color: var(--vert-clair); flex: none; }
.md-garden__list a:hover .md-icon, .md-garden__list a.is-hover .md-icon, .md-garden__list a.is-active .md-icon { color: var(--blanc); }
@media (min-width: 768px) { .md-garden__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
	.md-garden__list {
		position: absolute;
		left: 50%; bottom: 24px;
		z-index: 3;
		display: flex;
		gap: 4px;
		max-width: calc(100% - 48px);
		margin: 0;
		padding: 6px;
		border-radius: var(--pill);
		background: rgba(12, 17, 14, 0.62);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		transform: translateX(-50%);
		transition: opacity 300ms var(--ease);
	}
	.md-garden__list a { min-height: 44px; padding: 10px 16px; border-radius: var(--pill); background: transparent; font-size: 14px; white-space: nowrap; }
	.md-garden.is-open .md-garden__list { opacity: 0; pointer-events: none; }
}

/* ==========================================================================
   Cartes service (brief : photo + icône + titre + 1 ligne + flèche)
   ========================================================================== */

.md-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .md-grid--2, .md-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .md-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.md-scard { height: 100%; }
.md-scard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--blanc);
	color: var(--anthracite);
	text-decoration: none;
	transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.md-scard__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--anthracite); }
.md-scard__media { aspect-ratio: 4 / 3; }
.md-scard__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 24px; }
.md-scard__title { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--noir); }
.md-scard__text { margin: 8px 0 20px; font-size: 16px; color: var(--muted); }
.md-scard__more { margin-top: auto; }
.md-section--dark .md-scard__link, .md-section--deep .md-scard__link { background: #1a201b; color: var(--blanc); }
.md-section--dark .md-scard__title, .md-section--deep .md-scard__title { color: var(--blanc); }
.md-section--dark .md-scard__text, .md-section--deep .md-scard__text { color: var(--muted-dark); }

/* Première carte en vedette sur grand écran : grille plus éditoriale. */
/* 5 cartes (page prestation) : la dernière rangée est centrée, sans trou. */
@media (min-width: 768px) {
	.md-services-grid { display: flex; flex-wrap: wrap; justify-content: center; }
	.md-services-grid > .md-scard { width: calc(50% - 12px); }
}
@media (min-width: 1024px) {
	.md-services-grid > .md-scard { width: calc((100% - 56px) / 3); }
}

/* ==========================================================================
   Cartes réalisation
   ========================================================================== */

.md-rcard__link { display: block; color: var(--anthracite); text-decoration: none; }
.md-rcard__link:hover { color: var(--anthracite); }
.md-rcard__media { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sable); }
.md-rcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--vert-clair); }
.md-rcard__badge { position: absolute; left: 14px; bottom: 14px; }
.md-rcard__body { padding: 16px 2px 0; }
.md-rcard__title { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--noir); }
.md-rcard__title span {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size 400ms var(--ease);
}
.md-rcard__link:hover .md-rcard__title span, .md-rcard__link:focus-visible .md-rcard__title span { background-size: 100% 2px; }
.md-rcard__service { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.md-section--dark .md-rcard__title, .md-section--deep .md-rcard__title { color: var(--blanc); }
.md-section--dark .md-rcard__service, .md-section--deep .md-rcard__service { color: var(--muted-dark); }

.md-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.md-filters a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--line);
	border-radius: var(--pill);
	color: var(--anthracite);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.md-filters a:hover { transform: scale(1.05); border-color: var(--vert-foret); color: var(--vert-foret); }
.md-filters a[aria-current="true"] { background: var(--vert-foret); border-color: var(--vert-foret); color: var(--blanc); }
.md-filters__label { width: 100%; margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.md-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 0 auto;
	padding: 48px 24px;
	border: 1px dashed rgba(86, 122, 20, 0.35);
	border-radius: var(--radius);
	text-align: center;
	color: var(--muted);
}
.md-empty .md-icon { color: var(--vert-foret); }
.md-empty p { margin: 0; }

/* ==========================================================================
   Avis, carrousel (fond vert profond, brief)
   ========================================================================== */

.md-carousel { position: relative; }
.md-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 88%;
	gap: 16px;
	margin: 0;
	padding: 4px 4px 12px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.md-carousel__track::-webkit-scrollbar { display: none; }
.md-carousel__track > li { scroll-snap-align: start; display: flex; }
@media (min-width: 768px) { .md-carousel__track { grid-auto-columns: calc(50% - 10px); gap: 20px; } }
@media (min-width: 1024px) { .md-carousel__track { grid-auto-columns: calc(33.333% - 14px); } }
.md-carousel__nav { display: flex; gap: 10px; }
.md-carousel__btn {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	background: transparent;
	color: var(--blanc);
	cursor: pointer;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.md-carousel__btn:hover { transform: scale(1.08); background: var(--vert-foret); }
.md-carousel__btn:disabled { opacity: 0.35; cursor: default; transform: none; background: transparent; }

.md-avis {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 28px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line-dark);
	transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}
.md-avis:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.09); }
.md-avis__text { margin: 0; font-size: 17px; line-height: 1.6; }
.md-avis__text p { margin: 0 0 0.8em; }
.md-avis__text p:last-child { margin: 0; }
.md-avis__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; font-size: 15px; }
.md-avis__meta span { color: var(--muted-dark); }
.md-avis__meta .md-link-arrow { width: 100%; font-size: 14px; }
.md-section--light .md-avis, .md-section--sand .md-avis { background: var(--blanc); border-color: var(--line); }
.md-section--sand .md-avis__meta span, .md-section--light .md-avis__meta span { color: var(--muted); }

.md-stars { display: inline-flex; gap: 2px; color: rgba(217, 164, 65, 0.3); }
.md-stars__star.is-on { color: var(--or-doux); }
.md-stars__star.is-on svg { fill: currentColor; }

/* ==========================================================================
   Blocs éditoriaux : à propos en bref, split photo/texte, étapes, FAQ
   ========================================================================== */

.md-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
	.md-split { grid-template-columns: 1fr 1fr; gap: 72px; }
	.md-split--reverse > :first-child { order: 2; }
}
.md-split__media { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.md-split__media--wide { aspect-ratio: 4 / 3; }
.md-split__media-2 {
	position: absolute;
	right: -12px; bottom: -28px;
	width: 46%;
	aspect-ratio: 1;
	border-radius: var(--radius);
	border: 6px solid var(--blanc);
	box-shadow: var(--shadow);
}
.md-section--sand .md-split__media-2 { border-color: var(--sable); }
@media (max-width: 767px) { .md-split__media-2 { display: none; } }

.md-checklist { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.md-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.md-checklist .md-icon { flex: none; margin-top: 3px; padding: 4px; border-radius: 50%; background: var(--vert-clair); color: var(--vert-profond); box-sizing: content-box; }
.md-section--dark .md-checklist .md-icon, .md-section--deep .md-checklist .md-icon { background: var(--vert-foret); color: var(--blanc); }

/* Page /services/ : une ligne photo + texte par prestation. */
.md-offers { display: grid; gap: 64px; }
@media (min-width: 1024px) { .md-offers { gap: 96px; } }
.md-offer .md-split__media { display: block; overflow: hidden; }
.md-offer__title { margin: 0 0 12px; }
.md-offer__title a { color: inherit; text-decoration: none; }
.md-offer__title a:hover { color: var(--vert-foret); }
.md-offer .md-lead { margin: 0; }
@media (min-width: 768px) { .md-offer__list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.md-offer .md-actions { align-items: center; }

.md-prestations { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .md-prestations { grid-template-columns: 1fr 1fr; } }
.md-prestations li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--sable);
	font-weight: 600;
	font-size: 16px;
	transition: transform 250ms var(--ease), background-color 250ms var(--ease);
}
.md-prestations li:hover { transform: translateX(4px); background: #ebe8dd; }
.md-prestations .md-icon { flex: none; color: var(--vert-foret); }

.md-service-intro { display: grid; gap: 40px; }
@media (min-width: 1024px) { .md-service-intro { grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; } }
.md-service-intro__aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .md-service-intro__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.md-service-intro__photo { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.md-aside-card { padding: 24px; border-radius: var(--radius); background: var(--noir); color: var(--blanc); }
.md-aside-card p { margin: 8px 0 20px; color: var(--muted-dark); font-size: 16px; }
.md-aside-card .md-actions { flex-direction: column; }
.md-aside-card .md-btn { width: 100%; }

.md-sections { display: grid; gap: 32px; margin-top: 56px; }
@media (min-width: 1024px) { .md-sections { grid-template-columns: 1fr 1fr; gap: 48px; } }
.md-sections article { padding-top: 24px; border-top: 2px solid var(--vert-clair); }
.md-sections h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 14px; color: var(--noir); }
.md-sections p { margin: 0; }

/* Étapes numérotées : vraie liste <ol> (Playbook §6). */
.md-steps { counter-reset: md-step; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .md-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .md-steps { grid-template-columns: repeat(4, 1fr); } }
.md-steps li {
	counter-increment: md-step;
	position: relative;
	padding: 28px 24px 24px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line-dark);
	transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.md-steps li:hover { transform: translateY(-4px); border-color: var(--vert-clair); }
.md-steps li::before {
	content: counter(md-step, decimal-leading-zero);
	display: block;
	margin-bottom: 16px;
	font-family: var(--font-heading);
	font-size: 44px;
	font-weight: 600;
	font-style: italic;
	line-height: 1;
	color: var(--vert-clair);
}
.md-steps h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.md-steps p { margin: 0; font-size: 16px; color: var(--muted-dark); }

/* Galerie de prestation : mosaïque, zoom au survol, agrandissement au clic. */
.md-gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.md-gallery__item { position: relative; border-radius: var(--radius); aspect-ratio: 1; display: block; }
.md-gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
	.md-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
	.md-gallery__item { aspect-ratio: auto; }
	.md-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.md-gallery__item:nth-child(2) { grid-column: span 2; }
}
@media (min-width: 1024px) { .md-gallery { grid-auto-rows: 260px; } }
.md-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 40%);
	pointer-events: none;
}

/* FAQ : <details> natif (lisible sans JS, balisé FAQPage). */
.md-faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.md-faq details { border-radius: var(--radius); background: var(--blanc); border: 1px solid var(--line); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.md-faq details[open] { border-color: var(--vert-clair); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.md-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.4;
	color: var(--noir);
	cursor: pointer;
	list-style: none;
}
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary .md-icon { flex: none; color: var(--vert-foret); transition: transform 300ms var(--ease); }
.md-faq details[open] summary .md-icon { transform: rotate(180deg); }
.md-faq__answer { padding: 0 24px 22px; color: var(--anthracite); }
.md-faq__answer p { margin: 0; }

.md-related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Réalisation (article)
   ========================================================================== */

.md-fiche {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}
.md-fiche li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; background: var(--sable); }
.md-fiche .md-icon { flex: none; color: var(--vert-foret); }
.md-fiche small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.md-fiche strong { display: block; font-size: 16px; color: var(--noir); }

.md-article-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .md-article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } .md-article-layout > aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.md-article-content > * { max-width: 70ch; }
.md-article-content > .wp-block-gallery, .md-article-content > .wp-block-image, .md-article-content > figure { max-width: none; }
.md-article-content p { margin: 0 0 1.1em; }
.md-article-content h2 { font-family: var(--font-heading); font-size: clamp(26px, 3vw, 32px); font-weight: 600; margin: 1.5em 0 0.6em; color: var(--noir); }
.md-article-content h3 { font-size: 20px; font-weight: 600; margin: 1.4em 0 0.5em; }
.md-article-content img { border-radius: var(--radius); }
.md-article-content .wp-block-gallery { gap: 12px; margin: 32px 0; }
.md-article-content .wp-block-gallery .wp-block-image { overflow: hidden; border-radius: var(--radius); }
.md-article-content .wp-block-gallery img { transition: transform 700ms var(--ease); }
.md-article-content .wp-block-gallery .wp-block-image:hover img { transform: scale(1.06); }

/* Curseur avant / après. */
.md-ba {
	--pos: 50%;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--noir);
	user-select: none;
	touch-action: pan-y;
}
.md-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.md-ba__after { clip-path: inset(0 0 0 var(--pos)); }
.md-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.md-ba__handle {
	position: absolute;
	top: 0; bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: var(--blanc);
	pointer-events: none;
	z-index: 2;
}
.md-ba__handle span {
	position: absolute;
	top: 50%; left: 50%;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--blanc);
	color: var(--vert-profond);
	box-shadow: var(--shadow);
	transform: translate(-50%, -50%);
	transition: transform 200ms var(--ease);
}
.md-ba:hover .md-ba__handle span, .md-ba__range:focus-visible + .md-ba__handle span { transform: translate(-50%, -50%) scale(1.18); }
.md-ba__range:focus-visible + .md-ba__handle span { outline: 3px solid var(--vert-clair); outline-offset: 2px; }
.md-ba__tag { position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: var(--pill); background: rgba(0, 0, 0, 0.55); color: var(--blanc); font-size: 13px; font-weight: 600; pointer-events: none; }
.md-ba__tag--before { left: 14px; }
.md-ba__tag--after { right: 14px; }

/* ==========================================================================
   Zone d'intervention
   ========================================================================== */

.md-communes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.md-communes li > a, .md-communes li > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 16px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.08);
	color: var(--blanc);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.md-communes--primary li > a, .md-communes--primary li > span { background: var(--vert-foret); }
.md-communes li > a:hover { transform: scale(1.05); background: var(--vert-clair); color: var(--vert-profond); }
.md-communes__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--vert-clair); color: var(--vert-profond); font-size: 12px; }
.md-section--light .md-communes li > a, .md-section--light .md-communes li > span, .md-section--sand .md-communes li > a, .md-section--sand .md-communes li > span { background: var(--blanc); color: var(--anthracite); border: 1px solid var(--line); }
.md-section--sand .md-communes--primary li > span, .md-section--sand .md-communes--primary li > a { background: var(--vert-foret); color: var(--blanc); border-color: var(--vert-foret); }
.md-zone__group + .md-zone__group { margin-top: 28px; }
.md-zone__group h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vert-clair); }
.md-section--sand .md-zone__group h3 { color: var(--vert-foret); }

.md-map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); filter: grayscale(0.3) contrast(1.05); }

/* ==========================================================================
   Bandeau d'appel à l'action (devis), fin de chaque page
   ========================================================================== */

.md-cta {
	position: relative;
	padding: 96px 0;
	overflow: hidden;
	background: var(--noir);
	color: var(--blanc);
	isolation: isolate;
	text-align: center;
}
.md-cta__media { position: absolute; inset: 0; z-index: -2; }
.md-cta__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.md-cta.is-visible .md-cta__media img { transform: scale(1); }
.md-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 21, 18, 0.62); }
.md-cta .md-h2 { max-width: 760px; margin: 0 auto 16px; }
.md-cta p { max-width: 620px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.86); }
.md-cta .md-actions { justify-content: center; }
.md-cta__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.md-cta__checks li { display: inline-flex; align-items: center; gap: 8px; }
.md-cta__checks .md-icon { color: var(--vert-clair); }
@media (min-width: 1024px) { .md-cta { padding: 140px 0; } }

/* ==========================================================================
   Formulaire de devis
   ========================================================================== */

.md-contact { display: grid; gap: 40px; }
@media (min-width: 1024px) { .md-contact { grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; } }
.md-form { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--blanc); box-shadow: 0 20px 50px rgba(17, 21, 18, 0.08); border: 1px solid var(--line); }
@media (min-width: 768px) { .md-form { padding: 40px; } }
.md-form__row { display: grid; gap: 18px; }
@media (min-width: 768px) { .md-form__row--2 { grid-template-columns: 1fr 1fr; } }
.md-field { display: grid; gap: 8px; }
.md-field label { font-size: 15px; font-weight: 600; color: var(--noir); }
.md-field label span { color: var(--vert-foret); }
.md-field input, .md-field select, .md-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid #cfd3cd;
	border-radius: var(--radius-field);
	background: var(--blanc);
	color: var(--anthracite);
	font-family: var(--font-body);
	font-size: 16px;
	box-sizing: border-box;
	transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.md-field textarea { min-height: 150px; resize: vertical; }
.md-field input:focus, .md-field select:focus, .md-field textarea:focus { outline: none; border-color: var(--vert-foret); box-shadow: 0 0 0 4px rgba(136, 180, 38, 0.35); }
.md-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.md-form__legal { margin: 0; font-size: 13px; color: var(--muted); }
.md-notice { padding: 16px 20px; border-radius: 12px; font-weight: 600; }
.md-notice--ok { background: #eef5dc; color: var(--vert-profond); }
.md-notice--error { background: #f8e6e1; color: #7a2a17; }

.md-coords { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.md-coords li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--sable); }
.md-coords .md-icon { flex: none; margin-top: 2px; color: var(--vert-foret); }
.md-coords small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.md-coords a, .md-coords strong { color: var(--noir); font-weight: 600; text-decoration: none; }
.md-coords a:hover { color: var(--vert-foret); text-decoration: underline; }
.md-coords li.md-coords__whatsapp { position: relative; background: var(--blanc); box-shadow: 0 0 0 1px var(--line); }
.md-coords li.md-coords__whatsapp .md-icon { color: var(--whatsapp); }
.md-coords li.md-coords__whatsapp a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte cliquable */
.md-coords li.md-coords__whatsapp a:hover { color: var(--noir); }

/* ==========================================================================
   Pages texte (légales)
   ========================================================================== */

.md-legal h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 600; margin: 48px 0 16px; color: var(--noir); }
.md-legal h2:first-child { margin-top: 0; }
.md-legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 24px; margin: 0; }
.md-legal dt { font-weight: 600; color: var(--noir); }
.md-legal dd { margin: 0; }
@media (max-width: 599px) { .md-legal dl { grid-template-columns: 1fr; } .md-legal dd { margin-bottom: 8px; } }
.md-credits { columns: 2 260px; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.md-credits li { break-inside: avoid; margin-bottom: 6px; }
.md-credits .md-credit { color: var(--anthracite); font-size: 15px; }

/* ==========================================================================
   Pied de page, fond vert profond (brief)
   ========================================================================== */

.md-footer { background: var(--vert-profond); color: var(--muted-dark); font-size: 15px; padding: 72px 0 0; }
.md-footer a { color: var(--blanc); text-decoration: none; }
.md-footer a:hover { color: var(--vert-clair); text-decoration: underline; }
.md-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .md-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .md-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; } }
.md-footer h2 { margin: 0 0 18px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vert-clair); }
.md-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.md-footer__brand p { max-width: 36ch; margin: 18px 0 24px; }
.md-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.md-footer__contact .md-icon { flex: none; margin-top: 3px; color: var(--vert-clair); }
.md-social { display: flex; gap: 10px; }
.md-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.md-social a:hover { transform: scale(1.1); background: var(--vert-foret); text-decoration: none; }
.md-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 56px;
	padding: 24px 0 32px;
	border-top: 1px solid var(--line-dark);
	font-size: 14px;
}
.md-footer__bottom p { margin: 0; }
@media (max-width: 1023px) { .md-footer { padding-bottom: 88px; } }

/* ---------- Visionneuse photo ---------- */

.md-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(10, 12, 10, 0.94);
}
.md-lightbox[hidden] { display: none; }
.md-lightbox img { max-width: min(1400px, 100%); max-height: 84vh; width: auto; border-radius: 10px; animation: md-pop 350ms var(--ease); }
@keyframes md-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.md-lightbox__close {
	position: absolute;
	top: 16px; right: 16px;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--blanc);
	cursor: pointer;
	transition: transform 200ms var(--ease);
}
.md-lightbox__close:hover { transform: scale(1.08); }
.md-lightbox__caption { margin: 12px 0 0; color: var(--muted-dark); font-size: 14px; text-align: center; }

/* ==========================================================================
   Mouvement : apparition au défilement (brief : +24 px, fondu 500 ms,
   décalage 80 ms). Uniquement quand le JS tourne (classe md-js posée en
   <head>) : sans JS, rien n'est masqué.
   ========================================================================== */

.md-js .md-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 500ms var(--ease), transform 500ms var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}
.md-js .md-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.md-js .md-reveal { opacity: 1; transform: none; }
	.md-btn:hover, .md-fab a:hover { transform: none; }
	.md-zoom:hover img, a:hover .md-zoom img { transform: none; }
}

/* Crédit de l'accroche à gauche : le coin droit accueille l'invite de défilement. */
.md-hero .md-credit--corner { right: auto; left: var(--gutter); }

/* ==========================================================================
   Article de réalisation : fiche liée, citation, conseil, photos
   ========================================================================== */

.md-fiche a { display: block; font-size: 16px; font-weight: 600; color: var(--vert-foret); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.md-fiche a:hover { color: var(--vert-profond); }
.md-fiche__wide { grid-column: 1 / -1; }
/* Plusieurs prestations : liens à la suite, séparés par des virgules (pas un lien par ligne). */
.md-fiche__links a { display: inline; }
.md-article-h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 56px 0 20px; color: var(--noir); }
.md-article-h2 em { font-style: italic; color: var(--vert-foret); }

.md-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.md-photo-grid a { display: block; aspect-ratio: 1; border-radius: 12px; }

.md-quote {
	position: relative;
	margin: 56px 0 0;
	padding: 36px 32px 28px;
	border-radius: var(--radius);
	background: var(--vert-profond);
	color: var(--blanc);
}
.md-quote .md-icon { position: absolute; top: -18px; left: 28px; padding: 8px; border-radius: 50%; background: var(--vert-clair); color: var(--vert-profond); box-sizing: content-box; }
.md-quote blockquote { margin: 0; }
.md-quote blockquote p { margin: 0; font-family: var(--font-heading); font-size: clamp(20px, 2.2vw, 24px); font-style: italic; line-height: 1.45; }
.md-quote figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--vert-clair); }

.md-tip {
	margin: 32px 0 0;
	padding: 24px 28px;
	border-left: 4px solid var(--vert-clair);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--sable);
}
.md-tip .md-label { margin-bottom: 8px; }
.md-tip p:last-child { margin: 0; }

.md-avis-wrap { padding: 8px; border-radius: var(--radius); background: var(--vert-profond); color: var(--blanc); }
.md-related--stack { flex-direction: column; align-items: flex-start; }

/* Avis Google : note globale et mention de la source. */
.md-avis-score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 0; color: var(--muted-dark); font-size: 15px; }
.md-avis-score strong { color: var(--blanc); font-size: 18px; }
.md-avis__source { padding: 2px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.md-section--light .md-avis__source, .md-section--sand .md-avis__source { background: var(--sable); color: var(--anthracite); }

/* ==========================================================================
   Catalogue de plantes (WooCommerce, inc/catalogue.php). Les feuilles de
   style de WooCommerce ne sont pas chargées : tout l'habillage est ici.
   ========================================================================== */

.md-btn--sm { min-height: 42px; padding: 10px 18px; font-size: 15px; gap: 8px; }

/* Lien « Ma réservation » de l'en-tête : absent tant qu'elle est vide. */
.md-resa {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.12);
	color: var(--blanc);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.md-resa:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.2); color: var(--blanc); }
.md-resa.is-empty { display: none; }
.md-resa__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--pill);
	background: var(--vert-logo);
	color: var(--noir);
	font-size: 13px;
	box-sizing: border-box;
}
.md-resa.is-bump { animation: md-pop 400ms var(--ease); }
/* Icône + compteur seulement (libellé pour les lecteurs d'écran) : l'en-tête
   tient sur une ligne même avec téléphone et devis. */
.md-resa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-nav__list > li > a, .md-header__phone, .md-header__cta { white-space: nowrap; }

.md-filters__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--sable); color: var(--anthracite); font-size: 12px; box-sizing: border-box; }
.md-filters a[aria-current="true"] .md-filters__count { background: rgba(255, 255, 255, 0.2); color: var(--blanc); }
.md-section--sand .md-filters a { background: var(--blanc); }
.md-section--sand .md-filters a[aria-current="true"] { background: var(--vert-foret); }

/* Grille : 2 colonnes sur mobile (format boutique), 3 puis 4. */
.md-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 768px) { .md-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1024px) { .md-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; } }

.md-pcard { display: flex; flex-direction: column; min-width: 0; }
.md-pcard[hidden] { display: none; }
.md-pcard__link { display: block; color: var(--anthracite); text-decoration: none; }
.md-pcard__link:hover { color: var(--anthracite); }
.md-pcard__media { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sable); }
.md-section--sand .md-pcard__media { background: var(--blanc); }
.md-pcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--vert-foret); }
.md-pcard__badge { position: absolute; left: 10px; top: 10px; }
.md-pcard__body { padding: 14px 2px 0; }
.md-pcard__title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--noir); }
.md-pcard__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 400ms var(--ease); }
.md-pcard__link:hover .md-pcard__title span, .md-pcard__link:focus-visible .md-pcard__title span { background-size: 100% 2px; }
.md-pcard__format { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.md-pcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; padding: 10px 2px 0; }
.md-pcard__price { margin: 0; font-size: 19px; font-weight: 600; color: var(--noir); }
.md-pcard__avail { width: 100%; margin: 0; }
.md-pcard__btn { width: 100%; margin-top: 10px; }
@media (min-width: 1024px) { .md-pcard__title { font-size: 19px; } }

/* « Disponible selon arrivage » : point vert ; rupture : point gris. */
.md-avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.md-avail::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vert-logo); }
.md-avail--out::before { background: #b9bdb7; }
.md-fiche .md-avail { font-size: 16px; color: var(--noir); }

.md-catalogue__intro { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.md-wc-notices:empty { display: none; }
.md-wc-notices { margin-bottom: 24px; }

@media (min-width: 1024px) { .md-steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Fiche plante ---------- */

.md-product { display: grid; gap: 32px; }
@media (min-width: 1024px) { .md-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: start; } }
.md-product__photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sable); }
.md-product__photo img { width: 100%; height: 100%; object-fit: cover; }
.md-buy { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .md-buy { position: sticky; top: calc(var(--header-h) + 24px); } }
.md-buy > .md-badge { justify-self: start; text-decoration: none; }
.md-buy__price { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(32px, 4vw, 42px); line-height: 1; color: var(--noir); }
.md-buy__fiche { margin: 0; }
.md-buy__short p { margin: 0 0 0.8em; }
.md-buy__short p:last-child { margin: 0; }
.md-buy__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--sable); }
.md-buy__qty { width: 110px; }
.md-buy__qty input { text-align: center; }
.md-buy__form .md-btn { flex: 1 1 220px; }

/* Choix de la taille (plantes à plusieurs tailles). */
.md-sizes { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.md-sizes legend { margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; color: var(--noir); }
.md-sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.md-size {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 96px;
	min-height: 56px;
	padding: 8px 16px;
	border: 1.5px solid #cfd3cd;
	border-radius: 12px;
	background: var(--blanc);
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform 200ms var(--ease);
}
.md-size input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.md-size__label { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--noir); }
.md-size__price { font-size: 14px; color: var(--muted); }
.md-size:hover { border-color: var(--vert-foret); transform: translateY(-1px); }
.md-size:has(input:checked) { border-color: var(--vert-foret); background: #eef5dc; box-shadow: inset 0 0 0 1px var(--vert-foret); }
.md-size:has(input:checked) .md-size__price { color: var(--vert-profond); }
.md-size:has(input:focus-visible) { outline: 3px solid var(--vert-clair); outline-offset: 2px; }
.md-size.is-out { cursor: default; opacity: 0.55; background: transparent; transform: none; border-style: dashed; }
.md-size.is-out input { cursor: default; }
.md-size.is-out .md-size__label { text-decoration: line-through; }
.md-price__from { font-size: 0.75em; font-weight: 400; color: var(--muted); }
.md-buy__checks { margin: 0; }
.md-product__desc { margin-top: 24px; }
.md-product__related { margin-top: 80px; }

/* Message après un ajout (assets/js/main.js). */
.md-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 250;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 14px 20px;
	border-radius: var(--radius);
	background: var(--noir);
	color: var(--blanc);
	box-shadow: var(--shadow);
	font-size: 15px;
	box-sizing: border-box;
	transform: translate(-50%, 24px);
	opacity: 0;
	transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.md-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.md-toast a { color: var(--vert-clair); font-weight: 600; }
.md-toast a:hover { color: var(--blanc); }
.md-toast--error { background: #7a2a17; }
.md-btn.is-loading { opacity: 0.7; pointer-events: none; }
@media (max-width: 1023px) { .md-toast { bottom: 96px; } }

/* ---------- Ma réservation, validation, confirmation (gabarits classiques WooCommerce) ---------- */

.md-resa-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--anthracite); }
.md-resa-checks li { display: inline-flex; align-items: center; gap: 8px; }
.md-resa-checks .md-icon { color: var(--vert-foret); }

/* Messages WooCommerce (ajout, erreurs, réservation vide). */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 20px;
	padding: 16px 20px;
	border-radius: 12px;
	background: #eef5dc;
	color: var(--vert-profond);
	font-weight: 600;
	list-style: none;
}
.woocommerce-error { display: block; background: #f8e6e1; color: #7a2a17; }
/* Bandeaux de WooCommerce sur thème de blocs (gabarits block-notices). */
.wc-block-components-notice-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px 20px;
	border-radius: 12px;
	background: #eef5dc;
	color: var(--vert-profond);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}
.wc-block-components-notice-banner > svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.wc-block-components-notice-banner.is-error { background: #f8e6e1; color: #7a2a17; }
.wc-block-components-notice-banner.is-info, .wc-block-components-notice-banner.is-warning { background: var(--sable); color: var(--anthracite); }
.wc-block-components-notice-banner__content { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.wc-block-components-notice-banner__content > * { margin: 0; }
.wc-block-components-notice-banner__summary { width: 100%; }
.wc-block-components-notice-banner__content ul { width: 100%; margin: 0; padding-left: 1.1em; font-weight: 400; }
.wc-block-components-notice-banner__content a:not(.button) { color: inherit; }
.wc-block-components-notice-banner .button { order: 2; }
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message a.button, .woocommerce-info a.button { order: 2; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a { color: inherit; }

.md-wc .button, .md-wc .checkout-button, .md-wc #place_order, .woocommerce-message .button, .woocommerce-info .button, .wc-block-components-notice-banner .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: var(--pill);
	background: var(--vert-logo);
	color: var(--noir);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.md-wc .button:hover, .md-wc .checkout-button:hover, .md-wc #place_order:hover, .woocommerce-message .button:hover, .woocommerce-info .button:hover, .wc-block-components-notice-banner .button:hover { transform: scale(1.05); background: var(--vert-logo-hover); color: var(--noir); }
.md-wc .button:disabled, .md-wc .button[disabled] { opacity: 0.45; cursor: default; transform: none; }
.md-wc button[name="update_cart"] { background: transparent; border-color: var(--vert-foret); color: var(--vert-foret); }
.md-wc button[name="update_cart"]:hover:not(:disabled) { background: var(--vert-foret); color: var(--blanc); }
.md-wc .checkout-button, .md-wc #place_order { width: 100%; min-height: 56px; font-size: 17px; }

.md-wc table.shop_table { width: 100%; border-collapse: collapse; font-size: 16px; }
.md-wc .shop_table th, .md-wc .shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.md-wc .shop_table thead th { padding-top: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.md-wc .shop_table .product-name a { color: var(--noir); font-weight: 600; text-decoration: none; }
.md-wc .shop_table .product-name a:hover { color: var(--vert-foret); text-decoration: underline; }
.md-wc .shop_table .product-thumbnail img { display: block; width: 72px; height: 90px; object-fit: cover; border-radius: 10px; }
.md-wc .shop_table .product-remove a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--blanc); color: var(--anthracite); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; box-sizing: border-box; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.md-wc .shop_table .product-remove a .md-icon { flex: none; }
@media (min-width: 768px) { .md-wc .shop_table .product-remove a { width: 44px; padding: 0; } .md-remove__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.md-wc .shop_table .product-remove a:hover { background: #f8e6e1; border-color: #f8e6e1; color: #7a2a17; }
.md-wc .shop_table td.actions { padding-top: 20px; border-bottom: 0; text-align: right; }
.md-wc .coupon { display: none; }
.md-wc .quantity input.qty, .md-wc input.input-text, .md-wc textarea, .md-wc select {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid #cfd3cd;
	border-radius: var(--radius-field);
	background: var(--blanc);
	color: var(--anthracite);
	font-family: var(--font-body);
	font-size: 16px;
	box-sizing: border-box;
	transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.md-wc .quantity input.qty { width: 84px; text-align: center; }
.md-wc input.input-text:focus, .md-wc textarea:focus, .md-wc .quantity input.qty:focus { outline: none; border-color: var(--vert-foret); box-shadow: 0 0 0 4px rgba(136, 180, 38, 0.35); }
.md-wc textarea { min-height: 120px; resize: vertical; }

/* Mobile : chaque ligne de la réservation devient une carte (data-title des cellules). */
@media (max-width: 767px) {
	.md-wc .woocommerce-cart-form table.shop_table_responsive thead { display: none; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--muted); text-align: left; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.product-remove, .md-wc .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail, .md-wc .woocommerce-cart-form table.shop_table_responsive td.actions { display: block; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.product-remove::before, .md-wc .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail::before, .md-wc .woocommerce-cart-form table.shop_table_responsive td.actions::before { content: none; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail { grid-column: 1; grid-row: 1; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.product-remove { grid-column: 2; grid-row: 1; align-self: start; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.product-thumbnail { justify-self: start; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td:not(.product-remove):not(.product-thumbnail) { grid-column: 1 / -1; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive tr.cart_item { grid-template-rows: auto; }
	.md-wc .woocommerce-cart-form table.shop_table_responsive td.actions .button { width: 100%; }
}

.md-wc--cart .woocommerce { display: grid; gap: 40px; }
@media (min-width: 1024px) {
	.md-wc--cart .woocommerce:has(.cart-collaterals) { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 56px; }
	.md-wc--cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.md-wc--cart .cart-collaterals { position: sticky; top: calc(var(--header-h) + 24px); }
}
.md-wc .woocommerce-notices-wrapper:empty { display: none; }
.md-wc .cart_totals, .md-wc #order_review { padding: 24px; border-radius: var(--radius); background: var(--sable); }
.md-wc .cart_totals h2, .md-wc #order_review_heading, .md-wc .woocommerce-billing-fields h3, .md-wc .woocommerce-additional-fields h3, .md-wc .woocommerce-order-details__title, .md-wc .woocommerce-column__title {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.2;
	color: var(--noir);
}
.md-wc .cart_totals .shop_table th, .md-wc .cart_totals .shop_table td, .md-wc #order_review .shop_table th, .md-wc #order_review .shop_table td { padding: 12px 0; }
.md-wc .cart_totals .shop_table td, .md-wc #order_review .shop_table td:last-child, .md-wc #order_review .shop_table th:last-child { text-align: right; }
.md-wc .order-total th, .md-wc .order-total td { font-size: 19px; color: var(--noir); border-bottom: 0; }
.md-wc .wc-proceed-to-checkout { margin-top: 16px; }
.md-wc .cart-empty { justify-content: center; background: var(--sable); color: var(--anthracite); }
.md-wc .return-to-shop { margin: 0; text-align: center; }

/* Validation : coordonnées à gauche, récapitulatif à droite. */
.md-wc form.checkout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
	/* Ligne 1 réservée aux erreurs (ajoutées par WooCommerce en tête du formulaire). */
	.md-wc form.checkout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 0 56px; align-items: start; }
	.md-wc form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
	.md-wc form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	.md-wc form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 16px; }
	.md-wc form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: calc(var(--header-h) + 24px); }
}
.md-wc .col2-set { display: grid; gap: 24px; }
.md-wc .woocommerce-billing-fields__field-wrapper, .md-wc .woocommerce-additional-fields__field-wrapper { display: grid; gap: 18px; }
@media (min-width: 768px) {
	.md-wc .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
	.md-wc .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
}
.md-wc .form-row { display: grid; gap: 8px; margin: 0; }
.md-wc .form-row label { font-size: 15px; font-weight: 600; color: var(--noir); }
.md-wc .form-row .required { color: var(--vert-foret); text-decoration: none; border: 0; }
.md-wc .form-row .optional { font-weight: 400; color: var(--muted); }
.md-wc .form-row.woocommerce-invalid input.input-text { border-color: #b4472b; }
.md-wc .woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--muted); }
.md-wc #payment { margin-top: 20px; }
.md-wc #payment ul.payment_methods { margin: 0 0 20px; padding: 0; list-style: none; }
.md-wc #payment ul.payment_methods li { padding: 16px; border-radius: 12px; background: var(--blanc); }
.md-wc #payment ul.payment_methods li > input { margin-right: 8px; accent-color: var(--vert-foret); }
.md-wc #payment ul.payment_methods li label { font-weight: 600; color: var(--noir); }
.md-wc #payment .payment_box { margin-top: 8px; font-size: 15px; color: var(--muted); }
.md-wc #payment .payment_box p { margin: 0; }
.md-wc .woocommerce-privacy-policy-text p, .md-wc .woocommerce-terms-and-conditions-wrapper { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.md-wc .woocommerce-terms-and-conditions-wrapper .form-row label { font-size: 15px; font-weight: 400; color: var(--anthracite); }
.md-wc .woocommerce-form__label-for-checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.md-wc .woocommerce-form__label-for-checkbox input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--vert-foret); }

/* Confirmation (point de terminaison order-received). */
.md-wc .woocommerce-order { display: grid; gap: 32px; }
.md-wc .woocommerce-thankyou-order-received { margin: 0; font-size: 18px; }
.md-wc ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.md-wc ul.woocommerce-order-overview li { padding: 16px; border-radius: 12px; background: var(--sable); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.md-wc ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--noir); }
.md-wc .woocommerce-order > p:not(.woocommerce-thankyou-order-received) { margin: 0; padding: 20px; border-left: 4px solid var(--vert-clair); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sable); }
.md-wc .woocommerce-customer-details address { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); font-style: normal; line-height: 1.7; }
.md-wc .woocommerce-customer-details address p { margin: 0; }
.md-wc .woocommerce-table--order-details th:last-child, .md-wc .woocommerce-table--order-details td:last-child { text-align: right; }
.md-wc__back { margin: 40px 0 0; }
