/* ==========================================================================
   Rising Colors — Benjamin Dontaine, étalonneur
   ========================================================================== */

/* Les couleurs du thème sont typées : elles fondent d'un thème à l'autre */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0a0a0b; }
@property --bg-raised { syntax: "<color>"; inherits: true; initial-value: #111113; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.08); }
@property --line-strong { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.18); }
@property --text { syntax: "<color>"; inherits: true; initial-value: #ecebe7; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #a19e96; }
@property --faint { syntax: "<color>"; inherits: true; initial-value: #6e6b65; }
@property --shadow { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.45); }
@property --scrim { syntax: "<color>"; inherits: true; initial-value: rgba(8, 8, 9, 0.72); }
@property --vignette { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.55); }
@property --wheel-face { syntax: "<color>"; inherits: true; initial-value: #0e0e10; }
@property --gain { syntax: "<color>"; inherits: true; initial-value: hsl(32 66.5% 64%); }
@property --gain-hot { syntax: "<color>"; inherits: true; initial-value: hsl(32 70% 86%); }
@property --fiction { syntax: "<color>"; inherits: true; initial-value: hsl(32 80% 64%); }
@property --animation { syntax: "<color>"; inherits: true; initial-value: hsl(335 65% 70%); }
@property --documentaire { syntax: "<color>"; inherits: true; initial-value: hsl(205 60% 66%); }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: hsl(335 27% 30%); }
@property --tint-l { syntax: "<percentage>"; inherits: true; initial-value: 82%; }
@property --accent-l { syntax: "<percentage>"; inherits: true; initial-value: 74%; }

:root {
  /* Surfaces & texte — thème sombre, celui de la nuit (par défaut) */
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ecebe7;
  --muted: #a19e96;
  --faint: #6e6b65;
  --shadow: rgba(0, 0, 0, 0.45);
  --scrim: rgba(8, 8, 9, 0.72);
  --vignette: rgba(0, 0, 0, 0.55);
  --wheel-face: #0e0e10;

  /* Étalonnage de la page — piloté par les roues du hero (main.js) */
  --lift-h: 205;  --lift-s: 0.55;
  --gamma-h: 335; --gamma-s: 0.45;
  --gain-h: 32;   --gain-s: 0.7;

  --lift: hsl(var(--lift-h) calc(var(--lift-s) * 55%) 8%);
  --lift-deep: hsl(var(--lift-h) calc(var(--lift-s) * 40%) 4%);
  --gamma: hsl(var(--gamma-h) calc(var(--gamma-s) * 60%) 30%);
  --gain: hsl(var(--gain-h) calc(var(--gain-s) * 95%) 64%);
  --gain-hot: hsl(var(--gain-h) calc(var(--gain-s) * 100%) 86%);

  /* Lueurs (contact, CV) : restent lumineuses dans les deux thèmes */
  --glow: hsl(var(--gain-h) calc(var(--gain-s) * 95%) 64%);
  --glow-2: var(--gamma);

  /* Genres de la filmographie : chacun suit une roue */
  --fiction: hsl(var(--gain-h) 80% 64%);
  --animation: hsl(var(--gamma-h) 65% 70%);
  --documentaire: hsl(var(--lift-h) 60% 66%);

  /* Luminosité des teintes propres (titres survolés, postes du CV) */
  --tint-l: 82%;
  --accent-l: 74%;

  /* Typo */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Mise en page */
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* Thème clair : le soleil est levé (fader « Soleil » du hero, scene.js) */
:root[data-theme="light"] {
  --bg: #e9e4d6;
  --bg-raised: #f2eee2;
  --line: rgba(28, 24, 18, 0.1);
  --line-strong: rgba(28, 24, 18, 0.22);
  --text: #171614;
  --muted: #58544d;
  --faint: #8a857c;
  --shadow: rgba(70, 52, 30, 0.16);
  --scrim: rgba(236, 231, 218, 0.55);
  --vignette: rgba(70, 52, 30, 0.1);
  --wheel-face: #f6f3ea;

  --gain: hsl(var(--gain-h) calc(var(--gain-s) * 95%) 35%);
  --gain-hot: hsl(var(--gain-h) calc(var(--gain-s) * 100%) 29%);
  --glow-2: hsl(var(--gamma-h) calc(var(--gamma-s) * 70%) 72%);

  --fiction: hsl(var(--gain-h) 70% 38%);
  --animation: hsl(var(--gamma-h) 50% 44%);
  --documentaire: hsl(var(--lift-h) 55% 38%);

  --tint-l: 34%;
  --accent-l: 36%;

  color-scheme: light;
}

/* Passage d'un thème à l'autre (classe posée le temps du fondu) */
:root.is-theming {
  transition-property: --bg, --bg-raised, --line, --line-strong, --text, --muted, --faint,
    --shadow, --scrim, --vignette, --wheel-face, --gain, --gain-hot, --glow-2,
    --fiction, --animation, --documentaire, --tint-l, --accent-l;
  transition-duration: 0.7s;
  transition-timing-function: ease;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--gain); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gain-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Boutons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding: 0 1.4rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }

.btn-small { height: 38px; padding: 0 1.1rem; font-size: 14px; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.brand-mark { width: 28px; height: 28px; color: var(--text); }

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.nav a { position: relative; transition: color 0.25s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gain);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.link-imdb {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s;
}
.link-imdb:hover { color: var(--text); }

/* Hero ------------------------------------------------------------------- */

.hero {
  --horizon: 70%;
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) var(--gutter) 120px;
  overflow: hidden;
}

/* L'« image » : un paysage étalonné par les roues, éclairé par le fader Soleil
   (scene.js écrit les couleurs et la course du soleil en variables sur .hero).
   Sans JavaScript : l'aube abstraite, soleil à demi couché sur l'horizon. */
.hero-image { position: absolute; inset: 0; z-index: -3; }

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--lift-deep) 0%,
    var(--lift) 28%,
    color-mix(in oklab, var(--gamma) 55%, var(--lift)) 54%,
    var(--gamma) calc(var(--horizon) - 2%),
    color-mix(in oklab, var(--gamma) 60%, var(--gain)) var(--horizon),
    var(--lift-deep) var(--horizon),
    #050506 100%);
}
.has-scene .hero-sky {
  background: linear-gradient(180deg,
    var(--sky-0) 0%,
    var(--sky-1) 24%,
    var(--sky-2) 46%,
    var(--sky-3) calc(var(--horizon) - 12%),
    var(--sky-4) calc(var(--horizon) - 2%));
}

/* Étoiles et aurore (la nuit), paysage, puis ce qui vole dans l'air (neige,
   feuilles, pétales, lucioles) : trois canvas dessinés par scene.js */
.hero-night,
.hero-land,
.hero-air {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.hero-night { top: 0; mix-blend-mode: screen; }
.hero-land { bottom: 0; }
.hero-air { top: 0; height: 100%; }

.hero-haze {
  position: absolute;
  left: -10%; right: -10%;
  top: calc(var(--horizon) - 30%);
  height: 34%;
  background: radial-gradient(60% 55% at var(--haze-x, 62%) 100%, var(--haze, color-mix(in oklab, var(--gain) 45%, transparent)), transparent 70%);
  filter: blur(24px);
  opacity: 0.9;
}

.hero-sun {
  position: absolute;
  left: var(--sun-x, 64%);
  top: var(--sun-y, var(--horizon));
  width: min(62vmax, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    var(--sun-0, var(--gain-hot)) 0%,
    var(--sun-1, var(--gain)) 6%,
    var(--sun-2, color-mix(in oklab, var(--gain) 40%, transparent)) 18%,
    transparent 52%);
  mix-blend-mode: screen;
  animation: sun-breathe 16s ease-in-out infinite alternate;
}
.hero-sun::after {
  /* disque du soleil ; à l'ouverture, à moitié couché */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: calc(9% * var(--sun-scale, 1));
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, var(--disc-0, var(--gain-hot)) 55%, var(--disc-1, var(--gain)) 100%);
  box-shadow: 0 0 60px 10px var(--disc-halo, color-mix(in oklab, var(--gain) 60%, transparent));
}

/* Nuages : éclairés par-dessus le jour, par-dessous au couchant */
.hero-clouds { position: absolute; inset: 0; overflow: hidden; }
.cloud {
  position: absolute;
  left: 0;
  top: var(--y);
  width: clamp(80px, var(--w), 380px);
  height: auto;
  opacity: var(--cloud-a, 0.9);
  transform: translateX(calc(var(--start) * 145vw - 35vw));
  animation: cloud-drift var(--dur) linear calc(var(--start) * var(--dur) * -1) infinite;
}
.cloud path { fill: url(#cloud-light); }
.hero.is-offscreen :is(.cloud, .hero-sun, .grain) { animation-play-state: paused; }
#cloud-light .c0 { stop-color: var(--cloud-0); }
#cloud-light .c1 { stop-color: var(--cloud-1); }
#cloud-light .c2 { stop-color: var(--cloud-2); }
.cloud-defs { position: absolute; width: 0; height: 0; }

.hero-horizon {
  position: absolute;
  left: 0; right: 0;
  top: var(--horizon);
  bottom: 0;
  background:
    radial-gradient(40% 30% at 64% 0%, color-mix(in oklab, var(--gain) 30%, transparent), transparent 80%),
    linear-gradient(180deg, color-mix(in oklab, var(--lift-deep) 80%, var(--gamma)) 0%, #060607 45%, var(--bg) 100%);
}
.hero-horizon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gain-hot) 80%, transparent) 64%, transparent);
}
/* le paysage remplace l'horizon d'origine */
.has-scene .hero-horizon { display: none; }

/* Lisibilité du texte */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--scrim) 0%, color-mix(in srgb, var(--scrim) 48%, transparent) 42%, transparent 68%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, var(--vignette) 100%);
}

/* Fondu : les 100 derniers px de l'image se fondent dans le fond du contenu */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--bg) 8%, transparent) 15%,
    color-mix(in srgb, var(--bg) 25%, transparent) 35%,
    color-mix(in srgb, var(--bg) 55%, transparent) 60%,
    color-mix(in srgb, var(--bg) 85%, transparent) 82%,
    var(--bg) 100%);
}

/* Grain pellicule */
.grain {
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

/* Repères de cadre, façon moniteur d'étalonnage */
.frame-marks {
  position: absolute;
  inset: calc(var(--header-h) + 8px) var(--gutter) 24px;
  pointer-events: none;
}
.frame-marks i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid color-mix(in srgb, var(--text) 32%, transparent);
}
.frame-marks i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame-marks i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame-marks i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame-marks i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero-meta {
  position: absolute;
  left: calc(var(--gutter) + 28px);
  right: calc(var(--gutter) + 28px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 55%, transparent);
}
.hero-meta-top { top: calc(var(--header-h) + 14px); }
.hero-meta-bottom { bottom: 30px; }

/* Indice de défilement : chevron discret, centré en bas du hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  transition: opacity 0.4s var(--ease), color 0.3s var(--ease);
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue-bob 2.4s ease-in-out infinite;
}
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(-3px); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}
.tc { font-variant-numeric: tabular-nums; }

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gain-hot);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 30%, var(--gain-hot) 75%, var(--gain) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero-lede {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Roues Lift / Gamma / Gain */
.wheels {
  position: absolute;
  right: calc(var(--gutter) + 28px);
  bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  --wheel: 92px;
}
.wheels-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}
.wheels-row { display: flex; gap: 18px; }

.wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wheel-disc {
  position: relative;
  width: var(--wheel);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  background:
    radial-gradient(circle closest-side,
      color-mix(in srgb, var(--wheel-face) 94%, transparent) 0%,
      color-mix(in srgb, var(--wheel-face) 78%, transparent) 62%,
      color-mix(in srgb, var(--wheel-face) 30%, transparent) 86%,
      color-mix(in srgb, var(--wheel-face) 92%, transparent) 90%,
      color-mix(in srgb, var(--wheel-face) 92%, transparent) 100%),
    conic-gradient(
      hsl(0 70% 55%), hsl(60 70% 55%), hsl(120 70% 55%),
      hsl(180 70% 55%), hsl(240 70% 55%), hsl(300 70% 55%), hsl(360 70% 55%));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent),
    0 12px 32px var(--shadow);
}
.wheel-disc::before,
.wheel-disc::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wheel-disc::before { width: 70%; height: 1px; }
.wheel-disc::after { width: 1px; height: 70%; }

.wheel-puck {
  --px: 0; --py: 0;
  position: absolute;
  z-index: 1;
  left: calc(50% + var(--px) * 42%);
  top: calc(50% + var(--py) * 42%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--puck, #888);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: transform 0.2s var(--ease);
}
.wheel.is-dragging .wheel-puck { transform: translate(-50%, -50%) scale(1.2); cursor: grabbing; }
.wheel-puck:focus-visible { outline-offset: 4px; border-radius: 50%; }

.wheel-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.wheel-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: color-mix(in srgb, var(--text) 42%, transparent);
  font-variant-numeric: tabular-nums;
  margin-top: -6px;
}

.wheels-reset {
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 45%, transparent);
  cursor: pointer;
  transition: color 0.25s;
}
.wheels-reset:hover { color: var(--text); }

/* Fader Soleil : l'heure du jour, de la nuit (bas) au plein jour (haut).
   La rainure change de teinte au seuil où la page passe en clair. */
.fader {
  --t: 0.34;
  --pad: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fader-track {
  position: relative;
  width: 30px;
  height: var(--wheel);
  border-radius: 999px;
  cursor: ns-resize;
  touch-action: none;
  background: color-mix(in srgb, var(--wheel-face) 86%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent),
    0 12px 32px var(--shadow);
}
.fader-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--pad);
  bottom: var(--pad);
  width: 4px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(0deg,
    var(--lift-deep) 0%,
    var(--lift) 18%,
    var(--gamma) 32%,
    var(--gain) 42%,
    hsl(var(--lift-h) calc(var(--lift-s) * 80%) 66%) 44%,
    hsl(var(--lift-h) calc(var(--lift-s) * 70%) 84%) 100%);
}
.fader-thumb {
  position: absolute;
  left: 50%;
  top: calc(var(--pad) + (1 - var(--t)) * (100% - var(--pad) * 2));
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--disc-0, var(--gain-hot));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 12px var(--disc-halo, transparent), 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s var(--ease);
}
.fader.is-dragging .fader-thumb { transform: translate(-50%, -50%) scale(1.2); }
.fader-track:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Saison : le paysage suit le calendrier ; le curseur fait défiler l'année
   (du 21 mars au 20 mars), le bouton la joue en accéléré. */
.season {
  --y: 0.5;
  --pad: 12px;
  --tick: color-mix(in srgb, var(--text) 28%, transparent);
  align-self: stretch;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
}
.season-play,
.season-track {
  background: color-mix(in srgb, var(--wheel-face) 86%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent),
    0 12px 32px var(--shadow);
}
.season-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  cursor: pointer;
  transition: color 0.25s;
}
.season-play:hover { color: var(--text); }
.season-play svg { width: 12px; height: 12px; fill: currentColor; }
.season-i-pause,
.season.is-playing .season-i-play { display: none; }
.season.is-playing .season-i-pause { display: inline; }
.season-track {
  position: relative;
  height: 30px;
  border-radius: 999px;
  cursor: ew-resize;
  touch-action: none;
}
/* rainure : printemps, été, automne, hiver, et retour au printemps */
.season-track::before,
.season-track::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.season-track::before {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    hsl(150 22% 70%) 0%,
    hsl(96 42% 54%) 12.5%,
    hsl(50 62% 58%) 37.5%,
    hsl(24 72% 54%) 62.5%,
    hsl(205 38% 84%) 87.5%,
    hsl(150 22% 70%) 100%);
}
/* repères des changements de saison */
.season-track::after {
  height: 12px;
  background: linear-gradient(90deg,
    transparent calc(25% - 0.5px), var(--tick) 0 calc(25% + 0.5px),
    transparent 0 calc(50% - 0.5px), var(--tick) 0 calc(50% + 0.5px),
    transparent 0 calc(75% - 0.5px), var(--tick) 0 calc(75% + 0.5px),
    transparent 0);
}
.season-thumb {
  position: absolute;
  z-index: 1;
  left: calc(var(--pad) + var(--y) * (100% - var(--pad) * 2));
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--season-c, #b9b9b9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s var(--ease);
}
.season.is-dragging .season-thumb { transform: translate(-50%, -50%) scale(1.2); }
.season-track:focus-visible { outline-offset: 4px; border-radius: 999px; }
.season-val { margin-top: 0; text-align: right; white-space: nowrap; }
.season-names {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 40%, transparent);
}
.season-names .is-on { color: color-mix(in srgb, var(--text) 80%, transparent); }

/* Sections --------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  column-gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gain);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.section-intro {
  grid-column: 2;
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
}
.section-intro a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s;
}
.section-intro a:hover { border-color: var(--gain); }

/* Sélection */
.works { border-bottom: 1px solid var(--line); }

.work {
  --tint: 32;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.work::before {
  /* teinte propre à chaque film au survol */
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: linear-gradient(90deg,
    hsl(var(--tint) 65% 45% / 0.16) 0%,
    hsl(var(--tint) 65% 45% / 0.05) 50%,
    transparent 85%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work:hover::before { opacity: 1; }

.work-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.work-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}
.work:hover .work-title {
  transform: translateX(10px);
  color: hsl(var(--tint) 70% var(--tint-l));
}
.work-credit {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.alt-title { font-style: italic; color: var(--faint); }
.work-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 30ch;
}
.work-note:empty { display: none; }

/* Filmographie */
.credits-year {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.credits-year h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--gain);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.credits-year li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 236px;
  column-gap: 24px;
  align-items: baseline;
  padding: 6px 0;
}
.c-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}
.c-dir { font-size: 15px; color: var(--muted); }
.c-role {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gain);
  white-space: nowrap;
}

/* Tags : format en pastille, genre en point de couleur */
[data-genre="fiction"], [data-value="fiction"] { --genre: var(--fiction); }
[data-genre="animation"], [data-value="animation"] { --genre: var(--animation); }
[data-genre="documentaire"], [data-value="documentaire"] { --genre: var(--documentaire); }

.c-tags {
  display: grid;
  grid-template-columns: 124px auto;
  column-gap: 8px;
  align-items: center;
}
.c-tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.c-genre {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: transparent;
  padding-inline: 0;
}
.c-genre::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--genre, var(--muted));
  box-shadow: 0 0 10px var(--genre, transparent);
}

/* Lignes qui ouvrent une fiche */
.film-open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}
.is-clickable { cursor: pointer; }
.credits-year li.is-clickable::before,
.cv-films li.is-clickable::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.credits-year li.is-clickable:hover::before,
.cv-films li.is-clickable:hover::before { opacity: 1; }
.credits-year li.is-clickable:hover .c-title,
.cv-films li.is-clickable:hover .c-title { color: var(--gain-hot); }
.credits-year ul { isolation: isolate; }

/* Filtres */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -16px 0 32px 80px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, opacity 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip:disabled { opacity: 0.35; cursor: default; }
.chip:disabled:hover { color: var(--muted); border-color: var(--line-strong); }
.chip-genre::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--genre);
}
.filters-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.credits.is-collapsed .is-extra { display: none; }
.credits.is-collapsed { position: relative; }
.credits.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
/* Un filtre actif montre toutes les années ; celles sans résultat disparaissent */
.credits.is-filtered .is-extra { display: grid; }
.credits.is-filtered::after { display: none; }
.credits .credits-year.is-empty { display: none; }

.credits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-left: 80px;
}

/* Savoir-faire */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 56px);
  padding-left: 80px;
}
.craft-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 22px 0 12px;
}
.craft-item p { color: var(--muted); font-size: 16px; }
.craft-swatch {
  --h: 32;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    hsl(var(--h) 40% 6%) 0%,
    hsl(var(--h) 60% 30%) 35%,
    hsl(var(--h) 75% 60%) 70%,
    hsl(var(--h) 80% 90%) 100%);
}

/* À propos */
.about-body { padding-left: 80px; max-width: calc(80px + 820px); }
.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.about-body > p:not(.about-lede) { color: var(--muted); max-width: 62ch; }
.about-body > p:not(.about-lede) + p { margin-top: 16px; }
.about-cv { margin-top: 40px; }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 56px 0;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
.figures dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.figures dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.partners-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.partners ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  font-size: 15px;
}
.partners li { color: var(--text); }
.partners li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--faint);
}

/* Contact */
.contact { overflow: hidden; isolation: isolate; }
.contact-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(1200px, 140vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 100%,
    color-mix(in oklab, var(--glow) 32%, transparent) 0%,
    color-mix(in oklab, var(--glow-2) 24%, transparent) 45%,
    transparent 75%);
  filter: blur(20px);
}
.contact-body { padding-left: 80px; }
.contact-lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 40ch;
}
.contact-mail {
  display: inline-block;
  margin: 28px 0 40px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  background:
    linear-gradient(90deg, var(--gain-hot), var(--gain)) left bottom / 0% 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.contact-mail:hover { background-size: 100% 2px; color: var(--gain-hot); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-status {
  min-height: 1.5em;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gain-hot);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  font-size: 13px;
  color: var(--faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer a { color: var(--muted); transition: color 0.25s; }
.site-footer a:hover { color: var(--text); }

/* Page CV ---------------------------------------------------------------- */

.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.cv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
}
.cv-glow {
  /* l'aube du hero, en veilleuse */
  position: absolute;
  right: -12%;
  top: -45%;
  z-index: -1;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side,
    color-mix(in oklab, var(--glow) 22%, transparent) 0%,
    color-mix(in oklab, var(--glow-2) 20%, transparent) 45%,
    transparent 100%);
  filter: blur(30px);
  pointer-events: none;
}

.cv-role {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cv-role span { white-space: nowrap; }

.cv-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px clamp(32px, 6vw, 88px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.cv-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cv-summary { color: color-mix(in srgb, var(--text) 82%, transparent); text-wrap: pretty; }

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cv-contact li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--faint);
}
.cv-contact a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s;
}
.cv-contact a:hover { border-color: var(--gain); }

.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cv-figures {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 72px) 0 0;
}

/* Parcours : une timeline de montage, postes en V1, films par an en A1 */
.timeline-wrap { margin: 0 0 clamp(40px, 6vw, 64px) 80px; }
.timeline-scroll { overflow-x: auto; overscroll-behavior-x: contain; }

.timeline {
  --start: 2008;
  --now: 2026.82;
  --end: calc(var(--now) + 2);
  --span: calc(var(--end) - var(--start));
  --ruler-h: 40px;
  --v2-h: 44px;
  --video-h: 50px;
  --audio-h: 46px;
  --playhead: hsl(4 85% 62%);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
}
.tl-names,
.tl-lanes {
  display: grid;
  grid-template-rows: var(--ruler-h) var(--v2-h) var(--video-h) var(--audio-h);
}
.tl-names {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
.tl-names span {
  display: grid;
  place-items: center;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.tl-names span + span,
.tl-lane { border-top: 1px solid var(--line); }
.tl-lanes,
.tl-ruler,
.tl-lane { position: relative; }

/* position d'une date : (année − début) / durée totale */
.tl-ruler span,
.tl-marker,
.tl-playhead { left: calc((var(--at) - var(--start)) / var(--span) * 100%); }

.tl-ruler {
  /* graduation : un trait par année */
  background: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 100% / calc(100% / var(--span)) 7px repeat-x;
}
.tl-ruler span {
  position: absolute;
  bottom: 9px;
  padding-left: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tl-marker {
  position: absolute;
  top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  transform: translateX(-3.5px);
}
.tl-marker::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gain);
  transform: rotate(45deg);
}
.tl-marker.is-left { flex-direction: row-reverse; transform: translateX(calc(-100% + 3.5px)); }

.tl-clip {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: calc((var(--from) - var(--start)) / var(--span) * 100% + 1px);
  width: calc((var(--to) - var(--from)) / var(--span) * 100% - 2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, hsl(var(--h) 40% 26%), hsl(var(--h) 38% 19%));
  box-shadow:
    inset 0 1px 0 hsl(var(--h) 60% 55% / 0.7),
    inset 0 0 0 1px hsl(var(--h) 50% 45% / 0.35);
  overflow: hidden;
}
.tl-clip b,
.tl-clip span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tl-clip b { font-weight: 500; color: hsl(var(--h) 70% 88%); }
.tl-clip span { color: hsl(var(--h) 22% 68%); }

/* activité en cours : le clip s'arrête à la tête de lecture */
.tl-clip.is-now,
.tl-clip.is-ongoing { --to: var(--now); }
/* poste actuel : son nom s'écrit après la tête de lecture */
.tl-clip.is-now { background: linear-gradient(180deg, hsl(var(--h) 70% 50%), hsl(var(--h) 65% 38%)); }
/* avant l'image : clip désaturé */
.tl-clip.is-muted { filter: saturate(0.15); }
/* début non daté : le clip entre en fondu, son nom se cale à droite */
.tl-clip.is-fadein {
  align-items: flex-end;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.tl-now {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: calc((var(--now) - var(--start)) / var(--span) * 100% + 8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.tl-now b { font-weight: 500; color: var(--gain-hot); }
.tl-now span { color: var(--muted); }

.tl-audio::before {
  /* ligne de zéro de la forme d'onde */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: color-mix(in oklab, var(--gain) 25%, transparent);
}
.tl-audio i {
  position: absolute;
  top: 50%;
  left: calc((var(--y) - var(--start)) / var(--span) * 100% + 2px);
  width: calc(min(var(--now) - var(--y), 1) / var(--span) * 100% - 4px);
  height: calc(max(var(--n) / 12, 0.08) * 80%);
  border-radius: 2px;
  background: var(--gain);
  opacity: 0.8;
  transform: translateY(-50%);
}

.tl-playhead {
  --at: var(--now);
  position: absolute;
  top: calc(var(--ruler-h) - 9px);
  bottom: 0;
  width: 1px;
  background: var(--playhead);
  pointer-events: none;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  background: var(--playhead);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.tl-legend b { margin-right: 6px; font-weight: 500; color: var(--muted); }
.tl-legend .tl-key { color: var(--gain); }

/* Postes */
.jobs { margin-left: 80px; border-bottom: 1px solid var(--line); }
.job {
  --h: 32;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.job-when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.job-when::before {
  /* pastille dans la teinte du clip correspondant de la frise */
  content: "";
  display: inline-block;
  width: 14px;
  height: 6px;
  margin-right: 10px;
  border-radius: 2px;
  vertical-align: 0.15em;
  background: hsl(var(--h) 60% 55%);
}
.job-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.job-org {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--h) 65% var(--accent-l));
}
.job-org span { color: var(--faint); }
.job-org span::before { content: "·"; margin: 0 10px; }
.job-context { margin-top: 12px; max-width: 62ch; font-size: 15px; color: var(--muted); }
.job-points { display: grid; gap: 8px; max-width: 68ch; margin-top: 16px; }
.job-points li {
  position: relative;
  padding-left: 22px;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  text-wrap: pretty;
}
.job-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: hsl(var(--h) 60% 60%);
}
.job-points i { font-family: var(--font-display); font-size: 1.1em; line-height: 1; }
.job.is-muted .job-when::before,
.job.is-muted .job-points li::before { background: var(--faint); }
.job.is-muted .job-org { color: var(--muted); }

/* Formation & transmission */
.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  margin-left: 80px;
  border-bottom: 1px solid var(--line);
}
.extra {
  --h: 32;
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.extra-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}
.extra-text { margin-top: 10px; max-width: 52ch; font-size: 15px; color: var(--muted); }

/* Compétences */
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 64px) clamp(28px, 4vw, 56px);
  padding-left: 80px;
}
.skill h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
}
.skill-level {
  padding: 2px 9px;
  border: 1px solid color-mix(in oklab, var(--gain) 55%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gain-hot);
}
.skill dl { border-bottom: 1px solid var(--line); }
.skill dl div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.skill dt { font-size: 15px; font-weight: 500; }
.skill dd { font-size: 15px; color: var(--muted); }
.skill-tools dl div { grid-template-columns: 11em minmax(0, 1fr); }
.skill-tools dt {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
}

/* Filmographie choisie */
.cv-films { margin-left: 80px; border-bottom: 1px solid var(--line); isolation: isolate; }
.cv-films li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr);
  column-gap: 20px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.cvf-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cvf-format {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.cvf-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Collaborations */
.collab { display: grid; gap: 36px; padding-left: 80px; max-width: calc(80px + 900px); }

/* Fiche film ------------------------------------------------------------- */

.has-fiche { overflow: hidden; }

.fiche {
  --tint: 32;
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-raised);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.fiche::backdrop {
  background: rgba(5, 5, 6, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.fiche[open] { animation: fiche-in 0.5s var(--ease); }
.fiche[open]::backdrop { animation: fade-in 0.3s ease; }

.fiche-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "visual head" "visual body";
  column-gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 4vw, 44px);
  /* lumière teintée propre à chaque film */
  background: radial-gradient(110% 60% at 0% 0%, hsl(var(--tint) 60% 45% / 0.16), transparent 65%);
}

.fiche-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.fiche-close:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

.fiche-visual {
  grid-area: visual;
  align-self: start;
  position: sticky;
  top: clamp(20px, 4vw, 44px);
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.fiche-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sans affiche : une « aube » dans la teinte du film, comme le hero (sombre dans les deux thèmes) */
.fiche-visual.is-slate {
  display: flex;
  color: #ecebe7;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background:
    radial-gradient(70% 34% at 64% 70%, hsl(var(--tint) 85% 70% / 0.55), transparent 70%),
    linear-gradient(180deg,
      hsl(calc(var(--tint) + 180) 35% 7%) 0%,
      hsl(calc(var(--tint) + 200) 30% 14%) 40%,
      hsl(var(--tint) 45% 30%) 69.5%,
      hsl(var(--tint) 30% 8%) 70%,
      #050506 100%);
}
.slate-mark, .slate-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 235, 231, 0.6);
}
.slate-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.05;
  text-wrap: balance;
}

/* Image paysage (photogramme) : bandeau au-dessus du texte */
.fiche.is-still .fiche-inner {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: "visual" "head" "body";
}
.fiche.is-still .fiche-visual {
  position: static;
  aspect-ratio: 21 / 9;
  margin-bottom: 28px;
}

.fiche-head { grid-area: head; padding-right: 48px; }
.fiche-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fiche-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fiche-original {
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--faint);
}
.fiche-by { margin-top: 10px; color: var(--muted); }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.fiche-body { grid-area: body; margin-top: 24px; }
.fiche-synopsis {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  text-wrap: pretty;
}
.fiche-crew {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.fiche-crew div {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.fiche-crew dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.fiche-crew dd { font-size: 15px; }
.fiche-crew .is-self dt { color: var(--gain); }
.fiche-crew .is-self dd { color: var(--gain-hot); }

.fiche-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fiche-note::before { content: "★ "; color: var(--gain); }

/* Palmarès : intertitres comme les rubriques de l'équipe */
.fiche-palmares h3 {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.fiche-prizes { margin-top: 8px; }
.fiche-prizes li {
  position: relative;
  padding: 4px 0 4px 1.4em;
  font-size: 15px;
  line-height: 1.45;
}
.fiche-prizes li::before { content: "★"; position: absolute; left: 0; color: var(--gain); }
.fiche-selections {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.fiche-selections span + span::before { content: "◆"; margin: 0 0.6em; font-size: 0.6em; vertical-align: 0.2em; color: var(--gain); }
.fiche-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fiche-links .is-trailer { border-color: var(--gain); }
.fiche-links .is-trailer:hover { background: color-mix(in oklab, var(--gain) 14%, transparent); }

.fiche-original:empty,
.fiche-synopsis:empty,
.fiche-note:empty,
.fiche-palmares:empty,
.fiche-links:empty { display: none; }

/* Thème clair : ce que les variables ne couvrent pas ---------------------- */

@media screen {
  :root[data-theme="light"] .hero-meta { color: color-mix(in srgb, var(--text) 72%, transparent); }
  :root[data-theme="light"] .fiche { box-shadow: 0 40px 120px rgba(60, 45, 30, 0.22); }
  :root[data-theme="light"] .fiche::backdrop { background: rgba(228, 222, 207, 0.72); }

  /* frise du CV : clips clairs, comme sur papier */
  :root[data-theme="light"] .tl-clip {
    background: hsl(var(--h) 55% 90%);
    box-shadow: inset 0 0 0 1px hsl(var(--h) 45% 62%);
  }
  :root[data-theme="light"] .tl-clip b { color: hsl(var(--h) 55% 24%); }
  :root[data-theme="light"] .tl-clip span { color: hsl(var(--h) 30% 40%); }
  :root[data-theme="light"] .tl-clip.is-now { background: linear-gradient(180deg, hsl(var(--h) 70% 64%), hsl(var(--h) 65% 54%)); }
}

/* Apparition au défilement ---------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Animations ------------------------------------------------------------- */

@keyframes sun-breathe {
  from { transform: translate(-50%, -48%) scale(0.96); opacity: 0.88; }
  to   { transform: translate(-50%, -52%) scale(1.04); opacity: 1; }
}

@keyframes cloud-drift {
  from { transform: translateX(-35vw); }
  to   { transform: translateX(110vw); }
}

@keyframes fiche-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(-1%, -2%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun, .grain, .cloud { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work-title { transition: none; }
  .fiche[open], .fiche[open]::backdrop { animation: none; }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .hero {
    --horizon: 66%;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 72px;
  }
  .hero-content { padding-inline: 12px; }
  .hero-sun { left: 72%; width: 120vmax; }
  .hero-haze { background: radial-gradient(70% 55% at 72% 100%, color-mix(in oklab, var(--gain) 45%, transparent), transparent 70%); }
  .hero-horizon { background:
    radial-gradient(50% 30% at 72% 0%, color-mix(in oklab, var(--gain) 30%, transparent), transparent 80%),
    linear-gradient(180deg, color-mix(in oklab, var(--lift-deep) 80%, var(--gamma)) 0%, #060607 45%, var(--bg) 100%); }
  .hero::before {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--scrim) 76%, transparent) 0%, color-mix(in srgb, var(--scrim) 28%, transparent) 50%, transparent 70%),
      radial-gradient(120% 90% at 50% 40%, transparent 55%, var(--vignette) 100%);
  }
  .hero-meta { left: calc(var(--gutter) + 12px); right: calc(var(--gutter) + 12px); }

  .wheels {
    position: relative;
    right: auto;
    bottom: auto;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 48px;
    padding-inline: 12px;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    --wheel: 78px;
  }

  .section-head { grid-template-columns: 1fr; }
  .section-index { margin-bottom: 14px; }
  .section-intro { grid-column: 1; }

  .work { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .work-year { order: -1; }
  .work-note { text-align: left; max-width: none; margin-top: 6px; }
  .work:hover .work-title { transform: none; }

  .credits-year { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .credits-year li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: 8px 0;
  }
  .c-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }

  .filters { margin: -8px 0 28px; }
  .filters-count { flex-basis: 100%; margin-left: 0; }

  .fiche-inner { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }

  .credits-actions,
  .craft-grid,
  .about-body,
  .contact-body,
  .skills,
  .collab { padding-left: 0; }

  .craft-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  /* CV */
  .cv-intro { grid-template-columns: minmax(0, 1fr); }
  .cv-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-wrap,
  .jobs,
  .extras,
  .cv-films { margin-left: 0; }
  /* la frise garde sa lisibilité : elle défile horizontalement, bord à bord */
  .timeline-scroll { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .timeline { min-width: 860px; }
  .tl-clip { padding: 0 6px; font-size: 9px; }
  .tl-legend { gap: 6px 16px; }
  .job { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .skills,
  .extras { grid-template-columns: minmax(0, 1fr); }
  .cv-films li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 4px; padding: 12px 0; }
  .cv-films .c-dir,
  .cv-films .cvf-note { grid-column: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .link-imdb { display: none; }
  .brand-name { font-size: 14px; }
  .frame-marks { inset: calc(var(--header-h) + 4px) var(--gutter) 16px; }
  .hero-meta-bottom { bottom: 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:last-child { grid-column: span 2; }
  .cv-figures div:last-child { grid-column: auto; }
  .cv-contact { flex-direction: column; gap: 10px; }
  .cv-contact li { align-self: flex-start; }
  .cv-contact li:not(:last-child)::after { content: none; }
  .contact-actions .btn,
  .cv-actions .btn { flex: 1 1 auto; }
  .skill dl div,
  .skill-tools dl div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }

  /* Fiche : petite affiche à côté du titre, le reste en pleine largeur */
  .fiche { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .fiche-inner {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "visual head" "body body";
    column-gap: 16px;
    padding: 18px;
  }
  .fiche-visual { position: static; }
  .fiche-visual.is-slate { padding: 10px; }
  .slate-mark { display: none; }
  .slate-title { font-size: 1rem; }
  .slate-year { font-size: 9px; }
  .fiche.is-still .fiche-visual { aspect-ratio: 16 / 9; margin-bottom: 18px; }
  .fiche-head { padding-right: 36px; }
  .fiche.is-still .fiche-head { padding-right: 0; }
  .fiche-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .fiche-title { margin-top: 8px; font-size: 1.55rem; }
  .fiche-crew div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* Smartphone, y compris à l'horizontale : le hero sans les roues d'étalonnage */
@media (max-width: 560px), (pointer: coarse) and (max-height: 500px) {
  .wheels { display: none; }
}

/* Impression : le CV tient sur deux pages A4 ----------------------------- */

@media print {
  @page { size: A4; margin: 10mm 12mm; }

  :root,
  :root[data-theme="light"] {
    --bg: #fff;
    --bg-raised: #f7f6f3;
    --line: #e4e2dd;
    --line-strong: #c9c6bf;
    --text: #151515;
    --muted: #4d4a45;
    --faint: #85817a;
    --gain: hsl(24 85% 44%);
    --gain-hot: hsl(20 80% 38%);
    color-scheme: light;
  }

  body { background: #fff; font-size: 9pt; line-height: 1.36; }

  .skip,
  .site-header,
  .site-footer,
  .section-intro,
  .cv-glow,
  .cv-actions,
  .hide-print { display: none !important; }

  .js .reveal { opacity: 1; transform: none; transition: none; }
  .container { max-width: none; padding-inline: 0; }

  /* En-tête */
  .cv-hero { padding-top: 0; overflow: visible; }
  .eyebrow { gap: 3mm; margin-bottom: 2mm; font-size: 7pt; color: var(--gain); }
  .eyebrow::before { width: 8mm; }
  .hero-title { font-size: 26pt; }
  .hero-title em { background: none; color: var(--gain); }
  .cv-role { margin-top: 1.5mm; font-size: 7.5pt; }
  .cv-intro { grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: 2mm 8mm; margin-top: 4mm; padding-top: 3.5mm; }
  .cv-tagline { font-size: 13pt; }
  .cv-summary { color: var(--text); }
  .cv-contact { gap: 0.8mm 0; margin-top: 2mm; font-size: 7.5pt; }
  .cv-contact li:not(:last-child)::after { margin: 0 2.5mm; }
  .cv-contact a { border: 0; }
  .cv-contact [aria-hidden] { display: none; }
  /* sur papier, le lien IMDb doit se lire */
  .cv-contact a[data-print]::after { content: " " attr(data-print); }
  .cv-figures { gap: 4mm; margin-top: 3.5mm; padding: 2mm 0; }
  .figures dt { font-size: 6pt; }
  .figures dd { margin-top: 0.5mm; font-size: 13pt; }

  /* Sections */
  .section { padding-block: 0; margin-top: 4.5mm; }
  .section + .section { border-top: 0; }
  .section-head { grid-template-columns: 7mm 1fr; column-gap: 2mm; margin-bottom: 2mm; break-after: avoid; }
  .section-index { font-size: 7pt; }
  .section-head h2 { font-size: 13pt; }
  .timeline-wrap,
  .jobs,
  .extras,
  .cv-films { margin-left: 0; }
  .skills { padding-left: 0; }

  /* Frise : couleurs claires, imprimées telles quelles */
  .timeline-scroll { overflow: visible; }
  .timeline {
    --end: calc(var(--now) + 2.1);
    --ruler-h: 32px;
    --v2-h: 22px;
    --video-h: 26px;
    --audio-h: 26px;
    grid-template-columns: 26px minmax(0, 1fr);
    break-inside: avoid;
    font-size: 6.3pt;
  }
  .timeline,
  .craft-swatch,
  .job-when::before {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .tl-ruler span { bottom: 7px; }
  .tl-marker { top: 3px; }
  .tl-clip,
  .tl-now { top: 4px; bottom: 4px; }
  .tl-clip {
    padding: 0 4px;
    background: hsl(var(--h) 55% 90%);
    box-shadow: inset 0 0 0 1px hsl(var(--h) 45% 62%);
  }
  .tl-clip b { font-family: var(--font-body); color: hsl(var(--h) 55% 24%); }
  /* clips trop courts pour leur intitulé sur A4 : le poste figure dans la liste */
  .tl-clip span { display: none; }
  .tl-clip.is-now { background: var(--gain); }
  .tl-legend { margin-top: 1.5mm; font-size: 6.5pt; }
  .timeline-wrap { margin-bottom: 2mm; }

  /* Postes : dates à droite de l'intitulé, le texte prend toute la largeur */
  .job { display: block; position: relative; padding: 2.2mm 0; }
  .job-title,
  .job-org,
  .job-context { break-after: avoid; }
  .job-points li { break-inside: avoid; }
  .job-when { font-size: 7pt; }
  .job .job-when { position: absolute; top: 2.8mm; right: 0; }
  .job-when::before { width: 3mm; margin-right: 2mm; }
  .job-title { padding-right: 34mm; font-size: 11.5pt; }
  .job-org { margin-top: 0.6mm; font-size: 6.5pt; color: hsl(var(--h) 55% 36%); }
  .job-context { max-width: none; margin-top: 1mm; font-size: 8pt; }
  .job-points { gap: 0.6mm; max-width: none; margin-top: 1.2mm; }
  .job-points li { padding-left: 3.5mm; color: var(--text); }
  .job-points li::before { background: hsl(var(--h) 50% 45%); }

  /* Compétences */
  .skills { gap: 3mm 8mm; }
  .skill { break-inside: avoid; }
  .skill h3 { margin: 1.5mm 0 0.8mm; font-size: 10.5pt; }
  .skill-level { padding: 0 2mm; font-size: 6pt; }
  .skill dl div,
  .skill-tools dl div { display: block; padding: 0.6mm 0; }
  .skill dt,
  .skill dd { display: inline; font-size: 7.8pt; }
  .skill dt { margin-right: 1.5mm; }
  .skill-tools dt { font-size: 8.8pt; }
  .craft-swatch { height: 3px; }

  /* Formation & transmission */
  .extras { column-gap: 8mm; }
  .extra { position: relative; padding: 2mm 0; break-inside: avoid; }
  .extra .job-when { position: absolute; top: 2.4mm; right: 0; }
  .extra-title { margin-top: 0; padding-right: 26mm; font-size: 10.5pt; }
  .extra .job-org { margin-top: 0.4mm; }
  .extra-text { max-width: none; margin-top: 0.6mm; font-size: 8pt; }

  /* Films : deux colonnes */
  .cv-films { columns: 2; column-gap: 8mm; }
  .cv-films li {
    grid-template-columns: 8mm minmax(0, 1fr);
    column-gap: 2mm;
    padding: 0.9mm 0;
    break-inside: avoid;
  }
  .cv-films .c-dir,
  .cv-films .cvf-note { grid-column: 2; }
  .c-title { font-size: 9.5pt; }
  .c-dir { font-size: 8pt; }
  .cvf-format { display: none; }
  .c-role { font-size: 6pt; }
  .cvf-year { font-size: 7.5pt; }
  .cvf-note { margin-top: 0.3mm; font-size: 6pt; }
}
