/* ==========================================================================
   My Moving — feuille de style principale
   Identité : jaune des camions (#FFC20E) + anthracite du logo (#2E3033).
   Motifs : « ruban adhésif » jaune sous les mots clés, lignes de vitesse du logo.
   ========================================================================== */

:root {
	--mm-yellow: #FFC20E;
	--mm-yellow-deep: #F0B000;
	--mm-yellow-soft: #FFF3C9;
	--mm-ink: #1C1D1F;
	--mm-anthracite: #2E3033;
	--mm-stone: #5E6268;
	--mm-mute: #8A8E94;
	--mm-line: #E7E3D9;
	--mm-paper: #FAF8F3;
	--mm-white: #FFFFFF;
	--mm-green: #1FAF54;
	--mm-red: #D52B1E;

	--mm-font-head: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mm-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	--mm-gutter: clamp(16px, 4vw, 32px);
	--mm-section: clamp(64px, 9vw, 120px);
	--mm-radius: 20px;
	--mm-radius-sm: 12px;
	--mm-shadow: 0 1px 2px rgba(28, 29, 31, .05), 0 12px 32px -12px rgba(28, 29, 31, .16);
	--mm-shadow-lg: 0 2px 4px rgba(28, 29, 31, .05), 0 32px 64px -24px rgba(28, 29, 31, .28);
	--mm-ease: cubic-bezier(.2, .7, .2, 1);
	--mm-header-h: 84px;
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mm-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--mm-paper);
	color: var(--mm-anthracite);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--mm-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--mm-ink); text-decoration-color: var(--mm-yellow-deep); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mm-font-head);
	color: var(--mm-ink);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; text-wrap: pretty; }

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

::selection { background: var(--mm-yellow); color: var(--mm-ink); }

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

.mm-skip {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--mm-ink); color: #fff; padding: 12px 18px; border-radius: 8px;
}
.mm-skip:focus { top: 16px; color: #fff; }

.mm-wrap {
	width: 100%;
	max-width: calc(1240px + 2 * var(--mm-gutter));
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

/* --------------------------------------------------------------------------
   Icônes & boutons
   -------------------------------------------------------------------------- */

.mm-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.mm-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 52px;
	padding: .85em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--mm-yellow);
	color: var(--mm-ink);
	font-family: var(--mm-font-head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: .005em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--mm-ease), color .2s var(--mm-ease), border-color .2s var(--mm-ease), transform .2s var(--mm-ease), box-shadow .2s var(--mm-ease);
}
.mm-btn:hover,
.wp-block-button__link:hover { background: var(--mm-yellow-deep); color: var(--mm-ink); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(240, 176, 0, .7); }
.mm-btn:active,
.wp-block-button__link:active { transform: translateY(0); }

.mm-btn--dark,
.wp-block-button.is-style-mm-dark .wp-block-button__link { background: var(--mm-ink); color: #fff; }
.mm-btn--dark:hover,
.wp-block-button.is-style-mm-dark .wp-block-button__link:hover { background: var(--mm-anthracite); color: #fff; box-shadow: 0 10px 24px -10px rgba(28, 29, 31, .6); }

.mm-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--mm-ink);
	border-color: currentColor;
	padding: .85em 1.6em;
}
.mm-btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; box-shadow: none; }

.mm-btn--whatsapp { background: var(--mm-green); color: #fff; }
.mm-btn--whatsapp:hover { background: #18964a; color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 175, 84, .7); }

.wp-block-buttons { gap: 12px; }
.wp-block-buttons.mm-center { justify-content: center; }

/* --------------------------------------------------------------------------
   Bandeau supérieur
   -------------------------------------------------------------------------- */

.mm-topbar {
	background: var(--mm-ink);
	color: #C9CBCE;
	font-size: .8125rem;
}
.mm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.mm-topbar__msg { display: flex; align-items: center; gap: 8px; margin: 0; }
.mm-topbar__msg .mm-i { color: var(--mm-yellow); }
.mm-topbar__links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.mm-topbar__links li { display: flex; align-items: center; gap: 7px; }
.mm-topbar__links .mm-i { color: var(--mm-yellow); }
.mm-topbar a { color: #C9CBCE; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.mm-topbar a:hover { color: #fff; }

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

.mm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s var(--mm-ease), border-color .25s var(--mm-ease);
}
.admin-bar .mm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mm-header { top: 0; } }
.mm-header.is-scrolled { border-color: var(--mm-line); box-shadow: 0 8px 28px -18px rgba(28, 29, 31, .35); }

.mm-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--mm-header-h); }

.mm-brand { display: block; flex: none; color: var(--mm-anthracite); line-height: 0; }
.mm-brand .mm-logo { width: auto; height: 50px; }

.mm-nav { margin-left: auto; }
.mm-menu,
.mm-menu ul { list-style: none; margin: 0; padding: 0; }
.mm-menu { display: flex; align-items: center; gap: 4px; }
.mm-menu > li { position: relative; }
.mm-menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--mm-ink);
	font-family: var(--mm-font-head);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color .2s var(--mm-ease);
}
.mm-menu > li > a:hover,
.mm-menu > li:focus-within > a { background: var(--mm-yellow-soft); }
.mm-menu .current-menu-item > a,
.mm-menu .current-menu-ancestor > a,
.mm-menu .current-page-ancestor > a { box-shadow: inset 0 -3px 0 var(--mm-yellow); border-radius: 0; }
.mm-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .55;
}

.mm-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: -8px;
	min-width: 290px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: 18px;
	box-shadow: var(--mm-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--mm-ease), transform .2s var(--mm-ease), visibility .2s;
}
.mm-menu .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mm-menu li:hover > .sub-menu,
.mm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mm-menu .sub-menu a { border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.mm-menu .sub-menu a:hover { background: var(--mm-paper); }
.mm-menu .sub-menu .current-menu-item > a { background: var(--mm-yellow-soft); box-shadow: none; border-radius: 10px; }

.mm-header__actions { display: flex; align-items: center; gap: 18px; }

.mm-lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--mm-line); border-radius: 999px; }
.mm-lang a {
	padding: 5px 10px;
	border-radius: 999px;
	font-family: var(--mm-font-head);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--mm-stone);
	text-decoration: none;
	letter-spacing: .04em;
}
.mm-lang a:hover { color: var(--mm-ink); }
.mm-lang a.is-current { background: var(--mm-ink); color: #fff; }

.mm-header__phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mm-ink); }
.mm-header__phone-icon {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--mm-yellow-soft);
	transition: background-color .2s var(--mm-ease);
}
.mm-header__phone:hover .mm-header__phone-icon { background: var(--mm-yellow); }
.mm-header__phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.mm-header__phone-text small { font-size: .75rem; color: var(--mm-stone); }
.mm-header__phone-text strong { font-family: var(--mm-font-head); font-weight: 600; font-size: 1rem; white-space: nowrap; }

.mm-header__cta { min-height: 46px; padding: .7em 1.35em; }

.mm-burger { display: none; }
.mm-nav__mobile-extra { display: none; }

@media (max-width: 1240px) {
	.mm-header__phone-text { display: none; }
}

@media (max-width: 1080px) {
	:root { --mm-header-h: 72px; }
	.mm-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.mm-brand .mm-logo { height: 42px; }
	.mm-header__actions { margin-left: auto; gap: 12px; }
	.mm-header__actions > .mm-lang { display: none; }
	.mm-burger {
		display: grid;
		place-items: center;
		width: 46px; height: 46px;
		padding: 0;
		border: 1px solid var(--mm-line);
		border-radius: 50%;
		background: #fff;
		cursor: pointer;
	}
	.mm-burger__bars,
	.mm-burger__bars::before,
	.mm-burger__bars::after {
		display: block;
		width: 18px; height: 2px;
		background: var(--mm-ink);
		border-radius: 2px;
		transition: transform .25s var(--mm-ease), opacity .2s;
	}
	.mm-burger__bars { position: relative; }
	.mm-burger__bars::before,
	.mm-burger__bars::after { content: ""; position: absolute; left: 0; }
	.mm-burger__bars::before { top: -6px; }
	.mm-burger__bars::after { top: 6px; }
	.mm-burger[aria-expanded="true"] .mm-burger__bars { background: transparent; }
	.mm-burger[aria-expanded="true"] .mm-burger__bars::before { transform: translateY(6px) rotate(45deg); }
	.mm-burger[aria-expanded="true"] .mm-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.mm-nav {
		position: fixed;
		inset: var(--mm-nav-top, 112px) 0 0 0;
		margin: 0;
		padding: 16px var(--mm-gutter) 120px;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s var(--mm-ease), transform .25s var(--mm-ease), visibility .25s;
	}
	.mm-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.mm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.mm-menu > li { border-bottom: 1px solid var(--mm-line); }
	.mm-menu a { padding: 16px 4px; font-size: 1.25rem; border-radius: 0; }
	.mm-menu > li > a:hover { background: none; }
	.mm-menu .menu-item-has-children > a::after { display: none; }
	.mm-menu .current-menu-item > a { box-shadow: none; color: var(--mm-ink); text-decoration: underline; text-decoration-color: var(--mm-yellow); text-decoration-thickness: 3px; }
	.mm-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 12px 12px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.mm-menu .sub-menu a { font-size: 1rem; padding: 9px 12px; color: var(--mm-stone); }
	.mm-nav__mobile-extra { display: grid; gap: 12px; margin-top: 24px; }
	.mm-nav__mobile-extra .mm-lang { justify-self: start; }
	body.mm-nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
	.mm-topbar__msg { display: none; }
	.mm-topbar__inner { justify-content: center; }
	.mm-topbar__links li:nth-child(2) span { display: none; }
	.mm-header__phone { display: none; }
	.mm-header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Sections (pages composées de blocs)
   -------------------------------------------------------------------------- */

.mm-content--sections > .alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: var(--mm-section) var(--mm-gutter);
	position: relative;
}
.mm-content--sections > *:not(.alignfull) { max-width: 760px; margin-inline: auto; padding-inline: var(--mm-gutter); }

.wp-block-group.is-style-mm-white { background: var(--mm-white); }
.wp-block-group.is-style-mm-yellow { background: var(--mm-yellow); color: var(--mm-ink); }
.wp-block-group.is-style-mm-dark { background: var(--mm-ink); color: #D5D7DA; }
.wp-block-group.is-style-mm-dark :is(h1, h2, h3, h4) { color: #fff; }
.wp-block-group.is-style-mm-dark a:not(.wp-block-button__link) { color: #fff; }

/* Surtitre avec les lignes de vitesse du logo */
.is-style-mm-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px !important;
	font-family: var(--mm-font-head);
	font-size: .8125rem !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mm-stone);
}
.is-style-mm-eyebrow::before {
	content: "";
	flex: none;
	width: 34px;
	height: 12px;
	background:
		linear-gradient(90deg, transparent 40%, var(--mm-yellow-deep) 40%) 0 0 / 100% 2px no-repeat,
		linear-gradient(90deg, transparent 15%, var(--mm-yellow-deep) 15%) 0 5px / 100% 2px no-repeat,
		linear-gradient(90deg, transparent 0, var(--mm-yellow-deep) 0) 0 10px / 100% 2px no-repeat;
}
.wp-block-group.is-style-mm-dark .is-style-mm-eyebrow { color: var(--mm-yellow); }
.wp-block-group.is-style-mm-yellow .is-style-mm-eyebrow { color: var(--mm-ink); }
.wp-block-group.is-style-mm-yellow .is-style-mm-eyebrow::before { filter: brightness(0); }

.is-style-mm-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem) !important; line-height: 1.6; color: var(--mm-stone); }
.wp-block-group.is-style-mm-dark .is-style-mm-lead { color: #B9BCC0; }

/* « Ruban adhésif » jaune sous un mot */
mark.mm-tape {
	background: linear-gradient(176deg, transparent 0 48%, var(--mm-yellow) 48% 90%, transparent 90%);
	color: inherit;
	padding: 0 .08em;
	margin: 0 -.04em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.wp-block-group.is-style-mm-dark mark.mm-tape { background: none; color: var(--mm-yellow); }
.wp-block-group.is-style-mm-yellow mark.mm-tape { background: linear-gradient(176deg, transparent 0 48%, #fff 48% 90%, transparent 90%); }

/* Intros centrées */
:is(.mm-services, .mm-steps-section, .mm-gallery-teaser, .mm-reviews-section, .mm-values, .mm-faq, .mm-cta, .mm-fleet) > :is(h2, p) { text-align: center; }
:is(.mm-services, .mm-steps-section, .mm-gallery-teaser, .mm-reviews-section, .mm-values, .mm-faq, .mm-cta, .mm-fleet) > .is-style-mm-eyebrow { justify-content: center; }
:is(.mm-services, .mm-steps-section, .mm-gallery-teaser, .mm-reviews-section, .mm-values, .mm-faq, .mm-fleet) > h2 { margin-bottom: .4em; }
:is(.mm-services, .mm-steps-section, .mm-gallery-teaser, .mm-reviews-section, .mm-values, .mm-fleet) > :is(h2, .is-style-mm-lead):last-of-type { margin-bottom: clamp(32px, 5vw, 56px); }

.wp-block-columns { gap: clamp(20px, 3vw, 28px); }
.wp-block-columns.mm-split { gap: clamp(32px, 6vw, 88px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.mm-content--sections > .mm-hero {
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(56px, 8vw, 104px);
	overflow: hidden;
	isolation: isolate;
}
.mm-hero::before {
	/* lignes de vitesse décoratives */
	content: "";
	position: absolute;
	z-index: -1;
	right: -4vw;
	top: 12%;
	width: min(52vw, 760px);
	height: 260px;
	opacity: .55;
	background:
		linear-gradient(90deg, transparent 0 45%, var(--mm-line) 45%) 0 0 / 100% 6px no-repeat,
		linear-gradient(90deg, transparent 0 30%, var(--mm-line) 30%) 0 44px / 100% 6px no-repeat,
		linear-gradient(90deg, transparent 0 18%, var(--mm-line) 18%) 0 88px / 100% 6px no-repeat,
		linear-gradient(90deg, transparent 0 8%, var(--mm-line) 8%) 0 132px / 100% 6px no-repeat,
		linear-gradient(90deg, transparent 0 22%, var(--mm-line) 22%) 0 176px / 100% 6px no-repeat,
		linear-gradient(90deg, transparent 0 38%, var(--mm-line) 38%) 0 220px / 100% 6px no-repeat;
}
.mm-hero h1 { overflow-wrap: break-word; font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: .45em; }
.mm-hero .is-style-mm-lead { max-width: 36em; margin-bottom: 1.8em; }
.mm-hero .wp-block-buttons { margin-bottom: 28px; }
.mm-hero__checks { font-size: .9375rem; color: var(--mm-stone); }
.mm-hero__checks li { margin-bottom: 6px !important; }

.mm-hero--simple { text-align: left; }
.mm-hero--simple::before { top: 30%; }
.mm-hero--simple > *,
.mm-prose > * {
	/* aligné sur le bord gauche du contenu large (formulaire, galerie…) */
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)) !important;
	margin-right: auto !important;
}
.mm-hero--simple > * { max-width: 900px !important; }
.mm-hero--simple .is-style-mm-lead { max-width: 40em; }
.mm-content--sections > .mm-hero--compact { padding-bottom: clamp(32px, 4vw, 56px); }
.mm-hero--compact h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* Image du hero : cadre jaune décalé + badge */
.wp-block-image.is-style-mm-frame { position: relative; margin: 0 14px 14px 0; isolation: isolate; }
.wp-block-image.is-style-mm-frame::before {
	content: "";
	position: absolute;
	inset: 22px -14px -14px 22px;
	z-index: -1;
	border-radius: calc(var(--mm-radius) + 6px);
	background: var(--mm-yellow);
}
.wp-block-image.is-style-mm-frame img {
	display: block;
	width: 100%;
	border-radius: calc(var(--mm-radius) + 6px);
	box-shadow: var(--mm-shadow-lg);
}
.mm-hero__img img { aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; }
.mm-hero__img::after {
	content: "7j/7";
	position: absolute;
	left: -22px;
	bottom: 36px;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--mm-ink);
	color: var(--mm-yellow);
	font-family: var(--mm-font-head);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	box-shadow: var(--mm-shadow-lg);
	transform: rotate(-8deg);
}
.lang-en .mm-hero__img::after { content: "7/7"; }

@media (max-width: 781px) {
	.mm-hero__img { max-width: 520px; }
	.mm-hero__img img { aspect-ratio: 4 / 3.4; }
	.mm-hero__img::after { width: 76px; height: 76px; font-size: 1.15rem; left: -8px; bottom: 20px; }
}

/* --------------------------------------------------------------------------
   Bandeau de confiance
   -------------------------------------------------------------------------- */

.mm-content--sections > .mm-trust { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); overflow: hidden; }
.mm-trust .wp-block-columns { gap: 0; }
.mm-trust .wp-block-column { padding: 8px clamp(16px, 2.5vw, 32px); border-left: 1px solid rgba(255, 255, 255, .12); }
.mm-trust .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.mm-trust__big { margin: 0 0 4px !important; font-family: var(--mm-font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--mm-yellow); letter-spacing: -0.02em; }
.mm-trust__big strong { font-weight: 700; }
.mm-trust__small { margin: 0 !important; font-size: .9375rem; color: #B9BCC0; }
@media (max-width: 781px) {
	.mm-trust .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 0; }
	.mm-trust .wp-block-column { padding: 0 16px; border-left: 0; }
	.mm-trust .wp-block-column:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
	.mm-trust .wp-block-column:nth-child(odd) { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Cartes (services, valeurs)
   -------------------------------------------------------------------------- */

.wp-block-columns.mm-cards { margin-bottom: clamp(20px, 3vw, 28px); align-items: stretch !important; }
.wp-block-columns.mm-cards:last-child { margin-bottom: 0; }
.wp-block-columns.mm-cards > .wp-block-column { display: flex; }
.wp-block-columns.mm-cards > .wp-block-column > * { flex: 1; }

.wp-block-group.is-style-mm-card {
	position: relative;
	padding: clamp(24px, 3vw, 34px);
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	transition: transform .3s var(--mm-ease), box-shadow .3s var(--mm-ease), border-color .3s var(--mm-ease);
}
.wp-block-group.is-style-mm-white .wp-block-group.is-style-mm-card { background: var(--mm-paper); }
.wp-block-group.is-style-mm-card > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.wp-block-group.is-style-mm-card > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-mm-card h3 { font-size: 1.3125rem; margin-bottom: .45em; }
.wp-block-group.is-style-mm-card h3 a { color: inherit; text-decoration: none; }
.wp-block-group.is-style-mm-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.wp-block-group.is-style-mm-card p { color: var(--mm-stone); font-size: 1rem; }
.mm-services .wp-block-group.is-style-mm-card:hover,
.mm-values .wp-block-group.is-style-mm-card:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lg); border-color: transparent; }

.mm-card__more { margin-top: auto !important; padding-top: 8px; font-family: var(--mm-font-head); font-weight: 600; font-size: .9375rem !important; }
.mm-card__more a { color: var(--mm-ink) !important; text-decoration: none; position: relative; z-index: 2; }
.wp-block-group.is-style-mm-card:hover .mm-card__more a { text-decoration: underline; text-decoration-color: var(--mm-yellow-deep); }
.mm-services .wp-block-group.is-style-mm-card { display: flex; flex-direction: column; }

/* Icône de carte : carré jaune + pictogramme */
.mm-ico { padding-top: calc(clamp(24px, 3vw, 34px) + 76px) !important; }
.mm-ico::before,
.mm-ico::after {
	content: "";
	position: absolute;
	top: clamp(24px, 3vw, 34px);
	left: clamp(24px, 3vw, 34px);
	width: 56px;
	height: 56px;
}
.mm-ico::before { border-radius: 16px; background: var(--mm-yellow); transform: rotate(-4deg); transition: transform .3s var(--mm-ease); }
.wp-block-group.is-style-mm-card:hover.mm-ico::before { transform: rotate(4deg); }
.mm-ico::after {
	background: var(--mm-ink);
	-webkit-mask: var(--mm-icon) center / 28px no-repeat;
	mask: var(--mm-icon) center / 28px no-repeat;
}
.mm-ico--home { --mm-icon: url(../icons/home.svg); }
.mm-ico--globe { --mm-icon: url(../icons/globe.svg); }
.mm-ico--box { --mm-icon: url(../icons/box.svg); }
.mm-ico--tools { --mm-icon: url(../icons/tools.svg); }
.mm-ico--sparkle { --mm-icon: url(../icons/sparkle.svg); }
.mm-ico--truck { --mm-icon: url(../icons/truck.svg); }
.mm-ico--shield { --mm-icon: url(../icons/shield.svg); }
.mm-ico--clock { --mm-icon: url(../icons/clock.svg); }
.mm-ico--check { --mm-icon: url(../icons/check.svg); }
.mm-ico--calendar { --mm-icon: url(../icons/calendar.svg); }

/* --------------------------------------------------------------------------
   Listes
   -------------------------------------------------------------------------- */

ul.is-style-mm-checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
ul.is-style-mm-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
ul.is-style-mm-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mm-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1D1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.wp-block-group.is-style-mm-dark ul.is-style-mm-checks li::before { background-color: var(--mm-yellow); }
ul.is-style-mm-checks strong { color: var(--mm-ink); }

ul.is-style-mm-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.5em 0 0; }
ul.is-style-mm-tags li {
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--mm-line);
	font-family: var(--mm-font-head);
	font-weight: 500;
	font-size: .9375rem;
}
ul.is-style-mm-tags li:last-child { background: var(--mm-ink); color: #fff; border-color: var(--mm-ink); }

/* --------------------------------------------------------------------------
   Images & galeries
   -------------------------------------------------------------------------- */

.wp-block-image.is-style-mm-rounded img { border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); display: block; width: 100%; }
.mm-split .wp-block-image.is-style-mm-rounded img { aspect-ratio: 4 / 4.4; object-fit: cover; }
.mm-trio .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.mm-fleet .mm-trio { margin-top: 8px; }

.wp-block-gallery.has-nested-images { gap: clamp(10px, 1.6vw, 18px); }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--mm-radius-sm); transition: transform .5s var(--mm-ease); }
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--mm-radius-sm); }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
.mm-gallery-teaser .wp-block-gallery { margin-bottom: 40px; }

.wp-block-gallery.is-style-mm-masonry { display: block !important; column-count: 3; column-gap: clamp(10px, 1.6vw, 18px); }
.wp-block-gallery.is-style-mm-masonry figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	margin: 0 0 clamp(10px, 1.6vw, 18px) !important;
	break-inside: avoid;
	aspect-ratio: auto !important;
}
.wp-block-gallery.is-style-mm-masonry.is-cropped figure.wp-block-image img { height: auto !important; object-fit: initial; }
@media (max-width: 781px) { .wp-block-gallery.is-style-mm-masonry { column-count: 2; } }

/* Vidéo dans un cadre de téléphone */
.wp-block-video.mm-video-phone { margin: 0 auto; max-width: 300px; }
.wp-block-video.mm-video-phone video {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border: 10px solid var(--mm-ink);
	border-radius: 40px;
	box-shadow: var(--mm-shadow-lg), 18px 18px 0 var(--mm-yellow);
	background: var(--mm-ink);
}

/* --------------------------------------------------------------------------
   Étapes numérotées
   -------------------------------------------------------------------------- */

.wp-block-columns.is-style-mm-steps { counter-reset: mm-step; position: relative; }
.wp-block-columns.is-style-mm-steps > .wp-block-column { counter-increment: mm-step; position: relative; padding-top: 84px; }
.wp-block-columns.is-style-mm-steps > .wp-block-column::before {
	content: counter(mm-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--mm-ink);
	color: var(--mm-yellow);
	font-family: var(--mm-font-head);
	font-weight: 700;
	font-size: 1.25rem;
	z-index: 1;
}
.wp-block-columns.is-style-mm-steps > .wp-block-column:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 29px;
	left: 72px;
	right: -14px;
	border-top: 2px dashed var(--mm-yellow-deep);
	opacity: .6;
}
.wp-block-columns.is-style-mm-steps h3 { font-size: 1.25rem; }
.wp-block-columns.is-style-mm-steps p { color: var(--mm-stone); font-size: 1rem; }
/* Ordinateur et tablette : étapes centrées, ligne pointillée reliant les cercles */
@media (min-width: 782px) {
	.wp-block-columns.is-style-mm-steps { --mm-steps-gap: clamp(20px, 3vw, 28px); gap: var(--mm-steps-gap); }
	.wp-block-columns.is-style-mm-steps > .wp-block-column { text-align: center; }
	.wp-block-columns.is-style-mm-steps > .wp-block-column > * { margin-left: auto; margin-right: auto; max-width: 17em; }
	.wp-block-columns.is-style-mm-steps > .wp-block-column::before { left: 50%; transform: translateX(-50%); }
	.wp-block-columns.is-style-mm-steps > .wp-block-column:not(:last-child)::after {
		left: calc(50% + 42px);
		right: calc(-50% - var(--mm-steps-gap) + 42px);
	}
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-mm-steps > .wp-block-column { padding: 0 0 0 80px; min-height: 60px; }
	.wp-block-columns.is-style-mm-steps > .wp-block-column > h3:first-child { display: flex; align-items: center; min-height: 60px; margin: 0 0 .15em; }
	.wp-block-columns.is-style-mm-steps > .wp-block-column > h3:first-child + p { margin-top: 0; }
	.wp-block-columns.is-style-mm-steps > .wp-block-column:not(:last-child)::after { top: 68px; bottom: -22px; left: 29px; right: auto; border-top: 0; border-left: 2px dashed var(--mm-yellow-deep); }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.mm-faq .wp-block-details {
	margin-top: 0 !important;
	margin-bottom: 12px !important;
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: 16px;
	transition: box-shadow .25s var(--mm-ease);
}
.wp-block-group.is-style-mm-white .wp-block-details,
.wp-block-group.is-style-mm-white.mm-faq .wp-block-details { background: var(--mm-paper); }
.mm-faq .wp-block-details[open] { box-shadow: var(--mm-shadow); }
.mm-faq .wp-block-details summary {
	position: relative;
	padding: 20px 64px 20px 24px;
	font-family: var(--mm-font-head);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--mm-ink);
	list-style: none;
	cursor: pointer;
}
.mm-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.mm-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: var(--mm-yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1D1F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .25s var(--mm-ease), background-color .25s;
}
.mm-faq .wp-block-details[open] summary::after { transform: rotate(45deg); background-color: var(--mm-yellow); }
.mm-faq .wp-block-details > p { padding: 0 24px 22px; margin: 0; color: var(--mm-stone); }

/* --------------------------------------------------------------------------
   Appel à l'action jaune
   -------------------------------------------------------------------------- */

.mm-content--sections > .mm-cta { overflow: hidden; isolation: isolate; }
.mm-cta h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
.mm-cta > p { font-size: 1.125rem; max-width: 34em; margin-inline: auto !important; }
.mm-cta .wp-block-buttons { margin-top: 28px; }
.mm-cta .wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--mm-ink); }
.mm-cta::before,
.mm-cta::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	width: min(28vw, 360px);
	height: 120px;
	margin-top: -60px;
	opacity: .22;
	background:
		linear-gradient(90deg, transparent 0 40%, var(--mm-ink) 40%) 0 0 / 100% 5px no-repeat,
		linear-gradient(90deg, transparent 0 20%, var(--mm-ink) 20%) 0 28px / 100% 5px no-repeat,
		linear-gradient(90deg, transparent 0 0, var(--mm-ink) 0) 0 56px / 100% 5px no-repeat,
		linear-gradient(90deg, transparent 0 25%, var(--mm-ink) 25%) 0 84px / 100% 5px no-repeat,
		linear-gradient(90deg, transparent 0 50%, var(--mm-ink) 50%) 0 112px / 100% 5px no-repeat;
}
.mm-cta::before { left: 0; }
.mm-cta::after { right: 0; transform: scaleX(-1); }
@media (max-width: 781px) { .mm-cta::before, .mm-cta::after { display: none; } }

/* --------------------------------------------------------------------------
   Avis Google
   -------------------------------------------------------------------------- */

.mm-reviews { max-width: 1240px; margin-inline: auto; }
.mm-reviews__summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 24px;
	padding: 22px 26px;
	margin-bottom: 24px;
	background: var(--mm-paper);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
}
.mm-reviews__google { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--mm-shadow); }
.mm-reviews__google .mm-i { width: 28px; height: 28px; }
.mm-reviews__score { display: flex; align-items: center; gap: 12px; }
.mm-reviews__score strong { font-family: var(--mm-font-head); font-size: 2rem; line-height: 1; color: var(--mm-ink); }
.mm-reviews__count { color: var(--mm-stone); font-size: .9375rem; }
.mm-reviews__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.mm-reviews__actions .mm-btn { min-height: 44px; padding: .6em 1.2em; font-size: .9375rem; }

.mm-stars { display: inline-flex; gap: 2px; }
.mm-star { width: 18px; height: 18px; background: #DADCE0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mm-star--full { background: #FBBC05; }
.mm-star--half { background: linear-gradient(90deg, #FBBC05 50%, #DADCE0 50%); }

.mm-reviews__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(290px, calc((100% - 48px) / 3));
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 4px 18px;
	scrollbar-width: thin;
	scrollbar-color: var(--mm-yellow) transparent;
}
.mm-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	scroll-snap-align: start;
}
.mm-review blockquote { margin: 0; flex: 1; }
.mm-review blockquote p { margin: 0; font-size: 1rem; color: var(--mm-anthracite); }
.mm-review figcaption { display: flex; align-items: center; gap: 12px; }
.mm-review figcaption img,
.mm-review__initial { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.mm-review__initial { display: grid; place-items: center; background: var(--mm-yellow); font-family: var(--mm-font-head); font-weight: 700; color: var(--mm-ink); }
.mm-review figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.mm-review figcaption a { text-decoration: none; }
.mm-review figcaption small { color: var(--mm-mute); font-size: .8125rem; }
.mm-reviews__fallback { text-align: center; }
.mm-reviews__mentions { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--mm-line); }
.mm-reviews__mentions > span { font-family: var(--mm-font-head); font-weight: 600; font-size: .875rem; color: var(--mm-stone); }
.mm-reviews__mentions ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mm-reviews__mentions li {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 999px;
	background: #fff; border: 1px solid var(--mm-line);
	font-size: .875rem; font-weight: 500; color: var(--mm-ink);
}
.mm-reviews__mentions li::before { content: "✓"; color: var(--mm-yellow-deep); font-weight: 700; }
.mm-reviews__summary { max-width: 980px; margin-inline: auto; }

.mm-admin-note {
	padding: 18px 22px;
	border: 2px dashed var(--mm-yellow-deep);
	border-radius: var(--mm-radius-sm);
	background: var(--mm-yellow-soft);
	color: var(--mm-ink);
	font-size: .9375rem;
	text-align: left;
}

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.mm-content--sections > .mm-form-section { padding-top: 0; }
.mm-form-cols > .wp-block-column > * { margin-top: 0; }
.mm-form-cols { align-items: flex-start !important; }
.wp-block-group.mm-aside { position: sticky; top: calc(var(--mm-header-h) + 24px); }
.mm-aside h3 { font-size: 1.375rem; }

.mm-form { display: grid; gap: 20px; }
.mm-fieldset {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	min-width: 0;
}
.mm-fieldset legend {
	display: flex;
	align-items: center;
	gap: 12px;
	float: left;
	width: 100%;
	margin-bottom: 20px;
	padding: 0;
	font-family: var(--mm-font-head);
	font-weight: 700;
	font-size: 1.3125rem;
	color: var(--mm-ink);
}
.mm-fieldset legend + * { clear: both; }
.mm-step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mm-yellow); font-size: 1rem; }

.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.mm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mm-field--full { grid-column: 1 / -1; }
.mm-field > span { font-size: .875rem; font-weight: 600; color: var(--mm-anthracite); }
@media (max-width: 640px) { .mm-grid { grid-template-columns: 1fr; } }

.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form input[type="tel"],
.mm-form input[type="date"],
.mm-form select,
.mm-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid var(--mm-line);
	border-radius: var(--mm-radius-sm);
	background: var(--mm-paper);
	color: var(--mm-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.mm-form select {
	padding-right: 40px;
	background: var(--mm-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E3033' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.mm-form textarea { min-height: 130px; resize: vertical; }
.mm-form :is(input, select, textarea):hover { border-color: #D6D1C4; }
.mm-form :is(input, select, textarea):focus { outline: none; border-color: var(--mm-ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(255, 194, 14, .35); }

.mm-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; cursor: pointer; }
.mm-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mm-ink); }
.mm-consent { color: var(--mm-stone); font-size: .875rem; }

.mm-extras { margin-top: 22px; }
.mm-extras__label { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 600; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chip { position: relative; cursor: pointer; }
.mm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mm-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 1.5px solid var(--mm-line);
	border-radius: 999px;
	background: var(--mm-paper);
	font-size: .9375rem;
	transition: all .2s var(--mm-ease);
}
.mm-chip input:checked + span { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.mm-chip input:checked + span::before { content: "✓"; color: var(--mm-yellow); font-weight: 700; }
.mm-chip input:focus-visible + span { outline: 3px solid var(--mm-yellow); outline-offset: 2px; }

.mm-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-form__note { margin: 0; color: var(--mm-mute); font-size: .875rem; }

.mm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mm-alert { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 18px 22px; border-radius: var(--mm-radius-sm); }
.mm-alert--ok { background: #E7F7EC; border: 1px solid #A6DDB7; color: #135C2C; }
.mm-alert--error { background: #FDECEA; border: 1px solid #F3B8B1; color: #8A1C12; }

/* Carte de contact */
.mm-contact-card { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-contact-card__item > a,
.mm-contact-card__item > div {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	margin: 0 -10px;
	border-radius: 14px;
	color: var(--mm-ink);
	text-decoration: none;
	transition: background-color .2s var(--mm-ease);
}
.mm-contact-card__item > a:hover { background: var(--mm-yellow-soft); }
.mm-contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--mm-yellow); }
.mm-contact-card__item--whatsapp .mm-contact-card__icon { background: var(--mm-green); color: #fff; }
.mm-contact-card__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mm-contact-card__text small { color: var(--mm-stone); font-size: .8125rem; }
.mm-contact-card__text strong { font-family: var(--mm-font-head); font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Pages simples, articles, mentions
   -------------------------------------------------------------------------- */

.mm-prose > * { max-width: 760px !important; }
.mm-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.mm-prose h2:first-child { margin-top: 0; }

.mm-pagehead { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.mm-pagehead h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 18em; }
.mm-pagehead__lead { font-size: 1.1875rem; color: var(--mm-stone); max-width: 40em; }
.mm-pagehead__meta { font-size: .875rem; color: var(--mm-stone); margin-bottom: 8px; }

.mm-prose-wrap { max-width: calc(760px + 2 * var(--mm-gutter)); margin: 0 auto; padding: 0 var(--mm-gutter) var(--mm-section); }
.mm-prose-wrap > .alignwide { max-width: 1240px; margin-inline: calc(50% - min(620px, 50vw - var(--mm-gutter))); }
.mm-single__thumb img { border-radius: var(--mm-radius); }

.mm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-bottom: var(--mm-section); }
.mm-post-card { background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; }
.mm-post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mm-post-card__body { padding: 24px; }
.mm-post-card h2 { font-size: 1.375rem; }
.mm-post-card h2 a { text-decoration: none; }
.mm-posts .navigation { grid-column: 1 / -1; }

.mm-404 { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.mm-404__code { font-family: var(--mm-font-head); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; margin: 0; color: var(--mm-yellow); letter-spacing: -0.05em; }
.mm-404 h1 { font-size: clamp(2rem, 4vw, 3rem); }
.mm-404 p { color: var(--mm-stone); max-width: 32em; margin-inline: auto; }
.mm-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

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

.mm-footer { position: relative; background: var(--mm-ink); color: #A9ACB1; font-size: .9375rem; }
.mm-footer__speed {
	height: 8px;
	background: repeating-linear-gradient(90deg, var(--mm-yellow) 0 64px, transparent 64px 80px);
}
.mm-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
	gap: 40px;
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: 48px;
}
.mm-footer__logo { display: inline-block; color: #fff; line-height: 0; margin-bottom: 20px; }
.mm-footer__logo .mm-logo { height: 56px; width: auto; }
.mm-footer__brand p { max-width: 30em; }
.mm-footer__swiss { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.mm-swiss {
	width: 20px; height: 20px; flex: none; border-radius: 4px;
	background:
		linear-gradient(#fff, #fff) center / 12px 4px no-repeat,
		linear-gradient(#fff, #fff) center / 4px 12px no-repeat,
		var(--mm-red);
}
.mm-footer__title { margin: 0 0 18px; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-yellow); font-weight: 600; }
.mm-footer__list,
.mm-footer__contact,
.mm-footer__social { list-style: none; margin: 0; padding: 0; }
.mm-footer__list li { margin-bottom: 10px; }
.mm-footer a { color: #E3E4E6; text-decoration: none; }
.mm-footer a:hover { color: var(--mm-yellow); }
.mm-footer__contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mm-footer__contact .mm-i { color: var(--mm-yellow); margin-top: 3px; }
.mm-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.mm-footer__social a {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .16);
	transition: background-color .2s, border-color .2s, color .2s;
}
.mm-footer__social a:hover { background: var(--mm-yellow); border-color: var(--mm-yellow); color: var(--mm-ink); }
.mm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 24px;
	padding-bottom: 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8125rem;
}
.mm-footer__bottom p { margin: 0; }
.mm-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 960px) {
	.mm-footer__grid { grid-template-columns: 1fr 1fr; }
	.mm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.mm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   WhatsApp flottant & barre d'actions mobile
   -------------------------------------------------------------------------- */

.mm-wa-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--mm-green);
	color: #fff;
	text-decoration: none;
	font-family: var(--mm-font-head);
	font-weight: 600;
	box-shadow: 0 14px 30px -10px rgba(31, 175, 84, .7);
	transition: transform .25s var(--mm-ease), box-shadow .25s;
}
.mm-wa-float:hover { color: #fff; transform: translateY(-3px); }
.mm-wa-float .mm-i { width: 28px; height: 28px; }
.mm-wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--mm-ease); }
.mm-wa-float:hover .mm-wa-float__label,
.mm-wa-float:focus-visible .mm-wa-float__label { max-width: 160px; }

.mm-mobilebar { display: none; }

@media (max-width: 781px) {
	.mm-wa-float { display: none; }
	.mm-mobilebar {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		z-index: 95;
		display: grid;
		grid-template-columns: 1fr 1fr 1.4fr;
		gap: 6px;
		padding: 6px;
		border-radius: 20px;
		background: rgba(28, 29, 31, .96);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
	}
	.mm-mobilebar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 50px;
		border-radius: 14px;
		color: #fff;
		text-decoration: none;
		font-family: var(--mm-font-head);
		font-weight: 600;
		font-size: .9375rem;
	}
	.mm-mobilebar a .mm-i { color: var(--mm-yellow); }
	.mm-mobilebar a.is-primary { background: var(--mm-yellow); color: var(--mm-ink); }
	.mm-mobilebar a.is-primary .mm-i { color: var(--mm-ink); }
	body { padding-bottom: 84px; }
}

/* --------------------------------------------------------------------------
   Animations d'apparition (désactivées si l'utilisateur préfère moins d'animations)
   -------------------------------------------------------------------------- */

.mm-js .mm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--mm-ease), transform .7s var(--mm-ease); }
.mm-js .mm-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.mm-js .mm-reveal { opacity: 1; transform: none; }
}

@media print {
	.mm-topbar, .mm-header, .mm-footer, .mm-wa-float, .mm-mobilebar { display: none !important; }
}
