:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); background: var(--kinou-bg); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--kinou-bg); color: var(--kinou-fg); font-family: var(--kinou-body); font-weight: 300; -webkit-font-smoothing: antialiased; }
main { max-width: 1200px; margin: 0 auto; padding: 12vh 32px 12vh; }
ul { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 48px; }
li { margin: 0; break-inside: avoid; }
a { display: inline-block; padding: 6px 0; color: var(--kinou-fg); text-decoration: none; font-size: 18px; line-height: 1.3; letter-spacing: 0.01em; opacity: 1; transition: opacity .2s; }
ul:hover a { opacity: .35; }
ul a:hover { opacity: 1; font-weight: 700; }
.logo { position: fixed; z-index: 2; mix-blend-mode: difference; top: calc(env(safe-area-inset-top, 0px) + 28px); left: 32px; padding: 0; font-family: var(--kinou-sans); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; line-height: 1; text-shadow: none; opacity: 1; }
.nav-btn { position: fixed; z-index: 2; mix-blend-mode: difference; top: calc(env(safe-area-inset-top, 0px) + 36px); right: 32px; padding: 0; font-family: var(--kinou-sans); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; line-height: 1; text-shadow: none; opacity: 1; transition: opacity .2s; }
.nav-btn:hover { opacity: .6; }
#bg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
main { position: relative; z-index: 1; }
a { text-shadow: 0 0 18px rgba(0,0,0,.6); }
html { scrollbar-gutter: stable; }
.hero { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 84px); right: 32px; margin: 0; white-space: nowrap; transform-origin: top left; font-family: var(--kinou-sans); font-weight: 600; font-size: clamp(30px, 5vw, 84px); letter-spacing: -0.04em; line-height: 1; color: var(--kinou-fg); opacity: 0; pointer-events: none; will-change: transform; }
/* Tokens de design globaux (--kinou-*). Les variables --h, --img, --i, --d, --near sont posées par app.js. */
:root { --kinou-bg: #000; --kinou-fg: #FFFCEB; --kinou-body: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif; --kinou-sans: "Satoshi", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; --kinou-hero-top: calc(env(safe-area-inset-top, 0px) + 84px); --kinou-hero-h: clamp(30px, 5vw, 84px); --kinou-tabs-top: calc(var(--kinou-hero-top) + var(--kinou-hero-h) + 36px); --kinou-zm: calc(var(--kinou-hero-top) + var(--kinou-hero-h) + 40px); }
.cats { position: fixed; z-index: 2; top: calc(var(--kinou-zm) + 62px); left: 32px; display: flex; flex-direction: column; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cats button { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--kinou-fg); font-family: var(--kinou-sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-align: left; opacity: .4; cursor: pointer; transition: opacity .2s; }
.cats button:hover { opacity: .8; }
.cats button.on { opacity: 1; }
.cats .sep { margin-top: 18px; }
.about { display: none; padding-top: 46px; max-width: 560px; font-family: var(--kinou-sans); font-weight: 400; font-size: 18px; line-height: 1.55; color: rgba(255,252,235,.85); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.about p { margin: 0 0 1em; }
.still video.snip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; opacity: 0; transition: opacity .2s ease; pointer-events: none; } /* fondu court (avant .5s) : l'image fixe et l'extrait ne se mélangent presque plus (Gus 28/10) */
.still video.snip.on { opacity: 1; }
.still.vidon { background-image: none !important; } /* extrait affiché : plus d'image fixe dessous (liseré clair, page zoomée) */
.about .lang { display: flex; gap: 16px; margin: -2px 0 22px; }
.about .lang button { padding: 0; border: 0; background: none; color: var(--kinou-fg); font-family: var(--kinou-sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; opacity: .4; cursor: pointer; transition: opacity .2s; }
.about .lang button:hover { opacity: .8; }
.about .lang button.on { opacity: 1; }
#projbg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
body.viewing.proj-on #projbg { opacity: 1; }
.card { cursor: pointer; }
#aboutbg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center 30%; background-repeat: no-repeat; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
body.viewing.about-on #aboutbg { opacity: 1; }
.about .links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 34px; }
.about .links a { padding: 6px 0; font-family: var(--kinou-sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-shadow: none; transition: opacity .2s; }
.about .links a:hover { opacity: .55; }
.work.about-mode .feed, .work.about-mode .modes { display: none; }
.work.about-mode .about { display: block; }
.modes { display: flex; gap: 16px; height: 22px; margin-bottom: 24px; }
.modes button { padding: 0; border: 0; background: none; color: var(--kinou-fg); line-height: 0; opacity: .4; cursor: pointer; transition: opacity .2s; }
.modes button:hover { opacity: .8; }
.modes button.on { opacity: 1; }
.work { position: fixed; z-index: 1; inset: 0; overflow-y: auto; padding: calc(var(--kinou-zm) + 16px) 32px 10vh 240px; opacity: 0; pointer-events: none; transition: opacity .3s; -webkit-mask-image: linear-gradient(to bottom, transparent var(--kinou-zm), #000 calc(var(--kinou-zm) + 28px)); mask-image: linear-gradient(to bottom, transparent var(--kinou-zm), #000 calc(var(--kinou-zm) + 28px)); }
body.viewing.has-work .work, body.viewing.has-work .cats { opacity: 1; pointer-events: auto; transition: opacity .5s .6s; }
.feed { display: grid; grid-template-columns: 1fr; gap: 64px; max-width: 1400px; }
.card { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseBlur { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } } /* lignes du contact : montée + flou (Gus 28/10) */
.still { aspect-ratio: 16 / 9; background: var(--img, none), radial-gradient(circle at 30% 35%, hsl(var(--h), 70%, 38%), transparent 55%), radial-gradient(circle at 75% 70%, hsl(calc(var(--h) + 50), 65%, 30%), transparent 50%), linear-gradient(135deg, hsl(var(--h), 45%, 14%), #050505); background-size: cover; background-position: center; filter: brightness(.85); transition: filter .35s ease; }
.card:hover .still { filter: brightness(1.1); }
.card h3 { margin: 12px 0 3px; font-family: var(--kinou-sans); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.card p { margin: 0; white-space: pre-line; font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; color: rgba(255,252,235,.5); }
.feed.gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: none; }
.feed.gallery .card { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.feed.gallery .still { position: absolute; inset: 0; aspect-ratio: auto; filter: none; transition: transform .6s ease; }
.feed.gallery .card:hover .still { filter: none; transform: scale(1.05); }
.feed.gallery .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transition: opacity .3s; }
.feed.gallery .card:hover .meta { opacity: 1; }
.feed.gallery .card h3 { margin: 0 0 4px; font-size: 14px; }
@media (hover: none) { .feed.gallery .meta { opacity: 1; } }
.hero { text-align: right; }
.hero .n { display: inline-block; }
.hero .tags { margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: .08em; line-height: 1; opacity: 0; transition: opacity .25s; }
.hero.ready .tags { opacity: .7; transition: opacity .4s .7s; }
body.viewing main { pointer-events: none; }
body.viewing li a { opacity: 0 !important; transition: opacity .3s; pointer-events: none; }
body.viewing #bg { opacity: 0 !important; }
body.closing li a { transition: opacity .3s .7s; }
@media (max-width: 900px) {
  ul { column-count: 2; }
  :root { --kinou-zm: calc(var(--kinou-tabs-top) + 40px); }
  .cats { top: var(--kinou-tabs-top); left: 32px; right: 32px; flex-direction: row; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .work { padding: calc(var(--kinou-zm) + 16px) 32px 10vh; }
  .cats .sep { margin-top: 0; margin-left: 10px; }
  .feed { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { ul { column-count: 1; } a { font-size: 17px; } .logo { left: 24px; font-size: 26px; } .nav-btn { top: calc(env(safe-area-inset-top, 0px) + 35px); right: 24px; font-size: 13px; } main { padding: 14vh 24px 8vh; } .hero { top: calc(env(safe-area-inset-top, 0px) + 80px); right: 24px; font-size: clamp(24px, 7.5vw, 40px); }
  :root { --kinou-hero-top: calc(env(safe-area-inset-top, 0px) + 80px); --kinou-hero-h: clamp(24px, 7.5vw, 40px); }
  .cats { left: 24px; right: 24px; }
  .work { padding-left: 24px; padding-right: 24px; }
  .feed { grid-template-columns: 1fr; gap: 36px; }
  .feed.gallery { gap: 4px; }
}
/* Attention : cette règle #home n'est volontairement pas refermée ici. Les règles qui suivent
   (.slide, .info, .name…) y sont imbriquées (CSS nesting) jusqu'à la } isolée plus bas. Ne pas corriger. */
#home { position: fixed; inset: 0; z-index: 1; font-family: var(--kinou-sans); font-weight: 400; transition: opacity .5s ease, visibility .5s;
.slide { position: fixed; inset: 0; z-index: 1; clip-path: circle(0% at 100% 100%); overflow: hidden; background: var(--kinou-bg); pointer-events: none; }
.slide.leaving, .slide.on { clip-path: circle(150% at 100% 100%); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1); }
.slide.leaving { z-index: 2; }
.in { position: absolute; inset: 0; transform: scale(1.2); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter 1.15s ease; }
.slide.on .in { transform: none; }
.slide.leaving .in { transform: scale(1.05) translate(-4%, -3%); filter: brightness(.35); }
.slide.on { z-index: 3; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx { position: absolute; inset: -12%; background:
    radial-gradient(circle at 28% 35%, hsl(var(--h), 70%, 40%), transparent 52%),
    radial-gradient(circle at 76% 68%, hsl(calc(var(--h) + 50), 65%, 32%), transparent 48%),
    linear-gradient(135deg, hsl(var(--h), 45%, 14%), #050505);
  animation: drift 14s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .fx { animation: none; } .slide.leaving, .slide.on { transition-duration: .01s; } .in { transition: none; } }

.caption > * { opacity: var(--near, 0); transition: opacity .3s ease-out; }
.info:focus-within .caption > * { opacity: 1; }
.scrim { position: fixed; z-index: 3; opacity: calc(0.55 + 0.45 * var(--near, 0)); transition: opacity .3s ease-out; left: 0; right: 0; bottom: 0; height: 55vh; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.info { position: fixed; z-index: 4; left: 32px; right: 32px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.caption { max-width: 26vw; opacity: 0; transform: translateY(8px); transition: opacity .6s .3s, transform .6s .3s; }
.name { margin: 0; text-align: right; font-weight: 600; font-size: clamp(30px, 5vw, 84px); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; opacity: 0; transform: translateY(12px); transition: opacity .6s .3s, transform .6s .3s, color .2s; }
.name a { display: inline-block; vertical-align: top; padding: 0; font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; transition: opacity .2s; }
.name a[href]:hover { opacity: .75; }
.name .ns { display: inline-block; }
.name .amp { opacity: .5; }
.name .n { display: inline-block; }
.name .tags { display: block;  margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: .08em; line-height: 1; opacity: .7; }
.show { opacity: 1; transform: none; }
.caption h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.caption h2.big { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 4px; }
.song { margin: 0 0 12px; font-size: 17px; font-weight: 400; line-height: 1.3; color: rgba(255,252,235,.85); }
.song:empty { display: none; }
.caption p { margin: 0; white-space: pre-line; font-size: 11px; line-height: 1.7; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.5); }
.caption p::first-line { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(255,252,235,.85); }

.bars { position: fixed; z-index: 5; left: 32px; right: 32px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; gap: 6px; }
.bars button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.bars button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,252,235,.25); transition: background .3s; }
.bars button.on::after { background: var(--kinou-fg); }

@media (max-width: 700px) {
  .info { left: 24px; right: 24px; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .caption { max-width: 100%; } .caption h2.big { font-size: 28px; }
  .name { text-align: left; font-size: clamp(24px, 7.5vw, 40px); }
  .bars { left: 24px; right: 24px; }
}

  .name { padding: 0; text-shadow: none; display: block; }
} /* fin du bloc #home */
@keyframes drift { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-2.5%, 2%); } }
@media (hover: none) { :root { --near: 1; } }
body.is-home { overflow: hidden; }
html:has(body.is-home) { scrollbar-gutter: auto; }
body.is-home main, body.is-home #bg { display: none; }
body.is-list #home, body.viewing #home { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-list #home { transition: opacity .12s ease, visibility .12s; }
#projvid { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
body.viewing.proj-on #projvid.on { opacity: 1; }
/* Lecteur : titre au-dessus du film, crédits dessous, puis la galerie de stills (on défile). */
#player { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; padding: 56px 32px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: rgba(0,0,0,.98); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
#player::-webkit-scrollbar { display: none; }
#player.on { opacity: 1; visibility: visible; }
#player .pin { --pw: min(100%, 1400px, calc((100vh - 220px) * 16 / 9)); width: var(--pw); margin: auto 0; flex: none; }
#player.has-stills .pin { --pw: min(100%, 1400px, calc((100vh - 290px) * 16 / 9)); margin: 0; }
#player .ptitle { margin: 0 0 14px; font-family: var(--kinou-sans); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
#player .pstage { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--kinou-bg); }
#player .pstage video, #player .pstage img { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
#player .pcap { margin-top: 18px; font-family: var(--kinou-sans); }
#player .ptypes { float: right; margin-left: 16px; font-size: 11px; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.6); } /* types Narrative, en bas à droite de la vidéo */
#player .pcap p { margin: 0; white-space: pre-line; font-size: 11px; line-height: 1.7; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.55); }
#player .pclose { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 20px); right: 28px; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--kinou-fg); cursor: pointer; opacity: .7; transition: opacity .2s; }
#player .pclose:hover { opacity: 1; }
/* Sous le film : galeries (3 colonnes, 2 sur téléphone) et vidéos (taille du film), dans l'ordre de l'admin ;
   chaque élément monte comme les vignettes d'une page de chef op quand il arrive à l'écran ;
   léger fondu au noir en bas de l'écran. Projet sans film : directement la galerie sous le titre. */
#player .pgal { display: none; flex: none; flex-direction: column; align-items: center; gap: 32px; width: min(100%, 1800px); margin-top: 64px; padding-bottom: 22vh; }
#player.has-stills .pgal { display: flex; }
#player .pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; }
#player .pxv { width: min(100%, 1400px, calc((100vh - 290px) * 16 / 9)); opacity: 0; }
#player .pxv.shown { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
#player .pxv video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
/* Titre d'une vidéo ajoutée sous le film : en haut à gauche, comme le titre du film (Gus 13/11). */
#player .pxv .ptitle { margin: 0 0 14px; }
#player.nostage .pstage { display: none; }
#player.nostage .pin { --pw: min(100%, 1800px); }
#player.nostage .pgal { margin-top: 40px; }
#player .pgal button { aspect-ratio: 16 / 9; padding: 0; border: 0; background: #070707 center / cover no-repeat; cursor: zoom-in; opacity: 0; }
#player .pgal button.shown { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
#player .pfade { display: none; position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.25) 30%, rgba(0,0,0,.65) 65%, rgba(0,0,0,.92) 90%, #000); }
#player.has-stills .pfade { display: block; }
/* Agrandissement d'une image : flèches pour passer à la suivante, clic ou Escape pour fermer. */
#player .plight { position: fixed; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 32px; background: rgba(0,0,0,.98); cursor: zoom-out; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
#player .plight.on { opacity: 1; visibility: visible; }
#player .plight img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  #player { padding-left: 16px; padding-right: 16px; }
  #player .pgal { gap: 8px; margin-top: 40px; }
  #player .pxv { margin: 16px 0; }
  #player .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #player .plight { padding: 56px 0; }
}

/* ---------- Ajustements visuels (oct. 2026) ---------- */
/* En-tête : logo au centre ; à gauche Instagram + liens à venir ; à droite « cinematographers » (inchangé). */
.logo { left: 50%; transform: translateX(-50%); font-size: 36px; top: calc(env(safe-area-inset-top, 0px) + 25px); }
@media (max-width: 560px) { .logo { font-size: 30px; top: calc(env(safe-area-inset-top, 0px) + 26px); } }
.lnav { position: fixed; z-index: 2; mix-blend-mode: difference; top: calc(env(safe-area-inset-top, 0px) + 36px); left: 32px; display: flex; align-items: center; gap: 22px; }
.lnav a { padding: 0; font-family: var(--kinou-sans); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; line-height: 1; text-shadow: none; transition: opacity .2s; }
.lnav a:hover { opacity: .6; }
.lnav .ig { display: block; height: 16px; margin-top: -1px; }
.lnav .ig svg { display: block; }
@media (max-width: 700px) { .lnav .soon { display: none; } }
@media (max-width: 560px) { .lnav { left: 24px; top: calc(env(safe-area-inset-top, 0px) + 35px); } }

/* Liste : extrait vidéo du premier film FEATURED du chef op en fond, au survol. */
#bgvid { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
#bgvid.on { opacity: 1; }
body.is-home #bgvid { display: none; }
body.viewing #bgvid { opacity: 0 !important; }

/* Page d'un chef op : fond (projet survolé) très flouté et assombri ; grille posée sur un fond sombre. */
#projbg, #projvid { transform: scale(1.15); }
#projbg { filter: blur(10px) brightness(.65); } /* image de 64 px agrandie : déjà floue, petit flou de lissage */
#projvid { filter: blur(16px) brightness(.55); }
/* Fond noir derrière chaque film (pas toute la grille : rien derrière une case vide), qui s'estompe
   vers l'extérieur. Ombre portée calculée sur la forme des vignettes : elle ne déborde pas sur les voisines. */
.feed .shade { display: none; }
.feed.gallery { position: relative; isolation: isolate; }
.feed.gallery .shade { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; pointer-events: none; }
.feed.gallery .shade i { aspect-ratio: 16 / 9; background: rgba(0,0,0,.55); box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 0 40px 12px rgba(0,0,0,.3); }
@media (max-width: 560px) { .feed.gallery .shade { gap: 4px; } }
.feed:not(.gallery) .still { box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 0 36px 14px rgba(0,0,0,.3); }

/* Survol d'un film : léger voile lumineux, une seule fois (15 % en 0,25 s, retour à 0 en 1 s). */
.still { position: relative; }
.still::after { content: ""; position: absolute; inset: 0; background: var(--kinou-fg); opacity: 0; pointer-events: none; }
.card:hover .still::after { animation: glow 1.25s ease-out; }
@keyframes glow { 0% { opacity: 0; } 20% { opacity: .1; } 100% { opacity: 0; } }

/* Sous le nom du chef op : barre de défilement masquée. */
/* Sous le nom : coupe nette sur toute la largeur de l'écran (pas de dégradé). La zone qui défile commence sous la
   bande (plus fiable qu'une découpe, notamment sur iPhone où les films réapparaissaient derrière la bande). */
.work { scrollbar-width: none; -webkit-mask-image: none; mask-image: none; top: var(--kinou-zm); padding-top: 16px; }
.work::-webkit-scrollbar { display: none; }

/* Pas de barre de défilement de page : sinon la largeur change entre l'accueil (sans défilement)
   et la liste, et le logo centré se décale. Le défilement à la molette / au trackpad reste actif. */
html, html:has(body.is-home) { scrollbar-gutter: auto; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Accueil : la barre du projet en cours s'allonge, un peu plus claire, et un trait montre l'avancement. */
#home .bars button { transition: flex .6s cubic-bezier(.2, .7, .2, 1); }
#home .bars button.on { flex: 2.5; }
#home .bars button.on::after { background: rgba(255,252,235,.4); }
#home .bars button::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 10px; height: 2px; background: var(--kinou-fg); transform: scaleX(0); transform-origin: left; }
#home .bars button.on::before { transform: scaleX(var(--p, 0)); }

/* Vignettes : pas de fond coloré provisoire ; l'image s'affiche dès qu'elle est chargée. */
.still { background: var(--img, none) center / cover no-repeat, #070707; }
/* Animations d'arrivée des cartes : une fois jouées, plus rien à suivre pour le navigateur. */
.card { animation-fill-mode: backwards; }

/* Catégorie du film (onglet FEATURED seulement) : en bas à droite au survol (galerie) ; sur téléphone, en haut à droite de la vignette. */
.ccat { font-family: var(--kinou-sans); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; color: rgba(255,252,235,.6); pointer-events: none; }
.feed.gallery .meta .ccat { position: absolute; right: 16px; bottom: 14px; }
.feed:not(.gallery) .still .ccat { position: absolute; z-index: 3; top: 12px; right: 12px; opacity: 0; transition: opacity .3s; text-shadow: 0 0 10px rgba(0,0,0,.6); }
.feed:not(.gallery) .card:hover .still .ccat { opacity: 1; }
/* Téléphone : toujours en feed, sans le choix d'affichage ; catégorie toujours visible. */
@media (max-width: 700px) {
  .modes { display: none; }
  .feed:not(.gallery) .still .ccat { opacity: 1; }
}
/* Logo image (testé depuis l'admin) : même place et même effet (différence) que le logo texte. */
.logo:not(.ready) { visibility: hidden; } /* rien tant que le logo (texte ou image) n'est pas connu */
.logo.img { line-height: 0; }
.logo.img img { display: block; height: var(--logo-h, 36px); width: auto; filter: url(#kinou-cream); } /* logo blanc → crème (--kinou-fg #FFFCEB), comme le texte de l'en-tête */
@media (max-width: 560px) { .logo.img img { height: calc(var(--logo-h, 36px) * .83); } }
/* Accueil : la légende garde sa largeur, c'est le nom (un ou plusieurs chefs op) qui se réduit. */
#home .caption { flex: none; }
/* Recadrage par film (--z, réglé dans l'admin ; --zp = position du cadre, centre par défaut) : zoom de l'extrait et de sa vignette, pour enlever
   les bandes noires. Le lecteur montre toujours le film entier. */
.still { overflow: hidden; }
.still.zoomed { background-size: calc(var(--z) * 100%) auto; background-position: var(--zp, center); }
.still video.snip, #home .slide video, #bgvid { transform: scale(var(--z, 1)); transform-origin: var(--zp, 50% 50%); }
/* Accueil : « & » entre deux chefs op, fin et plus petit. */
#home .name .amp { font-weight: 300; font-size: .6em; margin: 0 .2em; }

/* ---------- Lecteur : flèches film précédent / suivant (onglet affiché), image précédente / suivante ---------- */
#player .phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
#player .phead .ptitle { margin: 0; }
/* flèches ‹ › du lecteur : tout en bas de l'écran, à gauche et à droite */
#player .pnav { display: none; }
#player.has-nav .pnav { display: block; }
#player .pnav .parrow { position: fixed; z-index: 2; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); width: 44px; height: 44px; }
#player #pprev { left: 24px; }
#player #pnext { right: 24px; }
#player .parrow { width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--kinou-fg); line-height: 0; cursor: pointer; opacity: .6; transition: opacity .2s; display: inline-flex; align-items: center; justify-content: center; }
#player .parrow:hover { opacity: 1; }
#player .plimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#player .plight .parrow { position: absolute; z-index: 1; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); display: none; width: 44px; height: 44px; }
#player .plight.multi .parrow { display: inline-flex; }
#player #plprev { left: 24px; }
#player #plnext { right: 24px; }

/* ---------- Téléphone ---------- */
.nav-btn .short { display: none; }
.burger { display: none; padding: 0; border: 0; background: none; color: var(--kinou-fg); line-height: 0; cursor: pointer; transition: opacity .3s; }
body.menu-on .burger { opacity: 0; }
/* Volet du menu : fond flou de ce qu'il y a derrière (effet verre dépoli) */
.drawer { position: fixed; inset: 0; z-index: 9; visibility: hidden; transition: visibility .45s; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .45s; }
.drawer.on { visibility: visible; }
.drawer.on::before { opacity: 1; }
.dpanel { position: absolute; top: 0; bottom: 0; left: 0; width: max(50vw, 190px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) 28px 32px; background: rgba(30,30,30,.22); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  border-right: 1px solid rgba(255,252,235,.12); transform: translateX(-100%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.drawer.on .dpanel { transform: none; }
.dpanel a { font-family: var(--kinou-sans); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; line-height: 1.25; }
.dclose { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 32px); left: 24px; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--kinou-fg); line-height: 0; cursor: pointer; }
@media (max-width: 700px) {
  .lnav .ig { display: none; }
  .burger { display: block; }
  /* burger, logo et « DoP » centrés sur la même ligne (milieu à 44px du haut) */
  .lnav { top: calc(env(safe-area-inset-top, 0px) + 37px); }
  .logo { font-size: 20px; top: calc(env(safe-area-inset-top, 0px) + 32px); }
  .logo.img img { height: calc(var(--logo-h, 36px) * .56); }
  #bgvid, #home .slide video { object-position: var(--pp, 50%) 50%; } /* fond de la liste et accueil : partie de l'extrait choisie dans l'admin (phoneX) */
  .logo:not(.img) { font-size: 28px; top: calc(env(safe-area-inset-top, 0px) + 28px); } /* texte « kinou » (sans logo image) : à l'échelle de « DOP » */
  .nav-btn { font-size: 19px; font-weight: 700; letter-spacing: .02em; top: calc(env(safe-area-inset-top, 0px) + 35px); }
  .nav-btn .long { display: none; }
  .nav-btn .short { display: inline; }
  /* Accueil : nom du chef op plus petit (taille de « Nom & Nom ») ; glisser haut/bas sans faire défiler la page */
  #home .name { font-size: clamp(17px, 4.9vw, 22px); }
  #home .name .tags { margin-top: 6px; font-size: 12px; }
  html:has(body.is-home) { overscroll-behavior: none; }
  body.is-home { touch-action: none; }
  /* Page d'un chef op : nom, onglets et bande plus serrés */
  /* même écart partout : en-tête → nom → onglets → bande (≈ 14px) ; « AFC… » sous le nom ajoute sa hauteur */
  :root { --kinou-tabs-top: calc(var(--kinou-hero-top) + var(--kinou-hero-h) + 15px); --kinou-zm: calc(var(--kinou-tabs-top) + 32px); }
  body.hero-tags { --kinou-tabs-top: calc(var(--kinou-hero-top) + var(--kinou-hero-h) + 31px); --kinou-zm: calc(var(--kinou-tabs-top) + 32px); }
  .hero .tags { margin-top: 5px; font-size: 11px; }
  /* ESSAI (Gus, 22/10) : nom du chef op centré sur téléphone. Pour revenir à l'ancienne position (collé à droite,
     comme sur ordinateur : .hero { right: 32px / 24px; text-align: right }), supprimer seulement la ligne suivante. */
  .hero { left: 0; right: 0; text-align: center; }
  .work { padding-top: 12px; }
  .cats { scroll-behavior: auto; }
  /* film au milieu de l'écran = « survolé » (comme à la souris sur ordinateur) */
  .card.focus .still { filter: brightness(1.1); }
}
@media (max-width: 560px) {
  :root { --kinou-hero-top: calc(env(safe-area-inset-top, 0px) + 68px); }
  .hero { top: var(--kinou-hero-top); }
}
/* Accueil (ordinateur) : nom du chef op un peu plus petit ; plusieurs chefs op : encore plus petit */
@media (min-width: 701px) {
  #home .name { font-size: clamp(28px, 4.2vw, 64px); }
  #home .name.multi { font-size: clamp(22px, 3vw, 44px); }
  #home .name.multi .tags { font-size: 12px; margin-top: 8px; }
}
/* Lecteur : fond « verre dépoli » (la page derrière, très floutée et assombrie), comme le volet du menu mais plus sombre */
/* Calque à part (#pglass) : un flou posé sur #player lui-même accrocherait au contenu qui défile les éléments fixes
   (fondu du bas, flèches, croix, image agrandie). */
#player { background: transparent; }
#pglass { position: fixed; inset: 0; z-index: 8; background: rgba(8,8,8,.62); -webkit-backdrop-filter: blur(36px) saturate(1.5); backdrop-filter: blur(36px) saturate(1.5);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s; }
#pglass.on { opacity: 1; visibility: visible; }
#player .pfade { background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.15) 30%, rgba(0,0,0,.4) 65%, rgba(0,0,0,.6) 100%); }

/* ---------- Roulette des chefs op (téléphone, en portrait) : remplace la liste ---------- */
#roulette { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 1; overflow: hidden; touch-action: none; transition: opacity .3s; }
body.roulette-on main ul { display: none; }
body.roulette-on.is-list #roulette { display: block; }
body.viewing #roulette { opacity: 0; pointer-events: none; }
body.closing #roulette { transition: opacity .3s .7s; }
.ritem { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font-family: var(--kinou-sans); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: var(--kinou-fg); transform-origin: 50% 50%;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; will-change: transform; }
.ritem .t { margin-left: .45em; font-size: .42em; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.ritem .t:empty { display: none; }
/* Accueil : la vidéo s'ouvre dans le lecteur au clic */
#home { cursor: pointer; }
#home .info, #home .bars { cursor: auto; }
/* En-tête : zones de clic plus grandes que le texte (moins de mauvais clics, surtout sur la vidéo de l'accueil) */
.lnav a, .burger { position: relative; }
.logo::after, .nav-btn::after, .lnav a::after, .burger::after { content: ""; position: absolute; inset: -14px -10px; }
.burger::after { inset: -16px -20px -16px -24px; } /* burger : petite icône, grande zone (jusqu'au bord de l'écran) */
/* Téléphone : lecteur sans stills plus haut dans l'écran */
@media (max-width: 700px) { #player:not(.has-stills) .pin { margin: 12vh 0 auto; } }
/* Lecteur depuis l'accueil : chef(s) op du film, en blanc, liens vers leur page */
/* Infos d'un film (admin, Gus 04/11) : sous les crédits ; à gauche année | durée | format | plateformes, caméra, optiques ; à droite
   prix & sélections (blanc, pour attirer l'œil) ; synopsis dessous, en gris. Une colonne sur téléphone. */
#player .pinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 28px; font-family: var(--kinou-sans); }
#player .pinfo[hidden] { display: none; }
#player .pinfo p { margin: 0; }
#player .pi-a { grid-column: 1; } #player .pi-b { grid-column: 2; justify-self: end; text-align: right; } /* prix collés à droite, sous le bord droit de la vidéo (Gus 04/11) */
#player .pi-line { font-size: 15px; line-height: 1.5; color: var(--kinou-fg); }
#player .pi-line i { font-style: normal; margin: 0 .7em; color: rgba(255,252,235,.35); }
#player .pi-tech { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; font-size: 13px; line-height: 1.6; color: rgba(255,252,235,.85); }
#player .pi-tech b { margin-right: .6em; font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.45); }
#player .pi-awards { margin: 0; padding: 0; list-style: none; column-count: 1 !important; columns: auto 1 !important; font-size: 13px; line-height: 1.75; color: var(--kinou-fg); }
#player .pi-syn { grid-column: 1 / -1; max-width: 820px; font-size: 14px; line-height: 1.65; color: rgba(255,252,235,.5); }
#player .pi-syn p + p { margin-top: .9em; }
#player .pi-syn .lang { display: flex; gap: 14px; margin: 0 0 10px; }
#player .pi-syn .lang button { padding: 0; border: 0; background: none; color: var(--kinou-fg); font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; opacity: .35; cursor: pointer; transition: opacity .2s; }
#player .pi-syn .lang button:hover { opacity: .75; }
#player .pi-syn .lang button.on { opacity: 1; }
#player .pi-awards li { break-inside: avoid; } /* prix : une seule colonne, une ligne par prix */
@media (max-width: 700px) { #player .pinfo { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; } #player .pi-a, #player .pi-b { grid-column: 1; justify-self: start; text-align: left; } }
.sc-info p.sc-spec { color: rgba(255,252,235,.75); }
#player .pdps { margin: 0 0 6px; font-family: var(--kinou-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--kinou-fg); }
#player .pdps a { padding: 0; font: inherit; color: inherit; transition: opacity .2s; }
#player .pdps a:hover { opacity: .7; }
/* Portraits (onglet About) toujours en noir et blanc, quelle que soit la photo déposée */
#aboutbg { filter: grayscale(1); }
/* Arrivée directe sur la page d'un chef op : rien de l'accueil ni de la liste pendant l'ouverture */
html.deep #home, html.deep main, html.deep #bg, html.deep #bgvid { visibility: hidden !important; }
/* Arrivée directe sur la page d'un chef op : rien de l'accueil ni de la liste pendant l'ouverture */
html.deep #home, html.deep main, html.deep #bg, html.deep #bgvid { visibility: hidden !important; }
/* Téléphone, page d'un chef op : de la place sous le dernier film pour qu'il puisse venir au repère (être sélectionné) ;
   voile lumineux quand un film est sélectionné (comme au survol sur ordinateur) ; perspective : taille réglée par app.js. */
@media (hover: none) and (max-width: 700px) {
  .work { padding-bottom: 6vh; } /* le repère descend vers le dernier film en bas de page (pickFocus) */
  .card.focus .still::after { animation: glow 1.25s ease-out; }
  .card { transform-origin: 50% 50%; will-change: transform, scale; }
}

/* Catégorie de photos : colonnes (3, 2 sur téléphone) remplies dans l'ordre par renderPhotos, chaque photo à son ratio d'origine. */
.feed.photos { display: block; max-width: none; }
.feed.photos .pcols { display: flex; align-items: flex-start; gap: 6px; }
.feed.photos .pcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feed.photos .pcols + .phead { margin-top: 56px; }
.feed.photos .phead h3 { margin: 0 0 4px; }
.feed.photos .phead p { margin: 0 0 16px; white-space: pre-line; font-size: 11px; line-height: 1.7; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.55); }
.feed.photos .ph { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: #070707; cursor: zoom-in; opacity: 0; box-shadow: 0 0 36px 10px rgba(0,0,0,.3); }
.feed.photos .ph.shown { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
.feed.photos .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease; } /* la case a déjà les proportions de la photo : rien n'est recadré */
.feed.photos .ph:hover img { filter: brightness(1.1); }
@media (max-width: 700px) { .feed.photos .pcols, .feed.photos .pcol { gap: 4px; } }
.work.photos-on .modes { visibility: hidden; }
#player.photo-only .pin, #player.photo-only .pgal, #player.photo-only .pfade, #player.photo-only .pclose, #player.photo-only .pnav { display: none; }

/* Ordinateur (> 900px) : boutons grille / colonne dans le bandeau (sortis de .work par app.js, au-dessus de la coupe, alignés sur
   la grille) : les films commencent juste sous le bandeau ; catégories alignées sur le haut des films ; fondu très court (4px)
   à la fin du bandeau, pour que l'ombre des vignettes ne soit pas coupée net. */
@media (min-width: 901px) {
  body > .modes { position: fixed; z-index: 3; top: calc(var(--kinou-zm) - 34px); left: 240px; margin: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.viewing.has-work > .modes { opacity: 1; pointer-events: auto; transition: opacity .5s .6s; }
  body.about-on > .modes, body.photos-on > .modes, body:has(.work.about-mode) > .modes { visibility: hidden; } /* About : pas de grille / colonne, avec ou sans portrait */
  .cats { top: calc(var(--kinou-zm) + 16px); }
  .work { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4px); mask-image: linear-gradient(to bottom, transparent, #000 4px); }
}

/* Spotlight (body.spot) : sur ordinateur, onglets en ligne au-dessus des films (au lieu de la colonne de gauche) : la grille
   prend toute la largeur ; pas de choix grille / colonne. Téléphone : comme une page de chef op. */
body.cpage .modes { display: none; }
@media (max-width: 900px) { body.spot .modes { display: none; } }
@media (min-width: 901px) { /* spotlight, fiction : choix grille / colonne en bas à droite du bandeau, grille à l'arrivée (Gus 30/10) */
  body.spot > .modes { left: auto; right: 32px; }
  body.spot .cats { right: 120px !important; }
  body.spot .feed:not(.gallery) { max-width: 1100px; margin: 0 auto; } /* une colonne, centrée */
}
@media (min-width: 701px) {
  body.spot { --kinou-zm: calc(var(--kinou-tabs-top) + 40px); }
  body.spot .cats { top: var(--kinou-tabs-top); left: 32px; right: 32px; flex-direction: row; gap: 28px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  body.spot .cats::-webkit-scrollbar { display: none; }
  body.spot .work { padding-left: 32px; }
  body.spot .hero, body.cpage .hero { left: 32px; right: auto; text-align: left; } /* titre « Spotlight » à gauche (demande de Gus 26/10) */
}
/* Spotlight : « DoP Nom » en dernière ligne des crédits, noms en blanc cassé, liens vers la page du chef op. */
.meta .cdop a, #player .pdop a { color: var(--kinou-fg); padding: 0; font: inherit; transition: opacity .2s; }
.meta .cdop a:hover, #player .pdop a:hover { opacity: .7; }

/* Contact (body.cpage, data/contact.json) : un générique de fin. Rôle à droite d'un axe central, nom à gauche, e-mail et
   téléphone dessous. Lignes qui montent l'une après l'autre à l'arrivée.
   Fond : le film de l'accueil en cours (ou un au hasard), flouté. Pas d'onglets : la page commence sous le titre. */
body.cpage { --kinou-zm: calc(var(--kinou-hero-top) + var(--kinou-hero-h) + 28px); }
.contact { display: none; }
.work.contact-mode { padding-left: 32px; }
.work.contact-mode .feed, .work.contact-mode .modes, .work.contact-mode .about { display: none; }
.work.contact-mode .contact { display: block; }
.contact { max-width: 1000px; margin: 0 auto; padding: 5vh 0 4vh; font-family: var(--kinou-sans); color: var(--kinou-fg); }
.crew { display: grid; gap: 38px; }
.crow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: baseline; animation: riseBlur .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--i) * 90ms); }
.crole { text-align: right; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.5); }
.cwho { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.cname { margin-bottom: 8px; font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1; }
.cwho a { padding: 0; font-weight: 400; font-size: 15px; letter-spacing: .01em; color: rgba(255,252,235,.68); font-variant-numeric: tabular-nums; text-shadow: none; transition: color .2s; }
.cwho a:hover { color: var(--kinou-fg); }
.cend { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 15vh; text-align: center; animation: riseBlur .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--i) * 90ms); }
.caddr { padding: 0; font-weight: 600; font-size: 13px; letter-spacing: .14em; line-height: 2; text-transform: uppercase; text-shadow: none; transition: opacity .2s; }
.caddr:hover { opacity: .6; }
.cnews { margin-top: 18px; padding: 0; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-shadow: none; }
.cnews::before, .cnews::after { display: inline-block; font-weight: 300; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.cnews::before { content: "["; margin-right: .5em; }
.cnews::after { content: "]"; margin-left: .5em; }
.cnews:hover::before { transform: translateX(-6px); }
.cnews:hover::after { transform: translateX(6px); }
.csocial { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 34px; }
.csocial a { padding: 0; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-shadow: none; transition: opacity .2s; }
.csocial a:hover { opacity: .55; }
.clegalbtn { margin-top: 12vh; padding: 0; border: 0; background: none; font-family: var(--kinou-sans); font-weight: 500; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.32); cursor: pointer; transition: color .2s; }
.clegalbtn:hover { color: var(--kinou-fg); }
.clegal { display: none; max-width: 620px; text-align: left; font-size: 13px; line-height: 1.65; color: rgba(255,252,235,.65); }
.clegal.on { display: block; }
.clegal p { margin: 0 0 1em; white-space: pre-line; }
.clegal h4 { margin: 1.8em 0 .6em; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--kinou-fg); }
.clegal h4:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .work.contact-mode { padding-left: 24px; padding-right: 24px; }
  .contact { padding-top: 3vh; }
  .crew { gap: 34px; }
  .crow { grid-template-columns: 1fr; row-gap: 8px; justify-items: center; text-align: center; }
  .crole { text-align: center; }
  .cwho { align-items: center; }
  .cname { margin-bottom: 6px; font-size: 28px; }
  .cwho a { padding: 3px 0; font-size: 15px; }
  .cend { margin-top: 10vh; }
}

/* Fiction (body.fic, data/fiction.json) : comme le spotlight (body.spot). Genres de PAST RELEASES (.sub) : visibles seulement
   quand PAST RELEASES ou un genre est ouvert (.cats.past), plus petits, à la suite. Date de sortie : carré blanc au survol. */
.cats .sub { display: none; }
.cats.past .sub { display: block; font-size: 11px; opacity: .35; }
.cats.past .sub:hover { opacity: .8; }
.cats.past .sub.on { opacity: 1; }
.cats.past button[data-cat="PAST RELEASES"] { opacity: 1; }
.cdate { position: absolute; z-index: 3; top: 12px; right: 12px; padding: 5px 8px 4px; background: var(--kinou-fg); color: #000; font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card { position: relative; }
/* Genre + plateformes (fiction) en haut à gauche, date en haut à droite : au survol, et sur téléphone au film sélectionné. */
.ctag { position: absolute; z-index: 3; top: 15px; left: 14px; max-width: calc(100% - 110px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,252,235,.6); font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .cdate, .card.focus .cdate, .card:hover .ctag, .card.focus .ctag { opacity: 1; }
@media (hover: none) and (min-width: 701px) { .cdate, .ctag { opacity: 1; } } /* téléphone : seulement sur le film sélectionné (.card.focus, Gus 28/10) */
/* Téléphone, fiction : genres de PAST RELEASES sur une 2e ligne sous les onglets (#subcats, subRow dans app.js), qui descendent
   un à un en sortant du flou ; la bande (--kinou-zm) s'abaisse en douceur pour leur faire de la place. */
.subcats { display: none; }
@media (max-width: 700px) {
  body.fic .cats .sub, body.fic .cats.past .sub { display: none; }
  body.fic.subs-on { --kinou-zm: calc(var(--kinou-tabs-top) + 56px); }
  body.fic.viewing.has-work .work { transition: opacity .5s .6s, top .5s cubic-bezier(.2, .7, .2, 1); }
  body.fic.subs-on.viewing.has-work .subcats { display: flex; position: fixed; z-index: 2; top: calc(var(--kinou-tabs-top) + 27px); left: 24px; right: 24px; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .subcats::-webkit-scrollbar { display: none; }
  .subcats button { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--kinou-fg); font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; opacity: .4; cursor: pointer; transition: opacity .2s; animation: subIn .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
  .subcats button.on { opacity: 1; }
}
@keyframes subIn { from { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes subSide { from { opacity: 0; transform: translateX(-18px); filter: blur(6px); } }
/* Arrivée des onglets en cascade (Gus 28/10) : partout (téléphone et ordinateur, chefs op, spotlight, fiction) ;
   --i = rang (app.js), --td = délai d'apparition des onglets (tabsIn). Copies du défilement (aria-hidden) : pas d'animation.
   Ordinateur, genres de PAST RELEASES : arrivent de côté, comme s'ils sortaient de PAST RELEASES (--j = rang du genre). */
.cats button:not([aria-hidden]) { animation: subIn .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--td, 0ms) + var(--i, 0) * 70ms); }
@media (max-width: 700px) {
  .subcats button { animation-delay: calc(var(--td, 0ms) + var(--i, 0) * 80ms + 60ms); }
  .cdate, .ctag { transform: translateY(-3px); transition: opacity .6s ease, transform .6s ease; } /* date, genre : mini fondu sur le film sélectionné */
  .card.focus .cdate, .card.focus .ctag { transform: none; }
}
@media (min-width: 701px) {
  body.fic .cats.past .sub { animation: subSide .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--td, 0ms) + var(--j, 0) * 80ms + 60ms); }
}
/* Lecteur, film avec affiche : affiche (2:3) puis film (16:9), même hauteur. */
#player.has-poster .pin { --pw: min(100%, 1800px, calc((100vh - 220px) * 22.5 / 9)); }
#player.has-poster.has-stills .pin { --pw: min(100%, 1800px, calc((100vh - 290px) * 22.5 / 9)); }
#player.has-poster .pstage { display: grid; grid-template-columns: 6fr 16fr; gap: 12px; aspect-ratio: 22.5 / 9; background: none !important; }
#player.has-poster .pstage video, #player.has-poster .pstage > img:not(.pposter) { background: var(--kinou-bg); }
#player .pstage img.pposter { object-fit: cover; }
.pposter-s { display: none; }
@media (max-width: 700px) {
  #player.has-poster .pin { --pw: 100%; }
  #player.has-poster .pstage { display: block; aspect-ratio: 16 / 9; }
  #player .pstage img.pposter { display: none; }
  #player.has-poster .pcap { display: flow-root; }
  .pposter-s { display: block; float: left; width: 92px; aspect-ratio: 2 / 3; margin: 2px 14px 6px 0; object-fit: cover; }
}
/* ESSAI (28/10, demande de Gus) : vignettes de la page fiction au format cinémascope (2,39:1) au lieu de 16:9.
   Pour revenir au 16:9 : supprimer les 4 règles suivantes (jusqu'à `body.fic .still video.snip`). */
body.fic .still { aspect-ratio: 2.39 / 1; }
/* Extrait dans le cadre cinémascope : vidéo 16:9 agrandie et placée selon snipCrop (--cw, --cx, --cy posés par scopeCrop) ;
   1px de plus de chaque côté (comme ailleurs) : sinon le bord de l'image fixe dépasse derrière l'extrait. */
body.fic .still video.snip { inset: auto; left: calc(var(--cx, 0%) - 1px); top: var(--cy, -17.2%); width: calc(var(--cw, 100%) + 2px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; transform: none; }
body.fic .feed.gallery .card, body.fic .feed.gallery .shade i { aspect-ratio: 2.39 / 1; }
/* Spotlight et fiction (body.spot) : titre toujours affiché sur la vignette ; au survol, il remonte pour laisser la place
   aux crédits (réalisateur, production, DoP). Écran tactile : tout est affiché. */
body.spot .feed.gallery .meta { opacity: 1; padding: 30px 19px 19px; left: -3px; right: -3px; bottom: -5px; } /* dégradé qui déborde de 3px (caché par la carte) : sinon un liseré clair d'un pixel sur les côtés et en bas (page zoomée) */
/* Vignette toujours sur son propre calque : sinon, à la fin du zoom de survol, le navigateur la recale au pixel près et elle
   « descend » d'un ou deux pixels (visible avec la page zoomée, Gus 28/10). */
body.spot .feed.gallery .still { will-change: transform; }
/* Bord sombre collé à chaque vignette (fond noir + liseré de 3px, presque jusqu'à la voisine) : page zoomée, le bord de la vignette
   ne laisse plus voir le fond clair de la page (fine ligne claire, Gus 29/10). */
body.spot .feed.gallery .card { background: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.85); }
body.spot .feed.gallery .meta h3 { margin-bottom: 0; transition: margin .4s ease; }
body.spot .feed.gallery .meta > p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s ease; }
body.spot .feed.gallery .card:hover .meta h3 { margin-bottom: 4px; }
body.spot .feed.gallery .card:hover .meta > p { max-height: 5em; opacity: 1; }
@media (hover: none) { body.spot .feed.gallery .meta > p { max-height: none; opacity: 1; } }

/* Présentation « vidéo + stills » d'un onglet (interrupteur de l'admin, `showcase`, renderShow dans app.js, Gus 29/10) :
   ordinateur = grille de 4 colonnes : vidéo en grand (2 × 2) à gauche, titre et crédits à droite, 2 stills dessous, puis 4 stills ; type de contenu au-dessus. Téléphone : titre, 2 stills, la vidéo, 4 stills, type en dessous. */
.feed.showcase { display: block; max-width: none; } /* toute la largeur, quel que soit l'écran (Gus 29/10) */
.sc { animation: riseBlur .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms + var(--d, 0ms)); }
.sc-type { margin: 0 0 12px; min-height: 13px; font-family: var(--kinou-sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.6); }
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; grid-template-areas: "v v t t" "v v a b" "c d e f"; } /* vidéo à gauche partout (Gus 30/10) */
.sc-big { grid-area: v; position: relative; cursor: pointer; }
.feed .sc-big.still { aspect-ratio: auto; height: 100%; }
.sc-img, .sc-s { padding: 0; border: 0; background: #070707 center / cover no-repeat; cursor: zoom-in; transition: filter .35s ease; }
.sc-img:hover, .sc-s:hover { filter: brightness(1.12); }
.sc-s { aspect-ratio: 16 / 9; }
.sc-s.s0 { grid-area: a; } .sc-s.s1 { grid-area: b; } .sc-s.s2 { grid-area: c; } .sc-s.s3 { grid-area: d; } .sc-s.s4 { grid-area: e; } .sc-s.s5 { grid-area: f; }
.sc-info { grid-area: t; aspect-ratio: 32 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px 24px; text-align: center; font-family: var(--kinou-sans); }
.sc-info h3 { margin: 0; font-weight: 600; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.sc-info p { margin: 0; white-space: pre-line; font-weight: 600; font-size: 11px; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,252,235,.55); }
.sc-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 24px; height: 28px; margin: -14px 0 0 -10px; fill: none; stroke: rgba(255,252,235,.9); stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; transition: opacity .4s; }
.sc-big:has(video.snip.on) .sc-play { opacity: 0; } /* triangle (contour) caché dès que l'extrait joue */
.sc.bare .sc-grid { grid-template-areas: "v v t t"; }
.sc.bare .sc-info { aspect-ratio: auto; } .feed .sc.bare .sc-big.still { aspect-ratio: 16 / 9; height: auto; }
.sc-big video.snip.slow { transition: opacity 1.4s ease; } /* extrait en long fondu, 1,5 s après l'arrivée à l'écran */
.sc-big:hover video.snip.slow.on, .sc-big video.snip.slow:not(.on) { transition-duration: .4s; } /* survol : extrait vite ; souris partie : vignette vite */
/* Arrivée des films (pages de chef op en grille, spotlight, fiction) : un peu plus petits, ils grandissent jusqu'à leur taille en
   apparaissant, quand ils entrent à l'écran (comme l'ancien Squarespace, Gus 30/10). Feed d'un chef op : montée habituelle (rise). */
.card.pop { animation: none; opacity: 0; transition: opacity 1.1s ease var(--pd, 0ms); }
.card.pop.in { opacity: 1; }
.feed.gallery .card.pop, .feed.gallery .shade i.pop { scale: .94; transition: opacity 1.1s ease var(--pd, 0ms), scale 1.4s cubic-bezier(.2, .7, .2, 1) var(--pd, 0ms); }
.feed.gallery .shade i.pop { opacity: 0; }
.feed.gallery .card.pop.in, .feed.gallery .shade i.pop.in { opacity: 1; scale: 1; }
.feed:not(.gallery) .card.pop .still { scale: .94; transition: scale 1.4s cubic-bezier(.2, .7, .2, 1) var(--pd, 0ms), filter .35s ease; }
.feed:not(.gallery) .card.pop.in .still { scale: 1; }
.sc .pop { opacity: 0; scale: .94; transition: opacity 1.1s ease, scale 1.4s cubic-bezier(.2, .7, .2, 1), filter .35s ease; transition-delay: var(--pd, 0ms), var(--pd, 0ms), 0s; }
.sc .pop.in { opacity: 1; scale: 1; } /* arrivée : un peu plus petite, grandit jusqu'à sa taille (comme l'ancien Squarespace, Gus 30/10) */
.sc-hr { width: 38%; height: 1px; margin: 10vh auto; background: linear-gradient(90deg, transparent, rgba(255,252,235,.28), transparent); }
#player .pstage img.pbig { cursor: zoom-in; height: auto; max-height: 78vh; }
/* Image cliquée (présentation vidéo + stills) : le cadre prend la forme de l'image (cinémascope, portrait…), sans bandes noires */
#player .pstage:has(img.pbig) { aspect-ratio: auto; background: none !important; }
@media (max-width: 700px) {
  .sc { display: flex; flex-direction: column; }
  .sc-type { order: 2; margin: 14px 0 0; text-align: left; }
  .sc-grid { grid-template-columns: 1fr 1fr; gap: 6px; grid-template-areas: "t t" "a b" "v v" "c d" "e f"; }
  .feed .sc-big.still, .sc-img { aspect-ratio: 16 / 9; height: auto; }
  .sc-info { aspect-ratio: auto; padding: 0 8px 14px; }
  .sc.bare .sc-grid { grid-template-areas: "t t" "v v"; }
  .sc-info h3 { font-size: 26px; }
  .sc-hr { width: 60%; margin: 7vh auto; }
}
