/* ==========================================================================
   Page « La démarche » (page-la-demarche.php)
   Reprend le système de l'accueil : .wrap, .sec-title, .sec-text, .cta, .arch.
   Sections pleine largeur en alternance Crème / Encre.
   ========================================================================== */

/* Écriture manuscrite de la lettre (Handlee) : auto-hébergée dans assets/fonts/fonts.css, aucune requête vers Google. */

.dm {
	--dm-y: clamp(80px, 12vh, 144px);
	--dm-sable: #f2e4cd; /* Crème teinté de Sable (accueil, .articles) */
	--dm-line: rgba(14, 34, 49, .14);
	--dm-accent: var(--btn-icon);
	--dm-g: clamp(48px, 7vw, 128px); /* gouttière entre colonne titre et colonne texte */
	overflow-x: clip;
}

/* ---------- Sections ---------- */
.dm-sec {
	padding: var(--dm-y) 0;
	background: var(--b-creme);
	color: var(--b-encre);
}
.dm-sec--dark {
	--dm-line: var(--cream-line);
	--dm-accent: var(--b-lumiere);
	background: var(--b-encre);
	color: var(--b-creme);
}
.dm-sec--dark .sec-title { color: var(--b-creme); }
.dm-sec--dark .sec-title__muted { color: var(--cream-muted); }
.dm-sec--dark .sec-text { color: var(--cream-text); }
.dm-sec--dark :focus-visible { outline-color: var(--b-creme); }

/* Titre à gauche, texte à droite (même logique que l'en-tête des actualités) */
.dm-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 32px var(--dm-g);
	align-items: start;
}
.dm-split__body .sec-text:first-child { margin-top: 0; }
.dm-split__body .sec-text { max-width: 60ch; }

/* ---------- 1. Introduction (template-parts/page-hero.php) : exactement un écran ----------
   L’en-tête fixe (var(--header-h)) passe par-dessus le haut de la section : la section remonte
   sous lui (même fond Crème), mesure 100svh et centre son contenu dans la zone visible. */
.dm .page-hero {
	--dm-hdr: var(--header-h);
	--dm-hero-pad: clamp(24px, 5vh, 56px);
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	margin-top: calc(-1 * var(--dm-hdr));
	padding: calc(var(--dm-hdr) + var(--dm-hero-pad)) 0 var(--dm-hero-pad);
}
.dm .page-hero__grid {
	width: 100%;
	grid-template-columns: minmax(0, 1fr) auto; /* l'arche prend sa largeur (~35 %), le texte le reste */
	gap: 40px clamp(40px, 5vw, 96px);
}
/* Titre large : deux lignes à 1440 px (une par moitié du titre) */
.dm .page-hero__title { font-size: clamp(40px, min(4.1vw, 7.6vh), 64px); }
.dm .page-hero__lead { font-size: clamp(19px, 1.45vw, 22px); }
.dm .page-hero__lead { margin-top: clamp(20px, 3vh, 28px); }
.dm .page-hero__text { margin-top: clamp(12px, 1.8vh, 18px); }
/* Grande arche, centrée sur la zone visible, collée au bord droit de .wrap.
   (Sa courbe basse passe au-dessus de l'encoche « défiler ».) */
.dm .page-hero__media.arch {
	height: min(78vh, calc(100vh - var(--dm-hdr) - 2 * var(--dm-hero-pad)), 780px); /* repli iOS < 15.4 (sans svh) */
	height: min(78svh, calc(100svh - var(--dm-hdr) - 2 * var(--dm-hero-pad)), 780px);
	align-self: center;
	justify-self: end;
}
/* Texte long (corrections de la CAPA) : la section peut dépasser un écran ; arche centrée sur le texte */
.dm .page-hero__grid { align-items: center; }
.dm .page-hero__text { max-width: 54ch; } /* ~75 signes par ligne */
.dm .page-hero__actions { margin-top: clamp(28px, 4vh, 40px); }

/* Encoche bas-droite (motif de l'accueil) posée sur le haut de la section suivante */
.dm-chapitre { position: relative; }
.dm-corner {
	position: absolute;
	right: 0;
	bottom: 100%;
	z-index: 2;
	padding: 12px;
	background: var(--b-encre);
	border-top-left-radius: 32px;
}
.dm-corner::before,
.dm-corner::after {
	content: "";
	position: absolute;
	width: 28px;
	height: 28px;
	background: radial-gradient(circle at 0 0, transparent 27.5px, var(--b-encre) 28px);
}
.dm-corner::before { right: 0; top: -28px; }
.dm-corner::after { left: -28px; bottom: 0; }
.dm-corner .hero__scroll { min-width: 60px; min-height: 60px; }
.dm-corner .hero__scroll:focus-visible { outline-color: var(--b-creme); }
#dm-chapitre { scroll-margin-top: 0; }

/* ---------- 2. Notre territoire, notre avenir, votre voix : vidéo + lettre ---------- */
.dm-letter__title { margin-bottom: clamp(40px, 7vh, 80px); }
.dm-letter {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 40px var(--dm-g);
	align-items: start;
}
/* Vidéo centrée verticalement sur la lettre */
.dm-letter__media { align-self: center; }
.dm .dm-letter .dm-video { margin: 0 auto; }
.dm-letter__text .sec-text { max-width: 60ch; margin: 18px 0 0; }
.dm-letter__text .sec-text:first-child { margin-top: 0; }
.dm-letter__text .dm-letter__salutation {
	margin-bottom: 6px;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: clamp(20px, 1.7vw, 24px);
	line-height: 1.35;
	color: var(--b-creme);
}
.dm-letter__text .sec-text:last-child { color: var(--b-creme); font-weight: 500; }

/* Vidéo : cadre portrait 9/16 dans l'anneau dégradé de la charte (demande CAPA du 13/11/2026).
   Bureau : centré, hauteur du cadre ≤ 80 % de l'écran (la largeur en découle). Mobile : toute la largeur.
   Une vidéo paysage (démo actuelle) remplit le cadre (object-fit: cover) ; en plein écran, elle est montrée entière. */
.dm-video {
	--dm-video-ring: 10px;
	position: relative;
	width: min(100%, max(300px, calc(80vh * 9 / 16 + 2 * var(--dm-video-ring))));
	width: min(100%, max(300px, calc(80svh * 9 / 16 + 2 * var(--dm-video-ring))));
	margin: clamp(56px, 9vh, 104px) auto 0;
	padding: var(--dm-video-ring);
	border-radius: 44px;
	background: linear-gradient(90deg, var(--b-lumiere) 0%, var(--b-corail) 34%, var(--b-corail) 58%, var(--b-maquis) 84%, var(--b-mer) 100%);
}
.dm-video__frame {
	position: relative;
	container: dm-player / inline-size; /* commandes adaptées à la largeur du cadre, pas de l'écran */
	aspect-ratio: 9 / 16;
	border-radius: 34px;
	overflow: hidden;
	isolation: isolate;
	background: var(--b-encre);
	color: var(--b-creme);
}
.dm-video__poster,
.dm-video__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.dm-video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 50% 50%;
}
.dm-video__media { object-fit: cover; background: var(--b-encre); }
.dm-video__caption {
	margin: 16px 0 0;
	font-family: var(--font-brand-text);
	font-size: 14px;
	line-height: 1.45;
	color: var(--cream-muted);
}

/* Voile sur l'affiche, avant la lecture */
.dm-video__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(14, 34, 49, .55), rgba(14, 34, 49, .05) 55%);
	transition: opacity .4s ease;
}
.dm-video--placeholder .dm-video__frame::after { background: radial-gradient(50% 60% at 50% 55%, rgba(14, 34, 49, .82), rgba(14, 34, 49, .42)); }
.dm-video.is-playing .dm-video__frame::after,
.dm-video__frame.is-started::after { opacity: 0; }

/* Sans JavaScript : commandes natives seulement */
.dm-player__start[hidden],
.dm-player__controls[hidden] { display: none; }

/* Bouton de départ : CTA de la charte (carré corail + pastille), en grand */
.dm-player__start {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: max-content;
	height: max-content;
	margin: auto;
	cursor: pointer;
}
.dm-player__start .cta__icon { padding: 26px; border-radius: 26px; }
.dm-player__start .cta__icon svg { width: 28px; height: 28px; margin: -2px -2px -2px 0; color: #fff; }
.dm-player__start .cta__label { padding: 0 30px; font-size: 18px; gap: 12px; }
.dm-player__start-dur:not(:empty) { font-weight: 400; opacity: .9; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
	.dm-player__start:hover .cta__icon { transform: scale(1.06); }
}
.dm-player__start:focus-visible .cta__icon { transform: scale(1.06); }
.dm .dm-video .dm-player__start:focus-visible { outline: 3px solid var(--b-creme); outline-offset: 5px; border-radius: 60px; }
.dm-video__frame.is-started .dm-player__start { display: none; }
.dm-video__frame.is-ended .dm-player__start { display: inline-flex; }

/* Barre de commandes */
.dm-player__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 48px 18px 14px;
	background: linear-gradient(0deg, rgba(14, 34, 49, .88), rgba(14, 34, 49, 0));
	transition: opacity .35s ease, transform .35s ease;
}
.dm-video__frame:not(.is-started) .dm-player__controls { display: none; }
.dm-video__frame.is-idle .dm-player__controls { opacity: 0; transform: translateY(8px); }
.dm-video__frame.is-idle { cursor: none; }
.dm-player__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--b-creme);
	cursor: pointer;
	transition: background-color .2s ease;
}
@media (hover: hover) { .dm-player__btn:hover { background: var(--cream-fill); } } /* pas d'état « collé » après un toucher (iOS) */
.dm-player__btn[hidden],
.dm-player__volume[hidden] { display: none; }
.dm-player__btn:focus-visible { outline: 2px solid var(--b-creme); outline-offset: 1px; }
.dm-player__btn[aria-pressed="true"][data-act="cc"] { background: var(--cream-fill); }
.dm-player__i-pause, .dm-player__i-muted, .dm-player__i-fs-exit { display: none; }
.is-playing .dm-player__i-play { display: none; }
.is-playing .dm-player__i-pause { display: block; }
.is-muted .dm-player__i-sound { display: none; }
.is-muted .dm-player__i-muted { display: block; }
.is-fullscreen .dm-player__i-fs { display: none; }
.is-fullscreen .dm-player__i-fs-exit { display: block; }
.dm-player__time {
	flex: none;
	min-width: 88px;
	padding: 0 6px;
	font-family: var(--font-brand);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--b-creme);
}

/* Curseurs (position, volume) */
.dm-player__progress,
.dm-player__volume {
	--p: 0%;
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.dm-player__volume { flex: 0 0 88px; --p: 100%; }
.dm-player__progress::-webkit-slider-runnable-track,
.dm-player__volume::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--b-corail) var(--p), rgba(252, 241, 218, .3) var(--p));
}
.dm-player__progress::-moz-range-track,
.dm-player__volume::-moz-range-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--b-corail) var(--p), rgba(252, 241, 218, .3) var(--p));
}
.dm-player__progress::-webkit-slider-thumb,
.dm-player__volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border: 0;
	border-radius: 50%;
	background: var(--b-creme);
	box-shadow: 0 1px 6px rgba(6, 16, 24, .4);
	transition: transform .2s ease;
}
.dm-player__progress::-moz-range-thumb,
.dm-player__volume::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: var(--b-creme);
}
@media (hover: hover) {
	.dm-player__progress:hover::-webkit-slider-thumb { transform: scale(1.25); }
}
.dm-player__progress:focus-visible::-webkit-slider-thumb { transform: scale(1.25); }
.dm-player__progress:focus-visible,
.dm-player__volume:focus-visible { outline: 2px solid var(--b-creme); outline-offset: 2px; border-radius: 8px; }

/* Plein écran : le cadre occupe tout l'écran, la vidéo n'est plus rognée */
.dm-video__frame:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.dm-video__frame:fullscreen .dm-video__media { object-fit: contain; background: #000; }
.dm-video__frame:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.dm-video__frame:-webkit-full-screen .dm-video__media { object-fit: contain; background: #000; }

/* Cadre étroit (portrait au bureau, mobile) : bouton de départ compact ; position sur toute la largeur, boutons dessous */
@container dm-player (max-width: 560px) {
	.dm-player__start .cta__icon { padding: 16px; border-radius: 18px; }
	.dm-player__start .cta__icon svg { width: 22px; height: 22px; }
	.dm-player__start .cta__label { padding: 0 20px; font-size: 15px; }
	.dm-player__controls { flex-wrap: wrap; gap: 0; padding: 20px 6px 2px; }
	.dm-player__progress { order: -1; flex: 0 0 calc(100% - 20px); height: 44px; margin: 0 10px; }
	.dm-player__time { min-width: 0; margin-right: auto; padding: 0 4px; font-size: 12px; }
	.dm-player__volume { flex: 0 1 72px; }
}

/* Emplacement réservé (aucune source, démo désactivée) */
.dm-video__soon {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	color: var(--b-creme);
}
.dm-video__tag {
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--b-creme);
	color: var(--b-encre);
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
}
.dm-video__note {
	max-width: 36ch;
	font-family: var(--font-brand-text);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.45;
	color: var(--b-creme);
}

/* ---------- 3. Un cap commun : les trois questions ----------
   Même grille que l'en-tête (.dm-split) : repère à gauche, question à droite. */
.dm-questions {
	list-style: none;
	margin: clamp(48px, 8vh, 88px) 0 0;
	padding: 0;
	border-bottom: 1px solid var(--dm-line);
}
.dm-q {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 16px var(--dm-g);
	align-items: center;
	position: relative;
	padding: clamp(24px, 4vh, 40px) 0;
}
/* Filet supérieur (tracé de gauche à droite à l'apparition, variable --rule) */
.dm-q::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--dm-line);
	transform: scaleX(var(--rule, 1));
	transform-origin: 0 50%;
}
.dm-q__mark { display: flex; align-items: center; gap: 20px; }
.dm-q__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 24px;
	background: var(--dm-sable);
	color: var(--b-encre);
}
.dm-icon { display: block; }
.dm-icon .acc { stroke: var(--dm-accent); }
.dm-q__icon .dm-icon { width: 44px; height: 44px; }
.dm-q__label { display: flex; align-items: baseline; gap: 12px; }
.dm-q__word {
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.2;
	color: var(--b-encre);
}
.dm-q__num {
	font-family: var(--font-brand);
	font-weight: 300;
	font-size: clamp(40px, 3.6vw, 56px);
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	color: var(--btn-label-to); /* 5.2:1 sur Crème */
}
.dm-q__text {
	margin: 0;
	max-width: 44ch;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: clamp(19px, 1.6vw, 23px);
	line-height: 1.38;
	letter-spacing: -.01em;
	color: var(--b-encre);
	text-wrap: pretty;
}

/* ---------- 4. D'ici. Avec tous. Vers l'avenir. ---------- */
.dm-entrees__title { margin-bottom: clamp(40px, 7vh, 80px); }
.dm-entrees__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--dm-line);
}
.dm-entree {
	display: grid;
	/* 1re colonne = colonne titre de .dm-split : le texte part du même bord que les autres sections */
	--dm-g2: clamp(32px, 4vw, 64px); /* gouttière texte / photo */
	grid-template-columns: calc((100% - var(--dm-g)) * 5 / 11 + var(--dm-g) - var(--dm-g2)) minmax(0, 1fr) clamp(200px, 18vw, 272px);
	grid-template-areas: "title text photo";
	gap: 24px var(--dm-g2);
	align-items: center;
	padding: clamp(32px, 5vh, 52px) 0;
	border-top: 1px solid var(--dm-line);
}
.dm-entree__title { grid-area: title; margin: 0; }
.dm-entree__co {
	display: block;
	font-family: var(--font-brand);
	font-weight: 600;
	font-size: clamp(52px, 5.6vw, 92px);
	line-height: .98;
	letter-spacing: -.025em;
	color: var(--b-creme);
	white-space: nowrap;
	font-kerning: none; /* même chasse découpé (SplitText) ou non : pas de saut de mise en page */
}
.dm-entree__fr {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	color: var(--b-lumiere);
}
.dm-entree__fr::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--b-corail);
	transform: scaleX(var(--dash, 1)); /* tracé animé (JS) */
	transform-origin: 0 50%;
}
.dm-entree__text {
	grid-area: text;
	margin: 0;
	font-family: var(--font-brand-text);
	font-size: 17px;
	line-height: 1.6;
	color: var(--cream-text);
	text-wrap: pretty;
}
/* Photo en pilule horizontale (anneau .arch::before, dégradé horizontal) */
.dm-entree__photo.arch {
	--ring-w: 6px;
	grid-area: photo;
	aspect-ratio: 2 / 1;
}
.dm-entree__photo.arch::before {
	background: linear-gradient(90deg, var(--b-lumiere) 0%, var(--b-corail) 40%, var(--b-maquis) 80%, var(--b-mer) 100%);
}

/* ---------- 5. Frise ---------- */
.dm-frise { padding-bottom: clamp(88px, 13vh, 152px); }
.dm-steps { margin-top: clamp(56px, 9vh, 104px); }
.dm-steps__list {
	--dot: 64px;
	--gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gap);
}
.dm-step {
	--seg: 1; /* tracé du segment vers l'étape suivante (animé au défilement) */
	position: relative;
}
/* Segment vers l'étape suivante : base pointillée + tracé dégradé */
.dm-step:not(:last-child)::before,
.dm-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--dot) / 2 - 1px);
	left: calc(var(--dot) + 8px);
	width: calc(100% + var(--gap) - var(--dot) - 16px);
	height: 2px;
	border-radius: 2px;
}
/* Base du tracé : pointillé (chemin à parcourir) */
.dm-step:not(:last-child)::after {
	height: 0;
	border-top: 2px dashed rgba(14, 34, 49, .3);
	border-radius: 0;
}
.dm-step:not(:last-child)::before {
	z-index: 1;
	height: 4px;
	top: calc(var(--dot) / 2 - 2px);
	transform: scaleX(var(--seg));
	transform-origin: 0 50%;
}
.dm-step:nth-child(1)::before { background: linear-gradient(90deg, var(--b-lumiere), var(--b-corail)); }
.dm-step:nth-child(2)::before { background: linear-gradient(90deg, var(--b-corail), var(--b-maquis)); }
.dm-step:nth-child(3)::before { background: linear-gradient(90deg, var(--b-maquis), var(--b-mer)); }

.dm-step__dot {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--dot);
	height: var(--dot);
	border-radius: 50%;
	background: var(--b-creme);
	border: 2px solid var(--b-encre);
	color: var(--b-encre);
	--dm-accent: var(--btn-icon);
}
.dm-step__dot .dm-icon { width: 34px; height: 34px; }
.dm-step.is-done .dm-step__dot { background: var(--b-encre); color: var(--b-creme); --dm-accent: var(--b-lumiere); }
.dm-step.is-current .dm-step__dot {
	background: var(--btn-icon);
	border-color: var(--btn-icon);
	color: #fff;
	--dm-accent: var(--b-lumiere);
}
/* Étape en cours : halo */
.dm-step.is-current .dm-step__dot::after {
	content: "";
	position: absolute;
	inset: -9px;
	border-radius: 50%;
	border: 2px solid var(--b-corail);
	opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
	.dm-step.is-current .dm-step__dot::after { animation: dm-halo 2.6s cubic-bezier(.2, .7, .2, 1) infinite; }
}
@keyframes dm-halo {
	0% { transform: scale(.9); opacity: .7; }
	70%, 100% { transform: scale(1.35); opacity: 0; }
}

.dm-step__body { margin-top: 28px; padding-right: 12px; }
/* Badge posé au-dessus du tracé, à droite de la pastille : les dates restent alignées */
.dm-step__badge {
	position: absolute;
	top: calc(var(--dot) / 2 - 38px);
	left: calc(var(--dot) + 16px);
	z-index: 2;
	display: inline-block;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--btn-icon);
	color: #fff;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	letter-spacing: .02em;
}
.dm-step__when {
	margin: 0;
	font-family: var(--font-brand);
	font-weight: 600;
	font-size: clamp(19px, 1.5vw, 22px);
	line-height: 1.2;
	color: var(--b-encre);
	text-wrap: balance;
}
.dm-step__what {
	margin: 8px 0 0;
	font-family: var(--font-brand-text);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink-text);
	max-width: 30ch;
}
.dm-step.is-current .dm-step__what { color: var(--b-encre); font-weight: 500; }

.dm-end {
	display: flex;
	margin-top: clamp(56px, 9vh, 96px);
	padding-top: clamp(32px, 5vh, 48px);
	border-top: 1px solid var(--dm-line);
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
	.dm-entree {
		grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 240px);
		grid-template-areas:
			"title photo"
			"text photo";
	}
	.dm-entree__text { max-width: 60ch; }
}
@media (max-width: 991px) {
	/* Vidéo puis lettre, empilées */
	.dm-letter { grid-template-columns: 1fr; gap: 36px; }
	.dm-split { grid-template-columns: 1fr; }
	.dm-q { grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; }
	.dm-q__text { max-width: none; }
	.dm-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.dm-step:nth-child(2)::before, .dm-step:nth-child(2)::after { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.dm { --dm-y: 72px; }
	/* Introduction : un écran, photo pilule 2/1 en bas */
	.dm .page-hero { --dm-hero-pad: 24px; }
	.dm .page-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.dm .page-hero__title { font-size: clamp(32px, min(9.4vw, 4.6vh), 40px); }
	.dm .page-hero__lead { margin-top: 16px; font-size: 17px; line-height: 1.5; }
	.dm .page-hero__text { margin-top: 10px; font-size: 15px; line-height: 1.5; }
	.dm .page-hero__media.arch { order: -1; width: 100%; height: auto; justify-self: stretch; }
	.dm-corner { display: none; }

	.dm-video { --dm-video-ring: 6px; width: 100%; margin-top: 48px; border-radius: 28px; }
	.dm-video__frame { border-radius: 22px; }
	.dm-video__soon { gap: 8px; padding: 16px; }
	.dm-video__note { font-size: 14px; max-width: 30ch; }
	/* Commandes : voir le bloc @container dm-player (cadre étroit) */
	.dm-player__volume { display: none; } /* volume matériel sur mobile ; le bouton « muet » reste */

	.dm-q {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: 4px 18px;
		align-items: start;
		padding: 28px 0;
	}
	.dm-q__mark { display: contents; }
	.dm-q__icon { grid-column: 1; grid-row: 1 / span 2; }
	.dm-q__label { grid-column: 2; grid-row: 1; gap: 8px; }
	.dm-q__num { font-size: 30px; }
	.dm-q__word { font-size: 18px; }
	.dm-q__text { grid-column: 2; grid-row: 2; }
	.dm-q__icon { width: 56px; height: 56px; border-radius: 18px; }
	.dm-q__icon .dm-icon { width: 34px; height: 34px; }
	.dm-q__text { font-size: 17px; font-weight: 400; line-height: 1.5; }

	.dm-entree {
		grid-template-columns: 1fr;
		grid-template-areas:
			"photo"
			"title"
			"text";
		gap: 20px;
		padding: 36px 0 40px;
	}
	.dm-entree__co { font-size: clamp(42px, 12.6vw, 60px); }
	.dm-entree__fr { font-size: 18px; margin-top: 10px; }
	.dm-entree__text { font-size: 16px; }
	.dm-entree__photo.arch { width: 100%; aspect-ratio: 2 / 1; }

	/* Frise verticale */
	.dm-steps__list { --dot: 56px; grid-template-columns: 1fr; gap: 0; }
	.dm-step {
		display: grid;
		grid-template-columns: var(--dot) minmax(0, 1fr);
		gap: 20px;
		padding-bottom: 36px;
	}
	.dm-step:last-child { padding-bottom: 0; }
	.dm-step:nth-child(2)::before, .dm-step:nth-child(2)::after { display: block; }
	.dm-step:not(:last-child)::before,
	.dm-step:not(:last-child)::after {
		top: calc(var(--dot) + 6px);
		left: calc(var(--dot) / 2 - 1px);
		width: 2px;
		height: auto;
		bottom: 6px;
	}
	.dm-step:not(:last-child)::after { width: 0; border-top: 0; border-left: 2px dashed rgba(14, 34, 49, .3); }
	.dm-step:not(:last-child)::before {
		left: calc(var(--dot) / 2 - 2px);
		width: 4px;
		top: calc(var(--dot) + 6px);
		transform: scaleY(var(--seg));
		transform-origin: 50% 0;
	}
	.dm-step:nth-child(1)::before { background: linear-gradient(180deg, var(--b-lumiere), var(--b-corail)); }
	.dm-step:nth-child(2)::before { background: linear-gradient(180deg, var(--b-corail), var(--b-maquis)); }
	.dm-step:nth-child(3)::before { background: linear-gradient(180deg, var(--b-maquis), var(--b-mer)); }
	.dm-step__dot .dm-icon { width: 30px; height: 30px; }
	.dm-step__body { margin-top: 0; padding: 4px 0 0; }
	.dm-step__badge { position: static; margin-bottom: 10px; }
	.dm-step__what { max-width: none; }

	/* Bouton de fin aligné à droite (convention de l'accueil) */
	.dm-end { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
	.dm-video__frame::after, .dm-player__controls, .dm-player__btn,
	.dm-player__start .cta__icon, .dm-player__progress::-webkit-slider-thumb { transition: none; }
}

/* ==========================================================================
   Respiration (retour : « pages trop chargées ») — espacements uniquement,
   aucun contenu ajouté ni retiré. Placé en fin de fichier : remplace les valeurs ci-dessus.
   ========================================================================== */
.dm { --dm-y: clamp(96px, 12vh, 160px); }
.dm-split { row-gap: 40px; }
.dm-split__body .sec-text + .sec-text { margin-top: 22px; }

/* Introduction : plus d'air autour du titre, du chapeau, des paragraphes et du bouton */
.dm .page-hero { --dm-hero-pad: clamp(48px, 8vh, 96px); }
.dm .page-hero__grid { column-gap: clamp(56px, 7vw, 128px); }
.dm .page-hero__lead { margin-top: clamp(28px, 4vh, 40px); max-width: 48ch; line-height: 1.55; }
.dm .page-hero__text { margin-top: 22px; line-height: 1.7; }
.dm .page-hero__lead + .page-hero__text { margin-top: clamp(28px, 4vh, 40px); }
.dm .page-hero__actions { margin-top: clamp(40px, 6vh, 56px); }

/* Lettre + vidéo */
.dm-letter__title { margin-bottom: clamp(56px, 9vh, 104px); }
.dm-letter { gap: 56px clamp(56px, 8vw, 140px); }
.dm-letter__text .sec-text { margin-top: 22px; line-height: 1.7; }
.dm-letter__text .sec-text:first-child { margin-top: 0; }
.dm-letter__text .dm-letter__salutation { margin-bottom: 12px; }

/* 4 points */
.dm-questions { margin-top: clamp(64px, 10vh, 112px); }
.dm-q { padding: clamp(36px, 6vh, 64px) 0; }
.dm-q__text { line-height: 1.5; }

/* D'ici. Avec tous. Vers l'avenir. */
.dm-entrees__title { margin-bottom: clamp(56px, 9vh, 104px); }
.dm-entree { padding: clamp(44px, 7vh, 72px) 0; }

/* Calendrier + bouton de fin */
.dm-frise { padding-bottom: clamp(112px, 14vh, 176px); }
.dm-steps { margin-top: clamp(72px, 11vh, 128px); }
.dm-step__what { line-height: 1.6; }
.dm-end { margin-top: clamp(72px, 11vh, 120px); padding-top: clamp(40px, 6vh, 64px); }

@media (max-width: 991px) {
	.dm-letter { gap: 48px; }
}
@media (max-width: 767px) {
	.dm { --dm-y: 80px; }
	.dm .page-hero { --dm-hero-pad: 32px; }
	.dm .page-hero__grid { row-gap: 32px; }
	.dm .page-hero__lead { margin-top: 20px; }
	.dm .page-hero__text { margin-top: 16px; line-height: 1.6; }
	.dm .page-hero__lead + .page-hero__text { margin-top: 24px; }
	.dm .page-hero__actions { margin-top: 36px; }
	.dm-letter__title { margin-bottom: 44px; }
	.dm-letter { gap: 40px; }
	.dm-letter__text .sec-text { margin-top: 18px; line-height: 1.65; }
	.dm-letter__text .sec-text:first-child { margin-top: 0; }
	.dm-questions { margin-top: 48px; }
	.dm-q { padding: 32px 0; }
	.dm-entrees__title { margin-bottom: 44px; }
	.dm-entree { padding: 44px 0 48px; }
	.dm-frise { padding-bottom: 96px; }
	.dm-steps { margin-top: 56px; }
	.dm-step { padding-bottom: 44px; }
	.dm-step:last-child { padding-bottom: 0; }
	.dm-end { margin-top: 56px; padding-top: 36px; }
}

/* ==========================================================================
   Audit UI/UX (12/11) : 4 points plus calmes, intitulé en h3, lecture mobile
   ========================================================================== */
/* Pictogramme sans tuile, intitulé « 1 question » d'un seul tenant (le chiffre en Corail) */
.dm-q__mark { gap: 18px; align-items: center; }
.dm-q__icon { width: auto; height: auto; background: none; border-radius: 0; }
.dm-q__icon .dm-icon { width: 40px; height: 40px; }
.dm-q__label {
	margin: 0;
	gap: .3em;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: clamp(20px, 1.7vw, 24px);
	line-height: 1.2;
	color: var(--b-encre);
	text-wrap: balance;
}
.dm-q__label .dm-q__num,
.dm-q__label .dm-q__word { font: inherit; letter-spacing: 0; }
.dm-q__label .dm-q__num { color: var(--btn-label-to); font-weight: 600; }
.dm-q__text { font-weight: 400; color: var(--b-encre); }

@media (max-width: 767px) {
	.dm-q__icon { width: auto; height: auto; }
	.dm-q__icon .dm-icon { width: 34px; height: 34px; }
	.dm-q__label { font-size: 19px; }
	/* Corps de texte de l'introduction : 16 px minimum pour une lecture longue */
	.dm .page-hero__text { font-size: 16px; }
}

/* Images responsives (<picture> WebP + JPEG) : la balise <picture> ne doit pas créer de boîte,
   l'<img> garde le dimensionnement de .arch__window img. */
.dm .arch__window picture { display: contents; }

/* ==========================================================================
   Maquette Figma de l'équipe (1HlzhCB77VImWYFJ7uqPqA, nœud 35:287) — fait foi.
   Valeurs relevées à 1440 px ; placé en fin de fichier : remplace les réglages ci-dessus.
   ========================================================================== */

/* 1. Introduction : titre d'un seul ton, 6 paragraphes de même taille, arche à droite */
.dm .page-hero { --dm-hero-pad: 45px; }
.dm .page-hero__grid { column-gap: 5vw; }                       /* 72 px à 1440 */
.dm .page-hero__title + .page-hero__text { margin-top: 40px; }
.dm .page-hero__text { max-width: 834px; margin-top: 20px; font-size: 17px; line-height: 1.25; }

/* 2. Titre + vidéo à gauche, lettre en feuille de papier à droite */
.dm-letter {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 48px var(--dm-g);
	align-items: start;
}
.dm-letter__title { max-width: 9em; margin-bottom: 52px; }
.dm .dm-letter__media { width: calc(100% + .46 * var(--dm-g)); align-self: auto; } /* 604 px à 1440 */
.dm-letter__paper { position: relative; }
.dm-paper {
	position: relative;
	width: min(544px, 100%);
	margin: -52px 0 0 6.4%;
	padding: 42px 45px 57px 48px;
	background: #fffaf0;
	color: var(--b-encre);
	font-family: "Handlee", var(--font-brand-text);
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -.01em;
	transform: rotate(-1.5deg);
	transform-origin: 50% 50%;
}
.dm-paper p { margin: 0 0 20px; text-wrap: pretty; }
.dm-paper p:last-of-type { margin-bottom: 0; }
.dm-paper a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .dm-paper a:hover { color: var(--btn-label-to); } }
.dm-paper a:focus-visible { outline: 2px solid var(--b-encre); outline-offset: 2px; border-radius: 2px; }
/* Coin replié : la feuille elle-même est découpée en biais (aucun masque peint par-dessus),
   le rabat est un triangle posé exactement sur la découpe ; son ombre ne tombe que sur le papier
   (tout ce qui dépasse de la feuille est coupé par le clip-path). */
.dm-paper {
	--fold: 65px;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fold)), calc(100% - var(--fold)) 100%, 0 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fold)), calc(100% - var(--fold)) 100%, 0 100%);
}
.dm-paper__fold {
	position: absolute;
	right: 0;
	bottom: 0;
	width: var(--fold);
	height: var(--fold);
	pointer-events: none;
	filter: drop-shadow(-2px -2px 3px rgba(14, 34, 49, .16));
}
.dm-paper__fold > span {
	position: absolute;
	inset: 0;
	background: #ede2ca;
	-webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
	clip-path: polygon(0 0, 100% 0, 0 100%); /* angle droit en haut à gauche, hypoténuse = la découpe */
}

/* 3. Le projet de territoire en 4 points : 3 questions numérotées */
.dm-questions { margin-top: 72px; }
.dm-q { padding: 36px 0; align-items: center; }
.dm-q__mark { display: flex; align-items: center; gap: 20px; }
.dm-q__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 24px;
	background: var(--dm-sable);
	color: var(--b-encre);
}
.dm-q__icon .dm-icon { width: 44px; height: 44px; }
.dm-q__num {
	font-family: var(--font-brand);
	font-weight: 300;
	font-size: clamp(36px, 3.4vw, 52px);          /* 48.96 px à 1440 */
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--btn-label-to);
}
.dm-q__text {
	max-width: 585px;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: clamp(22px, 2.08vw, 30px);         /* 30 px à 1440 */
	line-height: 1.22;
	letter-spacing: -.01em;
	color: var(--b-encre);
}

/* 4. D'ici. Avec tous. Vers l'avenir. : colonnes 601 / 353 / 259 px, gouttière 57,6 px à 1440 */
.dm-entrees__title { margin-bottom: 63px; }
.dm-entree {
	grid-template-columns: minmax(0, 601fr) minmax(0, 353fr) minmax(0, 259fr);
	column-gap: 4vw;
	padding: 45px 0;
}
.dm-entree__photo.arch { width: 100%; }

/* 5. Calendrier + bouton de fin */
.dm-steps { margin-top: 81px; }
.dm-end { margin-top: 81px; padding-top: 45px; }
.dm-frise { padding-bottom: clamp(104px, 13vh, 176px); } /* 117 px à 900 px de haut */

@media (max-width: 1100px) {
	.dm-entree {
		grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 240px);
		column-gap: clamp(32px, 4vw, 64px);
	}
}
@media (max-width: 991px) {
	/* Lettre sous la vidéo */
	.dm-letter { grid-template-columns: 1fr; gap: 56px; }
	.dm .dm-letter__media { width: 100%; }
	.dm-paper { margin: 0; } /* au plus près de la vidéo : un seul ensemble */
	.dm-q { grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; }
}
@media (max-width: 767px) {
	.dm .page-hero__text { font-size: 16px; line-height: 1.5; margin-top: 16px; }
	.dm .page-hero__title + .page-hero__text { margin-top: 24px; }
	.dm-letter__title { margin-bottom: 36px; }
	.dm-paper {
		width: calc(100% - 8px);
		padding: 30px 26px 52px;
		font-size: 18px;
		line-height: 1.3;
		transform: rotate(-1deg);
	}
	.dm-paper p { margin-bottom: 16px; }
	.dm-paper { --fold: 46px; }

	.dm-questions { margin-top: 48px; }
	.dm-q { padding: 28px 0; align-items: start; }
	.dm-q__mark { display: contents; }
	.dm-q__icon { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 18px; }
	.dm-q__icon .dm-icon { width: 34px; height: 34px; }
	.dm-q__num { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 500; letter-spacing: .06em; line-height: 1.4; }
	.dm-q__text { grid-column: 2; grid-row: 2; font-size: 20px; font-weight: 500; line-height: 1.3; }

	.dm-entrees__title { margin-bottom: 44px; }
	.dm-entree { grid-template-columns: 1fr; padding: 40px 0 44px; }
	.dm-steps { margin-top: 56px; }
	.dm-end { margin-top: 56px; padding-top: 36px; }
	.dm-frise { padding-bottom: 96px; }
}
/* Mention « Vidéo provisoire » : une seule ligne sous la vidéo, comme le paragraphe de la maquette */
@media (min-width: 1400px) {
	.dm-letter .dm-video__caption { white-space: nowrap; } /* place disponible jusqu'à la feuille */
}
@media (min-width: 992px) {
	.dm-letter .dm-video__caption { margin-top: 16px; }
	/* Bas de section : plus d'espace que la maquette (45 px), demande du 13/11/2026 */
	.dm-chapitre { padding-bottom: clamp(96px, 9vw, 150px); } /* 130 px à 1440 : la feuille et la vidéo respirent avant la section suivante */
}

/* ==========================================================================
   Maquette Figma 40:621 — « Le projet de territoire en 4 points »
   pictogramme coloré 90 px + légende en capitales, texte 25 px ; séparateurs entre les lignes.
   ========================================================================== */
.dm-points { padding: 92px 0; }
.dm-points__title { margin-bottom: 55px; }
.dm-points__title span { display: inline; }
.dm-points__title .sec-title__muted::before { content: " "; }
.dm-points__intro { margin: -31px 0 55px; }
.dm-points__list { list-style: none; margin: 0; padding: 0; }
.dm-pt {
	--rule: 1;
	position: relative;
	display: flex;
	align-items: center;
	gap: 76px;
	padding: 25px 0;
}
.dm-pt + .dm-pt::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(14, 34, 49, .14);
	transform: scaleX(var(--rule));
	transform-origin: 0 50%;
}
.dm-pt__mark {
	flex: 0 0 210px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.dm-pt__icon { display: block; width: 90px; height: 90px; }
.dm-pt__label {
	margin: 0;
	min-height: 40px;
	font-family: var(--font-brand);
	font-weight: 600;
	font-size: 12px;
	line-height: 28px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: center;
	color: var(--b-encre);
}
.dm-pt__text {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: 25px;
	line-height: 34px;
	color: var(--b-encre);
	text-wrap: pretty;
}
/* Textes courts : mesure de la maquette (~595 px), alignés sur le pictogramme */
.dm-pt--short .dm-pt__text { flex: 0 1 595px; padding-bottom: 30px; }

@media (max-width: 1100px) {
	.dm-pt { gap: 48px; }
	.dm-pt__mark { flex-basis: 170px; }
	.dm-pt__text { font-size: 22px; line-height: 31px; }
}
@media (max-width: 767px) {
	.dm-points { padding: 72px 0; }
	.dm-points__title { margin-bottom: 36px; }
	.dm-points__title span { display: block; }
	.dm-points__title .sec-title__muted::before { content: none; }
	.dm-pt { align-items: flex-start; gap: 18px; padding: 24px 0; }
	.dm-pt__mark { flex: 0 0 84px; gap: 6px; }
	.dm-pt__icon { width: 64px; height: 64px; }
	.dm-pt__label { min-height: 0; font-size: 10.5px; line-height: 1.35; }
	.dm-pt__text, .dm-pt--short .dm-pt__text { flex: 1 1 auto; padding: 2px 0 0; font-size: 18px; line-height: 1.45; }
}

/* ==========================================================================
   Audit mobile (13/11) : affinages tablette / téléphone, sans changer la maquette.
   ========================================================================== */
/* Tablette portrait et téléphone en paysage (768-991 px) : l'arche prenait sa largeur de la hauteur
   d'écran (461 px sur 768 × 1024 → texte comprimé sur ~210 px ; 126 px en paysage 844 × 390).
   Sa largeur suit maintenant la largeur d'écran, la hauteur découle des proportions de l'arche. */
@media (min-width: 768px) and (max-width: 991px) {
	.dm .page-hero__media.arch { width: clamp(220px, 34vw, 320px); height: auto; }
}

@media (max-width: 767px) {
	/* Lettre : interlignage un peu plus ouvert pour l'écriture manuscrite */
	.dm-paper { line-height: 1.36; }

	/* Lecteur : barre de commandes plus compacte (110 → 84 px sur un cadre de ~180 px de haut) */
	.dm-player__controls { padding: 10px 4px 0; }
	.dm-player__progress { height: 34px; margin: 0 10px -4px; }

	/* 4 points : légende en capitales lisible (10,5 → 11,5 px) */
	.dm-pt__mark { flex-basis: 86px; }
	.dm-pt__label { font-size: 11.5px; }
}
/* Commandes masquées pendant la lecture : un toucher les fait réapparaître au lieu d'agir à l'aveugle */
.dm-video__frame.is-idle .dm-player__controls { pointer-events: none; }

/* Très petits écrans (320 px) : la colonne de texte des 4 points tombait à 178 px (12 lignes).
   Pictogramme + légende sur une ligne, texte pleine largeur dessous. */
@media (max-width: 359px) {
	.dm-pt { flex-direction: column; align-items: flex-start; gap: 14px; }
	.dm-pt__mark { flex: none; flex-direction: row; gap: 14px; }
	.dm-pt__icon { width: 56px; height: 56px; }
	.dm-pt__label { text-align: left; font-size: 12px; }
	.dm-paper { padding-left: 22px; padding-right: 22px; }
}

/* ==========================================================================
   iOS Safari / WebKit (13/11)
   ========================================================================== */
/* WebKit : overflow + border-radius ne rogne pas toujours une <video> en lecture ni un enfant
   transformé (coins carrés). Le masque force le rognage ; opaque partout, il ne masque rien. */
.dm-video__frame { -webkit-mask-image: -webkit-radial-gradient(white, black); }
.dm-video__frame:fullscreen { -webkit-mask-image: none; }
.dm-video__frame:-webkit-full-screen { -webkit-mask-image: none; }
/* Pas de rectangle gris au toucher sur les commandes du lecteur */
.dm-video__frame,
.dm-player__start,
.dm-player__btn,
.dm-player__progress { -webkit-tap-highlight-color: transparent; }
.dm-player__controls { -webkit-user-select: none; user-select: none; }
/* Écrans tactiles : iOS ne déplace le curseur de position que si le doigt part du bouton rond.
   Zone de prise de 28 px (bordure transparente), pastille visible inchangée (16 px). */
@media (pointer: coarse) {
	.dm-player__progress::-webkit-slider-thumb {
		width: 28px;
		height: 28px;
		margin-top: -12px;
		border: 6px solid transparent;
		background-clip: padding-box;
		box-shadow: none;
	}
}

/* ==========================================================================
   Vidéo portrait du président (13/11) : composition et bouton de lecture
   ========================================================================== */
/* Bureau : feuille calée sur le haut du titre (maquette), vidéo sous le titre, bord gauche aligné sur lui. */
@media (min-width: 992px) {
	/* Vidéo de la hauteur restante sous le titre, jusqu'au bas de la feuille (largeur déduite : 9/16). */
	.dm-letter { align-items: stretch; }
	.dm-letter__main { display: flex; flex-direction: column; }
	.dm .dm-letter__media { position: relative; flex: 1 1 auto; width: 100%; min-height: 420px; }
	.dm .dm-letter .dm-video {
		position: absolute;
		inset: 0 auto 0 0;
		width: auto;
		max-width: 100%;
		height: 100%;
		aspect-ratio: 9 / 16;
		margin: 0;
	}
	.dm .dm-letter .dm-video__frame { height: 100%; aspect-ratio: auto; }
	.dm-letter__paper { align-self: start; }
	/* Feuille au niveau du haut du titre, agrandie pour occuper la colonne et rejoindre le bas de la vidéo. */
	.dm-paper {
		width: min(720px, 100%);
		margin: 0;
		padding: clamp(42px, 3.6vw, 64px) clamp(45px, 4vw, 72px) clamp(57px, 4.6vw, 84px);
		font-size: clamp(20px, 1.7vw, 27px);
		line-height: 1.3;
		--fold: clamp(65px, 5.4vw, 90px);
	}
	.dm-paper p { margin-bottom: 1.15em; }
}
/* Tablette et mobile : vidéo puis lettre, empilées. Vidéo limitée à ~72 % de la hauteur d'écran
   (à 600 px de large elle faisait 970 px de haut), vidéo et feuille centrées sur le même axe. */
@media (max-width: 991px) {
	.dm-letter { row-gap: clamp(40px, 7vw, 64px); }
	.dm-letter__title { margin-bottom: clamp(28px, 5vw, 44px); }
	.dm .dm-letter .dm-video {
		width: min(100%, calc(72vh * 9 / 16 + 12px), 440px);
		width: min(100%, calc(72svh * 9 / 16 + 12px), 440px);
		margin: 0 auto;
	}
}
@media (min-width: 768px) and (max-width: 991px) {
	.dm-paper { width: min(600px, 100%); margin: 0 auto; }
}
