/**
 * Maison Pierre - Main theme styles
 * Mobile-first, responsive
 */

/* ========== Header ========== */
.mp-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, 0.96);
	font-family: var(--mp-font-sans, sans-serif);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(222, 226, 230, 0.9);
	box-shadow: 0 4px 24px rgba(22, 28, 36, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* WordPress admin bar adjustment */
.admin-bar .mp-header {
	top: 32px;
}

.mp-header.is-scrolled {
	background: rgba(255, 255, 255, 0.98);
	border-bottom-color: rgba(210, 214, 220, 1);
	box-shadow: 0 8px 30px rgba(22, 28, 36, 0.12);
}

/* Top bar */
.mp-header__top {
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	z-index: 1;
	background: #ffffff;
}

.mp-header__top-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.mp-header__logo {
	flex-shrink: 0;
	margin-right: 8px;
}

.mp-header__logo a {
	display: block;
	line-height: 0;
}

.mp-header__logo img {
	display: block;
	height: 46px;
	width: auto;
}

/* Utility links */
.mp-header__top-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex: 1;
}

.mp-header__top-links a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #555;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	padding: 6px 8px;
	border-radius: 8px;
	transition: color 0.2s, background-color 0.2s;
}

.mp-header__top-links a svg {
	color: #c23b3b;
	flex-shrink: 0;
}

.mp-header__top-links a:hover {
	color: #c23b3b;
	background-color: #f6f8fa;
}

/* Phone CTA */
.mp-header__phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 9px 16px;
	background: linear-gradient(135deg, #7cc349 0%, #5ea832 100%);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-size: 11px;
	line-height: 1.25;
	white-space: nowrap;
	flex-shrink: 0;
	transition: transform 0.2s, box-shadow 0.2s;
}

.mp-header__phone:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(124, 195, 73, 0.35);
	color: #fff;
}

.mp-header__phone-label {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.mp-header__phone-tag {
	opacity: 0.9;
	font-size: 10px;
}

/* Mobile hamburger */
.mp-header__mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	width: 36px;
	height: 36px;
}

.mp-header__mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #333;
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}

.mp-header__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.mp-header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.mp-header__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Bottom nav bar */
.mp-header__bottom {
	background: #fff;
	border-bottom: 1px solid #eef1f4;
}

.mp-header__bottom-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.mp-header__nav {
	flex: 1;
}

.mp-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.mp-header__menu > li > a {
	display: block;
	padding: 15px 16px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.01em;
	position: relative;
	transition: color 0.2s, background 0.2s;
}

.mp-header__menu > li > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 18px;
	right: 18px;
	height: 3px;
	background: #c23b3b;
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.mp-header__menu > li > a:hover,
.mp-header__menu > li.current-menu-item > a {
	color: #c23b3b;
	background: rgba(194, 59, 59, 0.04);
}

.mp-header__menu > li > a:hover::after,
.mp-header__menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* Inline search (icon inside field) */
.mp-header__search {
	min-width: 180px;
	border: 1px solid #d9dee5;
	border-radius: 999px;
	display: flex;
	align-items: center;
	flex-direction: row;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hide mobile-only elements on desktop */
.mp-header__mobile-links,
.mp-header__mobile-phone {
	display: none;
}

.mp-header__search:focus-within {
	border-color: #c23b3b;
	box-shadow: 0 0 0 3px rgba(194, 59, 59, 0.08);
}

.mp-header__search-submit {
	order: -1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0;
	padding: 8px 6px 8px 12px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #666;
	transition: color 0.2s;
	line-height: 0;
}

.mp-header__search-submit:hover,
.mp-header__search-submit:focus-visible {
	color: #c23b3b;
	outline: none;
}

.mp-header__search:focus-within .mp-header__search-submit {
	color: #c23b3b;
}

.mp-header__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 8px 14px 8px 4px;
	width: 100%;
	font-size: 13px;
	outline: none;
	background: transparent;
	color: #333;
}

.mp-header__search-input::placeholder {
	color: #999;
}

/* Screen reader text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Responsive header ---- */
@media (max-width: 1100px) {
	.mp-header__top-links { gap: 14px; }
	.mp-header__top-links a { font-size: 12px; }
	.mp-header__menu > li > a { padding: 12px 12px; font-size: 13px; }
}

@media (max-width: 900px) {
	.mp-header__top-inner {
		padding: 12px 16px;
	}

	.mp-header__logo img {
		height: 36px;
	}

	.mp-header__top-links { 
		display: none !important;
	}

	.mp-header__phone {
		display: none !important;
	}

	.mp-header__mobile-toggle { 
		display: flex;
		z-index: 100000;
		position: relative;
		margin-left: auto;
	}

	/* Hide desktop bottom nav, show mobile overlay version */
	.mp-header__bottom {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100vh !important;
		height: 100dvh !important;
		z-index: 99998 !important;
		background: transparent;
		border-bottom: none !important;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.mp-header__bottom.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	/* Dark backdrop */
	.mp-header__bottom::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.6);
		z-index: 1;
	}

	/* White menu panel */
	.mp-header__bottom-inner {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		width: 85% !important;
		max-width: 380px !important;
		height: 100% !important;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25) !important;
		z-index: 2 !important;
		padding: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		transform: translateX(100%);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.mp-header__bottom.is-open .mp-header__bottom-inner {
		transform: translateX(0);
	}

	/* Mobile menu header with logo */
	.mp-header__bottom-inner::before {
		content: '';
		display: block;
		height: 80px;
		background: linear-gradient(135deg, #c23b3b 0%, #a12e2e 100%);
		flex-shrink: 0;
	}

	.mp-header__nav {
		width: 100%;
		margin-bottom: 0;
		padding: 24px 0;
		flex: 1;
	}

	.mp-header__menu {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 24px !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 4px !important;
		width: 100%;
	}

	.mp-header__menu > li {
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: none;
	}

	.mp-header__menu > li:last-child {
		border-bottom: none;
	}

	.mp-header__menu > li > a {
		display: flex !important;
		align-items: center;
		width: 100%;
		padding: 16px 18px !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		color: #2c3e50 !important;
		text-decoration: none !important;
		transition: all 0.3s ease;
		line-height: 1.4;
		border-radius: 12px;
		background: transparent;
	}

	.mp-header__menu > li > a:hover {
		color: #c23b3b !important;
		background: rgba(194, 59, 59, 0.08);
		transform: translateX(4px);
	}

	.mp-header__menu > li.current-menu-item > a,
	.mp-header__menu > li.current_page_item > a {
		color: #c23b3b !important;
		background: rgba(194, 59, 59, 0.1);
		font-weight: 700 !important;
	}

	.mp-header__menu > li > a::after { 
		display: none !important;
	}

	/* Mobile menu special links section */
	.mp-header__mobile-links {
		display: block !important;
		list-style: none !important;
		margin: 24px 0 0 !important;
		padding: 0 24px !important;
	}

	.mp-header__mobile-links li {
		margin: 0 !important;
	}

	.mp-header__mobile-links a {
		display: flex !important;
		align-items: center !important;
		gap: 14px !important;
		padding: 16px 18px !important;
		color: #2c3e50 !important;
		text-decoration: none !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		border-radius: 12px !important;
		transition: all 0.3s ease !important;
		background: transparent;
	}

	.mp-header__mobile-links a:hover {
		background: rgba(194, 59, 59, 0.08) !important;
		transform: translateX(4px);
	}

	.mp-header__mobile-links a svg {
		color: #c23b3b !important;
		flex-shrink: 0 !important;
	}

	/* Mobile phone section - styled like desktop */
	.mp-header__mobile-phone {
		display: block;
		margin: 20px 24px 0;
		padding: 0;
		background: transparent;
		border-radius: 0;
		box-shadow: none ;
	}

	.mp-header__mobile-phone a {
		display: flex;
        flex-direction: column;
        text-decoration: none;
        color: #fff;
        padding: 12px 20px;
        background: linear-gradient(135deg, #7cc349 0%, #5ea832 100%);
        border-radius: 8px;
        transition: transform 0.2s, box-shadow 0.2s;
        text-align: center;
	}

	.mp-header__mobile-phone a:hover {
		transform: translateY(-1px);
		box-shadow: 0 3px 10px rgba(124, 195, 73, 0.35);
	}

	.mp-header__mobile-phone svg {
		display: none;
	}

	.mp-header__mobile-phone-label {
		display: none;
	}

	.mp-header__mobile-phone-number {
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.02em;
		display: block;
		margin-bottom: 0;
	}

	.mp-header__mobile-phone-subtitle {
		font-size: 10px;
		opacity: 0.9;
		margin-top: 0;
		display: block;
		line-height: 1.2;
	}

	.mp-header__bottom-inner::after {
		content: '';
		display: block;
		height: 1px;
		background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
		margin: 12px 24px;
		flex-shrink: 0;
	}

	/* Add special menu items container */
	.mp-header__nav::after {
		content: '';
		display: block;
		padding: 0 24px 24px;
	}

	.mp-header__search {
		margin: 0 24px 24px;
		width: calc(100% - 48px);
		min-width: 0;
		border-radius: 12px;
		border: 2px solid #e8ecf0;
		background: #f8f9fa;
	}

	.mp-header__search:focus-within {
		background: #fff;
		border-color: #c23b3b;
	}

	.mp-header__search-input {
		font-size: 15px !important;
		background: transparent;
	}

	/* Mobile menu footer with phone */
	.mp-header__bottom-inner {
		position: relative;
	}

	/* Add phone number at bottom */
	body.mp-menu-open {
		overflow: hidden !important;
		position: fixed;
		width: 100%;
		height: 100%;
	}

	/* Admin bar compatibility */
	.admin-bar .mp-header__mobile-toggle {
		z-index: 100002;
	}
}

/* Footer */
.mp-footer {
	background: #2f4340;
	color: #e9f0ee;
	font-size: 0.9rem;
}

.mp-footer__top {
	padding: 3rem 0 2.5rem;
}

.mp-footer__top-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.3fr);
	gap: 3rem;
	align-items: flex-start;
}

.mp-footer__logo img {
	display: block;
	height: 46px;
	width: auto;
}

.mp-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.mp-footer__title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #f5fbf9;
}

.mp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mp-footer__list li + li {
	margin-top: 0.3rem;
}

.mp-footer__list a {
	color: #d5e3df;
	text-decoration: none;
}

.mp-footer__list a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.mp-footer__aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: flex-start;
}

.mp-footer__shortcuts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mp-footer__shortcuts li + li {
	margin-top: 0.4rem;
}

.mp-footer__shortcuts a {
	color: #ffffff;
	text-decoration: none;
}

.mp-footer__shortcuts a:hover {
	text-decoration: underline;
}

.mp-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 12px;
	margin-right: 8px;
}

.mp-footer__social-block {
	margin-top: 0.25rem;
}

.mp-footer__social-label {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	color: #c7d5d1;
}

.mp-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.35rem;
}

.mp-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
}

.mp-footer__social a:hover {
	background: #ffffff;
	color: #2f4340;
}

.mp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 1.5rem 0 2.25rem;
}

.mp-footer__bottom-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.mp-footer__legal-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.mp-footer__copy {
	margin: 0;
	color: #c7d5d1;
}

.mp-footer__legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
}

.mp-footer__legal-links a {
	color: #d5e3df;
	text-decoration: none;
}

.mp-footer__legal-links a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.mp-footer__badge {
	margin-left: auto;
}

.mp-footer__badge-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.9rem;
	border-radius: 6px;
	background: #ffffff;
	color: #1b2730;
	font-size: 0.8rem;
}

.mp-footer__badge-mark {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #22b573;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.mp-footer__badge-title {
	display: block;
	font-weight: 600;
}

.mp-footer__badge-link {
	display: inline-block;
	margin-top: 0.1rem;
	color: #1b7ed0;
	text-decoration: none;
}

.mp-footer__badge-link:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.mp-footer__top-inner {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
		grid-template-rows: auto auto;
	}

	.mp-footer__aside {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (max-width: 720px) {
	.mp-footer__top-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.mp-footer__links {
		grid-template-columns: minmax(0, 1fr);
	}

	.mp-footer__aside {
		flex-direction: column;
		align-items: flex-start;
	}

	.mp-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.mp-footer__badge {
		margin-left: 0;
	}
}

/* Cards & grid */
.mp-grid {
	display: grid;
	gap: 1.5rem;
}
@media (min-width: 600px) {
	.mp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.mp-grid { grid-template-columns: repeat(3, 1fr); }
}
.mp-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.mp-card:hover { 
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.08);
}
.mp-card__link { 
	text-decoration: none; 
	color: inherit; 
	display: block; 
	height: 100%;
}
.mp-card__thumb {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.mp-card__thumb::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.mp-card:hover .mp-card__thumb::after {
	opacity: 1;
}
.mp-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-card:hover .mp-card__thumb img {
	transform: scale(1.08);
}
.mp-card__body { 
	padding: 1.5rem;
	background: #fff;
	position: relative;
}
.mp-card__accent {
	height: 6px;
	width: 100%;
}
.mp-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: #1a202c;
	line-height: 1.3;
	transition: color 0.2s ease;
}
.mp-card:hover .mp-card__title {
	color: #e02623;
}
.mp-card__title a { color: inherit; }
.mp-card__gamme {
	display: inline-block;
	padding: 6px 14px;
	font-size: 0.7rem;
	font-weight: 800;
	color: #fff;
	border-radius: 20px;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
}
.mp-card__gamme::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.2);
	transition: left 0.3s ease;
}
.mp-card:hover .mp-card__gamme::before {
	left: 100%;
}
.mp-card__floor {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: #718096;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}
.mp-card__floor::before {
	content: '🏠';
	font-size: 1rem;
}
.mp-card__meta-row {
	display: flex;
	gap: 20px;
	margin-bottom: 16px;
	padding: 12px 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}
.mp-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	color: #4a5568;
	font-weight: 600;
}
.mp-card__meta svg {
	flex-shrink: 0;
	opacity: 0.8;
	stroke-width: 2.5;
	color: #e02623;
}
.mp-card__price {
	margin: 0;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	border-radius: 8px;
	text-align: center;
}
.mp-card__price-label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	color: #718096;
	font-weight: 600;
}
.mp-card__price strong {
	font-size: 1.5rem;
	color: #e02623;
	font-weight: 900;
	display: block;
	line-height: 1;
}
.mp-card__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.mp-card__excerpt { margin: 0; font-size: 0.9rem; }

/* Buttons */
.mp-button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--mp-color-primary);
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}
.mp-button:hover { opacity: 0.9; color: #fff; }
.mp-button--primary { background: var(--mp-color-primary); color: #fff; }
.mp-button--secondary {
	background: transparent;
	color: var(--mp-color-primary);
	border: 2px solid var(--mp-color-primary);
}
.mp-button--secondary:hover { background: var(--mp-color-primary); color: #fff; }
.mp-button--light {
	background: #fff;
	color: var(--mp-color-primary);
}
.mp-button--light:hover { opacity: 0.95; color: var(--mp-color-primary); }

/* Entry */
.mp-entry__header { margin-bottom: 1rem; }
.mp-entry__title { margin: 0 0 0.5rem; }
.mp-entry__thumb { margin-bottom: 1.5rem; }
.mp-entry__thumb img { border-radius: 4px; }

/* Gammes */
.mp-gamme-accent {
	height: 6px;
	width: 110px;
	border-radius: 4px;
	margin-top: 8px;
}
.mp-gamme-maisons {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mp-gamme-maisons__title {
	margin: 0 0 1.25rem;
	font-size: 1.4rem;
}
.mp-gamme-thumb img {
	border-radius: 10px;
}
.mp-gamme-modals-hint {
	margin-top: 1rem;
	font-weight: 600;
	font-size: 0.95rem;
}

/* ---- Gamme (Gutenberg + ACF) sections ---- */
.mp-gb-equipments { padding: 40px 0; }
.mp-gb-equipments__title {
	text-align: center;
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 900;
	color: #1a202c;
}
.mp-gb-equipments__subtitle {
	text-align: center;
	margin: 0 0 28px;
	color: #718096;
}
.mp-gb-equipments__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 36px;
	align-items: center;
}
.mp-gb-equipments__media {
	position: relative;
}
.mp-gb-equipments__slider {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}
.mp-gb-equipments__slide {
	display: none;
}
.mp-gb-equipments__slide.is-active {
	display: block;
}
.mp-gb-equipments__slide img {
	width: 100%;
	height: auto;
	display: block;
}
.mp-gb-equipments__arrows {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 12px;
	pointer-events: none;
}
.mp-gb-equipments__arrow {
	pointer-events: all;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #1a202c;
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mp-gb-equipments__arrow:hover {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.mp-gb-equipments__counter {
	text-align: center;
	margin-top: 8px;
	font-size: 0.9rem;
	color: #718096;
	font-weight: 600;
}
.mp-gb-equipments__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
}
.mp-gb-equipments__dots span {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #cbd5e0;
}
.mp-gb-equipments__list { display: grid; gap: 14px; }
.mp-gb-equipments__item {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mp-gb-equipments__icon {
	width: 50px;
	height: 50px;
	object-fit: contain;
}
.mp-gb-equipments__icon-fallback {
	width: 26px; height: 26px;
	border-radius: 6px;
	background: #e02623;
}
.mp-gb-equipments__item-title {
	font-weight: 700;
	color: #1a202c;
}
.mp-gb-equipments__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 10px 14px;
	background: #e2e8f0;
	color: #2d3748;
	text-decoration: none;
	font-weight: 700;
	border-radius: 2px;
	margin-top: 6px;
}
.mp-gb-equipments__btn:hover { background: #cbd5e0; color: #2d3748; }

.mp-gb-tabs { padding: 40px 0 70px; }
.mp-gb-tabs__title {
	text-align: center;
	margin: 0 0 8px;
	font-size: 1.55rem;
	font-weight: 900;
	color: #1a202c;
}
.mp-gb-tabs__subtitle {
	text-align: center;
	margin: 0 auto 22px;
	max-width: 980px;
	color: #718096;
	line-height: 1.6;
}
.mp-gb-tabs__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 22px;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 22px;
}
.mp-gb-tabs__btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px 6px;
	font-weight: 700;
	color: #4a5568;
	border-bottom: 3px solid transparent;
}
.mp-gb-tabs__btn.is-active {
	color: #e02623;
	border-bottom-color: #e02623;
}
.mp-gb-tabs__panel { animation: mp-fadeIn 0.25s ease; }
.mp-gb-tabs__panel-inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 26px;
	align-items: start;
}
.mp-gb-tabs__media img {
	width: 100%;
	height: auto;
	border-radius: 140px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.mp-gb-tabs__content { color: #4a5568; line-height: 1.7; }
.mp-gb-tabs__cta { text-align: center; margin-top: 28px; }
.mp-gb-tabs__cta-btn {
	display: inline-block;
	padding: 12px 22px;
	background: #e02623;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	border-radius: 4px;
}
.mp-gb-tabs__cta-btn:hover { background: #c21f1c; color: #fff; }

@media (max-width: 960px) {
	.mp-gb-equipments__grid { grid-template-columns: 1fr; }
	.mp-gb-tabs__panel-inner { grid-template-columns: 1fr; }
	.mp-gb-tabs__media img { border-radius: 16px; max-width: 420px; }
}
.mp-entry__content > *:first-child { margin-top: 0; }
.mp-entry__content > *:last-child { margin-bottom: 0; }

/* Archive */
.mp-archive__header { margin-bottom: 2rem; }
.mp-archive__title { margin: 0 0 0.5rem; }
.mp-archive__description { margin: 0; color: var(--mp-color-text-light); }

/* Maisons Filters */
.mp-maisons-filters {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: #f7f9fc;
	border-radius: 8px;
}

.mp-maisons-filters__label {
	font-weight: 700;
	font-size: 0.95rem;
	color: #2d3748;
	margin-bottom: 1rem;
}

.mp-maisons-filters__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mp-filter-btn {
	padding: 10px 20px;
	background: #fff;
	color: #4a5568;
	text-decoration: none;
	border: 2px solid #e2e8f0;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	cursor: pointer;
}

.mp-filter-btn:hover {
	border-color: #cbd5e0;
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mp-filter-btn.is-active {
	background: var(--gamme-color, #e02623);
	color: #fff;
	border-color: var(--gamme-color, #e02623);
}

.mp-filter-btn.is-active:hover {
	opacity: 0.9;
}

.mp-no-results {
	text-align: center;
	padding: 3rem 1rem;
}

.mp-no-results p {
	font-size: 1.1rem;
	color: #718096;
	margin-bottom: 1.5rem;
}

/* Archive Grid Layout */
.mp-posts--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin-bottom: 2rem;
}

@media (min-width: 640px) {
	.mp-posts--grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}

@media (min-width: 900px) {
	.mp-posts--grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}
}

@media (min-width: 1200px) {
	.mp-posts--grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 36px;
	}
}

@media (max-width: 639px) {
	.mp-posts--grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.mp-card__body {
		padding: 1.25rem;
	}
	
	.mp-card__title {
		font-size: 1.15rem;
	}
	
	.mp-card__meta-row {
		gap: 12px;
	}
	
	.mp-card__price strong {
		font-size: 1.4rem;
	}
}

/* Pagination */
.mp-posts + .wp-block-query-pagination,
.mp-posts + .nav-links {
	margin-top: 2rem;
	padding-top: 1rem;
}

/* ========== Homepage ========== */
.mp-front-page { padding: 0; }

/* ---------- Hero Slider ---------- */
.mp-hero-slider {
	position: relative;
	width: 100%;
	height: 520px;
	overflow: hidden;
	background: #1a1a1a;
}

.mp-hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.mp-hero-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	display: flex;
	align-items: center;
}

.mp-hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.mp-hero-slider__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 6s ease-out;
}

.mp-hero-slider__slide.is-active .mp-hero-slider__bg {
	transform: scale(1.04);
}

.mp-hero-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.25) 50%,
		transparent 75%
	);
	z-index: 1;
}

.mp-hero-slider__content {
	position: relative;
	z-index: 2;
	color: #fff;
	max-width: 600px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

.mp-hero-slider__slide.is-active .mp-hero-slider__content {
	transform: translateY(0);
	opacity: 1;
}

.mp-hero-slider__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.mp-hero-slider__subtitle {
	margin: 0 0 1.75rem;
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	line-height: 1.55;
	opacity: 0.92;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.mp-hero-slider__cta {
	font-size: 0.95rem;
	padding: 0.8rem 2rem;
	border-radius: 3px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Arrows */
.mp-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, border-color 0.25s;
}

.mp-hero-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

.mp-hero-slider__arrow--prev { left: 20px; }
.mp-hero-slider__arrow--next { right: 20px; }

/* Dots */
.mp-hero-slider__dots {
	position: absolute;
	bottom: 95px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 10px;
}

.mp-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.mp-hero-slider__dot.is-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.2);
}

.mp-hero-slider__dot:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.5);
}

/* Quick-access cards */
.mp-hero-cards {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 5;
}

.mp-hero-cards__inner {
	display: flex;
	justify-content: center;
	gap: 0;
}

.mp-hero-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 32px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #333;
	text-decoration: none;
	border-right: 1px solid #eee;
	transition: background 0.25s, transform 0.25s;
	min-width: 220px;
}

.mp-hero-card:last-child {
	border-right: none;
}

.mp-hero-card:hover {
	background: #fff;
	transform: translateY(-3px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mp-hero-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #e8f4fd;
	color: #2980b9;
	flex-shrink: 0;
}

.mp-hero-card__icon--green {
	background: #e8f8ee;
	color: #27ae60;
}

.mp-hero-card__icon--red {
	background: #fde8e8;
	color: #e02623;
}

.mp-hero-card__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mp-hero-card__text strong {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}

.mp-hero-card__text small {
	font-size: 0.8rem;
	color: #888;
}

/* Mobile adjustments */
@media (max-width: 960px) {
	.mp-hero-slider { height: 460px; }

	.mp-hero-slider__arrow { display: none; }

	.mp-hero-slider__dots { bottom: 110px; }

	.mp-hero-cards__inner {
		flex-direction: column;
		gap: 0;
	}

	.mp-hero-card {
		border-right: none;
		border-bottom: 1px solid #eee;
		min-width: 0;
		padding: 12px 20px;
	}

	.mp-hero-card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
	.mp-hero-slider { height: 400px; }

	.mp-hero-slider__title { font-size: 1.5rem; }

	.mp-hero-slider__dots { bottom: 130px; }

	.mp-hero-card__icon {
		width: 40px;
		height: 40px;
	}

	.mp-hero-card__icon svg {
		width: 22px;
		height: 22px;
	}
}

/* ========== Single Maison (matches preprod MP layout) ========== */

.template-single-maison { padding: 0; }

/* Pente (roof type) icons */
.pente_images {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 5;
	display: flex;
	gap: 8px;
}

.pente_images img {
	height: 50px;
	width: auto;
	background: #fff;
	border-radius: 4px;
	padding: 4px;
}

/* Hero slider */
.maison_wrapper_hero_wrap {
	position: relative;
}

.maison_big_slider {
	position: relative;
	width: 100%;
	height: 500px;
	background: #1a1a2e;
	overflow: hidden;
}

.maison_slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.maison_slide.is-active {
	opacity: 1;
	z-index: 1;
}

.maison_slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.maison_placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8ecef;
	color: #888;
	font-size: 1rem;
}

.maison_slider_arrows { z-index: 5; }

.maison_arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(0, 0, 0, 0.45);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s;
}

.maison_arrow:hover { background: rgba(0, 0, 0, 0.7); }
.maison_arrow--prev { left: 0; }
.maison_arrow--next { right: 0; }

.maison_slider_counter {
	position: absolute;
	bottom: 16px;
	right: 16px;
	z-index: 5;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
}

/* Product top bar */
.maison_product_top {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.maison_product_top ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0;
}

.maison_product_top ul li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	font-size: 0.95rem;
	color: #333;
	font-weight: 500;
	border-right: 1px solid #e2e8f0;
}

.maison_product_top ul li svg {
	color: #5f7475;
	flex-shrink: 0;
}

.maison_product_top_cta {
	margin-left: auto;
	border-right: none !important;
}

.maison_product_top_cta a {
	display: inline-block;
	padding: 10px 28px;
	background: #e02623;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	border-radius: 3px;
	transition: background 0.2s;
}

.maison_product_top_cta a:hover {
	background: #c21f1c;
	color: #fff;
}

/* Below hero content */
.maison_below_hero_bk {
	padding: 24px 0 60px;
	background: #fff;
}

/* Breadcrumb */
.mp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.82rem;
	color: #5f7475;
	margin-bottom: 24px;
}

.mp-breadcrumb a {
	color: #5f7475;
	text-decoration: none;
}

.mp-breadcrumb a:hover {
	color: #e02623;
	text-decoration: underline;
}

.mp-breadcrumb__sep { color: #ccc; }
.mp-breadcrumb__current { color: #333; }

/* Two column layout */
.maison_product_layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
}

/* Left column */
.maison_title {
	margin: 0 0 12px;
	font-size: 1.75rem;
	font-weight: 700;
}

.maison_gamme {
	display: inline-block;
	padding: 5px 14px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 3px;
	margin-bottom: 16px;
	text-transform: capitalize;
}

.maison_gamme--link {
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.maison_gamme--link:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.maison_price {
	font-size: 1rem;
	color: #333;
	margin-bottom: 20px;
	line-height: 1.6;
}

.maison_price .mpmp_second { color: #666; }

.maison_price strong {
	font-size: 1.4rem;
	color: #e02623;
}

/* Energy class */
.maison_product_energy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 20px;
}

.class_energy_label {
	font-size: 0.82rem;
	color: #5f7475;
	margin-right: 10px;
	margin-bottom: 0;
}

.maison_product_energy_element {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: -2px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.maison_product_energy_element p {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.maison_product_energy_element.isenergy {
	width: 30px;
	height: 30px;
	border: 2px solid #333;
	border-radius: 3px;
	z-index: 1;
}

.maison_product_energy_element.isenergy p {
	font-size: 14px;
}

/* Description */
.maison_product_content {
	line-height: 1.75;
	color: #4a5568;
	font-size: 1rem;
}

.maison_product_content p { margin: 0 0 1rem; }

.maison_disclaimer {
	font-size: 0.82rem;
	color: #999;
	font-style: italic;
}

.maison_gamme_content_full {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	line-height: 1.75;
	color: #4a5568;
	font-size: 1rem;
}

.maison_gamme_content_full > *:first-child {
	margin-top: 0;
}

/* Right column - Distribution */
.maison_product_right {
	position: relative;
}

.maison_product_bottom ul {
	list-style: none;
	margin: 0;
	padding: 20px 24px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	position: sticky;
	top: 90px;
}

.maison_blue_thingy {
	width: 100%;
	height: 4px;
	border-radius: 2px;
	margin-bottom: 12px;
}

.maison_distribution_title {
	margin: 0 0 16px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2d3748;
}

.maison_product_bottom li {
	padding: 8px 0;
	border-bottom: 1px solid #edf2f7;
	font-size: 0.9rem;
	color: #4a5568;
}

.maison_product_bottom li:last-child {
	border-bottom: none;
}

/* Related gallery */
.maisons_related_gallery_wrapper {
	padding: 50px 0;
	background: #f0f2f1;
}

.maisons_related_gallery_inner h3 {
	text-align: center;
	font-size: 1.5rem;
	margin: 0 0 32px;
	color: #1a202c;
}

.maisons_related_flex {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.maisons_related_gallery_item {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s, transform 0.25s;
}

.maisons_related_gallery_item:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.maisons_related_gallery_item .absolute-anchor {
	text-decoration: none;
	color: inherit;
	display: block;
}

.maison_related_thumb {
	height: 180px;
	background-size: cover;
	background-position: center;
}

.maison_related_content_wrapper {
	padding: 16px;
}

.maison_related_title_wrapper { margin-bottom: 8px; }

.maison_related_title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1a202c;
}

.maison_related_floor {
	margin: 2px 0 0;
	font-size: 0.82rem;
	color: #5f7475;
}

.maison_related_gamme {
	display: inline-block;
	padding: 3px 10px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	border-radius: 3px;
	margin: 8px 0;
}

.maison_related_elements {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #edf2f7;
}

.maison_related_element {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #4a5568;
}

.maison_related_element svg {
	color: #5f7475;
	flex-shrink: 0;
}

.maison_related_price {
	margin-left: auto;
	text-align: right;
}

.maison_related_price p {
	margin: 0;
	font-size: 0.78rem;
	color: #999;
}

.maison_related_price strong {
	font-size: 1rem;
	color: #e02623;
	white-space: nowrap;
}

.maison_return_link {
	display: block;
	text-align: center;
	margin-top: 32px;
	color: #e02623;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.maison_return_link:hover { text-decoration: underline; }

/* Animation */
@keyframes mp-fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Responsive single maison */
@media (max-width: 960px) {
	.maison_big_slider { height: 360px; }

	.maison_product_layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

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

	.maison_product_top ul { flex-wrap: wrap; }
	.maison_product_top ul li { padding: 10px 16px; font-size: 0.85rem; }
	.maison_product_top_cta { margin-left: 0; width: 100%; text-align: center; }
}

@media (max-width: 600px) {
	.maison_big_slider { height: 260px; }

	.maison_title { font-size: 1.35rem; }

	.maisons_related_flex { grid-template-columns: 1fr; }

	.maison_related_thumb { height: 200px; }
}

/* ---- KC compat (mp_gamme_* shortcodes) ---- */
.mp-kc-gamme-equipments__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 800;
	color: #1a202c;
}

.mp-kc-gamme-equipments__desc {
	margin: 0 0 18px;
	color: #4a5568;
	line-height: 1.7;
}

.mp-kc-gamme-equipments__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.mp-kc-gamme-equipments__gallery-item {
	border-radius: 6px;
	overflow: hidden;
	background: #f0f2f1;
	aspect-ratio: 4/3;
}

.mp-kc-gamme-equipments__gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mp-kc-gamme-equipments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.mp-kc-gamme-equipments__item {
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	color: #1a202c;
}

.mp-kc-gamme-equipments__item strong { display: block; margin-bottom: 4px; }
.mp-kc-gamme-equipments__item span { color: #718096; font-size: 0.9rem; }

.mp-kc-tabs {
	margin: 40px 0;
}

.mp-kc-tabs__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 900;
	color: #1a202c;
	text-align: center;
}

.mp-kc-tabs__subtitle {
	margin: 0 auto 18px;
	max-width: 900px;
	color: #718096;
	text-align: center;
	line-height: 1.6;
}

.mp-kc-tabs__nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 18px;
}

.mp-kc-tabs__btn {
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 10px 16px;
	border-bottom: 3px solid transparent;
	color: #718096;
	font-weight: 700;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.mp-kc-tabs__btn.is-active {
	color: #e02623;
	border-bottom-color: #e02623;
	background: rgba(224, 38, 35, 0.05);
}

.mp-kc-tabs__panel {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	padding: 18px;
	background: #fff;
}

.mp-kc-tabs__image {
	display: block;
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 0 0 14px;
}

.mp-kc-tabs__content {
	color: #4a5568;
	line-height: 1.7;
}

/* Intro (Image + Texte) */
.mp-home-intro {
	padding: 4rem 0;
	background: var(--mp-color-bg);
}
.mp-home-intro__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}
@media (min-width: 782px) {
	.mp-home-intro__inner { grid-template-columns: 1fr 1fr; }
}
.mp-home-intro__media { order: 0; }
.mp-home-intro__placeholder {
	aspect-ratio: 4/3;
	background: var(--mp-color-bg-alt);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mp-color-text-light);
	font-size: 0.9rem;
}
.mp-home-intro__content { order: 1; }
.mp-home-intro__title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
}
.mp-home-intro__text {
	margin: 0 0 1.5rem;
	line-height: 1.7;
	color: var(--mp-color-text-light);
}

/* Steps */
.mp-home-steps {
	padding: 4rem 0;
	background: var(--mp-color-bg-alt);
}
.mp-home-steps__title {
	text-align: center;
	margin: 0 0 2.5rem;
	font-size: 1.75rem;
}
.mp-home-steps__grid {
	display: grid;
	gap: 2rem;
}
@media (min-width: 600px) {
	.mp-home-steps__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.mp-home-steps__grid { grid-template-columns: repeat(4, 1fr); }
}
.mp-home-step {
	text-align: center;
	padding: 1.5rem 1rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mp-home-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 1rem;
	background: var(--mp-color-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
	border-radius: 50%;
}
.mp-home-step__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}
.mp-home-step p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--mp-color-text-light);
}

/* CTA */
.mp-home-cta {
	padding: 4rem 1.5rem;
	text-align: center;
	background: var(--mp-color-primary);
	color: #fff;
}
.mp-home-cta__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}
.mp-home-cta__text {
	margin: 0 0 1.5rem;
	opacity: 0.95;
}
.mp-home-cta .mp-button--light:hover { color: var(--mp-color-primary); }

/* ---- Home modern resemble + carousel ---- */
.mp-home-modern-ressemble {
	padding: 70px 0 0;
	background: #fff;
}
.mp-home-modern-ressemble__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 52px;
	align-items: start;
}
.mp-home-modern-ressemble__carousel {
	position: relative;
}
.mp-home-modern-ressemble__slides {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 2px;
	overflow: hidden;
	background: #d6dbe0;
}
.mp-home-modern-ressemble__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}
.mp-home-modern-ressemble__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.mp-home-modern-ressemble__slide picture,
.mp-home-modern-ressemble__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mp-home-modern-ressemble__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}
.mp-home-modern-ressemble__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 0;
	background: #b6bdc5;
	cursor: pointer;
	padding: 0;
}
.mp-home-modern-ressemble__dot.is-active {
	background: #6b7682;
}
.mp-home-modern-ressemble__content h2 {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.6vw, 32px);
	line-height: 1.08;
	color: #4f5e67;
	font-weight: 700;
}
.mp-home-modern-ressemble__content p {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.4;
	color: #4f565c;
}
.mp-home-modern-ressemble__features {
	list-style: none;
	padding: 8px 0 0;
	margin: 0 0 24px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
}
.mp-home-modern-ressemble__features li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	font-weight: 600;
	color: #31383d;
}
.mp-home-modern-ressemble__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	border-radius: 4px;
	background: #e02623;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: 17px;
}
.mp-home-modern-ressemble__cta:hover {
	background: #c6201d;
	color: #fff;
}
.mp-home-modern-ressemble__stats {
	margin-top: 42px;
	background: #f3f4f5;
	border-top: 1px solid #d9dee2;
}
.mp-home-modern-ressemble__stats-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	padding: 34px 0 30px;
}

/* Carousel slide overlay (per-slide title/subtitle + CTA) */
.mp-home-modern-ressemble__slide-overlay {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	max-width: 380px;
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 12px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.06);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.mp-home-modern-ressemble__slide-title {
	margin: 0;
	font-weight: 900;
	font-size: 18px;
	line-height: 1.15;
	color: #27323a;
}
.mp-home-modern-ressemble__slide-subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	color: #4b5963;
}
.mp-home-modern-ressemble__slide-cta {
	align-self: flex-start;
	padding: 10px 14px;
	border-radius: 6px;
	background: #e02623;
	color: #fff;
	font-weight: 900;
	font-size: 13px;
	text-transform: none;
}
.mp-home-modern-ressemble__slide-cta:hover {
	background: #c21f1c;
	color: #fff;
}
.mp-home-modern-ressemble__stat {
	text-align: center;
}
.mp-home-modern-ressemble__stat-icon {
	width: 58px;
	height: 58px;
	object-fit: contain;
	display: block;
	margin: 0 auto 10px;
}
.mp-home-modern-ressemble__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 10px;
	flex: 0 0 28px;
}
.mp-home-modern-ressemble__icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}
.mp-home-modern-ressemble__stat span {
	display: block;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #d32521;
}
.mp-home-modern-ressemble__stat small {
	display: block;
	font-size: 18px;
	line-height: 1.25;
	color: #4e5a62;
}
@media (max-width: 1024px) {
	.mp-home-modern-ressemble__top { grid-template-columns: 1fr; gap: 30px; }
	.mp-home-modern-ressemble__content p { font-size: 18px; }
	.mp-home-modern-ressemble__stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mp-home-modern-ressemble { padding-top: 42px; }
	.mp-home-modern-ressemble__features { grid-template-columns: 1fr; }
	.mp-home-modern-ressemble__content h2 { font-size: 34px; }
	.mp-home-modern-ressemble__content p { font-size: 16px; }
	.mp-home-modern-ressemble__stat span { font-size: 22px; }
	.mp-home-modern-ressemble__stat small { font-size: 15px; }
	.mp-home-modern-ressemble__slide-overlay {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}

/* ---- Homepage Conseils d’experts (bloc magazine : 1 + 2×5) ---- */
.mp-home-advice-carousel {
	background: #fff;
}
.mp-home-advice-carousel .mp-container {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}
/* Si homepage.css n’est pas chargé : mêmes bases que .mp-hp-conseils */
.mp-home-advice-carousel.mp-hp-conseils {
	padding: 0 0 64px;
}
.mp-home-advice-carousel:not(.mp-hp-conseils) .mp-hp-conseils__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}
.mp-home-advice-carousel__ph {
	display: block;
	width: 100%;
	aspect-ratio: 720 / 450;
	background: linear-gradient(145deg, #eceff1 0%, #cfd8dc 100%);
}
.mp-home-advice-carousel__mini-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 72px;
	background: linear-gradient(145deg, #eceff1 0%, #cfd8dc 100%);
}
.mp-home-advice-carousel__empty {
	text-align: center;
	color: #757575;
	font-size: 15px;
	margin: 0;
	padding: 32px 16px;
}
.mp-home-advice-carousel__cta-btn {
	border-radius: 0 !important;
	background: #d32f2f !important;
	color: #fff !important;
	padding: 14px 32px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	letter-spacing: 0.02em;
	transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}
.mp-home-advice-carousel__cta-btn:hover {
	background: #b71c1c !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(211, 47, 47, 0.35);
}

@media (max-width: 768px) {
	.mp-home-advice-carousel.mp-hp-conseils .mp-hp-conseils__layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.mp-home-advice-carousel.mp-hp-conseils .mp-hp-conseils__rack {
		grid-template-columns: 1fr;
	}
	.mp-home-advice-carousel:not(.mp-hp-conseils) .mp-hp-conseils__layout {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 480px) {
	.mp-home-advice-carousel.mp-hp-conseils .mp-hp-conseils__mini-thumb {
		flex: 0 0 88px;
		width: 88px;
		height: 56px;
	}
	.mp-home-advice-carousel.mp-hp-conseils .mp-hp-conseils__mini {
		gap: 10px;
		padding: 12px 0;
	}
}

/* ========== Homepage 4-card row (satisfaction) — loaded here so JS+CSS always match ========== */
@keyframes mp-hp-sat-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* Animate the column itself (works with or without inner Group blocks) */
.mp-hp-sat-anim:not(.is-inview) .wp-block-columns > .wp-block-column {
	opacity: 0;
	transform: translateY(26px);
}
.mp-hp-sat-anim.is-inview .wp-block-columns > .wp-block-column:nth-child(1) {
	animation: mp-hp-sat-rise 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.05s;
}
.mp-hp-sat-anim.is-inview .wp-block-columns > .wp-block-column:nth-child(2) {
	animation: mp-hp-sat-rise 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.14s;
}
.mp-hp-sat-anim.is-inview .wp-block-columns > .wp-block-column:nth-child(3) {
	animation: mp-hp-sat-rise 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.23s;
}
.mp-hp-sat-anim.is-inview .wp-block-columns > .wp-block-column:nth-child(4) {
	animation: mp-hp-sat-rise 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.32s;
}
.mp-hp-satisfaction .mp-hp-satisfaction__intro,
.mp-hp-satisfaction .mp-hp-satisfaction__card,
.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column > .wp-block-group {
	transition:
		transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.32s ease;
}
.mp-hp-satisfaction .mp-hp-satisfaction__intro:hover,
.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column:first-child > .wp-block-group:hover {
	transform: translateY(-5px);
	box-shadow:
		0 22px 48px rgba(224, 38, 35, 0.28),
		0 2px 0 rgba(255, 255, 255, 0.12) inset;
}
.mp-hp-satisfaction .mp-hp-satisfaction__card:hover,
.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column:not(:first-child) > .wp-block-group:hover {
	transform: translateY(-6px);
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.11),
		0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.mp-hp-satisfaction .mp-hp-satisfaction__card .wp-block-image img,
.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column:not(:first-child) .wp-block-image img {
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mp-hp-satisfaction .mp-hp-satisfaction__card:hover .wp-block-image img,
.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column:not(:first-child) > .wp-block-group:hover .wp-block-image img {
	transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
	.mp-hp-sat-anim:not(.is-inview) .wp-block-columns > .wp-block-column,
	.mp-hp-sat-anim.is-inview .wp-block-columns > .wp-block-column {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
	.mp-hp-satisfaction .mp-hp-satisfaction__intro,
	.mp-hp-satisfaction .mp-hp-satisfaction__card,
	.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column > .wp-block-group {
		transition: none;
	}
	.mp-hp-satisfaction .mp-hp-satisfaction__intro:hover,
	.mp-hp-satisfaction .mp-hp-satisfaction__card:hover,
	.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column > .wp-block-group:hover {
		transform: none;
	}
	.mp-hp-satisfaction .mp-hp-satisfaction__card .wp-block-image img,
	.mp-hp-stats .wp-block-columns:has(> .wp-block-column:nth-child(4):last-child) .wp-block-image img {
		transition: none;
		transform: none;
	}
}
