/*
Theme Name: Marchal Premium
Theme URI: https://marchal-dany.be/
Author: Marchal Dany
Description: Thème sur mesure pour Marchal Dany — électricité, domotique KNX, éclairage et sécurité. Pleine largeur, couleurs de la marque.
Version: 1.6.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: marchal-premium
*/

:root {
	--ink: #231F20;
	--paper: #FFFFFF;
	--concrete: #EEEDEA;
	--steel: #A9AEB5;
	--orange: #F08000;
	--orange-ink: #8F4800;
	--muted: #57565B;
	--line: #DEDCD7;
	--on-dark: #D6D4D0;
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-stretch: 100%;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 118%; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); margin: 0; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
	display: flex; align-items: center; gap: 28px;
	height: 78px; padding: 0 var(--edge);
}
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { height: 56px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a {
	display: block; color: var(--ink); text-decoration: none;
	font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 4px; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > .current-menu-item > a, .nav-list > .current-menu-ancestor > a { color: var(--orange-ink); }
.nav-list > .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav-list .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 280px;
	background: #fff; border: 1px solid var(--line); border-radius: 6px;
	box-shadow: 0 18px 40px rgba(35, 31, 32, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-list > li:hover > .sub-menu, .nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { font-weight: 500; font-size: 15px; padding: 9px 12px; }
.nav-list .sub-menu a:hover { background: var(--concrete); color: var(--ink); }
.nav-list .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
.nav-list .md-nav-cta > a {
	background: var(--orange); color: var(--ink); font-weight: 700; padding: 12px 20px; margin-left: 10px;
}
.nav-list .md-nav-cta > a:hover { background: #FF9420; color: var(--ink); }
.header-phone { display: none; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- En-tête de page ---------- */
.page-head { background: var(--concrete); padding: clamp(44px, 6vw, 88px) var(--edge) clamp(36px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 72px); }
.page-head-inner { position: relative; padding-left: 30px; max-width: 980px; }
.page-head-inner::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 8px; background: var(--orange); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-title { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.02em; max-width: 24ch; }

/* ---------- Contenu ---------- */
.entry { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 110px); }
.home .entry { padding-top: 0; }
.entry > p, .entry > ul, .entry > ol:not(.md-steps), .entry > h2, .entry > h3, .entry > .wp-block-heading, .entry > figure.wp-block-image, .entry > .md-faq, .entry > .md-lead { max-width: 74ch; }
.entry > h2, .entry .wp-block-heading:is(h2) { font-size: clamp(28px, 3.2vw, 44px); margin: clamp(56px, 7vw, 96px) 0 20px; }
.entry > h3, .entry h3.wp-block-heading { font-size: clamp(21px, 2vw, 26px); margin: 40px 0 12px; }
.entry p { margin: 0 0 1.1em; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin: .3em 0; }
.entry strong { font-weight: 700; color: var(--ink); }
.entry figure { margin: 28px 0; }
.entry .wp-block-image img { border-radius: 6px; }
.entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry > :first-child { margin-top: 0; }

/* Utilitaires utilisés dans le contenu des pages */
.md-kick { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--orange-ink); margin: 0 0 10px; }
.md-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink); }
.md-note { font-size: 14px; color: var(--muted); }

.md-hero, .md-band, .md-road {
	width: 100vw; max-width: 100vw;
	margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.md-hero {
	position: relative; overflow: hidden; display: flex; align-items: flex-end;
	min-height: clamp(380px, 58vh, 640px); margin-bottom: clamp(48px, 6vw, 80px);
	background: var(--ink); color: #fff;
}
.md-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--orange); z-index: 3; }
.md-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .78; margin: 0; }
.md-hero > div {
	position: relative; z-index: 1; width: 100%;
	padding: clamp(48px, 7vw, 96px) var(--edge) clamp(40px, 6vw, 80px);
}
.md-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .66) 45%, rgba(35, 31, 32, .1) 100%); }
.md-hero > div { z-index: 2; }
.md-hero p { color: #fff; margin: 0; max-width: 62ch; }
.md-hero .md-kick { color: var(--orange); }
.md-hero .md-big {
	font-family: var(--display); font-stretch: 118%; font-weight: 800; color: #fff;
	font-size: clamp(30px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -0.02em;
	margin: 0 0 16px; max-width: 20ch;
}
.home .md-hero { min-height: calc(100svh - 78px); max-height: 940px; }
.home .md-hero .md-big { font-size: clamp(40px, 6vw, 92px); max-width: 15ch; line-height: .98; }
.home .md-hero img { opacity: .82; }
.md-hero-cta { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 12px; }
.md-hero .md-btn { margin: 0; }
.md-hero .md-btn.alt { color: #fff !important; border-color: rgba(255, 255, 255, .7); }

.md-btn {
	display: inline-block; background: var(--orange); color: var(--ink) !important;
	font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2;
	padding: 15px 26px; border-radius: 4px; text-decoration: none !important; margin: 10px 10px 0 0;
	border: 1.5px solid var(--orange); transition: background .15s ease, border-color .15s ease;
}
.md-btn:hover { background: #FF9420; border-color: #FF9420; }
.md-btn.alt { background: transparent; border-color: currentColor; color: inherit !important; }
.md-btn.alt:hover { background: rgba(255, 255, 255, .08); }

.md-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.md-trust > div { padding: 22px 24px 4px 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.md-trust > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.md-trust b { display: block; font-stretch: 118%; font-weight: 800; color: var(--ink); font-size: 22px; margin-bottom: 4px; }

.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 28px 0 8px; }
.md-card {
	display: block; color: var(--ink) !important; text-decoration: none !important;
	border-top: 3px solid var(--ink); padding-top: 0; transition: border-color .2s ease;
}
.md-card img { width: 100%; height: 210px; object-fit: cover; display: block; margin: 0; filter: saturate(.92); transition: filter .25s ease; }
.md-card > div { padding: 16px 2px 6px; }
.md-card b { display: block; font-stretch: 112%; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.md-card span { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; }
.md-card:hover { border-top-color: var(--orange); }
.md-card:hover img { filter: saturate(1.08) brightness(1.04); }

.md-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 36px; margin: 28px 0; }
.md-box { border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.md-box b { display: block; font-stretch: 112%; font-weight: 800; font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.md-box b::before { content: ""; display: block; width: 28px; height: 4px; background: var(--orange); margin-bottom: 14px; }
.md-box p { margin: 0; font-size: 15.5px; color: var(--muted); }

.md-band {
	background: var(--ink); color: #fff;
	padding: clamp(56px, 8vw, 112px) var(--edge);
	margin-top: clamp(56px, 7vw, 96px); margin-bottom: clamp(56px, 7vw, 96px);
	border-radius: 0;
}
.md-band h2, .md-band h3 { color: #fff; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.04; margin: 0 0 16px; max-width: 22ch; }
.md-band p, .md-band li { color: var(--on-dark); max-width: 62ch; }
.md-band .md-kick { color: var(--orange); }
.md-band[style*="center"] h3, .md-band[style*="center"] h2, .md-band[style*="center"] p { margin-left: auto; margin-right: auto; }
.md-band strong { color: #fff; }

.md-steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.md-steps > li { counter-increment: step; position: relative; padding: 70px 24px 22px 0; margin: 0; color: var(--muted); font-size: 15.5px; }
.md-steps > li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.md-steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; font-stretch: 125%; font-weight: 800; font-size: 34px; color: var(--orange); line-height: 1; }
.md-steps > li b { display: block; font-stretch: 112%; font-weight: 800; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.md-faq { margin: 20px 0; }
.md-faq h2 { font-size: clamp(28px, 3.2vw, 44px); margin: 0 0 16px; }
.md-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.md-faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); padding-right: 40px; position: relative; }
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font-size: 28px; font-weight: 400; color: var(--orange-ink); }
.md-faq details[open] summary::after { content: "–"; }
.md-faq details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

.md-cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; }
.md-cmp th, .md-cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.md-cmp thead th { background: var(--ink); color: #fff; font-stretch: 112%; }
.md-cmp td:first-child { font-weight: 700; color: var(--ink); }

.md-road { background: linear-gradient(180deg, var(--concrete) 0 80%, #D6D5D1 80% 100%); padding: 44px 20px 22px; margin-top: 64px; margin-bottom: 64px; overflow: hidden; }

/* La dernière bande sombre se raccorde au pied de page */
.entry:has(> .md-band:last-child) { padding-bottom: 0; }
.entry > .md-band:last-child { margin-bottom: 0; border-bottom: 1px solid #3B3638; }

/* Marques */
.entry .md-brands { margin: clamp(56px, 7vw, 96px) 0 0; }
.entry .md-brands h3 { font-size: clamp(28px, 3.2vw, 44px); margin: 0 0 10px; }
.entry .md-brands .md-note { font-size: 17px; margin: 0 0 28px; }
.entry .md-bgrp { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 600; margin: 28px 0 0; padding-bottom: 12px; }
.entry .md-logos { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.entry .md-logos div { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; height: 120px; padding: 20px 28px; }
.entry .md-logos div:hover { box-shadow: none; background: var(--concrete); border-color: var(--line); }
.entry .md-logos img { max-height: 46px !important; }
.entry .md-logos .tall img { max-height: 64px !important; }
.entry .md-logos .wide img { max-height: 30px !important; }

/* Formulaire de contact */
.entry .fluentform input[type="text"], .entry .fluentform input[type="email"], .entry .fluentform input[type="tel"], .entry .fluentform textarea, .entry .fluentform select {
	border: 1px solid #CFCDC8 !important; border-radius: 4px !important; padding: 13px 14px !important; font-family: var(--display) !important; font-size: 16px !important;
}
.entry .fluentform .ff-btn-submit { background: var(--orange) !important; color: var(--ink) !important; border-radius: 4px !important; font-weight: 700 !important; padding: 15px 28px !important; border: 0 !important; }
.entry .fluentform { max-width: 760px; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 700; font-size: 20px; display: block; }
.post-list span { color: var(--muted); }

.btn { display: inline-block; padding: 13px 22px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--ink) !important; }
.btn-primary:hover { background: #FF9420; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.footer-inner {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
	padding: clamp(56px, 7vw, 88px) var(--edge) 48px;
}
.footer-logo { display: inline-block; background: #fff; padding: 12px 18px; border-radius: 6px; margin-bottom: 20px; line-height: 0; }
.footer-logo img { height: 52px; width: auto; }
.footer-name { font-stretch: 118%; font-weight: 800; font-size: 22px; color: #fff; margin: 0 0 8px; }
.site-footer p { margin: 0 0 14px; }
.footer-title { font-stretch: 112%; font-size: 16px; color: #fff; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 7px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-strong { font-weight: 700; font-size: 18px; }
.site-footer .btn-primary { color: var(--ink) !important; margin-top: 6px; }
.site-footer .btn-primary:hover { color: var(--ink) !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--edge); border-top: 1px solid #3B3638; font-size: 14px; color: var(--steel); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--steel); }

/* ---------- Responsive ---------- */
@media (min-width: 1360px) { .header-phone { display: block; } }
@media (max-width: 1120px) {
	.header-inner { height: 68px; gap: 12px; }
	.brand img { height: 46px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
		background: none; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; min-height: 44px;
		font: 600 15px var(--display); color: var(--ink); cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
	.nav-open .nav-toggle-bars { background: transparent; }
	.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(35, 31, 32, .12);
		max-height: calc(100svh - 68px); overflow: auto; padding: 8px var(--gutter) 24px;
	}
	.nav-open .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { border-bottom: 1px solid var(--line); }
	.nav-list a { font-size: 17px; padding: 14px 4px; white-space: normal; }
	.nav-list > .menu-item-has-children > a::after { display: none; }
	.nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; }
	.nav-list .sub-menu a { font-size: 16px; padding: 8px 4px; color: var(--muted); }
	.nav-list .md-nav-cta { border-bottom: 0; margin-top: 16px; }
	.nav-list .md-nav-cta > a { margin: 0; text-align: center; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.md-trust { grid-template-columns: 1fr 1fr; }
	.md-trust > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.md-trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.md-steps > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.md-hero::before { background: linear-gradient(0deg, rgba(35, 31, 32, .95) 0%, rgba(35, 31, 32, .6) 60%, rgba(35, 31, 32, .25) 100%); }
	.home .md-hero { min-height: 82svh; }
	.home .md-hero .md-big { font-size: 38px; }
	.md-hero .md-big { font-size: 30px; }
	.md-hero-cta .md-btn { width: 100%; text-align: center; }
	.md-cmp { display: block; overflow-x: auto; }
	.footer-inner { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Schémas animés
   ========================================================= */
.md-fig { margin: clamp(32px, 4vw, 56px) 0; padding: clamp(20px, 3vw, 40px); background: var(--concrete); border-radius: 8px; max-width: none; }
.md-fig-title { font-stretch: 112%; font-weight: 800; font-size: 19px; margin: 0 0 16px; }
.md-fig figcaption { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 70ch; }
.md-fig-body { position: relative; }
.md-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--display); }
.md-svg text { font-size: 17px; font-weight: 700; fill: var(--ink); }
.md-svg .s-sm { font-size: 14.5px; font-weight: 600; }
.md-svg .s-cap { font-size: 15px; font-weight: 700; }
.md-svg .s-h { font-size: 18px; font-weight: 800; font-stretch: 112%; }
.md-svg .s-mut { fill: var(--muted); }
.md-svg .s-inv { fill: #fff; }
.md-svg .s-room { font-size: 16px; font-weight: 700; fill: #8B8A8F; }

.s-ground { stroke: var(--steel); stroke-width: 2; }
.s-house, .s-walls { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.s-walls { fill: none; stroke-width: 6; stroke-linecap: square; }
.s-win { stroke: #8FB3D9; stroke-width: 6; }
.s-pv rect, .s-panelf { fill: #2E3A4B; stroke: #fff; stroke-width: 1.5; }
.s-grid { stroke: #6C7A8F; stroke-width: 1.2; fill: none; }
.s-wire, .s-ray { fill: none; stroke: #C4C2BD; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-cable { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; opacity: .45; }
.s-bus, .s-busl { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.s-busl { stroke: #3E8E41; }
.s-sep { stroke: var(--line); stroke-width: 2; }
.s-axis { stroke: var(--ink); stroke-width: 1.5; }
.s-flow { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 14; opacity: 0; }
.s-panel > rect:first-child, .s-dark { fill: var(--ink); }
.s-mod { fill: #E9E7E3; }
.s-mod.or, .s-or, .s-dot { fill: var(--orange); }
.s-card rect:first-child, .s-boxw, .s-node, .s-brk { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.s-boxo { fill: #fff; stroke: var(--orange); stroke-width: 3; }
.s-dashed { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.s-sine { fill: none; stroke: var(--orange); stroke-width: 2.5; }
.s-sun circle { fill: var(--orange); }
.s-sun-rays path { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.s-sun-rays { transform-box: fill-box; transform-origin: center; }
.s-card { cursor: pointer; }
.s-card rect:first-child { transition: stroke .2s ease, fill .2s ease; }
a:hover .s-card rect:first-child, a:focus .s-card rect:first-child { stroke: var(--orange); stroke-width: 3; }
a:focus { outline: none; }
a:focus-visible .s-card rect:first-child { fill: #FFF4E6; }
.s-area-house { fill: #B9BEC6; }
.s-area-car { fill: var(--orange); opacity: .9; }
.s-house-k { fill: #B9BEC6; }
.s-line-tot { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.s-limit { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 8 6; }
.s-call { stroke: var(--ink); stroke-width: 1.5; }
.s-wipe { transform-box: fill-box; transform-origin: left center; }
.s-det { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.s-contact { fill: var(--ink); }
.s-siren { fill: #C0392B; }
.s-pir { transform-box: view-box; }
.s-lens { fill: var(--ink); }
.s-screen { fill: #DCE6F2; }
.s-lamp { fill: #fff; stroke: var(--ink); stroke-width: 2; transition: fill .3s ease; }
.s-lamp.lit { fill: #FFC266; }
.s-telegram { fill: var(--orange); opacity: 0; }

/* Révélation : seulement quand le script tourne et que le visiteur accepte les animations. */
html.js .md-fig .s-in { opacity: 0; transform: translateY(8px); transform-box: fill-box; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 110ms); }
html.js .md-fig.is-in .s-in { opacity: 1; transform: none; }
html.js .md-fig .s-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .4s; }
html.js .md-fig.is-in .s-draw { stroke-dashoffset: 0; }
html.js .md-fig .s-wipe { transform: scaleX(0); transition: transform 2.4s cubic-bezier(.4, 0, .2, 1) .2s; }
html.js .md-fig.is-in .s-wipe { transform: none; }
.md-fig.is-in .s-flow, html:not(.js) .s-flow { opacity: 1; animation: s-flow 1s linear infinite; }
.md-fig.is-in .s-sun-rays { animation: s-spin 18s linear infinite; }
.md-fig.is-in .s-pir { animation: s-pulse 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1s); }
.md-fig.is-in .s-telegram { animation: s-telegram 4s ease-in-out infinite; }
.md-fig.is-in .s-lamp-bus { animation: s-lampbus 4s ease-in-out infinite; }
@keyframes s-flow { to { stroke-dashoffset: -15; } }
@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes s-telegram { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 45% { opacity: 1; transform: translateX(117px); } 55%, 100% { opacity: 0; transform: translateX(117px); } }
@keyframes s-lampbus { 0%, 45% { fill: #fff; } 55%, 92% { fill: #FFC266; } 100% { fill: #fff; } }

/* Boutons de choix (scènes, avant / après, planning) */
.md-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.md-switch button {
	font: 600 15px var(--display); color: var(--ink); background: #fff; border: 1.5px solid #CFCDC8; border-radius: 4px;
	padding: 10px 16px; min-height: 44px; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.md-switch button:hover { border-color: var(--ink); }
.md-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Scènes d'éclairage */
.md-scene .sc-room { fill: #F7F5F1; }
.md-scene .sc-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.md-scene .sc-fill { fill: var(--ink); }
.md-scene .sc-tv { fill: #2A2627; stroke: var(--ink); stroke-width: 3; transition: fill .6s ease; }
.md-scene .sc-dark { fill: #120F10; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.md-scene .l { opacity: 0; transition: opacity .7s ease; }
.md-scene .sc-labels text { fill: var(--muted); transition: fill .7s ease; }
.md-scene[data-state="tout"] .l-gorge, .md-scene[data-state="tout"] .l-susp, .md-scene[data-state="tout"] .l-spot { opacity: 1; }
.md-scene[data-state="repas"] .l-susp { opacity: 1; }
.md-scene[data-state="repas"] .l-gorge { opacity: .45; }
.md-scene[data-state="repas"] .sc-dark { opacity: .32; }
.md-scene[data-state="cinema"] .l-gorge { opacity: .3; }
.md-scene[data-state="cinema"] .l-tvglow { opacity: 1; }
.md-scene[data-state="cinema"] .sc-tv { fill: #5A7BA3; }
.md-scene[data-state="cinema"] .sc-dark { opacity: .6; }
.md-scene[data-state="nuit"] .l-plinthe { opacity: 1; }
.md-scene[data-state="nuit"] .sc-dark { opacity: .72; }
.md-scene[data-state="eteint"] .sc-dark { opacity: .84; }
.md-scene:is([data-state="cinema"], [data-state="nuit"], [data-state="eteint"]) .sc-labels text { fill: #D6D4D0; }

/* Avant / après */
.md-ba { position: relative; }
.md-ba .ba-after { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.md-ba[data-state="apres"] .ba-after { opacity: 1; }
.ba-bg-old { fill: #E8E3DA; }
.ba-bg-new { fill: #F7F6F3; }
.ba-plank { fill: #CDB894; stroke: #8F7A55; stroke-width: 2; }
.ba-fuse circle { fill: #F4F1EA; stroke: #6B5F4C; stroke-width: 3; }
.ba-wires { fill: none; stroke: #5A4A3A; stroke-width: 3; }
.ba-row rect { fill: #3A3536; }
.ba-mods rect { fill: #F2F1EE; }
.ba-mods rect.or { fill: var(--orange); }
.md-svg .ba-tag { font-size: 18px; font-weight: 700; fill: #9E2B1F; }
.md-svg .ba-tag.ok { fill: var(--ink); }
.md-svg .ba-label { font-size: 15px; font-weight: 800; fill: var(--muted); }

/* Planning de chantier */
.md-gantt { background: #fff; border-radius: 6px; padding: 22px 24px 18px; }
.md-gantt ol { list-style: none; margin: 0; padding: 0; }
.md-gantt li { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 16px; padding: 7px 0; margin: 0; }
.g-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.g-track { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); border-radius: 3px; }
.g-bar { position: absolute; top: 3px; bottom: 3px; left: var(--s); width: var(--w); background: var(--steel); border-radius: 3px; transition: left .8s cubic-bezier(.4, 0, .2, 1), width .8s cubic-bezier(.4, 0, .2, 1), background .4s ease; }
.md-gantt[data-state="avec"] .g-bar { left: var(--s2); width: var(--w2); background: var(--orange); }
.g-axis { position: relative; height: 30px; margin-left: 246px; }
.g-end { position: absolute; top: 4px; transform: translateX(-50%); font-size: 13.5px; font-weight: 700; white-space: nowrap; padding-top: 6px; border-top: 2px solid var(--ink); transition: left .8s cubic-bezier(.4, 0, .2, 1); }
.g-end-plan { left: 79%; color: var(--muted); border-top-style: dashed; border-top-color: var(--muted); }
.g-end-real { left: 97%; color: #9E2B1F; border-top-color: #9E2B1F; }
.md-gantt[data-state="avec"] .g-end-real { left: 79%; color: var(--ink); border-top-color: var(--ink); }
.md-gantt[data-state="avec"] .g-end-plan { opacity: 0; }

/* Frise verticale (étapes de chantier, qui fait quoi) */
.md-timeline { list-style: none; margin: 32px 0; padding: 0; position: relative; max-width: 860px; }
.md-timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.md-timeline::after { content: ""; position: absolute; left: 15px; top: 8px; width: 2px; height: calc(100% - 16px); background: var(--orange); transform-origin: top; }
html.js .md-timeline::after { transform: scaleY(0); transition: transform 2.2s cubic-bezier(.4, 0, .2, 1); }
html.js .md-timeline.is-in::after { transform: none; }
.md-timeline > li { position: relative; padding: 0 0 26px 54px; margin: 0; color: var(--muted); font-size: 16px; }
.md-timeline > li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; z-index: 1; }
.md-timeline > li.key::before { background: var(--orange); border-color: var(--orange); }
.md-timeline > li > b { display: block; font-stretch: 112%; font-weight: 800; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.md-timeline .who { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 3px; margin: 0 0 8px; background: var(--concrete); color: var(--ink); }
.md-timeline .who.nous { background: var(--ink); color: #fff; }
.md-timeline .who.vous { background: #FFE7CC; color: #7A3E00; }
.md-band .md-timeline > li { color: var(--on-dark); }
.md-band .md-timeline > li > b { color: #fff; }

/* Processus horizontal */
.md-process { list-style: none; counter-reset: pr; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 32px 0; padding: 0; }
.md-process > li { counter-increment: pr; position: relative; margin: 0; padding: 58px 18px 0 0; font-size: 15px; color: var(--muted); }
.md-process > li::before { content: counter(pr); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 16px; z-index: 1; transition: background .3s ease, color .3s ease, border-color .3s ease; transition-delay: calc(var(--i, 0) * 300ms); }
.md-process > li::after { content: ""; position: absolute; top: 19px; left: 40px; right: 0; height: 2px; background: var(--line); }
.md-process > li:last-child::after { display: none; }
.md-process > li > b { display: block; font-stretch: 112%; font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.md-process.is-in > li::before, html:not(.js) .md-process > li::before { background: var(--ink); color: #fff; }
.md-process.is-in > li:last-child::before { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Rapport de contrôle : remarques corrigées une à une */
.md-report { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; max-width: 640px; margin: 28px 0; }
.md-report p.r-title { font-weight: 800; font-stretch: 112%; margin: 0 0 12px; }
.md-report ul { list-style: none; margin: 0; padding: 0; }
.md-report li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; font-size: 15.5px; }
.md-report li span:last-child { font-weight: 700; font-size: 13.5px; white-space: nowrap; padding: 3px 9px; border-radius: 3px; background: #FBE3E0; color: #9E2B1F; transition: background .4s ease, color .4s ease; transition-delay: calc(var(--i, 0) * 450ms + 300ms); }
.md-report.is-in li span:last-child, html:not(.js) .md-report li span:last-child { background: var(--ink); color: #fff; }
.md-report li span:last-child::after { content: "Remarque"; }
.md-report.is-in li span:last-child::after, html:not(.js) .md-report li span:last-child::after { content: "Corrigé"; }

/* Image + texte côte à côte */
.md-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin: clamp(48px, 6vw, 88px) 0; }
.md-split.rev > :first-child { order: 2; }
.md-split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 6px; display: block; margin: 0; }
.md-split h2 { font-size: clamp(26px, 2.8vw, 38px); margin: 0 0 16px; }
.md-split p { color: var(--muted); }
.md-split p strong { color: var(--ink); }
.md-split ul { padding-left: 1.1em; color: var(--muted); }

/* Liste de points avec coche */
.md-checks { list-style: none; padding: 0 !important; margin: 18px 0; }
.md-checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.md-checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

/* Citation de principe */
.md-pull { font-stretch: 112%; font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); border-left: 8px solid var(--orange); padding: 4px 0 4px 26px; margin: clamp(40px, 5vw, 64px) 0; max-width: 30ch; }

/* Comparatif simple en deux colonnes */
.md-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.md-vs > div { border-radius: 6px; padding: 24px 26px; background: var(--concrete); }
.md-vs > div.good { background: var(--ink); color: var(--on-dark); }
.md-vs > div.good b { color: #fff; }
.md-vs b { display: block; font-stretch: 112%; font-weight: 800; font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.md-vs ul { margin: 0; padding-left: 1.1em; }

@media (max-width: 860px) {
	.md-fig { padding: 18px 14px; margin-left: calc(-1 * var(--gutter) + 8px); margin-right: calc(-1 * var(--gutter) + 8px); border-radius: 0; }
	.md-fig-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.md-fig-body > .md-svg, .md-fig-body > .md-ba { min-width: 540px; }
	.md-fig--maison .md-fig-body > .md-svg { min-width: 520px; }
	.md-fig--chantier .md-fig-body, .md-fig--eclairage .md-fig-body { overflow: visible; }
	.md-fig--eclairage .md-fig-body > .md-svg { min-width: 0; }
	.md-fig-body::after { content: ""; }
	.md-gantt { padding: 16px 12px; }
	.md-gantt li { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
	.g-axis { margin-left: 0; }
	.md-process { grid-template-columns: 1fr; }
	.md-process > li { padding: 4px 0 22px 58px; }
	.md-process > li::after { top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
	.md-split, .md-vs { grid-template-columns: 1fr; }
	.md-split.rev > :first-child { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.md-fig .s-flow { opacity: 1 !important; }
}
@media (max-width: 860px) {
	.md-fig:not(.md-fig--chantier):not(.md-fig--eclairage) figcaption::before { content: "Faites glisser le schéma pour le voir en entier. "; font-weight: 600; color: var(--ink); }
}
.md-fig .md-svg, .md-fig .md-ba, .md-fig .md-gantt { max-width: 900px; margin-left: auto; margin-right: auto; }
.md-fig--maison .md-svg { max-width: 820px; }
.md-fig .md-switch { max-width: 900px; margin-left: auto; margin-right: auto; }
.md-fig--maison .md-svg text { font-size: 16.5px; }
.entry .md-timeline, .entry .md-process, .entry .md-steps, .entry .md-checks, .entry .md-gantt ol, .entry .md-report ul { padding-left: 0; }
.md-timeline > li > b { display: inline; margin-right: 10px; }
.md-timeline .who { vertical-align: 3px; margin: 0; }
.md-timeline > li > div { margin-top: 6px; max-width: 62ch; }

.entry .md-pull { max-width: 32ch; }
.entry > ol.md-process { max-width: none; }

/* Mosaïque de réalisations */
.md-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 12px; margin: 32px 0 56px; }
.md-mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--concrete); }
.md-mosaic figure.w2 { grid-column: span 2; }
.md-mosaic figure.h2 { grid-row: span 2; }
.md-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .6s ease; }
.md-mosaic figure:hover img { transform: scale(1.03); }
.md-mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; margin: 0; color: #fff; font-size: 14.5px; font-weight: 600; background: linear-gradient(0deg, rgba(35, 31, 32, .85), rgba(35, 31, 32, 0)); }
.md-mosaic figcaption b { display: block; font-stretch: 112%; font-weight: 800; font-size: 17px; }
@media (max-width: 860px) {
	.md-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
	.md-mosaic figure.w2 { grid-column: span 2; }
}
@media (max-width: 860px) {
	.g-axis { height: 60px; }
	.g-end { font-size: 12.5px; transform: translateX(-100%); }
	.g-end-real { top: 30px; transform: translateX(-100%); }
}

/* Anti-débordement des textes */
h1, h2, h3, .md-card b, .md-box b, .md-trust b, .md-mosaic figcaption b, .md-timeline b, .md-process b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.md-trust b { font-size: clamp(17px, 1.7vw, 22px); }
.md-trust > div { min-width: 0; }
@media (max-width: 860px) {
	.md-trust b { font-stretch: 105%; }
	.md-mosaic figcaption { padding: 28px 10px 10px; font-size: 13px; }
	.md-mosaic figcaption b { font-size: 14.5px; font-stretch: 100%; }
	.md-hero .md-big, .page-title { hyphens: manual; }
}

/* Journée type : énergie */
.md-journee { background: #fff; border-radius: 6px; padding: 22px 24px 18px; max-width: 900px; margin: 0 auto; }
.md-journee ol { list-style: none; margin: 0; padding: 0; }
.md-journee li { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 16px; padding: 8px 0; margin: 0; }
.j-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.j-track { position: relative; height: 26px; border-radius: 3px; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%); }
.j-row-pv .j-track { height: 60px; background: none; border-bottom: 1px solid var(--line); }
.j-pv { width: 100%; height: 60px; display: block; }
.j-pv path { fill: #FFD27A; }
.j-tarif { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; background: none; height: 18px; }
.j-tarif .t-c { background: #BFDDB5; }
.j-tarif .t-p { background: #F2B880; }
.j-bar { position: absolute; top: 3px; bottom: 3px; left: var(--s); width: var(--w); border-radius: 3px; transition: left .8s cubic-bezier(.4, 0, .2, 1), width .8s cubic-bezier(.4, 0, .2, 1); }
.j-bar.use { background: var(--orange); }
.j-bar.give { background: var(--ink); }
.md-journee[data-state="avec"] .j-bar { left: var(--s2); width: var(--w2); }
.j-axis { position: relative; height: 22px; margin-left: 216px; font-size: 12.5px; color: var(--muted); }
.j-axis span { position: absolute; transform: translateX(-50%); }
.j-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.j-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k-c { background: #BFDDB5; } .k-p { background: #F2B880; } .k-use { background: var(--orange); } .k-give { background: var(--ink); }
@media (max-width: 860px) {
	.md-journee { padding: 16px 12px; }
	.md-journee li { grid-template-columns: 1fr; gap: 4px; }
	.j-axis { margin-left: 0; }
	.md-fig--journee .md-fig-body { overflow: visible; }
}
.j-axis span { white-space: nowrap; }
.j-axis span:last-child { transform: translateX(-100%); }
.j-axis span:first-child { transform: none; }
.md-sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; max-width: 74ch; }
.md-sources a { color: var(--muted); }
.md-fig--renovation .md-ba { max-width: 520px; }
@media (max-width: 860px) { .md-fig--renovation .md-fig-body > .md-ba { min-width: 0; } .md-fig--renovation figcaption::before { content: none !important; } }

/* Schémas : version verticale sur téléphone */
.md-svg.m-only { display: none; }
@media (max-width: 600px) {
	.md-svg.d-only { display: none; }
	.md-svg.m-only { display: block; }
	.md-fig-body > .md-svg.m-only { min-width: 0; }
	.md-fig:has(.m-only) figcaption::before { content: none !important; }
	.md-fig:has(.m-only) .md-fig-body { overflow: visible; }
}

/* ---- 1.6 : lignes titre/texte et grille d'atouts ---- */
.md-rows { margin: 28px 0 8px; border-top: 2px solid var(--ink); }
.md-rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.md-rows h3 { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.md-rows h3 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; font-stretch: 100%; color: var(--orange-ink); }
.md-rows p { margin: 0; color: var(--muted); max-width: 64ch; }
.md-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 28px 0; }
.md-perks > div { border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.md-perks b { display: block; font-stretch: 112%; font-weight: 800; font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.md-perks p { margin: 0; font-size: 15.5px; color: var(--muted); }
.md-perks b::before { content: ""; display: block; width: 28px; height: 4px; background: var(--orange); margin-bottom: 14px; }
.md-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 10px; }
.md-trio figure { margin: 0; }
.entry .md-trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; margin: 0; display: block; }
.md-trio figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .md-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.md-rows > div { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
	.md-perks { grid-template-columns: minmax(0, 1fr); }
	.md-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.md-trio figcaption { font-size: 13px; }
}
