/* Socle commun des pages refondues (classe body « dm-refonte »).
   Le héros reste l'Element GeneratePress ; le corps ne dépend plus du thème. */

body.dm-refonte {
	overflow-x: clip;
}

.dm-refonte .site-content,
.dm-refonte .inside-article,
.dm-refonte .entry-content {
	padding: 0;
	margin: 0;
}

.dm-refonte .site.grid-container,
.dm-refonte .site-content {
	max-width: none;
}

.dm-m {
	--dm-nuit: #14273a;
	--dm-ardoise: var(--accent, #5c7a99);
	--dm-brume: #eef3f7;
	--dm-signal: var(--accent-3, #cc5252);
	--dm-encre: #1d2a36;
	--dm-gris: #5b6875;
	--dm-rayon: clamp(14px, 1.2vw, 22px);
	--dm-ombre: 0 2.4vh 5vh rgba(20, 39, 58, 0.14);
	display: flex;
	flex-direction: column;
	gap: 12vh;
	box-sizing: border-box;
	width: min(88vw, 84rem);
	margin: 0 auto;
	padding: 12vh 0 14vh;
	font-family: "Lato", system-ui, sans-serif;
	font-size: clamp(1.05rem, 1.2vw, 1.2rem);
	color: var(--dm-encre);
}

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

.dm-m p {
	margin: 0 0 2.2vh;
	color: var(--dm-gris);
	line-height: 1.7;
	text-align: justify;
	hyphens: auto;
}

.dm-m p:last-child {
	margin-bottom: 0;
}

.dm-m strong {
	color: var(--dm-encre);
	font-weight: 700;
}

.dm-m figure {
	margin: 0;
}

.dm-m img {
	display: block;
	width: 100%;
}

/* ---------- Titres ---------- */
.dm-m__titre {
	margin: 0 0 3.5vh;
	font-family: "Noto Serif", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.35rem, 1.8vw, 1.85rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--dm-nuit);
	text-wrap: balance;
}

/* ---------- Note kk-star-ratings ---------- */
.dm-m .kk-star-ratings {
	margin: 0;
}

/* ---------- Boutons ---------- */
.dm-m__cta {
	text-align: center;
}

.dm-m a.dm-m__bouton,
.dm-m a.dm-m__bouton:visited {
	color: #fff;
}

.dm-m__bouton {
	display: inline-flex;
	align-items: center;
	gap: 0.8vw;
	padding: 2vh 2.8vw;
	border-radius: 999px;
	background: var(--dm-signal);
	color: #fff;
	font-size: clamp(0.9rem, 0.95vw, 1rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 1.2vh 3vh rgba(204, 82, 82, 0.3);
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.dm-m__bouton span {
	transition: transform 0.2s;
}

.dm-m__bouton:hover,
.dm-m__bouton:focus-visible {
	color: #fff;
	background: #b84646;
	transform: translateY(-2px);
	box-shadow: 0 1.6vh 3.6vh rgba(204, 82, 82, 0.38);
}

.dm-m__bouton:hover span {
	transform: translateX(4px);
}

.dm-m__bouton:focus-visible {
	outline: 3px solid var(--dm-nuit);
	outline-offset: 3px;
}

/* ---------- Apparition au défilement (navigateurs compatibles) ---------- */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.dm-m__reveal {
			animation: dm-m-apparition linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

@keyframes dm-m-apparition {
	from {
		opacity: 0;
		transform: translateY(4vh);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1024px) {
	.dm-m {
		gap: 8vh;
		width: 90vw;
		padding: 7vh 0 9vh;
	}

	.dm-m__bouton {
		gap: 2vw;
		padding: 2vh 8vw;
	}
}
