/**
 * Charte modeles-hama 2026 — jetons et primitives partagés.
 * Chargé sur tous les gabarits refondus (article, accueil, mur, pivot).
 * Aucun !important sauf pour battre une règle Divi nommée en commentaire.
 */

:root {
	--mh-bg: #FBFAF7;
	--mh-surface: #FFFFFF;
	--mh-tint: #F3F0E7;
	--mh-peg: #EEECE4;
	--mh-peg-dot: #DBD7CC;
	--mh-line: #E4E1D9;
	--mh-line-strong: #CFCABC;

	--mh-ink: #16161A;
	--mh-ink-2: #3D3D45;
	--mh-muted: #5C5C66;
	--mh-eyebrow: #7A7365;

	--mh-red: #C9331F;          /* 5,35:1 sur blanc */
	--mh-red-dark: #A82815;
	--mh-link: #15599F;
	--mh-link-hover: #0E3F73;
	--mh-dark: #16161A;
	--mh-dark-line: #2D2D34;
	--mh-dark-muted: #8C8878;

	--mh-display: 'Bricolage Grotesque', 'Source Sans 3', system-ui, sans-serif;
	--mh-text: 'Source Sans 3', system-ui, -apple-system, sans-serif;

	--mh-r: 10px;
	--mh-r-sm: 6px;
	--mh-gap: 24px;
	--mh-shell: 1200px;
}

/* ---------------------------------------------------------------- Ossature */

.mh {
	font-family: var(--mh-text);
	color: var(--mh-ink);
	background: var(--mh-bg);
	font-size: 17px;
	line-height: 1.6;
}

.mh-shell {
	max-width: var(--mh-shell);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.mh h1,
.mh h2,
.mh h3,
.mh h4 {
	font-family: var(--mh-display);
	color: var(--mh-ink);
	letter-spacing: -0.02em;
	font-weight: 700;
	line-height: 1.18;
	margin: 0;
	padding: 0;
}

.mh a {
	color: var(--mh-link);
	text-decoration: none;
}

.mh a:hover,
.mh a:focus {
	color: var(--mh-link-hover);
	text-decoration: underline;
}

.mh :focus-visible {
	outline: 2px solid var(--mh-link);
	outline-offset: 2px;
}

.mh ul,
.mh ol {
	margin: 0;
	padding: 0;
}

.mh-plain {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Divi force list-style sur les li du contenu : on le neutralise sur nos listes. */
.mh .mh-plain > li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

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

.mh-eyebrow {
	font-family: var(--mh-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mh-eyebrow);
}

.mh-meta {
	font-size: 14px;
	color: var(--mh-muted);
}

.mh-lead {
	font-size: 19px;
	line-height: 1.55;
	color: var(--mh-ink-2);
}

/* ---------------------------------------------------------------- Surfaces */

.mh-card {
	background: var(--mh-surface);
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-r);
	box-sizing: border-box;
}

.mh-peg {
	background-color: var(--mh-peg);
	background-image: radial-gradient(var(--mh-peg-dot) 1.5px, transparent 1.7px);
	background-size: 12px 12px;
	background-position: 6px 6px;
}

.mh-tint {
	background: var(--mh-tint);
}

/* ---------------------------------------------------------------- Commandes */

.mh-btn,
.mh-btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border-radius: var(--mh-r-sm);
	font-family: var(--mh-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color .15s, color .15s, border-color .15s;
}

.mh-btn {
	background: var(--mh-red);
	border: 1.5px solid var(--mh-red);
	color: #FFFFFF;
}

.mh .mh-btn:hover,
.mh .mh-btn:focus {
	background: var(--mh-red-dark);
	border-color: var(--mh-red-dark);
	color: #FFFFFF;
	text-decoration: none;
}

.mh-btn2 {
	background: transparent;
	border: 1.5px solid var(--mh-ink);
	color: var(--mh-ink);
}

.mh .mh-btn2:hover,
.mh .mh-btn2:focus {
	background: var(--mh-ink);
	color: #FFFFFF;
	text-decoration: none;
}

.mh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mh-line-strong);
	border-radius: 999px;
	background: var(--mh-surface);
	color: var(--mh-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	box-sizing: border-box;
}

.mh a.mh-pill:hover,
.mh a.mh-pill:focus {
	background: var(--mh-ink);
	border-color: var(--mh-ink);
	color: #FFFFFF;
	text-decoration: none;
}

.mh-pill-on {
	background: var(--mh-ink);
	border-color: var(--mh-ink);
	color: #FFFFFF;
}

.mh-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 4px 8px;
	border-radius: 4px;
	background: #EFECE2;
	color: #4A463C;
}

/* --------------------------------------------------------------- Fil d'Ariane */

.mh-crumb {
	font-size: 13px;
	color: var(--mh-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.mh .mh-crumb a {
	color: var(--mh-muted);
}

.mh .mh-crumb a:hover {
	color: var(--mh-ink);
}

.mh-crumb-sep {
	color: var(--mh-line-strong);
}

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

.mh-sec {
	margin-top: 44px;
}

.mh-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mh-sec-head h2 {
	font-size: 26px;
}

/* --------------------------------------------------------------- Grilles */

.mh-grid {
	display: grid;
	gap: 18px;
}

.mh-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------- Vignettes */

.mh-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mh-r-sm);
	background: var(--mh-peg);
}

.mh-thumb-wide {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	border-radius: var(--mh-r);
	background: var(--mh-peg);
}

/* ------------------------------------------------------------- Bande sombre */

.mh-band {
	background: var(--mh-dark);
	color: #FFFFFF;
	border-radius: var(--mh-r);
	padding: 24px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.mh-band h2,
.mh-band h3 {
	color: #FFFFFF;
}

.mh-band p {
	color: #D8D4C8;
	margin: 6px 0 0;
	font-size: 15px;
}

.mh .mh-band a.mh-btn2 {
	border-color: #FFFFFF;
	color: #FFFFFF;
}

.mh .mh-band a.mh-btn2:hover {
	background: #FFFFFF;
	color: var(--mh-ink);
}

/* --------------------------------------------------- Mention d'affiliation */

.mh-disclosure {
	font-size: 13px;
	line-height: 1.5;
	color: var(--mh-muted);
	margin: 10px 0 0;
}

/* ------------------------------------------------------- Accessibilité */

.mh-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------- Tablette */

@media (max-width: 1024px) {
	.mh-shell { padding: 0 20px; }
	.mh-g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mh-sec { margin-top: 36px; }
	.mh-sec-head h2 { font-size: 23px; }
}

/* --------------------------------------------------------------- Mobile */

@media (max-width: 767px) {
	.mh { font-size: 16px; }
	.mh-shell { padding: 0 16px; }
	.mh-g3,
	.mh-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-sec { margin-top: 30px; }
	.mh-sec-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
	.mh-sec-head h2 { font-size: 21px; }
	.mh-band { padding: 20px; }
	.mh-btn,
	.mh-btn2 { width: 100%; }
}
