/* SOLIST, "Les films d'abord" (DIRECTION.md). One system for every page: black ground, white type,
   Geist (400, 500) and Geist Mono (400, 500); the colour comes only from the films.
   No accent, no shadow, no rounded card, no fade on scroll, no parallax, no carousel. */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --label: #9C978F;
  --para: #C9C4BC;
  --rule: #3A3835;
  --m: 24px;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: 12px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--bg); font: 400 13px/1 var(--mono); transform: translateY(-200%); }
.skip:focus { transform: none; }

.mono, .label, .top__h1, .top__nav, .top__menu, .info, .foot, .fp__nav, .fp__controls, .panel__cols, .panel__back,
.fl__views, .fl__meta, .fl__org, .fl__list, .ap__intro, .ap__cols, .menu__info, .menu__close, .legal .back {
  font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.45;
}
.label { color: var(--label); }

/* links: plain words draw a 1px underline on hover; .u is always underlined */
.top__nav a, .foot a, .fp__nav a, .fp__nav button, .menu__info a, .legal .back a, .form__note a, .fl__views button, .panel__back, .menu__close, .fp__controls :is(button, a), .top__menu {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease, color .2s ease; padding-bottom: 2px;
}
:is(.top__nav a, .foot a, .fp__nav a, .fp__nav button, .menu__info a, .legal .back a, .form__note a, .fl__views button, .panel__back, .menu__close, .fp__controls :is(button, a), .top__menu):is(:hover, :focus-visible) { background-size: 100% 1px; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .5); transition: text-decoration-color .2s ease; }
.u:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------------ header (every page) */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--m);
  padding: 20px var(--m) 0; pointer-events: none;
}
.top > * { pointer-events: auto; }
/* transparent only over a full-frame picture (a film page, the home gallery); solid black elsewhere,
   at every width, so it never lies over text */
.top { background: #000000; padding-bottom: 14px; }
.page-film .top, .page-home .top.is-clear { background: transparent; }
@media (max-width: 639px) { .top { padding-bottom: 6px; } }
.top__logo, .menu__logo { font: 500 19px/1 var(--sans); letter-spacing: -0.03em; justify-self: start; min-height: 24px; display: inline-flex; align-items: center; }
.top__h1 { text-align: center; }
.top__nav { justify-self: end; display: flex; gap: 20px; }
.top__nav a { display: inline-flex; align-items: center; min-height: 24px; }
.top__nav a[aria-current] { background-size: 100% 1px; }   /* the page we are on: its underline stays */
.top__menu { display: none; justify-self: end; min-height: 44px; }

/* ------------------------------------------------------------------ the title line (home and film pages) */
.line {
  position: absolute; left: var(--m); right: var(--m); top: 46%; z-index: 5;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--m); align-items: end;
  padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / .45);
}
.line__title { font: 500 44px/1.05 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.t-sep { font-weight: 400; }
/* readability over a bright picture: the uniform veil, plus this very light text shadow only (DIRECTION.md) */
.line .line__title, .line .info { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
/* one piece of information only, the place, on the right (DIRECTION.md, 21.11.2026) */
.info { text-align: right; text-transform: uppercase; }
.info dd { overflow-wrap: anywhere; }

/* the home page's one line: fixed at 46% of the screen, the films pass under it.
   With script (html.js) it shows the film at the centre of the screen and only while the gallery is there;
   without script each film carries its own line. */
.line--fixed { display: none; }
.js .line--fixed {
  display: grid; position: fixed; z-index: 30; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.js .line--fixed.is-shown { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.js .line--fixed .line__title, .js .line--fixed .info { transition: opacity .125s ease; }
.js .line--fixed.is-swapping .line__title, .js .line--fixed.is-swapping .info { opacity: 0; }
.js .line--fixed.is-shown .line__title a { pointer-events: auto; }
.js .film__data { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ home: one film a screen */
.film { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #0d0c0b; }
.film__media, .fp__media { position: absolute; inset: 0; overflow: hidden; }
.film__media > picture, .fp__media > picture { position: absolute; inset: 0; }
.film__media::after, .fp__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* one uniform veil over the whole picture, nothing else behind the title line (DIRECTION.md) */
  background: rgb(0 0 0 / var(--voile, .28));
  transition: opacity .6s var(--ease);
}
.film__img, .film__video, .fp__img, .fp__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.2s var(--ease); }
.film__video { opacity: 0; transition: opacity .4s ease, transform 1.2s var(--ease); }
.film__video.is-on { opacity: 1; }
.film__cover { position: absolute; inset: 0; z-index: 2; }
.film__cover:focus-visible { outline-offset: -6px; }
@media (hover: hover) and (pointer: fine) {
  .film:has(.film__cover:hover) :is(.film__img, .film__video) { transform: scale(1.025); }
  /* with a mouse only: the veil lifts over the picture, to see its true colours, and comes back on leave
     (phones and tablets keep it; reduced motion: no transition, below). On a film's page the veil follows
     the interface instead (below) */
  .film:has(.film__cover:hover) .film__media::after { opacity: 0; }
  .fp:hover :is(.fp__img, .fp__video) { transform: scale(1.025); }
}
.film:has(.film__cover:focus-visible) :is(.film__img, .film__video) { transform: scale(1.025); }
.loops-pause { position: fixed; right: var(--m); bottom: var(--m); z-index: 60; min-height: 44px; padding: 0 12px; background: #000; color: #fff; font: 400 13px/1 var(--mono); text-decoration: underline; text-underline-offset: 4px; }
/* the loops' pause: for the keyboard only, out of sight until it has the focus */
.loops-pause:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ 12-column grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }

/* démarche */
.demarche { position: relative; z-index: 31; background: var(--bg); padding: 160px var(--m); }
.demarche .label { grid-column: 1 / -1; margin-bottom: 32px; }
.demarche__phrase { grid-column: 1 / span 10; font: 500 56px/1.05 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.demarche__texte { grid-column: 7 / 12; margin-top: 64px; display: grid; gap: 24px; font-size: 19px; line-height: 1.55; color: var(--para); }
.demarche__texte .mono { color: var(--ink); }
.demarche__texte .mono a { display: inline-flex; align-items: center; min-height: 44px; }

/* contact (home) */
.contact { position: relative; z-index: 31; background: var(--bg); padding: 0 var(--m) 120px; }
.contact__row { border-top: 1px solid var(--rule); padding-top: 24px; row-gap: 32px; }
.contact__col { grid-column: span 4; display: grid; gap: 16px; align-content: start; }
.contact__lines { font-size: 19px; line-height: 1.5; color: var(--para); }
.contact__lines a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .45); }
.big-link {
  justify-self: start; text-align: left; font: 500 32px/1.15 var(--sans); letter-spacing: -0.03em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgb(255 255 255 / .6);
  transition: text-decoration-color .2s ease;
}
.big-link:hover { text-decoration-color: var(--ink); }

/* footer */
.foot { position: relative; z-index: 31; background: var(--bg); display: flex; justify-content: space-between; gap: 16px; padding: 24px var(--m) 32px; color: var(--label); }
.foot__links { display: flex; gap: 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 24px; }
.foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ panels (contact form, générique) */
dialog { color: var(--ink); }
.panel {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(0 0 0 / .62); overflow-y: auto;
}
.panel::backdrop { background: rgb(0 0 0 / .2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.panel[open] { animation: panel-in .25s ease; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.panel__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 96px var(--m) 32px; }
.panel__title { font: 500 56px/1.05 var(--sans); letter-spacing: -0.04em; }
.panel__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--m); color: var(--para); }
.panel__cols > div { display: grid; gap: 12px; align-content: start; }
.panel__cols p:not(.label), .panel__cols li, .panel__cols dd { color: var(--ink); }
.panel__cols .credits { display: grid; gap: 12px; }
.panel__cols .credits dt { color: var(--label); }
.panel__back { align-self: center; min-height: 44px; }

/* the form: fields on a rule, no box */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--m); max-width: 1000px; }
.field { grid-column: 1 / -1; display: grid; gap: 8px; }
.field--half { grid-column: span 1; }
.field label { font: 400 13px/1.4 var(--mono); color: var(--label); }
.field input, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #6b6660; border-radius: 0;
  background: transparent; color: var(--ink); font: 400 19px/1.4 var(--sans); min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom: 2px solid #ff8a7a; }
.field__error { font: 400 13px/1.4 var(--mono); color: #ff8a7a; }
.field__error[hidden] { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.form__send { min-height: 48px; font: 500 32px/1.15 var(--sans); letter-spacing: -0.03em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.form__send[disabled] { opacity: .5; cursor: progress; }
.form__note { font: 400 13px/1.4 var(--mono); color: var(--label); }
.form__status { grid-column: 1 / -1; font: 400 13px/1.4 var(--mono); color: var(--para); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ menu (phone) */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 10px var(--m) 32px; border: 0; background: var(--bg);
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: var(--bg); }
.menu__bar { display: flex; justify-content: space-between; align-items: center; }
.menu__logo { min-height: 44px; }
.menu__close { min-height: 44px; }
.menu__links { display: grid; gap: 8px; margin-top: 64px; }
.menu__links a { font: 500 40px/1.15 var(--sans); letter-spacing: -0.04em; min-height: 48px; }
.menu__info { margin-top: auto; display: grid; gap: 16px; color: var(--para); }
.menu__info a { color: var(--ink); }

/* ------------------------------------------------------------------ films page */
.fl { padding: 120px 0 96px; }
.fl__title { text-align: center; font: 500 56px/1.05 var(--sans); letter-spacing: -0.04em; }
.fl__title sup { font: 400 13px/1 var(--mono); letter-spacing: 0; vertical-align: top; margin-left: 6px; position: relative; top: 6px; }
.fl__bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 48px var(--m) 24px; }
.fl__views { display: flex; gap: 16px; align-items: center; }
.fl__views button { min-height: 44px; color: var(--label); }
.fl__views button[aria-pressed="true"] { color: var(--ink); }
.fl__views span { color: var(--rule); }
.fl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.fl__grid a { display: block; padding-bottom: 32px; }
.fl__media { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0c0b; }
.fl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .fl__grid a:hover .fl__media img { transform: scale(1.025); } }
.fl__meta { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px var(--m) 0; text-transform: uppercase; }
.fl__meta .r { text-align: right; }
.fl__org { padding: 2px var(--m) 0; color: var(--label); text-transform: uppercase; }
.fl__list { margin: 0 var(--m); border-top: 1px solid var(--rule); text-transform: uppercase; }
.fl__list a {
  display: grid; grid-template-columns: 48px minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); gap: 16px;
  align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); transition: color .2s ease;
}
.fl__list a > span:first-child { color: var(--label); }
.fl__list .r { text-align: right; }
.fl__thumb { position: fixed; left: 0; top: 0; z-index: 35; width: 240px; aspect-ratio: 16 / 9; object-fit: cover; pointer-events: none; }

/* ------------------------------------------------------------------ the page of one film */
.page-film main { height: 100svh; min-height: 640px; }
.fp { position: relative; height: 100%; overflow: hidden; background: #0d0c0b; }
.fp__frame { position: absolute; inset: 0; overflow: hidden; }
.fp__frame iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78svh); height: max(100svh, 56.25vw); max-width: none; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.fp__controls { position: absolute; right: var(--m); bottom: 72px; z-index: 6; display: flex; gap: 20px; }
.fp__controls :is(button, a) { min-height: 44px; display: inline-flex; align-items: center; }
.fp__controls p { align-self: center; }
/* while the film plays, the interface fades out (0.4 s) and the pointer hides; site.js sets .is-idle on
   <html> and lifts it on a mouse move, a touch or the keyboard (DIRECTION.md, page d'un film) */
.page-film :is(.top, .line--film, .fp__controls, .fp__nav) { transition: opacity .4s ease; }
.is-idle .page-film :is(.top, .line--film, .fp__controls, .fp__nav) { opacity: 0; pointer-events: none; }
.is-idle .page-film .top > * { pointer-events: none; }
.is-idle, .is-idle * { cursor: none !important; }
/* the film's veil comes and goes with the interface: over the film while the interface shows, none while
   it is hidden (one uniform veil, at the film's level, as on home) */
.page-film .fp__media::after { z-index: 2; transition: opacity .4s ease; }
.is-idle .page-film .fp__media::after { opacity: 0; }
/* the poster over the Vimeo player while it loads; it fades out (0.6 s) once the film really plays */
.fp__poster { z-index: 1; transition: opacity .6s ease, transform 1.2s var(--ease); }
.fp.is-started .fp__poster { opacity: 0; }
.fp__media > picture:has(.fp__poster) { z-index: 1; }
.fp:has(video, iframe) { cursor: pointer; }   /* a click on the film pauses or plays it */
.fp__nav { position: absolute; left: var(--m); right: var(--m); bottom: 20px; z-index: 6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.fp__nav a, .fp__nav button { min-height: 44px; display: inline-flex; align-items: center; }
.fp__nav [rel="prev"] { justify-self: start; }
.fp__nav button { justify-self: center; }
.fp__nav [rel="next"] { justify-self: end; }

/* ------------------------------------------------------------------ about */
.ap { padding: 120px var(--m) 96px; }
.ap__head { align-items: start; row-gap: 32px; }
.ap__title { grid-column: 1 / span 6; font: 500 56px/1.05 var(--sans); letter-spacing: -0.04em; }
.ap__intro { grid-column: 8 / -1; color: var(--para); max-width: 52ch; }
.ap__cols { margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--rule); row-gap: 40px; }
.ap__cols > div { grid-column: span 3; display: grid; gap: 12px; align-content: start; }
.ap__cols li, .ap__cols p:not(.label) { color: var(--ink); }
.ap__cols button { font: inherit; text-align: left; min-height: 24px; }
.ap__portrait { margin-top: 120px; margin-left: calc(50% + var(--m) / 2); aspect-ratio: 4 / 5; overflow: hidden; background: #0d0c0b; }
.ap__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ap__slot { height: 100%; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--label); padding: var(--m); text-align: center; }

/* ------------------------------------------------------------------ legal pages */
.legal { padding: 120px var(--m) 96px; max-width: calc(680px + 2 * var(--m)); }
.legal .back { color: var(--label); margin-bottom: 48px; }
.legal h1 { font: 500 56px/1.05 var(--sans); letter-spacing: -0.04em; margin-bottom: 48px; }
.legal h2 { font: 400 13px/1.4 var(--mono); color: var(--label); margin: 40px 0 12px; }
.legal p { font-size: 17px; line-height: 1.6; color: var(--para); margin-bottom: 8px; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1023px) {
  .line { grid-template-columns: minmax(0, 1fr); }
  .demarche__texte { grid-column: 5 / -1; }
  .ap__cols > div { grid-column: span 6; }
  .ap__intro { grid-column: 1 / -1; }
  .ap__portrait { margin-left: 0; max-width: 560px; }
  .panel__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ phone (390) */
@media (max-width: 639px) {
  .top { grid-template-columns: 1fr auto; padding-top: 10px; align-items: center; }
  .top__h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .top__nav { display: none; }
  .top__menu { display: inline-flex; align-items: center; }
  .top__logo { min-height: 44px; }
  .line__title { font-size: 30px; }
  .demarche { padding: 120px var(--m); }
  .demarche__phrase { grid-column: 1 / -1; font-size: 34px; }
  .demarche__texte { grid-column: 1 / -1; margin-top: 40px; }
  .contact__col { grid-column: 1 / -1; }
  .foot { flex-direction: column; }
  .foot a { min-height: 44px; }
  .panel__title, .fl__title, .ap__title, .legal h1 { font-size: 40px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field--half { grid-column: 1 / -1; }
  .fl__bar { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 32px; }
  .fl__grid { grid-template-columns: minmax(0, 1fr); }
  .fl__list a { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 2px; padding-block: 12px; }
  .fl__list a > span:nth-child(3) { grid-column: 2; color: var(--label); }
  .fl__list a > span:nth-child(4) { grid-row: 1; grid-column: 3; }
  .ap__title, .ap__intro { grid-column: 1 / -1; }
  .ap__cols { margin-top: 64px; }
  .ap__cols > div { grid-column: 1 / -1; }
  .ap__portrait { margin-top: 64px; }
  .fp__controls { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .film:has(.film__cover:hover) :is(.film__img, .film__video), .fp:hover :is(.fp__img, .fp__video) { transform: none; }
}
