/*
 * PF Home — Projet: a project article (drafts/project-page, P29 with the
 * technique laid out as P33 Mosaïque, P34 Alternance or P36 Cinéma).
 *
 * Ported once from drafts/project-page/source/project-draft.css: the rules the
 * three kept drafts use, flattened under .pfh .pd.pd (the draft nested them),
 * the draft's switch, prompts and empty slots left out. This file is the
 * source now; edit it here, not in the draft.
 *
 * Pictures take the site radius (--pf-radius, Réglages → Cohérence) through
 * --rad; edge-to-edge media (the department's opening picture, Cinéma's
 * reels) stay square. Chips, bars and buttons keep 8 px: they are not pictures.
 */
.pfh .pd.pd { padding-bottom: clamp(48px,6vw,96px); --h: var(--pf-c-head); --b: var(--pf-c-body); --m: var(--pf-c-muted); --r: var(--pf-c-accent); --v: var(--pf-c-focus); --line: color-mix(in srgb,var(--pf-c-head) 12%,transparent); --line2: color-mix(in srgb,var(--pf-c-head) 18%,transparent); --glass: color-mix(in srgb,var(--pf-c-canvas) 50%,transparent); --deep: var(--pf-c-deep); --disp: 'VT323', ui-monospace, monospace; --mono: 'Space Mono', ui-monospace, monospace; --body: 'Space Grotesk', system-ui, sans-serif; --wrap: 1360px; --gut: clamp(16px,3vw,40px); --top: var(--pd-top, 12px); --rad: var(--pf-radius, 10px); position: relative; color: var(--b); font-family: var(--body); --inner: calc(var(--wrap) - 2 * var(--gut)); }
.pfh .pd.pd h1, .pfh .pd.pd h2, .pfh .pd.pd p { margin: 0; }
.pfh .pd.pd a { color: inherit; }
.pfh .pd.pd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pfh .pd.pd .pd-fig { margin: 0; }
.pfh .pd.pd .pd-fig img, .pfh .pd.pd .pd-fig video { display: block; width: 100%; height: auto; border-radius: var(--rad); background: var(--pf-c-deep); }
.pfh .pd.pd .pd-run { display: grid; grid-template-columns: repeat(var(--n,2), minmax(0,1fr)); gap: clamp(10px,1.4vw,18px); }
.pfh .pd.pd .pd-run img, .pfh .pd.pd .pd-run video { aspect-ratio: 16/9; object-fit: cover; }
.pfh .pd.pd .rt video.rt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfh .pd.pd .pd-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: color-mix(in srgb,var(--pf-c-head) 5%,transparent); box-shadow: inset 0 1px 0 color-mix(in srgb,var(--pf-c-head) 14%,transparent); font: 12px/1 var(--mono); color: var(--h); white-space: nowrap; }
.pfh .pd.pd .pd-chip:first-child { color: var(--r); border-color: color-mix(in srgb,var(--pf-c-accent) 55%,transparent); background: color-mix(in srgb,var(--pf-c-accent) 7%,transparent); }
.pfh .pd.pd .pd-chip.sm { min-height: 22px; padding: 0 8px; font-size: 11px; }
.pfh .pd.pd .pd-foot { max-width: var(--wrap); margin: clamp(96px,12vw,180px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: clamp(56px,7vw,96px); }
.pfh .pd.pd .pd-more-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pfh .pd.pd .pd-more-h h2 { font: clamp(36px,3.6vw,52px)/1 var(--disp); color: var(--h); }
.pfh .pd.pd .pd-more-h a:hover { color: var(--r); }
.pfh .pd.pd .pd-more-g { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px,2vw,28px); }
.pfh .pd.pd .pd-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--b); }
.pfh .pd.pd .pd-t .rt { aspect-ratio: 16/9; }
.pfh .pd.pd .pd-tc { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.pfh .pd.pd .pd-tn { font: 26px/1 var(--disp); color: var(--h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 150ms ease; }
.pfh .pd.pd .pd-t:hover .pd-tn, .pfh .pd.pd .pd-t:focus-visible .pd-tn { color: var(--r); }
.pfh .pd.pd .pd-tk { margin-top: -6px; padding: 0 2px; }
.pfh .pd.pd .p2-hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.pfh .pd.pd .p2-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Format d'origine: the box takes the media's shape, capped at the window; overflow: clip keeps a title taller than a very wide clip from being cut. */
.pfh .pd.pd .p2-hero.p2-fit { min-height: 0; width: min(100%, calc(100svh * (var(--p2-ar, 16/9)))); margin-inline: auto; aspect-ratio: var(--p2-ar, 16/9); max-height: 100svh; overflow: clip; }
.pfh .pd.pd .p2-fit .p2-bg { object-fit: contain; }
.pfh .pd.pd .p2-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--pf-c-canvas) 4%, color-mix(in srgb,var(--pf-c-canvas) 55%,transparent) 30%, color-mix(in srgb,var(--pf-c-canvas) 0%,transparent) 60%); }
.pfh .pd.pd .p2-in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(32px,5vw,64px); box-sizing: border-box; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.pfh .pd.pd .p2-l { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pfh .pd.pd .p2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pfh .pd.pd .p2-t { font-family: var(--disp) !important; font-weight: 400; font-size: clamp(72px,11vw,176px) !important; line-height: .8 !important; color: var(--h); display: block !important; text-shadow: 0 2px 30px color-mix(in srgb,var(--pf-c-deep) 50%,transparent); }
.pfh .pd.pd .p2-role { font: clamp(22px,2.2vw,32px)/1.1 var(--disp); max-width: 36ch; }
.pfh .pd.pd .p2-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pfh .pd.pd .p2-r .meta { color: var(--b); }
.pfh .pd.pd .p2-bar { position: sticky; top: var(--top); z-index: 6; max-width: var(--inner); margin: -1px auto 0; box-sizing: border-box; display: flex; align-items: center; gap: 12px 20px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--glass); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); box-shadow: inset 0 1px 0 color-mix(in srgb,var(--pf-c-head) 20%,transparent), 0 20px 50px -20px color-mix(in srgb,var(--pf-c-deep) 90%,transparent); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; width: calc(100% - 2 * var(--gut)); }
.pfh .pd.pd .p2-bar.on { opacity: 1; transform: none; pointer-events: auto; }
.pfh .pd.pd .p2-bn { font: 26px/1 var(--disp); color: var(--h); white-space: nowrap; }
.pfh .pd.pd .p2-bk { display: flex; gap: 4px; }
.pfh .pd.pd .p2-intro { max-width: 1080px; margin: clamp(56px,7vw,96px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.pfh .pd.pd .p2-log { font: clamp(32px,3.6vw,52px)/1.02 var(--disp); color: var(--h); max-width: 28ch; }
.pfh .pd.pd .p2-sheet { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pfh .pd.pd .p2-sheet div { padding: 14px 22px; border-right: 1px solid var(--line); }
.pfh .pd.pd .p2-sheet div:last-child { border-right: 0; }
.pfh .pd.pd .p2-sheet dd { margin: 4px 0 0; font: 22px/1 var(--disp); color: var(--h); }
.pfh .pd.pd .pd-hard { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb,var(--pf-c-accent) 28%,transparent); background: linear-gradient(180deg, color-mix(in srgb,var(--pf-c-accent) 7%,transparent), color-mix(in srgb,var(--pf-c-accent) 1.5%,transparent)); }
.pfh .pd.pd .meta.pd-hard-h { color: var(--r) !important; }
.pfh .pd.pd .pd-stack { display: flex; flex-direction: column; gap: clamp(10px,1.4vw,18px); min-width: 0; }
.pfh .pd.pd .pd-brief { max-width: 760px; margin: clamp(72px,9vw,128px) auto 0; padding: 0 var(--gut); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.pfh .pd.pd .pd-brief h2 { font: clamp(44px,5vw,76px)/.9 var(--disp); color: var(--h); text-align: center; text-wrap: balance; }
.pfh .pd.pd .pd-stack > .pd-fig video, .pfh .pd.pd .pd-stack > .pd-fig img { max-height: 82vh; object-fit: contain; }
.pfh .pd.pd .p16-brief { margin-bottom: 0; }
.pfh .pd.pd .p16-ch { margin-top: clamp(96px,12vw,170px); }
.pfh .pd.pd .p16-open { position: relative; isolation: isolate; }
.pfh .pd.pd .p16-open > .pd-fig img, .pfh .pd.pd .p16-open > .pd-fig video { width: 100%; aspect-ratio: 21/9; max-height: 88vh; object-fit: cover; border-radius: 0; }
.pfh .pd.pd .p16-open:not(.p16-noimg)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb,var(--pf-c-deep) 85%,transparent) 0%, color-mix(in srgb,var(--pf-c-deep) 0%,transparent) 45%); }
.pfh .pd.pd .p16-cap { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(20px,3vw,40px); z-index: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; pointer-events: none; }
.pfh .pd.pd .p16-n { font: clamp(56px,7vw,112px)/.8 var(--disp); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb,var(--pf-c-head) 75%,transparent); }
.pfh .pd.pd .p16-st { font: clamp(36px,4.4vw,68px)/.9 var(--disp); color: var(--h); }
.pfh .pd.pd .p16-cap .meta { color: var(--b); }
.pfh .pd.pd .p16-noimg { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pfh .pd.pd .p16-noimg .p16-cap { position: static; }
.pfh .pd.pd .p17-how h2 { font: clamp(44px,5vw,76px)/.9 var(--disp); color: var(--h); text-align: center; }
.pfh .pd.pd .p17-how { max-width: var(--wrap); margin: clamp(96px,12vw,170px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pfh .pd.pd .p17-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.pfh .pd.pd .p17-g, .pfh .pd.pd .p17-toc > .p17-r { display: inline-flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 10px; background: color-mix(in srgb,var(--pf-c-head) 3%,transparent); box-shadow: inset 0 1px 0 color-mix(in srgb,var(--pf-c-head) 10%,transparent); transition: border-color 150ms ease; }
.pfh .pd.pd .p17-d { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; font: 15px/1.1 var(--body); color: var(--h); white-space: nowrap; transition: color 150ms ease; }
.pfh .pd.pd .p17-d .meta { color: var(--r); }
.pfh .pd.pd .p17-d:hover { color: var(--r); }
.pfh .pd.pd .p17-ts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 6px; }
.pfh .pd.pd .p17-ts:not(:empty) { border-left: 1px solid var(--line); }
.pfh .pd.pd .p17-t { padding: 6px 9px; border-radius: 6px; font: 12px/1 var(--mono); color: var(--b); white-space: nowrap; transition: color 150ms ease, background-color 150ms ease; }
.pfh .pd.pd .p17-t:hover { color: var(--h); background: color-mix(in srgb,var(--pf-c-head) 5%,transparent); }
.pfh .pd.pd .p17-t.on { color: var(--r); background: color-mix(in srgb,var(--pf-c-accent) 8%,transparent); }
.pfh .pd.pd .p17-g.on { border-color: color-mix(in srgb,var(--pf-c-accent) 55%,transparent); }
.pfh .pd.pd .p17-g.on > .p17-d { color: var(--r); }
.pfh .pd.pd .p17-sh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pfh .pd.pd .p17-sn { font: 16px/1 var(--mono); color: var(--r); }
.pfh .pd.pd .p17-sh h3 { flex: 1; margin: 0; font: clamp(36px,3.8vw,56px)/.9 var(--disp); color: var(--h); }
.pfh .pd.pd .p17-sd { color: var(--m); }
.pfh .pd.pd .p2-bar .p18-bar { flex: 1; flex-wrap: nowrap; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pfh .pd.pd .p2-bar .p18-bar::-webkit-scrollbar { display: none; }
.pfh .pd.pd .p18-bar .p17-g, .pfh .pd.pd .p18-bar > .p17-r { flex: none; border-radius: 8px; }
.pfh .pd.pd .p18-bar .p17-d { padding: 6px 10px; font-size: 13px; }
.pfh .pd.pd .p18-bar .p17-ts { display: none; }
.pfh .pd.pd .p18-bar .p17-g.on .p17-ts { display: inline-flex; flex-wrap: nowrap; }
.pfh .pd.pd.pd-p29 { --r4-st: calc(var(--top) + 118px); }
.pfh .pd.pd .pd-vid { position: relative; }
.pfh .pd.pd[data-fs-clips="1"] video, .pfh .pd.pd[data-fs-images="1"] .pd-fig img { cursor: zoom-in; }
.pfh .pd.pd .p2-hero[data-fullbox] .p2-shade { cursor: zoom-in; }
.pfh .pd.pd[data-fs-clips="1"] .pd-vid::after { content: ""; position: absolute; top: 12px; right: 12px; z-index: 1; width: 30px; height: 30px; border-radius: 8px; pointer-events: none; opacity: 0; background: color-mix(in srgb,var(--pf-c-deep) 62%,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 5.5V1h4.5M10.5 1H15v4.5M15 10.5V15h-4.5M5.5 15H1v-4.5' fill='none' stroke='%23FFF0E4' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: opacity 150ms ease; }
.pfh .pd.pd .pd-vid:hover::after, .pfh .pd.pd .pd-vid:focus-within::after { opacity: 1; }
.pfh .pd.pd .r4-final .pd-vid::after, .pfh .pd.pd .p16-open .pd-vid::after { display: none; }
.pfh .pd.pd video:focus-visible, .pfh .pd.pd .pd-fig img:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }
.pfh .pd.pd video:fullscreen, .pfh .pd.pd img:fullscreen { width: 100% !important; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 0 !important; background: var(--pf-c-deep); cursor: auto; }
.pfh .pd.pd .r4-fs { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--h); font: 12px/1 var(--mono); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.pfh .pd.pd .r4-fs:hover { color: var(--r); border-color: color-mix(in srgb,var(--pf-c-accent) 55%,transparent); }
.pfh .pd.pd .r4-fs:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
.pfh .pd.pd .r4-chh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pfh .pd.pd .r4-chh .p16-n { font-size: clamp(48px,5vw,80px); }
.pfh .pd.pd .r4-chh h2 { flex: 1; font: clamp(44px,5vw,76px)/.9 var(--disp); color: var(--h); }
.pfh .pd.pd .r4-res { max-width: var(--wrap); margin: clamp(96px,12vw,170px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pfh .pd.pd .r4-final .pd-fig img, .pfh .pd.pd .r4-final .pd-fig video { max-height: 90vh; object-fit: contain; }
.pfh .pd.pd .r4-fsrow { display: flex; justify-content: flex-end; margin-top: -6px; }
.pfh .pd.pd .r4-rt { width: 100%; max-width: 760px; margin: 16px auto 0; }
.pfh .pd.pd .r4-more { margin-top: 8px; }
.pfh .pd.pd .r4-foot { margin-top: clamp(96px,12vw,170px); }
.pfh .pd.pd .p2-bar:has(.p29-now) { flex-wrap: wrap; row-gap: 0; }
.pfh .pd.pd .p29-now { order: 10; flex-basis: 100%; display: flex; align-items: baseline; gap: 12px; min-width: 0; margin-top: 8px; padding: 8px 2px 2px; border-top: 1px solid var(--line); }
.pfh .pd.pd .p29-t { font: 22px/1 var(--disp); color: var(--h); white-space: nowrap; }
.pfh .pd.pd .p29-t b { font-weight: 400; color: var(--r); }
.pfh .pd.pd .p29-c { white-space: nowrap; }
.pfh .pd.pd .p29-h { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 12px/1.4 var(--mono); color: var(--m); }
.pfh .pd.pd .p29-list { max-width: var(--wrap); margin: clamp(20px,2.4vw,32px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pfh .pd.pd .p29-list > .meta { margin-right: 8px; }
.pfh .pd.pd .p29-list .p17-t { border: 1px solid var(--line2); padding: 8px 12px; font-size: 13px; }
.pfh .pd.pd .p29-list .p17-t .meta { color: var(--r); }
@media (max-width: 900px) {
	.pfh .pd.pd .p29-h { display: none; }
	.pfh .pd.pd.pd-p29 { --r4-st: calc(var(--top) + 96px); }
	.pfh .pd.pd .p2-bar .p18-bar { justify-content: flex-start; }
}
.pfh .pd.pd .r5-solo { max-width: 760px; margin: clamp(56px,7vw,96px) auto 0; padding: 0 var(--gut); display: flex; flex-direction: column; gap: 24px; }
.pfh .pd.pd .r5-w { display: flex; flex-direction: column; gap: 20px; }
.pfh .pd.pd .r5-w .p17-sh h3, .pfh .pd.pd .p34-w .p17-sh h3 { font-size: clamp(30px,2.8vw,44px); }
.pfh .pd.pd .p33-sub { max-width: var(--wrap); margin: clamp(64px,8vw,120px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pfh .pd.pd .p33-nt { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.pfh .pd.pd .p33-b { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); grid-auto-rows: clamp(110px,12vw,var(--p33-row,190px)); gap: clamp(8px,1vw,14px); }
.pfh .pd.pd .p33-t { grid-column: span var(--cs); grid-row: span var(--rs); min-width: 0; }
.pfh .pd.pd .p33-t > .pd-fig { height: 100%; }
.pfh .pd.pd .p33-t .pd-fig img, .pfh .pd.pd .p33-t .pd-fig video { width: 100%; height: 100%; object-fit: cover; }
.pfh .pd.pd .p34-sub { max-width: var(--wrap); margin: clamp(72px,9vw,128px) auto 0; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: clamp(10px,1.4vw,18px); }
.pfh .pd.pd .p34-row { display: grid; grid-template-columns: minmax(0,7fr) minmax(280px,5fr); gap: clamp(28px,4vw,64px); align-items: center; }
.pfh .pd.pd .p34-sub.flip .p34-row { grid-template-columns: minmax(280px,5fr) minmax(0,7fr); }
.pfh .pd.pd .p34-sub.flip .p34-m { order: 2; }
.pfh .pd.pd .p34-m { min-width: 0; }
.pfh .pd.pd .p34-m .pd-fig img, .pfh .pd.pd .p34-m .pd-fig video { max-height: 80vh; object-fit: contain; }
.pfh .pd.pd .p34-w { display: flex; flex-direction: column; gap: 18px; }
.pfh .pd.pd .p34-rest { margin-top: clamp(4px,1vw,10px); }
.pfh .pd.pd .p36-sub { margin-top: clamp(72px,9vw,128px); display: flex; flex-direction: column; gap: clamp(40px,6vw,88px); }
.pfh .pd.pd .p36-card { width: 100%; max-width: var(--p36-card,760px); margin: 0 auto; padding: 0 var(--gut); box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.pfh .pd.pd .p36-reel { display: flex; flex-direction: column; gap: 6px; }
.pfh .pd.pd .p36-reel .pd-fig img, .pfh .pd.pd .p36-reel .pd-fig video { width: 100%; max-height: 100vh; object-fit: contain; border-radius: 0; background: var(--deep); }
.pfh .pd.pd .p36-hard .pd-hard { text-align: left; }
.pfh .pd.pd .p36-ch .r5-solo { max-width: var(--p36-card,760px); }
@media (max-width: 900px) {
	.pfh .pd.pd .p33-nt, .pfh .pd.pd .p34-row, .pfh .pd.pd .p34-sub.flip .p34-row { grid-template-columns: 1fr; }
	.pfh .pd.pd .p34-sub.flip .p34-m { order: 0; }
	.pfh .pd.pd .p33-b { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: clamp(100px,28vw,180px); }
	.pfh .pd.pd .p33-t { grid-column: span 1; grid-row: span 1; }
	.pfh .pd.pd .p33-t:first-child { grid-column: 1 / -1; grid-row: span 2; }
	.pfh .pd.pd .p33-t:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.pfh .pd.pd .p2-r { align-items: flex-start; }
	.pfh .pd.pd .pd-more-g { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.pfh .pd.pd .pd-more-g > :nth-child(3) { display: none; }
	.pfh .pd.pd .p2-bk, .pfh .pd.pd .p2-by { display: none; }
	.pfh .pd.pd .p2-bn { font-size: 22px; }
}
@media (max-width: 640px) {
	/* A wide clip is too short on a phone to carry the title: the title goes under it. The shade stays, clear, as the click target. */
	.pfh .pd.pd .p2-hero.p2-fit { width: 100%; aspect-ratio: auto; max-height: none; display: block; }
	.pfh .pd.pd .p2-fit .p2-bg { position: relative; inset: auto; display: block; height: auto; aspect-ratio: var(--p2-ar, 16/9); max-height: 100svh; }
	.pfh .pd.pd .p2-fit .p2-shade { background: none; }
	.pfh .pd.pd .p2-fit .p2-in { padding-top: 24px; padding-bottom: 0; }
	.pfh .pd.pd .pd-more-g { grid-template-columns: 1fr; }
	.pfh .pd.pd .pd-more-g > :nth-child(3) { display: flex; }
	.pfh .pd.pd .pd-run { --n: 1 !important; }
	.pfh .pd.pd .p2-sheet div { padding: 10px 14px; }
	.pfh .pd.pd .p17-g { flex-wrap: wrap; }
	.pfh .pd.pd .p17-ts:not(:empty) { border-left: 0; border-top: 1px solid var(--line); width: 100%; }
	/* …but the bar stays one row that scrolls sideways */
	.pfh .pd.pd .p18-bar .p17-g { flex-wrap: nowrap; }
	.pfh .pd.pd .p18-bar .p17-ts:not(:empty) { border-top: 0; border-left: 1px solid var(--line); width: auto; }
}

/* ---------- what the blocks add to the drafts ---------- */

/* the words: paragraphs, lists and small headings typed in a part (the drafts' .pd-p) */
.pfh .pd.pd .pd-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pfh .pd.pd .pd-txt p, .pfh .pd.pd .pd-txt li { max-width: 68ch; margin: 0; font-size: 17px; line-height: 1.65; color: var(--b); }
.pfh .pd.pd .pd-txt ul, .pfh .pd.pd .pd-txt ol { margin: 0; padding-left: 1.2em; }
.pfh .pd.pd .pd-txt h2, .pfh .pd.pd .pd-txt h3, .pfh .pd.pd .pd-txt h4 { margin: 6px 0 0; font: 28px/1 var(--disp); color: var(--h); }
.pfh .pd.pd .pd-txt a { color: var(--r); text-decoration: underline; text-underline-offset: 3px; transition: color 150ms ease; }
.pfh .pd.pd .pd-txt a:hover { color: var(--v); }
.pfh .pd.pd .pd-txt blockquote { margin: 0; padding-left: 16px; border-left: 1px solid var(--line2); }
.pfh .pd.pd .pd-brief .pd-txt { align-items: center; }
.pfh .pd.pd .pd-hard .pd-txt p { font-size: 15px; line-height: 1.6; }
.pfh .pd.pd .r4-rt.pd-txt { align-items: center; text-align: center; }

/* a caption under a picture; in a mosaic tile it is read, not shown (a tile is cropped) */
.pfh .pd.pd .pd-cap { display: block; margin-top: 8px; }
.pfh .pd.pd .p33-t .pd-cap, .pfh .pd.pd .p16-open .pd-cap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pfh .pd.pd .p36-reel .pd-cap { padding: 0 var(--gut); }

/* a before / after or an embed placed among the pictures keeps its own markup */
.pfh .pd.pd .pd-blk > * { margin: 0 !important; }
.pfh .pd.pd .p33-t > .pd-blk { height: 100%; overflow: hidden; border-radius: var(--rad); }

/* P33: the words alone (no hard part, or no text) take one column */
.pfh .pd.pd .p33-nt.one { grid-template-columns: minmax(0,1fr); }

/* the result is lit in the bar while it is read */
.pfh .pd.pd .p17-toc > .p17-r.on { border-color: color-mix(in srgb,var(--pf-c-accent) 55%,transparent); color: var(--r); }

/* the header's logo rows (pf/logiciels, pf/studios) are blocks of their own: no outside margin, and their own
   height back — pf-home's image reset (.pfh.pfh.pfh img { height: auto }) outweighs theirs */
.pfh .pd.pd .p2-r > * { margin: 0 !important; }
.pfh .pd.pd .p2-r img.pf-stack-mark { height: var(--pf-stack-h, 22px); width: auto; max-width: none; }
.pfh .pd.pd .p2-r img.pf-studios-mark { height: var(--pf-studios-h, 34px); width: auto; max-width: none; }
@media (max-width: 900px) {
	.pfh .pd.pd .p2-r > [class*="pf-stack-justify"] { justify-content: flex-start; }
}

/* ---------- pinned header (En-tête → Défilement) ---------- */

/* The header stays at the top of the window while the rest of the article slides over it like a curtain. The
   layer is clear for --p2-fade (the logline and the sheet read over the clip), then takes the canvas. As the
   layer comes up, pf-project.js sets --p2-k (0 → 1): the clip darkens by --p2-dim and the title fades out. */
.pfh .pd.pd .p2-hero.p2-pin { position: sticky; top: 0; z-index: 0; }
.pfh .pd.pd .p2-pin::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pf-c-canvas); opacity: calc(var(--p2-k, 0) * var(--p2-dim, .6)); pointer-events: none; }
.pfh .pd.pd .p2-pin .p2-in { opacity: clamp(0, 1 - var(--p2-k, 0) * 1.6, 1); }
.pfh .pd.pd:has(> .p2-over) { padding-bottom: 0; }
.pfh .pd.pd .p2-over { position: relative; z-index: 1; display: flow-root; padding-bottom: clamp(48px,6vw,96px); background: linear-gradient(180deg, color-mix(in srgb,var(--pf-c-canvas) 0%,transparent) 0, var(--pf-c-canvas) var(--p2-fade, 40svh)); }
