/**
 * Mahina Moments — articles de blog
 * Largeur contenu = ancien mahinamoments.com (conteneur 1540 px, article fullwidth).
 */

body.mm-blog-post {
	background-color: #fff9f6;
	color: #1d2834;
}

body.mm-blog-post .site-main,
body.mm-blog-post .page-content {
	padding: 0;
	margin: 0;
	max-width: none;
}

/* Même largeur boxed que l’ancien thème Nixe (#container 1540 px) */
body.mm-blog-post .mm-blog-shell {
	width: 100%;
	max-width: 1540px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero */
body.mm-blog-post .mm-blog-hero {
	position: relative;
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1d2834;
	background-size: cover;
	background-position: center center;
	padding: 8em 1.5em 3.5em;
	overflow: hidden;
}

body.mm-blog-post .mm-blog-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(29, 40, 52, 0.55) 0%,
		rgba(29, 40, 52, 0.79) 100%
	);
	pointer-events: none;
}

body.mm-blog-post .mm-blog-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 40px;
	text-align: center;
	box-sizing: border-box;
}

/* Titre principal — seul gros titre de la page */
body.mm-blog-post .mm-blog-hero .elementor-heading-title {
	font-family: "Fashion Fetish", var(--e-global-typography-primary-font-family, sans-serif) !important;
	font-size: clamp(1.55rem, 3.8vw, 2.6em);
	font-weight: 200 !important;
	line-height: 1.15;
	color: #fff9f6 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

/* Corps — fullwidth dans le conteneur 1540 px (comme .content_row.fullwidth) */
body.mm-blog-post .mm-blog-body-section {
	background-color: #fff9f6;
	padding: 3.5em 0 5em;
}

body.mm-blog-post .mm-blog-body-inner {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

body.mm-blog-post .mm-blog-body-section .elementor-widget-text-editor,
body.mm-blog-post .mm-blog-body-section .elementor-widget-text-editor p,
body.mm-blog-post .mm-blog-body-section .elementor-widget-text-editor li {
	font-family: Poppins, var(--e-global-typography-text-font-family, sans-serif) !important;
	font-size: 1rem;
	font-weight: 300;
	line-height: 2.3em;
	color: #1d2834 !important;
}

body.mm-blog-post .mm-blog-body-section .elementor-widget-text-editor p {
	margin: 0 0 0.5em;
}

/* Sous-titres H2 — nettement plus petits que le H1 hero */
body.mm-blog-post .mm-blog-body-section .wp-block-heading,
body.mm-blog-post .mm-blog-body-section h2 {
	font-family: "Fashion Fetish", var(--e-global-typography-primary-font-family, sans-serif) !important;
	font-size: 1.15rem;
	font-weight: 100 !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.35;
	color: #1d2834 !important;
	margin: 2.4em 0 0.65em;
}

body.mm-blog-post .mm-blog-body-section h3 {
	font-family: Poppins, sans-serif !important;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1d2834 !important;
	margin: 1.35em 0 0.4em;
	line-height: 1.45;
	text-transform: none;
}

body.mm-blog-post .mm-blog-body-section a:not(.wp-block-button__link):not(.elementor-button) {
	color: #5582a2 !important;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

body.mm-blog-post .mm-blog-body-section img {
	max-width: 100%;
	height: auto;
	display: block;
}

body.mm-blog-post .mm-blog-body-section .wp-block-image {
	margin: 1.75em 0;
}

body.mm-blog-post .mm-blog-body-section .wp-block-image figcaption {
	font-size: 0.82rem;
	color: rgba(29, 40, 52, 0.65);
	text-align: center;
	margin-top: 0.45em;
	line-height: 1.45;
}

/* Boutons — contour bleu foncé Mahina (pas de fond marron) */
body.mm-blog-post .wp-block-buttons {
	margin: 2em 0;
	text-align: center;
}

body.mm-blog-post .wp-block-button {
	display: inline-block;
}

body.mm-blog-post .wp-block-button__link,
body.mm-blog-post .wp-element-button {
	display: inline-block;
	font-family: var(--e-global-typography-accent-font-family, "Fashion Fetish"), sans-serif !important;
	font-weight: 400 !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background-color: transparent !important;
	color: #1d2834 !important;
	border: 1px solid #1d2834 !important;
	border-radius: 0 !important;
	padding: 0.85em 1.5em !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.mm-blog-post .wp-block-button__link:hover,
body.mm-blog-post .wp-element-button:hover {
	background-color: #1d2834 !important;
	border-color: #1d2834 !important;
	color: #fff9f6 !important;
}

body.mm-blog-post .wp-block-button__link strong,
body.mm-blog-post .wp-element-button strong {
	font-weight: inherit;
	color: inherit !important;
}

@media (max-width: 767px) {
	body.mm-blog-post .mm-blog-hero {
		min-height: 42vh;
		padding-top: 7em;
		padding-bottom: 2.5em;
	}

	body.mm-blog-post .mm-blog-hero .elementor-heading-title {
		font-size: clamp(1.25rem, 6.5vw, 1.75rem);
		line-height: 1.3;
	}

	body.mm-blog-post .mm-blog-hero__inner,
	body.mm-blog-post .mm-blog-body-inner {
		padding-left: 24px;
		padding-right: 24px;
	}

	body.mm-blog-post .mm-blog-body-section {
		padding: 2.5em 0 3.5em;
	}

	body.mm-blog-post .mm-blog-body-section h2 {
		font-size: 1.05rem;
	}
}

@media (min-width: 1025px) {
	body.mm-blog-post .mm-blog-hero {
		min-height: 52vh;
	}
}
