@font-face {
  font-family: "Kanchenjunga";
  src: url("assets/fonts/kanchenjunga-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kanchenjunga";
  src: url("assets/fonts/kanchenjunga-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Kanchenjunga";
  src: url("assets/fonts/kanchenjunga-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Kanchenjunga";
  src: url("assets/fonts/kanchenjunga-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #111;
  --secondary: #5e5e5e;
  --rule: #111;
  --margin: 20px;
  --gutter: 40px;
  --profile-gap: 80px;
  --unit: calc((100vw - (2 * var(--margin)) - (10 * var(--gutter)) - var(--profile-gap)) / 12);
  --label-units: 2;
  --media-units: 6;
  --label-width: calc(var(--label-units) * (var(--unit) + var(--gutter)) - var(--gutter));
  --media-width: calc(var(--media-units) * (var(--unit) + var(--gutter)) - var(--gutter));
  --profile-width: calc((12 - var(--label-units) - var(--media-units)) * (var(--unit) + var(--gutter)) - var(--gutter));
  --font-body: clamp(13px, .86vw, 15px);
  --font-small: clamp(11px, .73vw, 12px);
  --font-reading: "Kanchenjunga", "Source Sans 3", "Helvetica Neue", sans-serif;
  --font-display: "Kanchenjunga", "Source Sans 3", "Helvetica Neue", sans-serif;
  --font-highlight: "Kanchenjunga", "Source Sans 3", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --duration-viewer: 250ms;
  --duration-viewer-exit: 200ms;
  --duration-viewer-reduced: 150ms;
  --viewer-shade: rgb(255 255 255 / .94);
  color-scheme: light;
  font-family: var(--font-reading);
  font-synthesis: none;
  font-size: var(--font-body);
  font-weight: 400;
  font-stretch: 100%;
  font-optical-sizing: auto;
  font-synthesis: none;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  scrollbar-color: #a4a4a4 var(--paper);
  scrollbar-width: thin;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 20px; }
body { margin: 0; padding: 0 var(--margin); }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.identity:hover { text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
main[tabindex="-1"]:focus-visible, [id="profil"]:focus-visible { outline: none; }
::selection { color: #fff; background: #313131; }
p, h1, h2, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.15; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 14px; top: 8px; background: #fff; padding: 10px; transform: translateY(-160%); border: 1px solid var(--ink); }
.skip-link:focus { transform: translateY(0); }
.skip-profile { left: 160px; }

.project-column { width: calc(var(--label-width) + var(--gutter) + var(--media-width)); }
.site-header, .project { display: grid; grid-template-columns: repeat(2, minmax(0, calc((var(--label-width) - var(--gutter)) / 2))) repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
.site-header { align-items: start; padding-top: 20px; margin-bottom: 52px; }
.identity { grid-column: 1 / 3; font-family: var(--font-display); font-size: clamp(22px, 1.75vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.project-navigation { grid-column: 3 / 6; display: flex; flex-wrap: wrap; gap: 18px 26px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.header-contact { grid-column: 7 / 9; justify-self: end; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.mobile-profile-link { display: none; }
.external-link { display: inline-flex; align-items: baseline; gap: 5px; }
.external-link svg { width: .9em; height: .9em; align-self: center; }
.project { row-gap: 20px; align-items: start; scroll-margin-top: 20px; }
.project:not([hidden]) ~ .project:not([hidden]) { margin-top: calc(clamp(90px, 8.5vw, 136px) + 30px); }
.project-heading { grid-column: 1 / 3; grid-row: 1; padding-top: 1px; }
.project-heading h2 { font-family: var(--font-display); font-size: clamp(18px, 1.35vw, 24px); font-weight: 700; letter-spacing: -.005em; line-height: 1.06; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.project-heading p { color: var(--secondary); margin-top: 6px; }
.project-media { grid-column: 3 / 9; grid-row: 1; position: relative; aspect-ratio: 16 / 9; background: #f5f5f5; min-width: 0; }
.project-media > img, .video-poster > img { width: 100%; height: 100%; object-fit: cover; }
.media-still { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.video-poster { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #161b24; }
.video-poster > .poster-lettering { position: absolute; left: 4%; bottom: 14%; width: 42%; height: auto; object-fit: contain; pointer-events: none; }
.play-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; transition: transform 160ms var(--ease-out); }
.play-mark svg { width: 31px; height: 35px; fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .video-poster:hover .play-mark { transform: translate(-50%, -50%) scale(1.08); }
}
.video-caption { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; color: #fff; background: #202020; padding: 6px 9px; font-size: 11px; line-height: 1; }
.video-caption svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.video-screen iframe { border: 0; position: absolute; inset: 0; width: 100%; height: 100%; }
.video-status { position: absolute; z-index: 3; inset: auto 12px 12px; color: #fff; background: #242424; padding: 10px 12px; font-size: 12px; }
.video-status a { text-decoration: underline; }
.no-script-video { position: absolute; bottom: 10px; left: 10px; background: #fff; padding: 8px; }

.project-credits { grid-column: 1 / 3; grid-row: 2; font-size: var(--font-small); line-height: 1.22; }
.credits-list > div { display: grid; grid-template-columns: minmax(min-content, 38%) minmax(0, 1fr); gap: 8px; margin-bottom: 7px; }
.credits-list dt { color: var(--secondary); overflow-wrap: normal; hyphens: none; }
.credits-list dd { overflow-wrap: anywhere; }
.credit-reference { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.credit-reference:hover { text-decoration-thickness: 2px; }
.partner-details { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--rule); }
.partner-details summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.partner-details summary::-webkit-details-marker { display: none; }
.partner-details summary svg { width: 12px; height: 12px; flex-shrink: 0; }
.partner-details[open] summary svg path { d: path("M3 8h10"); }
.partner-details p { margin-top: 12px; text-wrap: pretty; }
.project-under { grid-column: 3 / 9; grid-row: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.contact-sheet { grid-column: 1 / 4; display: flex; flex-wrap: wrap; gap: 12px; align-items: start; }
.contact-sheet figure { width: clamp(68px, 6.2vw, 105px); }
.thumbnail { display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; padding: 0; background: #f2f2f2; cursor: zoom-in; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-poster img { object-fit: contain; }
.thumbnail:hover, .video-poster:hover { outline: 1px solid var(--ink); outline-offset: 3px; }
.contact-sheet figcaption { margin-top: 5px; font-size: 10px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.project-description { grid-column: 4 / 7; text-wrap: pretty; }
.project-description p + p { margin-top: 13px; }
.project-facts { color: var(--secondary); font-size: var(--font-small); }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: currentColor; }
.text-link:hover { text-decoration-color: currentColor; }
.project-description .text-link { margin-top: 14px; }
.video-source { display: inline-flex; width: fit-content; font-size: var(--font-small); color: var(--secondary); }
.catalogue-footer { margin-top: 100px; margin-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: var(--font-small); }

.profile-column { position: fixed; top: 0; right: var(--margin); bottom: 0; width: var(--profile-width); padding-block: 20px 32px; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior-y: auto; container-type: inline-size; container-name: profile; }
.profile-section { min-width: 0; }
.profile-section h2 { margin-bottom: 16px; font-family: var(--font-display); font-size: 13px; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
.profile-copy { min-width: 0; line-height: 1.4; text-wrap: pretty; }
.profile-copy p { max-width: 62ch; }
.profile-copy p + p { margin-top: 14px; }
.biography .profile-copy { max-width: 64ch; }
.biography .profile-copy > p:first-child { max-width: 100%; font-family: var(--font-highlight); font-size: clamp(16px, 1.25vw, 20px); font-weight: 600; letter-spacing: -.01em; line-height: 1.22; }
.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.profile-details .profile-copy { line-height: 1.35; }
.profile-details .profile-copy p + p { margin-top: 12px; }
.profile-contact { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
.secondary { color: var(--secondary); }
.profile-email { max-width: 100%; overflow-wrap: anywhere; font-size: 1em; }
.profile-email svg { flex-shrink: 0; }
.profile-return { display: none; }

@container profile (max-width: 340px) {
  .profile-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.image-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px 40px; border: 0; overflow: hidden; background: transparent; color: var(--ink); }
.image-viewer::backdrop { background: transparent; }
.image-viewer[open] { display: grid; place-items: center; }
.image-shade { position: absolute; inset: 0; background: var(--viewer-shade); }
.image-dialog-content { position: relative; width: min(1280px, calc(100vw - 80px)); }
.image-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-bottom: 8px; font-size: 12px; }
.image-counter { color: var(--secondary); font-variant-numeric: tabular-nums; }
.image-stage { position: relative; display: grid; place-items: center; width: 100%; height: calc(100dvh - 160px); }
.viewer-image { width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; transform-origin: center; }
.image-caption-row { display: block; min-height: 44px; padding-top: 8px; font-size: 12px; line-height: 1.3; }
#viewer-caption { display: block; text-align: center; text-wrap: pretty; }
.viewer-close { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 0 5px 8px; border: 0; background: transparent; font-size: 12px; }
.viewer-close svg { width: 19px; height: 19px; }
.viewer-previous, .viewer-next { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 64px; padding: 12px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.viewer-previous { left: 16px; }
.viewer-next { right: 16px; }
.viewer-previous svg, .viewer-next svg { width: 28px; height: 28px; stroke-width: 1.5; }
.viewer-status { position: absolute; max-width: min(42ch, 100%); text-align: center; line-height: 1.4; }
.image-original { display: block; margin-top: 12px; }
body:has(.image-viewer[open], .video-viewer[open]) { overflow: hidden; }

.video-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: var(--ink); }
.video-viewer::backdrop { background: transparent; }
.video-viewer[open] { display: grid; place-items: center; }
.video-shade { position: absolute; inset: 0; background: var(--viewer-shade); }
.video-dialog-content { position: relative; width: min(1280px, calc(100vw - 80px), calc((100dvh - 120px) * var(--video-ratio, 1.777778))); }
.video-toolbar { display: flex; align-items: center; gap: 24px; padding-bottom: 13px; }
.video-toolbar h2 { margin-right: auto; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.video-direct-link { font-size: 12px; flex-shrink: 0; }
.video-close { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0 5px 8px; border: 0; background: transparent; font-size: 12px; }
.video-close svg { width: 19px; height: 19px; }
.video-screen { position: relative; width: 100%; aspect-ratio: var(--video-ratio, 1.777778); background: #111; transform-origin: center; }
.video-placeholder { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 160ms var(--ease-out); }
.video-placeholder.is-ready { opacity: 0; }

.layout-editor { position: fixed; z-index: 8; right: 18px; bottom: 16px; display: flex; flex-direction: column; align-items: end; gap: 0; max-width: min(400px, calc(100vw - 32px)); font-size: 12px; line-height: 1.35; }
.layout-settings { background: var(--paper); padding: 16px; border: 1px solid var(--ink); margin-bottom: -1px; width: 100%; }
.layout-instruction { max-width: 44ch; }
.layout-values { display: block; margin-top: 12px; font-variant-numeric: tabular-nums; }
.layout-storage-note, .layout-mobile-note { margin-top: 7px; color: var(--secondary); font-size: 11px; }
.layout-toggle, .layout-reset { background: var(--paper); border: 1px solid var(--ink); padding: 9px 12px; line-height: 1.2; min-height: 36px; }
.layout-toggle { background: var(--ink); color: var(--paper); }
.layout-reset { margin-top: 14px; }
.layout-separator { position: fixed; z-index: 7; top: 48px; bottom: 84px; width: 28px; margin-left: -14px; cursor: col-resize; touch-action: none; }
.separator-grip { position: absolute; display: grid; place-items: center; left: 0; top: 45%; width: 28px; height: 28px; color: var(--paper); background: var(--ink); }
.separator-grip svg { width: 18px; height: 24px; }
.layout-separator:focus-visible { outline: none; }
.layout-separator:focus-visible .separator-grip { outline: 2px solid var(--ink); outline-offset: 3px; }
.layout-separator:hover .separator-grip { background: #444; }
body[data-resizing="true"], body[data-resizing="true"] * { cursor: col-resize !important; user-select: none; }
body:has(dialog[open]) .layout-editor, body:has(dialog[open]) .layout-separator { visibility: hidden; }

@media (min-width: 1800px) {
  :root { --margin: 24px; --gutter: 48px; --profile-gap: 88px; }
  .site-header { margin-bottom: 52px; }
}

@media (max-width: 1100px) {
  :root { --margin: 20px; --gutter: 24px; --profile-gap: 24px; --font-body: 14px; --font-small: 12px; }
  .project-column { width: 100%; }
  .site-header, .project { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .site-header { grid-template-columns: repeat(8, minmax(0, 1fr)); margin-bottom: 46px; }
  .mobile-profile-link { display: inline; }
  .project-navigation { grid-column: 3 / 7; }
  .project-description { line-height: 1.3; }
  .profile-column { position: static; width: 100%; padding: 60px 0 34px; margin-top: 60px; border-top: 1px solid var(--rule); overflow: visible; }
  .profile-details { gap: 28px; max-width: 64ch; }
  .profile-copy { max-width: 64ch; }
  .profile-return { display: inline-block; margin-top: 16px; }
  .layout-separator { display: none; }
  .contact-sheet figure { width: 92px; }
}

@media (max-width: 650px) {
  :root { --margin: 16px; --gutter: 12px; --font-body: 14px; --font-small: 12px; }
  .site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 19px 10px; padding-top: 18px; margin-bottom: 45px; }
  .identity { width: 100%; font-size: 24px; }
  .project-navigation { gap: 22px; }
  .project { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .project-heading { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .project-heading h2 { font-size: 18px; grid-column: 1; grid-row: 1; }
  .project-heading .project-year { grid-column: 2; grid-row: 1; margin-top: 0; }
  .project-heading .project-category { grid-column: 1 / -1; grid-row: 2; font-size: 12px; margin-top: 5px; }
  .project-heading .project-status { font-size: 12px; }
  .project-media { grid-column: 1 / -1; grid-row: 2; }
  .project-credits { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
  .credits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; }
  .credits-list > div { display: block; margin: 0; }
  .credits-list dd { margin-top: 3px; }
  .partner-details { margin-top: 18px; }
  .partner-details summary { min-height: 34px; align-items: center; }
  .project-under { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 1fr; row-gap: 21px; }
  .contact-sheet, .project-description { grid-column: 1; }
  .contact-sheet figure { width: 76px; }
  .project-description { max-width: 55ch; font-size: 14px; line-height: 1.35; }
  .project-description p + p { margin-top: 9px; }
  .project-description .text-link { min-height: 30px; align-items: center; margin-top: 8px; }
  .video-source { line-height: 30px; }
  .project:not([hidden]) ~ .project:not([hidden]) { margin-top: 102px; }
  .profile-column { margin-top: 44px; padding-top: 24px; }
  .profile-details { gap: 18px; }
  .profile-section h2 { font-size: 12px; }
  .profile-copy { line-height: 1.35; }
  .profile-email { min-height: 36px; align-items: center; }
  .catalogue-footer { margin-top: 65px; line-height: 1.4; }
  .image-viewer { padding: 14px 12px; }
  .image-dialog-content { width: calc(100vw - 24px); }
  .image-stage { height: calc(100dvh - 168px); }
  .image-caption-row { gap: 8px; }
  .viewer-close { min-height: 44px; }
  .video-dialog-content { width: min(calc(100vw - 24px), calc((100dvh - 144px) * var(--video-ratio, 1.777778))); }
  .video-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-bottom: 12px; }
  .video-toolbar h2 { grid-column: 1; grid-row: 1; font-size: 14px; }
  .video-close { grid-column: 2; grid-row: 1; min-height: 44px; }
  .video-direct-link { grid-column: 1; grid-row: 2; min-height: 30px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play-mark { transition: none; }
  .video-placeholder { transition: opacity 150ms ease; }
}

/* Contenus documentés : portraits, affiches et fragments des films. */
.profile-portrait { display: block; width: 100%; max-width: 64ch; margin: 0 0 22px; padding: 0; border: 0; background: #f5f5f5; cursor: zoom-in; }
.profile-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.media-poster > img { object-fit: contain; }
.video-type-title { position: absolute; inset: 20px 20px auto; color: #fff; font-family: var(--font-display); font-size: clamp(22px, 3vw, 42px); font-weight: 400; line-height: 1; text-align: left; }
.project-links { display: flex; flex-direction: column; align-items: start; }
.project-links a { max-width: 100%; overflow-wrap: anywhere; }
.project-description { min-width: 0; }
.project-video-list { margin-top: 22px; border-top: 1px solid var(--rule); }
.project-video-list summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--font-small); }
.project-video-list summary::-webkit-details-marker { display: none; }
.project-video-list[open] summary svg { transform: rotate(45deg); }
.project-video-list ol { margin: 0; padding: 0; list-style: none; }
.video-fragment { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-height: 44px; padding: 10px 0; background: transparent; border: 0; border-top: 1px solid #dedede; text-align: left; font-size: var(--font-small); line-height: 1.35; }
.video-fragment:hover span:first-child { text-decoration: underline; }
.video-fragment .secondary { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.partner-details .credits-list { margin-top: 14px; }
.project-under:not(:has(.contact-sheet)) .project-description { grid-column: 4 / 7; }
@media (max-width: 650px) {
  .project-under:not(:has(.contact-sheet)) .project-description { grid-column: 1; }
  .partner-details .credits-list { gap: 12px 18px; }
}

/* Navigation par rôle et versions linguistiques, alignées au bas de l’identité. */
.site-header { grid-template-columns: var(--label-width) minmax(0, 1fr) auto; align-items: end; }
.site-header .identity { grid-column: 1; }
.project-navigation { grid-column: 2; gap: 6px 8px; align-items: baseline; font-size: 22px; line-height: 1.15; padding-bottom: 1px; }
.filter-button { display: inline; border: 0; padding: 0; background: transparent; font: inherit; color: inherit; text-transform: inherit; white-space: nowrap; line-height: inherit; }
.filter-button:hover, .filter-button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .25em; }
.nav-slash { color: var(--secondary); }
.language-navigation { grid-column: 3; display: flex; align-items: baseline; gap: 5px; padding-bottom: 1px; font-size: 11px; font-weight: 600; line-height: 1.3; }
.language-navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 651px) and (max-width: 1100px) {
  .site-header { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .site-header > .mobile-profile-link { grid-column: 2 / 4; justify-self: start; margin-top: 12px; font-size: 11px; }
}
@media (max-width: 650px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 12px; }
  .site-header .identity { grid-column: 1; grid-row: 1; width: auto; max-width: 200px; }
  .language-navigation { grid-column: 2; grid-row: 1; }
  .project-navigation { grid-column: 1 / -1; grid-row: 2; gap: 8px 6px; font-size: 15px; }
  .site-header > .mobile-profile-link { grid-column: 1 / -1; grid-row: 3; justify-self: start; font-size: 11px; margin-top: -8px; }
}

/* Images et calendrier des performances partagent la colonne sous le média. */
.project-visuals { grid-column: 1 / 4; min-width: 0; }
.project-status { color: var(--ink) !important; font-weight: 600; }
.project-under > .performance-calendar { grid-column: 1 / -1; }
.performance-calendar { margin-top: 32px; border-top: 1px solid var(--rule); font-size: var(--font-small); line-height: 1.35; }
.performance-calendar > summary, .performance-season > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.performance-calendar summary::-webkit-details-marker { display: none; }
.performance-calendar summary svg { flex-shrink: 0; width: 12px; height: 12px; }
.performance-calendar[open] > summary svg, .performance-season[open] > summary svg { transform: rotate(45deg); }
.performance-season { border-top: 1px solid #dedede; }
.performance-season > summary { color: var(--secondary); font-variant-numeric: tabular-nums; }
.performance-list { list-style: none; margin: 0; padding: 0 0 12px; columns: 14rem 3; column-gap: var(--gutter); }
.performance-entry { break-inside: avoid; display: grid; grid-template-columns: 82px minmax(0, 1fr); column-gap: 14px; padding-block: 9px; }
.performance-date { font-variant-numeric: tabular-nums; }
.performance-venue, .performance-city, .performance-note { display: block; overflow-wrap: anywhere; }
.performance-note { margin-top: 3px; font-size: 10px; text-transform: uppercase; }
.performance-source { display: inline-flex; margin-top: 12px; font-size: var(--font-small); }
.performance-empty { padding-top: 4px; padding-bottom: 12px; }
@media (max-width: 650px) {
  .project-visuals { grid-column: 1; }
  .performance-entry { grid-template-columns: 94px minmax(0, 1fr); }
}

/* Navigation de galerie : contrôles contrastés à mi-hauteur et gestes horizontaux. */
.image-viewer { overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
html:has(.image-viewer[open]) { overscroll-behavior-x: none; }
@media (min-width: 651px) {
  .image-dialog-content { width: min(1280px, calc(100vw - 160px)); }
}
@media (max-width: 650px) {
  .viewer-previous, .viewer-next { width: 44px; height: 56px; padding: 9px; }
  .viewer-previous { left: 6px; }
  .viewer-next { right: 6px; }
}
@media (hover: hover) and (pointer: fine) {
  .viewer-previous:hover, .viewer-next:hover { background: var(--paper); color: var(--ink); }
}

.project-heading .project-victoria-role { margin-top: 8px; color: var(--ink); font-size: var(--font-small); line-height: 1.35; font-weight: 500; }
.project-victoria-role .role-label { color: var(--secondary); font-weight: 400; }
.project-heading .project-award { color: var(--ink); font-weight: 600; font-size: var(--font-small); line-height: 1.35; }
@media (max-width: 650px) {
  .project-heading:has(.project-award) .project-award { grid-column: 1 / -1; grid-row: 2; }
  .project-heading:has(.project-award) .project-category { grid-row: 3; }
  .project-heading .project-victoria-role { grid-column: 1 / -1; grid-row: 3; }
  .project-heading:has(.project-award) .project-victoria-role { grid-row: 4; }
}

.profile-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; font-size: var(--font-small); }

.project-prose + .project-facts { margin-top: 13px; }
@media (max-width: 650px) { .project-prose + .project-facts { margin-top: 9px; } }

/* Onglet Montage : pas de texte de description ; seul « Voir sur… » reste. Tout est visible en mode éditeur. */
body[data-filter="montage"]:not([data-content-editing="true"]) :is(.project-prose, .project-facts, .project-video-list, .project-links a:not(.video-source)) { display: none; }

/* Textes longs (descriptions, biographie) un peu plus grands ; tout le site est en Source Sans 3. */
.project-prose, .biography .profile-copy p { font-size: 1.1em; line-height: 1.4; }

.legal summary { cursor: pointer; width: fit-content; }
.legal summary:hover { text-decoration: underline; }
.legal p { margin-top: 6px; max-width: 62ch; }
