/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — noir cinéma
   Palette : noir profond / ivoire / rouge signal
   Typo : Oswald (display condensé) + JetBrains Mono (UI)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #060606;
  --bg-2: #0c0c0d;
  --ink: #f2f0ec;
  --ink-dim: rgba(242, 240, 236, .55);
  --ink-faint: rgba(242, 240, 236, .28);
  --red: #e0281e;
  --line: rgba(255, 255, 255, .14);
  --font-d: 'Oswald', 'Arial Narrow', sans-serif;
  --font-m: 'JetBrains Mono', 'Courier New', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --chrome-x: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-m);
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.red { color: var(--red); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ═══════════════ PRELOADER — intro de marque cinématique ═══════════════
   Séquence : halo rouge qui s'allume → lettres qui s'assemblent depuis le flou
   → balayage lumineux blanc/rouge à travers le logo → ligne rouge → tagline
   → zoom + fondu vers le site. */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: #030303;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .65s ease .05s, transform .8s var(--ease), visibility 0s .8s;
}
.preloader.is-done {
  opacity: 0; transform: scale(1.14);
  visibility: hidden; pointer-events: none;
}
html.no-loader .preloader { display: none; }

/* Halo rouge qui respire derrière le logo */
.pre-glow {
  position: absolute; width: min(74vw, 780px); height: 46vh;
  background: radial-gradient(ellipse at center,
    rgba(224, 40, 30, .34) 0%, rgba(224, 40, 30, .09) 45%, transparent 70%);
  filter: blur(26px);
  animation: preGlow 2.7s ease .25s both;
}
@keyframes preGlow {
  0%   { opacity: 0; transform: scale(.5); }
  45%  { opacity: 1; }
  100% { opacity: .55; transform: scale(1.2); }
}

/* Pile logo + ligne + tagline, avec settle lent façon caméra */
.pre-stack {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  animation: preSettle 2.8s var(--ease) both;
}
@keyframes preSettle {
  0% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.pre-logo {
  display: flex; line-height: 1;
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(46px, 10vw, 112px);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(224, 40, 30, .25);
}
/* Assemblage : chaque lettre émerge du flou, étirée, en cascade */
.pre-ch {
  opacity: 0;
  transform: translateY(32%) scaleY(1.5);
  filter: blur(14px);
  animation: preCh .9s var(--ease) forwards;
  animation-delay: calc(160ms + var(--i) * 80ms);
}
@keyframes preCh {
  55%  { filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* Balayage lumineux blanc/rouge à travers les lettres */
.pre-sweep { display: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pre-sweep {
    display: flex;
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    color: transparent; text-shadow: none;
    background: linear-gradient(102deg,
      transparent 0%, transparent 38%,
      rgba(255, 255, 255, .95) 46%,
      #ff4438 50%,
      rgba(255, 255, 255, .95) 54%,
      transparent 62%, transparent 100%);
    background-size: 320% 100%;
    background-position: 150% 0;
    -webkit-background-clip: text; background-clip: text;
    animation: preSweep 1.1s cubic-bezier(.65, .05, .3, 1) 1.15s both;
  }
  .pre-sweep .pre-ch {
    opacity: 1; transform: none; filter: none;
    animation: none; animation-delay: 0s;
  }
}
@keyframes preSweep {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* Ligne rouge qui s'allume depuis le centre */
.pre-line {
  width: min(320px, 52vw); height: 2px;
  background: rgba(255, 255, 255, .07);
  position: relative; overflow: visible;
}
.pre-line-fill {
  position: absolute; inset: 0; background: var(--red);
  box-shadow: 0 0 16px rgba(224, 40, 30, .95), 0 0 44px rgba(224, 40, 30, .45);
  transform: scaleX(0); transform-origin: center;
  animation: preLine .55s var(--ease) 1.75s both;
}
@keyframes preLine { to { transform: scaleX(1); } }

/* Tagline mono */
.pre-tag {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-dim); text-indent: .42em; text-align: center;
  opacity: 0; transform: translateY(8px);
  animation: rise .6s var(--ease) 2s both;
}
/* Le contenu attend discrètement la fin du preloader */
html:not(.no-loader) body:not(.is-ready) .hero-content.is-active > *,
html:not(.no-loader) body:not(.is-ready) .viewer-head > *,
html:not(.no-loader) body:not(.is-ready) .page-inner > * { animation-play-state: paused; }
html:not(.no-loader) body:not(.is-ready) [data-split] .ch { animation-play-state: paused; }

/* ── Fondu de transition entre pages ── */
.page-fade {
  position: fixed; inset: 0; z-index: 300; background: #040404;
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
body.is-leaving .page-fade { opacity: 1; pointer-events: auto; }

/* ── Blur-up : les couleurs floues de l'image pendant son chargement
      (variante 24px étirée = flou naturel, coût nul) ── */
.blur-load {
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.blur-load img { opacity: 0; transition: opacity .7s ease; }
.blur-load.is-loaded img { opacity: 1; }

/* ── Grain argentique ── */
.grain {
  position: fixed; inset: -100px; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .055;
  animation: grain 700ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 12px); }
  40% { transform: translate(18px, -28px); }
  60% { transform: translate(-14px, 22px); }
  80% { transform: translate(26px, 8px); }
  100% { transform: translate(0, 0); }
}

/* ═══════════════ CHROME (header) ═══════════════ */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: clamp(18px, 2.6vh, 30px) var(--chrome-x);
  mix-blend-mode: normal;
}

.burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 22px; padding: 4px 0; flex-shrink: 0;
}
.burger span {
  height: 1.5px; background: var(--ink); width: 100%;
  transition: transform .4s var(--ease), opacity .3s, width .4s var(--ease);
}
.burger span:nth-child(2) { width: 70%; }
.burger:hover span:nth-child(2) { width: 100%; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.chrome-nav { display: flex; gap: clamp(14px, 2.6vw, 38px); }
.chrome-nav a {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: 4px 0;
  transition: color .3s;
}
.chrome-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.chrome-nav a:hover, .chrome-nav a[aria-current] { color: var(--ink); }
.chrome-nav a:hover::after, .chrome-nav a[aria-current]::after {
  transform: scaleX(1); transform-origin: left;
}

.chrome-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-d); font-size: 26px; font-weight: 600;
  letter-spacing: -.06em; line-height: 1;
}
.chrome-logo::first-letter { opacity: .95; }

.chrome-fs {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.chrome-fs:hover { color: var(--ink); }
.chrome-fs svg { transition: transform .35s var(--ease); }
.chrome-fs:hover svg { transform: scale(1.18); }

/* ═══════════════ MENU OVERLAY ═══════════════ */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 4, 4, .97);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--chrome-x);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .65s var(--ease), visibility 0s .65s;
}
body.menu-open .menu-overlay {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path .65s var(--ease), visibility 0s;
}

.menu-link {
  display: flex; align-items: baseline; gap: 22px;
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(34px, 6.5vh, 62px);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.25;
  color: var(--ink-dim);
  opacity: 0; transform: translateY(26px);
  transition: color .3s, opacity .5s var(--ease), transform .6s var(--ease);
}
body.menu-open .menu-link {
  opacity: 1; transform: translateY(0);
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms);
}
.menu-link:hover { color: var(--ink); }
.menu-link:hover .menu-num { color: var(--red); }
.menu-num {
  font-family: var(--font-m); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-faint); transition: color .3s;
}

.menu-pages {
  display: flex; gap: 34px; margin-top: 5vh;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
body.menu-open .menu-pages { opacity: 1; transform: translateY(0); transition-delay: var(--d, 0ms); }
.menu-pages a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.menu-pages a:hover { color: var(--red); }

.menu-foot {
  position: absolute; bottom: 30px; left: var(--chrome-x); right: var(--chrome-x);
  display: flex; gap: 28px;
}
.menu-foot a {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); transition: color .3s;
}
.menu-foot a:hover { color: var(--ink); }

/* ═══════════════ HERO (accueil) ═══════════════ */
/* Le hero laisse le bandeau des séries visible dans le premier écran, comme la maquette */
.hero {
  position: relative;
  height: calc(100vh - clamp(160px, 22vh, 230px) - 8px);
  height: calc(100svh - clamp(160px, 22vh, 230px) - 8px);
  min-height: 480px;
  overflow: hidden;
}

.hero-bgs, .hero-bg { position: absolute; inset: 0; }
.hero-bg {
  opacity: 0; transition: opacity 1s var(--ease);
  will-change: opacity;
}
.hero-bg.is-active { opacity: 1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
.hero-bg.is-active img { animation: kenburns 14s var(--ease) forwards; }
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,4,4,.82) 0%, rgba(4,4,4,.38) 38%, rgba(4,4,4,.05) 65%),
    linear-gradient(0deg, rgba(4,4,4,.72) 0%, rgba(4,4,4,0) 30%),
    linear-gradient(180deg, rgba(4,4,4,.55) 0%, rgba(4,4,4,0) 22%);
}

/* Rail de progression */
.hero-rail {
  position: absolute; left: var(--chrome-x); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 5;
}
.rail-num { font-size: 11px; letter-spacing: .12em; color: var(--ink-dim); }
.rail-line {
  position: relative; width: 1px; height: clamp(120px, 24vh, 240px);
  background: var(--line);
}
.rail-dot {
  position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, 0);
  transition: top .7s var(--ease);
  box-shadow: 0 0 12px rgba(242, 240, 236, .8);
}

/* Contenu du hero */
.hero-contents {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
}
.hero-content {
  position: absolute; left: clamp(60px, 10vw, 165px); top: 50%;
  transform: translateY(-50%);
  max-width: min(600px, 60vw);
  visibility: hidden;
  pointer-events: none;
}
.hero-content.is-active { visibility: visible; pointer-events: auto; }

.hero-label {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0; transform: translateY(14px);
}
.is-active .hero-label { animation: rise .7s var(--ease) .1s forwards; }

.hero-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(44px, 8.5vw, 118px);
  line-height: .98; text-transform: uppercase; letter-spacing: .005em;
}
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ch {
  display: inline-block;
  transform: translateY(112%);
}
.is-active .hero-title .ch { animation: riseChar .8s var(--ease) forwards; animation-delay: var(--chd, 0ms); }
.hero-title .sp { display: inline-block; width: .28em; }

.hero-sep {
  width: 42px; height: 1px; background: var(--ink-dim);
  margin: clamp(18px, 3.4vh, 34px) 0;
  transform: scaleX(0); transform-origin: left;
}
.is-active .hero-sep { animation: sep .7s var(--ease) .5s forwards; }

.hero-desc {
  font-size: 12.5px; line-height: 2; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
  max-width: 420px;
  opacity: 0; transform: translateY(14px);
}
.is-active .hero-desc { animation: rise .7s var(--ease) .55s forwards; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(20px, 4vh, 42px);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  opacity: 0; transform: translateY(14px);
}
.is-active .hero-cta { animation: rise .7s var(--ease) .68s forwards; }
.hero-cta::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--line);
  transition: background .3s;
}
.hero-cta:hover::after { background: var(--red); }
.cta-arrow { color: var(--red); transition: transform .4s var(--ease); font-size: 15px; }
.hero-cta:hover .cta-arrow { transform: translateX(6px); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes riseChar { to { transform: translateY(0); } }
@keyframes sep { to { transform: scaleX(1); } }

/* Flèches */
.hero-arrows {
  position: absolute; right: var(--chrome-x); bottom: clamp(24px, 5vh, 48px);
  display: flex; align-items: center; gap: 4px; z-index: 6;
}
.arrows-track { width: 68px; height: 1px; background: var(--line); }
.arrow {
  padding: 12px 14px; color: var(--ink-dim);
  transition: color .3s, transform .35s var(--ease);
}
.arrow:hover { color: var(--ink); }
.arrow#prevBtn:hover { transform: translateX(-4px); }
.arrow#nextBtn:hover { transform: translateX(4px); }

/* ═══════════════ BANDEAU CATÉGORIES ═══════════════ */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 4px; padding: 4px;
  background: var(--bg);
}
.strip-card {
  position: relative; height: clamp(160px, 22vh, 230px);
  overflow: hidden; display: block;
}
.strip-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75);
  transform: scale(1.01);
  transition: transform .8s var(--ease), filter .5s;
}
.strip-card:hover img { transform: scale(1.07); filter: brightness(.95); }
.strip-veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,4,4,.75) 0%, rgba(4,4,4,.05) 55%);
}
.strip-card.is-current::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(224, 40, 30, .55);
  pointer-events: none;
}
.strip-meta {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.strip-line { display: flex; align-items: baseline; gap: 12px; }
.substrip .strip-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
.strip-desc {
  font-family: var(--font-m); font-size: 11px; line-height: 1.7;
  letter-spacing: .04em; color: var(--ink-dim); text-transform: none;
  max-width: 520px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.strip-num { font-size: 11px; letter-spacing: .1em; color: var(--red); }
.strip-title {
  font-family: var(--font-d); font-weight: 500; font-size: 21px;
  text-transform: uppercase; letter-spacing: .03em;
  transition: letter-spacing .4s var(--ease);
}
.strip-card:hover .strip-title { letter-spacing: .07em; }

/* ═══════════════ FOOTER ═══════════════ */
.site-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px var(--chrome-x);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.foot-copy { font-size: 11px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; }
.foot-links { display: flex; gap: 28px; }
.foot-links a {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.foot-links a:hover { color: var(--red); }

/* ═══════════════ VIEWER (page série) ═══════════════ */
/* La pellicule (80px) reste visible dans le premier écran */
.viewer {
  position: relative;
  height: calc(100vh - 84px);
  height: calc(100svh - 84px);
  min-height: 480px;
  overflow: hidden; background: var(--bg);
}
.viewer-stage { position: absolute; inset: 0; }
.viewer-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .75s var(--ease);
  will-change: opacity;
}
.viewer-slide.is-active { opacity: 1; }
.viewer-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  position: relative; z-index: 1;
}
/* Photos en portrait : affichées entières sur un fond flouté de leurs propres couleurs */
.viewer-slide.is-portrait img { object-fit: contain; }
.slide-bg {
  position: absolute; inset: -48px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(32px) brightness(.42) saturate(1.15);
  transform: scale(1.12);
}
.viewer-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4,4,4,.78) 0%, rgba(4,4,4,0) 30%),
    linear-gradient(180deg, rgba(4,4,4,.6) 0%, rgba(4,4,4,0) 20%);
}

.stage-zone {
  position: absolute; top: 0; bottom: 30%; width: 30%; z-index: 5;
}
.zone-prev { left: 0; cursor: w-resize; }
.zone-next { right: 0; cursor: e-resize; }

.viewer-head {
  position: absolute; left: var(--chrome-x); bottom: clamp(120px, 20vh, 190px);
  z-index: 6; pointer-events: none;
  max-width: 62vw;
}
.viewer-label {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) .15s forwards;
}
.crumb {
  color: var(--ink-dim); pointer-events: auto;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.crumb:hover { color: var(--ink); border-color: var(--red); }
.crumb-sep { color: var(--ink-faint); margin: 0 10px; }
.viewer-desc {
  font-size: 12px; line-height: 1.9; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
  max-width: 440px; margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) .5s forwards;
}
.viewer-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(38px, 6.5vw, 92px);
  line-height: 1; text-transform: uppercase;
}
.viewer-title .ch { display: inline-block; transform: translateY(112%); animation: riseChar .8s var(--ease) forwards; animation-delay: var(--chd, 0ms); }
.viewer-title .sp { display: inline-block; width: .28em; }

.viewer-caption {
  position: absolute; left: var(--chrome-x); bottom: clamp(30px, 6vh, 56px);
  z-index: 6; max-width: min(480px, 70vw);
}
.caption-counter { font-size: 12px; letter-spacing: .18em; margin-bottom: 6px; }
.caption-total { color: var(--ink-faint); }
.caption-title {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 2px;
}
.caption-meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.caption-desc { font-size: 12px; color: var(--ink-dim); margin-top: 6px; max-width: 400px; }
.caption-title:empty, .caption-meta:empty, .caption-desc:empty { display: none; }
.viewer-caption > * { transition: opacity .35s, transform .45s var(--ease); }
.viewer-caption.is-switching > * { opacity: 0; transform: translateY(8px); }

.viewer-arrows { bottom: clamp(30px, 6vh, 56px); }
.icon-btn {
  padding: 12px; color: var(--ink-dim);
  transition: color .3s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--ink); transform: translateY(-2px); }

/* ── Indication de scroll : des sous-séries plus bas ── */
.scroll-hint {
  position: absolute; left: 50%; bottom: clamp(22px, 4.5vh, 40px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); z-index: 7;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(4, 4, 4, .35); backdrop-filter: blur(6px);
  transition: color .3s, border-color .3s;
  animation: hintIn .8s var(--ease) 1.4s backwards;
}
.scroll-hint:hover { color: var(--ink); border-color: rgba(224, 40, 30, .6); }
.scroll-hint svg { animation: hintBounce 2.2s ease-in-out infinite; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Plein écran photo (lightbox) ── */
body.is-lightbox { overflow: hidden; }
body.is-lightbox .viewer {
  position: fixed; inset: 0; z-index: 260;
  height: 100vh; height: 100svh;
}
body.is-lightbox .viewer-slide img { object-fit: contain; }
body.is-lightbox .slide-bg { display: none; }
body.is-lightbox .viewer-veil,
body.is-lightbox .viewer-head,
body.is-lightbox .viewer-caption,
body.is-lightbox .scroll-hint,
body.is-lightbox .chrome,
body.is-lightbox .grain { display: none; }
body.is-lightbox .viewer-arrows {
  bottom: 22px; right: 22px;
}
body.is-lightbox .viewer-arrows .icon-btn:first-child { display: none; }
body.is-lightbox .stage-zone { bottom: 0; }
.lb-close {
  display: none;
  position: fixed; top: 20px; right: 22px; z-index: 270;
  align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(4, 4, 4, .4);
  transition: color .3s, border-color .3s;
}
.lb-close:hover { color: var(--ink); border-color: rgba(224, 40, 30, .6); }
body.is-lightbox .lb-close { display: inline-flex; }

/* ── Popup de téléchargement (copyright) ── */
.dl-modal {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(2, 2, 2, .82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.dl-modal[hidden] { display: none; }
.dl-box {
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  max-width: 520px; width: 100%; max-height: 90vh; overflow: auto;
  padding: clamp(26px, 4vw, 40px);
  animation: dlIn .45s var(--ease);
}
@keyframes dlIn { from { opacity: 0; transform: translateY(22px) scale(.98); } }
.dl-kicker {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 10px;
}
.dl-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px);
  text-transform: uppercase; line-height: 1.05;
}
.dl-photo {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-top: 8px;
}
.dl-photo:empty { display: none; }
.dl-body { margin: 20px 0 26px; }
.dl-body p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.9; margin-bottom: 12px; }
.dl-body strong { color: var(--ink); font-weight: 700; }
.dl-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dl-body li {
  font-size: 12px; color: var(--ink-dim); line-height: 1.7;
  padding-left: 18px; position: relative;
}
.dl-body li::before { content: '＋'; position: absolute; left: 0; color: var(--red); font-size: 11px; }
.dl-body a { color: var(--ink); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.dl-body a:hover { color: var(--red); border-color: var(--red); }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-site {
  display: inline-block; padding: 13px 22px; cursor: pointer;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line); background: transparent;
  transition: border-color .3s, background .3s, color .3s;
}
.btn-site:hover { border-color: var(--ink-dim); }
.btn-site-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-site-red:hover { background: #c31e15; border-color: #c31e15; }

/* ── Cartes sous-séries dans la pellicule ── */
.film-sub {
  flex: 0 0 auto; width: 190px; height: 72px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(224, 40, 30, .4);
  transition: border-color .3s;
}
.film-sub:hover { border-color: var(--red); }
.film-sub img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); transition: filter .4s; }
.film-sub:hover img { filter: brightness(.6); }
.film-sub-meta {
  position: absolute; left: 12px; right: 10px; bottom: 9px;
  font-family: var(--font-d); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pellicule */
.filmstrip {
  display: flex; gap: 4px; padding: 4px; height: 80px;
  overflow-x: auto; overflow-y: hidden; background: var(--bg);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.film-thumb {
  flex: 0 0 auto; width: 108px; height: 72px;
  overflow: hidden; position: relative; padding: 0;
  opacity: .45; transition: opacity .3s;
}
.film-thumb img { width: 100%; height: 100%; object-fit: cover; }
.film-thumb:hover { opacity: .8; }
.film-thumb.is-active { opacity: 1; }
.film-thumb.is-active::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--red); pointer-events: none;
}

/* ── Page « collection » (série sans photos directes) ── */
.collection {
  min-height: 44vh;
  display: flex; align-items: flex-end;
  padding: clamp(120px, 18vh, 190px) var(--chrome-x) clamp(30px, 5vh, 50px);
}
.collection-desc {
  font-size: 12.5px; line-height: 2; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
  max-width: 460px; margin-top: 18px;
}

/* ── Sous-séries ── */
.substrip { padding: clamp(26px, 5vh, 50px) 4px 4px; background: var(--bg); }
.substrip-label {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-dim); padding: 0 calc(var(--chrome-x) - 4px) 16px;
}
.substrip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px;
}
.substrip .strip-card { height: clamp(200px, 30vh, 300px); }
.strip-count {
  position: absolute; top: 14px; right: 16px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: rgba(4,4,4,.55); backdrop-filter: blur(4px);
  padding: 5px 9px;
}

/* Série précédente / suivante */
.work-next {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px; padding: 4px; background: var(--bg);
}
.next-card {
  position: relative; height: 150px; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--bg-2);
}
.next-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.4);
  transition: filter .5s, transform .8s var(--ease);
}
.next-card:hover img { filter: brightness(.65); transform: scale(1.05); }
.next-meta { position: relative; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.next-dir { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.next-title {
  font-family: var(--font-d); font-weight: 500; font-size: 20px;
  text-transform: uppercase;
}
.next-home { justify-content: flex-start; }
.next-home:hover .next-title { color: var(--red); }

/* ═══════════════ PAGES ÉDITORIALES ═══════════════ */
.page {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(110px, 16vh, 160px) var(--chrome-x) clamp(60px, 8vh, 90px);
}
.page-inner { width: 100%; max-width: 1080px; margin: 0 auto; }
.page-label {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) .1s forwards;
}
.page-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1; text-transform: uppercase;
}
.page-title .ch { display: inline-block; transform: translateY(112%); animation: riseChar .8s var(--ease) forwards; animation-delay: var(--chd, 0ms); }
.page-title .sp { display: inline-block; width: .28em; }
.page-sep {
  width: 42px; height: 1px; background: var(--ink-dim);
  margin: clamp(22px, 4vh, 40px) 0;
  transform: scaleX(0); transform-origin: left;
  animation: sep .7s var(--ease) .5s forwards;
}

.about-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) .55s forwards;
}
.about-text p {
  font-size: 14px; line-height: 2.1; color: var(--ink-dim);
  margin-bottom: 1.6em; max-width: 560px;
}
.about-text p:first-child { color: var(--ink); font-size: 15px; }
.about-side { display: flex; flex-direction: column; gap: 30px; }
.side-label {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px;
}
.side-value { font-family: var(--font-d); font-size: 44px; font-weight: 500; line-height: 1; }
.side-links { display: flex; flex-direction: column; gap: 6px; }
.side-links a { font-size: 12px; letter-spacing: .08em; color: var(--ink-dim); transition: color .3s; }
.side-links a:hover { color: var(--red); }

.about-series {
  margin-top: clamp(40px, 8vh, 80px);
  opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) .7s forwards;
}
.series-row {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding-left .4s var(--ease);
}
.series-row:hover { padding-left: 14px; }
.series-num { font-size: 11px; color: var(--ink-faint); letter-spacing: .1em; }
.series-title {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase; flex: 1;
  transition: color .3s;
}
.series-row:hover .series-title { color: var(--red); }
.series-arrow { color: var(--ink-faint); transition: transform .4s var(--ease), color .3s; }
.series-row:hover .series-arrow { transform: translateX(8px); color: var(--red); }

/* Contact */
.contact-lede {
  font-size: 13px; line-height: 2.1; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) .55s forwards;
}
.contact-mail {
  display: inline-block; margin: clamp(26px, 5vh, 50px) 0;
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(22px, 4.2vw, 54px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color .3s, border-color .3s;
  opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) .65s forwards;
}
.contact-mail:hover { color: var(--red); border-color: var(--red); }
.contact-links {
  display: flex; gap: 34px;
  opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) .75s forwards;
}
.contact-links a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.contact-links a:hover { color: var(--ink); }

/* ═══════════════ ÉTATS VIDES / 404 ═══════════════ */
.empty-state {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 var(--chrome-x);
}
.es-label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 16px; }
.es-title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(38px, 7vw, 90px); text-transform: uppercase; line-height: 1;
}
.es-note { margin-top: 24px; color: var(--ink-dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.es-note a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.es-note a:hover { color: var(--red); border-color: var(--red); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 860px) {
  .chrome-nav { display: none; }
  .chrome-fs { display: none; }
  .hero-rail { display: none; }
  .hero-content { left: var(--chrome-x); max-width: 85vw; }
  .hero-desc { max-width: 320px; }
  .viewer-head { max-width: 85vw; bottom: 150px; }
  .viewer-desc { -webkit-line-clamp: 2; max-width: 300px; }
  .viewer-caption { bottom: 26px; max-width: 62vw; }
  .scroll-hint { display: none; }
  .hero-arrows { bottom: 24px; }
  .arrows-track { width: 30px; }
  .stage-zone { bottom: 40%; width: 38%; }
  .about-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════ ACCESSIBILITÉ ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .grain { animation: none; }
  .hero-bg img { transform: none; }
  .hero-title .ch, .viewer-title .ch, .page-title .ch { transform: none; }
  .hero-label, .hero-desc, .hero-cta, .page-label, .viewer-label,
  .about-grid, .about-series, .contact-lede, .contact-mail, .contact-links { opacity: 1; transform: none; }
  .hero-sep, .page-sep { transform: scaleX(1); }
}
