/* Actualités & presse (templates/page-news.php, template-parts/news/helpers.php, assets/js/news.js).
   A newspaper in the site's own world: the masthead with its folio rule, the filter bar (news-filters.css), « À la
   une », the outlets on a band, the dated index, the press space. The one authored moment is the lead story: its text
   sits on a panel of the page's colour that bites into the photo's lower left corner, the photo turning round the bite
   with rounded corners; on arrival the panel docks into the photo. Every layout is set here before the first paint and
   follows the light/dark choice and the world. news.js only adds .is-moving to the band (never with reduced motion);
   news-filters.js swaps the list when a filter changes and loads « Afficher plus ». Motion: transform and opacity. */

.gp-nw { overflow-x: clip; }
.gp-nw ::selection { background: var(--accent); color: var(--on-accent); }
.gp-nw time { font-variant-numeric: tabular-nums; }

/* ---------- Shared ---------- */
.gp-nw-h2 { margin: 0; font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3.6rem); }
/* Separator dots sit in the gap, left of each item; the one that starts a wrapped line falls outside and is clipped. */
.gp-nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 1.4em; overflow: hidden; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.gp-nw-meta > * { position: relative; }
.gp-nw-meta > * + *::before { content: ""; position: absolute; left: -.7em; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; translate: -50% -50%; }
.gp-nw-meta__tag { color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gp-nw-meta__tag::before, .gp-nw-meta__outlet::before { color: var(--muted); }
.gp-nw-meta__outlet { color: var(--ink); font-style: italic; font-weight: 700; }

/* ---------- Masthead ---------- */
.gp-nw-mast { padding-top: calc(var(--header-total) + clamp(28px, 5vw, 76px)); background: radial-gradient(ellipse 55% 70% at 88% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg); color: var(--ink); }
.gp-nw-mast__top { display: grid; gap: 18px 56px; align-items: end; }
.gp-nw-mast__title { max-width: 6.6em; margin: 0; font-size: clamp(2.8rem, 1.1rem + 6.2vw, 6rem); line-height: .9; }
.gp-nw-mast__lead { max-width: 44ch; margin: 0; color: var(--ink-2); }
.gp-nw-folio { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: clamp(28px, 4vw, 56px); padding: 18px 0 14px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.gp-nw-folio::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--ink); opacity: .55; }
.gp-nw-folio__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 1.6em; overflow: hidden; margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.gp-nw-folio__line > span { position: relative; }
.gp-nw-folio__line > span + span::before { content: "·"; position: absolute; left: -.8em; translate: -50% 0; color: var(--accent-ink); font-weight: 800; }
.gp-nw-folio__name { color: var(--ink); }
.gp-nw-folio__line time { text-transform: none; letter-spacing: .02em; }
@media (min-width: 980px) {
	.gp-nw-mast__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.gp-nw-mast__lead { padding-bottom: .35em; }
}

/* ---------- Filters ---------- */
.gp-nw-zone { padding-top: clamp(16px, 2.4vw, 32px); padding-bottom: var(--space-section, clamp(70px, 9vw, 130px)); } /* the room after the list, outside the stuck bar's travel: the bar leaves with the last row */
#gp-nw-index { scroll-margin-top: 96px; } /* a link to the list lands under the stuck bar (the band's links open #gp-nw-filters: the bar in its place) */

/* ---------- À la une ---------- */
.gp-nw-front { padding-block: clamp(26px, 3.6vw, 52px) clamp(56px, 7vw, 100px); }
.gp-nw-front__grid { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.gp-nw-story { min-width: 0; }
.gp-nw-story__link { display: grid; gap: 16px; color: inherit; text-decoration: none; }
.gp-nw-story__link:focus-visible { outline-offset: 6px; border-radius: var(--radius-s); }
.gp-nw-story__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--bg-3); }
.gp-nw-story__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-nw-story__body { display: grid; align-content: start; gap: 10px; min-width: 0; }
.gp-nw-story__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.18rem, 1rem + .5vw, 1.45rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: pretty; text-decoration: underline 2px transparent; text-underline-offset: .2em; }
.gp-nw-story__link:hover .gp-nw-story__title { text-decoration-color: currentColor; }
.gp-nw-story__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }

/* The lead: the text panel bites into the photo (--notch deep). The photo keeps rounded corners all round the bite:
   the panel's own top right corner, and two quarter circles of the page's colour where the bite meets the photo's left
   and bottom edges. */
.gp-nw-story--lead { --notch: 56px; --r: var(--radius); }
.gp-nw-story--lead .gp-nw-story__link { display: block; }
.gp-nw-story--lead .gp-nw-story__media { aspect-ratio: 4 / 3; }
.gp-nw-story--lead .gp-nw-story__body { position: relative; z-index: 1; gap: 14px; width: calc(100% - 44px); max-width: 46rem; margin-top: calc(-1 * var(--notch)); padding: 18px 22px 0 0; border-top-right-radius: var(--r); background: var(--bg); }
.gp-nw-story--lead .gp-nw-story__body::before, .gp-nw-story--lead .gp-nw-story__body::after { content: ""; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--bg) var(--r)); pointer-events: none; }
.gp-nw-story--lead .gp-nw-story__body::before { left: 0; bottom: 100%; }
.gp-nw-story--lead .gp-nw-story__body::after { left: 100%; top: calc(var(--notch) - var(--r)); }
.gp-nw-story--lead .gp-nw-story__title { max-width: 13.2em; font-size: clamp(1.6rem, 1rem + 2vw, 2.9rem); font-weight: 800; line-height: .98; letter-spacing: -.022em; text-decoration-thickness: 3px; text-wrap: balance; }
.gp-nw-story__excerpt { display: -webkit-box; max-width: 62ch; overflow: hidden; color: var(--ink-2); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.gp-nw-story__more { display: inline-flex; align-items: center; gap: .75em; color: var(--ink); font-family: var(--font-display); font-size: .92rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gp-nw-story__dot { display: inline-grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--accent-edge); }
.gp-nw-story__dot .gp-i { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.gp-nw-story__link:hover .gp-nw-story__dot .gp-i { transform: translateX(3px); }

/* The two other stories: compact rows on a phone, side by side under the lead, then stacked beside it. */
@media (max-width: 639.98px) {
	.gp-nw-story:not(.gp-nw-story--lead) .gp-nw-story__link { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
	.gp-nw-story:not(.gp-nw-story--lead) .gp-nw-story__media { aspect-ratio: 1; border-radius: var(--radius-s); }
	.gp-nw-story:not(.gp-nw-story--lead) + .gp-nw-story:not(.gp-nw-story--lead) { padding-top: clamp(22px, 3vw, 28px); border-top: 1px solid var(--line); }
}
@media (min-width: 640px) {
	.gp-nw-story--lead { --notch: clamp(64px, 6.4vw, 96px); }
	.gp-nw-story--lead .gp-nw-story__media { aspect-ratio: 16 / 10; }
	.gp-nw-story--lead .gp-nw-story__body { width: calc(100% - 72px); padding: clamp(20px, 2.2vw, 30px) clamp(24px, 3vw, 44px) 0 0; }
}
@media (min-width: 640px) and (max-width: 999.98px) {
	.gp-nw-front__grid { grid-template-columns: 1fr 1fr; }
	.gp-nw-story--lead { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	.gp-nw-front__grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 0 clamp(32px, 3.2vw, 56px); }
	.gp-nw-story--lead { grid-row: 1 / 3; }
	.gp-nw-story--lead .gp-nw-story__body { width: min(100% - 96px, 46rem); }
	/* The side stories share the lead's height; their photos take what the text leaves. */
	.gp-nw-story:not(.gp-nw-story--lead) { display: flex; padding-bottom: clamp(22px, 2.2vw, 30px); }
	.gp-nw-story:not(.gp-nw-story--lead) + .gp-nw-story:not(.gp-nw-story--lead) { padding: clamp(22px, 2.2vw, 30px) 0 0; border-top: 1px solid var(--line); }
	.gp-nw-story:not(.gp-nw-story--lead) .gp-nw-story__link { display: flex; flex-direction: column; width: 100%; }
	.gp-nw-story:not(.gp-nw-story--lead) .gp-nw-story__media { flex: 1 1 0; min-height: 170px; aspect-ratio: auto; }
}

/* ---------- Ils en parlent ---------- */
.gp-nw-wall { padding-block: clamp(22px, 3vw, 36px) clamp(26px, 3.4vw, 44px); border-block: 1px solid var(--line); }
.gp-nw-wall__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(8px, 1.4vw, 16px); }
.gp-nw-wall__title { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.gp-nw-wall__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field-line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.gp-nw-wall__toggle:hover { border-color: var(--ink); background: var(--hover); }
.gp-nw-wall__toggle:focus-visible { outline-offset: 2px; border-radius: 50%; }
.gp-nw-wall__toggle svg { width: 18px; height: 18px; }
.gp-nw-wall__icon { display: inline-grid; }
.gp-nw-wall__icon--play, .gp-nw-wall__toggle[aria-pressed="true"] .gp-nw-wall__icon--pause { display: none; }
.gp-nw-wall__toggle[aria-pressed="true"] .gp-nw-wall__icon--play { display: inline-grid; }
.gp-nw-wall__band { padding-inline: var(--gutter); }
.gp-nw-wall__list { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.gp-nw-wall__list li { display: flex; align-items: center; }
.gp-nw-wall__list li::after { content: ""; flex: none; width: .5rem; height: .5rem; margin-inline: clamp(10px, 1.4vw, 20px); border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-rim); }
.gp-nw-wall__list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .06em; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.9rem, 1.1rem + 3vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.gp-nw-wall__list li:nth-child(even) a { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 62%, transparent); }
.gp-nw-wall__list a:hover, .gp-nw-wall__list li:nth-child(even) a:hover { color: var(--accent-ink); -webkit-text-stroke-color: transparent; text-decoration: underline 3px; text-underline-offset: .12em; } /* G1: an underline as well as the colour */
.gp-nw-wall__list a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 6px; }
/* Moving (news.js, motion allowed): one line, the list twice, half a track per loop; hover, focus and the button pause it. */
.gp-nw-wall.is-moving .gp-nw-wall__band { overflow: hidden; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.gp-nw-wall.is-moving .gp-nw-wall__track { display: flex; width: max-content; animation: gp-nw-marquee var(--nw-dur, 60s) linear infinite; }
.gp-nw-wall.is-moving .gp-nw-wall__list { flex-wrap: nowrap; }
/* Still wall on phones (reduced motion, no script): a long title wraps instead of reaching the screen edge. */
@media (max-width: 599.98px) {
	.gp-nw-wall:not(.is-moving) .gp-nw-wall__list li { max-width: 100%; }
	.gp-nw-wall:not(.is-moving) .gp-nw-wall__list a { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}
.gp-nw-wall.is-paused .gp-nw-wall__track, .gp-nw-wall.is-offscreen .gp-nw-wall__track, .gp-nw-wall.is-moving .gp-nw-wall__band:hover .gp-nw-wall__track, .gp-nw-wall.is-moving .gp-nw-wall__band:focus-within .gp-nw-wall__track { animation-play-state: paused; }
@keyframes gp-nw-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Index ---------- */
.gp-nw-index { padding-block: clamp(48px, 6.4vw, 100px) 0; }
.gp-nw-index--filtered { padding-top: clamp(26px, 3.6vw, 52px); }
.gp-nw-index__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.gp-nw-index__status { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-nw-index__list { margin: 0; padding: 0; list-style: none; }
.gp-nw-row { border-bottom: 1px solid var(--line); }
.gp-nw-row__link { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; color: inherit; text-decoration: none; isolation: isolate; }
.gp-nw-row__link::before { content: ""; position: absolute; z-index: -1; inset: 6px calc(var(--gutter) * -.5); border-radius: var(--radius-s); background: var(--hover); opacity: 0; transition: opacity .3s var(--ease-out); }
.gp-nw-row__link:hover::before { opacity: 1; }
.gp-nw-row__link:focus-visible { outline-offset: 2px; border-radius: var(--radius-s); }
.gp-nw-row__date { display: none; }
.gp-nw-row__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-s); background: var(--bg-3); }
.gp-nw-row__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-nw-row__body { display: grid; gap: 8px; min-width: 0; }
.gp-nw-row__title { font-family: var(--font-display); font-size: clamp(1.04rem, .94rem + .55vw, 1.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; text-wrap: pretty; text-decoration: underline 2px transparent; text-underline-offset: .2em; }
.gp-nw-row__link:hover .gp-nw-row__title { text-decoration-color: currentColor; }
.gp-nw-row__go { display: none; }
@media (min-width: 900px) {
	.gp-nw-row__link { grid-template-columns: 92px 200px minmax(0, 1fr) 52px; gap: clamp(24px, 2.4vw, 36px); padding: 24px 0; }
	.gp-nw-row__date { display: grid; align-self: start; gap: 5px; padding-top: 2px; }
	.gp-nw-row__day { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; line-height: .82; letter-spacing: -.03em; }
	.gp-nw-row__day--year { font-size: 1.7rem; } /* only the year is known */
	.gp-nw-row__month { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
	.gp-nw-row__date-s { display: none; }
	.gp-nw-row__media { aspect-ratio: 3 / 2; }
	/* The arrow fills with the accent on hover (a scaled disc, not a colour fade). */
	.gp-nw-row__go { position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--field-line); border-radius: 50%; color: var(--ink); isolation: isolate; }
	.gp-nw-row__go::before { content: ""; position: absolute; z-index: -1; inset: -1px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-edge); transform: scale(0); transition: transform .45s var(--ease-out); }
	.gp-nw-row__go .gp-i { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
	.gp-nw-row__link:hover .gp-nw-row__go { border-color: transparent; color: var(--on-accent); }
	.gp-nw-row__link:hover .gp-nw-row__go::before { transform: scale(1); }
	.gp-nw-row__link:hover .gp-nw-row__go .gp-i { transform: translateX(3px); }
}
/* A year marker where the year changes: the year in outline, a rule to the end of the line. */
.gp-nw-year { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(40px, 5vw, 72px) 0 clamp(12px, 1.6vw, 20px); }
.gp-nw-year::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.gp-nw-year__label { font-family: var(--font-display); font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.6rem); font-weight: 800; line-height: .8; letter-spacing: -.03em; }
@supports (-webkit-text-stroke: 1px #000) {
	.gp-nw-year__label { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
}

.gp-nw-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(32px, 4.4vw, 56px); }
.gp-nw-more__error { margin: 0; color: var(--danger); font-weight: 600; text-align: center; }
.gp-nw-pages { justify-content: center; }
.gp-nw-empty { display: grid; justify-items: start; gap: 16px; padding-top: 28px; color: var(--ink-2); }

/* ---------- Espace presse ---------- */
.gp-nw-press { padding-block: clamp(56px, 7vw, 110px); border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 80% at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg-2); color: var(--ink); }
.gp-nw-press__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.gp-nw-press__lead { max-width: 44ch; margin: 1rem 0 0; color: var(--ink-2); }
.gp-nw-press__docs { margin-top: clamp(22px, 3vw, 32px); }
.gp-nw-press__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(22px, 3vw, 32px); }
.gp-nw-press__size { font-weight: 600; opacity: .75; text-transform: none; }
.gp-nw-press__mail { display: inline-grid; gap: 2px; color: var(--ink); font-weight: 700; text-decoration: underline 1px color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: .25em; }
.gp-nw-press__mail:hover { text-decoration-color: currentColor; }
.gp-nw-press__mail span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gp-nw-facts { margin: 0; }
.gp-nw-facts > div { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.gp-nw-facts > div:last-child { border-bottom: 1px solid var(--line); }
.gp-nw-facts dt { color: var(--accent-ink); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gp-nw-facts dd { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.45; }
.gp-nw-facts__link { position: relative; display: inline-block; margin-top: 6px; color: var(--accent-ink); font-weight: 700; text-underline-offset: .22em; }
.gp-nw-facts__link::after { content: ""; position: absolute; inset: -10px -6px; } /* a 44 px target around the words; the line keeps its height */
@media (min-width: 600px) { .gp-nw-facts > div { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; } }
@media (min-width: 980px) { .gp-nw-press__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Motion ---------- */
/* Hover: the photos lean in (a mouse, motion allowed); the lead's photo also follows the pointer (news-filters.css). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.gp-nw-story__media img, .gp-nw-row__media img { transition: scale 1s var(--ease-out); }
	.gp-nw-story__link:hover .gp-nw-story__media img { scale: 1.05; }
	.gp-nw-story--lead .gp-nw-story__link:hover [data-nf-depth] img { scale: 1.08; }
	.gp-nw-row__link:hover .gp-nw-row__media img { scale: 1.07; }
}
/* On arrival (script, motion allowed): the lead's photo settles, then its text panel docks into it from below. */
@media (prefers-reduced-motion: no-preference) {
	html.gp-js .gp-nw-story--lead .gp-nw-story__media img { animation: gp-nw-settle 1.7s var(--ease-out) backwards; }
	html.gp-js .gp-nw-story--lead .gp-nw-story__body { animation: gp-nw-dock 1.15s var(--ease-out) .3s backwards; }
	html.gp-js .gp-nw-story--lead .gp-nw-story__body > * { animation: gp-nw-fade .9s var(--ease-out) backwards; animation-delay: calc(.5s + var(--i, 0) * 90ms); }
	.gp-nw-story--lead .gp-nw-story__body > :nth-child(2) { --i: 1; }
	.gp-nw-story--lead .gp-nw-story__body > :nth-child(3) { --i: 2; }
}
@keyframes gp-nw-settle { from { opacity: .001; scale: 1.14; } }
@keyframes gp-nw-dock { from { transform: translate3d(0, var(--notch), 0); } }
@keyframes gp-nw-fade { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@media (prefers-reduced-motion: reduce) {
	.gp-nw-wall__track { animation: none !important; }
}
