@font-face { font-family: 'Geist Pixel'; src: url('/fonts/GeistPixel-Square.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Pixel Circle'; src: url('/fonts/GeistPixel-Circle.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #ECE8DE;
  --card: #F4F1EA;
  --paper-2: #E4DFD2;
  --ink: #17171A;
  --ink-2: #33312C;
  --muted: #4E4B44;
  --muted-on-ink: #B9B4A7;
  --accent: #E8505F;
  --accent-text: #B02E40;
  --line: rgba(23, 23, 26, 0.22);
  --grid: rgba(23, 23, 26, 0.06);
  --display: 'Geist Pixel', ui-monospace, monospace;
  --title: 'Geist Pixel', ui-monospace, monospace;
  --body: Verdana, Geneva, 'DejaVu Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1376px;
  --gutter: 32px;
}
@media (max-width: 700px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
img, video, canvas, iframe { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--card); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }
.blink { animation: blink 1.1s steps(1) infinite; color: var(--accent-text); }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* En-tête */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 24px; border: 1px solid var(--ink); background: var(--paper); line-height: 0; }
.brand img { display: block; width: 40px; height: 40px; image-rendering: pixelated; }
.brand:hover, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav { margin-left: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--paper); padding: 6px 0 6px 12px; }
.nav a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang { display: inline-flex; border: 1px solid var(--ink); }
.lang a { min-width: 40px; justify-content: center; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--card); }

@media (max-width: 560px) {
  .nav { gap: 4px 14px; font-size: 12px; padding-left: 8px; }
  .nav .lang a { min-width: 34px; }
  .brand img { width: 32px; height: 32px; }
  .site-header .wrap { gap: 8px; }
}
@media (max-width: 560px) {
  /* Logo sur une ligne, navigation sur la suivante : même hauteur en FR et en EN. */
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .site-header .nav { flex-basis: 100%; margin-left: 0; justify-content: space-between; padding-left: 0; background: transparent; }
  .poster .site-header .nav { background: var(--paper); padding-left: 6px; }
}
@media (max-width: 420px) {
  .nav { gap: 4px 10px; letter-spacing: 0.04em; }
  .nav .lang a { min-width: 30px; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; font: 500 15px/1 var(--body); cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--card); }
.btn-accent { background: var(--accent); font-weight: 600; }
.btn-accent:hover { background: var(--ink); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; }
.btn-row .btn + .btn { border-left: 0; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* Titres de section */
.section { padding-top: 96px; padding-bottom: 112px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.section-head.flush { margin-bottom: 0; }
.h-display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.h-display .idx { font-family: var(--mono); font-weight: 400; font-size: 14px; vertical-align: super; margin-right: 12px; color: var(--accent-text); }
.h-title { margin: 0; font-family: var(--title); font-weight: 500; line-height: 1.05; }

/* Cadre « fiche technique » */
.frame { margin: 0; border: 1px solid var(--ink); background: var(--card); }
.frame-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.frame-bar.bottom { border-bottom: 0; border-top: 1px solid var(--ink); text-transform: none; letter-spacing: 0; color: var(--muted); }

/* Hero : affiche coupée en deux */
.poster { position: relative; height: max(760px, min(100svh, 980px)); border-bottom: 1px solid var(--ink); overflow: hidden; background: var(--paper); }
.poster bee-hero { position: absolute; inset: 0; z-index: 0; }
.poster .site-header { position: relative; z-index: 3; pointer-events: none; }
.poster .site-header .nav, .poster .site-header .brand { pointer-events: auto; }
.poster-body { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; grid-template-columns: minmax(0, 36%) 1fr; grid-template-rows: auto 1fr auto auto; row-gap: 24px; padding: 104px var(--gutter) 28px; max-width: var(--wrap); margin: 0 auto; }
.poster-body a, .poster-body button { pointer-events: auto; }
.poster-tags { grid-column: 1; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.poster-title { grid-column: 1; display: flex; flex-direction: column; gap: 22px; align-self: start; padding-top: 24px; }
.tag { align-self: flex-start; margin: 0; padding: 6px 10px; border: 1px solid var(--ink); background: var(--paper); }
.poster h1 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.88; letter-spacing: -0.01em; }
.poster h1 .t1 { display: block; font-size: clamp(48px, 6.4vw, 104px); }
.poster h1 .t2 { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: min(17vh, 13vw, 176px); line-height: 0.8; color: var(--paper); white-space: nowrap; }
.poster-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.poster-foot { grid-column: 1; display: flex; flex-direction: column; gap: 20px; }
.hero-text { margin: 0; max-width: 440px; font-size: 15px; line-height: 1.65; }
.poster-badge { position: absolute; right: calc(var(--gutter) + min(17vh, 13vw, 176px) + 20px); bottom: 36px; width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--display); font-size: 40px; }
.poster-badge:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 819px) {
  .poster { height: 980px; }
  .poster-body { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; padding-top: 132px; row-gap: 16px; }
  .poster .site-header .wrap { padding-top: 14px; padding-bottom: 0; }
  .poster-title { padding-top: 0; gap: 14px; }
  .poster h1 .t1 { font-size: clamp(40px, 12vw, 72px); }
  .poster h1 .t2 { position: static; transform: none; writing-mode: horizontal-tb; display: block; font-size: clamp(40px, 12vw, 72px); line-height: 0.88; color: var(--accent-text); }
  .poster-files { flex-direction: row; gap: 14px; }
  .poster-foot { grid-row: 4; }
  .poster-foot .btn-accent { background: var(--ink); color: var(--paper); }
  .poster-tags.bottom { grid-row: 5; }
  .poster-badge { right: var(--gutter); bottom: auto; top: 50%; width: 72px; height: 72px; font-size: 30px; }
}

/* Bandeau défilant */
.ticker { overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.ticker-track { display: inline-flex; gap: 48px; padding: 18px 0; font-family: var(--display); font-weight: 800; font-size: 34px; animation: ticker 28s linear infinite; }
.ticker-track b { color: var(--accent); font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Grille de projets */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); border-left: 1px solid var(--ink); }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 32px; background: var(--card); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.project-card .meta { display: flex; gap: 12px; margin: 0; }
.project-card h3 { font-size: 40px; }
.project-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.project-card > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.project-card voxel-scene { width: 220px; height: 220px; }
@media (max-width: 600px) { .project-card { grid-template-columns: 1fr; } .project-card voxel-scene { width: 100%; height: auto; aspect-ratio: 1; } }

/* Cartes d'articles */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.post-card dither-field { aspect-ratio: 16 / 9; border: 1px solid var(--ink); background: var(--card); }
.post-card img.cover { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); }
.post-card h3 { font-size: 28px; line-height: 1.1; }
.post-card p { margin: 0; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink); }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--accent); }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: end; padding-top: 80px; padding-bottom: 40px; }
.footer-top h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 88px); line-height: 0.9; }
.footer-top h2 em { font-style: normal; color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 16px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 32px; font-family: var(--mono); font-size: 12px; color: var(--muted-on-ink); border-top: 1px solid rgba(236, 232, 222, 0.2); }

/* En-tête de page interne */
.page-head { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 96px); line-height: 0.95; }
.crumbs { margin: 0 0 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Filtres */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; text-decoration: none; }
.chip[aria-current="true"] { background: var(--ink); color: var(--card); }

/* Liste du journal */
.feature { display: block; position: relative; text-decoration: none; border: 1px solid var(--ink); background: var(--card); margin-bottom: 64px; }
.feature dither-field, .feature img { display: block; width: 100%; aspect-ratio: 8 / 3; object-fit: cover; }
.feature-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; pointer-events: none; }
.feature-text > * { background: var(--paper); padding: 4px 12px; }
.feature-text .h-title { font-size: clamp(32px, 5vw, 64px); padding: 6px 18px; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; text-decoration: none; }
.post-list dither-field, .post-list img { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--line); background: var(--card); }
.post-list .h-title { font-size: 30px; }
@media (max-width: 600px) { .post-list a { grid-template-columns: 80px minmax(0, 1fr); } .post-list dither-field, .post-list img { width: 80px; height: 56px; } .post-list .arrow { display: none; } }

/* Article */
.banner { position: relative; border: 1px solid var(--ink); background: var(--card); }
.banner dither-field, .banner img { display: block; width: 100%; aspect-ratio: 32 / 11; object-fit: cover; }
.banner .feature-text h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5.6vw, 80px); line-height: 1; padding: 6px 20px; }
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 112px; }
.toc { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 13px; }
.toc a { min-height: 32px; display: flex; align-items: center; }
.prose { flex: 999 1 640px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 26px; font-size: 17px; line-height: 1.7; color: #26251F; }
.prose > p:first-child { font-family: var(--title); font-size: 24px; line-height: 1.45; color: var(--ink); }
.prose p { margin: 0; }
.prose h2 { margin: 24px 0 0; font-family: var(--title); font-weight: 500; font-size: 36px; line-height: 1.15; color: var(--ink); }
.prose h2 .num { font-family: var(--mono); font-size: 14px; color: var(--accent-text); margin-right: 14px; vertical-align: middle; }
.prose figure { margin: 0; }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prose blockquote { margin: 8px 0; padding: 20px 24px; border: 1px solid var(--ink); border-left: 6px solid var(--accent); background: var(--paper-2); font-family: var(--title); font-size: 24px; line-height: 1.4; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 1px 5px; }
.b-code pre { margin: 0; padding: 24px; background: var(--ink); color: var(--paper-2); font-family: var(--mono); font-size: 14px; line-height: 1.7; overflow-x: auto; }
.b-code pre code { background: none; padding: 0; font-size: inherit; }
.b-image img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.b-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--ink); }
.b-video iframe, .b-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-html { min-width: 0; }
.b-html dither-field { display: block; border: 1px solid var(--ink); background: var(--card); }
.b-diorama voxel-scene { display: block; width: 100%; aspect-ratio: 4 / 3; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--ink); }
.next-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px; border: 1px solid var(--ink); background: var(--card); text-decoration: none; }
.next-link .h-title { font-size: 30px; }

/* Page projet */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; }
.tagline { margin: 0; font-family: var(--title); font-size: 28px; line-height: 1.3; color: var(--accent-text); }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { margin-bottom: 6px; }
.facts dd { margin: 0; }
.player { cursor: grab; touch-action: none; padding: 12px; }
.player voxel-scene { width: 100%; aspect-ratio: 20 / 17; }
.frames { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--ink); }
.frames-strip { flex: 1 1 260px; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; }
.frames-strip button { height: 32px; min-width: 0; padding: 0; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.frames-strip button[aria-pressed="true"] { background: var(--ink); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--accent); color: var(--ink); cursor: pointer; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.modules li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.modules .h-title { font-size: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--ink); }
.code-inline { margin: 0; padding: 24px; background: var(--ink); color: var(--paper-2); font-family: var(--mono); font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: pre; }

/* CV */
.cv-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-bottom: 40px; border-bottom: 1px solid var(--ink); margin-bottom: 80px; }
.cv-head img { display: block; width: 267px; height: 231px; image-rendering: pixelated; }
.cv-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 0.95; }
.cv-contact { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 14px; }
.md { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); border: 1px solid var(--ink); background: var(--card); }
.md-left { display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.md-lcd { background: var(--ink); color: var(--paper); padding: 16px 18px; font-family: var(--mono); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.md-lcd .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-on-ink); }
.md-lcd .num { font-size: 48px; line-height: 1; color: var(--accent); }
.md-marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(236, 232, 222, 0.25); padding-top: 10px; }
.md-marquee > div { display: inline-flex; gap: 48px; font-size: 14px; text-transform: uppercase; animation: marquee 14s linear infinite; }
.md[data-playing="false"] .md-marquee > div { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.md-stage { padding: 28px; display: flex; justify-content: center; background-image: linear-gradient(rgba(23,23,26,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23,23,26,0.08) 1px, transparent 1px); background-size: 16px 16px; }
.md-cart { position: relative; width: min(100%, 320px); aspect-ratio: 70 / 68; border: 1px solid var(--ink); background: var(--paper); }
.md-window { position: absolute; left: 12%; right: 12%; top: 7%; height: 50%; border: 1px solid var(--ink); overflow: hidden; background: var(--card); }
.md-window canvas { position: absolute; left: 50%; top: 14%; width: 130%; margin-left: -65%; height: auto; image-rendering: pixelated; }
.md-label { position: absolute; left: 6%; right: 6%; bottom: 6%; height: 28%; border: 1px solid var(--ink); background: var(--card); padding: 8px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.md-label .h-title { font-size: 22px; }
.md-tab { position: absolute; right: 2.5%; top: 61%; width: 7%; height: 5%; background: var(--accent); border: 1px solid var(--ink); }
.md-led { width: 8px; height: 8px; border: 1px solid var(--ink); background: #8D8A82; display: inline-block; }
.md[data-playing="true"] .md-led { background: var(--accent); animation: blink 1.2s steps(1) infinite; }
.md-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: auto; }
.md-controls button { min-height: 56px; border: 0; border-right: 1px solid var(--ink); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: var(--mono); font-size: 12px; }
.md-controls button:last-child { border-right: 0; }
.md-controls .play { background: var(--accent); }
.md-controls button:hover { background: var(--ink); color: var(--paper); }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li { border-bottom: 1px solid var(--ink); }
.tracks button { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; min-height: 72px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.tracks button[aria-current="true"] { background: var(--ink); color: var(--card); box-shadow: inset 6px 0 0 var(--accent); }
.tracks .h-title { font-size: 26px; }
.track-detail { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.track-detail h3 { font-size: 30px; line-height: 1.2; }
.track-detail[hidden] { display: none; }
.stats { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); align-self: flex-start; }
.stats div { padding: 12px 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--ink); }
.stats div:last-child { border-right: 0; }
.stats strong { font-family: var(--title); font-weight: 500; font-size: 34px; line-height: 1; }
.plus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plus-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.plus-list li::before { content: '+'; color: var(--accent-text); font-family: var(--mono); }
.patch { border: 1px solid var(--ink); background: var(--card); }
.patch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.patch-mod { padding: 16px 16px 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.patch-mod .head { display: flex; justify-content: space-between; padding-bottom: 8px; font-size: 11px; }
.jack { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; font-size: 14px; line-height: 1.3; }
.jack .ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.jack .ring::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.jack[aria-pressed="true"] .ring { background: var(--accent); }
.patch-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); background: var(--ink); color: var(--paper); font-family: var(--mono); }
.patch-out > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.patch-out .in { font-size: 18px; color: var(--accent); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.tools li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--card); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.degrees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.degrees li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 15px; }
.hobbies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.hobbies li { padding: 18px; background: var(--card); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.hobbies .h-title { font-size: 24px; }
@media (max-width: 520px) { .hobbies { grid-template-columns: 1fr; } }

/* Éléments animés */
bee-hero, voxel-scene, dither-field { display: block; position: relative; }
bee-hero canvas, voxel-scene canvas, dither-field canvas { display: block; width: 100%; height: 100%; }
voxel-scene canvas, dither-field canvas { image-rendering: pixelated; }
dither-field .controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding: 16px 14px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; background: var(--card); }
dither-field .controls label { display: flex; flex-direction: column; gap: 8px; }
dither-field input[type=range] { accent-color: var(--accent); width: 100%; min-height: 32px; }

.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: 48px; padding-bottom: 96px; }
.not-found h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 12vw, 180px); line-height: 0.9; }

/* Texte enrichi : listes, barré */
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.prose li::marker { color: var(--accent-text); }
.module-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.module-text ul, .module-text ol, .p-desc p { margin: 0; }
.p-desc ul, .p-desc ol { margin: 6px 0 0; padding-left: 1.2em; }

/* Bandeau d'aperçu (régie) */
.preview-strip { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px var(--gutter); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.preview-strip span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--accent); }
.preview-strip button { min-height: 32px; padding: 0 12px; border: 1px solid var(--paper); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.preview-strip button:hover { background: var(--paper); color: var(--ink); }
