/**
 * Accueil 2026.
 *
 * Pas de barre latérale : une bande d'accroche pleine largeur, puis des
 * sections dans la gouttière commune. Les primitives (.mh-grid, .mh-card,
 * .mh-band, .mh-pill…) viennent de mh-charte.css, cette feuille ne porte que
 * ce qui est propre à l'accueil.
 */

.mh-home {
	padding-bottom: 56px;
}

/* --------------------------------------------------------------- Accroche */

.mh-hero {
	background: var(--mh-tint);
	border-bottom: 1px solid var(--mh-line);
}

.mh-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.mh-hero-txt h1 {
	margin-top: 10px;
	font-size: 44px;
}

.mh-hero-txt .mh-lead {
	margin: 14px 0 0;
	max-width: 46ch;
}

.mh-hero-search {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.mh-hero-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--mh-line-strong);
	border-radius: var(--mh-r-sm);
	background: var(--mh-surface);
	color: var(--mh-ink);
	font-family: var(--mh-text);
	font-size: 16px;
	box-sizing: border-box;
	box-shadow: none;
}

.mh-hero-search input[type="search"]:focus {
	outline: 0;
	border-color: var(--mh-link);
	box-shadow: 0 0 0 2px rgba(21, 89, 159, .15);
}

.mh-hero-search .mh-btn {
	flex: 0 0 auto;
}

.mh-hero-cta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.mh .mh-hero-link {
	font-size: 16px;
	font-weight: 600;
	color: var(--mh-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mh-hero-stats {
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--mh-muted);
}

/* Mosaïque : quatre rubriques, décoratives, jamais annoncées au lecteur
 * d'écran — les mêmes vignettes sont juste en dessous, avec leur libellé. */
.mh-hero-mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mh-hero-mosaic .mh-thumb {
	border-radius: var(--mh-r);
}

/* ------------------------------------------------------- Cartes rubriques */

.mh .mh-coll-card {
	display: block;
	padding: 10px;
	color: var(--mh-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

.mh .mh-coll-card:hover,
.mh .mh-coll-card:focus {
	border-color: var(--mh-line-strong);
	box-shadow: 0 2px 10px rgba(22, 22, 26, .07);
	color: var(--mh-ink);
	text-decoration: none;
}

.mh-coll-txt {
	display: block;
	padding: 12px 6px 6px;
}

.mh-coll-name {
	display: block;
	font-family: var(--mh-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.mh-coll-count {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--mh-muted);
}

/* -------------------------------------------------------- Cartes articles */

.mh-home-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mh-home-card .mh-thumb {
	aspect-ratio: 4 / 3;
	border-radius: 0;
}

.mh-home-card .mh-peg {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.mh-home-card-txt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 14px 16px 16px;
}

.mh-home-card-txt h3 {
	font-size: 17px;
	line-height: 1.3;
}

.mh .mh-home-card-txt h3 a {
	color: var(--mh-ink);
}

.mh .mh-home-card-txt h3 a:hover,
.mh .mh-home-card-txt h3 a:focus {
	color: var(--mh-red);
	text-decoration: none;
}

.mh-home-lead .mh-home-card-txt h3 {
	font-size: 20px;
}

/* -------------------------------------------------------------- Magasin */

.mh-home-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ------------------------------------------------------------ Publicité */

.mh-home-ad {
	margin-top: 40px;
	text-align: center;
	min-height: 100px;
}

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

@media (max-width: 1024px) {
	.mh-hero-inner {
		gap: 28px;
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.mh-hero-txt h1 {
		font-size: 36px;
	}
}

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

@media (max-width: 767px) {
	.mh-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 26px;
		padding-bottom: 28px;
	}

	.mh-hero-txt h1 {
		font-size: 30px;
	}

	.mh-hero-txt .mh-lead {
		font-size: 17px;
	}

	/* Le bouton de recherche passe sous le champ : côte à côte, le champ
	 * tombe sous 150 px et ne montre plus la requête saisie. */
	.mh-hero-search {
		flex-direction: column;
	}

	.mh-hero-cta .mh-hero-link {
		width: 100%;
		text-align: center;
	}

	.mh-hero-mosaic {
		gap: 8px;
	}

	.mh-home-card-txt {
		padding: 12px;
	}

	.mh-home-card-txt h3,
	.mh-home-lead .mh-home-card-txt h3 {
		font-size: 16px;
	}

	.mh-home-ad {
		margin-top: 28px;
	}
}
