/*
Theme Name:   MK Theme
Description:  Thème custom partagé du réseau Champ-eu (DE/IT/ES/PT/CH/BE) — design system commun, déclinable par pays.
Version:      0.10.0
Requires at least: 6.0
Requires PHP: 8.1
Author:       Champ-eu
Text Domain:  mk-theme
*/

/* ---------- Design tokens (déclinables par pays via filtre/enfant) ---------- */

:root {
	--mk-green-900: #1c3526;
	--mk-green-700: #2d5a3f;
	--mk-green-500: #4a8862;
	--mk-green-100: #e6efe9;
	--mk-amber: #c98a2b;
	--mk-amber-dark: #b47a20;
	--mk-bg: #faf9f6;
	--mk-surface: #ffffff;
	--mk-text: #24312a;
	--mk-muted: #5f6f66;
	--mk-border: #e4e2da;
	--mk-radius: 10px;
	--mk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mk-container: 1140px;
	--mk-content: 720px;
}

/* ---------- Base ---------- */

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

body {
	margin: 0;
	background: var(--mk-bg);
	color: var(--mk-text);
	font-family: var(--mk-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mk-green-700);
}

a:hover {
	color: var(--mk-green-500);
}

h1,
h2,
h3,
h4 {
	line-height: 1.25;
	color: var(--mk-green-900);
	margin: 1.4em 0 0.5em;
}

h1 {
	font-size: 2.1rem;
	margin-top: 0;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.2rem;
}

.mk-container {
	max-width: var(--mk-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Boutons ---------- */

.mk-button,
button,
input[type="submit"] {
	display: inline-block;
	background: var(--mk-green-700);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px 24px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mk-button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--mk-green-500);
	color: #fff;
}

.mk-button--accent {
	background: var(--mk-amber);
}

.mk-button--accent:hover {
	background: var(--mk-amber-dark);
}

.mk-button--ghost {
	background: transparent;
	color: var(--mk-green-900);
	box-shadow: inset 0 0 0 1.5px var(--mk-green-700);
}

.mk-button--ghost:hover {
	background: var(--mk-green-100);
	color: var(--mk-green-900);
}

/* ---------- Header ---------- */

.site-header {
	background: var(--mk-surface);
	border-bottom: 1px solid var(--mk-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	flex-wrap: wrap;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--mk-green-900);
	text-decoration: none;
	letter-spacing: -0.01em;
}

/* Pictogramme The Mycologist : icône carrée servie en rond (fond topo). */
.site-logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}

/* Wordmark typographique (site FR) — hauteur fixe, largeur naturelle. */
.site-logo-wordmark {
	height: 20px;
	width: auto;
	display: block;
}

@media (max-width: 480px) {
	.site-logo-wordmark {
		height: 16px;
	}
}

.site-logo:hover {
	color: var(--mk-green-700);
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--mk-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-menu-parent > a {
	background: var(--mk-green-100);
	color: var(--mk-green-900);
}

/* ---------- Sous-menus (« Carnet de chasse » → « Mes spots ») ----------
   Desktop : liste déroulante au survol / au focus clavier ; l'entrée
   parente reste un lien. Mobile : liste imbriquée, toujours visible. */

.site-nav li {
	position: relative;
}

.site-nav .menu-item-has-children > a {
	padding-right: 28px;
}

.site-nav .menu-item-has-children > a::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.7;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 60;
	flex-direction: column;
	gap: 2px;
	min-width: 190px;
	padding: 6px;
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	box-shadow: 0 10px 30px rgba(28, 53, 38, 0.14);
}

/* Pont invisible sur l'interstice : le survol ne se perd pas entre
   l'entrée parente et sa liste. */
.site-nav .sub-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -6px;
	height: 6px;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu {
	display: flex;
}

.site-nav .sub-menu a {
	white-space: nowrap;
	font-size: 14px;
}

/* ---------- Sélecteur de pays ---------- */

.mk-country-switch {
	position: relative;
}

.mk-country-switch summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid var(--mk-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mk-green-900);
	cursor: pointer;
	user-select: none;
}

.mk-country-switch summary::-webkit-details-marker {
	display: none;
}

.mk-country-switch summary:hover,
.mk-country-switch[open] summary {
	background: var(--mk-green-100);
}

.mk-country-flag {
	font-size: 1.1em;
	line-height: 1;
}

.mk-country-label {
	font-size: 15px;
	white-space: nowrap;
}

.mk-country-list-title {
	padding: 4px 12px 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mk-muted);
	white-space: nowrap;
}

.mk-country-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.15s ease;
}

.mk-country-switch[open] .mk-country-caret {
	transform: rotate(180deg);
}

.mk-country-list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 60;
}

.mk-country-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--mk-text);
	text-decoration: none;
	font-size: 15px;
	white-space: nowrap;
}

.mk-country-list a:hover,
.mk-country-list a:focus-visible {
	background: var(--mk-green-100);
	color: var(--mk-green-900);
}

.mk-country-list a.is-current {
	font-weight: 600;
	color: var(--mk-green-700);
}

.mk-country-list a.is-current::after {
	content: "\2713";
	margin-left: auto;
	font-size: 0.85em;
}

/* ---------- Popin de choix du pays (première visite) ---------- */

.mk-country-popin {
	position: fixed;
	inset: 0;
	z-index: 10001; /* au-dessus de la bannière de consentement mk-meta (10000) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.mk-country-popin[hidden] {
	display: none;
}

.mk-country-popin-open {
	overflow: hidden;
}

.mk-country-popin-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 53, 38, 0.55);
}

.mk-country-popin-dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 28px 26px 22px;
	background: var(--mk-surface);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(28, 53, 38, 0.3);
	text-align: center;
	animation: mk-country-popin-in 0.2s ease-out;
}

.mk-country-popin-dialog:focus {
	outline: none;
}

@keyframes mk-country-popin-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mk-country-popin-dialog {
		animation: none;
	}
}

.mk-country-popin-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mk-muted);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.mk-country-popin-close:hover {
	background: var(--mk-green-100);
	color: var(--mk-green-900);
}

.mk-country-popin-mark {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 10px;
	border-radius: 50%;
}

.mk-country-popin-title {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.mk-country-popin-text {
	margin: 0 0 18px;
	color: var(--mk-muted);
	font-size: 15px;
	line-height: 1.5;
}

.mk-country-popin-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.mk-country-popin-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border: 1px solid var(--mk-border);
	border-radius: 10px;
	color: var(--mk-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
}

.mk-country-popin-list a:hover,
.mk-country-popin-list a:focus-visible {
	border-color: var(--mk-green-500);
	background: var(--mk-green-100);
	color: var(--mk-green-900);
}

.mk-country-popin-list a.is-current {
	font-weight: 600;
	color: var(--mk-green-700);
}

.mk-country-popin-list a.is-current::after {
	content: "\2713";
	margin-left: auto;
	font-size: 0.85em;
}

.mk-country-popin-list a.is-suggested {
	border-color: var(--mk-amber);
	box-shadow: inset 0 0 0 1px var(--mk-amber);
}

.mk-country-popin-hint {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mk-amber-dark);
}

.mk-country-popin-hint[hidden] {
	display: none;
}

.mk-country-popin-note {
	margin: 0;
	font-size: 13px;
	color: var(--mk-muted);
}

@media (max-width: 420px) {
	.mk-country-popin-dialog {
		padding: 24px 18px 18px;
	}

	.mk-country-popin-list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Burger (mobile) ---------- */

.mk-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	border-radius: 8px;
	padding: 12px 10px;
	cursor: pointer;
}

.mk-burger:hover,
.mk-burger:focus-visible {
	background: var(--mk-green-100);
}

.mk-burger-line {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: var(--mk-green-900);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ---------- Contenu ---------- */

.site-main {
	padding: 48px 0 72px;
}

.mk-content {
	max-width: var(--mk-content);
	margin: 0 auto;
	padding: 0 24px;
}

.entry-title {
	margin-bottom: 0.6em;
}

.entry-meta {
	color: var(--mk-muted);
	font-size: 14px;
	margin-bottom: 1.5em;
}

.entry-content :is(ul, ol) {
	padding-left: 1.4em;
}

.entry-content blockquote {
	border-left: 3px solid var(--mk-green-500);
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.2em;
	color: var(--mk-muted);
}

/* ---------- Liste d'articles ---------- */

.post-list {
	display: grid;
	gap: 24px;
}

.post-card {
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	padding: 26px 28px;
}

.post-card h2 {
	margin: 0 0 0.3em;
	font-size: 1.3rem;
}

.post-card h2 a {
	color: var(--mk-green-900);
	text-decoration: none;
}

.post-card h2 a:hover {
	color: var(--mk-green-700);
}

.post-card .entry-meta {
	margin-bottom: 0.8em;
}

.post-card p {
	margin: 0;
	color: var(--mk-muted);
}

/* ---------- Template carte pleine largeur ----------
   Page app sans défilement : header + carte + calendrier de pousse
   remplissent exactement le viewport. Footer masqué. */

body.page-template-carte {
	height: 100vh;
	height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.page-template-carte .site-header {
	flex: none;
}

.page-template-carte .site-footer {
	display: none;
}

.page-template-carte .site-main {
	flex: 1;
	min-height: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mk-map-full {
	max-width: none;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 16px 24px 20px;
}

.mk-map-full .mk-explorer {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.mk-map-full .mk-explorer-map {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mk-map-full .mk-map {
	height: auto !important;
	flex: 1;
	min-height: 0;
	min-width: 0;
}

.mk-map-full .mk-map-forecast {
	flex: none;
	margin-top: 0;
}

/* Carte posée directement dans le template, sans explorateur (démo, teaser,
   pages de test) : garde-fou pour qu'elle ne soit jamais écrasée par la
   hauteur naturelle du calendrier de pousse. */
.mk-map-full > .mk-map {
	min-height: 220px;
}

/* Desktop : calendrier des jours en colonne à droite de la carte. */
@media (min-width: 783px) {
	.mk-map-full .mk-explorer-map {
		flex-direction: row;
		gap: 18px;
	}

	/* Même disposition quand la carte est un enfant direct (pas
	   d'explorateur) : carte à gauche, calendrier à droite. */
	.mk-map-full:has(> .mk-map) {
		flex-direction: row;
		gap: 18px;
	}

	.mk-map-full .mk-map-forecast {
		width: 280px;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.mk-map-full .mk-map-forecast-scroller {
		flex: 1;
		min-height: 0;
	}

	.mk-map-full .mk-map-forecast-row {
		flex-direction: column;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	/* Carte-jour en ligne façon maquette : jour | météo | indice, barre en bas. */
	.mk-map-full .mk-map-forecast-card {
		min-width: 0;
		text-align: left;
		padding: 9px 12px 10px;
	}

	.mk-map-full .mk-map-forecast-card-head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 7px;
	}

	.mk-map-full .mk-map-forecast-card-day {
		flex: none;
		width: 66px;
		white-space: normal;
	}

	.mk-map-full .mk-map-forecast-card-day span {
		display: block;
		margin-left: 0;
		margin-top: 1px;
	}

	.mk-map-full .mk-map-forecast-card-wx {
		flex: 1;
		align-items: flex-start;
	}

	.mk-map-full .mk-map-forecast-card-idx {
		flex: none;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}

	.mk-map-full .mk-map-forecast-card-value {
		font-size: 16px;
	}

	.mk-map-full .mk-map-forecast-card-label {
		margin-left: 0;
	}

	.mk-map-full .mk-map-forecast-arrow {
		display: none;
	}
}

/* ---------- Page d'accueil (template accueil.php) ----------
   Landing marketing : héros avec aperçu produit, sections concept/produit/
   réassurance, bande démo sombre, FAQ, CTA final. Tout en tokens. */

body.page-template-accueil .site-main {
	padding: 0 0 80px;
}

.mk-home-hero {
	background: linear-gradient(180deg, var(--mk-green-100) 0%, var(--mk-bg) 100%);
	padding: 60px 0 56px;
}

.mk-home-hero-grid {
	display: grid;
	gap: 44px;
	align-items: center;
}

.mk-home-eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mk-green-500);
}

.mk-home-hero h1 {
	font-size: 2.5rem;
	margin: 0 0 16px;
	letter-spacing: -0.015em;
}

.mk-home-hero-sub {
	font-size: 1.08rem;
	color: var(--mk-muted);
	max-width: 560px;
	margin: 0 0 26px;
}

.mk-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 18px;
}

.mk-home-actions--center {
	justify-content: center;
	margin-bottom: 0;
}

.mk-home-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--mk-muted);
}

.mk-home-chips li::before {
	content: "\2713";
	color: var(--mk-green-500);
	font-weight: 700;
	margin-right: 6px;
}

/* Aperçu produit : démonstration animée de l'application (GIF, téléphone sur fond transparent). */

.mk-home-visual {
	display: flex;
	justify-content: center;
}

.mk-home-visual-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 520px;
}

.mk-home-visual-note {
	margin: 10px 2px 0;
	font-size: 13px;
	color: var(--mk-muted);
	text-align: center;
}

/* Sections communes. */

.mk-home-section {
	margin-top: 76px;
}

.mk-home-section > h2 {
	margin: 0 0 30px;
	font-size: 1.7rem;
	text-align: center;
}

.mk-home-section > h2:has(+ .mk-home-lead) {
	margin-bottom: 10px;
}

.mk-home-lead {
	max-width: 640px;
	margin: 0 auto 34px;
	text-align: center;
	color: var(--mk-muted);
}

/* Étapes numérotées. */

.mk-home-steps-grid {
	display: grid;
	gap: 20px;
	counter-reset: mk-step;
}

.mk-home-step {
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	padding: 26px 24px;
}

.mk-home-step::before {
	counter-increment: mk-step;
	content: counter(mk-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mk-green-700);
	color: #fff;
	font-weight: 700;
}

.mk-home-step h3 {
	margin: 12px 0 8px;
}

.mk-home-step p,
.mk-home-feature p,
.mk-home-trust-item p {
	margin: 0;
	color: var(--mk-muted);
	font-size: 15.5px;
}

/* Cartes produit + réassurance. */

.mk-home-features-grid,
.mk-home-trust-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.mk-home-feature {
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	padding: 24px;
}

.mk-home-feature-ico {
	font-size: 26px;
	line-height: 1;
}

.mk-home-feature h3,
.mk-home-trust-item h3 {
	margin: 10px 0 8px;
	font-size: 1.05rem;
}

.mk-home-trust-item {
	padding: 4px 6px;
}

/* Espèces. */

.mk-home-species-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.mk-home-species-card {
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	overflow: hidden;
	text-align: center;
}

.mk-home-species-photo {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
}

.mk-home-species-card h3 {
	margin: 14px 12px 2px;
}

.mk-home-species-latin {
	margin: 0 12px 16px;
	font-style: italic;
	font-size: 14px;
	color: var(--mk-muted);
}

.mk-home-species-note {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--mk-muted);
}

/* Bande démo sombre. */

.mk-home-demo {
	margin-top: 76px;
	padding: 54px 0;
	background: var(--mk-green-900);
	text-align: center;
}

.mk-home-demo h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 1.7rem;
}

.mk-home-demo p {
	max-width: 640px;
	margin: 0 auto 10px;
	color: #cfdbd3;
}

.mk-home-demo-zone {
	font-weight: 600;
	color: #fff;
}

.mk-home-demo .mk-button {
	margin-top: 14px;
}

/* FAQ. */

.mk-home-faq {
	max-width: 760px;
}

.mk-home-faq details {
	background: var(--mk-surface);
	border: 1px solid var(--mk-border);
	border-radius: var(--mk-radius);
	padding: 16px 20px;
	margin-bottom: 12px;
}

.mk-home-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--mk-green-900);
}

.mk-home-faq details p {
	margin: 12px 0 0;
	color: var(--mk-muted);
}

/* CTA final. */

.mk-home-final {
	margin-top: 84px;
	text-align: center;
}

.mk-home-final h2 {
	margin: 0 0 10px;
	font-size: 1.9rem;
}

.mk-home-final p {
	margin: 0 0 24px;
	color: var(--mk-muted);
}

@media (min-width: 900px) {
	.mk-home-hero-grid {
		grid-template-columns: 1.1fr 1fr;
	}

	.mk-home-visual-img {
		max-height: 620px;
	}

	.mk-home-steps-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 782px) {
	.mk-home-hero {
		padding: 36px 0 40px;
	}

	.mk-home-hero h1 {
		font-size: 1.85rem;
	}

	.mk-home-section,
	.mk-home-demo {
		margin-top: 56px;
	}

	.mk-home-final {
		margin-top: 64px;
	}
}

/* ---------- Page carte démo (template demo.php) ----------
   Marketing + carte : mobile = intro, carte, suite du texte ;
   desktop = colonne texte à gauche, carte collante à droite. */

body.page-template-demo .site-main {
	padding: 40px 0 72px;
}

.mk-demo-layout {
	display: grid;
	gap: 28px;
}

/* Les enfants de grille gardent min-width auto par défaut : le bandeau
   indice (défilement horizontal) élargirait la piste au-delà du viewport. */
.mk-demo-layout > * {
	min-width: 0;
}

.mk-demo-intro h1 {
	font-size: 2rem;
	margin: 0 0 14px;
}

.mk-demo-intro > p,
.mk-demo-more > p {
	color: var(--mk-muted);
	margin: 0 0 8px;
}

.mk-demo-intro h2,
.mk-demo-more h2 {
	font-size: 1.15rem;
	margin: 24px 0 10px;
}

.mk-demo-more .mk-demo-urgency {
	font-weight: 600;
	color: var(--mk-green-900);
}

.mk-demo-more {
	border-top: 1px solid var(--mk-border);
	padding-top: 24px;
}

.mk-demo-more h2 {
	margin-top: 0;
}

.mk-demo-chips {
	display: grid;
	gap: 6px;
	margin: 14px 0 22px;
}

.mk-demo-map .mk-map {
	border-radius: var(--mk-radius);
}

@media (min-width: 900px) {
	.mk-demo-layout {
		grid-template-columns: minmax(300px, 5fr) 7fr;
		grid-template-areas:
			"intro map"
			"more map";
		gap: 28px 44px;
		align-items: start;
	}

	.mk-demo-intro {
		grid-area: intro;
	}

	.mk-demo-more {
		grid-area: more;
	}

	.mk-demo-map {
		grid-area: map;
		position: sticky;
		top: 84px;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--mk-green-900);
	color: #cfdbd3;
	padding: 48px 0 32px;
	font-size: 14px;
}

.site-footer a {
	color: #fff;
}

/* Ligne du haut : marque à gauche, liens à droite, filet de séparation. */
.site-footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.site-footer-brand:hover {
	color: #fff;
	opacity: 0.85;
}

.site-footer-mark {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}

.site-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer-nav a {
	display: inline-block;
	padding: 4px 0;
	color: #cfdbd3;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
	color: #fff;
	border-bottom-color: var(--mk-amber);
}

.site-footer-disclaimer {
	margin: 24px 0 0;
	max-width: 760px;
	color: #9db3a6;
	font-size: 13px;
	line-height: 1.6;
}

.site-footer-bottom {
	margin-top: 20px;
	color: #9db3a6;
	font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	body {
		font-size: 16px;
	}

	h1 {
		font-size: 1.7rem;
	}

	.site-header-inner {
		min-height: 56px;
		padding-top: 8px;
		padding-bottom: 8px;
		gap: 8px;
	}

	.mk-burger {
		display: inline-flex;
		order: 3;
	}

	.mk-country-switch {
		order: 2;
		margin-left: auto;
	}

	.mk-country-switch summary {
		padding: 6px 9px;
	}

	.mk-country-label {
		display: none;
	}

	.site-nav {
		order: 4;
	}

	.site-nav {
		display: none;
		width: 100%;
		padding: 4px 0 12px;
		border-top: 1px solid var(--mk-border);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 2px;
		padding-top: 8px;
	}

	.site-nav a {
		padding: 12px 14px;
		font-size: 16px;
	}

	/* Sous-menu mobile : imbriqué et indenté, sans déroulant. */
	.site-nav .menu-item-has-children > a {
		padding-right: 14px;
	}

	.site-nav .menu-item-has-children > a::after,
	.site-nav .sub-menu::before {
		display: none;
	}

	.site-nav .sub-menu,
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		display: flex;
		position: static;
		min-width: 0;
		padding: 0 0 0 18px;
		border: none;
		border-left: 2px solid var(--mk-green-100);
		border-radius: 0;
		box-shadow: none;
		margin: 0 0 4px 14px;
	}

	.site-nav .sub-menu a {
		white-space: normal;
		font-size: 15px;
	}

	.site-main {
		padding: 32px 0 56px;
	}

	/* Page carte mobile : carte + calendrier occupent tout l'écran. */
	.page-template-carte .site-main {
		padding: 0;
	}

	.mk-map-full {
		padding: 10px 12px 12px;
	}

	/* Footer mobile : marque, liens et mentions empilés. */
	.site-footer {
		padding: 36px 0 28px;
	}

	.site-footer-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.site-footer-nav ul {
		flex-direction: column;
		gap: 2px;
	}

	.site-footer-nav a {
		display: block;
		padding: 8px 0;
		border-bottom: 0;
	}
}

/* ---------- Pages « nues » pour l'app mobile (?mk-app=1, inc/app-bare.php) ----------
   CGV / confidentialité ouvertes dans le navigateur intégré de l'app Android :
   seul le contenu reste (jamais de renvoi vers le site depuis l'app). Les
   blocs des plugins sont coupés côté PHP par leurs filtres ; les sélecteurs
   ci-dessous couvrent le thème et servent de filet (page servie depuis un
   cache, ancien plugin). */

body.mk-app-bare .site-header,
body.mk-app-bare .site-footer,
body.mk-app-bare .site-nav,
body.mk-app-bare .mk-burger,
body.mk-app-bare .mk-country-switch,
body.mk-app-bare .mk-country-popin,
body.mk-app-bare .mk-app-banner,
body.mk-app-bare .mk-consent,
body.mk-app-bare .mk-offer-cta,
body.mk-app-bare .mk-offer-species-btn,
body.mk-app-bare .mk-account-btn,
body.mk-app-bare .wp-block-button,
body.mk-app-bare #wpadminbar {
	display: none !important;
}

body.mk-app-bare {
	margin: 0 !important;
	padding: 0;
}

body.mk-app-bare .site-main {
	padding: 20px 0 40px;
}

body.mk-app-bare .entry-title {
	font-size: 1.6rem;
}
