/* ==========================================================================
   Maé Boxing 13 — styles du thème
   Deux « coins » : noir (ring, boxe, club) et clair (craie, accueil).
   Le rouge sert à agir (réserver) et à accentuer, jamais en aplat décoratif.
   ========================================================================== */

:root {
	--mb-noir: #141211;
	--mb-noir-2: #0B0A09;
	--mb-noir-3: #1D1A18;
	--mb-ligne-sombre: #3A3431;
	--mb-argent: #C3C1C2;
	--mb-argent-2: #A8A3A0;
	--mb-rouge: #C80000;
	--mb-rouge-hover: #A30000;
	--mb-craie: #F4EFE8;
	--mb-papier: #FBF8F3;
	--mb-carte: #FFFDF9;
	--mb-bord: #E2D8CB;
	--mb-texte: #141211;
	--mb-texte-2: #5C534B;
	--mb-texte-3: #3B342F;
	--mb-cuivre: #7A5A3E;
	--mb-or: #D9B48F;

	--mb-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--mb-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mb-font-serif: "Fraunces", Georgia, serif;

	--mb-gutter: clamp(16px, 4vw, 48px);
	--mb-section: 104px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--mb-craie);
	color: var(--mb-texte);
	font-family: var(--mb-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--mb-rouge); color: #fff; }

a { color: var(--mb-cuivre); }
a:hover { color: #5A3F28; }

:focus-visible { outline: 2px solid var(--mb-rouge); outline-offset: 3px; }

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

.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px; z-index: 100;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--mb-craie);
	color: var(--mb-noir);
	font-weight: 700;
}

.mb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: var(--mb-gutter);
	padding-right: var(--mb-gutter);
}

.mb-section { padding-top: var(--mb-section); padding-bottom: var(--mb-section); }

.mb-dark { background: var(--mb-noir); color: var(--mb-craie); }

/* ---------- Typo commune ---------- */

.mb-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mb-rouge);
}

.mb-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--mb-rouge);
	flex: 0 0 auto;
}

.mb-eyebrow--light { color: var(--mb-argent); }
.mb-eyebrow--plain::before { display: none; }

.mb-h2 {
	margin: 0;
	font-family: var(--mb-font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(42px, 5.4vw, 80px);
	line-height: .95;
}

.mb-accent { color: var(--mb-rouge); }

.mb-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.mb-lead {
	margin: 0;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--mb-texte-2);
}

.mb-dark .mb-lead,
.mb-themes .mb-lead { color: var(--mb-argent); }

.mb-quote {
	margin: 26px 0 0;
	font-family: var(--mb-font-serif);
	font-style: italic;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.32;
	color: var(--mb-cuivre);
}

.mb-quote--bar {
	padding-left: 22px;
	border-left: 3px solid var(--mb-rouge);
}

/* ---------- Boutons ---------- */

.mb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-family: var(--mb-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.mb-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.mb-btn--sm { min-height: 44px; padding: 0 20px; }

.mb-btn--red { background: var(--mb-rouge); color: #fff; }
.mb-btn--red:hover, .mb-btn--red:focus-visible { background: var(--mb-rouge-hover); color: #fff; }

.mb-btn--ghost-dark { background: transparent; color: var(--mb-craie); border-color: #6E6763; }
.mb-btn--ghost-dark:hover { background: #2A2522; color: #fff; }

.mb-btn--ghost-light { background: transparent; color: var(--mb-noir); border: 1.5px solid var(--mb-noir); }
.mb-btn--ghost-light:hover { background: var(--mb-noir); color: var(--mb-craie); }

/* ---------- En-tête ---------- */

.mb-header { position: sticky; top: 0; z-index: 20; background: var(--mb-noir-2); color: var(--mb-craie); border-bottom: 1px solid #221E1C; }
.admin-bar .mb-header { top: 32px; }

.mb-header__row {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px var(--mb-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mb-brand { display: flex; align-items: center; gap: 12px; color: var(--mb-craie); text-decoration: none; }
.mb-brand:hover { color: #fff; }

.mb-brand__name {
	font-family: var(--mb-font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.mb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }

.mb-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }

.mb-nav__links a {
	display: inline-block;
	padding: 12px 0;
	color: var(--mb-argent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.mb-nav__links a:hover { color: #fff; }

.mb-account-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--mb-craie);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.mb-account-link svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.mb-account-link:hover, .mb-account-link[aria-current] { color: #fff; }
.mb-account-link[aria-current] span { text-decoration: underline; text-decoration-color: var(--mb-rouge); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.mb-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #6E6763;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.mb-burger svg path { fill: none; stroke: var(--mb-craie); stroke-width: 2; }

.mb-mobile-menu {
	padding: 4px var(--mb-gutter) 20px;
	border-top: 1px solid #2A2522;
	background: var(--mb-noir-2);
}

.mb-mobile-menu[hidden] { display: none; }
.mb-mobile-menu ul { margin: 0; padding: 0; list-style: none; }

.mb-mobile-menu a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid #2A2522;
	color: var(--mb-craie);
	font-family: var(--mb-font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	text-transform: uppercase;
}

/* ---------- Haut de page ---------- */

.mb-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(900px, calc(100svh - 88px));
	overflow: hidden;
	background: var(--mb-noir-2);
	color: var(--mb-craie);
	isolation: isolate;
}

/* La scène du coin, en plein cadre à droite : le noir du hero la recouvre côté texte et vers les cordes. */
.mb-hero__photo {
	position: absolute;
	inset: 0 0 0 auto;
	z-index: -1;
	width: 66%;
	animation: mb-reveal 1.6s cubic-bezier(.16, 1, .3, 1) .1s both;
}

.mb-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
	animation: mb-settle 2.4s cubic-bezier(.16, 1, .3, 1) .1s both;
}

.mb-hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--mb-noir-2) 0%, rgba(11, 10, 9, .86) 22%, rgba(11, 10, 9, .4) 48%, rgba(11, 10, 9, 0) 72%),
		linear-gradient(0deg, var(--mb-noir-2) 0%, rgba(11, 10, 9, 0) 34%),
		linear-gradient(180deg, rgba(11, 10, 9, .55) 0%, rgba(11, 10, 9, 0) 22%);
}

.mb-hero__light {
	position: absolute;
	top: -540px;
	left: 50%;
	width: 1500px;
	height: 1200px;
	margin-left: -750px;
	background: radial-gradient(ellipse at 50% 42%, rgba(255, 232, 205, .22) 0%, rgba(255, 232, 205, .07) 34%, rgba(255, 232, 205, 0) 62%);
	pointer-events: none;
	animation: mb-sway 9s ease-in-out infinite alternate;
}

.mb-hero__inner {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px var(--mb-gutter) 0;
}

.mb-hero__text { max-width: 640px; }

.mb-hero__title {
	margin: 20px 0 0;
	font-family: var(--mb-font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(56px, 7.4vw, 112px);
	line-height: .86;
	letter-spacing: -.005em;
}

.mb-hero__title > span { display: block; }

.mb-hero__soft {
	font-family: var(--mb-font-serif);
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	font-size: .4em;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--mb-or);
}

.mb-hero__desc { margin: 18px 0 0; max-width: 520px; font-size: 18px; line-height: 1.65; color: #D3CDC6; }

.mb-hero__promises {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--mb-craie);
}
.mb-hero__promises li { display: flex; align-items: center; gap: 8px; }
.mb-hero__promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mb-or); flex: none; }

.mb-hero__ctas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 32px; }
.mb-hero__cta { display: flex; flex-direction: column; gap: 8px; }
.mb-hero__cta-note { margin: 0; font-size: 14px; color: var(--mb-argent); }

.mb-hero__next {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 18px;
	padding: 10px 16px 10px 12px;
	border: 1px solid var(--mb-ligne-sombre);
	border-radius: 999px;
	background: rgba(29, 26, 24, .7);
	color: var(--mb-craie);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	animation: mb-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.mb-hero__next[hidden] { display: none; }
.mb-hero__next span { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8FCBA0; }
.mb-hero__next span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5FBF7F; }
.mb-hero__next:hover { border-color: var(--mb-rouge); color: #fff; }

/* Les cordes passent devant la photo : on regarde la scène depuis l'extérieur du ring. */
.mb-ropes { display: block; position: relative; z-index: 1; width: 100%; height: 110px; margin-top: 56px; }

.mb-ropes path {
	fill: none;
	stroke-width: 4;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 3000;
	animation: mb-draw 1.8s cubic-bezier(.6, .1, .2, 1) .4s both;
}

.mb-ropes path:nth-child(2) { animation-delay: .55s; }
.mb-ropes path:nth-child(3) { animation-delay: .7s; }

.mb-rise { animation: mb-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.mb-rise--1 { animation-delay: .12s; }
.mb-rise--2 { animation-delay: .3s; }
.mb-rise--3 { animation-delay: .5s; }

/* ---------- Cadre photo avec coins de ring ---------- */

.mb-frame { position: relative; }

.mb-frame__media { overflow: hidden; aspect-ratio: 4 / 5; background: #26221F; }

.mb-frame__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.mb-frame:hover .mb-frame__media img { transform: scale(1.04); }

/* Logo (carré, sur fond noir) : affiché en entier, le cadre prend sa forme et sa couleur. */
.mb-frame__media--logo { aspect-ratio: 1 / 1; background: #000; }
.mb-frame__media--logo img { object-fit: contain; }

.mb-corner {
	position: absolute;
	width: 64px;
	height: 64px;
	border: 0 solid var(--mb-rouge);
	pointer-events: none;
}

.mb-corner--tl { top: -12px; left: -12px; border-top-width: 3px; border-left-width: 3px; }
.mb-corner--br { bottom: -12px; right: -12px; border-bottom-width: 3px; border-right-width: 3px; }

/* ---------- Chiffres en contour ---------- */

.mb-outline {
	font-family: var(--mb-font-display);
	font-weight: 700;
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--mb-rouge);
}

/* ---------- Prépa HYROX / Boxe / Boxing Performance (split diagonal) ---------- */

.mb-themes { background: var(--mb-noir-2); color: var(--mb-craie); }
.mb-themes__head { padding-top: 96px; padding-bottom: 48px; }

.mb-split { display: flex; height: 660px; background: var(--mb-rouge); overflow: hidden; }

.mb-split__panel {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	background: var(--mb-noir-2);
	color: var(--mb-craie);
	text-decoration: none;
	transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1);
}

/* 1,6 et pas plus : au-delà, le panneau voisin rétrécit au point de couper son titre. */
.mb-split__panel:hover, .mb-split__panel:focus-within { flex-grow: 1.6; color: var(--mb-craie); }

.mb-split__panel:nth-child(1) { clip-path: polygon(0 0, 100% 0, calc(100% - 96px) 100%, 0 100%); }
.mb-split__panel:nth-child(2) { margin-left: -90px; clip-path: polygon(96px 0, 100% 0, calc(100% - 96px) 100%, 0 100%); }
.mb-split__panel:nth-child(3) { margin-left: -90px; clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%); }

.mb-split__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.06);
	transition: filter .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.mb-split__panel:hover .mb-split__img,
.mb-split__panel:focus-within .mb-split__img { filter: grayscale(0) contrast(1); transform: scale(1.04); }

.mb-split__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(11, 10, 9, .94) 0%, rgba(11, 10, 9, .5) 42%, rgba(11, 10, 9, .12) 100%);
	transition: background-color .5s ease;
}

.mb-split__panel:hover .mb-split__shade,
.mb-split__panel:focus-within .mb-split__shade { background-color: rgba(11, 10, 9, .45); }

/* Crédit d'une photo de banque d'images, posé sur la photo (bas des panneaux, haut de la scène du hero). */
.mb-credit { position: absolute; left: 48px; bottom: 14px; z-index: 1; margin: 0; font-size: 11px; line-height: 1.3; letter-spacing: .04em; color: var(--mb-argent); }
.mb-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mb-credit a:hover, .mb-credit a:focus-visible { color: #fff; }
.mb-split__panel:nth-child(n+2) .mb-credit { left: 60px; transition: left .55s cubic-bezier(.2, .7, .2, 1); }
.mb-split__panel:nth-child(n+2):hover .mb-credit,
.mb-split__panel:nth-child(n+2):focus-within .mb-credit { left: 104px; } /* suit le texte du panneau ouvert */
.mb-credit--hero { left: auto; bottom: auto; top: 14px; right: var(--mb-gutter); text-shadow: 0 1px 2px rgba(11, 10, 9, .8); }

.mb-split__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 120px 44px 48px; }
.mb-split__panel:nth-child(n+2) .mb-split__text { padding-left: 60px; transition: padding-left .55s cubic-bezier(.2, .7, .2, 1); }
.mb-split__panel:last-child .mb-split__text { padding-right: 48px; } /* pas de voisin à droite */
/* Ouvert, le texte remonte là où la diagonale mord (jusqu'à 96 px en haut) : il s'écarte du bord pour ne pas être rogné. */
.mb-split__panel:nth-child(n+2):hover .mb-split__text,
.mb-split__panel:nth-child(n+2):focus-within .mb-split__text { padding-left: 104px; }

.mb-split__title {
	display: block;
	margin-top: 12px;
	font-family: var(--mb-font-display);
	font-weight: 700;
	margin-bottom: 0;
	font-size: clamp(44px, 4.6vw, 72px);
	line-height: .9;
	text-transform: uppercase;
}

.mb-split__for { margin: 10px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mb-or); }

/* Le contenu caché se déplie en hauteur (grille 0fr → 1fr), puis chaque ligne glisse en place. */
.mb-split__reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2, .7, .2, 1); }
.mb-split__reveal-inner { min-height: 0; overflow: hidden; }
.mb-split__reveal-inner > *,
.mb-split__modules li { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }

.mb-split__panel:hover .mb-split__reveal,
.mb-split__panel:focus-within .mb-split__reveal { grid-template-rows: 1fr; }

.mb-split__panel:hover .mb-split__reveal-inner > *,
.mb-split__panel:hover .mb-split__modules li,
.mb-split__panel:focus-within .mb-split__reveal-inner > *,
.mb-split__panel:focus-within .mb-split__modules li { opacity: 1; transform: none; }

.mb-split__panel:hover .mb-split__desc { transition-delay: .15s; }
.mb-split__panel:hover .mb-split__modules li:nth-child(1) { transition-delay: .25s; }
.mb-split__panel:hover .mb-split__modules li:nth-child(2) { transition-delay: .33s; }
.mb-split__panel:hover .mb-split__modules li:nth-child(3) { transition-delay: .41s; }
.mb-split__panel:hover .mb-split__links { transition-delay: .5s; }

.mb-split__desc { margin: 16px 0 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: #E4DED6; }

.mb-split__modules { display: grid; gap: 10px; max-width: 460px; margin: 18px 0 0; padding: 0; list-style: none; }
.mb-split__modules li { padding-left: 14px; border-left: 2px solid var(--mb-rouge); font-size: 14px; line-height: 1.5; color: var(--mb-argent); }
.mb-split__modules strong { display: block; font-family: var(--mb-font-display); font-size: 21px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--mb-craie); }

.mb-split__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }

.mb-split__more {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 4px;
	background: var(--mb-rouge);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.mb-split__more:hover { background: var(--mb-rouge-hover); color: #fff; }

/* Discipline « Bientôt » : mention au-dessus du titre, lien « Me prévenir » au trait plutôt qu'en rouge (pas une réservation). */
.mb-split__soon { display: inline-block; padding: 5px 12px; border: 1px solid var(--mb-craie); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mb-craie); }
.mb-split__more--soon { border: 1px solid var(--mb-craie); background: transparent; }
a.mb-split__more--soon:hover { background: rgba(244, 239, 232, .12); }
span.mb-split__more--soon:hover { background: transparent; }

/* Écrans tactiles : pas de survol, tout est déplié. */
@media (hover: none) {
	.mb-split__reveal { grid-template-rows: 1fr; }
	.mb-split__reveal-inner > *, .mb-split__modules li { opacity: 1; transform: none; }
	.mb-split__panel:nth-child(n+2) .mb-split__text { padding-left: 104px; }
	.mb-split__panel:nth-child(n+2) .mb-credit { left: 104px; }
}

/* ---------- En trois rounds (dans la section tarifs) ---------- */

.mb-round-list { min-width: 0; margin: 0; padding: 0; list-style: none; }

.mb-round {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	padding: 24px 0;
	border-top: 1px solid var(--mb-bord);
}

.mb-round:last-child { border-bottom: 1px solid var(--mb-bord); }

.mb-round__num { flex: 0 0 72px; font-size: 104px; text-align: center; -webkit-text-stroke-width: 2px; }
.mb-round__body { flex: 1 1 300px; min-width: 0; }

.mb-round__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mb-rouge); }
.mb-round__title { margin: 0; font-family: var(--mb-font-display); font-weight: 700; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.mb-round__text { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--mb-texte-2); }

/* ---------- Le coach ---------- */

.mb-coach__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.mb-coach__media { flex: 1 1 320px; min-width: 0; max-width: 470px; padding: 12px; }
.mb-coach__text { flex: 999 1 460px; min-width: 0; }
.mb-coach__desc { margin: 24px 0 0; max-width: 600px; font-size: 17px; line-height: 1.7; color: var(--mb-texte-3); }
/* Nom et titres du coach, sous le titre de la section. */
.mb-coach__who { margin: 18px 0 0; }
.mb-coach__name { display: block; font-family: var(--mb-font-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; text-transform: uppercase; }
.mb-coach__titres { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--mb-rouge); }

.mb-photo-todo {
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 5;
	padding: 28px;
	background: #26221F;
}

.mb-photo-todo p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mb-argent-2); }

.mb-tag {
	display: table;
	margin-bottom: 12px;
	padding: 5px 10px;
	border-radius: 3px;
	background: var(--mb-rouge);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.mb-todo {
	margin: 26px 0 0;
	max-width: 600px;
	padding: 18px 20px;
	border: 1.5px dashed #B9AC9C;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mb-texte-2);
}

.mb-coach__parcours { margin: 22px 0 0; max-width: 600px; font-size: 16px; line-height: 1.7; color: var(--mb-texte-3); }
.mb-coach .mb-btn { margin-top: 30px; }

/* Sans photo (visiteur, en attendant le shooting) : la citation prend la place de l'image. */
.mb-coach--text .mb-quote { max-width: 900px; font-size: clamp(28px, 3vw, 40px); }
.mb-coach--text .mb-coach__desc { margin-top: 32px; }

/* ---------- Carnets ---------- */

.mb-carnets { background: var(--mb-papier); border-top: 1px solid var(--mb-bord); }

.mb-carnets__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 40px 64px;
	align-items: start;
	margin-top: 52px;
}

.mb-prices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.mb-price {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	background: var(--mb-carte);
	border: 1px solid var(--mb-bord);
	border-radius: 6px;
}

.mb-price--featured { background: var(--mb-noir); color: var(--mb-craie); border-color: var(--mb-noir); }
.mb-price > .mb-corner { width: 36px; height: 36px; }
.mb-price > .mb-corner--tl { top: -8px; left: -8px; }
.mb-price > .mb-corner--br { bottom: -8px; right: -8px; }

.mb-price--seance { grid-column: 1; } /* chaque séance ouvre sa ligne, ses packs à côté */
.mb-price__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mb-price__soon { padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mb-price__name { margin: 0; font-family: var(--mb-font-display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.mb-price__amount { margin: 0; font-family: var(--mb-font-display); font-weight: 700; font-size: 34px; }
.mb-price__note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mb-texte-2); }
.mb-price--featured .mb-price__note { color: var(--mb-argent); }

.mb-carnets__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px; }
.mb-carnets__note { margin: 0; font-size: 14px; color: var(--mb-texte-2); }

/* ---------- Réservation : la pièce centrale du site, juste sous le haut de page ---------- */

.mb-reserver { position: relative; overflow: hidden; overflow: clip; background: var(--mb-noir); color: var(--mb-craie); }
.mb-reserver .mb-section { position: relative; padding-top: 72px; }
.mb-reserver .mb-lead, .mb-reserver .mb-cal__note { color: var(--mb-argent); }

.mb-reserver__glow {
	position: absolute;
	top: 120px;
	left: 50%;
	width: 1400px;
	height: 900px;
	margin-left: -700px;
	background: radial-gradient(ellipse at 50% 40%, rgba(200, 0, 0, .2) 0%, rgba(200, 0, 0, .06) 40%, rgba(200, 0, 0, 0) 65%);
	pointer-events: none;
}

.mb-steps { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700; color: var(--mb-craie); }
.mb-steps li { display: flex; align-items: center; gap: 10px; }
.mb-steps li + li::before { content: ""; width: 28px; height: 2px; margin-right: 18px; background: var(--mb-ligne-sombre); }
.mb-steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mb-rouge);
	font-family: var(--mb-font-display);
	font-size: 17px;
}
.mb-steps li { color: var(--mb-argent); transition: color .3s ease; }
.mb-steps li span { background: var(--mb-ligne-sombre); transition: background-color .3s ease; }
.mb-steps li[aria-current="step"] { color: var(--mb-craie); }
.mb-steps li[aria-current="step"] span { background: var(--mb-rouge); }

.mb-cal {
	position: relative;
	margin-top: 32px;
	padding: 32px;
	background: var(--mb-carte);
	border: 1px solid var(--mb-bord);
	border-radius: 8px;
	color: var(--mb-texte);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.mb-cal > .mb-corner { width: 72px; height: 72px; }

/* Composeur de séance (ex-« carte ») : chaque module coché devient un round */
.mb-compose { margin: 0 0 26px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--mb-bord); }
.mb-compose legend { padding: 0; margin-bottom: 14px; }
.mb-compose legend span { font-weight: 500; letter-spacing: 0; text-transform: none; }

.mb-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.mb-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 6px;
	border: 1px solid #B9AC9C;
	border-radius: 999px;
	background: #fff;
	color: var(--mb-texte);
	font-family: var(--mb-font-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.mb-chip:hover { border-color: var(--mb-noir); }
.mb-chip[hidden], .mb-account[hidden] { display: none; }
/* Formulaire de création de compte ouvert : son bouton prend le relais de celui du calendrier. */
.mb-cal.is-form-open [data-mb-confirm] { display: none; }

.mb-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mb-craie);
	color: var(--mb-texte-2);
	font-size: 16px;
	letter-spacing: .04em;
}

.mb-chip[aria-pressed="true"] { border-color: var(--mb-noir); background: var(--mb-noir); color: #fff; }
.mb-chip[aria-pressed="true"] .mb-chip__badge { background: var(--mb-rouge); color: #fff; }
.mb-chip__price { font-family: var(--mb-font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mb-texte-3); }
.mb-chip[aria-pressed="true"] .mb-chip__price { color: var(--mb-argent); }
.mb-chip:disabled, .mb-chip:disabled:hover { border-color: #D6CCBF; background: transparent; color: var(--mb-texte-3); cursor: default; }
.mb-chip:disabled .mb-chip__badge { visibility: hidden; }

.mb-cal__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.mb-cal__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mb-texte-2); }

.mb-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--mb-texte-3); }
.mb-legend li { display: flex; align-items: center; gap: 8px; }
.mb-legend li[hidden] { display: none; }
.mb-legend span { width: 14px; height: 14px; border-radius: 3px; }
.mb-legend .is-free { border: 1px solid #B9AC9C; background: #fff; }
.mb-legend .is-taken { background: #E7E0D7; }
.mb-legend .is-picked { background: var(--mb-noir); }
.mb-legend .is-group { border: 1px solid #B9AC9C; background: radial-gradient(circle, var(--mb-rouge) 0 3px, #fff 3.5px); }

.mb-cal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 14px; }

.mb-cal__day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.mb-cal__dayname {
	margin: 0 0 4px;
	font-family: var(--mb-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mb-cal__holiday { margin: 6px 0 0; padding: 8px 6px; border: 1px dashed var(--mb-bord); font-size: 13px; line-height: 1.3; color: var(--mb-texte-3); text-align: center; }

.mb-slot {
	min-height: 52px;
	padding: 0 8px;
	border: 1px solid #B9AC9C;
	border-radius: 4px;
	background: #fff;
	color: var(--mb-texte);
	font-family: var(--mb-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.mb-slot:not(:disabled):hover { transform: translateY(-2px); }

.mb-slot:hover { border-color: var(--mb-noir); }
.mb-slot[aria-pressed="true"] { border-color: var(--mb-noir); background: var(--mb-noir); color: #fff; font-weight: 700; }

.mb-slot:disabled {
	border-color: #E7E0D7;
	background: #E7E0D7;
	color: #6E655C;
	text-decoration: line-through;
	cursor: not-allowed;
}

.mb-cal__empty { margin: 0; color: var(--mb-texte-2); }

.mb-cal__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--mb-bord);
}

.mb-cal__summary { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--mb-texte); }

/* « Choisis d'abord un créneau » : un bouton au repos, pas un bouton cassé. */
.mb-btn[aria-disabled="true"] { border-color: var(--mb-bord); background: transparent; color: var(--mb-texte-2); pointer-events: none; }

.mb-cal__note { margin: 18px 0 0; font-size: 14px; color: var(--mb-texte-2); }

/* Navigation entre les semaines */
.mb-cal__range { display: flex; align-items: center; gap: 16px; }
.mb-cal__nav { display: flex; gap: 8px; }
.mb-cal__nav[hidden] { display: none; }
.mb-cal__arrow {
	width: 44px;
	height: 44px;
	border: 1px solid #B9AC9C;
	border-radius: 4px;
	background: #fff;
	color: var(--mb-texte);
	font-size: 18px;
	cursor: pointer;
}
.mb-cal__arrow:hover { border-color: var(--mb-noir); }
.mb-cal__arrow:disabled { opacity: .35; cursor: default; }

/* Séance de groupe : même case qu'un créneau, sur trois lignes (heure, discipline en rouge, places restantes). */
.mb-slot--group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	padding: 8px 10px;
	text-align: left;
	line-height: 1.2;
}
.mb-slot__time { font-size: 16px; font-weight: 700; }
.mb-slot__what { font-family: var(--mb-font-display); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mb-rouge); }
.mb-slot__left { font-size: 13px; font-weight: 600; color: var(--mb-texte-3); }
.mb-slot--group[aria-pressed="true"] .mb-slot__what { color: #fff; }
.mb-slot--group[aria-pressed="true"] .mb-slot__left { color: var(--mb-argent); }
.mb-slot--group:disabled { text-decoration: none; }
.mb-slot--group:disabled .mb-slot__what { color: inherit; }
.mb-slot--group:disabled .mb-slot__time { text-decoration: line-through; }
.mb-slot--group.is-mine:disabled .mb-slot__time { text-decoration: none; }
.mb-slot--group.is-mine .mb-slot__left { color: var(--mb-rouge); }

/* Compte demandé : la grille passe en retrait derrière « Regarde tes mails » jusqu'au prochain choix. */
.mb-cal.is-sent .mb-cal__grid, .mb-cal.is-sent .mb-cal__top { opacity: .5; transition: opacity .3s ease; }
.mb-cal.is-sent [data-mb-confirm] { display: none; }

.mb-legend .is-mine { border: 1.5px solid var(--mb-rouge); background: rgba(200, 0, 0, .08); }

.mb-slot.is-mine:disabled {
	border-color: var(--mb-rouge);
	background: rgba(200, 0, 0, .08);
	color: var(--mb-rouge);
	text-decoration: none;
	font-weight: 700;
}

/* Bandeau du compte (client connecté ou lien de connexion) */
.mb-account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: -4px 0 24px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--mb-bord);
	font-size: 15px;
	color: var(--mb-texte-3);
}
.mb-account p { margin: 0; }
.mb-account__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.mb-account__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 700; }
.mb-account__count {
	display: inline-block;
	min-width: 34px;
	margin-right: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--mb-noir);
	color: #fff;
	font-family: var(--mb-font-display);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}
.mb-account__count.is-empty { background: var(--mb-rouge); }
.mb-account__next { flex-basis: 100%; }
.mb-account__next ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.mb-account__next li { padding: 6px 12px; border: 1.5px solid var(--mb-rouge); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mb-rouge); }
.mb-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--mb-rouge);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* « Déjà un carnet ? » : sous le calendrier, pour ne pas parler d'abord aux habitués */
.mb-cal__member { margin: 20px 0 0; font-size: 15px; color: var(--mb-texte-3); }
.mb-cal__member[hidden] { display: none; }

/* Envies facultatives, dans le formulaire découverte */
.mb-form .mb-compose { margin: 4px 0 18px; padding: 0; border: 0; }
.mb-form .mb-chip { min-height: 44px; font-size: 17px; }

/* Ce que promet la séance découverte, au moment de s'engager */
.mb-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; padding: 0; list-style: none; font-family: var(--mb-font-display); font-size: 19px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--mb-texte); }
.mb-facts li + li::before { content: "·"; margin: 0 10px; color: var(--mb-rouge); }
.mb-facts li.mb-facts__todo { padding: 0 .3em; background: #FFE9A8; }

/* Envies facultatives : repliées par défaut */
.mb-wish { margin: 2px 0 16px; border-top: 1px solid var(--mb-bord); border-bottom: 1px solid var(--mb-bord); }
.mb-wish summary { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; color: var(--mb-texte); cursor: pointer; list-style: none; }
.mb-wish summary::-webkit-details-marker { display: none; }
.mb-wish summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 16px; line-height: 1; transition: transform .2s ease; }
.mb-wish[open] summary::before { transform: rotate(45deg); }
.mb-wish summary span { font-size: 14px; font-weight: 500; color: var(--mb-texte-2); }
.mb-wish .mb-compose { margin: 0 0 16px; }

/* Formulaires découverte et connexion */
.mb-form { margin-top: 24px; padding: 24px; border: 1px solid var(--mb-bord); border-radius: 6px; background: var(--mb-papier); scroll-margin-top: 96px; }
.mb-form__title { margin: 0; font-family: var(--mb-font-display); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.mb-form__intro { margin: 6px 0 18px; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--mb-texte-2); }
.mb-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mb-field { margin: 0 0 14px; }
.mb-field--wide { grid-column: 1 / -1; }
.mb-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mb-texte-2); }
.mb-field input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #B9AC9C;
	border-radius: 4px;
	background: #fff;
	color: var(--mb-texte);
	font: 16px/1.4 var(--mb-font-body);
}
.mb-field input:focus { border-color: var(--mb-noir); outline: 2px solid var(--mb-rouge); outline-offset: 1px; }
.mb-field input[aria-invalid="true"], .mb-check input[aria-invalid="true"] { border-color: var(--mb-rouge); box-shadow: 0 0 0 1px var(--mb-rouge); }
.mb-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; line-height: 1.5; color: var(--mb-texte-3); }
.mb-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mb-rouge); }
.mb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mb-form__error { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--mb-rouge); }
.mb-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Messages (réservation faite, lien envoyé, lien expiré…) */
.mb-flash {
	margin-top: 40px;
	padding: 18px 22px;
	border: 1px solid var(--mb-bord);
	border-radius: 6px;
	background: var(--mb-carte);
	font-size: 16px;
	line-height: 1.6;
	color: var(--mb-texte);
}
.mb-flash strong { font-family: var(--mb-font-display); font-size: 22px; text-transform: uppercase; display: block; color: #1E7A46; }
.mb-flash.is-error strong, .mb-flash--confirm strong { color: var(--mb-rouge); }
.mb-flash--confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.mb-flash--confirm strong { flex-basis: 100%; }
.mb-flash--confirm span { flex: 1 1 280px; }
.mb-flash[hidden] { display: none; }
.mb-flash:focus { outline: none; }
.mb-flash + .mb-cal { margin-top: 20px; }

/* ---------- Pied de page ---------- */

.mb-footer { position: relative; overflow: hidden; background: var(--mb-noir); color: var(--mb-craie); }

.mb-footer__light {
	position: absolute;
	bottom: -520px;
	left: 50%;
	width: 1400px;
	height: 1000px;
	margin-left: -700px;
	background: radial-gradient(ellipse at 50% 50%, rgba(255, 232, 205, .12) 0%, rgba(255, 232, 205, 0) 60%);
	pointer-events: none;
}

.mb-footer .mb-wrap { position: relative; padding-top: 104px; padding-bottom: 40px; }

.mb-footer__title {
	grid-area: title;
	margin: 0;
	font-family: var(--mb-font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(64px, 10vw, 156px);
	line-height: .86;
}

/* Appel final : le titre et sa phrase à gauche, l'écusson au-dessus du bouton à droite. */
.mb-footer__cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "title seal" "quote cta";
	align-items: center;
	gap: 28px 48px;
}
.mb-footer__cta > .mb-btn { grid-area: cta; }

.mb-footer__seal { grid-area: seal; position: relative; justify-self: center; width: clamp(200px, 19vw, 270px); }
.mb-footer__seal::before {
	content: "";
	position: absolute;
	inset: -24%;
	background: radial-gradient(circle, rgba(200, 0, 0, .42) 0%, rgba(200, 0, 0, .12) 38%, rgba(200, 0, 0, 0) 64%);
	pointer-events: none;
}
.mb-footer__seal img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }

.mb-footer__quote { grid-area: quote; margin: 0; font-family: var(--mb-font-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; color: var(--mb-or); }

/* Le club, dans le pied de page : écusson et prépa compétition, sous l'appel final */
.mb-club { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; margin-top: 72px; }
.mb-club__badge { position: relative; flex: 0 0 200px; max-width: 200px; }
.mb-club__badge::before {
	content: "";
	position: absolute;
	inset: -22%;
	background: radial-gradient(circle, rgba(200, 0, 0, .42) 0%, rgba(200, 0, 0, .12) 38%, rgba(200, 0, 0, 0) 64%);
	pointer-events: none;
}
.mb-club__badge img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.mb-club__text { flex: 1 1 420px; min-width: 0; }
.mb-club__title { margin: 0; font-family: var(--mb-font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.mb-club__desc { margin: 16px 0 0; max-width: 620px; font-size: 16px; line-height: 1.7; color: #E4DED6; }
.mb-club__levels { margin: 14px 0 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--mb-or); }
.mb-club__prepa { margin: 14px 0 0; max-width: 620px; font-size: 15px; line-height: 1.65; color: #E4DED6; }
.mb-club__prepa strong { color: var(--mb-craie); }

/* « Où me trouver » : adresse à gauche, carte à droite. Avant le clic, un plan dessiné ; après, Google Maps
   assombrie par un filtre CSS (net, contrairement à un filtre SVG qui crénelait les textes et perdait le repère). */
.mb-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 28px 56px; margin-top: 72px; }
.mb-map__title { margin: 0; font-family: var(--mb-font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.mb-map__address { margin: 16px 0 24px; font-style: normal; font-size: 18px; line-height: 1.6; color: #E4DED6; }

.mb-map__box { position: relative; height: 360px; overflow: hidden; background: var(--mb-noir-3); border: 1px solid var(--mb-ligne-sombre); border-radius: 6px; }
.mb-map__box:focus { outline: none; }
.mb-map__box:focus-visible { outline: 2px solid var(--mb-rouge); outline-offset: 3px; }
.mb-map__frame { display: block; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.45) sepia(.25) contrast(.9); }

.mb-map__veil {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	padding: 24px;
	text-align: center;
}
.mb-map__veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 18, 17, .94) 0%, rgba(20, 18, 17, .6) 34%, rgba(20, 18, 17, 0) 62%); pointer-events: none; }
.mb-map__plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-map__park { fill: #191715; }
.mb-map__streets path { fill: none; stroke: #36302C; stroke-width: 3; stroke-linecap: round; }
.mb-map__highway { fill: none; stroke: var(--mb-cuivre); stroke-width: 11; stroke-linecap: round; opacity: .55; }
.mb-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); line-height: 0; }
.mb-map__pin::before {
	content: "";
	position: absolute;
	inset: -70% -110%;
	background: radial-gradient(circle, rgba(200, 0, 0, .42) 0%, rgba(200, 0, 0, .12) 38%, rgba(200, 0, 0, 0) 64%);
	pointer-events: none;
}
.mb-map__pin svg { position: relative; }
.mb-map__note, .mb-map__veil .mb-btn { position: relative; z-index: 1; }
.mb-map__note { max-width: 440px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--mb-argent); }
.mb-map__note a { color: var(--mb-craie); }

.mb-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	margin-top: 72px;
	padding-top: 40px;
	border-top: 1px solid #2A2522;
}

.mb-footer__about { margin: 16px 0 0; font-size: 15px; line-height: 1.65; color: var(--mb-argent-2); }

.mb-footer__heading { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mb-argent); }

.mb-footer__contact { margin: 0; font-style: normal; font-size: 15px; line-height: 1.9; color: #E4DED6; }
.mb-footer__contact a, .mb-footer__nav a { color: #E4DED6; text-decoration: none; }
.mb-footer__contact a:hover, .mb-footer__nav a:hover { color: #fff; text-decoration: underline; }

.mb-footer__nav ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mb-footer__nav a { display: inline-block; padding: 6px 0; font-size: 15px; }

.mb-footer__legal { margin: 48px 0 0; font-size: 13px; color: #9E9A97; }
.mb-footer__legal a { color: #9E9A97; }
.mb-footer__legal.mb-footer__mark { margin-top: 8px; }

/* ---------- Pages internes (mentions légales, etc.) ---------- */

.mb-page { padding: 72px 0 104px; background: var(--mb-craie); }
.mb-page .mb-h2 { font-size: clamp(38px, 4.6vw, 64px); }
.mb-prose { max-width: 760px; margin-top: 32px; font-size: 17px; line-height: 1.75; color: var(--mb-texte-3); }
.mb-prose h2, .mb-prose h3 { font-family: var(--mb-font-display); text-transform: uppercase; line-height: 1.05; color: var(--mb-texte); }
.mb-prose .mb-legal { padding-left: 0; list-style: none; }
.mb-prose .mb-legal li { padding: 6px 0; border-top: 1px solid var(--mb-bord); }
.mb-prose .mb-legal strong { color: var(--mb-texte); }
.mb-todo { padding: 0 .3em; background: #FFE9A8; color: #141211; }
.mb-list { margin: 32px 0 0; padding: 0; list-style: none; }
.mb-list li { padding: 16px 0; border-top: 1px solid var(--mb-bord); }
.mb-list a { font-family: var(--mb-font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--mb-texte); }

/* ---------- Mon compte ---------- */

.mb-moncompte .mb-flash { margin-top: 32px; }
.mb-acc { margin-top: 36px; }
.mb-acc__guest { max-width: 640px; }
.mb-acc__guest .mb-form { margin-top: 24px; }
.mb-acc__aside, .mb-acc__admin { margin: 20px 0 0; font-size: 15px; color: var(--mb-texte-2); }

.mb-acc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.mb-acc__card {
	padding: 28px;
	background: var(--mb-carte);
	border: 1px solid var(--mb-bord);
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mb-texte-3);
}

.mb-acc__card p { margin: 0 0 12px; }
.mb-acc__card--tickets { background: var(--mb-noir); border-color: var(--mb-noir); border-top: 4px solid var(--mb-rouge); color: var(--mb-argent); }
.mb-acc__card--tickets .mb-acc__heading { color: var(--mb-argent); }

.mb-acc__heading { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mb-texte-2); }

.mb-acc__big { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px !important; color: var(--mb-craie); }
.mb-acc__big span { font-family: var(--mb-font-display); font-size: 104px; font-weight: 700; line-height: .85; }
.mb-acc__big small { font-family: var(--mb-font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; }
.mb-acc__big.is-empty span { color: var(--mb-rouge); }
.mb-acc__sub { color: #E4DED6; }

.mb-acc__carnets { margin: 0 0 20px; padding: 0; list-style: none; }
.mb-acc__carnets li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--mb-ligne-sombre); }
.mb-acc__carnets strong { color: var(--mb-craie); }
.mb-acc__card--tickets .mb-btn { margin-top: 8px; }

.mb-acc__list { margin: 0 0 12px; padding: 0; list-style: none; }
.mb-acc__list li { display: flex; flex-direction: column; padding: 12px 0 12px 14px; border-left: 3px solid var(--mb-rouge); }
.mb-acc__list li + li { margin-top: 8px; }
.mb-acc__list strong { font-family: var(--mb-font-display); font-size: 21px; text-transform: uppercase; color: var(--mb-texte); }
.mb-acc__list--past li { border-left-color: var(--mb-bord); }
.mb-acc__list--past strong { color: var(--mb-texte-2); }
.mb-acc__list li.is-empty { border-left-color: var(--mb-bord); color: var(--mb-texte-2); }
.mb-acc__note { font-size: 14px; color: var(--mb-texte-2); }
.mb-acc__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }

/* ---------- Bandeau d'information cookies ---------- */

.mb-cookies {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px 20px;
	max-width: min(560px, calc(100% - 32px));
	padding: 10px 10px 10px 18px;
	background: var(--mb-noir);
	border: 1px solid var(--mb-ligne-sombre);
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
	color: var(--mb-craie);
	animation: mb-rise .5s cubic-bezier(.2, .7, .2, 1) both;
}

.mb-cookies[hidden] { display: none; }
.mb-cookies__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mb-argent); }
.mb-cookies__text strong { color: var(--mb-craie); }
.mb-cookies__text a { color: var(--mb-craie); }
.mb-cookies .mb-btn { flex: none; }

.mb-footer__cookies { padding: 0; border: 0; background: none; color: #9E9A97; font: inherit; text-decoration: underline; cursor: pointer; }
.mb-footer__cookies:hover { color: #fff; }

/* ---------- Animations ---------- */

@keyframes mb-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes mb-draw { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
@keyframes mb-reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes mb-settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes mb-sway { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

@media (prefers-reduced-motion: reduce) {
	.mb-rise, .mb-ropes path, .mb-hero__light, .mb-hero__next, .mb-hero__photo, .mb-hero__photo img, .mb-cookies { animation: none !important; }
	.mb-slot:not(:disabled):hover { transform: none; }
	.mb-ropes path { stroke-dasharray: none; }
	.mb-frame:hover .mb-frame__media img, .mb-split__panel:hover .mb-split__img { transform: none !important; }
	.mb-split__panel, .mb-split__text, .mb-credit, .mb-split__reveal, .mb-split__reveal-inner > *, .mb-split__modules li { transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 820px) {
	:root { --mb-section: 64px; }

	.mb-nav .mb-nav__links { display: none; }
	.mb-account-link { justify-content: center; width: 44px; border: 1px solid #6E6763; border-radius: 4px; }
	.mb-account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.admin-bar .mb-header { top: 0; }
	html { scroll-padding-top: 80px; }
	.mb-burger { display: inline-flex; }
	.mb-nav { flex-wrap: nowrap; gap: 6px; }
	.mb-nav .mb-btn--sm { padding: 0 14px; }
	.mb-header__row { flex-wrap: nowrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
	.mb-brand { gap: 8px; min-width: 0; }
	.mb-split__shade { background-color: rgba(11, 10, 9, .35); }
	.mb-brand__name { font-size: 16px; letter-spacing: .03em; }

	/* Téléphone : la scène en haut, le titre posé sur son bas, le reste dessous. */
	.mb-hero { min-height: 0; justify-content: flex-start; }
	.mb-hero__photo { inset: 0 0 auto 0; width: 100%; height: 62svh; max-height: 560px; }
	.mb-hero__photo img { object-position: 70% 30%; }
	.mb-hero__photo::after {
		background:
			linear-gradient(0deg, var(--mb-noir-2) 0%, rgba(11, 10, 9, .6) 30%, rgba(11, 10, 9, 0) 62%),
			linear-gradient(180deg, rgba(11, 10, 9, .5) 0%, rgba(11, 10, 9, 0) 24%);
	}
	.mb-hero__inner { padding-top: calc(min(62svh, 560px) - 13.5vw * 2.4); }
	.mb-hero__title { font-size: 13.5vw; }
	.mb-hero__ctas, .mb-hero__cta { width: 100%; }
	.mb-hero__ctas .mb-btn { width: 100%; }
	.mb-hero__cta-note { text-align: center; }
	.mb-hero__promises { font-size: 14px; }


	.mb-themes__head { padding-top: 64px; padding-bottom: 40px; }
	.mb-split { flex-direction: column; height: auto; }
	.mb-split__panel { flex: none; height: auto; min-height: 520px; margin-left: 0 !important; clip-path: none !important; }
	.mb-split__text { position: relative; }
	.mb-split .mb-credit { left: 24px !important; bottom: 10px; }
	.mb-split__panel:hover { flex-grow: 0; }
	.mb-split__panel:nth-child(n+2) { border-top: 6px solid var(--mb-rouge); }
	.mb-split__text, .mb-split__panel:nth-child(n+2) .mb-split__text,
	.mb-split__panel:nth-child(n+2):hover .mb-split__text, .mb-split__panel:nth-child(n+2):focus-within .mb-split__text { padding: 220px 24px 32px; }

	.mb-round__num { flex-basis: 48px; font-size: 76px; }

	.mb-reserver .mb-section { padding-top: 56px; }
	.mb-steps { gap: 8px 16px; font-size: 14px; }
	.mb-steps li + li::before { display: none; }
	.mb-cal { margin-left: -8px; margin-right: -8px; padding: 18px; }
	.mb-cal > .mb-corner { display: none; }
	.mb-chip { font-size: 17px; }
	.mb-carnets__grid { grid-template-columns: 1fr; }
	.mb-carnets__foot .mb-btn { width: 100%; }
	.mb-split__reveal { grid-template-rows: 1fr; }
	.mb-split__reveal-inner > *, .mb-split__modules li { opacity: 1; transform: none; }
	.mb-acc__big span { font-size: 84px; }
	.mb-acc__grid { grid-template-columns: 1fr; }
	.mb-cookies { left: 0; right: 0; bottom: 0; max-width: none; padding: 10px 12px 10px 16px; border-width: 1px 0 0; border-radius: 0; animation: none; }
	.mb-cookies__text { font-size: 13px; }
	.mb-cookies__text a { display: none; }
	/* Les jours défilent de côté : deux et demi à l'écran, le bord coupé montre qu'il y en a d'autres. */
	.mb-cal__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 40%;
		gap: 10px;
		margin: 0 -18px;
		padding: 0 18px 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 18px;
		scrollbar-width: thin;
	}
	.mb-cal__day { scroll-snap-align: start; }
	.mb-cal__day.is-gone { display: none; }
	.mb-cal__grid:not(.is-at-end) { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
	.mb-cal__dayname { font-size: 18px; }
	/* Une fois un créneau choisi, récapitulatif et bouton restent sous le pouce tant que le calendrier est à l'écran. */
	.mb-cal__foot {
		position: relative;
		z-index: 2;
		margin: 20px -18px -18px;
		padding: 14px 18px 18px;
		background: var(--mb-carte);
		border-top: 1px solid var(--mb-bord);
	}
	.mb-cal.has-pick .mb-cal__foot { position: sticky; bottom: var(--mb-bottom-inset, 0px); }
	.mb-cal__summary { font-size: 15px; }
	.mb-cal__foot .mb-btn { width: 100%; }
	.mb-cal__member { margin-top: 30px; }
	.mb-cal__top { gap: 12px; }
	.mb-cal__range { flex-basis: 100%; justify-content: space-between; }
	.mb-legend { flex-basis: 100%; }
	.mb-form { padding: 18px; }
	.mb-form__grid { grid-template-columns: 1fr; }
	.mb-form__actions .mb-btn { width: 100%; }

	.mb-club { margin-top: 56px; }
	.mb-map { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
	.mb-map__box { height: 320px; }
	.mb-map__info .mb-btn { width: 100%; }
	.mb-map__veil { padding: 20px 16px; }
	.mb-club__badge { flex-basis: 140px; max-width: 140px; }
	.mb-footer .mb-wrap { padding-top: 64px; }
	.mb-footer__cta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "quote" "seal" "cta"; gap: 24px; }
	.mb-footer__seal { width: 180px; margin-top: 16px; }
	.mb-footer__cta .mb-btn { width: 100%; }
}
