/* ─────────────────────────────────────────────────────────────────────────────
   VYGNIR — Portfolio · redesign "hoko"
   Fusion : l'identité Vygnir (showreel vidéo en fond, rouge, sombre, FR/EN)
   + le langage visuel de hoko.design (typo XXL condensée et serrée, labels
   en capitales avec astérisques, séparateurs //, hover "roll", liste index,
   transitions par rideau, footer à gros logo).
   Typo : Archivo (axe wdth → condensé pour les titres) + League Gothic
───────────────────────────────────────────────────────────────────────────── */

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

/* DA "signal" façon Cyberpunk 2077 : base noire, texte clair, rouge néon en
   accent, cyan seulement dans le glitch (décalage rouge/cyan d'écran qui bug).
   Version noir et blanc gardée sur la branche backup-noir-blanc. */
:root {
  color-scheme: dark;
  --bg:        #0A0A0C;
  --bg-2:      #131317;
  --fg:        #ECECEC;
  --muted:     #8C8C94;
  --line:      rgba(236, 236, 236, 0.14);
  --line-2:    rgba(236, 236, 236, 0.32);
  --violet:    #FFFFFF; /* surbrillance (nom historique) */
  --red:       #FF003C; /* accent : rouge néon */
  --red-deep:  #3A0010; /* rouge très sombre : contrastes de survol */
  --cyan:      #00E5FF; /* uniquement pour le glitch */
  --f-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --f-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-label:   'League Gothic', 'Arial Narrow', Impact, sans-serif;
  --f-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --gutter:    clamp(16px, 3.2vw, 48px);
  --nav-h:     72px;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.76, 0, 0.24, 1);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  font-weight: 700; transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ── Labels façon hoko : capitales, petit corps, astérisque ── */
.label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.star { color: var(--red); }

/* ─────────────────────────────────────────────────────────────────────────────
   FOND : showreel + voile + grain
───────────────────────────────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
  filter: saturate(.9) contrast(1.08);
  transition: opacity .8s var(--ease-out);
}
.bg-img { opacity: 0; }
/* Accueil : la vidéo reste bien visible, voile léger seulement en haut et en bas. */
.bg-overlay {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(70% 45% at 85% 105%, rgba(255, 0, 60, .22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10,10,12,.45) 0%, rgba(10,10,12,0) 20%, rgba(10,10,12,0) 60%, rgba(10,10,12,.82) 100%);
  transition: background .8s var(--ease-out);
}
/* Autres pages : la vidéo reste présente en ambiance, voile sombre + scanlines. */
body:not([data-page="hero"]) .bg-video { opacity: .45 !important; }
body:not([data-page="hero"]) .bg-overlay {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px),
    radial-gradient(60% 40% at 100% 0%, rgba(255, 0, 60, .14) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.8) 70%, rgba(10,10,12,.95) 100%);
}

/* ── Repères : lignes fines de cadrage + croix aux coins + timecode ── */
.hud { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hud::before, .hud::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.hud::before { left: calc(var(--gutter) - 12px); }
.hud::after { right: calc(var(--gutter) - 12px); }
.hud-cross { position: absolute; width: 13px; height: 13px; }
.hud-cross::before, .hud-cross::after { content: ''; position: absolute; background: var(--red); opacity: .8; }
.hud-cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.hud-cross::after { top: 6px; left: 0; height: 1px; width: 13px; }
.hud-cross.tl { top: calc(var(--nav-h) - 6px); left: calc(var(--gutter) - 18px); }
.hud-cross.tr { top: calc(var(--nav-h) - 6px); right: calc(var(--gutter) - 18px); }
.hud-cross.bl { bottom: 18px; left: calc(var(--gutter) - 18px); }
.hud-cross.br { bottom: 18px; right: calc(var(--gutter) - 18px); }
.hud-tc {
  position: absolute; bottom: 14px; right: calc(var(--gutter) + 6px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted);
}
.hud-tc .rec { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 8px var(--red); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
@media (max-width: 560px) { .hud::before, .hud::after, .hud-cross { display: none; } }

/* ── Survol des vignettes : équerres rouges + balayage lumineux ── */
.card-media::after {
  content: ''; position: absolute; inset: 8px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--red), var(--red)) top left / 14px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) top left / 2px 14px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 2px 14px no-repeat;
  opacity: 0; transform: scale(1.06); transition: opacity .25s, transform .4s var(--ease-out);
}
.card-media::before {
  content: ''; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 0, 60, .18) 50%, rgba(255,255,255,.22) 56%, transparent);
  opacity: 0;
}
.project-card:hover .card-media::after, .project-card:focus-visible .card-media::after { opacity: 1; transform: none; }
.project-card:hover .card-media::before { opacity: 1; animation: sweep .9s var(--ease-out) 1; }
@keyframes sweep { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .project-card:hover .card-media::before { animation: none; opacity: 0; } }

/* ── Glitch : décalage de tranches + dédoublement rouge/cyan, bref et rare ── */
.is-glitch { animation: glitch .32s steps(2) 1; }
@keyframes glitch {
  0%   { transform: none; text-shadow: none; clip-path: none; }
  20%  { transform: translateX(-4px) skewX(-8deg); text-shadow: 3px 0 var(--red), -3px 0 var(--cyan); clip-path: inset(10% 0 55% 0); }
  40%  { transform: translateX(5px); text-shadow: -4px 0 var(--red), 4px 0 var(--cyan); clip-path: inset(48% 0 12% 0); }
  60%  { transform: translateX(-2px) skewX(6deg); text-shadow: 2px 0 var(--cyan), -2px 0 var(--red); clip-path: inset(0 0 70% 0); }
  80%  { transform: translateX(2px); text-shadow: -2px 0 var(--red); clip-path: none; }
  100% { transform: none; text-shadow: none; clip-path: none; }
}
@media (prefers-reduced-motion: reduce) { .is-glitch { animation: none; } .hud-tc .rec { animation: none; } }

/* ─────────────────────────────────────────────────────────────────────────────
   RIDEAU DE TRANSITION
───────────────────────────────────────────────────────────────────────────── */
.curtain {
  /* Simple fondu au noir entre deux rubriques */
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  /* Dégradé sombre derrière le menu : il reste lisible même sur une vidéo claire */
  background: linear-gradient(to bottom, rgba(5,5,7,.75), rgba(5,5,7,.35) 70%, transparent);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.nav-logo-name {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: 24px; letter-spacing: -0.02em;
}
.nav-logo .star { color: var(--red); }
.nav-logo-sub { font-size: 9px; font-weight: 600; letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.nav-link, .nav-lang {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav-link .roll-a::after, .nav-link .roll-b::after { content: '_'; color: var(--red); }
.nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}
.nav-lang {
  border: 1px solid currentColor; border-radius: 99px; padding: 5px 11px;
  font-size: 11px; transition: background .25s, color .25s;
}
.nav-lang:hover { background: var(--fg); color: var(--bg); }

/* ── Hover "roll" : le label glisse vers le haut et sa copie arrive (hoko) ── */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.1; }
.roll-a, .roll-b { grid-area: 1 / 1; transition: transform .5s var(--ease-out); }
.roll-b { transform: translateY(105%); }
a:hover .roll-a, button:hover .roll-a, a:focus-visible .roll-a, button:focus-visible .roll-a { transform: translateY(-105%); }
a:hover .roll-b, button:hover .roll-b, a:focus-visible .roll-b, button:focus-visible .roll-b { transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────────────────
   PAGES
───────────────────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.page {
  display: none;
  min-height: 100vh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 72px)) var(--gutter) clamp(64px, 10vw, 128px);
}
.page.active { display: block; }

/* Titre XXL, condensé, serré — l'élément signature de hoko */
.page-title, .hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: .84;
}
.page-title { font-size: clamp(64px, 15vw, 240px); }
.page-head { margin-bottom: clamp(32px, 6vw, 72px); }
.page-head .label { margin-bottom: 16px; }
.page-intro {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 24px;
  max-width: 100%; color: var(--muted); font-size: 15px;
}

/* Lettres découpées pour l'animation d'entrée */
/* le padding haut laisse la place aux accents (À) sans casser le masque */
.split .ch-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em 0 .04em; margin: -.2em 0 -.04em; }
.split .ch {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + 120ms);
}
.split .ch.is-star { color: var(--red); }
.page.is-in .split .ch { transform: translateY(0); }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* ─────────────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────────────── */
.hero.active { display: block; padding-top: 0; padding-bottom: 0; }
/* Premier écran : la vidéo plein cadre avec le titre en bas. */
.hero-screen {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 72px));
}

/* Contexte de la rubrique : juste une phrase, sans cadre */
.work-context {
  max-width: 62ch; margin: clamp(24px, 3vw, 36px) 0 clamp(24px, 3vw, 40px);
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: var(--muted);
}

/* Titre volontairement contenu : c'est l'edit en fond qui doit occuper l'écran. */
.hero-title {
  font-size: clamp(56px, 9vw, 150px);
  margin: auto 0 0;
  margin-left: -0.04em;
  white-space: nowrap;
}
.hero-head { margin-top: auto; padding-bottom: clamp(24px, 4vw, 40px); }

.hero-bottom {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-top: 12px;
}

/* Bouton / lien d'action */
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--line-2); border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s;
}
.cta:hover, .cta:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cta-arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.cta:hover .cta-arrow { transform: translateX(4px); }
/* Bouton clair bien visible (accueil) */
.cta--light { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.cta--light:hover, .cta--light:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }


/* ─────────────────────────────────────────────────────────────────────────────
   TRAVAUX — barre d'outils
───────────────────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 calc(var(--gutter) * -1) 8px;
  padding: 10px var(--gutter);
  /* Reste collée sous la nav quand on descend dans la liste. Pas de bandeau
     visible, mais la barre (même transparente) reste au-dessus de l'aperçu
     vidéo (z-index 60) : la souris ne "traverse" plus vers les lignes de la
     liste, donc les boutons restent cliquables. */
  position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 70;
}
/* Fond sombre sur les boutons pour rester lisibles par-dessus la liste */
.toolbar .chip:not(.active) { background: rgba(10,10,12,.7); }
.toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.category-tabs, .view-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.size-control { position: relative; }
.size-btn-chevron { transition: transform .25s; }
.size-control.open .size-btn-chevron { transform: rotate(180deg); }
.size-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 200px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.size-option {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--muted);
}
.size-option:hover, .size-option:focus-visible { background: rgba(255,255,255,.06); color: var(--fg); }
.size-option[aria-checked="true"] { color: var(--fg); }
.size-option[aria-checked="true"]::before { content: '_ '; color: var(--red); }

/* ─────────────────────────────────────────────────────────────────────────────
   TRAVAUX — vue INDEX (liste éditoriale)
───────────────────────────────────────────────────────────────────────────── */
.index-btn {
  display: grid;
  grid-template-columns: 3.2em 1fr auto auto;
  align-items: baseline; gap: clamp(12px, 3vw, 40px);
  width: 100%; text-align: left;
  padding: clamp(14px, 2vw, 22px) 0;
  position: relative; isolation: isolate;
  transition: color .3s, padding .5s var(--ease-out);
}
.index-btn::before {
  content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--fg); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-out); z-index: -1;
}
.index-num { font-family: var(--f-label); font-size: 20px; color: var(--muted); transition: color .3s; }
.index-title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(30px, 5.4vw, 84px); line-height: .9; letter-spacing: -0.025em;
  text-transform: uppercase;
  transition: transform .5s var(--ease-out);
}
.index-tags { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); transition: color .3s; }
.index-year { font-family: var(--f-label); font-size: 20px; transition: color .3s; }

@media (hover: hover) {
  .index-btn:hover, .index-btn:focus-visible { color: var(--bg); }
  .index-btn:hover::before, .index-btn:focus-visible::before { transform: scaleY(1); }
  .index-btn:hover .index-num, .index-btn:hover .index-tags,
  .index-btn:focus-visible .index-num, .index-btn:focus-visible .index-tags { color: var(--red-deep); }
  .index-btn:hover .index-title { transform: translateX(14px); }
}

/* Aperçu flottant qui suit le curseur */
.preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: clamp(220px, 24vw, 380px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 4px;
  pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: #000;
}
.preview.show { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.preview video, .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview img { z-index: 0; }
.preview video { z-index: 1; }

/* Message vide (Commissions) */
.grid-empty {
  padding: clamp(48px, 10vw, 120px) 0; border-bottom: 1px solid var(--line);
}
.grid-empty h3 {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(32px, 6vw, 72px); text-transform: uppercase; letter-spacing: -0.02em; line-height: .9;
}
.grid-empty p { color: var(--muted); margin-top: 12px; max-width: 42ch; }

/* ─────────────────────────────────────────────────────────────────────────────
   TRAVAUX — vue GRILLE
───────────────────────────────────────────────────────────────────────────── */
.grid {
  display: grid; padding-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 20px;
}
.grid[data-size="small"]  { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.grid[data-size="medium"] { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid[data-size="large"]  { grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 20px; }
.grid[data-size="xl"]     { grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: 24px; }

.project-card { cursor: pointer; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111;
  border-radius: 3px;
}
.card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.1s var(--ease-out), filter .6s;
  filter: grayscale(.25);
}
.project-card:hover .card-bg, .project-card:focus-visible .card-bg { transform: scale(1.07); filter: none; }
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0 4px; border-bottom: 1px solid var(--line);
}
.card-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 80%;
  font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1.1;
}
.card-title::after { content: '_'; color: var(--red); opacity: 0; transition: opacity .3s; }
.project-card:hover .card-title::after, .project-card:focus-visible .card-title::after { opacity: 1; }
.card-year { font-family: var(--f-label); font-size: 17px; color: var(--muted); }
.grid[data-size="small"] .card-title { font-size: 14px; }

/* ─────────────────────────────────────────────────────────────────────────────
   À PROPOS
───────────────────────────────────────────────────────────────────────────── */
.about-lead {
  font-family: var(--f-display); font-weight: 500; font-stretch: 90%;
  font-size: clamp(26px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em;
}
.about-lead strong { font-weight: 900; color: var(--red); }
.about-text { color: var(--muted); font-size: 17px; max-width: 46ch; align-self: end; }


/* À propos façon hoko : un seul écran, vidéo floutée en fond, menu vertical
   à gauche et panneau de contenu à côté ; réseaux en petit tout en bas. */
body[data-page="about"] .bg-video { opacity: .85 !important; filter: blur(10px) saturate(.95); transform: scale(1.06); }
body[data-page="about"] .bg-overlay {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,.35) 55%, rgba(10,10,12,.2) 100%);
}
.about.active {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding-bottom: 72px;
}
.about-stage {
  display: grid; grid-template-columns: minmax(150px, 14vw) minmax(0, 620px);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.about-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.about-tab {
  font-family: var(--f-display); font-weight: 900; font-stretch: 90%;
  font-size: clamp(17px, 1.5vw, 22px); text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--fg); opacity: .6; padding: 2px 4px; transition: opacity .25s, color .25s;
}
.about-tab:hover, .about-tab:focus-visible { opacity: 1; }
.about-tab.is-active { opacity: 1; color: #fff; }
.about-tab.is-active::after { content: '_'; color: var(--red); }
.about-panels { min-height: 280px; display: grid; align-items: center; }
.about-panel {
  padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line);
  background: rgba(10,10,12,.55); backdrop-filter: blur(6px);
}
.about-panel .about-lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; max-width: none; }
.about-panel .about-text { margin-top: 16px; max-width: none; align-self: auto; color: var(--fg); opacity: .85; font-size: 16px; line-height: 1.6; }
.tool-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line-2);
}
.tool-list li:last-child { border-bottom: 0; }
/* Au survol : le logo de l'app glisse devant le nom, qui prend la couleur de l'app */
.tool-list li { align-items: center; transition: background .35s; }
.tool-logo {
  display: inline-flex; width: 0; height: clamp(24px, 2.4vw, 32px); margin-right: -16px; /* annule le gap tant que le logo est caché */
  color: var(--tool-c); opacity: 0; transform: scale(.4) rotate(-20deg);
  transition: width .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s, transform .45s var(--ease-out);
}
.tool-logo svg { height: 100%; width: auto; filter: drop-shadow(0 0 10px var(--tool-c)); }
.tool-name { margin-right: auto; transition: color .3s; }
.tool-list li:hover .tool-logo, .tool-list li:focus-within .tool-logo {
  width: clamp(24px, 2.4vw, 32px); margin-right: 0; opacity: 1; transform: none;
}
.tool-list li:hover .tool-name { color: var(--tool-c); }
.tool-list li:hover .tool-use { color: var(--fg); }
@media (hover: none) {
  .tool-logo { width: clamp(24px, 2.4vw, 32px); margin-right: 0; opacity: 1; transform: none; }
}
.tool-name { font-family: var(--f-display); font-weight: 900; font-stretch: 85%; font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; }
.tool-use { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.about-socials {
  position: absolute; left: 0; right: 0; bottom: 24px;
  display: flex; justify-content: center; gap: 22px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
}
.about-socials a { color: var(--red); border-bottom: 1px solid transparent; transition: border-color .2s; }
.about-socials a:hover, .about-socials a:focus-visible { border-bottom-color: var(--red); }
.about { position: relative; }
@media (max-width: 760px) {
  .about-stage { grid-template-columns: 1fr; }
  .about-menu { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────────────────────────── */
/* Une grosse ligne par réseau, sans traits : le nom à gauche, le pseudo à droite */
.contact-socials li + li { margin-top: clamp(8px, 1.5vw, 16px); }
.contact-socials a, .contact-socials button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  width: 100%; text-align: left;
}
.cs-name {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -0.02em; text-transform: uppercase;
  transition: color .3s, transform .45s var(--ease-out);
}
.cs-handle { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.contact-socials a:hover .cs-name, .contact-socials a:focus-visible .cs-name,
.contact-socials button:hover .cs-name, .contact-socials button:focus-visible .cs-name { color: var(--red); transform: translateX(12px); }
.contact-socials a:hover .cs-handle, .contact-socials button:hover .cs-handle { color: var(--fg); }
.contact-socials .is-copied .cs-handle { color: var(--red); }
/* Version compacte dans l'onglet CONTACT d'À propos */
.contact-socials--small .cs-name { font-size: clamp(26px, 2.6vw, 36px); }
.contact-socials--small li + li { margin-top: 6px; }
@media (max-width: 640px) {
  .contact-socials a, .contact-socials button { flex-direction: column; gap: 4px; }
}
.footer-cols button { display: block; padding: 2px 0; transition: color .25s; }
.footer-cols button:hover, .footer-cols button:focus-visible, .about-socials button:hover { color: var(--red); }
.about-socials button { color: var(--red); font: inherit; letter-spacing: inherit; }

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  padding: 40px var(--gutter) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 14px; }
.footer-cols .label { margin-bottom: 10px; }
.footer-cols a { display: block; padding: 2px 0; transition: color .25s; width: fit-content; }
.footer-cols a:hover, .footer-cols a:focus-visible { color: var(--red); }
.footer-mark {
  font-family: var(--f-display); font-weight: 900; font-stretch: 70%;
  font-size: 30.5vw; line-height: .78; letter-spacing: -0.045em;
  margin: 24px 0 0 -0.045em; white-space: nowrap;
  color: var(--fg); user-select: none;
  transform: translateY(8%);
}
body[data-page="hero"] .footer { display: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--gutter); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.94); backdrop-filter: blur(8px); }
.modal-inner {
  position: relative; width: min(1200px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  animation: modalIn .6s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.modal-bar { display: flex; justify-content: space-between; align-items: center; }
.modal-close { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 8px 0; }
.modal-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh;
  background: #000; border-radius: 3px; overflow: hidden;
}
.modal-media video, .modal-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.modal-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.modal-spinner { width: 28px; height: 28px; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; letter-spacing: -0.025em; line-height: .9;
}
.modal-title::after { content: '_'; color: var(--red); }
.modal-desc { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.modal-desc:empty { display: none; }
.modal-nav-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.modal-year { margin-right: 8px; }
.modal-nav {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  font-size: 16px; transition: background .25s, color .25s;
}
.modal-nav:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.modal-nav:disabled { opacity: .3; cursor: default; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .index-btn { grid-template-columns: 2.4em 1fr auto; }
  .index-tags { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 96px; }
  .nav { flex-wrap: wrap; align-content: center; row-gap: 10px; column-gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; }
  .nav-link--home { display: none; }
  .nav-link, .nav-lang { font-size: 11px; }
  .hero-head { padding-bottom: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  /* Mobile : barre Travaux sur une seule ligne, pas de réglage de taille */
  /* …en verre avec des boutons carrés (sur ordi : bandeau sombre et boutons ronds) */
  .toolbar { flex-wrap: nowrap; gap: 6px; background: rgba(8,8,10,.22); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
  .toolbar .chip { padding: 7px 9px; font-size: 10px; letter-spacing: .06em; border-color: var(--line-2); border-radius: 2px; }
  .toolbar .chip:not(.active) { background: rgba(10,10,12,.45); }
  .category-tabs, .view-toggle, .toolbar-right { flex-wrap: nowrap; gap: 4px; }
  #size-control { display: none !important; }
  .work-context { font-size: 14px; }
  /* Le timecode chevauchait les liens en bas de la page À propos */
  .hud-tc { display: none; }
  /* Logiciels : nom + logo sur une ligne, description en dessous */
  .tool-list li { flex-wrap: wrap; row-gap: 4px; }
  .tool-use { flex-basis: 100%; text-align: left; }
  .modal-info { flex-direction: column; }
  .toolbar { align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOUVEMENT RÉDUIT : tout s'affiche directement, rien ne bouge
───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
  .split .ch { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .preview { display: none; }
}
