/* ============================================================
   DE GERANDO — Design system
   Editorial · Minimal · Refined
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Base plus compacte pour limiter l’effet « titres énormes » */
  font-size: 87.5%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  font-size: 1rem;
}

/* Accueil : la carte mentale dépasse légèrement en horizontal (nœuds % + translate -50 %) */
html:has(body.page--home),
body.page--home {
  overflow-x: visible;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette — noir de page, crème, or (fond menu plein écran inchangé : .nav) */
  --bg: #000000;
  --bg-elev: #0e0e10;
  --bg-soft: #151518;
  --fg: #ede8df;
  --fg-soft: #b8b3a8;
  --fg-muted: #6b6760;
  --line: #2a2a2e;
  --line-soft: #1f1f22;
  --accent: #c9a961;
  --accent-soft: #8a7547;

  /* Typography */
  --font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 6rem;
  --s-9: 9rem;
  --s-10: 12rem;

  /* Layout — colonne de lecture plus étroite, mieux cadrée dans le viewport */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --max-w: min(1080px, calc(100vw - 2 * var(--gutter)));

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 700ms;
  --dur-fast: 320ms;

  /* Futuriste — accents « signal » (accueil) */
  --fx-signal: #5eccbe;
  --fx-signal-dim: rgba(94, 204, 190, 0.35);
}

/* ---------- Base typography ---------- */
.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1.display-xl,
.display-xl {
  font-size: clamp(1.2rem, 4.2vw, 2.65rem);
  font-weight: 200;
  letter-spacing: -0.04em;
}

h1,
.h1 {
  font-size: clamp(1.05rem, 2.7vw, 1.85rem);
}

h2,
.h2 {
  font-size: clamp(0.92rem, 2vw, 1.45rem);
}

h3,
.h3 {
  font-size: clamp(0.85rem, 1.55vw, 1.18rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
}

.eyebrow .accent {
  color: var(--accent);
}

p {
  font-size: clamp(0.9375rem, 0.95vw, 1rem);
  color: var(--fg-soft);
  max-width: 64ch;
}

p.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
  max-width: 32ch;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease);
  mix-blend-mode: difference;
}

.cursor.cursor--hover {
  width: 56px;
  height: 56px;
  background: var(--fg);
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

/* ---------- Accueil : preloader ---------- */
html:not(.js) .site-preloader {
  display: none !important;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.site-preloader--exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__inner {
  text-align: center;
  padding: 1.5rem;
}

.site-preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  font-weight: 300;
  color: var(--fg);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.site-preloader__dot {
  color: var(--accent);
}

.site-preloader__bar {
  display: block;
  width: min(12rem, 50vw);
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 97, 0.55) 45%,
    rgba(94, 204, 190, 0.35) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: site-preloader-shimmer 1.2s linear infinite;
}

@keyframes site-preloader-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader__bar {
    animation: none;
    opacity: 0.75;
    background-size: 100% 100%;
    background-position: 0 0;
    background-image: linear-gradient(
      90deg,
      rgba(201, 169, 97, 0.12),
      rgba(94, 204, 190, 0.2),
      rgba(201, 169, 97, 0.12)
    );
  }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  transition: transform 0.15s linear;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  transition: transform 0.5s var(--ease);
  pointer-events: auto;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--fg);
  white-space: nowrap;
}

.logo .dot {
  color: var(--accent);
  display: inline-block;
  margin: 0 0.15em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-lang-select {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 1.6rem 0.38rem 0.55rem;
  color: var(--fg);
  background: rgba(10, 10, 12, 0.35);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 2px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 0.65rem) calc(50% + 0.1rem), calc(100% - 0.42rem) calc(50% + 0.1rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.site-lang-select:focus {
  outline: 1px solid rgba(94, 204, 190, 0.45);
  outline-offset: 2px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}

.nav-toggle__lines {
  width: 28px;
  height: 10px;
  position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.nav-toggle__lines::before { top: 2px; }
.nav-toggle__lines::after { top: 7px; }

body.menu-open .nav-toggle__lines::before {
  transform: translateY(2.5px) rotate(45deg);
}
body.menu-open .nav-toggle__lines::after {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ---------- Full-screen menu (scrollable — texte compact) ---------- */
.nav {
  position: fixed;
  inset: 0;
  /* Fond du menu général : conserver la teinte d’origine (indépendant de --bg page) */
  background: #0a0a0b;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: 100dvh;
}

.nav__inner {
  min-height: min-content;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 2rem 2.5rem;
  padding: 4.75rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
}

.nav__columns {
  counter-reset: nav-counter;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.75rem;
  align-items: start;
  min-width: 0;
}

@media (max-width: 600px) {
  .nav__columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.nav__copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

body.menu-open .nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Accueil : les panneaux fixes sont au-dessus du menu (z 55 > 40) — on les retire visuellement quand le menu est ouvert */
body.menu-open #cy-voice-panel.cy-voice,
body.menu-open #cy-params-panel.cy-voice,
body.menu-open .cy-voice-reopen,
body.menu-open .cy-params-reopen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

@media (max-width: 900px) {
  .nav__inner {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 4.25rem;
    gap: 1.35rem;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 600px) {
  .nav__list + .nav__list {
    margin-top: 0.35rem;
  }
}

.nav__item {
  overflow: visible;
}

.nav__item--active .nav__link {
  color: var(--accent);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 0.62rem + 0.55vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  max-width: 100%;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
  transform: translateY(110%);
  padding: 0.18rem 0;
}

.nav__link::before {
  content: counter(nav-counter, decimal-leading-zero);
  counter-increment: nav-counter;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  align-self: start;
  margin-top: 0.55em;
  min-width: 1.35rem;
  flex-shrink: 0;
}

body.menu-open .nav__link {
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 25ms + 120ms);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link.nav__link--additive--on {
  color: rgba(94, 204, 190, 0.92);
}

.nav__link[href="#degerando-cy-additive"] {
  font-style: italic;
}

.nav__aside {
  position: sticky;
  top: 4.25rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--fg-soft);
  padding-top: 0.2rem;
}

.nav__aside h4 {
  font-family: var(--font-sans);
  font-size: 0.56rem !important;
  text-transform: uppercase;
  letter-spacing: 0.2em !important;
  color: var(--fg-muted);
  margin-bottom: 0.35rem !important;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav__aside {
    position: static;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
  }
}

.nav__aside a {
  display: inline-block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  margin-right: 0.5rem;
}

.nav__aside a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
}

.hero__title--inline {
  display: block;
  line-height: 1;
}

/* Titre de marque : une seule ligne ; défilement horizontal si l’écran est trop étroit */
.hero__brand-row {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  vertical-align: bottom;
}

.hero__brand-row::-webkit-scrollbar {
  display: none;
}

.hero__title--inline.hero__title .word {
  display: inline;
}

.hero__title--inline {
  font-size: clamp(1.05rem, 3.65vw, 2.15rem);
}

.page--home .hero__title--inline {
  font-size: clamp(1.55rem, 5.85vw, 3.35rem);
}

.hero__title .word {
  display: block;
}

.hero__title .word > span {
  display: inline-block;
  /* Always visible — animation is purely additive */
}

.hero__title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 200;
}

/* Very subtle fade — never hides content if animation fails */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__title .word > span {
    animation: heroFadeIn 1.4s var(--ease) both;
  }
  html.js .hero__title .word:nth-child(1) > span { animation-delay: 0.1s; }
  html.js .hero__title .word:nth-child(2) > span { animation-delay: 0.25s; }
  html.js .hero__title .word:nth-child(3) > span { animation-delay: 0.4s; }
}

@keyframes heroFadeIn {
  0% { opacity: 0.001; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: clamp(3rem, 8vw, 6rem);
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__tag {
  max-width: 36ch;
}

.hero__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-align: right;
}

.hero__index strong {
  color: var(--fg);
  font-weight: 400;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Titre de l’œuvre — à droite, sur la même colonne que le bloc Index du hero */
.page--home .hero__work-caption {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: min(42ch, 100%);
  margin: 0 0 2rem auto;
  padding: 0;
  box-sizing: border-box;
  text-align: right;
  pointer-events: none;
}

.page--home .hero__work-title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.65vw, 1.52rem);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 0.45rem;
  color: var(--fg);
  text-align: right;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.72),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.page--home .hero__work-title em {
  font-style: italic;
  font-weight: 200;
  color: var(--accent);
}

.page--home .hero__work-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0.35rem 0 0;
  max-width: 42ch;
  margin-left: auto;
  text-align: right;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.page--home .hero__work-desc .accent {
  color: var(--accent);
}

@media (max-width: 600px) {
  .page--home .hero__work-caption {
    margin-bottom: 1.65rem;
  }
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollHint 2s var(--ease) infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.25vw, 1.08rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.marquee__track i {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Bandeau : garder un défilement très lent si « Réduire les mouvements » (sinon il paraît « cassé ») */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: marquee 180s linear infinite;
  }
}

/* ---------- About / split sections ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.intro__label {
  position: sticky;
  top: 8rem;
}

.intro__body p + p {
  margin-top: 1.5rem;
}

.intro__sig {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.25rem;
}

/* ---------- Featured / Labyrinthe block ---------- */
.featured {
  position: relative;
  padding-top: 0;
}

.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.featured__title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.92rem, 2.35vw, 1.62rem);
  line-height: 1.08;
}

.featured__title em {
  font-style: italic;
  font-weight: 200;
  color: var(--accent);
}

/* Visuel d’accueil — Labyrinthe du temps (animation canvas) */
.featured-art {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 1;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.8vw, 2rem);
}

html.js .featured-art.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}

/* Sous-page Labyrinthe : bloc statique (hypercube · Clifford · flux figé) — pas de masquage reveal */
html.js .featured-art.featured-art--ldt-static.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}

.featured-art__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: min(72vh, 640px);
  margin: 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(42, 42, 46, 0.55);
  overflow: hidden;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(201, 169, 97, 0.05);
}

a.featured-art__frame {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

a.featured-art__frame:focus {
  outline: none;
}

a.featured-art__frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.featured-art__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  vertical-align: middle;
  cursor: crosshair;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  transform: translateZ(0);
}

.featured-art__hint {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1rem 1.25rem 1.1rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.45) 0%, transparent 85%);
}

.featured-art__hint span {
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .featured-art__canvas {
    cursor: default;
  }
  .featured-art__hint span::after {
    content: " — animation figée (accessibilité)";
  }
}

.featured__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.featured__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(201, 169, 97, 0.18),
      transparent 50%
    ),
    radial-gradient(circle at 70% 70%, rgba(201, 169, 97, 0.1), transparent 60%);
}

.featured__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, rgba(201, 169, 97, 0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(201, 169, 97, 0.04) 0 1px, transparent 1px 80px);
}

.featured__visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured__caption {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured__caption strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- Catalogue grid ---------- */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.cat-card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  transition: background 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.cat-card:hover {
  background: var(--bg-elev);
}

.cat-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.45vw, 1.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  line-height: 1.05;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}

.cat-card:hover .cat-card__title {
  color: var(--accent);
  transform: translateX(4px);
}

.cat-card__desc {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 28ch;
  line-height: 1.5;
}

.cat-card__arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

.cat-card:hover .cat-card__arrow {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

.cat-card[data-size="lg"] {
  grid-column: span 6;
  min-height: 360px;
}

.cat-card[data-size="md"] {
  grid-column: span 4;
}

.cat-card[data-size="sm"] {
  grid-column: span 3;
  min-height: 220px;
}

@media (max-width: 1024px) {
  .cat-card[data-size="lg"] { grid-column: span 12; }
  .cat-card[data-size="md"] { grid-column: span 6; }
  .cat-card[data-size="sm"] { grid-column: span 6; }
}

@media (max-width: 600px) {
  .catalogue-grid > * {
    grid-column: span 12 !important;
  }
}

/* ---------- Ch.03 Atlas — grille bento (accueil) ---------- */
.catalog-section--bento {
  position: relative;
  padding-block: clamp(2.75rem, 6.5vw, 5rem);
}

.catalog-section--bento::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background:
    radial-gradient(ellipse 55% 70% at 12% 0%, rgba(94, 204, 190, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 45% 55% at 92% 100%, rgba(201, 169, 97, 0.06) 0%, transparent 48%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.65), transparent 28%, transparent 72%, rgba(8, 8, 9, 0.55));
  pointer-events: none;
  z-index: 0;
}

.catalog-section--bento > * {
  position: relative;
  z-index: 1;
}

.catalog-section__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
  margin-bottom: 1.25rem;
}

.catalog-section__glyph {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(94, 204, 190, 0.22);
  text-shadow: 0 0 42px rgba(94, 204, 190, 0.12);
  user-select: none;
}

.catalog-section__title {
  letter-spacing: -0.03em;
}

.catalog-section__cta {
  align-self: end;
  white-space: nowrap;
}

.catalog-section__tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.catalog-section__pulse {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fx-signal);
  box-shadow: 0 0 12px rgba(94, 204, 190, 0.55);
  margin-right: 0.65rem;
}

@media (prefers-reduced-motion: no-preference) {
  .catalog-section__pulse {
    animation: catalogPulseDot 1.8s ease-in-out infinite;
  }
}

@keyframes catalogPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.92); }
}

.catalogue-grid--bento {
  gap: clamp(14px, 1.8vw, 22px) !important;
  background: transparent !important;
  border: none !important;
  grid-auto-flow: dense;
  padding: 4px;
}

/*
 * Cellule unique : octogone régulier (facette projetée, même lecture qu’une face
 * du tesseract en projection — forme unique pour tout l’atlas).
 */
.catalogue-grid--bento .cat-card {
  --cell-rx: 0deg;
  --cell-ry: 0deg;
  --cell-rz: 0deg;
  --cell-oct: polygon(
    12% 0%,
    88% 0%,
    100% 12%,
    100% 88%,
    88% 100%,
    12% 100%,
    0% 88%,
    0% 12%
  );
  border: none !important;
  border-radius: 0 !important;
  background: linear-gradient(
    155deg,
    rgba(20, 20, 24, 0.97) 0%,
    rgba(10, 10, 11, 0.99) 52%,
    rgba(14, 15, 18, 1) 100%
  ) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 1px rgba(94, 204, 190, 0.18));
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--cell-rx)) rotateY(var(--cell-ry)) rotateZ(var(--cell-rz));
  transition:
    transform 0.55s var(--ease),
    filter 0.45s var(--ease);
  clip-path: var(--cell-oct);
}

/* Arêtes « fil de fer » + reflet diagonal (projection) */
.catalogue-grid--bento .cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(94, 204, 190, 0.11) 0%,
      transparent 18%,
      transparent 82%,
      rgba(201, 169, 97, 0.08) 100%
    ),
    linear-gradient(
      115deg,
      transparent 45%,
      rgba(94, 204, 190, 0.07) 50%,
      transparent 55%
    ),
    linear-gradient(
      65deg,
      transparent 42%,
      rgba(201, 169, 97, 0.05) 50%,
      transparent 58%
    );
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.catalogue-grid--bento .cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  height: 74%;
  border: 1px solid rgba(94, 204, 190, 0.14);
  clip-path: polygon(
    12% 0%,
    88% 0%,
    100% 12%,
    100% 88%,
    88% 100%,
    12% 100%,
    0% 88%,
    0% 12%
  );
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), border-color 0.45s var(--ease);
}

.catalogue-grid--bento .cat-card:hover {
  background: linear-gradient(
    158deg,
    rgba(30, 32, 38, 0.98) 0%,
    rgba(16, 16, 20, 1) 100%
  ) !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(94, 204, 190, 0.22));
}

.catalogue-grid--bento .cat-card:hover::before {
  opacity: 0.95;
}

.catalogue-grid--bento .cat-card:hover::after {
  opacity: 0.75;
  border-color: rgba(201, 169, 97, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .catalogue-grid--bento .cat-card:hover {
    --cell-rx: 3.5deg;
    --cell-ry: -4deg;
    --cell-rz: 0.5deg;
  }
}

.catalogue-grid--bento .cat-card[data-size="lg"] {
  grid-row: span 2;
  min-height: 400px;
}

@media (prefers-reduced-motion: reduce) {
  .catalogue-grid--bento .cat-card {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .catalogue-grid--bento .cat-card[data-size="lg"] {
    grid-row: span 1;
    min-height: 320px;
  }

  .catalog-section__header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .catalog-section__glyph {
    font-size: clamp(2.5rem, 14vw, 4rem);
    justify-self: start;
    margin-bottom: -0.5rem;
  }

  .catalog-section__cta {
    justify-self: start;
  }
}

/* Atlas « orbit » : rangées compactes + hypersolides (fil + facettes) */
.catalogue-grid--orbit.catalogue-grid--bento {
  gap: clamp(10px, 1.4vw, 16px) !important;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card {
  --cell-rx: 0deg;
  --cell-ry: 0deg;
  --cell-rz: 0deg;
  clip-path: none;
  border-radius: 14px !important;
  transform: none;
  transform-style: flat;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem !important;
  min-height: 0 !important;
  justify-content: flex-start;
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 1px rgba(94, 204, 190, 0.12));
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card::before {
  inset: 0;
  opacity: 0.28;
  background: linear-gradient(
    125deg,
    rgba(94, 204, 190, 0.09) 0%,
    transparent 38%,
    transparent 62%,
    rgba(201, 169, 97, 0.06) 100%
  );
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card::after {
  display: none;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card:hover {
  transform: translateY(-2px);
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__shape {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  display: block;
  pointer-events: none;
  opacity: 0.98;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__main {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 2rem;
  align-self: stretch;
  justify-content: center;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__num {
  font-size: 0.65rem;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__title {
  margin-top: 0.2rem;
  font-size: clamp(0.88rem, 1.22vw, 1.08rem);
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__desc {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 36ch;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card__arrow {
  top: 0.15rem;
  right: 0;
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.catalogue-grid--orbit.catalogue-grid--bento .cat-card[data-size="lg"],
.catalogue-grid--orbit.catalogue-grid--bento .cat-card[data-size="md"],
.catalogue-grid--orbit.catalogue-grid--bento .cat-card[data-size="sm"] {
  grid-row: span 1 !important;
  min-height: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
  .catalogue-grid--orbit.catalogue-grid--bento .cat-card:hover {
    --cell-rx: 0deg;
    --cell-ry: 0deg;
    --cell-rz: 0deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalogue-grid--orbit.catalogue-grid--bento .cat-card:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .catalogue-grid--orbit.catalogue-grid--bento .cat-card {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem !important;
  }

  .catalogue-grid--orbit.catalogue-grid--bento .cat-card__shape {
    width: 96px;
    height: 96px;
  }
}

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

@media (max-width: 768px) {
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.num {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem);
}

.num__big {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.15rem, 2.75vw, 2.15rem);
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.04em;
}

.num__big .accent {
  color: var(--accent);
  font-style: italic;
}

.num__label {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---------- Discography list ---------- */
.list-rows {
  border-top: 1px solid var(--line);
}

.list-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr 1fr 30px;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  position: relative;
  transition: padding 0.4s var(--ease);
  cursor: none;
}

.list-row:hover {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.list-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.list-row:hover::before {
  transform: scaleX(1);
}

.list-row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

.list-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.list-row__desc {
  font-size: 0.88rem;
  color: var(--fg-soft);
}

.list-row__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.list-row__arrow {
  text-align: right;
  color: var(--fg-muted);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.list-row:hover .list-row__arrow {
  color: var(--accent);
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .list-row {
    grid-template-columns: 30px 1fr 60px;
    gap: 1rem;
  }
  .list-row__desc, .list-row__arrow { display: none; }
}

/* ---------- Quote / pull ---------- */
.pull {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.pull__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.98rem, 2.1vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--fg);
}

.pull__quote em {
  color: var(--accent);
  font-style: italic;
}

.pull__cite {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Citation d’accueil : centrée (exception) */
.pull--tight {
  text-align: center;
  padding-top: clamp(2.5rem, 5.5vw, 4.25rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}

.pull--tight .pull__quote {
  margin-left: auto;
  margin-right: auto;
  max-width: min(34ch, 92vw);
  line-height: 1.22;
  font-size: clamp(0.94rem, 1.95vw, 1.45rem);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), padding 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  padding-right: 2rem;
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    gap 0.4s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  border-top: 1px solid var(--line);
}

.footer__big {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(0.92rem, 3.2vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 3rem;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.footer__big::-webkit-scrollbar {
  display: none;
}

.footer__big em {
  color: var(--accent);
  font-style: italic;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

@media (max-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.92rem;
  color: var(--fg-soft);
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Reveal animations ---------- */
/* Hidden state only applies when JS is enabled (progressive enhancement) */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal--stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal--stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Subpage styles ---------- */
.page-hero {
  padding-top: 12rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero__crumbs {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.page-hero__crumbs a:hover { color: var(--accent); }

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1rem, 3.2vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

/* Titres héros sur une seule ligne ; la taille fluide évite le débordement */
.page-hero__title--one-line {
  white-space: nowrap;
  font-size: clamp(0.85rem, 2.85vw, 1.95rem);
  line-height: 1.05;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.page-hero__title--one-line::-webkit-scrollbar {
  display: none;
}

@media (max-width: 380px) {
  .page-hero__title--one-line {
    font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  }
}

.page-hero__title em {
  color: var(--accent);
  font-style: italic;
}

/* Blocs intro (section à deux colonnes) : titre + emphase sur une ligne */
.intro__title-line {
  white-space: nowrap;
  font-size: clamp(0.85rem, 2.35vw, 1.72rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.intro__title-line::-webkit-scrollbar {
  display: none;
}

.intro__title-line em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

/* Titres de section type catalogue (accueil) */
.section-heading-line {
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-heading-line::-webkit-scrollbar {
  display: none;
}

.section-heading-line em {
  color: var(--accent);
  font-style: italic;
}

.page-hero__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.35vw, 1.28rem);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 56ch;
}

/* ---------- Catalog list (musique etc.) ---------- */
.cat-list {
  display: grid;
  gap: 4rem;
}

.cat-list__group h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.cat-list__items {
  display: grid;
  gap: 0.4rem;
}

.cat-list__item {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  font-size: 0.95rem;
}

.cat-list__item .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  background: none;
  padding: 0;
}

.cat-list__item .title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.cat-list__item .title em {
  font-style: italic;
  color: var(--accent);
}

.cat-list__item .year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

@media (max-width: 600px) {
  .cat-list__item {
    grid-template-columns: 40px 1fr 60px;
    gap: 0.75rem;
  }
}

/* ---------- Bio / publications ---------- */
.bio-prose {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .bio-prose { grid-template-columns: 1fr; }
}

.bio-prose__aside {
  position: sticky;
  top: 8rem;
}

.bio-prose__aside img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
  filter: grayscale(0.2) contrast(1.05);
}

.bio-prose__body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-soft);
  margin-bottom: 1.5rem;
  max-width: 64ch;
}

.bio-prose__body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.bio-prose__body ul {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.bio-prose__body li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bio-prose__body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 2px;
  display: grid;
  gap: 1rem;
}

.contact-card h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-card a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Image gallery (masonry-like) ---------- */
.gallery {
  columns: 3 320px;
  column-gap: 1.25rem;
}

@media (max-width: 600px) {
  .gallery { columns: 2 200px; column-gap: 0.75rem; }
}

.gallery__item {
  display: block;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-elev);
  cursor: none;
  transition: transform 0.5s var(--ease);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(0.05) contrast(1.02);
}

.gallery__item:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
}

.gallery__item:hover::after {
  border-color: var(--accent);
}

/* Page Tableaux : pas d’images dans la colonne de droite de la galerie */
.page--tableaux .gallery {
  columns: unset;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .page--tableaux .gallery {
    grid-template-columns: 1fr;
  }
}

.page--tableaux .gallery__item {
  grid-column: 1;
  margin: 0;
}

/* Galerie Labyrinthe : pas de masonry, grille régulière, images recadrées */
.gallery--labyrinthe {
  columns: unset;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .gallery--labyrinthe {
    grid-template-columns: 1fr;
  }
}

.gallery--labyrinthe .gallery__item {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.gallery--labyrinthe .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery--labyrinthe .gallery__item:hover img {
  transform: scale(1.03);
}

/* ---------- Featured single image ---------- */
.featured-img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  border: 1px solid var(--line);
}

.featured-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.05) contrast(1.05);
}

.featured-img figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: rgba(10, 10, 11, 0.7);
  padding: 0.5rem 0.75rem;
  backdrop-filter: blur(6px);
}

.featured-img figcaption:empty {
  display: none;
}

/* ---------- Accueil futuriste — champ temps réel + HUD ---------- */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.fx-layer__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.54;
}

.sys-hud {
  position: fixed;
  bottom: 1.1rem;
  left: var(--gutter);
  z-index: 45;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid rgba(94, 204, 190, 0.28);
  border-radius: 1px;
  padding: 0.45rem 0.55rem 0.5rem;
  background: rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 28px rgba(94, 204, 190, 0.07),
    inset 0 0 0 1px rgba(201, 169, 97, 0.06);
}

.sys-hud__inner {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.sys-hud__row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.sys-hud__k {
  color: var(--fx-signal-dim);
  min-width: 2rem;
  font-weight: 400;
}

.sys-hud__v {
  color: var(--fg-soft);
  font-weight: 400;
}

[data-fx-flux] {
  color: var(--accent);
  animation: fxPulse 2.4s ease-in-out infinite;
}

@keyframes fxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.page--home {
  --bg: #000000;
  background: #000;
}

.page--home main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.page--home .home-immersive-spacer {
  min-height: 100vh;
  min-height: 100dvh;
  flex-shrink: 0;
  pointer-events: none;
}

.page--home .home-below-fold {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 -32px 64px rgba(0, 0, 0, 0.42);
}

.page--home .sys-hud {
  display: none;
}

.page--home .fx-layer__canvas {
  opacity: 0.72;
}

/* Page « Créations interactives » — même animation Dérive topologique I, bloc embarqué */
.page-videos-fx-visual {
  position: relative;
  width: 100%;
  max-width: min(960px, 100%);
  margin: 1.75rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(94, 204, 190, 0.22);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(201, 169, 97, 0.06);
  background: #000;
}

.fx-layer.fx-layer--embedded {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

.page--videos-fx .page-videos-fx-visual .fx-layer__canvas {
  opacity: 0.72;
}

/* Lecteur YouTube (et autres iframes 16:9) */
.media-embed {
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
}

.media-embed__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(94, 204, 190, 0.22);
  background: #000;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(201, 169, 97, 0.06);
}

.media-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page--home .hero.hero--signal {
  --fx-mx: 0;
  --fx-my: 0;
  transform: translate3d(
    calc(var(--fx-mx) * 10px),
    calc(var(--fx-my) * 8px),
    0
  );
}

.page--home .hero.hero--signal::before {
  content: "";
  position: absolute;
  top: 4.25rem;
  left: var(--gutter);
  width: min(64px, 16vw);
  height: min(64px, 16vw);
  border-left: 1px solid var(--fx-signal-dim);
  border-top: 1px solid var(--fx-signal-dim);
  pointer-events: none;
  opacity: 0.9;
}

/* Mode immersif : Échap masque en-tête, menu, pied de page, panneau voix, HUD.
   Le plein écran navigateur est demandé en JS quand supporté (barre d’adresse masquée en partie). */
body.page--home.home-immersive .site-header,
body.page--home.home-immersive .nav,
body.page--home.home-immersive .site-footer,
body.page--home.home-immersive .cy-voice,
body.page--home.home-immersive .cy-voice-reopen,
body.page--home.home-immersive .cy-params,
body.page--home.home-immersive .cy-params-reopen,
body.page--home.home-immersive .scroll-progress,
body.page--home.home-immersive .sys-hud,
body.page--home.home-immersive .cursor {
  display: none !important;
}

/* Hors du hero (Dérive) : panneaux activation / réglages invisibles (scroll vers le bas du site) */
body.page--home.home-scroll-past-hero:not(.home-immersive) #cy-voice-panel,
body.page--home.home-scroll-past-hero:not(.home-immersive) #cy-params-panel,
body.page--home.home-scroll-past-hero:not(.home-immersive) [data-cy-voice-reopen],
body.page--home.home-scroll-past-hero:not(.home-immersive) [data-cy-params-reopen] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .page--home .hero.hero--signal {
    transform: none;
  }

  [data-fx-flux] {
    animation: none;
  }
}

/* HUD échelle forme (Option+clic sur le fond) */
.cy-shape-scale-hud {
  position: fixed;
  top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 4.25rem));
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  z-index: 48;
  max-width: 12rem;
  padding: 0.38rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.95);
  background: rgba(8, 8, 9, 0.78);
  border: 1px solid rgba(94, 204, 190, 0.28);
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.cy-shape-scale-hud.cy-shape-scale-hud--visible {
  opacity: 1;
  transform: translateY(0);
}

.cy-shape-scale-hud__bar {
  display: block;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 97, 0.35),
    rgba(94, 204, 190, 0.65)
  );
  transform-origin: left center;
  transform: scaleX(var(--cy-scale-pct, 1));
}

.page--home.home-immersive .cy-shape-scale-hud {
  top: max(1rem, env(safe-area-inset-top, 0px) + 0.5rem);
}

/* Accueil — panneau paramètres (à gauche, même ancrage vertical que activation) */
.cy-params.cy-voice {
  margin-left: 0;
  margin-right: auto;
  top: max(5.35rem, calc(env(safe-area-inset-top, 0px) + 4.35rem));
  bottom: auto;
}

.cy-params.cy-voice.cy-voice--collapsed {
  max-width: min(16.5rem, calc(52vw - var(--gutter)));
}

.cy-params.cy-voice:not(.cy-voice--collapsed) {
  max-width: min(32rem, calc(100vw - var(--gutter) * 2));
}

.cy-params .cy-voice__main {
  max-height: min(78vh, 40rem);
}

.cy-params.cy-voice.cy-voice--dismissed {
  display: none !important;
}

.cy-params__lead {
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(232, 228, 220, 0.82);
  margin: 0 0 0.55rem;
}

.cy-params__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-height: min(52vh, 22rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cy-params__section-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(201, 169, 97, 0.88);
  margin: 0.62rem 0 0.32rem;
  padding: 0;
  font-weight: 600;
}

.cy-params__section-title:first-of-type {
  margin-top: 0.15rem;
}

.cy-params__list--live {
  max-height: min(38vh, 16rem);
}

.cy-params__list--live-vis {
  max-height: min(30vh, 12.5rem);
}

.cy-params__list--live-son {
  max-height: min(42vh, 18rem);
}

.cy-params__row--live .cy-params__value {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(198, 238, 228, 0.95);
  padding: 0.15rem 0.42rem;
  border-radius: 2px;
  background: rgba(94, 204, 190, 0.1);
  border: 1px solid rgba(94, 204, 190, 0.22);
  max-width: min(10.5rem, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cy-params__row--live .cy-params__value--dim {
  color: rgba(180, 184, 188, 0.78);
  background: rgba(80, 88, 96, 0.12);
  border-color: rgba(110, 118, 128, 0.28);
  white-space: normal;
  max-width: min(15.5rem, 58vw);
  line-height: 1.35;
  text-overflow: clip;
}

.cy-params__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.32rem 0.4rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(94, 204, 190, 0.06);
  font-size: 0.82em;
  line-height: 1.35;
}

.cy-params__label {
  color: var(--fg-soft);
  hyphens: auto;
}

.cy-params__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 2px;
  white-space: nowrap;
  max-width: min(11rem, 38vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cy-params__badge--on {
  background: rgba(94, 204, 190, 0.18);
  color: rgba(198, 238, 228, 0.96);
  border: 1px solid rgba(94, 204, 190, 0.38);
}

.cy-params__badge--off {
  background: rgba(110, 110, 120, 0.14);
  color: rgba(198, 196, 188, 0.72);
  border: 1px solid rgba(110, 110, 120, 0.28);
}

.cy-params__badge--info {
  background: rgba(130, 160, 200, 0.12);
  color: rgba(200, 214, 235, 0.88);
  border: 1px solid rgba(130, 160, 200, 0.28);
}

.cy-params__badge--warn {
  background: rgba(201, 169, 97, 0.14);
  color: rgba(235, 218, 180, 0.9);
  border: 1px solid rgba(201, 169, 97, 0.35);
}

@media (max-width: 640px) {
  .cy-params.cy-voice.cy-voice--collapsed {
    max-width: min(15rem, calc(100vw - var(--gutter) * 2 - 7.5rem));
  }
}

/* ---------- Accueil — voix de la forme (Web Speech) ---------- */
.cy-voice {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  top: max(5.35rem, calc(env(safe-area-inset-top, 0px) + 4.35rem));
  bottom: auto;
  z-index: 55;
  max-width: min(34rem, calc(100vw - var(--gutter) * 2));
  margin-left: auto;
  margin-right: 0;
  width: auto;
  pointer-events: auto;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 0.65rem + 2.55vw, 1.38rem);
  line-height: 1.52;
  color: var(--fg-soft);
  border: 1px solid rgba(201, 169, 97, 0.32);
  border-radius: 2px;
  padding: 0.55rem 0.62rem 0.62rem;
  background: rgba(8, 8, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(94, 204, 190, 0.06),
    inset 0 0 0 1px rgba(94, 204, 190, 0.08);
}

.cy-voice.cy-voice--dismissed {
  display: none !important;
}

.cy-voice__topbar {
  display: flex;
  align-items: stretch;
  gap: 0.28rem;
  margin: 0 0 0.3rem;
}

.cy-voice__dismiss {
  flex-shrink: 0;
  width: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.48rem;
  line-height: 1;
  font-weight: 500;
  color: var(--fg-soft);
  background: rgba(94, 204, 190, 0.08);
  border: 1px solid rgba(94, 204, 190, 0.22);
  border-radius: 2px;
  cursor: pointer;
}

.cy-voice__dismiss:hover {
  color: var(--fg);
  background: rgba(94, 204, 190, 0.14);
}

.cy-voice-reopen {
  position: fixed;
  top: max(5.35rem, calc(env(safe-area-inset-top, 0px) + 4.35rem));
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  z-index: 54;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: none;
  padding: 0.5rem 0.78rem;
  color: var(--fg-soft);
  background: linear-gradient(
    125deg,
    rgba(201, 169, 97, 0.12),
    rgba(64, 120, 112, 0.1)
  );
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cy-voice-reopen:hover {
  color: var(--fg);
  background: linear-gradient(
    125deg,
    rgba(201, 169, 97, 0.22),
    rgba(64, 120, 112, 0.18)
  );
  border-color: rgba(201, 169, 97, 0.32);
}

.cy-params-reopen {
  right: auto;
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  top: max(5.35rem, calc(env(safe-area-inset-top, 0px) + 4.35rem));
  background: linear-gradient(
    125deg,
    rgba(64, 120, 112, 0.12),
    rgba(201, 169, 97, 0.1)
  );
  border-color: rgba(94, 204, 190, 0.22);
}

.cy-params-reopen:hover {
  background: linear-gradient(
    125deg,
    rgba(64, 120, 112, 0.22),
    rgba(201, 169, 97, 0.16)
  );
  border-color: rgba(94, 204, 190, 0.32);
}

.cy-voice__panel-toggle {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.62rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--fg-soft);
  background: rgba(94, 204, 190, 0.035);
  border: 1px solid rgba(94, 204, 190, 0.14);
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}

.cy-voice__panel-toggle:hover {
  background: rgba(94, 204, 190, 0.08);
  color: var(--fg);
}

.cy-voice__panel-toggle-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.cy-voice__toggle-text--expanded {
  display: none;
}

.cy-voice__toggle-text--collapsed {
  display: inline;
}

.cy-voice:not(.cy-voice--collapsed) .cy-voice__toggle-text--expanded {
  display: inline;
}

.cy-voice:not(.cy-voice--collapsed) .cy-voice__toggle-text--collapsed {
  display: none;
}

.cy-voice__panel-toggle-icon {
  flex-shrink: 0;
  font-size: 0.96rem;
  opacity: 0.85;
  transition: transform 0.32s var(--ease);
}

.cy-voice--collapsed .cy-voice__panel-toggle-icon {
  transform: rotate(-180deg);
}

.cy-voice__main {
  max-height: min(55vh, 30rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 204, 190, 0.35) transparent;
  transition:
    max-height 0.42s var(--ease),
    opacity 0.3s ease;
  opacity: 1;
}

.cy-voice--collapsed .cy-voice__main {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Pop-up replié : encadrement minimal, fond un peu plus transparent */
.cy-voice.cy-voice--collapsed {
  padding: 0.26rem 0.4rem 0.32rem;
  max-width: min(24rem, calc(100vw - var(--gutter) * 2));
  background: rgba(8, 8, 9, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cy-voice--collapsed .cy-voice__topbar {
  margin-bottom: 0.14rem;
}

.cy-voice--collapsed .cy-voice__panel-toggle {
  padding: 0.32rem 0.44rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  gap: 0.28rem;
}

.cy-voice--collapsed .cy-voice__panel-toggle-icon {
  font-size: 0.78rem;
}

/* Replié : uniquement le bouton d’en-tête (pas de fermeture totale ni pistes audio) */
.cy-voice--collapsed .cy-voice__dismiss {
  display: none;
}

.cy-voice--collapsed .cy-audio-row,
.cy-voice--collapsed .cy-audio-vis,
.cy-voice--collapsed .cy-voice__caption {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cy-voice__main {
    transition: none;
  }

  .cy-voice__panel-toggle-icon {
    transition: none;
  }
}

.cy-voice__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem 0.48rem;
}

#degerando-cy-explication,
#degerando-cy-poem,
#degerando-cy-additive,
#degerando-cy-visual {
  scroll-margin-top: 5.5rem;
}

.cy-voice__block {
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(94, 204, 190, 0.12);
}

.cy-voice__block-title {
  margin: 0 0 0.14rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(201, 169, 97, 0.88);
}

.cy-voice__block-lead {
  margin: 0 0 0.32rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--fg-muted);
  opacity: 0.92;
}

.cy-voice__btn--block {
  width: 100%;
  flex: none;
}

.cy-voice__k {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-signal-dim);
}

.cy-voice__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.cy-voice__select {
  flex: 1 1 auto;
  min-width: 6rem;
  font: inherit;
  font-size: 1em;
  color: var(--fg);
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid rgba(94, 204, 190, 0.28);
  border-radius: 2px;
  padding: 0.38rem 0.52rem;
  cursor: pointer;
}

.cy-voice__btn {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(
    135deg,
    rgba(201, 169, 97, 0.95),
    rgba(94, 204, 190, 0.82)
  );
  border: none;
  border-radius: 2px;
  padding: 0.5rem 0.68rem;
  cursor: pointer;
  white-space: nowrap;
}

.cy-voice__btn[aria-pressed="true"] {
  background: rgba(94, 204, 190, 0.35);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.4);
}

.cy-voice__hint {
  margin: 0.38rem 0 0;
  font-size: 0.98rem;
  line-height: 1.48;
  color: var(--fg-muted);
  opacity: 0.88;
}

.cy-voice__sim {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 1.06rem;
  line-height: 1.46;
  color: var(--fg-muted);
  cursor: pointer;
}

.cy-voice__sim-input {
  margin-top: 0.16rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.cy-voice__sim:has(.cy-voice__sim-input:disabled) {
  opacity: 0.72;
  cursor: default;
}

.cy-audio-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.28rem;
  width: 100%;
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(94, 204, 190, 0.15);
}

.cy-audio-row__hint {
  flex: none;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.42;
  color: var(--fg-muted);
  opacity: 0.88;
  margin: 0;
}

.cy-audio-vis {
  margin: 0.35rem 0 0;
  padding-top: 0.32rem;
  border-top: 1px solid rgba(94, 204, 190, 0.1);
}

.cy-audio-vis__k {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-signal-dim);
  margin-bottom: 0.22rem;
}

.cy-audio-vis__canvas {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 4rem;
  height: auto;
  aspect-ratio: 640 / 112;
  border-radius: 2px;
  border: 1px solid rgba(201, 169, 97, 0.12);
  background: rgba(20, 18, 14, 0.92);
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.45);
}

.cy-audio-chip {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(
    125deg,
    rgba(201, 169, 97, 0.92),
    rgba(64, 120, 112, 0.88)
  );
  border: 1px solid rgba(201, 169, 97, 0.45);
  border-radius: 2px;
  padding: 0.48rem 0.62rem;
  cursor: pointer;
  width: 100%;
  flex: none;
  min-width: 0;
  box-sizing: border-box;
}

.cy-audio-chip.cy-audio-chip--on {
  background: rgba(94, 204, 190, 0.28);
  color: var(--accent);
  border-color: rgba(94, 204, 190, 0.5);
}

.cy-audio-vis.cy-audio-vis--active .cy-audio-vis__canvas {
  border-color: rgba(94, 204, 190, 0.2);
}

.cy-voice__caption {
  margin: 0.38rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.92rem + 0.85vw, 1.28rem);
  font-weight: 300;
  line-height: 1.48;
  color: rgba(232, 228, 220, 0.92);
  min-height: 1.5em;
}

.cy-voice__caption:empty {
  display: none;
}

body.cy-voice--speaking .fx-layer__canvas {
  opacity: 0.84;
  transition: opacity 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.cy-voice--speaking .fx-layer__canvas {
    opacity: 0.72;
    transition: none;
  }
}

@media (max-width: 768px) {
  .sys-hud {
    display: none;
  }

  .page--home .fx-layer__canvas {
    opacity: 0.44;
  }

  .cy-voice {
    left: 0.65rem;
    right: 0.65rem;
    max-width: min(31rem, calc(100vw - 1.3rem));
    margin-left: auto;
    margin-right: 0;
    top: max(5.15rem, calc(env(safe-area-inset-top, 0px) + 4.15rem));
    bottom: auto;
  }

  .cy-voice.cy-voice--collapsed {
    max-width: min(22rem, calc(100vw - 1.3rem));
  }

  .cy-voice-reopen {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page--home a.featured-art__frame {
    box-shadow:
      inset 0 0 120px rgba(0, 0, 0, 0.65),
      inset 0 1px 0 rgba(201, 169, 97, 0.06),
      0 0 0 1px rgba(94, 204, 190, 0.1),
      0 0 48px rgba(94, 204, 190, 0.05);
  }
}

/* ---------- Accueil — carte mentale (menu → branches) ---------- */
.mindmap--home {
  position: relative;
  width: 100%;
  max-width: min(56rem, 100%);
  margin: 0 auto;
  padding: 0 0.25rem;
  opacity: 1;
  transform: none;
  flex-shrink: 0;
}

/* Toujours visible : ne pas utiliser .reveal sur le bloc carte (grand rectangle → seuil IntersectionObserver souvent jamais atteint) */
html.js .mindmap--home {
  opacity: 1;
  transform: none;
}

/* Bandeau carte mentale : pleine largeur, fond noir (accueil) */
.home-mindmap-band {
  width: 100%;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.75rem, 4vw, 3.25rem);
  background: #000;
  border-block: 1px solid rgba(201, 169, 97, 0.14);
}

.page--home .home-mindmap-band {
  position: relative;
  z-index: 1;
}

.mindmap--fullbleed {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.mindmap--fullbleed .mindmap__intro {
  color: rgba(184, 179, 168, 0.88);
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
  padding: 0;
}

.mindmap--fullbleed .mindmap__viewport {
  aspect-ratio: 1;
  min-height: min(78vw, 30rem);
  max-height: min(92vh, 54rem);
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(ellipse 88% 78% at 50% 44%, rgba(201, 169, 97, 0.07), transparent 72%),
    #000;
}

.mindmap--fullbleed .mindmap__hub-label {
  color: var(--fg);
}

.mindmap--fullbleed .mindmap__node {
  max-width: min(32vw, 15rem);
  box-sizing: border-box;
}

.mindmap--fullbleed .mindmap__node-text {
  font-size: clamp(0.58rem, 1.12vw, 0.76rem);
}

.mindmap--fullbleed .mindmap__node-inner {
  background: rgba(8, 8, 9, 0.92);
  border-color: rgba(201, 169, 97, 0.28);
}

.mindmap--fullbleed .mindmap__node--long .mindmap__node-text {
  font-size: clamp(0.52rem, 1vw, 0.68rem);
  line-height: 1.26;
}

/* ——— Carte mentale · variante moderne (dégradés SVG, verre, grille) ——— */
.mindmap__mesh {
  display: none;
}

.mindmap--modern .mindmap__mesh {
  display: block;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  /* Garder le quadrillage lisible au centre, fond noir plein sur les côtés */
  mask-image: radial-gradient(ellipse 98% 94% at 50% 50%, #000 0%, #000 52%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 98% 94% at 50% 50%, #000 0%, #000 52%, transparent 88%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.mindmap__glow-orb {
  display: none;
}

.mindmap--modern .mindmap__glow-orb {
  display: block;
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(62%, 48rem);
  height: min(62%, 48rem);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(94, 204, 190, 0.11) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  filter: blur(32px);
}

.mindmap__intro--modern {
  margin: 0 auto;
  max-width: 40rem;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 0.95vw, 0.69rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(184, 179, 168, 0.75);
}

.mindmap--modern.mindmap--fullbleed .mindmap__viewport {
  border-radius: 0;
  border: none;
  /* Dégradés internes adoucis : le fondu noir des bords est confié au ::before */
  background:
    radial-gradient(ellipse 92% 68% at 50% 24%, rgba(94, 204, 190, 0.04), transparent 60%),
    radial-gradient(ellipse 68% 56% at 90% 70%, rgba(201, 169, 97, 0.05), transparent 54%),
    #000;
  box-shadow: none;
  overflow: visible;
}

/* Vignette #000 : fondu enchaîné avec le fond du site (bandeau et page), surtout en haut */
.mindmap--modern.mindmap--fullbleed .mindmap__viewport::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 7%, rgba(0, 0, 0, 0.5) 16%, transparent 36%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.78) 9%, transparent 30%),
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.65) 11%, transparent 24%),
    linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.65) 11%, transparent 24%),
    radial-gradient(
      ellipse 86% 80% at 50% 47%,
      transparent 34%,
      rgba(0, 0, 0, 0.22) 58%,
      rgba(0, 0, 0, 0.82) 86%,
      #000 100%
    );
}

.mindmap--modern .mindmap__svg {
  z-index: 1;
}

.mindmap--modern .mindmap__hub-glow {
  fill: url(#mindmap-hub-rad);
  stroke: none;
}

.mindmap--modern .mindmap__line {
  stroke: url(#mindmap-line-grad);
  stroke-width: 1.2px;
  opacity: 0.9;
}

.mindmap--modern .mindmap__line.is-active {
  stroke: var(--accent);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(201, 169, 97, 0.5));
}

.mindmap--modern.mindmap--hub-hover .mindmap__line:not(.is-active) {
  stroke: url(#mindmap-line-grad);
  opacity: 0.48;
}

.mindmap--modern .mindmap__hub {
  border-radius: 999px;
  padding: 1rem 1.4rem;
  min-width: min(13.5rem, 54vw);
}

.mindmap--modern .mindmap__hub-ring {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(94, 204, 190, 0.07);
}

.mindmap--modern .mindmap__hub:hover .mindmap__hub-ring,
.mindmap--modern .mindmap__hub:focus-visible .mindmap__hub-ring {
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow:
    0 0 40px rgba(201, 169, 97, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mindmap--modern .mindmap__hub-label {
  font-weight: 250;
  letter-spacing: -0.03em;
}

.mindmap--modern .mindmap__node-inner {
  border-radius: 999px;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 6, 8, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.mindmap--modern .mindmap__node-text {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
}

.mindmap--modern .mindmap__node:hover .mindmap__node-inner,
.mindmap--modern .mindmap__node:focus-visible .mindmap__node-inner {
  border-color: rgba(94, 204, 190, 0.4);
  background: rgba(12, 14, 16, 0.72);
  box-shadow:
    0 0 22px rgba(94, 204, 190, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mindmap--modern .mindmap__node:focus-visible {
  border-radius: 999px;
}

.mindmap--modern .mindmap__node--long .mindmap__node-inner {
  border-radius: 0.7rem;
}

.mindmap--modern .mindmap__node--long:focus-visible {
  border-radius: 0.7rem;
}

@media (max-width: 680px) {
  .mindmap--fullbleed .mindmap__viewport {
    min-height: min(92vw, 26rem);
    max-height: none;
  }

  .mindmap--fullbleed .mindmap__node {
    max-width: min(38vw, 10.5rem);
  }
}

.mindmap__intro {
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.mindmap__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-height: min(90vw, 22rem);
  max-height: min(88vh, 44rem);
  margin: 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(42, 42, 46, 0.65);
  background:
    radial-gradient(ellipse 72% 70% at 50% 48%, rgba(201, 169, 97, 0.07), transparent 62%),
    linear-gradient(165deg, rgba(15, 14, 12, 0.96), rgba(10, 10, 11, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(201, 169, 97, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.mindmap__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.mindmap__hub-glow {
  fill: rgba(201, 169, 97, 0.12);
  stroke: rgba(201, 169, 97, 0.35);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

.mindmap__line {
  stroke: rgba(201, 169, 97, 0.38);
  stroke-width: 1.35px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.35s ease, stroke-opacity 0.35s ease, opacity 0.35s ease;
}

.mindmap__line.is-active {
  stroke: var(--accent);
  stroke-opacity: 0.95;
  opacity: 1;
}

.mindmap--hub-hover .mindmap__line:not(.is-active) {
  stroke: rgba(201, 169, 97, 0.32);
}

.mindmap__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 1.15rem;
  min-width: min(11rem, 46vw);
  border-radius: 2px;
  outline: none;
}

.mindmap__hub:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mindmap__hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  border: 1px solid rgba(201, 169, 97, 0.42);
  background: rgba(10, 10, 11, 0.72);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(201, 169, 97, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.mindmap__hub:hover .mindmap__hub-ring,
.mindmap__hub:focus-visible .mindmap__hub-ring {
  border-color: rgba(201, 169, 97, 0.7);
  box-shadow:
    0 0 0 1px rgba(201, 169, 97, 0.08),
    0 0 28px rgba(201, 169, 97, 0.12),
    inset 0 1px 0 rgba(201, 169, 97, 0.18);
}

.mindmap__hub-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.mindmap__hub-label em {
  font-style: italic;
  font-weight: 200;
  color: var(--accent);
}

.mindmap__node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  max-width: min(31vw, 10.5rem);
  text-decoration: none;
  color: var(--fg-soft);
  outline: none;
}

.mindmap__node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.mindmap__node-inner {
  display: block;
  padding: 0.4rem 0.48rem;
  border-radius: 2px;
  border: 1px solid rgba(42, 42, 46, 0.85);
  background: rgba(10, 10, 11, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.28s ease,
    color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.mindmap__node-text {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 1.15vw, 0.68rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.01em;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.mindmap__node--long .mindmap__node-text {
  font-size: clamp(0.5rem, 1.05vw, 0.62rem);
  line-height: 1.22;
}

.mindmap__node:hover .mindmap__node-inner,
.mindmap__node:focus-visible .mindmap__node-inner {
  border-color: rgba(201, 169, 97, 0.55);
  color: var(--fg);
  background: rgba(18, 17, 15, 0.92);
  box-shadow:
    0 0 20px rgba(201, 169, 97, 0.08),
    inset 0 1px 0 rgba(201, 169, 97, 0.1);
}

.mindmap__node.is-active .mindmap__node-inner {
  border-color: var(--accent-soft);
  color: var(--fg);
}

@media (max-width: 680px) {
  .mindmap__viewport {
    aspect-ratio: 1 / 1.08;
    max-height: none;
  }

  .mindmap__node {
    max-width: min(38vw, 9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mindmap__line {
    transition: none;
  }
}

/* ---------- Page Publications — liste HAL ---------- */
.pub-hal > .lead {
  margin-bottom: 1.75rem;
}

.pub-hal__list {
  margin: 0;
  padding: 0 0 0 2.75rem;
  list-style: decimal-leading-zero;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-hal__item {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(94, 204, 190, 0.12);
}

.pub-hal__item::marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.pub-hal__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(201, 169, 97, 0.82);
  display: block;
  margin-bottom: 0.35rem;
}

.pub-hal__link {
  display: inline-block;
  font-size: clamp(0.92rem, 0.82rem + 0.35vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 204, 190, 0.25);
  width: fit-content;
  max-width: 100%;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.pub-hal__link:hover {
  color: var(--accent);
  border-bottom-color: rgba(201, 169, 97, 0.45);
}

/* ---------- Utilities ---------- */
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.italic { font-style: italic; }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 2rem; }
.mt-l { margin-top: 4rem; }
