/*
Theme Name: Mon Petit Permis
Theme URI: https://monpetitpermis.fr
Author: Mon Petit Permis
Author URI: https://monpetitpermis.fr
Description: Thème d'actualité sur le permis de conduire et la sécurité routière.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monpetitpermis
Tags: blog, news, block-patterns, full-site-editing, wide-blocks
*/

/* ============================================
   Supplementary styles (theme.json handles most)
   ============================================ */

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Reassurance bar animation */
.mpp-reassurance-bar {
	overflow: hidden;
	margin-top: 0 !important;
}

.mpp-hero-video {
	margin-bottom: 0 !important;
}

.mpp-hero-video + .mpp-reassurance-bar {
	margin-top: 0 !important;
}

.mpp-reassurance-bar .mpp-reassurance-track {
	display: flex;
	gap: 1.5rem;
	animation: mpp-scroll 25s linear infinite;
	width: max-content;
	white-space: nowrap;
}

.mpp-reassurance-bar .mpp-reassurance-track span {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

@keyframes mpp-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-25%); }
}

/* Card hover effects */
.mpp-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mpp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Category card overlay */
.mpp-category-card {
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.mpp-category-card:hover {
	transform: translateY(-4px);
}

.mpp-category-card a {
	color: inherit !important;
	text-decoration: none !important;
}

.mpp-category-card a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: pointer;
}

/* Post card image hover */
.mpp-post-card img {
	transition: transform 0.4s ease;
}

.mpp-post-card:hover img {
	transform: scale(1.05);
}

/* Force white text on all buttons (WP link element overrides button text color) */
.wp-block-button__link.has-accent-1-background-color,
.wp-block-button__link.has-accent-1-background-color:hover,
a.wp-block-button__link,
a.wp-element-button,
.wp-block-cover a.wp-block-button__link,
.wp-block-cover a.wp-element-button,
.mpp-hero a.wp-block-button__link,
.mpp-hero a.wp-element-button,
.wp-block-cover .wp-block-button .wp-block-button__link {
	color: #fff !important;
}

/* Button hover transition */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* ── Header ── */
.mpp-header-wrapper {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow 0.3s ease;
	margin-bottom: 0 !important;
}

/* Kill gap between header and body on all templates */
.mpp-header-wrapper + *,
.mpp-header-wrapper + .wp-block-group {
	margin-top: 0 !important;
}

/* Also kill WP root-level blockGap after the header part */
body > .wp-site-blocks > .wp-block-template-part + *,
body > .wp-site-blocks > .wp-block-template-part + .wp-block-group {
	margin-top: 0 !important;
}

.wp-site-blocks > * + * {
	margin-top: 0;
}

.mpp-header-wrapper.is-scrolled {
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.mpp-header-bar {
	max-width: 1200px;
	margin: 0 auto;
}

/* Nav link hover: underline slide-in */
.wp-block-navigation-item__content {
	position: relative;
	transition: color 0.2s ease;
	text-decoration: none !important;
}

.wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--accent-1, #4ECDC4);
	transition: width 0.25s ease;
}

.wp-block-navigation-item__content:hover::after {
	width: 100%;
}

/* Desktop dropdown */
.wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid #f0f0f0 !important;
	border-radius: 9px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
	padding: 0.5rem 0 !important;
	min-width: 220px !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.25rem !important;
	font-size: 0.875rem !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-1, #4ECDC4) !important;
	background: #f8f9fa !important;
}

/* CTA button style */
.mpp-header-cta .wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.mpp-header-cta .wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* ── Mobile menu — slide-in panel from right ── */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	left: auto !important;
	bottom: 0 !important;
	width: 300px !important;
	max-width: 85vw !important;
	height: 100dvh !important;
	max-height: 100dvh !important;
	background: #fff !important;
	z-index: 9999 !important;
	border-radius: 0 !important;
	padding: 5rem 1.5rem 2rem !important;
	display: flex !important;
	flex-direction: column !important;
	overflow-y: auto !important;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12) !important;
	animation: mpp-slide-in 0.25s ease-out;
}

@keyframes mpp-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	align-items: stretch !important;
	padding: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100% !important;
	border-bottom: 1px solid #f0f0f0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	padding: 0.875rem 0 !important;
	color: #1A1A1A !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-1, #4ECDC4) !important;
}

/* Close button */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute !important;
	top: 1rem !important;
	right: 1rem !important;
	z-index: 10000 !important;
	background: none !important;
	border: none !important;
	padding: 0.5rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 24px !important;
	height: 24px !important;
	fill: #1A1A1A !important;
}

/* Submenu in mobile panel */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	padding-left: 1rem !important;
	width: 100% !important;
	min-width: 0 !important;
	border-radius: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 0.9rem !important;
	font-weight: 500 !important;
	color: #686868 !important;
	padding: 0.6rem 0 !important;
}

/* ── Mobile header adjustments ── */
@media (max-width: 768px) {
	.mpp-header-cta {
		display: none !important;
	}

	.mpp-header-bar {
		padding-left: 1.25rem !important;
		padding-right: 1rem !important;
	}

	.mpp-nav-contact-link {
		display: list-item !important;
	}
}

/* Hide Contact nav link on desktop (shown as CTA button instead) */
@media (min-width: 769px) {
	.mpp-nav-contact-link {
		display: none !important;
	}
}

/* Hero video background */
.mpp-hero-video {
	position: relative;
	min-height: 65vh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.mpp-hero-video__bg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16:9 */
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 0;
}

.mpp-hero-video__bg iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.mpp-hero-video__overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.30);
	z-index: 1;
}

.mpp-hero-video__content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.mpp-hero-video__content h1 {
	color: #fff;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 0.5rem;
}

.mpp-hero-video__content p {
	color: var(--wp--preset--color--accent-6, #E8E8E3);
	font-size: 1.15rem;
	line-height: 1.5;
	margin: 0 0 1.5rem;
}

.mpp-hero-video__btn {
	display: inline-block;
	background: var(--wp--preset--color--accent-1, #4ECDC4);
	color: #fff;
	padding: 1rem 2.25rem;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.mpp-hero-video__btn:hover {
	background: var(--wp--preset--color--accent-2, #3BA99C);
	transform: translateY(-1px);
}

/* Legacy hero overlay */
.mpp-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Pagination styling */
.wp-block-query-pagination {
	gap: 0.5rem;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background-color: var(--wp--preset--color--accent-1);
	color: #fff;
}

/* Form styles */
.mpp-contact-form input,
.mpp-contact-form textarea,
.mpp-contact-form select {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid var(--wp--preset--color--accent-6, #E8E8E3);
	border-radius: 9px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.2s ease;
	background: #fff;
}

.mpp-contact-form input:focus,
.mpp-contact-form textarea:focus,
.mpp-contact-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1, #4ECDC4);
	box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.15);
}

.mpp-contact-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.mpp-contact-form .mpp-form-group {
	margin-bottom: 1.5rem;
}

.mpp-contact-form .mpp-form-success {
	background: #e8f8f5;
	border: 1px solid #4ECDC4;
	color: #1A1A1A;
	padding: 1rem;
	border-radius: 9px;
	margin-bottom: 1.5rem;
}

.mpp-contact-form .mpp-form-error {
	background: #fde8e8;
	border: 1px solid #e74c3c;
	color: #1A1A1A;
	padding: 1rem;
	border-radius: 9px;
	margin-bottom: 1.5rem;
}

/* Contact info card */
.mpp-contact-info a {
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	text-decoration: none;
	font-weight: 500;
}

.mpp-contact-info a:hover {
	text-decoration: underline;
}

@media (max-width: 781px) {
	.mpp-contact-info {
		margin-top: 2rem;
	}
}

/* Breadcrumb-style category tags on posts */
.mpp-category-badge {
	display: inline-block;
	background: var(--wp--preset--color--accent-3, #F5F5F0);
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
}

/* Author box in hero */
.mpp-author-box {
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	width: fit-content;
}

.mpp-author-box .wp-block-post-author-biography {
	display: flex;
	align-items: center;
}

.mpp-author-box .wp-block-post-author-biography .wp-block-post-author-biography__avatar img,
.mpp-author-box .wp-block-post-author__avatar img {
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	object-fit: cover;
}

/* Author bio text */
.mpp-author-bio-text {
	margin: 0;
}

.mpp-author-bio-text p {
	margin: 0;
}

/* Article H2 decorative icon */
.mpp-article-content h2 {
	position: relative;
	padding-left: 2rem;
}

.mpp-article-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.1em;
	height: 1.1em;
	background-color: var(--wp--preset--color--accent-1, #4ECDC4);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
	mask-size: contain;
	-webkit-mask-size: contain;
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
}

/* Summary box (résumé) */
.mpp-summary-box {
	background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
	border-radius: 9px;
	padding: 2.5rem !important;
}

.mpp-summary-box h3,
.mpp-summary-box h2 {
	font-weight: 800 !important;
	margin-bottom: 1.25rem !important;
}

.mpp-summary-box ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0 !important;
}

.mpp-summary-box ul li {
	position: relative;
	padding-left: 2.25rem;
	margin-bottom: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.mpp-summary-box ul li:last-child {
	margin-bottom: 0;
}

.mpp-summary-box ul li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	font-weight: 700;
	font-size: 1.1em;
}

/* Bon à savoir callout */
.mpp-callout-tip {
	position: relative;
	background: #fff;
	border-left: 4px solid var(--wp--preset--color--accent-1, #4ECDC4);
	border-radius: 0 9px 9px 0;
	padding: 2rem 2rem 2rem 2.5rem !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mpp-callout-tip::before {
	content: '\1F4A1';
	position: absolute;
	top: -14px;
	left: 16px;
	font-size: 1.5rem;
	background: #fff;
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mpp-callout-tip h4,
.mpp-callout-tip h3 {
	color: var(--wp--preset--color--accent-1, #4ECDC4) !important;
	font-weight: 700 !important;
	margin-bottom: 0.75rem !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.9rem !important;
}

.mpp-callout-tip p {
	line-height: 1.7;
}

/* Article content links */
.entry-content a,
.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.entry-content a:hover,
.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--accent-2, #3BA99C);
	text-decoration-color: var(--wp--preset--color--accent-2, #3BA99C);
}

/* Sidebar TOC */
.mpp-toc {
	position: sticky;
	top: 6rem;
	padding: 1.75rem;
	background: #fff;
	border-radius: 9px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mpp-toc__title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f0f0f0;
}

.mpp-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mpp-toc__list li {
	margin-bottom: 0;
}

.mpp-toc__list a {
	display: block;
	padding: 0.5rem 0 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--accent-4, #686868);
	text-decoration: none;
	border-left: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.mpp-toc__list a:hover {
	color: var(--wp--preset--color--contrast, #1A1A1A);
}

.mpp-toc__list a.is-active {
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	border-left-color: var(--wp--preset--color--accent-1, #4ECDC4);
	font-weight: 600;
}

/* Mobile TOC toggle button */
.mpp-toc-mobile-toggle {
	display: none;
}

/* Mobile TOC drawer */
.mpp-toc-mobile-drawer {
	display: none;
}

/* Mobile article hero: reduce padding & spacing */
@media (max-width: 768px) {
	.single .has-background[style*="padding-top:var(--wp--preset--spacing--70)"] {
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	.single .mpp-author-box {
		margin-top: 0.25rem !important;
	}

	.single .wp-block-spacer {
		height: var(--wp--preset--spacing--20) !important;
	}
}

/* Hide TOC sidebar on mobile */
@media (max-width: 768px) {
	.mpp-sidebar-toc {
		display: none !important;
	}

	.mpp-article-content {
		flex-basis: 100% !important;
	}

	.mpp-toc-mobile-toggle {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin: 0 auto;
		padding: 0.6rem 1.25rem;
		background: #fff;
		border: 1px solid #e8e8e3;
		border-radius: 50px;
		font-size: 0.8rem;
		font-weight: 600;
		color: var(--wp--preset--color--accent-4, #686868);
		cursor: pointer;
		transition: border-color 0.2s ease, color 0.2s ease;
	}

	.mpp-toc-mobile-toggle:hover {
		border-color: var(--wp--preset--color--accent-1, #4ECDC4);
		color: var(--wp--preset--color--accent-1, #4ECDC4);
	}

	.mpp-toc-mobile-toggle svg {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
	}

	.mpp-toc-mobile-drawer {
		display: none;
		background: #fff;
		border-radius: 9px;
		border: 1px solid #e8e8e3;
		padding: 1.25rem 1.5rem;
		margin: 0.75rem 0 0;
	}

	.mpp-toc-mobile-drawer.is-open {
		display: block;
	}

	.mpp-toc-mobile-drawer ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mpp-toc-mobile-drawer li {
		margin-bottom: 0;
	}

	.mpp-toc-mobile-drawer a {
		display: block;
		padding: 0.5rem 0;
		font-size: 0.875rem;
		font-weight: 500;
		color: var(--wp--preset--color--accent-4, #686868);
		text-decoration: none;
		border-bottom: 1px solid #f5f5f5;
		transition: color 0.2s ease;
	}

	.mpp-toc-mobile-drawer li:last-child a {
		border-bottom: none;
	}

	.mpp-toc-mobile-drawer a:hover,
	.mpp-toc-mobile-drawer a.is-active {
		color: var(--wp--preset--color--accent-1, #4ECDC4);
	}
}

/* Article tables */
.mpp-article-content table,
.wp-block-post-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 9px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin: 2rem 0;
}

.mpp-article-content table thead,
.wp-block-post-content table thead {
	background: var(--wp--preset--color--accent-1, #4ECDC4);
}

.mpp-article-content table thead th,
.wp-block-post-content table thead th {
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 1rem 1.25rem;
	text-align: left;
	border: none;
}

.mpp-article-content table tbody tr,
.wp-block-post-content table tbody tr {
	transition: background-color 0.2s ease;
}

.mpp-article-content table tbody tr:nth-child(even),
.wp-block-post-content table tbody tr:nth-child(even) {
	background: #f8f9fa;
}

.mpp-article-content table tbody tr:hover,
.wp-block-post-content table tbody tr:hover {
	background: rgba(78, 205, 196, 0.08);
}

.mpp-article-content table tbody td,
.wp-block-post-content table tbody td {
	padding: 0.875rem 1.25rem;
	font-size: 0.95rem;
	border: none;
	border-bottom: 1px solid #f0f0f0;
}

.mpp-article-content table tbody tr:last-child td,
.wp-block-post-content table tbody tr:last-child td {
	border-bottom: none;
}

@media (max-width: 768px) {
	.mpp-article-content table,
	.wp-block-post-content table {
		font-size: 0.85rem;
	}

	.mpp-article-content table thead th,
	.wp-block-post-content table thead th,
	.mpp-article-content table tbody td,
	.wp-block-post-content table tbody td {
		padding: 0.65rem 0.75rem;
	}
}

/* ── Encart Attention (warning callout) ── */
.mpp-callout-warning {
	position: relative;
	background: #fff;
	border-left: 4px solid #e74c3c;
	border-radius: 0 9px 9px 0;
	padding: 2rem 2rem 2rem 2.5rem !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mpp-callout-warning::before {
	content: '\26A0';
	position: absolute;
	top: -14px;
	left: 16px;
	font-size: 1.5rem;
	background: #fff;
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mpp-callout-warning h4,
.mpp-callout-warning h3 {
	color: #e74c3c !important;
	font-weight: 700 !important;
	margin-bottom: 0.75rem !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.9rem !important;
}

.mpp-callout-warning p {
	line-height: 1.7;
}

.mpp-callout-warning ul {
	margin: 0.75rem 0 0 !important;
	padding-left: 1.25rem !important;
}

.mpp-callout-warning ul li {
	margin-bottom: 0.4rem;
	line-height: 1.6;
}

/* ── Bloc En chiffres ── */
.mpp-stats-box {
	display: flex;
	gap: 2rem;
	justify-content: center;
	flex-wrap: wrap;
	padding: 2.5rem 2rem !important;
	background: var(--wp--preset--color--accent-3, #F5F5F0);
	border-radius: 9px;
}

.mpp-stat-item {
	text-align: center;
	flex: 1;
	min-width: 140px;
}

.mpp-stat-number {
	display: block;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--wp--preset--color--accent-1, #4ECDC4);
	line-height: 1.1;
}

.mpp-stat-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-4, #686868);
	margin-top: 0.5rem;
}

@media (max-width: 480px) {
	.mpp-stats-box {
		gap: 1.25rem;
		padding: 1.5rem 1rem !important;
	}

	.mpp-stat-item {
		min-width: 100px;
	}
}

/* ── FAQ Accordéon ── */
.mpp-faq {
	border-top: 2px solid #f0f0f0;
	padding-top: 2rem;
	margin-top: 2.5rem;
}

.mpp-faq > h2 {
	margin-bottom: 1.25rem;
}

/* FAQ items — wp:details native blocks */
.mpp-faq .wp-block-details {
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
}

.mpp-faq .wp-block-details:last-of-type {
	border-bottom: none;
}

.mpp-faq .wp-block-details summary {
	padding: 1.25rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast, #1A1A1A);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transition: color 0.2s ease;
}

.mpp-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.mpp-faq .wp-block-details summary::after {
	content: '';
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--accent-1, #4ECDC4);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	mask-size: contain;
	-webkit-mask-size: contain;
	transition: transform 0.3s ease;
}

.mpp-faq .wp-block-details[open] summary::after {
	transform: rotate(180deg);
}

.mpp-faq .wp-block-details summary:hover {
	color: var(--wp--preset--color--accent-1, #4ECDC4);
}

.mpp-faq .wp-block-details p {
	padding: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0;
}

/* Article H2 — no chevron inside special blocks */
.mpp-faq h2::before,
.mpp-stats-box h2::before,
.mpp-callout-warning h2::before,
.mpp-callout-warning h4::before,
.mpp-callout-warning h3::before {
	display: none;
}

.mpp-faq h2,
.mpp-callout-warning h4,
.mpp-callout-warning h3 {
	padding-left: 0 !important;
}

/* 404 page */
.mpp-404 {
	text-align: center;
	padding: 4rem 0;
}

/* Search highlight */
.search-highlight {
	background: rgba(78, 205, 196, 0.2);
	padding: 0.125rem 0.25rem;
	border-radius: 2px;
}
