/* =========================================================
   MIDDLE LAND — pages internes (tout sauf les vitrines avec hero).
   Bannière de page, fil d'Ariane, contenu éditorial, blog, article,
   pages vides (404, recherche). Dépend de mlt-tokens.
   ========================================================= */

/* -------------------- Bannière de page -------------------- */
.mlt-entete {
	position: relative;
	overflow: hidden;
	background: var(--mlt-color-fond);
}

/* Sillons du logo : deux arcs ocre très légers en bas à droite (décor, rien à lire) */
.mlt-entete::after {
	content: "";
	position: absolute;
	right: calc(-1 * var(--mlt-space-64));
	bottom: calc(-1 * var(--mlt-space-96));
	width: 360px;
	height: 360px;
	border: 2px solid var(--mlt-color-ocre);
	border-radius: 50%;
	box-shadow: 0 0 0 28px var(--mlt-color-fond), 0 0 0 30px var(--mlt-color-ocre);
	opacity: 0.18;
	pointer-events: none;
}

.mlt-entete__inner {
	position: relative;
	z-index: 1;
	max-width: var(--mlt-section-max);
	margin: 0 auto;
	padding: var(--mlt-space-32) var(--mlt-edge) var(--mlt-space-64);
}

.mlt-page .mlt-entete__titre {
	max-width: 22ch;
	margin: 0;
	/* Mot plus long que la colonne (ex. « Conditionnement » en 320 px) : coupure avec trait d'union (langue fr) */
	overflow-wrap: break-word;
	hyphens: auto;
	color: var(--mlt-color-olive);
	font-size: var(--mlt-fs-section);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.mlt-entete__fort {
	display: block;
	font-weight: 500;
}

.mlt-page .mlt-entete__titre--article {
	max-width: 28ch;
	font-size: var(--mlt-fs-h1);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.mlt-entete .mlt-lead {
	max-width: 60ch;
}

/* -------------------- Fil d'Ariane -------------------- */
.mlt-ariane {
	margin-bottom: var(--mlt-space-32);
	font-size: var(--mlt-fs-small);
}

.mlt-ariane ol {
	/* En ligne (pas flex) : un titre long passe à la ligne dans le texte, sans décrochage sous le « / » */
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlt-ariane li {
	display: inline;
	color: var(--mlt-color-texte-doux);
	line-height: 1.6;
}

.mlt-ariane li + li::before {
	content: "/";
	margin: 0 var(--mlt-space-8);
	color: var(--mlt-color-ligne);
}

.mlt-ariane a {
	color: var(--mlt-color-texte-doux);
	text-decoration: none;
}

.mlt-ariane a:hover {
	color: var(--mlt-color-botanique);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mlt-ariane a:focus-visible {
	outline: none;
	border-radius: var(--mlt-space-4);
	box-shadow: var(--mlt-focus-ring);
}

.mlt-ariane [aria-current="page"] {
	color: var(--mlt-color-texte);
	font-weight: 500;
}

/* -------------------- Contenu de page standard (Commande, Compte…) -------------------- */
.mlt-contenu {
	background: var(--mlt-color-blanc);
}

.mlt-contenu__inner {
	max-width: var(--mlt-section-max);
	margin: 0 auto;
	padding: var(--mlt-space-64) var(--mlt-edge) var(--mlt-section-pad);
}

/* -------------------- Contenu éditorial (articles, descriptions) -------------------- */
.mlt-prose {
	max-width: 72ch;
	color: var(--mlt-color-texte);
	font-size: var(--mlt-fs-body);
	line-height: var(--mlt-lh-body);
}

.mlt-prose > * + * {
	margin-top: var(--mlt-space-16);
}

.mlt-page .mlt-prose h2,
.mlt-page .mlt-prose h3 {
	margin: var(--mlt-space-48) 0 0;
	color: var(--mlt-color-olive);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.mlt-page .mlt-prose h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.mlt-page .mlt-prose h3 {
	font-size: var(--mlt-fs-lead);
	font-weight: 700;
}

.mlt-prose ul,
.mlt-prose ol {
	padding-left: var(--mlt-space-24);
}

.mlt-prose li + li {
	margin-top: var(--mlt-space-8);
}

.mlt-prose a {
	color: var(--mlt-color-olive);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mlt-prose a:hover {
	color: var(--mlt-color-botanique);
}

.mlt-prose a:focus-visible {
	outline: none;
	border-radius: var(--mlt-space-4);
	box-shadow: var(--mlt-focus-ring);
}

.mlt-prose blockquote {
	margin-left: 0;
	padding-left: var(--mlt-space-24);
	border-left: 2px solid var(--mlt-color-ocre);
	color: var(--mlt-color-olive);
	font-size: var(--mlt-fs-lead);
}

.mlt-prose img {
	height: auto;
	border-radius: var(--mlt-radius-card);
}

/* -------------------- Blog : grille de cartes -------------------- */
.mlt-blog {
	background: var(--mlt-color-blanc);
}

.mlt-blog .mlt-section__inner {
	padding-top: var(--mlt-space-64);
}

.mlt-blog__grille {
	display: grid;
	gap: var(--mlt-space-48) var(--mlt-space-32);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlt-carte-article__lien {
	display: grid;
	align-content: start; /* sinon l'espace libre des cartes moins hautes décale la date */
	gap: var(--mlt-space-16);
	height: 100%;
	border-radius: var(--mlt-radius-card);
	color: inherit;
	text-decoration: none;
}

.mlt-carte-article__lien:focus-visible {
	outline: none;
	box-shadow: var(--mlt-focus-ring);
}

.mlt-carte-article__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--mlt-radius-card);
	background: var(--mlt-color-fond);
}

.mlt-blog .mlt-carte-article__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 600ms var(--mlt-ease);
}

.mlt-carte-article__lien:hover .mlt-carte-article__img {
	transform: scale(1.04);
}

.mlt-carte-article__corps {
	display: grid;
	gap: var(--mlt-space-8);
	align-content: start;
}

.mlt-carte-article__date {
	color: var(--mlt-color-texte-doux);
	font-size: var(--mlt-fs-small);
}

.mlt-carte-article__titre {
	color: var(--mlt-color-olive);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	transition: color var(--mlt-duration) var(--mlt-ease);
}

.mlt-carte-article__lien:hover .mlt-carte-article__titre {
	color: var(--mlt-color-botanique);
}

.mlt-carte-article__extrait {
	color: var(--mlt-color-texte);
	font-size: var(--mlt-fs-small);
	line-height: 1.6;
}

.mlt-carte-article__suite {
	justify-self: start;
}

.mlt-carte-article__lien:hover .mlt-carte-article__suite::after {
	transform: translateX(4px);
}

/* -------------------- Pagination -------------------- */
.mlt-pagination {
	margin-top: var(--mlt-space-64);
}

.mlt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--mlt-space-8);
}

.mlt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--mlt-space-16);
	border: 1px solid var(--mlt-color-ligne);
	border-radius: var(--mlt-radius-pill);
	color: var(--mlt-color-olive);
	font-weight: 500;
	text-decoration: none;
}

.mlt-pagination a.page-numbers:hover {
	border-color: var(--mlt-color-olive);
}

.mlt-pagination .page-numbers.current {
	border-color: var(--mlt-color-olive);
	background: var(--mlt-color-olive);
	color: var(--mlt-color-blanc);
}

.mlt-pagination a.page-numbers:focus-visible {
	outline: none;
	box-shadow: var(--mlt-focus-ring);
}

/* -------------------- Article -------------------- */
.mlt-article-page {
	background: var(--mlt-color-blanc);
}

.mlt-article-page__media {
	max-width: var(--mlt-section-max);
	margin: 0 auto;
	padding: var(--mlt-space-48) var(--mlt-edge) 0;
}

.mlt-article-page .mlt-article-page__img {
	display: block;
	width: 100%;
	max-height: 560px;
	height: auto;
	object-fit: cover;
	border-radius: var(--mlt-radius-panel);
}

.mlt-article-page .mlt-prose {
	margin: 0 auto;
	padding: var(--mlt-space-48) var(--mlt-edge) 0;
	box-sizing: content-box;
}

.mlt-article-page__pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mlt-space-24);
	width: min(72ch, calc(100% - 2 * var(--mlt-edge))); /* même largeur que le texte (filet compris) */
	margin: var(--mlt-space-64) auto 0;
	padding: var(--mlt-space-32) 0 var(--mlt-section-pad);
	border-top: 1px solid var(--mlt-color-ligne);
}

/* Lien retour : flèche vers la gauche (même icône retournée) */
.mlt-lien--retour::after {
	transform: scaleX(-1);
}

.mlt-lien--retour:hover::after,
.mlt-lien--retour:focus-visible::after {
	transform: scaleX(-1) translateX(4px);
}

/* -------------------- Sections des widgets sur fond crème, sous la bannière crème --------------------
   Pages internes : on alterne (section blanche, panneau crème) pour ne pas fondre la section
   dans la bannière. */
.mlt-interne .mlt-devis {
	background: var(--mlt-color-blanc);
}

.mlt-interne .mlt-devis__form {
	background: var(--mlt-color-fond);
}

/* -------------------- Page vide (404, recherche sans résultat) -------------------- */
.mlt-vide p {
	max-width: 60ch;
	margin: 0 0 var(--mlt-space-24);
	font-size: var(--mlt-fs-lead);
}

.mlt-vide__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mlt-space-16) var(--mlt-space-32);
}

@media (prefers-reduced-motion: reduce) {
	.mlt-blog .mlt-carte-article__img {
		transition: none;
	}

	.mlt-carte-article__lien:hover .mlt-carte-article__img {
		transform: none;
	}
}

@media (min-width: 768px) {
	.mlt-entete__inner {
		padding-top: var(--mlt-space-48);
		padding-bottom: var(--mlt-space-96);
	}

	.mlt-blog__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.mlt-entete::after {
		right: 6%;
		width: 520px;
		height: 520px;
	}

	.mlt-blog__grille {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
