/* lburdier.fr/3d : le portfolio exposé dans un bureau 3D.
   Reprend la grammaire de lburdier.fr v3 : fond noir, Instrument Sans, minuscules,
   coins carrés, contours fins, élément actif entouré d'un second contour décalé. */

:root {
  --bg: #0a0a0a;
  --ink: #f4f4f2;
  --ink-2: rgba(244, 244, 242, 0.6);
  --ink-3: rgba(244, 244, 242, 0.34);
  --line: rgba(244, 244, 242, 0.14);
  --edge: rgba(244, 244, 242, 0.3);
  --light: #f4f4f2;
  --on-light: #0a0a0a;
  --gut: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Instrument Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
img, video { -webkit-user-drag: none; }
body {
  margin: 0; overflow: hidden; background: #000; color: var(--ink);
  font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.defs { position: absolute; width: 0; height: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0;
  font: 500 14px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.3s;
}
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--light { background: var(--light); color: var(--on-light); }
.btn--light:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light:disabled { opacity: 0.22; pointer-events: none; }
.btn--ghost { background: rgba(10, 10, 10, 0.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { height: 36px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 15px; }
[data-back]:hover .ico { transform: translateX(-3px); }

/* ------------------------------------------------------------------ scène */
.stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #000; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.world > * { position: absolute; inset: 0; }
.still { width: 100%; height: 100%; object-fit: cover; }
.still--next { opacity: 0; transition: opacity 0.45s linear; }
.still--next.is-on { opacity: 1; }
.world > .loopv { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s linear; pointer-events: none; }
.world > .loopv.is-on { opacity: 1; }
.clips video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.22s linear; }
/* fondu d'entrée court : certains clips démarrent caméra déjà en mouvement (flou de bougé sur leur 1re image) */
.clips video.is-on { opacity: 1; transition: opacity 0.12s linear; }

/* écrans en direct : le site projeté en perspective, découpé à la forme exacte de la dalle */
.screens, .hots, .leds { pointer-events: none; }
.scr {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #040506;
  visibility: hidden; pointer-events: none; outline: 1px solid transparent; backface-visibility: hidden;
}
/* allumé / éteint d'un coup, en même temps que ses reflets (un fondu laissait voir le rendu en double dessous) */
.scr.is-live { visibility: visible; pointer-events: auto; }
.scr--util, .scr--util.is-live { pointer-events: none; }
.scr--util iframe { pointer-events: none; }
.scr.is-flat { clip-path: none !important; box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7); }
.scr-in { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; }
/* CRT : image du site sur la dalle, coins légèrement arrondis comme un tube ; le verre autour reste sombre */
.scr-in.is-box { border-radius: 16px; }
.scr iframe { display: block; width: 100%; height: 100%; border: 0; background: #0a0a0a; }
/* tube bombé : vignette + bords qui s'assombrissent (sans filtre de déformation, trop coûteux en direct) */
.scr .vg { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse farthest-corner at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 0 26px 3px rgba(0, 0, 0, 0.42), inset 0 0 3px 1px rgba(0, 0, 0, 0.5); }
.scr.is-flat .vg { opacity: 0; }
.scr .scan {
  position: absolute; left: 0; right: 0; top: -22%; height: 22%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(200, 225, 240, 0.10) 60%, rgba(235, 245, 255, 0.55) 97%, rgba(255, 255, 255, 0.9) 99%, transparent);
}
/* allumage : la dalle se rafraîchit de haut en bas, une ligne claire révèle le site */
.scr.is-wake .scan { animation: scanDown 0.8s cubic-bezier(0.45, 0, 0.25, 1) both; }
.scr.is-wake iframe { animation: reveal 0.8s cubic-bezier(0.45, 0, 0.25, 1) both; }
@keyframes scanDown { 0% { top: -22%; opacity: 1; } 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* extinction : la dalle s'écrase en une ligne lumineuse, comme un vieux moniteur */
.scr.is-off .scr-in { animation: powerOff 0.34s cubic-bezier(0.7, 0, 0.9, 0.5) both; }
@keyframes powerOff {
  0% { transform: none; filter: none; }
  45% { transform: scale(1, 0.012); filter: brightness(3.5); }
  100% { transform: scale(0, 0.012); filter: brightness(4); }
}

/* reflets réels de la pièce sur la vitre (passe Blender, dalle éteinte), ajoutés par-dessus le site */
.world > .refl { inset: auto; pointer-events: none; mix-blend-mode: screen; visibility: hidden; }
.world > .refl.is-on { visibility: visible; }
.refl img { display: block; width: 100%; height: 100%; }

/* LEDs : on alterne localement entre le rendu « allumé » (fond) et le rendu « éteint » (pastille) */
.ledb {
  position: absolute; border-radius: 50%; background-repeat: no-repeat; opacity: 0;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 40%, transparent 100%);
  animation: var(--anim, none) var(--dur, 3s) var(--delay, 0s) infinite;
}
body.is-busy .leds { opacity: 0; }
@keyframes ledSlow { 0%, 68% { opacity: 0; } 72%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ledBeat { 0%, 70% { opacity: 0; } 72%, 76% { opacity: 1; } 78%, 82% { opacity: 0; } 84%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes ledDisk {
  0%, 9% { opacity: 0; } 10%, 13% { opacity: 1; } 14%, 31% { opacity: 0; } 32%, 34% { opacity: 1; } 35%, 37% { opacity: 0; }
  38%, 41% { opacity: 1; } 42%, 66% { opacity: 0; } 67%, 70% { opacity: 1; } 71%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ledb { animation: none; } }

/* zones cliquables en vue d'ensemble */
.hot {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0;
  pointer-events: auto; cursor: pointer; background: transparent; border: 0; padding: 0;
  transition: background 0.25s, box-shadow 0.25s;
}
.hot:hover, .hot:focus-visible { background: rgba(244, 244, 242, 0.05); box-shadow: inset 0 0 0 1.5px rgba(244, 244, 242, 0.9); outline: none; }
.hots.is-off .hot { pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  background: var(--light); color: var(--on-light); font: 500 13px/1 var(--sans);
  transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 0.2s, transform 0.25s var(--ease);
}
.tag small { color: rgba(10, 10, 10, 0.55); font-size: 11px; }
.tag.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }

.fx-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55)); transition: opacity 0.6s; }
.fx-vignette::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 75% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.6)); opacity: 0; transition: opacity 0.5s; }
body.is-busy .fx-vignette::after { opacity: 1; }
.fx-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: var(--grain); background-size: 180px 180px; animation: grain 0.9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* vol de caméra entre deux plans fixes (den.js : fly) : calque au-dessus de la scène, sous les effets d'image */
.cam { position: absolute; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; background: #000; }
.cam.is-on { visibility: visible; }
.cam img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform, opacity; }
/* néon qui grésille : la pièce s'assombrit un instant (voile sous les écrans vivants, piloté par den.js) */
.world > .flick { background: #000; opacity: 0; pointer-events: none; }
.world > .dim { background: rgba(0, 0, 0, 0.74); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.world > .dim.is-on { opacity: 1; pointer-events: auto; }
body.is-flat .fx-vignette { opacity: 0; }
/* grain (mélange « overlay » plein écran, animé) seulement sur la vue d'ensemble : sur un écran il forçait
   à recomposer toute la page à chaque image de la vidéo du site */
body.is-flat .fx-grain, body.is-station .fx-grain { display: none; }

/* ------------------------------------------------------------------ en-tête */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 20; pointer-events: none;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 12px;
  padding: 22px var(--gut); color: rgba(255, 255, 255, 0.84);
  font-size: clamp(14px, 1.02vw, 19px); line-height: 1.2; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hdr::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22) 55%, transparent);
}
.hdr > * { pointer-events: auto; justify-self: start; white-space: nowrap; }
.hdr a, .hdr button { transition: color 0.2s; }
.hdr a:hover, .hdr button:hover { color: #fff; }
.hdr button { background: none; border: 0; padding: 0; text-align: left; }
/* volontairement minimal : le site affiché sur les écrans a déjà son propre en-tête (nom, métier, heure, réglages) */
.hdr-where { grid-area: 1 / 1 / 2 / 6; display: inline-flex; gap: 0.6em; }
.hdr-place { color: var(--ink); }
.hdr-sep { color: var(--ink-3); }
.hdr-where [data-where] { color: var(--ink-2); }

/* ------------------------------------------------------------------ barre du bas
   reprend les vignettes du diaporama de lburdier.fr : 16:9, image à demi-opacité,
   la vignette active est entourée d'un contour blanc décalé ; boutons carrés « icon-btn » du site */
.bar {
  position: fixed; left: var(--gut); right: var(--gut); bottom: 20px; z-index: 20;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px;
  pointer-events: none; transition: opacity 0.35s, transform 0.45s var(--ease);
}
.bar > * { pointer-events: auto; }
/* se cache seule : réapparaît quand la souris approche du bas (même au-dessus d'un écran) */
body.bar-hidden .bar { opacity: 0; transform: translateY(18px); }
body.bar-hidden .bar > * { pointer-events: none; }
/* poignée discrète, centrée tout en bas, pour rappeler la barre sans gêner le site affiché sur l'écran */
.bar-hot {
  position: fixed; left: 50%; bottom: 0; z-index: 21; width: 140px; height: 22px; padding: 0; border: 0;
  transform: translateX(-50%); background: none; display: none; cursor: pointer;
}
.bar-hot i { position: absolute; left: 50%; bottom: 8px; width: 48px; height: 4px; margin-left: -24px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); transition: width 0.25s var(--ease), margin 0.25s var(--ease), background 0.2s; }
.bar-hot:hover i, .bar-hot:focus-visible i { width: 72px; margin-left: -36px; background: #fff; }
body.bar-hidden .bar-hot { display: block; animation: rise 0.4s var(--ease) both; }
.bar-info { display: grid; gap: 6px; justify-items: start; align-self: end; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.bar-count { font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.bar-label { font: 600 clamp(20px, 1.9vw, 34px)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.bar-label::first-letter { text-transform: uppercase; }
.thumbs { display: flex; gap: 12px; padding: 6px 4px; justify-self: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: none; width: clamp(60px, 5vw, 104px); aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: rgba(10, 10, 10, 0.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  outline: 1px solid transparent; outline-offset: 3px; transition: outline-color 0.3s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.3s; }
.thumb:hover img, .thumb:focus-visible img { opacity: 0.85; }
.thumb:focus-visible { outline-color: var(--ink-2); }
.thumb.is-on { outline-color: #fff; }
.thumb.is-on img { opacity: 1; }
.thumb .tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px); white-space: nowrap;
  padding: 6px 10px; background: var(--light); color: var(--on-light); font: 500 12px/1 var(--sans);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease);
}
.thumb:hover .tip, .thumb:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.tools-station { display: flex; gap: 8px; animation: rise 0.5s var(--ease) both; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  background: rgba(10, 10, 10, 0.28); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--light); color: var(--on-light); }
.icon-btn--plain { width: 36px; height: 36px; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: rgba(255, 255, 255, 0.75); }
.icon-btn--plain:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
[data-sound] .mute { display: none; }
[data-sound][aria-pressed="false"] .wave { display: none; }
[data-sound][aria-pressed="false"] .mute { display: inline; }
[data-sound][data-level="low"] .wave-2 { display: none; }

/* volume : jauge verticale qui sort au-dessus du bouton son, au survol (ou au clavier) */
.vol { position: relative; display: grid; }
.vol-pop {
  position: absolute; left: 50%; bottom: calc(100% + 10px); display: grid; justify-items: center; gap: 12px;
  width: 44px; padding: 12px 0 14px; transform: translate(-50%, 6px);
  background: rgba(10, 10, 10, 0.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--edge);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.vol-pop::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 12px; }   /* pont : la souris descend vers le bouton sans fermer la jauge */
.vol:has(:focus-visible) .vol-pop, .vol.is-drag .vol-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity 0.2s, transform 0.3s var(--ease); }
@media (hover: hover) {
  .vol:hover .vol-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity 0.2s, transform 0.3s var(--ease); }
}
.vol-val { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vol.is-mute .vol-val { color: var(--ink-3); }
.vol-track { position: relative; width: 24px; height: 116px; cursor: ns-resize; touch-action: none; outline: none; }
/* rail fin + repères tous les quarts, comme les traits du site */
.vol-track::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--ink-3);
}
.vol-track::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 7px; margin-left: -3.5px; pointer-events: none;
  background: linear-gradient(var(--ink-3), var(--ink-3)) 0 25% / 100% 1px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 0 50% / 100% 1px no-repeat,
              linear-gradient(var(--ink-3), var(--ink-3)) 0 75% / 100% 1px no-repeat;
}
.vol-fill { position: absolute; left: 50%; bottom: 0; width: 2px; margin-left: -1px; height: calc(var(--v, 0.9) * 100%); background: var(--ink); }
.vol-knob {
  position: absolute; left: 50%; bottom: calc(var(--v, 0.9) * 100%); width: 14px; height: 2px; margin: 0 0 -1px -7px;
  background: #fff; box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.55); transition: width 0.25s var(--ease), margin 0.25s var(--ease);
}
.vol-track:hover .vol-knob, .vol.is-drag .vol-knob, .vol-track:focus-visible .vol-knob { width: 22px; margin-left: -11px; }
.vol-track:focus-visible::before { background: var(--ink-2); }
.vol.is-mute .vol-fill, .vol.is-mute .vol-knob { opacity: 0.35; }
[data-theme-btn][aria-pressed="true"] circle { fill: currentColor; }
[data-theme-btn][aria-pressed="false"] .rays { opacity: 0.35; }
[data-flat][aria-pressed="true"] { background: var(--light); color: var(--on-light); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hint {
  position: fixed; left: var(--gut); bottom: 36px; z-index: 20; margin: 0;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity 0.4s;
}
body.is-busy .hint, body.is-station .hint { opacity: 0; }
body.is-busy .bar { opacity: 0.5; pointer-events: none; }
body.is-busy .hdr { opacity: 0.6; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ accueil : vitrine de projets */
.vit {
  position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); overflow: hidden;
}
.vit-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 22px var(--gut); font-size: clamp(14px, 1.02vw, 19px); }
.vit-name { color: var(--ink); }
.vit-meta { color: var(--ink-3); }
.vit-right { justify-self: end; }
.vit-rail { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 0; }
.vit-track { display: flex; gap: 14px; padding: 0 7px; animation: rail 90s linear infinite; will-change: transform; }
.vit-rail:hover .vit-track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(-50%); } }
.vit-card {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0;
  background: none; text-align: left; cursor: pointer;
  opacity: 0; animation: cardIn 0.9s var(--ease) both; animation-delay: calc(0.08s * var(--i));
}
.vit-card .ph { position: relative; display: block; height: clamp(220px, 50vh, 560px); aspect-ratio: var(--ar, 4 / 5); overflow: hidden; background: #111; transition: box-shadow 0.25s; }
.vit-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.86); transform: scale(1.02); transition: filter 0.5s, transform 0.9s var(--ease); }
.vit-card:hover img, .vit-card:focus-visible img { filter: none; transform: scale(1.06); }
.vit-card:hover .ph, .vit-card:focus-visible .ph { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--bg), 0 0 0 5px var(--edge); }
.vit-card:focus-visible { outline: none; }
.vit-card .cap { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.vit-card .cap b { font-weight: 500; color: var(--ink); }
.vit-card .cap i { font-style: normal; font: 500 10px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.06em; }
.vit-card .go {
  position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; background: var(--light); color: var(--on-light);
  font: 500 12px/1 var(--sans); opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.3s var(--ease);
}
.vit-card:hover .go, .vit-card:focus-visible .go { opacity: 1; transform: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.vit-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px;
  padding: 0 var(--gut) 26px;
}
.vit-lede { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 15px; line-height: 1.5; animation: fadeUp 0.9s 0.5s var(--ease) both; }
.vit-actions { display: flex; align-items: center; gap: 20px; animation: fadeUp 0.9s 0.65s var(--ease) both; }
.vit-alt { color: var(--ink-3); font-size: 13px; transition: color 0.2s; }
.vit-alt:hover { color: var(--ink); }
.vit-load {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.vit-bar { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.vit-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.vit-count { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.vit.is-ready .vit-load { opacity: 0.45; }
/* sortie : les cartes montent et s'effacent, le rideau se lève sur le bureau */
.vit.is-out { pointer-events: none; animation: veilOut 1s 0.45s var(--ease-io) forwards; }
.vit.is-out .vit-card { animation: cardOut 0.6s var(--ease-io) both; animation-delay: calc(0.03s * var(--k, 0)); }
.vit.is-out .vit-top, .vit.is-out .vit-foot { animation: fade 0.35s both; }
@keyframes cardOut { to { opacity: 0; transform: translateY(-40px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 0; } }
@keyframes veilOut { to { clip-path: inset(0 0 100% 0); } }
body.is-loading .hdr, body.is-loading .bar, body.is-loading .hint { opacity: 0; }
.hdr, .bar { transition: opacity 0.6s 0.2s; }

.nojs { position: fixed; inset: auto 0 40px; z-index: 50; text-align: center; color: var(--ink-2); }
.nojs a { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 1180px) { .hint { display: none; } .bar-info { display: none; } }
@media (max-width: 900px) {
  .hdr { font-size: 14px; padding-top: 16px; }
  .bar { grid-template-columns: 1fr auto; bottom: 12px; gap: 10px; }
  .bar-info { display: none; }
  .thumbs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; justify-self: stretch; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: none; width: 76px; }
  .tools { grid-column: 1 / -1; grid-row: 1; }
  .vit-top { grid-template-columns: 1fr auto; }
  .vit-top .vit-meta:not(.vit-right) { display: none; }
  .vit-card .ph { height: 42vh; }
  .vit-foot { grid-template-columns: 1fr; }
  .vit-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-grain, .vit-track { animation: none; }
}
