/*
Theme Name:   Maître de ta santé — Child
Theme URI:    https://m2tasante.com/
Description:  Thème enfant de Twenty Twenty-Five pour Maître de ta santé. Contient tout le design personnalisé (couleurs, typographie, mise en page, header). Conçu pour préserver les personnalisations lors des mises à jour du thème parent.
Author:       M2TaSante
Template:     twentytwentyfive
Version:      1.2.0
Text Domain:  m2tasante-child
*/

/* =========================================================
   Maître de ta santé — finitions design
   (Les couleurs, polices et espacements sont dans theme.json.
    Ici on gère les comportements et détails visuels.)
   ========================================================= */

:root {
	--m2ts-shadow-sm: 0 1px 2px rgba(17, 44, 38, 0.06), 0 2px 8px rgba(17, 44, 38, 0.06);
	--m2ts-shadow-md: 0 6px 24px rgba(17, 44, 38, 0.10);
	--m2ts-transition: 0.22s ease;
}

/* ---------- En-tête collant et net au scroll ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(251, 250, 247, 0.92);
	border-bottom: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	backdrop-filter: saturate(140%) blur(8px);
	transition: box-shadow var(--m2ts-transition);
}
.wp-site-blocks > header.wp-block-template-part:hover {
	box-shadow: var(--m2ts-shadow-sm);
}

/* Logo : taille maîtrisée et nette (logo horizontal ~6.8:1) */
header .wp-block-site-logo img {
	height: 42px !important;
	max-height: 42px;
	width: auto !important;
	max-width: none;
}

/* Navigation : liens lisibles, soulignement animé au survol */
header .wp-block-navigation a {
	text-decoration: none;
	font-weight: 600;
	background-image: linear-gradient(var(--wp--preset--color--accent-1, #0e8c7f), var(--wp--preset--color--accent-1, #0e8c7f));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size var(--m2ts-transition), color var(--m2ts-transition);
	padding-bottom: 2px;
}
header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	background-size: 100% 2px;
}

/* ---------- Lisibilité des articles ---------- */
.wp-block-post-content p,
.entry-content p {
	max-width: 70ch;
}
/* Espacement des sous-titres : uniquement dans les articles (pas l'accueil) */
.single .wp-block-post-content :is(h2, h3) {
	margin-top: 2em;
}

/* Images & vignettes arrondies, ombre douce */
.wp-block-post-featured-image img,
.wp-block-image img {
	border-radius: 14px;
}

/* Citations soignées */
.wp-block-quote {
	border-left: 4px solid var(--wp--preset--color--accent-1, #0e8c7f);
	padding-left: 1.25rem;
	font-style: normal;
	color: var(--wp--preset--color--accent-4, #5a746e);
}

/* ---------- Grille « derniers articles » en cartes ---------- */
/* Bloc Latest Posts (utilisé sur l'accueil) */
.wp-block-latest-posts.is-grid {
	gap: 1.75rem;
}
.wp-block-latest-posts.is-grid > li {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	border-radius: 16px;
	overflow: hidden;
	padding: 0 0 1.25rem;
	box-shadow: var(--m2ts-shadow-sm);
	transition: transform var(--m2ts-transition), box-shadow var(--m2ts-transition);
}
.wp-block-latest-posts.is-grid > li:hover {
	transform: translateY(-4px);
	box-shadow: var(--m2ts-shadow-md);
}
.wp-block-latest-posts__featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0;
}
.wp-block-latest-posts.is-grid > li > a:first-child {
	display: block;
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.3;
	padding: 1.1rem 1.25rem 0.4rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #112c26);
}
.wp-block-latest-posts__post-date {
	padding: 0 1.25rem;
	color: var(--wp--preset--color--accent-4, #5a746e);
	font-size: 0.85rem;
}

/* Grille du Query Loop (pour la future page Blog) */
.wp-block-query .wp-block-post-template.is-layout-grid {
	gap: 1.75rem;
}
.wp-block-query li.wp-block-post {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--m2ts-shadow-sm);
	transition: transform var(--m2ts-transition), box-shadow var(--m2ts-transition);
}
.wp-block-query li.wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--m2ts-shadow-md);
}
.wp-block-query li.wp-block-post .wp-block-post-featured-image img {
	border-radius: 0;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.wp-block-query li.wp-block-post :is(.wp-block-post-title, .wp-block-post-excerpt, .wp-block-post-date) {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.wp-block-query li.wp-block-post .wp-block-post-title {
	margin-top: 1rem;
}

/* Étiquettes catégorie → outline carré, cohérent avec les boutons */
.wp-block-post-terms a {
	display: inline-block;
	background: #fff;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.22rem 0.6rem;
	border-radius: 0;
	margin: 0 6px 6px 0;
}
.wp-block-post-terms__separator { display: none; }
.m2ts-cat-pill { border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f) !important; }

/* ---------- Boutons : transition douce ---------- */
.wp-block-button__link {
	transition: background-color var(--m2ts-transition), transform var(--m2ts-transition);
	box-shadow: var(--m2ts-shadow-sm);
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* ---------- Pied de page ---------- */
.wp-site-blocks > footer.wp-block-template-part {
	background: var(--wp--preset--color--base-2, #f4faf8);
	border-top: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
}
footer .wp-block-navigation a {
	text-decoration: none;
}
footer .wp-block-navigation a:hover {
	text-decoration: underline;
}

/* ---------- Page d'accueil : espacements resserrés ---------- */
/* Le gabarit "page" ajoute une marge haute + un padding autour du titre
   masqué sur l'accueil. On réduit ce vide en haut. */
/* Les espacements du gabarit sont en style inline (priorité haute) :
   on les force avec !important pour que le hero touche l'en-tête. */
.home main {
	margin-top: 0 !important;
}
.home main > .wp-block-group:first-child {
	padding-top: 0 !important;
}
/* Marge résiduelle (blockGap) au-dessus du 1er élément visible. */
.home .entry-content > :first-child,
.home .entry-content > .m2ts-hero {
	margin-top: 0 !important;
}
/* Titre de section "Nos derniers articles" rapproché de l'accroche. */
.home .wp-block-post-content > .wp-block-heading {
	margin-top: 0.5em;
}

/* ---------- Cartes de catégories (accueil) ---------- */
.m2ts-cat-card {
	height: 100%;
	transition: transform var(--m2ts-transition), box-shadow var(--m2ts-transition);
}
.m2ts-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--m2ts-shadow-md);
}
.m2ts-cat-card a {
	text-decoration: none;
	font-weight: 700;
}

/* ---------- Bande confiance (accueil) ---------- */
.m2ts-trust .wp-block-column {
	text-align: center;
}

/* ---------- Hero : boutons lisibles sur fond teal ---------- */
.m2ts-hero .wp-block-button__link {
	box-shadow: none;
}

/* ---------- Barre de partage social (articles) ---------- */
.m2ts-share {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}
.m2ts-share__label {
	font-weight: 700;
	color: var(--wp--preset--color--contrast, #112c26);
}
.m2ts-share__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.m2ts-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	background: #fff;
	color: var(--wp--preset--color--accent-4, #5a746e);
	cursor: pointer;
	padding: 0;
	transition: transform var(--m2ts-transition), background-color var(--m2ts-transition), color var(--m2ts-transition), border-color var(--m2ts-transition);
}
.m2ts-share__btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.m2ts-share__btn:hover {
	transform: translateY(-2px);
	color: #fff;
}
.m2ts-share__btn.is-facebook:hover { background: #1877f2; border-color: #1877f2; }
.m2ts-share__btn.is-x:hover        { background: #000;     border-color: #000; }
.m2ts-share__btn.is-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.m2ts-share__btn.is-whatsapp:hover { background: #25d366; border-color: #25d366; }
.m2ts-share__btn.is-email:hover    { background: var(--wp--preset--color--accent-1, #0e8c7f); border-color: var(--wp--preset--color--accent-1, #0e8c7f); }
.m2ts-share__btn.is-copy:hover     { background: var(--wp--preset--color--accent-2, #0a6a60); border-color: var(--wp--preset--color--accent-2, #0a6a60); }
.m2ts-share__copied {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--wp--preset--color--contrast, #112c26);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--m2ts-transition);
}
.m2ts-share__btn.is-copied .m2ts-share__copied {
	opacity: 1;
}

/* ---------- Articles similaires (maillage interne) ---------- */
.m2ts-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
}
.m2ts-related__heading {
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}
.m2ts-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.m2ts-related__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #dce9e5);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #112c26);
	box-shadow: var(--m2ts-shadow-sm);
	transition: transform var(--m2ts-transition), box-shadow var(--m2ts-transition);
}
.m2ts-related__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--m2ts-shadow-md);
}
.m2ts-related__thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.m2ts-related__body {
	padding: 0.9rem 1rem 1.1rem;
	display: block;
}
.m2ts-related__cat {
	display: inline-block;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.45rem;
}
.m2ts-related__title {
	display: block;
	font-family: 'Fraunces', serif;
	font-weight: 500;
	font-size: 1.05rem;
	line-height: 1.3;
}
@media (max-width: 781px) {
	.m2ts-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
	.m2ts-related__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SIGNATURE VISUELLE « éditorial wellness »
   ========================================================= */

/* ---------- Trait ECG (battement de cœur) sous les titres de sections ---------- */
.home main h2.has-text-align-center::after {
	content: "";
	display: block;
	width: 130px;
	height: 24px;
	margin: 0.65rem auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 24'%3E%3Cpath d='M2 12h40l7-8 9 16 7-12 5 4h58' fill='none' stroke='%230e8c7f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Hero : filigrane ECG + profondeur ---------- */
.m2ts-hero {
	position: relative;
	overflow: hidden;
}
.m2ts-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.10;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 40'%3E%3Cpath d='M0 20h100l14-14 16 28 14-22 10 8h206' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 360px 40px repeat-x;
}
.m2ts-hero > * {
	position: relative;
	z-index: 1;
}
/* Le grand titre du hero en serif éclatant */
.m2ts-hero h1 {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
}

/* ---------- Boutons pilule (signature douce) ---------- */
.wp-block-button__link {
	border-radius: 999px !important;
}

/* ---------- Lettrine éditoriale sur les articles (billets uniquement) ---------- */
.single-post .wp-block-post-content > p:first-of-type::first-letter {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 3.4em;
	line-height: 0.8;
	float: left;
	padding: 0.08em 0.14em 0 0;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
}

/* ---------- Citations façon magazine ---------- */
.wp-block-quote {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.15em;
	font-style: italic;
}

/* ---------- Zoom doux des vignettes au survol ---------- */
.wp-block-query li.wp-block-post .wp-block-post-featured-image,
.m2ts-related__thumb,
.wp-block-latest-posts__featured-image {
	overflow: hidden;
}
.wp-block-query li.wp-block-post .wp-block-post-featured-image img,
.m2ts-related__thumb img,
.wp-block-latest-posts__featured-image img {
	transition: transform 0.45s ease;
}
.wp-block-query li.wp-block-post:hover .wp-block-post-featured-image img,
.m2ts-related__card:hover .m2ts-related__thumb img {
	transform: scale(1.05);
}

/* ---------- Pied de page sombre (vert profond, écho à la bannière) ---------- */
.wp-site-blocks > footer.wp-block-template-part {
	background: #0f2e28;
	border-top: none;
}
.wp-site-blocks > footer h3 {
	color: #ffffff;
}
.wp-site-blocks > footer p {
	color: #cfe0db;
}
.wp-site-blocks > footer .has-accent-4-color {
	color: #9db8b1 !important;
}
.wp-site-blocks > footer a {
	color: #7fd1c5;
	text-decoration: none;
}
.wp-site-blocks > footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}
.wp-site-blocks > footer .wp-block-group[style*="border-top"] {
	border-top-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- Bloc newsletter en fin d'article ---------- */
.m2ts-newsletter {
	margin-top: 2.75rem;
}
/* Bouton MailPoet aux couleurs de la marque (pilule teal) */
.mailpoet_form input.mailpoet_submit {
	background-color: var(--wp--preset--color--accent-1, #0e8c7f) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	transition: background-color var(--m2ts-transition), transform var(--m2ts-transition);
}
.mailpoet_form input.mailpoet_submit:hover {
	background-color: var(--wp--preset--color--accent-2, #0a6a60) !important;
	transform: translateY(-1px);
}
.mailpoet_form input.mailpoet_text,
.mailpoet_form input.mailpoet_email {
	border-radius: 8px !important;
	padding: 9px 14px !important;
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
}
.mailpoet_form .mailpoet_paragraph {
	margin-bottom: 0.6rem !important;
}
.mailpoet_form input.mailpoet_submit {
	padding: 11px 22px !important;
	font-size: 0.95rem !important;
}
/* Newsletter resserrée : champ e-mail compact + bouton à la taille du texte, centrés */
.mailpoet_form .mailpoet_paragraph { text-align: center !important; }
.mailpoet_form input.mailpoet_text,
.mailpoet_form input.mailpoet_email {
	max-width: 300px !important;
	width: 100% !important;
	margin: 0 auto !important;
	display: inline-block !important;
}
.mailpoet_form input.mailpoet_submit {
	width: auto !important;
	display: inline-block !important;
}

/* ---------- Barre de progression de lecture (articles) ---------- */
#m2ts-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	z-index: 999;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-1, #0e8c7f), var(--wp--preset--color--accent-6, #e0a33e));
	transition: width 0.08s linear;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	header .wp-block-site-logo img { max-height: 40px; }
	.wp-block-latest-posts__featured-image img,
	.wp-block-query li.wp-block-post .wp-block-post-featured-image img { height: 170px; }
}

/* =================================================================
   REFONTE PREMIUM WELLNESS (2026) — kickers, hero
   ================================================================= */
/* Kicker / eyebrow : capitales espacées au-dessus des titres (signal éditorial) */
.m2ts-kicker {
	font-family: 'Manrope', sans-serif;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--accent-1, #0e8c7f) !important;
	margin-bottom: 0.5rem !important;
}
.m2ts-hero .m2ts-kicker { color: #9fe1cb !important; }

/* Hero premium : fond riche plein cadre + voile sombre pour la lisibilité
   (une vraie photo lifestyle viendra remplacer/compléter le dégradé) */
.m2ts-hero {
	background:
		linear-gradient(165deg, rgba(8, 40, 33, 0.60), rgba(8, 40, 33, 0.82)),
		url('assets/hero-aliments.jpg') !important;
	background-size: cover !important;
	background-position: center !important;
}
.m2ts-hero .wp-block-heading {
	font-size: clamp(2.4rem, 5.2vw, 3.6rem) !important;
	line-height: 1.1 !important;
	letter-spacing: -0.01em;
}
.m2ts-hero .wp-block-button__link {
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.m2ts-hero .wp-block-button__link:hover { transform: translateY(-1px); }

/* Cartes éditoriales pour les grilles d'articles (accueil, page Articles) */
.wp-block-post-template.is-layout-grid { gap: 24px !important; }
.wp-block-post-template li.wp-block-post {
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	list-style: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-post-template li.wp-block-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 46, 40, 0.1);
}
.wp-block-post-template li.wp-block-post .wp-block-post-featured-image { margin: 0; }
.wp-block-post-template li.wp-block-post .wp-block-post-featured-image img { width: 100%; display: block; }
.wp-block-post-template li.wp-block-post > :not(.wp-block-post-featured-image) {
	padding-left: 18px;
	padding-right: 18px;
}
.wp-block-post-template li.wp-block-post .wp-block-post-terms {
	margin-top: 16px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.wp-block-post-template li.wp-block-post .wp-block-post-terms a {
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	text-decoration: none;
}
.wp-block-post-template li.wp-block-post .wp-block-post-title {
	font-family: 'Fraunces', serif;
	font-weight: 500;
	line-height: 1.25;
	margin: 8px 0;
}
.wp-block-post-template li.wp-block-post .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #0f2e28);
}
.wp-block-post-template li.wp-block-post .wp-block-post-excerpt { font-size: 0.9rem; }
.wp-block-post-template li.wp-block-post .wp-block-post-excerpt p {
	color: var(--wp--preset--color--accent-4, #5b6b66);
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wp-block-post-template li.wp-block-post .wp-block-post-date {
	margin-top: auto;
	padding-top: 12px;
	padding-bottom: 16px;
	font-size: 0.78rem;
	color: var(--wp--preset--color--accent-4, #5b6b66);
}

/* ---------- Lecture d'article premium ---------- */
.single-post .wp-block-post-title {
	font-size: clamp(2rem, 4.6vw, 3rem) !important;
	line-height: 1.16;
	letter-spacing: -0.01em;
	text-align: center;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}
/* Corps de texte confortable (scopé aux blocs de prose, pas aux composants ajoutés) */
.single-post .wp-block-post-content > p,
.single-post .wp-block-post-content > ul,
.single-post .wp-block-post-content > ol {
	font-size: 1.13rem;
	line-height: 1.8;
}
.single-post .wp-block-post-content > p { margin: 0 0 1.4rem; }
.single-post .wp-block-post-content > ul,
.single-post .wp-block-post-content > ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.single-post .wp-block-post-content > ul li,
.single-post .wp-block-post-content > ol li { margin-bottom: 0.5rem; }
/* Rythme des sous-titres */
.single-post .wp-block-post-content > h2.wp-block-heading {
	font-size: clamp(1.5rem, 3vw, 1.95rem) !important;
	line-height: 1.25;
	margin-top: 2.6rem;
	margin-bottom: 0.7rem;
}
.single-post .wp-block-post-content > h3.wp-block-heading {
	font-size: 1.3rem !important;
	margin-top: 1.8rem;
	margin-bottom: 0.5rem;
}
/* Liens de prose : teal souligné */
.single-post .wp-block-post-content > p a:where(:not(.wp-element-button)),
.single-post .wp-block-post-content > ul a,
.single-post .wp-block-post-content > ol a {
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* Citations élégantes (serif italique, filet teal) */
.single-post .wp-block-post-content > blockquote {
	border-left: 3px solid var(--wp--preset--color--accent-1, #0e8c7f);
	padding: 0.3rem 0 0.3rem 1.4rem;
	margin: 2rem auto;
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-size: 1.25rem;
	color: #2a3f3a;
}
.single-post .wp-block-post-content > figure img,
.single-post .wp-block-post-content > .wp-block-image img { border-radius: 12px; }

/* ---------- Espace membres : hub + cartes d'accès ---------- */
.m2ts-member-hub { max-width: 760px; margin: 0 auto; }
.m2ts-member-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin: 20px 0;
}
.m2ts-member-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	border-radius: 14px;
	padding: 18px 20px;
	line-height: 1.5;
}
.m2ts-member-card strong { font-family: 'Fraunces', serif; font-weight: 500; }
.m2ts-member-card a {
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	text-decoration: none;
}
.m2ts-member-card a:hover { text-decoration: underline; }

/* ---- Panneau « compte » (Simple Membership) : colonne austère → grille de mini-cartes ---- */
.m2ts-member-hub .swpm-login-widget-logged {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}
.m2ts-member-hub .swpm-logged-username,
.m2ts-member-hub .swpm-logged-status,
.m2ts-member-hub .swpm-logged-membership,
.m2ts-member-hub .swpm-logged-expiry,
.m2ts-member-hub .swpm-logged-subs-status {
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	padding: 12px 14px;
}
.m2ts-member-hub .swpm-logged-subs-status { grid-column: 1 / -1; }
.m2ts-member-hub .swpm-logged-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	margin-bottom: 4px;
}
.m2ts-member-hub .swpm-logged-value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast, #0f2e28);
}
.m2ts-member-hub .swpm-margin-bottom-10 { display: none; }
.m2ts-member-hub .swpm-edit-profile-link a,
.m2ts-member-hub .swpm-logged-logout-link a {
	display: block;
	text-align: center;
	padding: 11px 14px;
	background: #fff;
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.m2ts-member-hub .swpm-edit-profile-link a:hover,
.m2ts-member-hub .swpm-logged-logout-link a:hover {
	background: var(--wp--preset--color--accent-3, #e1f3ec);
	text-decoration: none;
}
@media (max-width: 480px) {
	.m2ts-member-hub .swpm-login-widget-logged { grid-template-columns: 1fr; }
}

/* ---------- Formulaires Simple Membership : connexion / inscription / profil / réinitialisation ---------- */
.swpm-login-widget-form,
.swpm-form,
.swpm-pw-reset-widget-form,
.swpm-profile-form {
	max-width: 388px;
	margin: 1.5rem auto;
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	border-radius: 16px;
	padding: 28px 26px;
	box-shadow: 0 10px 30px rgba(15, 46, 40, 0.06);
}
/* Champs des formulaires SWPM fixés à 330px (demande user) */
.swpm-label,
.swpm-form-label-wrap label,
.swpm-username-label,
.swpm-password-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast, #0f2e28);
	margin-bottom: 6px;
}
.swpm-text-field,
.swpm-form-field,
.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"],
.swpm-form input[type="text"],
.swpm-form input[type="email"],
.swpm-form input[type="password"] {
	width: 330px !important;
	max-width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font-size: 1rem;
	border: 1px solid var(--wp--preset--color--accent-5, #d9e6e1);
	border-radius: 10px;
	background: #fcfdfc;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.swpm-text-field:focus,
.swpm-form-field:focus,
.swpm-login-widget-form input:focus,
.swpm-form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1, #0e8c7f);
	box-shadow: 0 0 0 3px rgba(14, 140, 127, 0.15);
}
.swpm-form-row { margin-bottom: 16px; }
.swpm-username-input,
.swpm-password-input { margin-bottom: 14px; }
.swpm-login-submit,
.swpm-registration-submit-section,
.swpm-form-row.swpm-submit-section { text-align: center; }
.swpm-login-form-submit,
.swpm-registration-submit-button,
input.swpm-submit-btn-default-style {
	display: inline-block;
	width: auto;
	min-width: 150px;
	background: var(--wp--preset--color--accent-1, #0e8c7f) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 12px 28px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.swpm-login-form-submit:hover,
.swpm-registration-submit-button:hover,
input.swpm-submit-btn-default-style:hover {
	background: var(--wp--preset--color--accent-2, #0a6a60) !important;
	transform: translateY(-1px);
}
.swpm-login-form-pw-reset-link,
.swpm-login-form-register-link,
.swpm-forgot-pass-link a {
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	text-decoration: none;
	font-size: 0.9rem;
}
.swpm-login-form-pw-reset-link:hover,
.swpm-forgot-pass-link a:hover { text-decoration: underline; }
.swpm-remember-me { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; }
.swpm-rememberme-label { margin: 0 !important; font-weight: 400; font-size: 0.9rem; }
.swpm-remember-checkbox { width: auto !important; }
.swpm-before-login-submit-section,
.swpm-forgot-pass-link { margin-top: 12px; }
.swpm-form-membership-level-value { font-weight: 600; color: var(--wp--preset--color--accent-1, #0e8c7f); }

/* ---------- Profondeur : pages espace membres / connexion / inscription / réservation ---------- */
/* Fond légèrement teinté (mint) pour casser le « tout blanc » et faire ressortir les cartes */
body.page-id-113, body.page-id-114, body.page-id-115, body.page-id-116,
body.page-id-117, body.page-id-118, body.page-id-128, body.page-id-141 {
	background: linear-gradient(170deg, #e6f3ed 0%, #f4faf7 45%, #e9f4ef 100%) !important;
	background-attachment: fixed !important;
}
/* Ombre plus présente sur les cartes et formulaires = relief */
.m2ts-member-card,
.m2ts-svc__card,
.swpm-login-widget-form,
.swpm-form,
.swpm-pw-reset-widget-form,
.swpm-profile-form,
.wp-block-post-template li.wp-block-post {
	box-shadow: 0 10px 28px rgba(15, 46, 40, 0.08), 0 2px 6px rgba(15, 46, 40, 0.04);
}

/* =================================================================
   BOUTONS OUTLINE CARRÉS + HEADER COMPTE + PILULES CARRÉES (2026)
   ================================================================= */
/* Header : zone compte (Se connecter / Rejoindre, ou Espace membres / Déconnexion) */
.m2ts-hdr-account { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.m2ts-hdr-link { font-weight: 600; font-size: 0.95rem; color: var(--wp--preset--color--accent-2, #0f6e56); text-decoration: none; }
.m2ts-hdr-link:hover { text-decoration: underline; }
.m2ts-hdr-btn {
	display: inline-block;
	background: #fff;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
	border-radius: 0;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 9px 18px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.m2ts-hdr-btn:hover { background: var(--wp--preset--color--accent-3, #e1f3ec); }

/* ---- Logo « Maître de ta santé » (SVG inline, transparent) ---- */
.m2ts-logo,
.m2ts-logo:hover { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.m2ts-logo__icon { display: inline-flex; flex: none; }
.m2ts-logo__svg { display: block; height: auto; }
.m2ts-logo__text { display: flex; flex-direction: column; }
.m2ts-logo__name {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-size: 1.6rem;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #153A34;
}
.m2ts-logo__tag {
	font-family: 'Manrope', sans-serif;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #1E7F74;
	margin-top: 6px;
}
/* Footer : nom en blanc, sans baseline */
.m2ts-logo--footer { gap: 10px; }
.m2ts-logo--footer .m2ts-logo__name { font-size: 1.25rem; color: #ffffff; }
.wp-site-blocks > footer a.m2ts-logo:hover .m2ts-logo__name { text-decoration: none; }
@media (max-width: 600px) {
	.m2ts-logo__name { font-size: 1.3rem; }
	.m2ts-logo .m2ts-logo__svg { width: 40px; height: 38px; }
	.m2ts-logo__tag { font-size: 0.55rem; letter-spacing: 0.1em; }
}

/* ---- Menu de navigation principal (en-tête) ---- */
.m2ts-nav { border-top: 1px solid var(--wp--preset--color--accent-5, #e7efea); }
.m2ts-nav__inner {
	max-width: 1180px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.2rem 1.5rem;
	padding: 0.7rem 1rem;
}
.m2ts-nav a {
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast, #0f2e28);
	text-decoration: none;
	padding: 0.25rem 0;
	position: relative;
	white-space: nowrap;
}
.m2ts-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: -1px; height: 2px;
	background: var(--wp--preset--color--accent-1, #0e8c7f);
	transition: right 0.2s ease;
}
.m2ts-nav a:hover::after,
.m2ts-nav a.is-current::after { right: 0; }
.m2ts-nav a.is-current { color: var(--wp--preset--color--accent-2, #0a6a60); }
@media (max-width: 600px) {
	.m2ts-nav__inner { gap: 0.1rem 1rem; padding: 0.5rem 0.6rem; }
	.m2ts-nav a { font-size: 0.82rem; }
}

/* Tous les boutons d'action : fond blanc, bordure + texte teal, angles droits */
.wp-block-button__link,
.mailpoet_form input.mailpoet_submit,
.swpm-login-form-submit,
.swpm-registration-submit-button,
input.swpm-submit-btn-default-style {
	background-color: #fff !important;
	background-image: none !important;
	color: var(--wp--preset--color--accent-1, #0e8c7f) !important;
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.wp-block-button__link:hover,
.mailpoet_form input.mailpoet_submit:hover,
.swpm-login-form-submit:hover,
.swpm-registration-submit-button:hover,
input.swpm-submit-btn-default-style:hover {
	background-color: var(--wp--preset--color--accent-3, #e1f3ec) !important;
	color: var(--wp--preset--color--accent-2, #0f6e56) !important;
}

/* =================================================================
   COHÉRENCE TOTALE — ANGLES DROITS PARTOUT (2026)
   Le site adopte des contours nets : plus aucune forme arrondie.
   Bloc autoritaire placé en dernier → neutralise tous les border-radius
   (CSS thème, styles inline de functions.php, explorateur, thème parent).
   ================================================================= */
/* Conteneurs, cartes, encarts */
.wp-block-latest-posts.is-grid > li,
.wp-block-query li.wp-block-post,
.wp-block-post-template li.wp-block-post,
.m2ts-related__card,
.m2ts-member-card,
.m2ts-member-hub,
.m2ts-svc__card,
.m2ts-cat-card,
.m2ts-cat-pill,
.m2ts-cat-pill__count,
.m2ts-svc__badge,
.wp-block-cover,
/* Formulaires (cartes) */
.swpm-login-widget-form,
.swpm-form,
.swpm-pw-reset-widget-form,
.swpm-profile-form,
/* Champs de saisie */
.swpm-text-field,
.swpm-form-field,
.swpm-login-widget-form input,
.swpm-form input,
.mailpoet_form input.mailpoet_text,
.mailpoet_form input.mailpoet_email,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select,
.wp-block-search__input,
.wp-block-search__button,
.wp-block-search .wp-block-search__inside-wrapper,
/* Boutons */
.wp-block-button__link,
.wp-element-button,
.mailpoet_form input.mailpoet_submit,
.swpm-login-form-submit,
.swpm-registration-submit-button,
input.swpm-submit-btn-default-style,
.m2ts-hdr-btn,
button,
/* Images & vignettes */
img,
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-latest-posts__featured-image img,
.m2ts-related__thumb img,
.single-post .wp-block-post-content img,
/* Partage social + tooltip */
.m2ts-share__btn,
.m2ts-share__copied,
/* Étiquettes catégorie */
.wp-block-post-terms a,
/* Explorateur nutritionnel */
.m2ts-nx button,
.m2ts-nx .nx-seg button,
.m2ts-nx .nx-nut button,
.m2ts-nx .nx-fc,
.m2ts-nx .nx-tag,
.m2ts-nx .nx-input,
.m2ts-nx .nx-chip,
.m2ts-nx .nx-track,
.m2ts-nx .nx-fill,
/* Divers blocs WordPress */
.wp-block-pullquote,
.wp-block-table td,
.wp-block-table th,
.wp-block-code,
.wp-block-preformatted,
.wp-block-tag-cloud a,
.wp-block-quote,
.wp-block-quote.is-style-large {
	border-radius: 0 !important;
}

/* ---- Stragglers cœur WordPress + plugins (audit multi-agents 2026-06-18) ----
   Le thème parent n'a aucun arrondi ; ces règles neutralisent les rayons
   injectés par global-styles (boutons), Complianz (bannière cookies),
   Hostinger Reach, MailPoet (popups/champs) et Simple Membership (boîtes/badges). */
/* Boutons cœur WP (global-styles inline) + étiquettes de termes (variations de style) */
:root :where(.wp-element-button),
:root :where(.wp-block-button__link),
:root :where([class*="is-style-post-terms"] a:where(:not(.wp-element-button))),
/* Complianz — contenu bloqué + bannière de consentement (injectée en JS) */
.cmplz-blocked-content-container,
.cmplz-wp-video,
#cmplz-cookiebanner-container,
#cmplz-cookiebanner,
.cmplz-cookiebanner,
.cmplz-cookiebanner .cmplz-button,
.cmplz-cookiebanner .cmplz-btn,
.cmplz-banner,
.cmplz-banner .cmplz-btn,
.cmplz-manage-consent,
/* Hostinger Reach — dialog + formulaire d'abonnement */
.hostinger-reach-block-dialog,
.hostinger-reach-block-dialog__button,
.hostinger-reach-block-subscription-form .hostinger-reach-block-submit,
.hostinger-reach-block-subscription-form input,
/* MailPoet — popups, slide-in, formulaire, champs, gestion d'abonnement */
div.mailpoet_form_popup,
div.mailpoet_form_slide_in,
#mailpoet_form_1,
.mailpoet_form input,
.mailpoet_submit,
.mailpoet_text,
.mailpoet_textarea,
.mailpoet_select,
.mailpoet-manage-subscription--modern .mailpoet_text,
.mailpoet-manage-subscription--modern .mailpoet_submit,
/* Simple Membership — boîtes d'alerte, badges de statut, boutons zone membre */
.swpm-yellow-box, .swpm-red-box, .swpm-orange-box, .swpm-white-box,
.swpm-grey-box, .swpm-green-box, .swpm-blue-box, .swpm-reset-pw-success-box,
.swpm-cancel-subscription-button,
.swpm-tooltip-notes-style-1,
[class^="swpm_status_"], [class*=" swpm_status_"] {
	border-radius: 0 !important;
}

/* =================================================================
   HERO ALLÉGÉ (2026-06-18) — bande compacte
   Réduit fortement la hauteur (padding spacing-70 → 2rem, titre + petit,
   espaceur resserré) pour libérer l'espace écran et éviter le gâchis
   au-dessus du contenu (et plus tard des emplacements AdSense).
   ================================================================= */
.m2ts-hero {
	padding-top: 1.6rem !important;
	padding-bottom: 1.6rem !important;
}
/* Boutons + espaceur interne du hero retirés (redondants) → épaisseur minimale */
.m2ts-hero .wp-block-buttons,
.m2ts-hero .wp-block-spacer { display: none !important; }
.m2ts-hero .wp-block-heading {
	font-size: clamp(1.6rem, 3.4vw, 2.4rem) !important;
	line-height: 1.12 !important;
	margin-bottom: 0.4rem !important;
}
.m2ts-hero .m2ts-kicker { margin-bottom: 0.3rem !important; }
.m2ts-hero p:not(.m2ts-kicker) {
	font-size: 1rem !important;
	line-height: 1.5 !important;
	max-width: 580px;
	margin: 0 auto 0.5rem !important;
}
.m2ts-hero .wp-block-spacer { height: 0.6rem !important; }

/* ===== m2ts-featured-16-9 : image à la une de l'article en 16:9 fidèle (fin du recadrage 3:2) — 2026-07-10 ===== */
.single-post .wp-block-post-featured-image { aspect-ratio: 16 / 9 !important; }
.single-post .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================
   REFRESH ACCUEIL 2026-07 — fond vivant, header vivant, hero à
   rotation quotidienne ([m2ts_hero]), ticker Vrai/Faux
   ([m2ts_ticker_mythes]), révélations au scroll (assets/refresh.js).
   Charte conservée : teal seul accent, Fraunces, angles droits ;
   l'ambre reste réservé à la signature ECG.
   ================================================================= */

/* ---------- Fond vivant : voiles dégradés qui dérivent lentement ---------- */
body::before {
	content: "";
	position: fixed;
	inset: -20vh -20vw;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(38% 42% at 12% 8%,  rgba(159, 225, 203, 0.35), transparent 70%),
		radial-gradient(30% 34% at 88% 18%, rgba(224, 163, 62, 0.10), transparent 70%),
		radial-gradient(44% 40% at 78% 92%, rgba(14, 140, 127, 0.08), transparent 70%);
	animation: m2ts-derive 26s ease-in-out infinite alternate;
}
@keyframes m2ts-derive {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(2.5vw, -2vh, 0) scale(1.06); }
}

/* ---------- Header : fil ECG dégradé animé + compact au scroll ---------- */
.wp-site-blocks > header.wp-block-template-part {
	background-color: rgba(251, 250, 247, 0.85);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
}
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #0e8c7f, #9fe1cb 55%, #e0a33e);
	background-size: 200% 100%;
	animation: m2ts-fil-vivant 9s linear infinite;
}
@keyframes m2ts-fil-vivant {
	from { background-position: 0% 0; }
	to   { background-position: 200% 0; }
}
.wp-site-blocks > header.m2ts-scrolled {
	box-shadow: 0 10px 34px rgba(15, 46, 40, 0.10);
}
.m2ts-logo__svg,
.m2ts-logo__tag,
.m2ts-hdr-row { transition: all 0.28s ease; }
.wp-site-blocks > header.m2ts-scrolled .m2ts-logo .m2ts-logo__svg { width: 36px; height: 34px; }
.wp-site-blocks > header.m2ts-scrolled .m2ts-logo__tag { display: none; }
.wp-site-blocks > header.m2ts-scrolled .m2ts-hdr-row {
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
}

/* Header sur une seule rangée : la nav s'intègre entre logo et compte.
   La baseline du logo est retirée de la barre (elle vit dans le hero et le
   footer) : c'est elle qui faisait passer la zone compte à la ligne avant
   le premier scroll. */
.m2ts-hdr-row .m2ts-logo__tag { display: none; }
.m2ts-hdr-row .m2ts-logo__name { font-size: 1.35rem; }
.m2ts-hdr-row .m2ts-nav { border-top: none; }
.m2ts-hdr-row .m2ts-nav__inner { padding: 0; gap: 0.2rem 1.15rem; }
@media (min-width: 901px) and (max-width: 1240px) {
	.m2ts-hdr-row .m2ts-logo__name { font-size: 1.2rem; }
	.m2ts-hdr-row .m2ts-nav__inner { gap: 0.2rem 0.85rem; }
	.m2ts-hdr-row > .m2ts-hdr-account { gap: 14px; }
	.m2ts-hdr-row .m2ts-hdr-btn { padding: 8px 14px; }
}
@media (max-width: 1140px) {
	.m2ts-hdr-row .m2ts-nav {
		order: 3;
		flex-basis: 100%;
		border-top: 1px solid var(--wp--preset--color--accent-5, #e7efea);
		margin-top: 0.5rem;
	}
	.m2ts-hdr-row .m2ts-nav__inner { padding: 0.55rem 0 0.1rem; }
}

/* Onglet courant : mini-tracé ECG qui pulse (remplace la barre pleine) */
.m2ts-nav a.is-current::after {
	right: 0;
	height: 12px;
	bottom: -9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 14' preserveAspectRatio='none'%3E%3Cpath d='M0 8 H24 l6 -4 6 4 h8 l5 -7 6 12 5 -5 H80' fill='none' stroke='%230e8c7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	animation: m2ts-battement 2.4s ease-in-out infinite;
}
@keyframes m2ts-battement {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.35; }
}

/* « Rejoindre » : l'unique bouton plein du site (point focal du header) */
.m2ts-hdr-btn {
	background: var(--wp--preset--color--accent-1, #0e8c7f);
	color: #fff;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.m2ts-hdr-btn:hover {
	background: var(--wp--preset--color--accent-2, #0a6a60);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(14, 140, 127, 0.28);
}

/* ---------- Boutons du hero ---------- */
.m2ts-btn-solid,
.m2ts-btn-outline {
	display: inline-block;
	padding: 12px 24px;
	font-family: 'Manrope', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.m2ts-btn-solid {
	background: var(--wp--preset--color--accent-1, #0e8c7f);
	color: #fff;
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
}
.m2ts-btn-solid:hover {
	background: var(--wp--preset--color--accent-2, #0a6a60);
	border-color: var(--wp--preset--color--accent-2, #0a6a60);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(14, 140, 127, 0.28);
}
.m2ts-btn-outline {
	background: #fff;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
}
.m2ts-btn-outline:hover {
	background: var(--wp--preset--color--accent-3, #e1f3ec);
	transform: translateY(-2px);
}

/* ---------- Hero v2 : pleine largeur, texte + collage du jour ---------- */
.m2ts-hero2 {
	position: relative;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 64px 0 56px;
}
.m2ts-hero2__ecg {
	position: absolute;
	left: 0;
	top: 46%;
	width: 100%;
	height: 140px;
	transform: translateY(-50%);
	pointer-events: none;
	opacity: 0.45;
}
.m2ts-hero2__ecg path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: m2ts-trace 3s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}
@keyframes m2ts-trace { to { stroke-dashoffset: 0; } }

.m2ts-hero2__grid {
	position: relative;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 24px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}
.m2ts-hero2 h1 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 560;
	letter-spacing: -0.015em;
	font-size: clamp(2.3rem, 4.8vw, 3.6rem);
	line-height: 1.08;
	text-wrap: balance;
	margin: 16px 0 20px;
}
.m2ts-hero2__mot { position: relative; display: inline-block; white-space: nowrap; }
.m2ts-hero2__mot-ecg {
	position: absolute;
	left: -2%;
	bottom: -0.28em;
	width: 104%;
	height: 0.42em;
	overflow: visible;
}
.m2ts-hero2__mot-ecg path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: m2ts-trace 1.1s ease-out 1.35s forwards;
}
.m2ts-hero2__sub {
	font-size: 1.1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--accent-4, #5b6b66);
	max-width: 34em;
	margin: 0 0 28px;
}
.m2ts-hero2__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.m2ts-hero2__preuves {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-4, #5b6b66);
	margin: 0;
}
.m2ts-hero2__preuves span::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #9fe1cb;
	margin-right: 9px;
	vertical-align: 1px;
}

/* Entrées orchestrées au chargement */
.m2ts-lever {
	opacity: 0;
	transform: translateY(22px);
	animation: m2ts-lever 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.m2ts-lever--1 { animation-delay: 0.15s; }
.m2ts-lever--2 { animation-delay: 0.3s; }
.m2ts-lever--3 { animation-delay: 0.45s; }
.m2ts-lever--4 { animation-delay: 0.6s; }
.m2ts-lever--5 { animation-delay: 0.75s; }
@keyframes m2ts-lever { to { opacity: 1; transform: translateY(0); } }

/* Collage photo du jour */
.m2ts-hero2__collage { position: relative; height: 480px; }
.m2ts-hero2__sq-mint {
	position: absolute;
	top: 3%;
	right: 6%;
	width: 44%;
	aspect-ratio: 1;
	background: var(--wp--preset--color--accent-3, #e1f3ec);
}
.m2ts-hero2__sq-ambre {
	position: absolute;
	bottom: 20%;
	left: 2%;
	width: 30%;
	aspect-ratio: 1;
	border: 2px solid #e0a33e;
}
.m2ts-hero2__collage img {
	position: absolute;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	border-radius: 0;
	box-shadow: 0 18px 44px rgba(15, 46, 40, 0.16);
}
.m2ts-hero2__p1 { top: 0; left: 12%; width: 52%; animation: m2ts-flotter 8s ease-in-out infinite; }
.m2ts-hero2__p2 { top: 34%; right: 0; width: 38%; animation: m2ts-flotter 10s ease-in-out 1.2s infinite; }
.m2ts-hero2__p3 { bottom: 4%; left: 6%; width: 34%; animation: m2ts-flotter 12s ease-in-out 0.6s infinite; }
@keyframes m2ts-flotter {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}
.m2ts-hero2__badge {
	position: absolute;
	right: 4%;
	bottom: 0;
	width: 46%;
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-5, #e7efea);
	padding: 15px 18px;
	box-shadow: 0 14px 36px rgba(15, 46, 40, 0.12);
}
.m2ts-hero2__badge .m2ts-kicker { font-size: 0.62rem; margin: 0; }
.m2ts-hero2__badge-list {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 560;
	font-size: 1.02rem;
	margin: 7px 0 8px;
}
.m2ts-hero2__badge a {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #0e8c7f);
	text-decoration: none;
}
.m2ts-hero2__badge a:hover { text-decoration: underline; }

@media (max-width: 980px) {
	.m2ts-hero2 { padding: 40px 0 36px; }
	.m2ts-hero2__grid { grid-template-columns: 1fr; gap: 36px; }
	/* Collage SUPERPOSÉ aussi sur mobile (photos qui se chevauchent et
	   flottent) — surtout pas une grille à plat. */
	.m2ts-hero2__collage { height: min(104vw, 460px); }
	.m2ts-hero2__sq-mint { top: 0; right: 0; width: 38%; }
	.m2ts-hero2__sq-ambre { bottom: 24%; left: 0; width: 26%; }
	.m2ts-hero2__p1 { top: 4%; left: 5%; width: 58%; }
	.m2ts-hero2__p2 { top: 20%; right: 2%; width: 40%; }
	.m2ts-hero2__p3 { bottom: 16%; left: 10%; width: 38%; }
	.m2ts-hero2__badge { right: 0; bottom: 0; width: 66%; }
}

/* ---------- Ticker Vrai / Faux ---------- */
.m2ts-ticker {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--wp--preset--color--contrast, #0f2e28);
	color: #fff;
	overflow: hidden;
	white-space: nowrap;
	border-top: 3px solid var(--wp--preset--color--accent-1, #0e8c7f);
}
.m2ts-ticker__in { display: inline-flex; align-items: center; padding: 12px 0; }
.m2ts-ticker__in.is-anim { animation: m2ts-defile 38s linear infinite; }
.m2ts-ticker:hover .m2ts-ticker__in.is-anim { animation-play-state: paused; }
.m2ts-ticker__group { display: inline-flex; align-items: center; }
.m2ts-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 34px;
	font-family: 'Manrope', sans-serif;
	font-size: 0.92rem;
	font-weight: 600;
}
.m2ts-ticker__item a { color: #fff; text-decoration: none; }
.m2ts-ticker__item a:hover { text-decoration: underline; }
.m2ts-ticker__tag {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #9fe1cb;
}
.m2ts-ticker__verdict {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	padding: 3px 9px;
	border: 1.5px solid currentColor;
}
.m2ts-ticker__verdict.is-faux   { color: #f39a7a; }
.m2ts-ticker__verdict.is-vrai   { color: #9fe1cb; }
.m2ts-ticker__verdict.is-nuance { color: #e0a33e; }
@keyframes m2ts-defile { to { transform: translateX(-50%); } }

/* ---------- Révélations au scroll (classe posée par refresh.js) ---------- */
.m2ts-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m2ts-reveal.est-visible { opacity: 1; transform: translateY(0); }

/* ---------- MENU OVERLAY « AN 2100 » + HEADER MOBILE COMPACT ---------- */
/* wpautop enveloppe les sorties de shortcodes (logo, burger) dans des <p> :
   on dissout ces <p> pour que logo et burger soient de vrais items flex
   (sinon l'ordre flex du burger ne s'applique pas). */
.m2ts-hdr-row > p { display: contents; }

.m2ts-burger {
	display: none;
	background: none;
	border: 1.5px solid var(--wp--preset--color--accent-1, #0e8c7f);
	border-radius: 0;
	padding: 8px 10px;
	cursor: pointer;
	order: 10;
}
.m2ts-burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--wp--preset--color--accent-1, #0e8c7f);
	margin: 4px 0;
}

.m2ts-menu-overlay[hidden] { display: none; }
.m2ts-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	padding: 20px 26px calc(30px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	background:
		radial-gradient(120% 90% at 85% -10%, rgba(14, 140, 127, 0.38), transparent 60%),
		radial-gradient(90% 60% at 0% 110%, rgba(224, 163, 62, 0.14), transparent 60%),
		var(--wp--preset--color--contrast, #0f2e28);
	color: #fff;
	opacity: 0;
	transform: translateY(-2%);
	transition: opacity 0.32s ease, transform 0.32s ease;
}
.m2ts-menu-overlay.is-open { opacity: 1; transform: none; }
.m2ts-menu-overlay__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: none;
}
.m2ts-menu-overlay__brand {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 560;
	font-size: 1.15rem;
}
.m2ts-menu-close {
	background: none;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: 0;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	padding: 5px 13px;
	cursor: pointer;
}
.m2ts-menu-close:hover { border-color: #9fe1cb; color: #9fe1cb; }
.m2ts-menu-overlay__ecg {
	flex: none;
	width: 100%;
	height: 26px;
	margin: 16px 0 6px;
	opacity: 0.7;
}
.m2ts-menu-overlay.is-open .m2ts-menu-overlay__ecg path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: m2ts-trace 1.4s ease 0.15s forwards;
}
.m2ts-menu-overlay__nav {
	display: flex;
	flex-direction: column;
	margin: 4vh 0 auto;
}
.m2ts-menu-overlay__nav a {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 560;
	font-size: clamp(1.2rem, 4.6vw, 1.55rem);
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #fff;
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	opacity: 0;
	transform: translateY(18px);
}
.m2ts-menu-overlay.is-open .m2ts-menu-overlay__nav a {
	animation: m2ts-lever 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.m2ts-menu-overlay__nav a:nth-child(1) { animation-delay: 0.10s; }
.m2ts-menu-overlay__nav a:nth-child(2) { animation-delay: 0.16s; }
.m2ts-menu-overlay__nav a:nth-child(3) { animation-delay: 0.22s; }
.m2ts-menu-overlay__nav a:nth-child(4) { animation-delay: 0.28s; }
.m2ts-menu-overlay__nav a:nth-child(5) { animation-delay: 0.34s; }
.m2ts-menu-overlay__nav a:nth-child(6) { animation-delay: 0.40s; }
.m2ts-menu-overlay__nav a:nth-child(7) { animation-delay: 0.46s; }
.m2ts-menu-overlay__nav a.is-current { color: #9fe1cb; }
.m2ts-menu-overlay__nav a:active { color: #9fe1cb; }
.m2ts-menu-overlay__foot {
	flex: none;
	margin-top: 26px;
	opacity: 0;
	transform: translateY(18px);
}
.m2ts-menu-overlay.is-open .m2ts-menu-overlay__foot {
	animation: m2ts-lever 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards;
}
.m2ts-menu-overlay .m2ts-hdr-account { justify-content: flex-start; gap: 18px; }
.m2ts-menu-overlay .m2ts-hdr-link { color: #9fe1cb; font-size: 1rem; }
.m2ts-menu-overlay__base {
	margin: 16px 0 0;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(159, 225, 203, 0.8);
}

/* Header mobile : UNE rangée fine — logo · Se connecter · burger.
   « Rejoindre » et la nav vivent dans l'overlay. */
@media (max-width: 900px) {
	.m2ts-hdr-row > .m2ts-nav { display: none; }
	.m2ts-hdr-row > .m2ts-hdr-account .m2ts-hdr-btn { display: none; }
	.m2ts-burger { display: inline-block; }
	.m2ts-hdr-row {
		flex-wrap: nowrap;
		padding-top: 0.45rem !important;
		padding-bottom: 0.45rem !important;
		gap: 14px;
	}
	.m2ts-hdr-row .m2ts-logo__tag { display: none; }
	.m2ts-hdr-row .m2ts-logo .m2ts-logo__svg { width: 33px; height: 31px; }
	.m2ts-hdr-row .m2ts-logo__name { font-size: 1.12rem; white-space: nowrap; }
	.m2ts-hdr-row > .m2ts-hdr-account { flex-wrap: nowrap; gap: 0; margin-left: auto; }
	.m2ts-hdr-row > .m2ts-hdr-account .m2ts-hdr-link { font-size: 0.88rem; white-space: nowrap; }
}

/* ---------- Accessibilité : tout s'arrête si l'utilisateur le demande ---------- */
@media (prefers-reduced-motion: reduce) {
	body::before,
	.wp-site-blocks > header.wp-block-template-part::before,
	.m2ts-nav a.is-current::after,
	.m2ts-hero2__ecg path,
	.m2ts-hero2__mot-ecg path,
	.m2ts-hero2__collage img,
	.m2ts-lever,
	.m2ts-ticker__in { animation: none !important; }
	.m2ts-lever { opacity: 1; transform: none; }
	.m2ts-hero2__ecg path,
	.m2ts-hero2__mot-ecg path { stroke-dashoffset: 0; }
	.m2ts-reveal { opacity: 1; transform: none; transition: none; }
	.m2ts-menu-overlay { transition: none; transform: none; }
	.m2ts-menu-overlay__nav a,
	.m2ts-menu-overlay__foot { animation: none !important; opacity: 1; transform: none; }
	.m2ts-menu-overlay.is-open .m2ts-menu-overlay__ecg path { animation: none; stroke-dashoffset: 0; }
}
