/* ==========================================================================
   Ma Nature — Custom CSS (based on Figma export specs)
   Colors: #2D3B38 (text), #ADD0B3 (green), #FAF5EB (cream), #E6F1E8 (green light)
   Fonts: Raleway (main), Oswald (surtitres), Noto Serif (logo), Manrope (gallery)
   ========================================================================== */

/* --- Reset --- */
html {
	scroll-behavior: smooth;
}

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

/* --- Surtitre sections — Oswald 22px with green underline bar --- */
.mn-surtitre {
	font-family: 'Oswald', sans-serif !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #2D3B38 !important;
	margin-bottom: 16px !important;
	width: fit-content;
	position: relative;
	padding-bottom: 10px;
	overflow: visible;
}

/* Underline bar — 120% of text width, centered under text */
.mn-surtitre::after {
	content: "";
	display: block;
	margin-top: -10px;
	width: 110%;
	margin-left: -5%;
	height: 6px;
	background: #ADD0B3;
}

/* When centered, auto margins center the fit-content element */
p.has-text-align-center.mn-surtitre {
	margin-left: auto;
	margin-right: auto;
}

/* Surtitre white variant (for dark backgrounds) */
.mn-surtitre-white {
	color: #fff !important;
}

/* --- Section wrapper --- */
.mn-section {
	padding-top: 100px;
	padding-bottom: 100px;
	padding-left: 2vw;
	padding-right: 2vw;
}

.mn-section-sm {
	padding-top: 64px;
	padding-bottom: 64px;
}

/* --- Hero styles moved to block CSS ---*/

/* Hero background media (image or video) */
.mn-hero-bg-video,
.mn-hero-bg-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
	z-index: 0;
}

/* Hero overlay */
.mn-hero-overlay {
	position: absolute;
	inset: 0;
	background: #2D3B38;
	z-index: 1;
}

/* Hero inner content */
.mn-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1050px;
	text-align: center;
	color: #FAF5EB;
}

.mn-hero-inner h1,
.mn-hero-inner p {
	color: inherit;
}

.mn-hero .wp-block-cover__inner-container {
	max-width: 1050px;
	text-align: center;
}

/* Hero badge */
.mn-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	padding: 8px 20px;
	font-size: 16px;
	font-weight: 400;
	color: #FAF5EB;
	margin-bottom: 24px;
}

.mn-hero-badge .mn-rating {
	font-size: 30px;
	font-weight: 600;
	color: #fff;
}

.mn-hero-badge .stars {
	color: #B8D4C8;
}

/* Hero buttons */
.mn-hero .wp-block-buttons {
	justify-content: center;
}

/* --- Boutons globaux --- */
.wp-block-button__link,
.wp-element-button {
	border-radius: 0px !important;
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
}

/* Boutons verts (primaires) : cadre blanc 1px + ombre foncée décalée */
.mn-btn-green .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-primary-background-color {
	background: #ADD0B3 !important;
	color: #2D3B38 !important;
	border: 1px solid #fff !important;
	box-shadow: 4px 4px 0px #809A84;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	padding: 12px 32px;
	font-size: 18px;
}

.mn-btn-green .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-primary-background-color:hover {
	box-shadow: 2px 2px 0px #809A84;
	transform: translate(2px, 2px);
}

/* Bouton crème/outline — ombre verte */
.mn-btn-cream .wp-block-button__link {
	background: #FAF5EB !important;
	color: #2D3B38 !important;
	border: 1px solid #fff !important;
	box-shadow: 4px 4px 0px #ADD0B3;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	padding: 12px 32px;
	font-size: 18px;
}

.mn-btn-cream .wp-block-button__link:hover {
	box-shadow: 2px 2px 0px #ADD0B3;
	transform: translate(2px, 2px);
}

/* Bouton outline expertise (fond blanc, ombre beige ou verte) */
.mn-btn-outline-warm .wp-block-button__link {
	background: #fff !important;
	color: #2D3B38 !important;
	border: none !important;
	box-shadow: 4px 4px 0px #F0DAC4;
	padding: 12px 32px;
	font-size: 16px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mn-btn-outline-warm .wp-block-button__link:hover {
	box-shadow: 2px 2px 0px #F0DAC4;
	transform: translate(2px, 2px);
}

.mn-btn-outline-green .wp-block-button__link {
	background: #fff !important;
	color: #2D3B38 !important;
	border: none !important;
	box-shadow: 4px 4px 0px #ADD0B3;
	padding: 12px 32px;
	font-size: 16px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mn-btn-outline-green .wp-block-button__link:hover {
	box-shadow: 2px 2px 0px #ADD0B3;
	transform: translate(2px, 2px);
}

/* Bouton CTA final (dark bg, ombre noire) */
.mn-btn-dark .wp-block-button__link {
	background: #ADD0B3 !important;
	color: #0F172A !important;
	border: 1px solid #fff !important;
	box-shadow: 4px 4px 0px #010101;
	padding: 12px 32px;
	font-size: 16px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mn-btn-dark .wp-block-button__link:hover {
	box-shadow: 2px 2px 0px #010101;
	transform: translate(2px, 2px);
}

/* --- Expertise section — media-text 50/50 --- */
.mn-exp-section.wp-block-media-text {
	min-height: 520px;
	grid-template-columns: 55% 45% !important;
	margin-bottom: 70px !important;
}

.mn-exp-section.has-media-on-the-right.wp-block-media-text {
	grid-template-columns: 55% 45% !important;
}

.mn-exp-section:not(.has-media-on-the-right).wp-block-media-text {
	grid-template-columns: 45% 55% !important;
}

.mn-exp-section--warm {
	background-color: #FAF5EB;
}

.mn-exp-section--green {
	background-color: rgba(173, 208, 179, 0.3);
}

/* Content side: center vertically */
.mn-exp-section .wp-block-media-text__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 50px;
	position: relative;
}

/* Vertical separator line — warm (content left, line on right) */
.mn-exp-section--warm .wp-block-media-text__content::after {
	content: '';
	position: absolute;
	right: 0;
	top: 15%;
	height: 70%;
	width: 1px;
	background-color: #c8c0b4;
}

/* Vertical separator line — green (content right, line on left) */
.mn-exp-section--green .wp-block-media-text__content::before {
	content: '';
	position: absolute;
	left: 0;
	top: 15%;
	height: 70%;
	width: 1px;
	background-color: #b3c7bd;
}

/* Image side: fill */
.mn-exp-section .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 520px;
}

/* Expertise icon */
.mn-exp-icon {
	opacity: 0.55;
}

.mn-exp-icon img {
	width: 36px !important;
	height: 36px !important;
}

/* Expertise button: border only, no shadow */
.mn-exp-btn .wp-block-button__link {
	background: transparent !important;
	color: #2D3B38 !important;
	border: 1px solid #2D3B38 !important;
	box-shadow: none !important;
	transition: background 0.3s, color 0.3s;
}

.mn-exp-btn .wp-block-button__link:hover {
	background: #2D3B38 !important;
	color: #FAF5EB !important;
}

/* Icon circle */
.mn-icon-circle {
	width: 56px;
	height: 56px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	font-size: 24px;
}

/* --- Expertise tags row — styles now in blocks/tags-row/style.css --- */

/* --- Abonnement section --- */

/* Image with green background behind it */
.mn-abo-image-wrapper {
	position: relative;
	padding-top: 20px;
	padding-left: 20px;
}

.mn-abo-image-wrapper::before {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: calc(-2vw - ((100vw - 1440px) / 2));
	width: calc(100% + 2vw + ((100vw - 1440px) / 2));
	height: 60%;
	background: rgba(173, 208, 179, 0.25);
	z-index: 0;
}

.mn-abo-image-wrapper .mn-abo-image {
	position: relative;
	z-index: 1;
	width: 80%;
}

@media (max-width: 1440px) {
	.mn-abo-image-wrapper::before {
		left: -2vw;
		width: calc(100% + 2vw);
	}
}

@media (max-width: 768px) {
	.mn-abo-image-wrapper .mn-abo-image {
		width: 100%;
	}
}

.mn-abo-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Price box — styles gérés dans blocks/abonnement/style.css */

.mn-price-label {
	font-size: 14px !important;
	color: rgba(45, 59, 56, 0.6) !important;
}

.mn-price-value {
	font-size: 36px !important;
	font-weight: 700 !important;
	background: linear-gradient(135deg, #2D3B38, #ADD0B3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Divider line */
.mn-divider {
	width: 84px;
	height: 6px;
	background: #65726D;
	border: none;
	margin: 24px 0;
}

/* --- Service check list --- */
.mn-check-list {
	list-style: none !important;
	padding-left: 0 !important;
}

.mn-check-list li {
	position: relative;
	padding-left: 60px;
	margin-bottom: 24px;
	font-size: 20px;
	line-height: 1.5;
	font-family: 'Raleway', sans-serif;
	color: #0F172A;
}

.mn-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 39px;
	height: 39px;
	background: #ADD0B3;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
}

/* Decorative square */
.mn-deco-square {
	width: 76px;
	height: 89px;
	background: rgba(173, 208, 179, 0.18);
	border: 1px solid #ADD0B3;
	position: absolute;
}

/* --- About section --- */
.mn-about-images {
	position: relative;
	min-height: 527px;
}

.mn-about-main-img {
	border: 8px solid #fff !important;
}

.mn-about-main-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* mn-about-badge styles moved to block CSS */

.mn-about-badge-icon {
	color: #fff;
	font-size: 42px;
	margin-bottom: 12px;
}

.mn-about-badge-text {
	font-family: 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #0F172A;
}

/* --- Galerie filtres --- */
.mn-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 40px;
}

.mn-filters .wp-block-button__link {
	font-size: 16px !important;
	font-weight: 500 !important;
	padding: 12px 24px !important;
	border-radius: 9999px !important;
	box-shadow: none !important;
	border: none !important;
}

/* Active filter */
.mn-filters .mn-filter-active .wp-block-button__link {
	background: #ADD0B3 !important;
	color: #2D3B38 !important;
}

/* Inactive filter */
.mn-filters .mn-filter-inactive .wp-block-button__link {
	background: #FAF5EB !important;
	color: rgba(45, 59, 56, 0.7) !important;
}

/* --- Galerie grille --- */
.mn-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.mn-gallery-grid .wp-block-image {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.mn-gallery-grid .wp-block-image img {
	width: 100%;
	height: 378px;
	object-fit: cover;
}

/* Gallery card overlay */
.mn-gallery-card {
	position: relative;
	overflow: hidden;
}

.mn-gallery-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.mn-gallery-title {
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #fff !important;
}

.mn-gallery-subtitle {
	font-family: 'Manrope', sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

/* --- CTA Final --- */
.mn-cta-final {
	background: #2D3B38;
	position: relative;
	overflow: hidden;
	padding: 96px 0;
	text-align: center;
}

.mn-cta-final .mn-surtitre::after {
	background: #ADD0B3;
}

/* Decorative circles */
.mn-circle-deco {
	width: 384px;
	height: 384px;
	background: #B9C7B2;
	border-radius: 9999px;
	position: absolute;
	opacity: 0.15;
}

.mn-circle-deco--left {
	bottom: -100px;
	left: -100px;
}

.mn-circle-deco--right {
	top: -100px;
	right: -100px;
}

/* --- Header --- */
.mn-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #EBDED2;
	padding: 0 2vw;
}

.mn-header-inner {
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}

.mn-header-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.mn-header-logo-img {
	height: 100px;
	max-height: 100px;
	width: auto;
	display: block;
}

@media (max-width: 768px) {
	.mn-header-logo-img {
		height: 60px;
		max-height: 60px;
	}
}

/* wp_nav_menu styles */
.mn-header-nav {
	display: flex;
	align-items: center;
}

.mn-header-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
}

.mn-header-menu li a {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #2D3B38;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mn-header-menu li a:hover,
.mn-header-menu li.current-menu-item a,
.mn-header-menu li.current_page_item a {
	color: #ADD0B3;
}

/* Keep block navigation styles for editor */
.mn-header .wp-block-navigation a {
	font-size: 16px;
	font-weight: 500;
	color: #2D3B38;
}

.mn-header-cta .wp-block-button__link {
	font-size: 16px !important;
	padding: 12px 24px !important;
	border-radius: 0px !important;
}

/* Logo */
.mn-logo {
	font-family: 'Noto Serif', serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0F172A !important;
}

/* ── Hamburger button (hidden on desktop) ── */
.mn-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	z-index: 110;
}

.mn-hamburger-line {
	display: block;
	width: 24px;
	height: 2px;
	background: #2D3B38;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.mn-hamburger.is-open .mn-hamburger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mn-hamburger.is-open .mn-hamburger-line:nth-child(2) {
	opacity: 0;
}

.mn-hamburger.is-open .mn-hamburger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop: collapse wrapper is just flex ── */
.mn-header-collapse {
	display: flex;
	align-items: center;
	gap: 32px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
	.mn-hamburger {
		display: flex;
	}

	.mn-header-collapse {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		padding: 32px 2vw;
		border-bottom: 1px solid #EBDED2;
		box-shadow: 0 8px 30px rgba(45, 59, 56, 0.08);
		gap: 24px;
	}

	.mn-header-collapse.is-open {
		display: flex;
	}

	.mn-header-menu {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.mn-header-menu li a {
		font-size: 18px;
	}

	.mn-header-cta {
		width: 100%;
	}

	.mn-header-cta .wp-block-button {
		width: 100%;
	}

	.mn-header-cta .wp-block-button__link {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
	}
}

/* --- Footer --- */
.mn-footer {
	border-top: 1px solid #EBDED2;
	padding: 48px 2vw 32px;
}

.mn-footer-inner {
	max-width: 1440px;
	margin: 0 auto;
}

.mn-footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 32px;
	border-bottom: 1px solid #EBDED2;
}

.mn-footer-col {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
}

.mn-footer-col--links {
	justify-content: center;
}

.mn-footer-col--social {
	justify-content: flex-end;
}

.mn-footer-logo-img {
	height: 60px;
	width: auto;
	display: block;
}

.mn-footer-col--links a,
.mn-footer-col--social a {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: rgba(45, 59, 56, 0.7);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mn-footer-col--links a:hover,
.mn-footer-col--social a:hover {
	color: #ADD0B3;
}

.mn-footer-bottom {
	padding-top: 24px;
	text-align: center;
}

.mn-footer-bottom p {
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	color: rgba(45, 59, 56, 0.5);
	margin: 0;
}

.mn-footer-bottom a {
	color: rgba(45, 59, 56, 0.5);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.mn-footer-bottom a:hover {
	color: #ADD0B3;
}

@media (max-width: 768px) {
	.mn-footer-top {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	.mn-footer-col {
		justify-content: center;
	}

	.mn-footer-logo-img {
		height: 50px;
	}
}

/* --- Pages légales --- */
.mn-legal {
	max-width: 800px;
	margin: 0 auto;
}

.mn-legal h1 {
	font-family: 'Raleway', sans-serif;
	font-size: clamp(32px, 3.5vw, 46px);
	font-weight: 500;
	color: #2D3B38;
	margin-bottom: 40px;
}

.mn-legal h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #2D3B38;
	margin-top: 40px;
	margin-bottom: 16px;
}

.mn-legal p {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: rgba(45, 59, 56, 0.7);
}

.mn-legal ul,
.mn-legal ol {
	color: rgba(45, 59, 56, 0.7);
}

.mn-legal li {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: rgba(45, 59, 56, 0.7);
}

.mn-legal a {
	color: #ADD0B3;
	text-decoration: underline;
}

.mn-legal a:hover {
	color: #2D3B38;
}

/* --- Image compositions --- */
.mn-img-border-white img {
	border: 8px solid #fff;
}

/* --- Service section images --- */
.mn-service-images {
	position: relative;
}

/* --- Responsive --- */
/* Expertise responsive */
@media (max-width: 768px) {
	.mn-exp-section .wp-block-media-text__content::after,
	.mn-exp-section .wp-block-media-text__content::before {
		display: none;
	}
	.mn-exp-section .wp-block-media-text__content {
		padding: 48px 28px;
	}
	.mn-exp-section .wp-block-media-text__media img {
		min-height: 320px;
	}
}

@media (max-width: 1023px) {
	.mn-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mn-gallery-grid .wp-block-image img {
		height: 280px;
	}

	.mn-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

}

@media (max-width: 767px) {
	.mn-hero {
		min-height: 500px;
	}

	.mn-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mn-gallery-grid .wp-block-image img {
		height: 220px;
	}

	.mn-section {
		padding-top: 48px;
		padding-bottom: 48px;
		padding-left: 4vw;
		padding-right: 4vw;
	}


	.mn-circle-deco {
		width: 200px;
		height: 200px;
	}

	.mn-filters .wp-block-button__link {
		font-size: 14px !important;
		padding: 8px 16px !important;
	}
}
