/* =========================================================================
   MY HOME CLASS — système visuel
   Couleurs de la charte · Oswald (rappel du lettrage condensé du logo)
   · Source Sans 3 pour le texte. Élément signature : la maison orange du logo.
   ========================================================================= */

@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald.woff2") format("woff2");
	font-weight: 200 700;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--mhc-orange: #d5570a;
	--mhc-orange-deep: #b04606;
	--mhc-orange-soft: #fbeadf;
	--mhc-blue: #004aad;
	--mhc-blue-deep: #00377f;
	--mhc-blue-soft: #e5eefa;
	--mhc-green: #365907;
	--mhc-green-soft: #ebf1e1;
	--mhc-ink: #16120f;
	--mhc-text: #2b2622;
	--mhc-muted: #6a635c;
	--mhc-line: #e7e1d9;
	--mhc-paper: #ffffff;
	--mhc-tint: #f8f4ee;
	--mhc-display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
	--mhc-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mhc-radius: 16px;
	--mhc-radius-sm: 10px;
	--mhc-shadow: 0 1px 2px rgba(22, 18, 15, 0.06), 0 8px 24px rgba(22, 18, 15, 0.06);
	--mhc-wrap: 1160px;
	--mhc-header-h: 72px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mhc-header-h) + 56px);
}

body {
	margin: 0;
	font-family: var(--mhc-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--mhc-text);
	background: var(--mhc-paper);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--mhc-blue);
	text-underline-offset: 3px;
}

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

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

.mhc-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--mhc-ink);
	color: #fff;
	border-radius: 8px;
}

.mhc-wrap {
	width: 100%;
	max-width: var(--mhc-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------------------------------------------------
   Typographie
   ------------------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
	font-family: var(--mhc-display);
	color: var(--mhc-ink);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.005em;
	margin: 0 0 0.5em;
}

h2 {
	font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
	font-size: 1.35rem;
	font-weight: 500;
}

.mhc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mhc-display);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mhc-orange-deep);
	margin: 0 0 14px;
}

.mhc-eyebrow::before {
	content: "";
	width: 26px;
	height: 3px;
	background: var(--mhc-orange);
	border-radius: 2px;
}

.mhc-lead {
	font-size: 1.15rem;
	color: var(--mhc-muted);
	max-width: 62ch;
	margin: 0 0 28px;
}

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

.mhc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--mhc-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mhc-btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.mhc-btn:hover {
	transform: translateY(-1px);
}

.mhc-btn-primary {
	background: var(--mhc-orange);
	color: #fff;
}

.mhc-btn-primary:hover {
	background: var(--mhc-orange-deep);
	color: #fff;
}

.mhc-btn-whatsapp {
	background: var(--mhc-green);
	color: #fff;
}

.mhc-btn-whatsapp:hover {
	background: #284305;
	color: #fff;
}

.mhc-btn-outline {
	border-color: var(--mhc-ink);
	color: var(--mhc-ink);
	background: transparent;
}

.mhc-btn-outline:hover {
	background: var(--mhc-ink);
	color: #fff;
}

.mhc-btn-light {
	background: #fff;
	color: var(--mhc-blue-deep);
}

.mhc-btn-light:hover {
	background: var(--mhc-blue-soft);
}

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

.mhc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--mhc-line);
}

.admin-bar .mhc-header {
	top: 32px;
}

.mhc-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--mhc-header-h);
}

.mhc-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--mhc-ink);
	margin-right: auto;
}

.mhc-brand img,
.mhc-brand .custom-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.mhc-brand picture {
	display: block;
	flex: none;
}

.mhc-brand-text {
	font-family: var(--mhc-display);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.mhc-brand-text small {
	display: block;
	margin-top: 4px;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: var(--mhc-orange-deep);
}

.mhc-nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mhc-nav a {
	color: var(--mhc-ink);
	font-weight: 600;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.mhc-nav a:hover,
.mhc-nav .current-menu-item > a,
.mhc-nav a[aria-current="page"] {
	border-bottom-color: var(--mhc-orange);
}

.mhc-header .mhc-btn {
	min-height: 42px;
	padding: 8px 18px;
	font-size: 0.95rem;
}

.mhc-header .macfr-bell {
	margin-left: -8px;
}

.mhc-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--mhc-ink);
}

/* Sous-navigation de la vitrine (ancres) */
.mhc-subnav {
	position: sticky;
	top: var(--mhc-header-h);
	z-index: 30;
	background: var(--mhc-paper);
	border-bottom: 1px solid var(--mhc-line);
}

.admin-bar .mhc-subnav {
	top: calc(var(--mhc-header-h) + 32px);
}

.mhc-subnav ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.mhc-subnav ul::-webkit-scrollbar {
	display: none;
}

.mhc-subnav a {
	display: block;
	white-space: nowrap;
	padding: 7px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--mhc-muted);
	text-decoration: none;
}

.mhc-subnav a:hover {
	color: var(--mhc-ink);
	background: var(--mhc-tint);
}

.mhc-subnav a.is-active {
	color: #fff;
	background: var(--mhc-ink);
}

/* ------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------ */

.mhc-section {
	padding: clamp(64px, 9vw, 112px) 0;
}

.mhc-section-tint {
	background: var(--mhc-tint);
}

.mhc-section-head {
	max-width: 760px;
	margin-bottom: 44px;
}

.mhc-section-head .mhc-lead {
	margin-bottom: 0;
}

/* Apparition au défilement (désactivée si mouvement réduit) */
.mhc-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.mhc-reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

.mhc-hero {
	padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
	overflow: hidden;
}

.mhc-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.mhc-tagline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 22px;
	font-weight: 600;
	color: var(--mhc-muted);
}

.mhc-tagline strong {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mhc-green);
	color: #fff;
	font-family: var(--mhc-display);
	font-weight: 500;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mhc-hero h1 {
	font-size: clamp(3rem, 7.4vw, 5.6rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.015em;
	margin: 0 0 24px;
}

.mhc-hero h1 em {
	display: block;
	font-family: var(--mhc-body);
	font-style: italic;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--mhc-orange);
}

.mhc-hero .mhc-lead {
	font-size: 1.22rem;
	color: var(--mhc-text);
}

.mhc-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mhc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.mhc-chips li {
	padding: 6px 14px;
	border: 1.5px solid var(--mhc-line);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--mhc-text);
	background: #fff;
}

/* La maison du logo : contour orange, toque bleue au faîte */
.mhc-house {
	position: relative;
	padding: 104px 34px 34px 38px;
}

.mhc-house-outline {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.mhc-house-outline path {
	fill: none;
	stroke: var(--mhc-orange);
	stroke-width: 13;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mhc-house-outline .mhc-cap {
	fill: var(--mhc-blue);
	stroke: none;
}

.mhc-stats {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.mhc-stat {
	background: var(--mhc-paper);
	border: 1px solid var(--mhc-line);
	border-radius: var(--mhc-radius);
	padding: 18px 18px 16px;
	box-shadow: var(--mhc-shadow);
}

.mhc-stat dt {
	order: 2;
	line-height: 1.3;
	font-size: 0.95rem;
	color: var(--mhc-muted);
	font-weight: 600;
}

.mhc-stat dd {
	margin: 0 0 2px;
	font-family: var(--mhc-display);
	font-size: clamp(2.3rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1;
	color: var(--mhc-ink);
	font-variant-numeric: tabular-nums;
}

.mhc-stat {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.mhc-stat dd {
	order: 1;
}

.mhc-stat:nth-child(1) dd {
	color: var(--mhc-blue);
}

.mhc-stat:nth-child(4) dd {
	color: var(--mhc-orange);
}

/* Bandeau défilant */
.mhc-ticker {
	background: var(--mhc-blue);
	color: #fff;
	overflow: hidden;
	border-block: 1px solid var(--mhc-blue-deep);
}

.mhc-ticker-track {
	display: flex;
	width: max-content;
	animation: mhc-ticker 48s linear infinite;
}

.mhc-ticker:hover .mhc-ticker-track {
	animation-play-state: paused;
}

.mhc-ticker ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mhc-ticker li {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 14px 22px 14px 0;
	font-family: var(--mhc-display);
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mhc-ticker li::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mhc-orange);
}

@keyframes mhc-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* ------------------------------------------------------------------------
   Piliers
   ------------------------------------------------------------------------ */

.mhc-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mhc-pillar {
	position: relative;
	padding: 32px 28px 30px;
	border-radius: var(--mhc-radius);
	color: #fff;
	overflow: hidden;
}

.mhc-pillar:nth-child(1) {
	background: var(--mhc-blue);
}

.mhc-pillar:nth-child(2) {
	background: var(--mhc-green);
}

.mhc-pillar:nth-child(3) {
	background: var(--mhc-orange-deep);
}

.mhc-pillar h3 {
	color: #fff;
	font-size: 1.6rem;
	margin-bottom: 12px;
}

.mhc-pillar p {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
}

.mhc-pillar-no {
	display: block;
	font-family: var(--mhc-display);
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	opacity: 0.75;
	margin-bottom: 22px;
}

/* Figures */
.mhc-figure {
	margin: 56px 0 0;
}

.mhc-figure-media {
	border-radius: var(--mhc-radius);
	overflow: hidden;
	aspect-ratio: 16 / 7;
	background: linear-gradient(135deg, var(--mhc-blue-soft), var(--mhc-orange-soft));
	display: grid;
	place-items: center;
}

.mhc-figure-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mhc-figure-placeholder {
	font-family: var(--mhc-display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mhc-muted);
	font-size: 0.85rem;
	text-align: center;
	padding: 24px;
}

.mhc-figure figcaption {
	margin-top: 12px;
	font-style: italic;
	color: var(--mhc-muted);
}

/* ------------------------------------------------------------------------
   Catalogue des matières
   ------------------------------------------------------------------------ */

.mhc-toggle {
	display: inline-flex;
	padding: 5px;
	border-radius: 999px;
	background: var(--mhc-paper);
	border: 1.5px solid var(--mhc-line);
	gap: 4px;
}

.mhc-toggle button {
	border: 0;
	background: transparent;
	padding: 10px 20px;
	border-radius: 999px;
	font: 700 0.98rem/1 var(--mhc-body);
	color: var(--mhc-muted);
	cursor: pointer;
}

.mhc-toggle button[aria-pressed="true"] {
	background: var(--mhc-blue);
	color: #fff;
}

.mhc-catalog-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.mhc-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 380px;
}

.mhc-search input {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px 12px 46px;
	border: 1.5px solid var(--mhc-line);
	border-radius: 999px;
	font: 500 1rem var(--mhc-body);
	background: #fff;
}

.mhc-search input:focus {
	border-color: var(--mhc-blue);
	outline: none;
	box-shadow: 0 0 0 3px var(--mhc-blue-soft);
}

.mhc-search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--mhc-muted);
}

.mhc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.mhc-filters button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--mhc-line);
	background: #fff;
	font: 600 0.92rem var(--mhc-body);
	color: var(--mhc-text);
	cursor: pointer;
}

.mhc-filters button[aria-pressed="true"] {
	border-color: var(--mhc-ink);
	background: var(--mhc-ink);
	color: #fff;
}

.mhc-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: none;
}

.mhc-cat-sciences {
	background: var(--mhc-blue);
}

.mhc-cat-langues {
	background: var(--mhc-orange);
}

.mhc-cat-sciences-humaines {
	background: var(--mhc-green);
}

.mhc-subjects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mhc-subject {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--mhc-radius-sm);
	background: #fff;
	border: 1px solid var(--mhc-line);
}

.mhc-subject .mhc-dot {
	margin-top: 8px;
}

.mhc-subject strong {
	display: block;
	color: var(--mhc-ink);
	font-weight: 700;
}

.mhc-subject span {
	font-size: 0.9rem;
	color: var(--mhc-muted);
}

.mhc-subject[hidden] {
	display: none;
}

.mhc-empty {
	padding: 22px;
	border-radius: var(--mhc-radius-sm);
	background: #fff;
	border: 1.5px dashed var(--mhc-line);
	color: var(--mhc-muted);
}

.mhc-callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 28px;
	padding: 22px 26px;
	border-radius: var(--mhc-radius);
	background: var(--mhc-orange-soft);
	border-left: 6px solid var(--mhc-orange);
}

.mhc-callout p {
	margin: 0;
	max-width: 60ch;
}

/* ------------------------------------------------------------------------
   Méthode
   ------------------------------------------------------------------------ */

.mhc-method {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.mhc-method .mhc-figure {
	margin: 0;
	position: sticky;
	top: calc(var(--mhc-header-h) + 80px);
}

.mhc-method .mhc-figure-media {
	aspect-ratio: 4 / 5;
}

.mhc-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.mhc-step {
	position: relative;
	padding: 0 0 36px 70px;
}

.mhc-step::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 52px;
	bottom: 6px;
	width: 2px;
	background: var(--mhc-line);
}

.mhc-step:last-child::before {
	display: none;
}

.mhc-step-no {
	position: absolute;
	left: 0;
	top: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--mhc-orange);
	color: #fff;
	font-family: var(--mhc-display);
	font-weight: 600;
	font-size: 1.05rem;
}

.mhc-step-label {
	display: block;
	font-family: var(--mhc-display);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	color: var(--mhc-orange-deep);
	margin: 4px 0 6px;
}

.mhc-step h3 {
	font-size: 1.55rem;
	margin-bottom: 8px;
}

.mhc-step p {
	margin: 0;
	color: var(--mhc-muted);
}

/* ------------------------------------------------------------------------
   Tarifs
   ------------------------------------------------------------------------ */

.mhc-prices {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0 30px;
}

.mhc-prices[hidden] {
	display: none;
}

.mhc-price {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 22px 22px;
	border-radius: var(--mhc-radius);
	background: #fff;
	border: 1.5px solid var(--mhc-line);
}

.mhc-price-best {
	border-color: var(--mhc-orange);
	box-shadow: 0 0 0 3px var(--mhc-orange-soft);
}

.mhc-price-badge {
	position: absolute;
	top: -13px;
	left: 22px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--mhc-orange);
	color: #fff;
	font-family: var(--mhc-display);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mhc-price-size {
	font-family: var(--mhc-display);
	font-size: 1.3rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--mhc-ink);
}

.mhc-price-total {
	font-family: var(--mhc-display);
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 600;
	color: var(--mhc-ink);
	line-height: 1.1;
	margin: 14px 0 4px;
	font-variant-numeric: tabular-nums;
}

.mhc-price-total small {
	font-size: 0.5em;
	font-weight: 500;
	color: var(--mhc-muted);
}

.mhc-price-meta {
	color: var(--mhc-muted);
	font-size: 0.95rem;
	margin: 0 0 4px;
}

.mhc-price-save {
	display: inline-block;
	align-self: flex-start;
	margin: 8px 0 18px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--mhc-green-soft);
	color: var(--mhc-green);
	font-weight: 700;
	font-size: 0.88rem;
}

.mhc-price .mhc-btn {
	margin-top: auto;
	min-height: 44px;
	font-size: 0.95rem;
}

.mhc-notes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.mhc-note {
	padding: 20px 22px;
	border-radius: var(--mhc-radius-sm);
	background: var(--mhc-paper);
	border: 1px solid var(--mhc-line);
}

.mhc-note strong {
	display: block;
	font-family: var(--mhc-display);
	font-weight: 500;
	font-size: 1.12rem;
	color: var(--mhc-ink);
	margin-bottom: 4px;
}

.mhc-note p {
	margin: 0;
	color: var(--mhc-muted);
	font-size: 0.97rem;
}

/* ------------------------------------------------------------------------
   Visite
   ------------------------------------------------------------------------ */

.mhc-visit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.mhc-checks {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.mhc-checks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	color: var(--mhc-ink);
}

.mhc-checks li::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mhc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.mhc-form {
	padding: clamp(24px, 3vw, 34px);
	border-radius: var(--mhc-radius);
	background: var(--mhc-paper);
	border: 1px solid var(--mhc-line);
	box-shadow: var(--mhc-shadow);
}

.mhc-form h3 {
	font-size: 1.4rem;
}

.mhc-field {
	display: block;
	margin-bottom: 16px;
}

.mhc-field span {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--mhc-ink);
	margin-bottom: 6px;
}

.mhc-field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--mhc-line);
	border-radius: var(--mhc-radius-sm);
	font: 500 1rem var(--mhc-body);
	background: #fff;
}

.mhc-field input:focus {
	border-color: var(--mhc-blue);
	outline: none;
	box-shadow: 0 0 0 3px var(--mhc-blue-soft);
}

.mhc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mhc-form .mhc-btn {
	width: 100%;
}

.mhc-fineprint {
	margin: 12px 0 0;
	text-align: center;
	font-size: 0.92rem;
	color: var(--mhc-muted);
}

/* ------------------------------------------------------------------------
   Engagements
   ------------------------------------------------------------------------ */

.mhc-pledges {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: pledge;
}

.mhc-pledge {
	counter-increment: pledge;
	padding: 26px 24px;
	border-radius: var(--mhc-radius);
	background: #fff;
	border: 1px solid var(--mhc-line);
	border-top: 5px solid var(--mhc-blue);
}

.mhc-pledge:nth-child(3n + 2) {
	border-top-color: var(--mhc-orange);
}

.mhc-pledge:nth-child(3n + 3) {
	border-top-color: var(--mhc-green);
}

.mhc-pledge::before {
	content: counter(pledge, decimal-leading-zero);
	display: block;
	font-family: var(--mhc-display);
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	color: var(--mhc-muted);
	margin-bottom: 12px;
}

.mhc-pledge strong {
	display: block;
	font-family: var(--mhc-display);
	font-weight: 500;
	font-size: 1.3rem;
	line-height: 1.2;
	color: var(--mhc-ink);
	margin-bottom: 8px;
}

.mhc-pledge p {
	margin: 0;
	color: var(--mhc-muted);
}

.mhc-banner {
	margin-top: 22px;
	padding: 18px 24px;
	border-radius: var(--mhc-radius-sm);
	background: var(--mhc-ink);
	color: #fff;
	font-weight: 600;
	text-align: center;
}

/* ------------------------------------------------------------------------
   Questions fréquentes
   ------------------------------------------------------------------------ */

.mhc-faq {
	max-width: 860px;
}

.mhc-faq details {
	border-bottom: 1px solid var(--mhc-line);
}

.mhc-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--mhc-display);
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--mhc-ink);
}

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

.mhc-faq summary::after {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mhc-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316120f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.mhc-faq details[open] summary::after {
	transform: rotate(45deg);
	background-color: var(--mhc-orange-soft);
}

.mhc-faq details p {
	margin: 0 0 22px;
	max-width: 70ch;
	color: var(--mhc-text);
}

/* ------------------------------------------------------------------------
   Premier contact
   ------------------------------------------------------------------------ */

.mhc-contact {
	position: relative;
	padding: clamp(40px, 6vw, 72px);
	border-radius: calc(var(--mhc-radius) + 8px);
	background: var(--mhc-blue);
	color: #fff;
	overflow: hidden;
}

.mhc-contact::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border: 14px solid var(--mhc-orange);
	border-radius: 0 0 0 0;
	transform: rotate(45deg);
	opacity: 0.9;
}

.mhc-contact .mhc-eyebrow {
	color: #fff;
}

.mhc-contact h2 {
	color: #fff;
	max-width: 16ch;
}

.mhc-contact p {
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.12rem;
}

.mhc-contact .mhc-cta-row {
	position: relative;
	z-index: 1;
	margin: 28px 0 22px;
}

.mhc-contact-lines {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-weight: 600;
}

.mhc-contact-lines a {
	color: #fff;
}

/* ------------------------------------------------------------------------
   Pages de l'application
   ------------------------------------------------------------------------ */

.mhc-pagehead {
	padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--mhc-line);
	background: var(--mhc-tint);
}

.mhc-pagehead h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin: 0;
}

.mhc-main {
	padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
}

.mhc-entry > * + * {
	margin-top: 1em;
}

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

.mhc-footer {
	/* Orange foncé du logo plutôt que du noir, avec les trois couleurs en liseré. */
	background: #8a3a0b;
	border-top: 6px solid transparent;
	border-image: linear-gradient(90deg, #d5570a 0 33.3%, #004aad 33.3% 66.6%, #365907 66.6%) 1;
	box-shadow: 0 -3px 0 #fff;
	color: rgba(255, 255, 255, 0.88);
	padding: 56px 0 96px;
	font-size: 0.97rem;
}

.mhc-footer-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 28px;
}

.mhc-footer .mhc-brand {
	color: #fff;
	margin: 0 0 12px;
}

/* Sur le fond orange foncé du pied de page, le petit texte orange passe en clair. */
.mhc-footer .mhc-brand-text small {
	color: #ffd9c2;
}

.mhc-footer a {
	color: #fff;
}

.mhc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mhc-footer-bottom {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.88rem;
}

/* Barre mobile fixe : Tarifs | WhatsApp */
.mhc-mobilebar {
	display: none;
}

.mhc-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 35;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--mhc-ink);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.mhc-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.mhc-prices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.mhc-hero-grid,
	.mhc-method,
	.mhc-visit {
		grid-template-columns: 1fr;
	}

	.mhc-method .mhc-figure {
		position: static;
	}

	.mhc-method .mhc-figure-media {
		aspect-ratio: 16 / 9;
	}

	.mhc-pillars,
	.mhc-pledges,
	.mhc-notes {
		grid-template-columns: 1fr;
	}

	.mhc-house {
		max-width: 520px;
	}
}

@media (max-width: 782px) {
	.admin-bar .mhc-header {
		top: 46px;
	}

	.mhc-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--mhc-line);
		padding: 12px 24px 20px;
	}

	.mhc-nav.is-open {
		display: block;
	}

	.mhc-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.mhc-menu-toggle {
		display: inline-flex;
	}

	.mhc-header .mhc-btn {
		display: none;
	}

	.mhc-mobilebar {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.97);
		border-top: 1px solid var(--mhc-line);
	}

	.mhc-mobilebar .mhc-btn {
		min-height: 46px;
		padding: 10px 14px;
	}

	.mhc-top {
		bottom: 84px;
	}

	.mhc-field-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	.mhc-wrap {
		padding: 0 18px;
	}

	.mhc-prices {
		grid-template-columns: 1fr;
	}

	.mhc-house {
		padding: 70px 18px 22px 22px;
	}

	.mhc-cta-row .mhc-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.mhc-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.mhc-ticker-track {
		animation: none;
		width: auto;
	}

	.mhc-ticker ul + ul {
		display: none;
	}

	.mhc-ticker ul {
		flex-wrap: wrap;
		padding-left: 22px;
	}

	.mhc-btn,
	.mhc-faq summary::after {
		transition: none;
	}
}

@media print {
	.mhc-header,
	.mhc-subnav,
	.mhc-ticker,
	.mhc-mobilebar,
	.mhc-top,
	.mhc-footer {
		display: none !important;
	}
}

/* Sans photo choisie, l'emplacement reste discret. */
.mhc-figure-media:has(.mhc-figure-placeholder) {
	aspect-ratio: 21 / 5;
}

.mhc-method .mhc-figure-media:has(.mhc-figure-placeholder) {
	aspect-ratio: 4 / 3;
}
