/* =========================================================
   Marcel Schueller — site vitrine
   Thème sombre · effets stéréoscopiques / anaglyphes
   ========================================================= */

@property --sep  { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tsep { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --bg: #07080a;
  --bg-2: #0d0f13;
  --panel: #12151a;
  --panel-2: #181c22;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ece8df;
  --muted: #9a968d;
  --faint: #5f5c57;
  --red: #ff2d4a;
  --cyan: #14e0ff;
  --paper: #1b1814;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 4px;

  --sep-base: 0px;     /* écart par défaut des images */
  --tsep-base: 0px;    /* écart par défaut des titres (0 = net) */
  --gs: 0;             /* niveaux de gris (1 en mode lunettes) */
}

/* Mode lunettes 3D : tout le site passe en anaglyphe noir & blanc */
body.glasses {
  --sep-base: 6px;
  --tsep-base: 4px;
  --gs: 1;
}

/* Images déjà en anaglyphe : jamais dédoublées une seconde fois */
.stereo.stereo--is3d { --sep: 0px !important; --gs: 0 !important; animation: none !important; }

/* En mode normal, les titres restent nets ; léger relief au survol */
.section__title:hover .ana, .footer__name:hover .ana { --tsep: 3px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain argentique */
body::before {
  content: '';
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Texte anaglyphe ---------- */
.ana {
  position: relative;
  display: inline-block;
  --tsep: var(--tsep-base);
}
.ana::before, .ana::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: transform .6s var(--ease);
}
.ana::before { color: var(--red);  transform: translate3d(calc(var(--tsep) * -1), 0, 0); }
.ana::after  { color: var(--cyan); transform: translate3d(var(--tsep), 0, 0); }

/* ---------- Image stéréoscopique (anaglyphe CSS) ----------
   Deux calques de la même image : un filtré en rouge, l'autre en cyan,
   recombinés en "screen". Écartés de --sep => effet anaglyphe.        */
.stereo {
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  --sep: var(--sep-base);
}
.stereo > img { width: 100%; height: auto; opacity: 0; }
.stereo__l, .stereo__r {
  position: absolute; inset: 0;
  mix-blend-mode: screen;
  isolation: isolate;
  transition: transform .7s var(--ease);
  will-change: transform;
}
.stereo__l span, .stereo__r span {
  position: absolute; inset: 0;
  background: var(--img) center / cover no-repeat;
  filter: grayscale(var(--gs));
  transition: transform 1.2s var(--ease), filter .6s;
}
.stereo__l::after, .stereo__r::after {
  content: ''; position: absolute; inset: 0;
  mix-blend-mode: multiply;
}
.stereo__l::after { background: #ff0000; }
.stereo__r::after { background: #00ffff; }
.stereo__l { transform: translate3d(calc(var(--sep) * -1), 0, 0); }
.stereo__r { transform: translate3d(var(--sep), 0, 0); }

/* ---------- Apparition au défilement ("mise au point") ---------- */
@keyframes converge { from { --sep: 26px; --tsep: 16px; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in .stereo, .reveal.in .ana, .reveal.in.stereo { animation: converge 1.6s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.6em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent;
  position: relative;
  transition: box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn:hover { box-shadow: -4px 0 0 var(--red), 4px 0 0 var(--cyan); }
.btn--ghost:hover { border-color: var(--text); }
.link {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.link:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 10, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-color: var(--line);
}
.nav__logo { font-family: var(--serif); font-size: 1.7rem; font-style: italic; font-weight: 500; text-decoration: none; letter-spacing: .02em; margin-right: auto; }
.nav__logo .ana { --tsep: 2.5px; }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__links a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
  box-shadow: -2px 0 0 var(--red), 2px 0 0 var(--cyan);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.glasses-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 10px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; color: var(--muted);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.glasses-toggle svg { width: 38px; height: 17px; }
.glasses-toggle .lens-l, .glasses-toggle .lens-r { fill: currentColor; opacity: .25; transition: fill .3s, opacity .3s; }
.glasses-toggle:hover { color: var(--text); border-color: var(--text); }
.glasses-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--text); box-shadow: -3px 0 0 var(--red), 3px 0 0 var(--cyan); }
.glasses-toggle[aria-pressed="true"] .lens-l { fill: var(--red); opacity: .9; }
.glasses-toggle[aria-pressed="true"] .lens-r { fill: var(--cyan); opacity: .9; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; box-shadow: -2px 0 0 var(--red); }
.burger span:last-child  { top: 25px; box-shadow: 2px 0 0 var(--cyan); }
.nav.is-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child  { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(90px, 14vh, 150px);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: -4%;
  --gs: 1;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04);
  transition: transform 1.2s var(--ease);
}
.hero__media .stereo__l, .hero__media .stereo__r { transition: transform .35s ease-out; }
.hero__media span { opacity: .78; }
.stereo--hero { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { --sep: calc(var(--hsep, 4px) * 1); }
  50%      { --sep: calc(var(--hsep, 4px) * 1.8); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 30%, transparent 0%, rgba(7,8,10,.35) 55%, rgba(7,8,10,.92) 100%),
    linear-gradient(90deg, rgba(7,8,10,.55) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,.05) 30%, rgba(7,8,10,.45) 70%, var(--bg) 100%);
}
.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(20,224,255,.5), rgba(255,45,74,.5), transparent);
  opacity: .35; animation: scan 9s linear infinite;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }

.hero__content { position: relative; z-index: 2; max-width: 1100px; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--r { background: var(--red); }
.dot--c { background: var(--cyan); margin-left: -12px; mix-blend-mode: screen; }
.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.6rem, 13.5vw, 12.5rem);
  line-height: .86; letter-spacing: -.02em;
}
.hero__title .ana { display: block; width: max-content; max-width: 100%; }
.hero__title .ana:first-child { font-style: italic; font-weight: 400; }
.hero__title .ana:nth-child(2) { margin-left: clamp(1.5rem, 9vw, 8rem); }
.ana--xl { --tsep: var(--hsep-t, 3px); }
.hero__subtitle { max-width: 34rem; margin: 1.8rem 0 2.2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfcac0; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 32px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: var(--faint);
}
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-2); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--text); border-radius: 2px; box-shadow: -2px 0 0 var(--red), 2px 0 0 var(--cyan); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 13vw, 170px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section__num { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.section__title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(2.7rem, 7.5vw, 6.2rem); line-height: .95; letter-spacing: -.015em;
}
.section__title .ana { --tsep: calc(var(--tsep-base) * 1.2); }
.section__intro { color: var(--muted); max-width: 40rem; margin: 1.4rem 0 0; }
.lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; margin: 0 0 1.6rem; color: var(--text); }
.prose p { margin: 0 0 1.1em; color: #c3beb4; }
.empty { color: var(--muted); font-style: italic; }
.empty a { color: var(--text); }
.subhead {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.6rem;
}

/* ---------- Bio ---------- */
.bio__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stereo-card {
  background: var(--paper);
  padding: 14px 14px 12px;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.04);
  transform: rotate(-1.2deg);
  transition: transform .8s var(--ease);
}
.stereo-card:hover { transform: rotate(0deg) scale(1.01); }
.stereo-card:hover .stereo { --sep: 7px; }
.stereo-card figcaption { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8173; margin-top: 10px; text-align: center; }
.stereo--frame { border-radius: 2px; }
.bio__figure { margin: 0; position: sticky; top: 110px; }

.stats { list-style: none; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; }
.stats span { color: var(--muted); font-size: .9rem; }

.technique { margin-top: clamp(64px, 9vw, 120px); }
.technique__title { font-family: var(--mono); font-weight: 400; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.8rem; }
.technique__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.technique__steps li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; position: relative; overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.technique__steps li:hover { border-color: var(--line-2); transform: translateY(-4px); }
.technique__n {
  font-family: var(--serif); font-size: 4.4rem; line-height: 1; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  text-shadow: -3px 0 0 rgba(255,45,74,.35), 3px 0 0 rgba(20,224,255,.35);
}
.technique__steps h4 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin: .4rem 0 .5rem; }
.technique__steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  padding: 9px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: all .3s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.masonry { columns: 3 300px; column-gap: 22px; }
.tile { break-inside: avoid; margin: 0 0 22px; }
.tile.is-hidden { display: none; }
.tile__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.stereo--tile { border-radius: var(--radius); }
.tile__btn:hover .stereo, .tile__btn:focus-visible .stereo { --sep: calc(var(--sep-base) + 6px); }
.tile__btn:hover .stereo span { transform: scale(1.045); }
.tile__cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 14px 2px 4px; }
.tile__no { grid-row: span 2; font-family: var(--mono); font-size: .68rem; color: var(--faint); letter-spacing: .08em; padding-top: 6px; }
.tile__title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.tile__meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Expositions ---------- */
.events__upcoming { margin-bottom: clamp(56px, 8vw, 100px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,45,74,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,45,74,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,74,0); } }
.event { display: flex; gap: 22px; }
.event--next {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 48px); align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.5vw, 28px);
}
.event--next + .event--next { margin-top: 18px; }
.event--next .event__title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.event__img:hover { --sep: 8px; }
.event__date { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .4rem; }
.event__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 0 0 .35rem; }
.event__place { color: var(--text); margin: 0 0 .6rem; font-size: .95rem; }
.event__desc { color: var(--muted); margin: 0 0 .9rem; font-size: .95rem; max-width: 46rem; }
.event__thumb { flex: 0 0 96px; }
.event__thumb img { width: 96px; height: 128px; object-fit: cover; border-radius: 3px; filter: grayscale(.4); transition: filter .4s, box-shadow .4s; }
.event:hover .event__thumb img { filter: none; box-shadow: -4px 0 0 var(--red), 4px 0 0 var(--cyan); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline__item { display: grid; grid-template-columns: 86px 1fr; gap: 0 36px; padding: 0 0 38px; position: relative; }
.timeline__item::before {
  content: ''; position: absolute; left: 82px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--text);
  box-shadow: -2px 0 0 var(--red), 2px 0 0 var(--cyan);
}
.timeline__item.is-extra { display: none; }
body.show-all-events .timeline__item.is-extra { display: grid; }
.timeline__year { font-family: var(--serif); font-size: 1.55rem; font-style: italic; line-height: 1; padding-right: 18px; text-align: right; }
.timeline__year.is-same { visibility: hidden; }
.timeline__item .event { padding-left: 0; }

/* ---------- Journaux ---------- */
.press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clip {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.clip:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: -5px 0 0 -1px var(--red), 5px 0 0 -1px var(--cyan); }
.clip__img { margin: -26px -24px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.clip__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5); }
.clip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line-2); padding-bottom: 12px; }
.clip__journal { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.clip time { font-family: var(--mono); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.clip__title { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.18; margin: 0; }
.clip__excerpt { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.clip__link { align-self: flex-start; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__info .section__title { margin-bottom: 1.6rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact__list span { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--cyan); }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.socials a { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.socials a:hover { color: var(--text); }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 14px; color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: -3px 0 0 var(--red), 3px 0 0 var(--cyan); }
.form .btn { align-self: flex-start; }
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--cyan); }
.form__status.is-error { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer__inner { display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; color: var(--muted); }
.footer__name { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 6vw, 4rem); color: var(--text) !important; line-height: 1.05; margin-bottom: 10px !important; }
.footer__small { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; margin-top: 18px !important; color: var(--faint) !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__bottom .footer__small { margin-top: 0 !important; }
.footer__credit { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--faint) !important; }
.footer__credit a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .3s, border-color .3s, text-shadow .3s; }
.footer__credit a:hover { color: var(--text); border-color: var(--text); text-shadow: -1.5px 0 0 var(--red), 1.5px 0 0 var(--cyan); }

/* ---------- Visionneuse ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 90;
  background: #050608;
  display: grid; grid-template-rows: auto 1fr auto;
  animation: fadeIn .4s var(--ease);
}
.viewer[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.viewer__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.viewer__modes { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.viewer__modes button { background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.viewer__modes button.is-active { background: var(--text); color: var(--bg); }
.viewer__modes button[hidden] { display: none; }
.viewer__depth { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.viewer__depth input { accent-color: var(--cyan); width: 140px; }
.viewer__close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 1rem; }
.viewer__close:hover { border-color: var(--text); }
.viewer__stage { display: flex; align-items: center; justify-content: center; padding: 20px var(--gutter); min-height: 0; overflow: hidden; }
.stereo--viewer { display: inline-block; max-width: 100%; }
.stereo--viewer > img { width: auto; max-width: min(92vw, 1400px); max-height: calc(100vh - 250px); max-height: calc(100svh - 250px); }
.stereo--viewer .stereo__l, .stereo--viewer .stereo__r { transition: transform .25s ease-out; }
.stereo--viewer span { background-size: contain; }

/* mode wiggle : alternance rapide des deux vues */
.stereo--viewer.is-wiggle .stereo__l::after, .stereo--viewer.is-wiggle .stereo__r::after { display: none; }
.stereo--viewer.is-wiggle .stereo__l, .stereo--viewer.is-wiggle .stereo__r { mix-blend-mode: normal; transition: none; }
.stereo--viewer.is-wiggle .stereo__l { animation: wigL .24s steps(1) infinite; }
.stereo--viewer.is-wiggle .stereo__r { animation: wigR .24s steps(1) infinite; }
.stereo--viewer.is-wiggle.has-pair .stereo__r span { background-image: var(--img-r); }
@keyframes wigL { 0% { opacity: 1; transform: translate3d(calc(var(--sep) * -.5), 0, 0); } 50% { opacity: 0; } }
@keyframes wigR { 0% { opacity: 0; } 50% { opacity: 1; transform: translate3d(calc(var(--sep) * .5), 0, 0); } }
.stereo--viewer.is-wiggle.has-pair .stereo__l { animation-name: wigLp; }
.stereo--viewer.is-wiggle.has-pair .stereo__r { animation-name: wigRp; }
@keyframes wigLp { 0% { opacity: 1; transform: none; } 50% { opacity: 0; } }
@keyframes wigRp { 0% { opacity: 0; } 50% { opacity: 1; transform: none; } }

.pairview { display: flex; gap: 12px; align-items: center; justify-content: center; max-width: 100%; }
.pairview[hidden] { display: none; }
.pairview img { max-width: calc(46vw - 20px); max-height: calc(100vh - 250px); max-height: calc(100svh - 250px); object-fit: contain; }

.viewer__info { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px var(--gutter) 22px; border-top: 1px solid var(--line); }
.viewer__meta { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.viewer__title { margin: 2px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.15; }
.viewer__desc { margin: 0; color: var(--muted); font-size: .9rem; max-width: 60rem; }
.viewer__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 1.1rem; }
.viewer__nav:hover { border-color: var(--text); box-shadow: -3px 0 0 var(--red), 3px 0 0 var(--cyan); }
body.viewer-open { overflow: hidden; }

/* ---------- Curseur (souris uniquement) ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
  .cursor span { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid; mix-blend-mode: screen; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), transform .25s ease-out; }
  .cursor__r { border-color: var(--red); transform: translateX(calc(var(--csep, 3px) * -1)); }
  .cursor__c { border-color: var(--cyan); transform: translateX(var(--csep, 3px)); }
  .cursor.is-hover span { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  body.viewer-open .cursor { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .press__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li { padding-bottom: 24px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { gap: 10px; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 90px var(--gutter) 40px;
    background: rgba(7, 8, 10, .97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: 0; text-transform: none; color: var(--text); padding: 2px 0; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links a { animation: menuIn .6s var(--ease) backwards; }
  .nav.is-open .nav__links a:nth-child(2) { animation-delay: .05s; }
  .nav.is-open .nav__links a:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav__links a:nth-child(4) { animation-delay: .15s; }
  .nav.is-open .nav__links a:nth-child(5) { animation-delay: .2s; }
  .nav.is-open .nav__links a:nth-child(6) { animation-delay: .25s; }
  @keyframes menuIn { from { opacity: 0; transform: translateX(-20px); text-shadow: -14px 0 0 var(--red), 14px 0 0 var(--cyan); } }
  body.menu-open { overflow: hidden; }

  .bio__grid, .contact__grid { grid-template-columns: 1fr; }
  .bio__figure { position: static; max-width: 440px; }
  .technique__steps { grid-template-columns: 1fr; }
  .event--next { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .press__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .tile { margin-bottom: 16px; }
  .tile__cap { grid-template-columns: 1fr; padding-top: 10px; }
  .tile__no { grid-row: auto; padding-top: 0; }
  .tile__title { font-size: 1.12rem; }
  .timeline::before { left: 5px; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 28px; gap: 6px; }
  .timeline__item::before { left: 1px; }
  .timeline__year { text-align: left; padding: 0; }
  .timeline__year.is-same { display: none; }
  .event__thumb { flex-basis: 72px; }
  .event__thumb img { width: 72px; height: 96px; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .glasses-toggle span { display: none; }
  .glasses-toggle { padding: 0 10px; }
  .hero { padding-bottom: 96px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .viewer__bar { gap: 10px; }
  .viewer__modes button { padding: 8px 10px; font-size: .62rem; }
  .viewer__depth input { width: 100px; }
  .viewer__close { width: 40px; height: 40px; }
  .viewer__info { grid-template-columns: 1fr 1fr; }
  .viewer__info > div { grid-column: 1 / -1; grid-row: 1; }
  .viewer__nav { justify-self: start; }
  #nextBtn { justify-self: end; }
  .stereo--viewer > img { max-height: calc(100svh - 300px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Notification (mode lunettes) ---------- */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 12px 20px; font-size: .9rem;
  box-shadow: -4px 0 0 var(--red), 4px 0 0 var(--cyan), 0 20px 50px rgba(0,0,0,.6);
  animation: toastIn .5s var(--ease);
}
.toast[hidden] { display: none; }
.toast svg { width: 34px; height: 15px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.viewer__hint { margin: 6px 0 0; font-size: .82rem; color: var(--cyan); }
.viewer__depth.is-disabled { opacity: .35; }
@media (max-width: 640px) { .toast { border-radius: 14px; bottom: 16px; } }

/* =========================================================
   Commun aux trois univers (ajouts multi-univers)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sélecteur d'univers dans le menu */
.nav__worlds { display: flex; align-items: center; gap: 10px; margin-left: clamp(4px, 1vw, 14px); padding-left: clamp(10px, 1.6vw, 22px); border-left: 1px solid var(--line-2); }
.nav__worlds-label { display: none; }
.nav__links .world-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; white-space: nowrap; }
.nav__links .world-link.is-current { color: var(--text); }
/* écrans moyens : on garde seulement les points pour ne pas surcharger le menu */
@media (min-width: 861px) and (max-width: 1240px) {
  .world-link__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav__links .world-link::after { display: none; }
.world-link i { width: 11px; height: 11px; border-radius: 50%; background: var(--wc); opacity: .45; box-shadow: 0 0 0 0 var(--wc); transition: opacity .3s, box-shadow .3s, transform .3s; }
.world-link:hover i, .world-link:focus-visible i { opacity: 1; transform: scale(1.2); }
.world-link.is-current i { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wc) 30%, transparent); }

/* Image simple (univers Musique et Marc'Hoss) */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.media img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease), filter .6s; }
.bio__grid--solo { grid-template-columns: minmax(0, 820px); }

/* Vignettes vidéo */
.vthumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel-2); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vthumb__ph { padding: 24px; text-align: center; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; color: var(--text); opacity: .75; max-width: 90%; }
.vthumb__play {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .3s;
}
.vthumb__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vthumb__platform { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.tile__btn:hover .vthumb__play { transform: scale(1.1); background: rgba(0,0,0,.75); }
.tile__btn:hover .vthumb img { transform: scale(1.04); }
.vthumb--facebook:not(:has(img)) { background: linear-gradient(135deg, #1b2b4d, #0e1528); }
.vthumb--instagram:not(:has(img)) { background: linear-gradient(135deg, #5b2a6e, #a3294e 60%, #d9822b); }
.vthumb--vimeo:not(:has(img)) { background: linear-gradient(135deg, #0f3b4a, #0b2029); }

/* Visionneuse : vidéo et univers sans relief */
.videoview { width: min(92vw, 1100px); max-height: calc(100svh - 230px); aspect-ratio: var(--ratio, 16 / 9); background: #000; border-radius: 6px; overflow: hidden; }
.videoview[hidden] { display: none; }
.videoview iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer.is-video .viewer__stage { padding-top: 12px; }
.viewer__source[hidden], .viewer__modes[hidden], .viewer__depth[hidden] { display: none; }
body:not(.u-stereoscopie) .stereo--viewer > img { opacity: 1; }
body:not(.u-stereoscopie) .stereo--viewer .stereo__l, body:not(.u-stereoscopie) .stereo--viewer .stereo__r { display: none; }
body:not(.u-stereoscopie) .stereo--viewer { background: transparent; }

/* Pied de page : liens vers les autres univers */
.footer__worlds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.footer__worlds a { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.footer__worlds a:hover, .footer__worlds a[aria-current] { color: var(--text); }

@media (max-width: 860px) {
  .nav__worlds { flex-direction: column; align-items: flex-start; gap: 4px; margin: 26px 0 0; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-2); width: 100%; }
  .nav__worlds-label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .nav__links .world-link { font-family: var(--sans); font-style: normal; font-size: 1.05rem; gap: 12px; color: var(--muted); }
  .nav__links .world-link.is-current { color: var(--text); }
}
@media (max-width: 860px) { .nav__links { overflow-y: auto; justify-content: flex-start; padding-top: 100px; } }

/* Contact : une ou deux personnes */
.contact__people { display: grid; gap: 0 28px; margin-top: 2rem; }
.contact__people .contact__list { margin: 0 0 1.2rem; }
.contact__people--two { grid-template-columns: 1fr 1fr; }
.contact__person strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.contact__list--city { margin-top: 0; }
.contact__people--two .contact__list li { grid-template-columns: 1fr; gap: 2px; }
@media (max-width: 640px) { .contact__people--two { grid-template-columns: 1fr; } }
.contact__people:not(.contact__people--two) .contact__list { margin-bottom: 0; }
.contact__list--city { border-top: 0; }

/* Bandeau : univers désactivé, prévisualisé par l'admin */
.preview-bar { position: fixed; z-index: 96; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 18px; border-radius: 999px; background: #ffd43b; color: #1a1400; font: 600 .85rem/1.4 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.preview-bar a { color: inherit; }
