/**
 * Batimelo « La grue » — site stylesheet (child of Twenty Twenty-Five). Design: docs/design/design-system.md.
 * Tokens mirror theme.json; class prefix « bm- ». Mobile first; breakpoints 600 / 1024 / 1440 px (§7).
 * Here: tokens, base, buttons, tags, chips, search, the crane drawings (jib, crane, the house with its floors, hook),
 * the site hoarding, heroes, category band, cards, post body, listings, FAQ, 404, footer.
 * Also: menu.css (header), home.css (home sections), components.css (post components), forms.css (contact).
 */

:root {
	--bm-base: #FFFFFF;
	--bm-ardoise: #1F2A33;
	--bm-ardoise-2: #2B3842;
	--bm-sable: #E9D8B4;
	--bm-sable-2: #DCC594;
	--bm-ciel-pale: #DCEBF1;
	--bm-brique: #C2452D;
	--bm-brique-text: #A63823;
	--bm-meta: #5A6670;
	--bm-craie: #FAF7F1;
	--bm-trait: #E6DDCB;
	--bm-ciel: #8FB8C9;
	--bm-radius: 10px;
	--bm-radius-lg: 16px;
	--bm-gutter: 16px;
	--bm-wide: var(--wp--style--global--wide-size, 1240px);
	--bm-focus: var(--bm-brique-text);
	--bm-heading: var(--wp--preset--font-family--heading);
	--bm-section-y: 56px;
	--bm-mortar:
		linear-gradient(rgb(31 42 51 / 0.09) 1px, transparent 1px) 0 0 / 100% 14px,
		linear-gradient(90deg, rgb(31 42 51 / 0.07) 1px, transparent 1px) 0 0 / 56px 28px,
		linear-gradient(90deg, rgb(31 42 51 / 0.07) 1px, transparent 1px) 28px 14px / 56px 28px;
}

/* ── Base ─────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; background: var(--bm-craie); }
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
table, .wp-block-table, .bm-num { font-variant-numeric: tabular-nums; }
img { height: auto; max-width: 100%; }
:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible { outline: 3px solid var(--bm-focus); outline-offset: 2px; }
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .bm-main, .bm-main > *, .bm-site-header, .bm-site-footer { margin-block: 0; }

/* Shared container */
.bm-hero__inner, .bm-section, .bm-thero__inner, .bm-hoarding__inner, .bm-listing, .bm-footer__inner,
.bm-main > .bm-figure, .bm-main > .bm-jib--section, .bm-contact__grid, .bm-devis-page {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--bm-wide) + 2 * var(--bm-gutter));
	margin-inline: auto;
	padding-inline: var(--bm-gutter);
}

/* ── Buttons (§5b) ─────────────────────────────────── */
.bm-btn,
.wp-block-button.is-style-bm-cta .wp-block-button__link,
.wp-block-button.is-style-bm-ghost .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 1.35rem;
	border: 2px solid transparent;
	border-radius: var(--bm-radius);
	font: 700 1rem/1.15 var(--bm-heading);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bm-btn--primary { background: var(--bm-ardoise); color: var(--bm-base); }
.bm-btn--primary:hover { background: var(--bm-brique-text); color: var(--bm-base); }
.bm-btn--cta, .wp-block-button.is-style-bm-cta .wp-block-button__link { background: var(--bm-brique-text); color: var(--bm-base); box-shadow: 0 3px 0 #7E2A1A; }
.bm-btn--cta:hover, .wp-block-button.is-style-bm-cta .wp-block-button__link:hover { background: var(--bm-ardoise); color: var(--bm-base); box-shadow: 0 3px 0 #0E151A; }
.bm-btn--ghost, .wp-block-button.is-style-bm-ghost .wp-block-button__link { background: transparent; color: var(--bm-ardoise); border-color: var(--bm-ardoise); }
.bm-btn--ghost:hover, .wp-block-button.is-style-bm-ghost .wp-block-button__link:hover { background: var(--bm-ardoise); color: var(--bm-base); }
.bm-btn--light { background: var(--bm-craie); color: var(--bm-ardoise); }
.bm-btn--light:hover { background: var(--bm-sable); }
.bm-btn .bm-icon { flex: none; }

/* ── Tags, eyebrows, « bientôt » ──────────────────── */
.bm-level {
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: 0.3em 0.45em 0.28em;
	border-radius: 4px;
	background: var(--bm-ardoise);
	color: var(--bm-sable);
	font: 800 0.8rem/1 var(--bm-heading);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.bm-level--project { background: var(--bm-brique-text); color: var(--bm-base); font-weight: 700; }
.bm-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin: 0; color: var(--bm-brique-text); font: 700 1rem/1.3 var(--bm-heading); }
.bm-eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--bm-brique); }
.bm-eyebrow--post::before { display: none; }
.bm-eyebrow a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bm-brique-text); text-decoration: none; }
.bm-eyebrow a:hover { text-decoration: underline; }
.bm-hook { display: block; width: 14px; height: 20px; flex: none; color: var(--bm-ardoise); }
.bm-hook__block { fill: var(--bm-brique); }
.bm-soon {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex: none;
	padding: 0.18em 0.6em 0.18em 0.4em;
	border: 1px solid var(--bm-trait);
	border-radius: 999px;
	background: var(--bm-base);
	color: var(--bm-meta);
	font: 700 0.78rem/1 var(--bm-heading);
	white-space: nowrap;
}
.bm-soon .bm-hook { width: 10px; height: 15px; margin-top: -3px; }
.bm-ticon { display: block; width: 24px; height: 24px; flex: none; }

/* ── Chips and search ─────────────────────────────── */
.bm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.bm-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 0.95rem 0 0.5rem;
	border: 1px solid var(--bm-trait);
	border-radius: 999px;
	background: var(--bm-base);
	color: var(--bm-ardoise);
	font: 700 0.95rem/1.2 var(--bm-heading);
	text-decoration: none;
}
.bm-chip:hover { border-color: var(--bm-ardoise); color: var(--bm-ardoise); }
.bm-chip__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bm-sable); color: var(--bm-ardoise); }
.bm-chip__icon .bm-ticon { width: 18px; height: 18px; }
.bm-chip__n { color: var(--bm-brique-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.bm-search label { display: block; margin-bottom: 0.4rem; font: 700 0.95rem/1.3 var(--bm-heading); }
.bm-search__field { display: flex; max-width: 560px; }
.bm-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 0 1rem;
	border: 2px solid var(--bm-ardoise);
	border-right: 0;
	border-radius: var(--bm-radius) 0 0 var(--bm-radius);
	background: var(--bm-base);
	color: var(--bm-ardoise);
	font: inherit;
	font-size: 1rem;
}
.bm-search .bm-btn { min-height: 52px; border-radius: 0 var(--bm-radius) var(--bm-radius) 0; }
@media (max-width: 420px) { .bm-search .bm-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .bm-search .bm-btn { padding: 0 1rem; } }

/* ── The crane: jib line (a thin brique line, trolley and hook) ── */
.bm-jib { position: relative; height: 3px; background: var(--bm-brique); border-radius: 2px; }
.bm-jib__trolley { position: absolute; left: 22%; top: 3px; width: 16px; height: 5px; border-radius: 0 0 2px 2px; background: var(--bm-ardoise); }
.bm-jib__trolley::after { content: ""; position: absolute; left: 7px; top: 5px; width: 2px; height: 12px; background: var(--bm-ardoise); }
.bm-main > .bm-jib--section { height: 3px; background-clip: content-box; margin-top: 0; }

/* ── The crane silhouette (bm_crane): mast, jib, counter-weight, cable, hook ── */
.bm-crane { --mast-x: 34px; --jib-y: 30px; --ink: var(--bm-ardoise); position: absolute; inset: 0; pointer-events: none; }
.bm-crane__mast { position: absolute; left: var(--mast-x); top: calc(var(--jib-y) - 14px); bottom: 0; width: 6px; border-radius: 3px 3px 0 0; background: var(--ink); }
.bm-crane__cab { position: absolute; left: calc(var(--mast-x) + 6px); top: calc(var(--jib-y) + 5px); width: 16px; height: 13px; border-radius: 0 3px 3px 0; background: var(--ink); }
.bm-crane__jib { position: absolute; left: 6px; right: 10px; top: var(--jib-y); height: 5px; border-radius: 3px; background: var(--bm-brique); }
.bm-crane__weight { position: absolute; left: 8px; top: calc(var(--jib-y) + 5px); width: 18px; height: 16px; border-radius: 0 0 3px 3px; background: var(--ink); }
.bm-crane__hook { position: absolute; right: var(--hook-right, 28px); top: calc(var(--jib-y) + 5px); display: flex; flex-direction: column; align-items: center; transform: translateX(50%); }
.bm-crane__hook::before { content: ""; width: 14px; height: 4px; border-radius: 0 0 2px 2px; background: var(--ink); } /* trolley */
.bm-crane__cable { display: block; width: 1.5px; height: calc(var(--cable, 22px) + var(--bm-hook, 0px)); background: var(--ink); transition: height 0.45s cubic-bezier(0.3, 0.7, 0.2, 1); }
.bm-crane__hookicon { width: 14px; height: 16px; margin-top: -1px; color: var(--ink); }
.bm-crane__hookicon .bm-hook__block { display: none; }
.bm-crane__load {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 22px;
	margin-top: -2px;
	padding: 0 0.55rem;
	border-radius: 4px;
	background: var(--bm-brique);
	color: var(--bm-base);
	font: 800 0.78rem/1 var(--bm-heading);
	white-space: nowrap;
}
.bm-crane__load:empty { width: 30px; padding: 0; }

/* ── The house (bm_site): six calm floor rows ─────── */
.bm-site { --lane: 58px; position: relative; box-sizing: border-box; padding: 84px 0 0 78px; }
.bm-site .bm-crane { --mast-x: 26px; }
.bm-site .bm-crane__hook { --hook-right: calc(var(--lane) / 2); }
.bm-house { position: relative; }
.bm-house__floors { position: relative; margin: 0; padding: 0; list-style: none; border-bottom: 3px solid var(--bm-ardoise); }
.bm-floorline { display: grid; grid-template-columns: minmax(0, 1fr) var(--lane); }
.bm-floorline + .bm-floorline a { border-top: 2px solid var(--bm-craie); }
.bm-floorline a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	min-height: 50px;
	padding: 0.45rem 0.85rem;
	background: var(--bm-sable);
	color: var(--bm-ardoise);
	text-decoration: none;
	transition: background-color 0.15s;
}
.bm-floorline:first-child a { border-radius: 8px 8px 0 0; }
.bm-floorline:last-child a { background: var(--bm-sable-2); }
.bm-floorline a:hover, .bm-floorline.is-hooked a, .bm-floorline a.is-active { background: var(--bm-base); }
.bm-floorline.is-current a { box-shadow: inset 4px 0 0 var(--bm-brique); }
.bm-floorline__n { flex: none; min-width: 1.9em; color: var(--bm-brique-text); font: 800 0.88rem/1 var(--bm-heading); font-variant-numeric: tabular-nums; }
.bm-floorline__icon .bm-ticon { width: 20px; height: 20px; color: var(--bm-ardoise); }
.bm-floorline__name { flex: 1 1 auto; min-width: 0; font: 700 0.98rem/1.2 var(--bm-heading); }
.bm-floorline a:hover .bm-floorline__name { text-decoration: underline; }
.bm-floorline__count { flex: none; color: var(--bm-brique-text); font: 700 0.85rem/1 var(--bm-heading); font-variant-numeric: tabular-nums; }
.bm-floorline__lane { display: block; }
.bm-house__note { margin: 0.6rem var(--lane) 0 0; color: var(--bm-meta); font-size: 0.875rem; line-height: 1.4; }

/* ── The site hoarding (§4) ───────────────────────── */
.bm-hoarding { position: relative; border-top: 12px solid var(--bm-brique); background: repeating-linear-gradient(90deg, var(--bm-ardoise) 0 58px, #17212A 58px 61px); color: var(--bm-base); }
.bm-hoarding::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--bm-sable) 0 10px, transparent 10px 20px); opacity: 0.85; }
.bm-hoarding--strip { display: grid; place-items: center; min-height: 56px; }
body:has(.bm-main > .bm-devis-band:last-child) .bm-hoarding--strip { display: none; } /* the devis hoarding already closes the page */
.bm-hoarding__sign, .bm-sign__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	border: 3px solid var(--bm-brique);
	border-radius: 6px;
	background: var(--bm-base);
	color: var(--bm-brique-text);
	font: 800 0.95rem/1 var(--bm-heading);
}
.bm-sign {
	position: relative;
	box-sizing: border-box;
	padding: 1.75rem 1.4rem 1.6rem;
	border: 4px solid var(--bm-brique);
	border-radius: 10px;
	background: var(--bm-base);
	color: var(--bm-ardoise);
	box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.55);
}
.bm-sign__bolt { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #A9B6BF; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2); }
.bm-sign__bolt:nth-child(1) { left: 9px; top: 9px; }
.bm-sign__bolt:nth-child(2) { right: 9px; top: 9px; }
.bm-sign__bolt:nth-child(3) { left: 9px; bottom: 9px; }
.bm-sign__bolt:nth-child(4) { right: 9px; bottom: 9px; }

/* Hoarding hero (contact) */
.bm-hoarding--hero .bm-hoarding__inner { display: grid; gap: 2rem; align-items: end; padding-block: 40px 0; }
.bm-hoarding--hero .bm-sign { margin-bottom: -48px; z-index: 2; max-width: 680px; }
.bm-sign__title { margin: 0.6rem 0 0; color: var(--bm-ardoise); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; }
.bm-sign__lead { margin: 0.9rem 0 0; color: var(--bm-meta); font-size: 1.1rem; line-height: 1.6; max-width: 56ch; }
.bm-sign__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.bm-sign__facts li { display: flex; align-items: center; gap: 0.5rem; font: 700 0.95rem/1.3 var(--bm-heading); }
.bm-sign__facts .bm-ticon { width: 22px; height: 22px; color: var(--bm-brique-text); }
.bm-hoarding__crane { position: relative; display: none; height: 260px; }
.bm-hoarding__crane .bm-crane { --mast-x: 40%; --jib-y: 24px; --ink: var(--bm-sable); }
.bm-hoarding__crane .bm-crane__hook { --hook-right: 18%; --cable: 70px; }
.bm-main > .bm-hoarding--hero + * { padding-top: 72px; }

/* ── Sections ─────────────────────────────────────── */
.bm-section { padding-block: var(--bm-section-y); }
.bm-section__head { margin-bottom: 1.75rem; max-width: 780px; }
.bm-section__head > * + * { margin-top: 0.6rem; }
.bm-section__title { margin: 0; font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.7rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; }
.bm-section__intro { color: var(--bm-meta); font-size: 1.06rem; max-width: 66ch; margin-bottom: 0; }
.bm-section__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.bm-section__bar .bm-section__head { margin-bottom: 0; }

/* ── Heroes (§6) ──────────────────────────────────── */
.bm-hero { background: var(--bm-craie); }
.bm-hero__inner { padding-block: 40px 48px; }
.bm-hero__inner > * { margin-block: 0; }
.bm-hero__text > * + *, .bm-hero--listing .bm-hero__inner > * + *, .bm-hero--page .bm-hero__inner > * + * { margin-block-start: 1.15rem; }
.bm-hero__text > * { margin-bottom: 0; }
.bm-hero__title { margin: 0; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); font-weight: 900; letter-spacing: -0.022em; line-height: 1.04; }
.bm-hero__title--xl { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.03em; }
.bm-hero__page { font-weight: 700; color: var(--bm-meta); }
.bm-hero__lead, .bm-lead { margin: 0; max-width: 58ch; color: var(--bm-meta); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; }
.bm-hero__actions { margin-top: 1.5rem; }
.bm-hero--post .bm-hero__inner { display: grid; gap: 2rem; padding-block: 32px 40px; }
.bm-hero--page .bm-hero__inner { padding-block: 44px 48px; }
.bm-main > .bm-jib--section + .bm-figure { margin-top: 6px; }
.bm-figure img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--bm-radius-lg); }
.bm-hero--listing { border-bottom: 1px solid var(--bm-trait); }
.bm-hero--listing .bm-chips { margin-top: 1.25rem; }
.bm-hero--404 .bm-hero__inner { display: grid; gap: 2.5rem; padding-block: 48px 72px; }

/* Keys (post hero side) */
.bm-keys { display: grid; gap: 1rem; align-content: start; }
.bm-keys > * { margin: 0 !important; }
.bm-block {
	box-sizing: border-box;
	padding: 1.2rem 1.25rem;
	border-radius: var(--bm-radius-lg);
	background: var(--bm-mortar), var(--bm-sable);
	box-shadow: inset 0 -5px 0 rgb(31 42 51 / 0.12);
	color: var(--bm-ardoise);
}
.bm-block__n { margin: 0; color: var(--bm-brique-text); font: 800 0.9rem/1 var(--bm-heading); }
.bm-block__title { margin: 0.4rem 0 0; font: 900 1.45rem/1.1 var(--bm-heading); }
.bm-block__text { margin: 0.5rem 0 0; font-size: 0.98rem; }
.bm-block__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.3rem; color: var(--bm-ardoise); font: 700 1rem/1 var(--bm-heading); }

/* ── Category hero « Le panneau de chantier » ─────── */
.bm-thero {
	border-bottom: 1px solid var(--bm-trait);
	background-color: #F3EBDB;
	overflow: hidden;
}
.bm-thero__inner { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 32px 40px; }
.bm-thero__text, .bm-thero__media { min-width: 0; }
/* Phones and tablets: tag, H1, lead, photo, board, then the guide rows. */
.bm-thero__text { display: contents; }
.bm-thero__media { order: 1; margin-top: 1.5rem; }
.bm-thero .bm-tg { order: 2; }
.bm-thero__kind { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.9rem; color: var(--bm-brique-text); font: 700 1rem/1.3 var(--bm-heading); }
.bm-thero__title { margin: 0; color: var(--bm-ardoise); font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.7rem); font-weight: 900; letter-spacing: -0.028em; line-height: 1.04; }
.bm-thero__lead { margin: 1rem 0 0; max-width: 60ch; color: #3A4650; font-size: 1.08rem; line-height: 1.6; }
.bm-tg { display: grid; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: 620px; }
.bm-tg a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px;
	align-items: center;
	column-gap: 0.9rem;
	min-height: 56px;
	padding: 0.7rem 0.9rem 0.7rem 1rem;
	border: 1px solid var(--bm-trait);
	border-radius: var(--bm-radius);
	background: var(--bm-base);
	color: var(--bm-ardoise);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}
.bm-tg a:hover { border-color: var(--bm-ardoise); transform: translateX(3px); }
.bm-tg .is-first a { border-color: var(--bm-ardoise); box-shadow: 0 3px 0 var(--bm-ardoise); }
.bm-tg__start { grid-column: 1 / -1; margin-bottom: 0.3rem; color: var(--bm-brique-text); font: 800 0.78rem/1 var(--bm-heading); letter-spacing: 0.06em; text-transform: uppercase; }
.bm-tg__text { display: grid; gap: 0.2rem; min-width: 0; }
.bm-tg__text b { font: 700 1.02rem/1.3 var(--bm-heading); }
.bm-tg__text span { color: var(--bm-meta); font-size: 0.88rem; }
.bm-tg svg { width: 22px; height: 22px; color: var(--bm-brique-text); }
.bm-tg .is-first svg { grid-row: 2; grid-column: 2; }

.bm-thero__media { position: relative; display: grid; gap: 1rem; }
.bm-thero__photo { margin: 0; overflow: hidden; border-radius: var(--bm-radius-lg); background: var(--bm-sable); aspect-ratio: 16 / 10; }
.bm-thero__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bm-board {
	position: relative;
	box-sizing: border-box;
	padding: 1rem 1.1rem 1.1rem;
	border: 2px solid var(--bm-brique);
	border-radius: 8px;
	outline: 6px solid var(--bm-base);
	background: var(--bm-base);
	box-shadow: 0 16px 34px rgb(31 42 51 / 0.18);
	color: var(--bm-ardoise);
}
.bm-board__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.7rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--bm-ardoise); font: 800 0.95rem/1.1 var(--bm-heading); }
.bm-board__head b { padding: 0.3em 0.5em; border-radius: 4px; background: var(--bm-ardoise); color: var(--bm-sable); font-size: 0.78rem; white-space: nowrap; }
.bm-board__rows { display: grid; margin: 0; }
.bm-board__rows > div { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px dashed var(--bm-trait); }
.bm-board__rows dt { color: var(--bm-meta); font: 800 0.7rem/1.3 var(--bm-heading); letter-spacing: 0.06em; text-transform: uppercase; }
.bm-board__rows dd { margin: 0; font: 700 0.95rem/1.35 var(--bm-heading); }
.bm-board__rows dd.bm-num { font-size: 1.15rem; font-weight: 900; }
.bm-board__rows a { color: var(--bm-brique-text); text-underline-offset: 3px; }
.bm-board__topics dd { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bm-board__topics a, .bm-board__topics span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 0.5em; border-radius: 4px; background: var(--bm-craie); border: 1px solid var(--bm-trait); color: var(--bm-ardoise); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.bm-board__topics a:hover { border-color: var(--bm-ardoise); }
.bm-board__devis { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 0.9rem; padding: 0 1rem; border-radius: var(--bm-radius); background: var(--bm-brique-text); box-shadow: 0 3px 0 #7E2A1A; color: var(--bm-base); font: 700 0.98rem/1.2 var(--bm-heading); text-align: center; text-decoration: none; }
.bm-board__devis:hover { background: var(--bm-ardoise); box-shadow: 0 3px 0 #0E151A; }
.bm-board__posts { display: none; }
@media (prefers-reduced-motion: reduce) { .bm-tg a:hover { transform: none; } }

/* ── Cards ────────────────────────────────────────── */
.bm-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.bm-cards > li { margin: 0; display: flex; }
.bm-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--bm-trait); border-radius: var(--bm-radius-lg); background: var(--bm-base); transition: border-color 0.15s, box-shadow 0.15s; }
.bm-card:hover { border-color: var(--bm-ardoise); box-shadow: 0 16px 28px -22px rgb(31 42 51 / 0.6); }
.bm-card:focus-within { outline: 3px solid var(--bm-focus); outline-offset: 2px; }
.bm-card :focus-visible { outline: none; }
.bm-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bm-sable); }
.bm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-card__placeholder { display: grid; place-items: center; height: 100%; background: var(--bm-mortar), var(--bm-sable); color: var(--bm-ardoise); }
.bm-card__placeholder .bm-ticon { width: 46px; height: 46px; }
.bm-card__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.05rem 1.2rem 1.3rem; }
.bm-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0; color: var(--bm-meta); font: 700 0.875rem/1.3 var(--bm-heading); }
.bm-card__title { margin: 0; font-size: 1.22rem; font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; }
.bm-card__title a { color: var(--bm-ardoise); text-decoration: none; }
.bm-card__title a::after { content: ""; position: absolute; inset: 0; }
.bm-card:hover .bm-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.bm-card__excerpt { margin: 0; color: var(--bm-meta); font-size: 0.98rem; line-height: 1.55; }

/* ── Post body ────────────────────────────────────── */
.bm-entry { padding-block: 40px 56px; }
.bm-prose > h2 { margin-top: 2.4em; }
.bm-prose > h3 { margin-top: 1.8em; }
.bm-prose > :first-child { margin-top: 0; }
.bm-prose a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.bm-prose a:hover { text-decoration-thickness: 2px; }
.bm-prose img { border-radius: var(--bm-radius); }
.bm-section--related { padding-top: 8px; }

/* ── Listings ─────────────────────────────────────── */
.bm-listing { padding-block: 40px 64px; }
.bm-query > * + * { margin-top: 2.5rem; }
.bm-pagination { gap: 0.4rem; flex-wrap: wrap; font: 700 1rem/1 var(--bm-heading); }
.bm-pagination a, .bm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--bm-trait); border-radius: var(--bm-radius); background: var(--bm-base); color: var(--bm-ardoise); text-decoration: none; }
.bm-pagination a:hover { border-color: var(--bm-ardoise); }
.bm-pagination .page-numbers.current { background: var(--bm-ardoise); border-color: var(--bm-ardoise); color: var(--bm-base); }
.bm-pagination .page-numbers.dots { border: 0; background: none; }
.bm-empty { padding: 1.5rem; border: 2px dashed #C9BC9E; border-radius: var(--bm-radius-lg); background: var(--bm-base); }
.bm-empty__text { margin: 0 0 1rem; font-size: 1.06rem; }

/* ── FAQ « Les réponses du chantier » (inc/45-faq.php) ── */
:root { interpolate-size: allow-keywords; }
.bm-faqx { display: grid; gap: 1.5rem; grid-template-areas: "head" "list" "card"; align-items: start; }
.bm-faqx__aside { display: contents; }
.bm-faqx__head { grid-area: head; }
.bm-faqx__head > * + * { margin-top: 0.6rem; }
.bm-faqx__head .bm-section__intro { margin-bottom: 0; max-width: 44ch; }
.bm-faqx__list { grid-area: list; display: grid; gap: 12px; counter-reset: bm-faq; }
.bm-faqx__card { grid-area: card; padding: 1.25rem 1.2rem 1.2rem; border: 1px solid var(--bm-trait); border-top: 4px solid var(--bm-brique); border-radius: var(--bm-radius-lg); background: var(--bm-base); }
.bm-faqx__crane { display: block; width: 44px; height: 44px; }
.bm-faqx__card-title { margin: 0.6rem 0 0; font: 800 1.2rem/1.2 var(--bm-heading); }
.bm-faqx__card-text { margin: 0.35rem 0 0; color: var(--bm-meta); font-size: 0.98rem; line-height: 1.5; }
.bm-faqx__card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.bm-faqx__card-actions .bm-btn { flex: 1 1 auto; }

.bm-faqx__item {
	counter-increment: bm-faq;
	margin: 0;
	border-radius: 12px;
	background: var(--bm-mortar), var(--bm-sable);
	box-shadow: inset 0 -3px 0 rgb(31 42 51 / 0.1);
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
	overflow: hidden;
}
.bm-faqx__item:hover { transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgb(31 42 51 / 0.1), 0 14px 24px -18px rgb(31 42 51 / 0.55); }
.bm-faqx__item summary {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-height: 60px;
	padding: 0.65rem 0.75rem 0.65rem 1rem;
	cursor: pointer;
	list-style: none;
	color: var(--bm-ardoise);
}
.bm-faqx__item summary::-webkit-details-marker { display: none; }
.bm-faqx__item summary::before {
	content: counter(bm-faq, decimal-leading-zero);
	display: grid;
	place-items: center;
	flex: none;
	min-width: 2.1em;
	height: 28px;
	border-radius: 5px;
	background: var(--bm-brique-text);
	color: var(--bm-base);
	font: 800 0.85rem/1 var(--bm-heading);
	font-variant-numeric: tabular-nums;
}
.bm-faqx__item summary:focus-visible { outline: 3px solid var(--bm-focus); outline-offset: -3px; border-radius: 12px; }
.bm-faqx__q { flex: 1 1 auto; min-width: 0; font: 700 1.06rem/1.35 var(--bm-heading); }
.bm-faqx__toggle {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bm-base);
	box-shadow: inset 0 0 0 2px var(--bm-ardoise);
	transition: transform 0.25s ease-out, background-color 0.2s;
}
.bm-faqx__toggle::before, .bm-faqx__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: var(--bm-ardoise); }
.bm-faqx__toggle::after { transform: rotate(90deg); }
.bm-faqx__item[open] .bm-faqx__toggle { transform: rotate(45deg); background: var(--bm-brique-text); box-shadow: none; }
.bm-faqx__item[open] .bm-faqx__toggle::before, .bm-faqx__item[open] .bm-faqx__toggle::after { background: var(--bm-base); }
.bm-faqx__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete; }
.bm-faqx__item[open]::details-content { block-size: auto; }
.bm-faqx__a { margin: 0 0.6rem 0.6rem; padding: 0.95rem 1.1rem 0.6rem; border-left: 4px solid var(--bm-brique); border-radius: 8px; background: var(--bm-base); color: var(--bm-ardoise); font-family: var(--wp--preset--font-family--body); line-height: 1.65; }
.bm-faqx__a > * { margin: 0 0 0.6rem; }
.bm-faqx__a p { color: var(--bm-meta); }
.bm-faqx--inline { display: block; margin-block: 1rem 2rem; }
.bm-faqx--nocard { grid-template-areas: "head" "list"; }

@media (min-width: 1024px) {
	.bm-faqx { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); grid-template-areas: none; column-gap: 3.5rem; }
	.bm-faqx__aside { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 24px; grid-column: 1; grid-row: 1; }
	.bm-faqx__head, .bm-faqx__card, .bm-faqx__list { grid-area: auto; }
	.bm-faqx__list { grid-column: 2; grid-row: 1; }
	.bm-faqx--inline .bm-faqx__list { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-faqx__item, .bm-faqx__toggle { transition: none; }
	.bm-faqx__item:hover { transform: none; }
	.bm-faqx__item::details-content { transition: none; }
}

/* ── 404 « Cet étage n’est pas encore construit » ── */
.bm-missing { position: relative; box-sizing: border-box; margin: 0; width: 100%; max-width: 440px; justify-self: center; padding: 92px 0 0 80px; border-radius: var(--bm-radius-lg); background: var(--bm-ciel-pale); overflow: hidden; }
.bm-missing .bm-crane { --mast-x: 26px; }
.bm-missing .bm-crane__hook { --hook-right: 16%; --cable: 6px; }
.bm-missing__house { margin-right: 20px; }
.bm-missing__gap { display: flex; align-items: center; padding-left: 1rem; min-height: 52px; margin: 0 0 6px; border: 2px dashed var(--bm-brique); border-radius: 6px; color: var(--bm-brique-text); font: 800 0.95rem/1 var(--bm-heading); background: rgb(255 255 255 / 0.6); }
.bm-missing ol { margin: 0; padding: 0; list-style: none; border-bottom: 3px solid var(--bm-ardoise); }
.bm-missing li + li span { border-top: 2px solid var(--bm-ciel-pale); }
.bm-missing li span { display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem; background: var(--bm-sable); color: var(--bm-brique-text); font: 800 0.85rem/1 var(--bm-heading); }
.bm-missing li:last-child span { background: var(--bm-sable-2); }

/* ── Footer ───────────────────────────────────────── */
.bm-footer { background: var(--bm-ardoise); color: var(--bm-base); }
.bm-footer__inner { display: grid; gap: 2.25rem; padding-block: 48px 40px; }
.bm-footer__logo { display: inline-block; }
.bm-footer__logo img { display: block; width: 190px; height: auto; }
.bm-footer__tagline { margin: 1rem 0 0; font: 800 1.25rem/1.2 var(--bm-heading); }
.bm-footer__pitch { margin: 0.5rem 0 1.25rem; max-width: 40ch; color: rgb(250 247 241 / 0.82); font-size: 0.98rem; line-height: 1.55; }
.bm-footer__title { margin: 0 0 0.6rem; color: var(--bm-sable); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.bm-footer__links { margin: 0; padding: 0; list-style: none; }
.bm-footer__links li { display: flex; align-items: center; flex-wrap: wrap; column-gap: 0.5rem; }
.bm-footer__links a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--bm-base); text-decoration: none; font-size: 1rem; }
.bm-footer__links a:hover { color: var(--bm-sable); text-decoration: underline; }
.bm-footer .bm-level { background: var(--bm-sable); color: var(--bm-ardoise); }
.bm-footer__count { color: rgb(250 247 241 / 0.75); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.bm-footer .bm-soon { background: transparent; border-color: rgb(250 247 241 / 0.3); color: rgb(250 247 241 / 0.85); }
.bm-footer .bm-soon .bm-hook { color: var(--bm-sable); }
.bm-footer__ground { border-top: 1px solid rgb(250 247 241 / 0.14); }
.bm-footer__inner--ground { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 24px 30px; }
.bm-footer__disclaimer, .bm-footer__site { margin: 0; color: rgb(250 247 241 / 0.78); font-size: 0.9rem; line-height: 1.55; }
.bm-footer__site { font-family: var(--bm-heading); font-weight: 700; }

/* ── Tablet ≥ 600 ─────────────────────────────────── */
@media (min-width: 600px) {
	:root { --bm-gutter: 24px; --bm-section-y: 72px; }
	.bm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
	.bm-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-hero--404 .bm-hero__inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
	.bm-hoarding__crane { display: block; }
	.bm-hoarding--hero .bm-hoarding__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* ── Laptop ≥ 1024 ────────────────────────────────── */
@media (min-width: 1024px) {
	:root { --bm-gutter: 32px; --bm-section-y: 88px; }
	.bm-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bm-hero--post .bm-hero__inner { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; gap: 3.5rem; padding-block: 48px 48px; }
	.bm-footer__inner { grid-template-columns: 1.5fr 1.3fr 1fr 1fr; gap: 2.5rem; }
	.bm-thero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; column-gap: 3rem; padding-block: 48px 56px; }
	.bm-thero__text { display: block; }
	.bm-thero__media { display: block; margin-top: 0; padding-bottom: 150px; }
	.bm-thero__photo { aspect-ratio: auto; height: clamp(380px, 32vw, 420px); }
	.bm-thero__media.is-nophoto { padding-bottom: 0; }
	.bm-board { position: absolute; left: -28px; bottom: 0; width: clamp(320px, 30vw, 360px); }
	.bm-thero__media.is-nophoto .bm-board { position: relative; left: 0; }
	.bm-board__posts { display: flex; justify-content: space-between; position: absolute; left: 22%; right: 22%; bottom: -14px; height: 12px; }
	.bm-board__posts::before, .bm-board__posts::after { content: ""; width: 8px; height: 100%; border-radius: 0 0 2px 2px; background: var(--bm-ardoise); }
	.bm-hoarding--hero .bm-hoarding__inner { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.bm-hero__text > .bm-lead, .bm-hero__inner > .bm-lead { margin-top: 1rem; }
.bm-hero__text > .bm-hero__lead, .bm-hero__text > .bm-hero__actions { margin-top: 1.1rem; }

/* ── Page cards in listings (inc/40-sections.php bm_page_card) ── */
.bm-card--devis { border-color: var(--bm-brique); }
.bm-card__media--devis { position: relative; aspect-ratio: 16 / 10; background: repeating-linear-gradient(90deg, var(--bm-ardoise) 0 46px, #17212A 46px 49px); border-bottom: 8px solid var(--bm-brique); }
.bm-card__media--devis .bm-crane { --mast-x: 18%; --jib-y: 26px; --ink: var(--bm-sable); }
.bm-card__media--devis .bm-crane__hook { --hook-right: 30%; --cable: 64px; }
.bm-card--devis .bm-card__body { flex: 1 1 auto; }
.bm-card--devis .bm-card__title a { color: var(--bm-brique-text); }
.bm-card__cta { align-self: flex-start; margin-top: auto; pointer-events: none; }
.bm-promises--mini { gap: 0.35rem; margin: 0.2rem 0 0.6rem; }
.bm-promises--mini .bm-promises__icon { width: 28px; height: 28px; border-radius: 7px; }
.bm-promises--mini .bm-promises__icon .bm-ticon { width: 18px; height: 18px; }
.bm-promises--mini .bm-promises__text { flex-direction: row; flex-wrap: wrap; gap: 0 0.4rem; align-items: baseline; }
.bm-promises--mini .bm-promises__text strong { font-size: 0.92rem; }
.bm-promises--mini .bm-promises__text span { font-size: 0.85rem; }
.bm-card__media--calc { display: grid; place-items: center; background: var(--bm-mortar), var(--bm-sable); color: var(--bm-brique-text); }
.bm-card__media--calc .bm-ticon { width: 56px; height: 56px; }
.bm-card--page { border-style: dashed; background: var(--bm-craie); }
.bm-card--page .bm-card__body { padding-block: 1.3rem; }

/* ── Post hero « fiche technique » (no large photo; the image stays for og:image and schema) ── */
.bm-hero--post { border-bottom: 0; }
.bm-hero--post .bm-hero__inner { padding-block: 32px 32px; }
.bm-hero--post .bm-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.bm-fiche { position: relative; align-self: start; border: 1px solid var(--bm-trait); border-radius: var(--bm-radius-lg); background: var(--bm-base); box-shadow: 0 22px 40px -32px rgb(31 42 51 / 0.6); overflow: hidden; }
.bm-fiche__head { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.1rem; background: var(--bm-ardoise); color: var(--bm-base); }
.bm-fiche__thumb { flex: none; width: 76px; height: 58px; overflow: hidden; border-radius: 8px; border: 2px solid var(--bm-sable); }
.bm-fiche__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-fiche__title { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.bm-fiche__title span { color: var(--bm-sable); font: 700 0.8rem/1.1 var(--bm-heading); }
.bm-fiche__title b { font: 900 1.25rem/1.1 var(--bm-heading); }
.bm-fiche__list { margin: 0; padding: 0.35rem 1.1rem 0.2rem; }
.bm-fiche__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed #D5C9B0; }
.bm-fiche__list > div:last-child { border-bottom: 0; }
.bm-fiche__list dt { color: var(--bm-meta); font-size: 0.92rem; line-height: 1.35; }
.bm-fiche__list dd { margin: 0; font: 700 0.95rem/1.35 var(--bm-heading); text-align: right; }
.bm-fiche__gain { margin: 0.4rem 1.1rem 0.6rem !important; }
.bm-fiche__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin: 0; padding: 0.55rem 1.1rem 0.7rem; border-top: 1px solid var(--bm-trait); background: var(--bm-craie); color: var(--bm-meta); font-size: 0.875rem; }
.bm-fiche__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bm-brique-text); font: 700 0.92rem/1 var(--bm-heading); }
.bm-single > .bm-jib--section { margin-bottom: 0; }
.bm-single .bm-entry { padding-top: 36px; }
@media (max-width: 599px) {
	.bm-hero--post .bm-hero__inner { gap: 1.25rem; padding-block: 24px 24px; }
	.bm-fiche__list > div { grid-template-columns: 1fr; gap: 0.15rem; }
	.bm-fiche__list dd { text-align: left; }
}
.bm-post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0 !important; padding: 0; list-style: none; }
.bm-post-meta li { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; padding: 0 0.8rem 0 0.6rem; border: 1px solid var(--bm-trait); border-radius: 999px; background: var(--bm-base); font: 700 0.875rem/1 var(--bm-heading); }
.bm-post-meta .bm-ticon { width: 18px; height: 18px; color: var(--bm-brique-text); }

/* Post hero: a medium photo with the « Repères clés » card overlapping it; « Au sommaire » chips on the left. */
.bm-post-aside { display: flex; flex-direction: column; min-width: 0; }
.bm-post-photo { margin: 0; overflow: hidden; border-radius: var(--bm-radius-lg); aspect-ratio: 16 / 10; background: var(--bm-sable); box-shadow: 0 22px 40px -30px rgb(31 42 51 / 0.6); }
.bm-post-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-post-aside.has-photo .bm-fiche { position: relative; z-index: 1; margin: -64px 16px 0; }
.bm-fiche__head { min-height: 52px; }
.bm-post-toc { margin-top: 1.4rem !important; padding: 1rem 1.1rem 0.6rem; border: 1px solid var(--bm-trait); border-radius: var(--bm-radius-lg); background: var(--bm-base); max-width: 620px; }
.bm-post-toc__title { margin: 0 0 0.3rem; font: 800 1rem/1.2 var(--bm-heading); }
.bm-post-toc ol { margin: 0; padding: 0; list-style: none; }
.bm-post-toc li + li { border-top: 1px dashed #D5C9B0; }
.bm-post-toc a { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; color: var(--bm-ardoise); font-size: 0.98rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.bm-post-toc a:hover { color: var(--bm-brique-text); text-decoration: underline; }
.bm-post-toc a span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--bm-sable); color: var(--bm-brique-text); font: 800 0.8rem/1 var(--bm-heading); }
.bm-prose h2[id] { scroll-margin-top: 24px; }
@media (min-width: 1024px) {
	.bm-hero--post .bm-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.95fr); align-items: start; }
	.bm-post-photo { aspect-ratio: auto; height: 300px; }
}
@media (max-width: 599px) {
	.bm-post-aside.has-photo .bm-fiche { margin: -36px 10px 0; }
}
@media (max-width: 1023px) {
	.bm-hero--post .bm-hero__inner { display: flex; flex-direction: column; gap: 1rem; }
	.bm-hero--post .bm-hero__text { display: contents; }
	.bm-hero--post .bm-hero__text > * { margin: 0 !important; }
	.bm-hero--post .bm-post-aside { order: 4; margin-top: 0.4rem; }
	.bm-hero--post .bm-post-meta { order: 5; }
	.bm-hero--post .bm-post-toc { order: 6; }
}
.bm-post-aside .bm-fiche { align-self: stretch; }

/* « Au sommaire » inside the article: a closed bar, a numbered list (2 columns, column-first, at ≥ 1024 px). */
.bm-toc { margin: 1.75rem 0 2rem; border: 1px solid var(--bm-trait); border-left: 5px solid var(--bm-ardoise); border-radius: 12px; background: var(--bm-base); scroll-margin-top: 24px; }
.bm-toc summary { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.5rem 0.75rem 0.5rem 1rem; cursor: pointer; list-style: none; }
.bm-toc summary::-webkit-details-marker { display: none; }
.bm-toc summary:focus-visible { outline: 3px solid var(--bm-focus); outline-offset: 2px; border-radius: 10px; }
.bm-toc__title { display: flex; align-items: center; gap: 0.55rem; flex: 1 1 auto; font: 800 1.05rem/1.2 var(--bm-heading); }
.bm-toc__title .bm-ticon { width: 22px; height: 22px; color: var(--bm-brique-text); }
.bm-toc__count { flex: none; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--bm-sable); font: 700 0.82rem/1 var(--bm-heading); }
.bm-toc__toggle { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bm-ardoise); transition: transform 0.2s ease-out, background-color 0.2s; }
.bm-toc__toggle::before, .bm-toc__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--bm-ardoise); }
.bm-toc__toggle::after { transform: rotate(90deg); }
.bm-toc[open] .bm-toc__toggle { transform: rotate(45deg); background: var(--bm-brique-text); box-shadow: none; }
.bm-toc[open] .bm-toc__toggle::before, .bm-toc[open] .bm-toc__toggle::after { background: var(--bm-base); }
.bm-toc__list { margin: 0; padding: 0.25rem 1rem 0.9rem; list-style: none; border-top: 1px solid var(--bm-trait); }
.bm-toc__list li { break-inside: avoid; border-bottom: 1px dashed #D5C9B0; }
.bm-toc__list a { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; padding: 0.55rem 0; color: var(--bm-ardoise); font-size: 0.98rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.bm-toc__list a:hover { color: var(--bm-brique-text); text-decoration: underline; }
.bm-toc__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--bm-sable); color: var(--bm-brique-text); font: 800 0.8rem/1 var(--bm-heading); }
@media (min-width: 1024px) { .bm-toc__list { columns: 2; column-gap: 2rem; } }
.bm-post-meta__toc a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; color: var(--bm-brique-text); text-decoration: none; }
.bm-post-meta__toc a:hover { text-decoration: underline; }
.bm-post-meta li.bm-post-meta__toc { padding: 0 0.8rem 0 0.6rem; }
@media (min-width: 1024px) { .bm-hero--post .bm-hero__inner { align-items: center; } }
