/* Positions déterminées par l'ordre éditorial, jamais par une largeur stockée. */
.editorial-grid { --editorial-gap: clamp(6px, 0.65vw, 12px); margin: var(--editorial-gap); color: var(--color-text); }
.editorial-grid__list { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); grid-template-rows: clamp(20rem, 29vw, 36rem) clamp(18rem, 22vw, 28rem); gap: var(--editorial-gap); margin: 0; padding: 0; list-style: none; }
.editorial-grid__item { position: relative; min-width: 0; isolation: isolate; }
.editorial-grid__item:nth-child(1) { grid-column: span 10; }
.editorial-grid__item:nth-child(2) { grid-column: span 4; }
.editorial-grid__item:nth-child(3) { grid-column: span 6; }
.editorial-grid__item:nth-child(4), .editorial-grid__item:nth-child(5) { grid-column: span 7; }
.editorial-grid__item:nth-child(6) { grid-column: span 6; }
.editorial-grid--count-1 .editorial-grid__list, .editorial-grid--count-2 .editorial-grid__list, .editorial-grid--count-3 .editorial-grid__list { grid-template-rows: clamp(20rem, 29vw, 36rem); }
.editorial-grid--count-1 .editorial-grid__item { grid-column: 1 / -1; }
.editorial-grid--count-2 .editorial-grid__item:first-child { grid-column: span 12; }
.editorial-grid--count-2 .editorial-grid__item:last-child { grid-column: span 8; }
.editorial-grid--count-4 .editorial-grid__item:nth-child(4) { grid-column: 1 / -1; }
.editorial-grid--count-5 .editorial-grid__item:nth-child(n+4) { grid-column: span 10; }
.editorial-grid__photo, .editorial-grid__image { height: 100%; }
.editorial-grid__photo { position: relative; overflow: hidden; }
.editorial-grid__image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focal-x, 50%) var(--hero-focal-y, 50%); }
.editorial-grid__item--captioned .editorial-grid__photo::after { position: absolute; inset: 25% 0 0; z-index: 1; background: linear-gradient(transparent 20%, rgb(0 0 0 / 10%) 50%, rgb(0 0 0 / 62%)); content: ""; pointer-events: none; }
.editorial-grid__caption { position: absolute; inset: auto clamp(1.1rem, 2.1vw, 2.75rem) clamp(1.25rem, 2.1vw, 2.75rem); z-index: 2; }
.editorial-grid__number { display: block; margin-bottom: 0.7rem; font-size: 0.625rem; line-height: 1.2; letter-spacing: 0.14em; color: rgb(245 242 235 / 75%); }
.editorial-grid--hide-numbers .editorial-grid__number { display: none; }
.editorial-grid__title { margin: 0; font-family: var(--font-body); font-size: clamp(1.5rem, 2.2vw, 2.75rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.035em; color: var(--color-text); }
.editorial-grid:not(.editorial-grid--count-2) .editorial-grid__item--wide .editorial-grid__title { font-size: clamp(1.75rem, 2.8vw, 3.5rem); }
.editorial-grid__subtitle { margin: 0.75rem 0 0; font-size: clamp(0.5625rem, 0.65vw, 0.6875rem); line-height: 1.7; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(245 242 235 / 78%); }
.editorial-grid__link { position: absolute; inset: 0; z-index: 3; }
.editorial-grid__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -6px; }
/* Deux mosaïques d'Étape successives remplissent ensemble une scène entière. */
@media (min-width: 1025px) {
	.single-nam_etape .editorial-grid { margin: 0; padding: calc(var(--editorial-gap) / 2) var(--editorial-gap); min-height: calc(var(--story-scene-height) / 2); background: var(--color-background); }
	.single-nam_etape .editorial-grid__list { height: calc(var(--story-scene-height) / 2 - var(--editorial-gap)); grid-template-rows: minmax(0, 29fr) minmax(0, 22fr); }
	.single-nam_etape .editorial-grid:is(.editorial-grid--count-1, .editorial-grid--count-2, .editorial-grid--count-3) .editorial-grid__list { grid-template-rows: minmax(0, 1fr); }
}
/* Retrouver le zoom discret des vignettes liées, sans déplacement de la grille. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.editorial-grid__image img { transition: transform 900ms ease; }
	.editorial-grid__item:has(.editorial-grid__link):hover .editorial-grid__image img { transform: scale(1.015); }
}
@media (min-width: 62.001rem) {
	.editorial-grid--wide-center .editorial-grid__item:nth-child(1) { grid-column: span 4; }
	.editorial-grid--wide-center .editorial-grid__item:nth-child(2) { grid-column: span 10; }
	.editorial-grid--wide-right .editorial-grid__item:nth-child(1) { grid-column: span 6; }
	.editorial-grid--wide-right .editorial-grid__item:nth-child(3) { grid-column: span 10; }
	.editorial-grid--count-2.editorial-grid--wide-right .editorial-grid__item:first-child { grid-column: span 8; }
	.editorial-grid--count-2.editorial-grid--wide-right .editorial-grid__item:last-child { grid-column: span 12; }
}
@media (max-width: 62rem) {
	.editorial-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
	.editorial-grid .editorial-grid__item:nth-child(n) { grid-column: span 1; aspect-ratio: 4 / 3; }
	.editorial-grid .editorial-grid__item:nth-child(3n+1), .editorial-grid--count-2 .editorial-grid__item:last-child, .editorial-grid--count-5 .editorial-grid__item:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.editorial-grid__title { font-size: clamp(1.5rem, 3vw, 2.5rem); }
	.editorial-grid__caption { inset-inline: 1.5rem; bottom: 1.5rem; }
}
@media (max-width: 34rem) {
	.editorial-grid__list { grid-template-columns: minmax(0, 1fr); }
	.editorial-grid .editorial-grid__item:nth-child(n) { grid-column: 1; aspect-ratio: 3 / 2; }
	.editorial-grid .editorial-grid__item:nth-child(1), .editorial-grid .editorial-grid__item:nth-child(5) { aspect-ratio: 5 / 4; }
	.editorial-grid .editorial-grid__item:nth-child(3) { aspect-ratio: 4 / 3; }
	.editorial-grid .editorial-grid__item:nth-child(4) { aspect-ratio: 16 / 9; }
	.editorial-grid__caption { inset-inline: 1.1rem; bottom: 1.25rem; }
	.editorial-grid .editorial-grid__title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
	.editorial-grid__subtitle { margin-top: 0.5rem; font-size: 0.5625rem; line-height: 1.5; }
	.editorial-grid__number { margin-bottom: 0.5rem; }
}
