/* Beemagik : sections des pages. Source : maquette lestudio4 (style.css v58), portée à l'identique.
 * Préfixe bm- sur chaque classe, is- sur les états, variables --bm-*.
 * Hors périmètre, non portés : bandeau de relecture (#reviewbar, .todo*, .review-note),
 * formulaire (lot 4), en-tête et pied de page (header-footer.css), .reviews et
 * .pcard.placeholder (couleurs de relecture, jamais affichés). */

/* Piège du bloc Groupe : il pose une marge haute entre ses enfants (blockGap).
 * Les enfants directs des grilles et des conteneurs flex portés n'en reçoivent pas. */
.bm-paths > *,
.bm-infos3 > *,
.bm-infos3 > * > *,
.bm-opts > *,
.bm-inst > *,
.bm-zones > *,
.bm-howgrid > *,
.bm-timeline > *,
.bm-about > *,
.bm-contact-strip > *,
.bm-band-idf > *,
.bm-devis-grid > *,
.bm-know > *,
.bm-path > *,
.bm-opt > *,
.bm-step-title > *,
.bm-simple-box > * {
	margin-block: 0;
}

/* bandeau d'accueil */
.bm-hero {
	position: relative;
	min-height: 460px;
	height: 62vh;
	max-height: 620px;
	background: #ddd center 35%/cover no-repeat;
	display: flex;
	align-items: flex-end;
}

.bm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(40, 25, 30, .05) 0%, rgba(40, 25, 30, .15) 45%, rgba(40, 25, 30, .62) 100%);
}

.bm-hero .bm-wrap {
	position: relative;
	z-index: 2;
	color: #fff;
	padding-bottom: 120px;
	width: 100%;
}

.bm-hero .bm-eyebrow {
	opacity: .95;
}

.bm-hero h1 {
	max-width: 760px;
	margin-top: 10px;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.bm-paths {
	position: relative;
	z-index: 5;
	margin-top: -90px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.bm-path {
	border-radius: 24px;
	padding: 30px 30px 28px;
	box-shadow: var(--bm-ombre);
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
	border-top: 6px solid;
}

.bm-path.bm-sens {
	border-color: var(--bm-rose-bouton);
	background: #fff;
}

.bm-path.bm-idf {
	border-color: var(--bm-vert-bouton);
	background: #fff;
}

.bm-path .bm-tag {
	align-self: flex-start;
	font: 600 12.5px Outfit, system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.bm-path.bm-sens .bm-tag {
	background: var(--bm-rose-clair);
	color: var(--bm-encre);
}

.bm-path.bm-idf .bm-tag {
	background: var(--bm-vert-clair);
	color: var(--bm-encre);
}

.bm-path h2 {
	font-size: 26px;
	margin: 4px 0 0;
}

.bm-path p {
	margin: 0;
	font-size: 17px;
}

.bm-path .bm-min {
	font: 700 18px Outfit, system-ui, sans-serif;
	color: var(--bm-encre);
}

.bm-path .bm-btn {
	align-self: flex-start;
	margin-top: 8px;
}

.bm-path ul {
	margin: 0;
	padding-left: 18px;
	color: #4F4246;
	font-size: 14.5px;
}

.bm-infos3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 34px 0 10px;
}

.bm-infos3 div {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 15px;
	padding: 16px 18px;
	border: 1px solid var(--bm-filet);
	border-radius: 16px;
	background: #fff;
}

.bm-infos3 span {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bm-encre);
	color: #fff;
	font: 700 14px Outfit, system-ui, sans-serif;
	display: grid;
	place-items: center;
}

@media (max-width: 820px) {
	.bm-hero {
		height: auto;
		min-height: 300px;
	}

	.bm-hero .bm-wrap {
		padding-bottom: 84px;
		padding-top: 120px;
	}

	.bm-paths {
		grid-template-columns: 1fr;
		margin-top: -60px;
		gap: 14px;
	}

	.bm-path {
		padding: 22px;
	}

	.bm-infos3 {
		grid-template-columns: 1fr;
	}

	.bm-hero .bm-eyebrow {
		font-size: 11px;
		letter-spacing: .1em;
	}

	.bm-pcard .bm-ph {
		aspect-ratio: 16/10;
	}
}

/* sections génériques */
.bm-sec-head {
	max-width: 760px;
	margin-bottom: 28px;
}

.bm-page-head {
	padding: 56px 0 34px;
}

.bm-page-head.bm-sens {
	background: linear-gradient(180deg, var(--bm-rose-50), var(--bm-sable));
}

.bm-page-head.bm-idf {
	background: linear-gradient(180deg, var(--bm-vert-50), var(--bm-sable));
}

.bm-zone-badge {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font: 600 12.5px Outfit, system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 7px 13px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.bm-zone-badge.bm-sens {
	background: var(--bm-rose-clair);
	color: var(--bm-encre);
}

.bm-zone-badge.bm-idf {
	background: var(--bm-vert-clair);
	color: var(--bm-encre);
}

.bm-know {
	border: 1.5px solid var(--bm-rose-100);
	background: #fff;
	border-radius: var(--bm-r);
	padding: 24px 26px;
	margin-top: 26px;
}

.bm-know :is(h2, h3) {
	margin-bottom: 12px;
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 600;
}

/* Écart voulu avec la maquette (demande du 17/11/2026) : deux colonnes équilibrées
 * au lieu d'une grille. Un point court ne laisse plus de vide à côté d'un point long. */
.bm-know ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 26px;
}

.bm-know li {
	padding-left: 28px;
	position: relative;
	font-size: 15px;
	break-inside: avoid;
	margin: 0 0 12px;
}

.bm-know li:last-child {
	margin-bottom: 0;
}

.bm-know li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bm-rose);
}

@media (max-width: 760px) {
	.bm-know ul {
		columns: 1;
	}
}

.bm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 22px;
}

.bm-chip {
	border: 1.5px solid var(--bm-filet);
	background: #fff;
	border-radius: 999px;
	padding: 9px 15px;
	font: 500 14.5px "DM Sans", system-ui, sans-serif;
	cursor: pointer;
	color: var(--bm-encre);
}

.bm-chip.is-on {
	background: var(--bm-encre);
	border-color: var(--bm-encre);
	color: #fff;
}

.bm-chip.bm-simple.is-on {
	background: var(--bm-rose-deep);
	border-color: var(--bm-rose-deep);
}

.bm-simple-box {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--bm-rose-50);
	border-radius: var(--bm-r);
	padding: 18px 22px;
	margin-bottom: 22px;
}

.bm-simple-box .bm-ico {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #fff;
	display: grid;
	place-items: center;
	font-size: 22px;
}

.bm-simple-box p {
	margin: 0;
	font-size: 15px;
}

.bm-grid-prod {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.bm-pcard {
	border: 1px solid var(--bm-filet);
	border-radius: var(--bm-r);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.bm-pcard .bm-ph {
	position: relative;
	background: var(--bm-rose-50);
	aspect-ratio: 1/0.82;
	overflow: hidden;
}

.bm-pcard .bm-ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bm-pcard.bm-aire .bm-ph {
	background: var(--bm-vert-50);
}

.bm-pcard .bm-flag {
	position: absolute;
	left: 12px;
	top: 12px;
	background: #fff;
	color: var(--bm-rose-deep);
	font: 600 12px Outfit, system-ui, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
}

.bm-pcard .bm-bd {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.bm-pcard h3 {
	margin: 0;
	font-size: 19px;
}

.bm-specs {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	display: grid;
	gap: 6px;
}

.bm-specs li {
	display: flex;
	gap: 8px;
}

.bm-specs b {
	flex: none;
	min-width: 86px;
	font-weight: 500;
	color: var(--bm-muted);
}

.bm-price {
	font: 700 22px Outfit, system-ui, sans-serif;
	margin-top: 2px;
}

.bm-price small {
	font: 500 13px "DM Sans", system-ui, sans-serif;
	color: var(--bm-muted);
	display: block;
	margin-top: 2px;
}

.bm-mention {
	font-size: 12.5px;
	color: var(--bm-muted);
	background: var(--bm-creme);
	border-radius: 10px;
	padding: 10px 12px;
	margin: 0;
}

.bm-pcard .bm-btn {
	margin-top: auto;
}

.bm-band-idf {
	background: var(--bm-vert-bouton);
	color: var(--bm-encre);
	border-radius: var(--bm-r);
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 26px;
}

.bm-band-idf b {
	font: 700 20px Outfit;
}

.bm-band-idf span {
	font-size: 15px;
}

.bm-band-idf.bm-sens {
	background: var(--bm-rose-bouton);
}

.bm-ev-hero {
	position: relative;
	background: #cbd center/cover;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	color: #fff;
}

.bm-ev-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(40, 25, 30, .05), rgba(40, 25, 30, .65));
}

.bm-ev-hero .bm-wrap {
	position: relative;
	z-index: 2;
	padding-bottom: 34px;
	width: 100%;
}

.bm-ev-hero .bm-lead {
	color: #fff;
}

.bm-step-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 8px;
}

.bm-step-title .bm-n {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--bm-vert-bouton);
	color: var(--bm-encre);
	font: 700 18px Outfit, system-ui, sans-serif;
	display: grid;
	place-items: center;
	flex: none;
}

.bm-step-title h2 {
	margin: 0;
}

.bm-opts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 18px;
}

.bm-opt {
	border: 1px solid var(--bm-filet);
	border-radius: 16px;
	padding: 16px 18px;
	background: #fff;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	align-items: flex-start;
}

.bm-opt :is(h2, h3, h4) {
	margin: 0 0 4px;
	font-size: 17px;
}

.bm-opt p {
	margin: 0;
	font-size: 14.5px;
	color: var(--bm-muted);
}

.bm-pill {
	flex: none;
	font: 600 12px Outfit, system-ui, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--bm-vert-clair);
	color: var(--bm-encre);
}

.bm-pill.bm-inc {
	background: var(--bm-vert-bouton);
	color: var(--bm-encre);
}

@media (max-width: 760px) {
	.bm-opts {
		grid-template-columns: 1fr;
	}
}

.bm-transp {
	border: 2px solid var(--bm-vert-bouton);
	border-radius: var(--bm-r);
	padding: 26px 28px;
	background: var(--bm-vert-50);
}

.bm-transp p {
	margin: 0;
	font-size: 16.5px;
}

.bm-inst {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 16px;
}

.bm-inst div {
	background: #fff;
	border: 1px solid var(--bm-filet);
	border-radius: 16px;
	padding: 18px;
}

.bm-inst :is(h2, h3, h4) {
	margin: 0 0 6px;
	font-size: 17px;
}

.bm-inst p {
	margin: 0;
	font-size: 14.5px;
	color: var(--bm-muted);
}

@media (max-width: 760px) {
	.bm-inst {
		grid-template-columns: 1fr;
	}
}

.bm-gal {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.bm-gal figure {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #eee;
}

.bm-gal img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
	transition: transform .4s;
}

.bm-gal figure:hover img {
	transform: scale(1.03);
}

.bm-gal figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(255, 255, 255, .92);
	border-radius: 999px;
	padding: 5px 11px;
	font: 600 12.5px Outfit, system-ui, sans-serif;
	letter-spacing: .04em;
}

.bm-gal .bm-empty {
	grid-column: 1/-1;
	border: 1.5px dashed var(--bm-filet);
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	color: var(--bm-muted);
}

@media (max-width: 820px) {
	.bm-gal {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.bm-gal {
		grid-template-columns: 1fr;
	}
}

.bm-zones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.bm-zone {
	border-radius: var(--bm-r);
	padding: 24px;
	border: 1px solid var(--bm-filet);
}

.bm-zone.bm-sens {
	background: var(--bm-rose-50);
}

.bm-zone.bm-idf {
	background: var(--bm-vert-50);
}

.bm-zone :is(h2, h3, h4) {
	margin-bottom: 10px;
}

.bm-zone ul {
	margin: 0;
	padding-left: 18px;
	font-size: 15px;
}

.bm-zone li {
	margin-bottom: 6px;
}

@media (max-width: 760px) {
	.bm-zones {
		grid-template-columns: 1fr;
	}
}

.bm-rule {
	margin-top: 18px;
	border: 1px solid var(--bm-filet);
	border-radius: var(--bm-r);
	padding: 20px 24px;
	background: #fff;
}

/* La maquette pose margin:0 en style en ligne sur ce paragraphe. */
.bm-rule p {
	margin: 0;
}

.bm-howgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.bm-howgrid > div {
	border: 1px solid var(--bm-filet);
	border-radius: 16px;
	padding: 20px;
	background: #fff;
}

.bm-howgrid :is(h2, h3, h4) {
	font-size: 18px;
}

.bm-howgrid p {
	font-size: 15px;
	margin: 0;
}

@media (max-width: 820px) {
	.bm-howgrid {
		grid-template-columns: 1fr;
	}
}

.bm-timeline {
	counter-reset: s;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.bm-timeline div {
	counter-increment: s;
	border-top: 3px solid var(--bm-rose);
	padding-top: 14px;
}

.bm-timeline div::before {
	content: counter(s);
	font: 700 26px Outfit, system-ui, sans-serif;
	color: var(--bm-rose-deep);
	display: block;
}

.bm-timeline :is(h2, h3, h4) {
	margin: 4px 0 4px;
	font-size: 16px;
}

.bm-timeline p {
	font-size: 14.5px;
	color: var(--bm-muted);
	margin: 0;
}

@media (max-width: 820px) {
	.bm-timeline {
		grid-template-columns: 1fr 1fr;
	}
}

.bm-faq {
	border-bottom: 1px solid var(--bm-filet);
	padding: 16px 2px;
}

.bm-faq summary {
	cursor: pointer;
	font: 600 17px Outfit, system-ui, sans-serif;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.bm-faq summary::-webkit-details-marker {
	display: none;
}

.bm-faq summary::after {
	content: "+";
	font-size: 24px;
	line-height: 1;
	color: var(--bm-rose-deep);
}

.bm-faq[open] summary::after {
	content: "−";
}

.bm-faq p {
	margin: 10px 0 0;
	color: var(--bm-muted);
}

/* devis : grille et encadrés (le formulaire est dans formulaire.css) */
.bm-devis-grid {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 30px;
	align-items: start;
}

@media (max-width: 960px) {
	.bm-devis-grid {
		grid-template-columns: 1fr;
	}
}

.bm-aside {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 14px;
}

.bm-aside .bm-box {
	border-radius: var(--bm-r);
	padding: 20px 22px;
	background: #fff;
}

.bm-aside .bm-box :is(h2, h3, h4) {
	margin: 0 0 8px;
	font-size: 17px;
}

.bm-aside .bm-box p,
.bm-aside .bm-box li {
	font-size: 14.5px;
}

/* La maquette pose margin:0 en style en ligne sur ces paragraphes. */
.bm-aside .bm-box p {
	margin: 0;
}

.bm-aside ul {
	margin: 0;
	padding-left: 18px;
}

/* à propos et bandeau de contact (le pied de page est dans header-footer.css) */
.bm-about {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
}

.bm-about img {
	border-radius: 22px;
	aspect-ratio: 3/2;
	object-fit: cover;
	width: 100%;
}

.bm-about blockquote {
	margin: 18px 0 0;
	padding: 16px 20px;
	border-left: 4px solid var(--bm-rose-bouton);
	background: var(--bm-rose-50);
	border-radius: 0 14px 14px 0;
	font-size: 16.5px;
}

@media (max-width: 820px) {
	.bm-about {
		grid-template-columns: 1fr;
	}
}

/* Écart assumé avec la maquette : texte blanc sur rose = 1,57:1. L'encre donne 8,9:1 (RGAA 3.2). */
.bm-contact-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 30px;
	align-items: center;
	justify-content: space-between;
	background: var(--bm-rose);
	border-radius: 24px;
	padding: 26px 30px;
	color: var(--bm-encre);
}

.bm-contact-strip h3 {
	margin: 0;
	color: var(--bm-encre);
	font-size: 24px;
}

.bm-contact-strip a:not(.bm-btn) {
	font-weight: 500;
}

.bm-contact-strip a:not(.bm-btn, .wp-block-button__link) {
	color: var(--bm-encre);
}

/* ===== Alignement : cartes sur les mêmes lignes (titre, détails, prix, note, bouton) ===== */
.bm-grid-prod {
	align-items: stretch;
}

.bm-grid-prod > .bm-pcard {
	display: grid;
	grid-row: span 6;
	grid-template-rows: subgrid;
	gap: 0;
}

.bm-pcard > .bm-bd {
	display: contents;
}

.bm-pcard > .bm-ph {
	grid-row: 1;
	aspect-ratio: 1/0.82;
}

.bm-pcard .bm-bd > * {
	margin-left: 18px;
	margin-right: 18px;
}

.bm-pcard .bm-bd > h3 {
	grid-row: 2;
	margin-top: 18px;
	margin-bottom: 0;
	align-self: start;
}

.bm-pcard .bm-bd > .bm-specs {
	grid-row: 3;
	margin-top: 10px;
	margin-bottom: 0;
	align-self: start;
}

.bm-pcard .bm-bd > .bm-price {
	grid-row: 4;
	margin-top: 14px;
	margin-bottom: 0;
	align-self: start;
}

.bm-pcard .bm-bd > .bm-mention {
	grid-row: 5;
	margin-top: 10px;
	margin-bottom: 0;
	align-self: start;
}

.bm-pcard .bm-bd > .bm-btn {
	grid-row: 6;
	margin-top: 16px;
	margin-bottom: 20px;
	align-self: end;
	justify-self: start;
}

.bm-pcard .bm-specs li {
	align-items: baseline;
}

/* blocs d'information : titres, textes et boutons calés en haut / en bas */
.bm-path .bm-btn {
	margin-top: auto;
	align-self: flex-start;
}

.bm-path ul {
	margin-bottom: 6px;
}

.bm-opt,
.bm-inst > div,
.bm-howgrid > div,
.bm-timeline > div,
.bm-zone {
	height: 100%;
}

.bm-opt {
	align-items: flex-start;
}

.bm-opt :is(h2, h3, h4),
.bm-inst :is(h2, h3, h4),
.bm-howgrid :is(h2, h3, h4),
.bm-timeline :is(h2, h3, h4),
.bm-zone :is(h2, h3, h4) {
	margin-top: 0;
}

.bm-timeline :is(h2, h3, h4) {
	min-height: 1.2em;
}

.bm-zones {
	align-items: stretch;
}

@media (max-width: 620px) {
	.bm-grid-prod > .bm-pcard {
		grid-row: auto;
		display: flex;
		flex-direction: column;
	}

	.bm-pcard > .bm-bd {
		display: flex;
		flex-direction: column;
		flex: 1;
		padding: 0;
	}

	.bm-pcard .bm-bd > * {
		margin-left: 18px;
		margin-right: 18px;
	}

	.bm-pcard .bm-bd > .bm-btn {
		margin-top: auto;
		margin-bottom: 20px;
		align-self: flex-start;
	}

	.bm-pcard .bm-bd > .bm-mention {
		margin-bottom: 16px;
	}
}

/* Galerie réalisations : mosaïque, chaque photo garde son format */
.bm-gal--colonnes {
	display: block;
	column-count: 3;
	column-gap: 14px;
}

.bm-gal--colonnes figure {
	break-inside: avoid;
	margin: 0 0 14px;
}

.bm-gal--colonnes img {
	aspect-ratio: auto;
	height: auto;
}

.bm-gal--colonnes .bm-empty {
	column-span: all;
}

@media (max-width: 820px) {
	.bm-gal--colonnes {
		column-count: 2;
	}
}

@media (max-width: 520px) {
	.bm-gal--colonnes {
		column-count: 1;
	}
}

/* Galerie réalisations : colonnes équilibrées, photos au format naturel, bas des colonnes alignés */
.bm-gal--colonnes {
	display: flex;
	align-items: stretch;
	gap: 14px;
	column-count: auto;
	flex-wrap: nowrap;
}

.bm-gal--colonnes .bm-gcol {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bm-gal--colonnes figure {
	margin: 0;
	flex: calc(1 / var(--bm-ratio, 1.5)) 1 auto;
	aspect-ratio: var(--bm-ratio, 1.5);
	min-height: 0;
	break-inside: auto;
	height: auto;
}

.bm-gal--colonnes figure img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	object-position: center 35%;
}

.bm-gal--colonnes .bm-empty {
	flex: 1 1 100%;
	height: auto;
}

@media (max-width: 520px) {
	.bm-gal--colonnes {
		gap: 10px;
	}

	.bm-gal--colonnes .bm-gcol {
		gap: 10px;
	}
}

/* Page aires de jeux : vert pastel plus clair */
.bm-page-evenements .bm-band-idf {
	background: var(--bm-vert-clair);
}

.bm-page-evenements .bm-btn--vert {
	background: var(--bm-vert-clair);
	color: var(--bm-encre);
}

.bm-page-evenements .bm-zone-badge.bm-idf {
	background: var(--bm-vert-50);
	color: var(--bm-encre);
}

.bm-page-evenements .bm-transp {
	border-color: var(--bm-vert-clair);
}

/* Surtitres en Pacifico */
.bm-eyebrow,
.bm-path .bm-tag,
.bm-zone-badge {
	font-family: Pacifico, cursive;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.bm-eyebrow {
	font-size: 19px;
}

.bm-path .bm-tag,
.bm-zone-badge {
	font-size: 16px;
}

@media (max-width: 620px) {
	.bm-hero .bm-eyebrow {
		font-size: 15px;
		letter-spacing: 0;
	}
}

/* Avis clients Google */
.bm-avis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 22px;
	align-items: start;
}

.bm-avis-card {
	margin: 0;
	background: #fff;
	border-radius: var(--bm-r);
	padding: 24px 24px 20px;
	box-shadow: 0 2px 14px rgba(58, 47, 51, .06);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Étoiles : #B8860B, 3,25:1 sur blanc (WCAG 1.4.11 demande 3:1). La maquette avait #F2B84B (1,79:1). */
.bm-avis-card .bm-stars {
	color: #B8860B;
	font-size: 20px;
	letter-spacing: 2px;
}

.bm-avis-card blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bm-encre);
	font-style: normal;
}

.bm-avis-card figcaption {
	font: 600 15px Outfit, system-ui, sans-serif;
	color: var(--bm-encre);
}

@media (max-width: 900px) {
	.bm-avis {
		grid-template-columns: 1fr;
	}
}

/* Photos en 1:1 sur accueil et aires de jeux */
.bm-gal.bm-sq img {
	aspect-ratio: 1/1;
}

/* Accueil : bloc titre plus grand */
.bm-hero {
	min-height: 520px;
	max-height: 700px;
}

.bm-hero h1 {
	font-size: clamp(38px, 6.2vw, 78px);
	max-width: 1000px;
	line-height: 1.08;
}

.bm-hero .bm-eyebrow {
	font-size: clamp(17px, 2vw, 26px);
}

@media (max-width: 620px) {
	.bm-hero .bm-eyebrow {
		font-size: 16px;
	}

	.bm-hero h1 {
		font-size: 38px;
	}
}

/* Accueil : texte centré dans les 3 cases */
.bm-infos3 div {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 20px;
	text-align: center;
	gap: 10px;
}

/* "À partir de" en petit au-dessus du prix */
.bm-price .bm-from {
	font: 500 13px "DM Sans", system-ui, sans-serif;
	color: var(--bm-muted);
	display: block;
	margin-bottom: 1px;
}

/* Cartes : plus de bloc beige, 5 lignes */
.bm-grid-prod > .bm-pcard {
	grid-row: span 5;
}

.bm-pcard .bm-bd > .bm-btn {
	grid-row: 5;
}

/* Aires de jeux : 6 formules en 3 colonnes */
.bm-page-evenements .bm-grid-prod {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.bm-page-evenements .bm-grid-prod {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.bm-page-evenements .bm-grid-prod {
		grid-template-columns: 1fr;
	}
}

/* Aires de jeux : bandeau photo plus haut */
.bm-ev-hero {
	min-height: 460px;
}

/* ===== Ajouts propres au thème (absents de la maquette, nécessaires aux blocs) ===== */

/* Fonds des bandeaux : la maquette les posait en style en ligne. */
.bm-hero {
	background-image: url(../img/pages/hero.jpg);
}

.bm-ev-hero {
	background-image: url(../img/pages/hero-evenements.jpg);
	background-position: center 50%;
}

/* La maquette avait img { display: block } : sans lui, une image en ligne laisse un filet sous elle. */
.bm-pcard img,
.bm-gal img,
.bm-about img {
	display: block;
}

/* Alignement des boutons (.btn de la maquette) : global.css ne les porte pas. */
.wp-block-button__link,
.bm-btn {
	text-align: center;
	line-height: 1.2;
}

/* Boutons des cartes de parcours : le bloc Boutons joue le rôle de .btn. */
.bm-path > .wp-block-buttons {
	margin-top: auto;
	align-self: flex-start;
}

/* Page Aires de jeux : le vert plus clair vaut aussi pour le bloc Bouton. */
.bm-page-evenements .wp-block-button.is-style-bm-vert .wp-block-button__link {
	background: var(--bm-vert-clair);
	color: var(--bm-encre);
}

/* Cartes de jeu : le titre et l'image sont des liens vers la fiche. */
.bm-pcard .bm-ph > a {
	display: block;
	height: 100%;
}

.bm-pcard h3 a {
	color: inherit;
	text-decoration: none;
}

/* Filtres (assets/js/beemagik.js) : l'attribut hidden l'emporte sur les display des cartes et colonnes. */
.bm-pcard[hidden],
.bm-gal figure[hidden],
.bm-gal .bm-gcol[hidden] {
	display: none !important;
}

/* Titre facultatif d'un bloc de liste (attribut « titre » des blocs grille et galerie). */
.bm-fiche__titre {
	margin: 0 0 22px;
}

/* ===== Corrections de portage : blocs à la place des balises de la maquette ===== */

/* En-tête de page : la maquette posait ses marges latérales sur .wrap. Le groupe pleine largeur
 * garde la gouttière du thème (padding racine), que « padding: 56px 0 34px » effaçait. */
.bm-page-head.has-global-padding {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

/* Bandeau de contact : le lien du bloc Bouton n'a pas la classe .bm-btn, la règle des liens
 * blancs du bandeau ne doit pas lui retirer sa graisse. */
.bm-contact-strip .wp-block-button__link {
	font-weight: 600;
}

/* Pastilles des options : un paragraphe porte .bm-pill (un span dans la maquette),
 * « .bm-opt p » ne doit pas lui imposer sa taille ni sa couleur. */
.bm-opt > p.bm-pill {
	font-size: 12px;
	color: var(--bm-encre);
}

/* Encadrés de la colonne de devis : fonds de la maquette (style en ligne). */
.bm-aside .bm-box.bm-sens {
	background: var(--bm-rose-50);
}

.bm-aside .bm-box.bm-idf {
	background: var(--bm-vert-50);
}

/* Devis : encadré de repli du bloc bm/formulaire-devis, quand le formulaire manque. */
.bm-devis-encadre {
	border-radius: var(--bm-r);
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--bm-filet);
}

.bm-devis-encadre :is(h2, h3) {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 600;
}

.bm-devis-encadre p {
	margin: 0;
	font-size: 15px;
}

/* ===== Fiche d'un jeu (templates/single-aire-de-jeux.html) =====
 * Absente de la maquette : composée avec son vocabulaire (carte blanche à rayon 18 px et ombre,
 * pastille de zone, liste de caractéristiques, prix, boutons). */
.bm-fiche {
	padding-top: 48px;
	padding-bottom: 56px;
}

.bm-fiche__grille {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 32px;
	align-items: start;
}

.bm-fiche__grille > *,
.bm-fiche__carte > * {
	margin-block: 0;
}

.bm-viewer {
	position: relative;
	border-radius: var(--bm-r);
	overflow: hidden;
	background: var(--bm-rose-50);
	aspect-ratio: 1/0.82;
	box-shadow: var(--bm-ombre);
}

.bm-viewer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bm-fiche__carte {
	background: #fff;
	border-radius: var(--bm-r);
	box-shadow: var(--bm-ombre);
	padding: 28px 30px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bm-fiche__carte h1 {
	font-size: clamp(28px, 3.4vw, 42px);
}

.bm-fiche__pastille .bm-zone-badge {
	margin-bottom: 0;
}

.bm-fiche__infos {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bm-fiche__infos .bm-specs {
	font-size: 15px;
	gap: 8px;
}

.bm-fiche__infos .bm-specs b {
	min-width: 104px;
}

.bm-fiche__infos .bm-price {
	margin-top: 0;
}

.bm-fiche__infos .bm-btn {
	align-self: flex-start;
	margin-top: 4px;
}

.bm-fiche__contenu {
	margin-top: 36px;
}

.bm-fiche__contenu > * {
	max-width: 760px;
}

.bm-fiche__contenu:not(:has(.wp-block-post-content > *)) {
	display: none;
}

.bm-fiche__bloc + .bm-fiche__bloc {
	margin-top: 56px;
}

/* Suite de la fiche vide (ni photo ni jeu de la même famille) : la section disparaît. */
.bm-fiche__suite:not(:has(.bm-gal, .bm-grid-prod)) {
	display: none;
}

@media (max-width: 820px) {
	.bm-fiche {
		padding-top: 28px;
	}

	.bm-fiche__grille {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bm-fiche__carte {
		padding: 22px;
	}
}

/* Page d'une réalisation (templates/single-realisation.html). */
.bm-realisation__photo img {
	display: block;
	border-radius: 22px;
	width: 100%;
	height: auto;
}

/* ===== Accessibilité et SEO (lot 7) ===== */

/* Bandeaux photo : voile sous le texte blanc. Le dégradé du bandeau descend à 5 % d'opacité :
 * sur une photo claire, le texte blanc n'était plus lisible. Ce voile part du haut du texte et
 * va jusqu'au bas du bandeau, sur toute la largeur. Calcul sur le pire cas (photo blanche,
 * dégradé à 5 %) : fond rgb(118, 108, 111), titre blanc à 5,07:1, surtitre (opacité .95) à
 * 4,76:1. Fondu de 56 px au-dessus du texte pour ne pas marquer de bord. */
.bm-hero,
.bm-ev-hero {
	overflow: hidden;
}

/* Même voile sur le bandeau de la page Événements (texte blanc sur photo, même calcul). */
.bm-hero .bm-wrap::before,
.bm-ev-hero .bm-wrap::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -56px;
	bottom: 0;
	left: -100vw;
	right: -100vw;
	background: linear-gradient(180deg, rgba(40, 25, 30, 0) 0, rgba(40, 25, 30, .62) 56px, rgba(40, 25, 30, .62) 100%);
	pointer-events: none;
}

@media (max-width: 820px) {
	/* Le conteneur du texte commence 120 px au-dessus du texte (padding-top). */
	.bm-hero .bm-wrap::before {
		top: 64px;
	}
}

/* Pastilles de filtre : zone de clic de 44 px de haut, sans changer la hauteur visible. */
.bm-chip {
	position: relative;
}

.bm-chip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 44px;
	transform: translateY(-50%);
}

/* Fil d'Ariane des fiches (bloc bm/fil-ariane). */
.bm-fil {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--bm-muted);
}

.bm-fil ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bm-fil li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.bm-fil li + li::before {
	content: "/";
	color: var(--bm-muted);
}

.bm-fil a {
	color: var(--bm-encre);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bm-fil [aria-current="page"] {
	color: var(--bm-encre);
	font-weight: 500;
}

/* Jeux reliés à une réalisation (bloc bm/jeux-lies, légende de la galerie). */
.bm-jeux-lies {
	margin: 18px 0;
}

.bm-jeux-lies a,
.bm-gal figcaption a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.bm-gal img {
		transition: none;
	}

	.bm-gal figure:hover img {
		transform: none;
	}
}
