/* ta typo de tag (assets/fonts/TAGSTER.ttf) */
@font-face { font-family: "Tagster"; src: url("assets/fonts/TAGSTER.ttf") format("truetype"); font-display: block; }

:root {
  --bg: #000;
  --ink: #ececec;
  --muted: rgba(236, 236, 236, .5);
  --faint: rgba(236, 236, 236, .28);
  --line: rgba(255, 255, 255, .12);
  /* grunge, un peu crade : affiche de rue, machine à écrire encrassée */
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --mono: "Special Elite", "Courier New", monospace;
  --sans: "Courier Prime", "Courier New", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#defsHost { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Scène ---------- */
#scene {
  position: fixed; inset: 0;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}
body.broken #scene { cursor: default; }
/* la 3D : photo au fond, éclats de verre devant */
#gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#pane {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: manipulation;
  outline: none;
}
/* la fissure qui court sur la vitre avant qu'elle cède */
#pane .crack, #pane .crack-glow { fill: none; stroke-linecap: round; }
#pane .crack { stroke: rgba(240, 246, 248, .72); stroke-width: .8; }
#pane .crack-glow { stroke: rgba(222, 234, 240, .12); stroke-width: 3.5; }
#pane .crack-hit { fill: rgba(255, 255, 255, .5); filter: blur(5px); animation: hit .7s ease-out forwards; }
@keyframes hit { from { opacity: 1; transform-box: fill-box; } to { opacity: .25; } }
#pane.away { opacity: 0; transition: opacity .55s ease-out; pointer-events: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* indications discrètes */
.hint {
  position: fixed;
  left: 50%; bottom: max(30px, env(safe-area-inset-bottom));
  transform: translate(-50%, 6px);
  z-index: 9;
  max-width: calc(100vw - 140px);
  text-align: center;
  font: 400 12px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(236, 241, 241, .75);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hint.show { opacity: 1; transform: translate(-50%, 0); }
body.reading .hint { opacity: 0; }

#flash {
  position: fixed; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
#flash.on { animation: flash .28s ease-out; }
@keyframes flash { 0% { opacity: .2; } 100% { opacity: 0; } }

body.shake #scene { animation: shake .22s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  20% { transform: translate(-7px, 4px); }
  45% { transform: translate(5px, -4px); }
  70% { transform: translate(-2px, 2px); }
}

/* ---------- Retour (au centre de l'impact) ---------- */
#exit {
  position: fixed;
  z-index: 6;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,.03) 60%), rgba(0, 0, 0, .35);
  color: #f4f6f7;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: scale(.6);
  transition: opacity .6s var(--ease) 1s, transform .6s var(--ease) 1s, background .25s, border-color .25s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.6);
}
body.broken #exit { opacity: 1; pointer-events: auto; transform: none; }
body.reading #exit, body.closing #exit:not(.absorbing) { opacity: 0; pointer-events: none; transition-delay: 0s; }
#exit:hover, #exit:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .16); outline: none; }

/* le bouton aspire les éclats : il pulse et grossit un peu */
#exit.absorbing {
  opacity: 1 !important;
  transition: transform .4s var(--ease);
  animation: absorb .5s ease-in-out infinite alternate;
  border-color: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 40px rgba(220,240,240,.35), 0 10px 30px rgba(0,0,0,.6);
}
@keyframes absorb { from { transform: scale(1); } to { transform: scale(1.18); } }
#exit.gulp { animation: gulp .16s ease-out; }
@keyframes gulp { 0% { transform: scale(1.32); } 100% { transform: scale(1.12); } }
#exit.charged {
  animation: charge .22s ease-in forwards;
  background: radial-gradient(circle, #fff 0, rgba(230,245,240,.9) 40%, rgba(255,255,255,.2) 70%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 80px rgba(230,250,245,.8);
}
@keyframes charge { 0% { transform: scale(1.1); } 70% { transform: scale(.7); } 100% { transform: scale(.55); } }
#exit.gone { visibility: hidden; animation: none; }

/* l'explosion */
#burst { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
#burst .glow { position: absolute; inset: 0; animation: blast .7s ease-out forwards; }
@keyframes blast { 0% { opacity: 1; } 100% { opacity: 0; } }
#burst .ring {
  position: absolute;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 30px rgba(255, 255, 255, .6), inset 0 0 20px rgba(255, 255, 255, .5);
  animation: shock .7s cubic-bezier(.1, .7, .3, 1) forwards;
}
@keyframes shock { to { transform: scale(120); opacity: 0; border-width: .2px; } }
#burst i {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(190,215,215,.5) 45%, rgba(255,255,255,.85));
  box-shadow: 0 0 6px rgba(255,255,255,.6);
}

/* fondu au noir quand on quitte */
#curtain {
  position: fixed; inset: 0;
  z-index: 20;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease-in;
}
body.gone #curtain { opacity: 1; pointer-events: auto; }

/* ---------- musique de fond ---------- */
.music {
  position: fixed;
  right: 22px; bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 12;
  display: flex; flex-direction: row-reverse; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease) 1.2s;
}
.music[hidden] { display: none; }
body.broken .music { opacity: 1; pointer-events: auto; }
body.closing .music { opacity: 0; pointer-events: none; transition-delay: 0s; }
.music-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), rgba(255,255,255,.02) 60%), rgba(0, 0, 0, .4);
  color: #eef4f2;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.music-btn:hover, .music-btn:focus-visible { border-color: #fff; outline: none; }
.music-btn img { width: 62%; height: 62%; object-fit: contain; opacity: .55; transition: opacity .3s; }
.music.on .music-btn img { opacity: 1; }
/* logo par défaut : quatre barres qui dansent quand la musique joue */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { display: block; width: 3px; height: 28%; background: currentColor; opacity: .6; border-radius: 1px; }
.music.on .eq i { opacity: .95; animation: eq .8s ease-in-out infinite alternate; }
.music.on .eq i:nth-child(2) { animation-duration: .6s; animation-delay: -.2s; }
.music.on .eq i:nth-child(3) { animation-duration: .95s; animation-delay: -.5s; }
.music.on .eq i:nth-child(4) { animation-duration: .7s; animation-delay: -.35s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }
.music-panel {
  display: flex; align-items: center; gap: 10px;
  font: 400 11px var(--mono);
  letter-spacing: .06em;
  color: var(--muted);
  opacity: 0; transform: translateX(8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.music:hover .music-panel, .music:focus-within .music-panel, .music.show .music-panel {
  opacity: 1; transform: none; pointer-events: auto;
}
.music-title { white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.music-next { background: none; border: 0; color: var(--ink); font: 400 15px var(--mono); cursor: pointer; padding: 4px; }
.music-next[hidden] { display: none; }
.music-vol { width: 92px; accent-color: #e8f0ee; cursor: pointer; }

/* ---------- flèches : changer d'éclat ---------- */
.nav-arrow {
  position: fixed;
  top: 50%;
  z-index: 11;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .42);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.16), rgba(255,255,255,.02) 60%), rgba(0, 0, 0, .35);
  color: #f2f5f5;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), background .2s, border-color .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#prev { left: 28px; transform: translateX(-16px); }
#next { right: 28px; transform: translateX(16px); }
body.reading .nav-arrow { opacity: 1; pointer-events: auto; transform: none; transition-delay: .35s, .35s, 0s, 0s; }
.nav-arrow:hover, .nav-arrow:focus-visible { background: rgba(255, 255, 255, .15); border-color: #fff; outline: none; }
.nav-arrow:active { transform: scale(.92); transition-delay: 0s; }

/* ---------- Les infos, sur l'éclat choisi ---------- */
#shardInfo {
  position: fixed;
  left: 0; top: 0;
  z-index: 10;
  display: flex; flex-direction: column;
  overflow: hidden;   /* seul le texte défile : le bouton et la catégorie restent en place */
  padding: clamp(14px, 3vw, 28px) clamp(16px, 3.4vw, 32px);
  /* un léger fond sombre derrière le texte : plus confortable à lire, sans cadre visible */
  background: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,.46), rgba(0,0,0,.26) 62%, rgba(0,0,0,0) 100%);
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--rot, 0deg)) translate(var(--dx, 0px), 8px);
  transition: opacity .35s var(--ease), transform .6s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
#shardInfo.open { opacity: 1; pointer-events: auto; transform: rotate(var(--rot, 0deg)); }
/* sans WebGL : une simple carte sombre */
#shardInfo.flat { background: rgba(10, 12, 12, .9); border: 1px solid var(--line); border-radius: 4px; }
.info-close {
  position: absolute;
  top: clamp(10px, 2.4vw, 22px); right: clamp(12px, 2.6vw, 26px);
  margin: 0;
  padding: 6px 12px 5px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(6,7,7,.92);
  box-shadow: 0 0 14px 6px rgba(0,0,0,.55);
  color: var(--ink);
  font: 400 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1;
  transition: background .2s, color .2s;
}
.info-close:hover { background: var(--ink); color: #000; }
.info-close:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* le titre est gravé directement dans le verre (en 3D) : en HTML il reste pour les lecteurs d'écran */
#infoTitle {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.info-index {
  order: 1;
  font: 400 12px var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(225, 236, 233, .62);
  padding-right: 110px;      /* la place du bouton « close » : il ne recouvre jamais le texte */
  min-height: 26px;
  margin-bottom: 14px;
  flex: none;
}
.info-body {
  order: 4;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
  /* le bas du texte s'estompe : on comprend qu'il y a une suite */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  padding-bottom: 30px;
  font: 400 15.5px/1.7 var(--sans);
  color: rgba(240, 242, 240, .92);
  text-shadow: 0 0 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85), 0 1px 22px rgba(0,0,0,.7);
}
.info-body .cv-item .detail, .info-body .cv-item .when { color: rgba(228, 232, 232, .78); }
.info-body p + p { margin-top: 10px; }
.info-body .intro { font-family: var(--mono); color: rgba(240,242,240,.62); margin-bottom: 16px; }
/* petits éclats : un seul élément, centré dans le verre */
#shardInfo.is-small .info-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.single { margin: 0; }
.single .img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--faint); font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .12em;
}
.single img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single figcaption { font: 400 12px var(--mono); color: var(--muted); margin-top: 10px; letter-spacing: .06em; }
.big-link {
  display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.big-link .v { font: 400 clamp(22px, 3.4vw, 34px)/1.1 var(--mono); overflow-wrap: anywhere; }
.big-link .go { font: 400 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.big-link:hover .go { color: var(--ink); }

/* les lignes apparaissent l'une après l'autre, comme révélées dans le verre */
.info-index, .info-body > * { opacity: 0; transform: translateY(8px); }
#shardInfo.open .info-index { animation: reveal .6s var(--ease) forwards; }
#shardInfo.open .info-body > * { animation: reveal .6s var(--ease) forwards; animation-delay: calc(var(--i, 1) * 80ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 11px 18px;
  border: 1px solid var(--faint);
  border-radius: 2px;
  color: var(--ink);
  font: 400 11px var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #000; }

/* CV */
.cv-block + .cv-block { margin-top: 30px; }
.cv-block h3 {
  font: 400 10px var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.cv-item { display: grid; grid-template-columns: 118px 1fr; gap: 2px 20px; padding: 11px 0; }
/* zone de lecture étroite : la date passe au-dessus, le texte garde toute la largeur */
#shardInfo.narrow .cv-item { grid-template-columns: 1fr; gap: 3px; }
#shardInfo.narrow .cv-item .detail { grid-column: 1; }
.cv-item .when { color: var(--muted); font: 400 12px var(--mono); padding-top: 3px; }
.cv-item .what { color: var(--ink); font-weight: 700; }
.cv-item .detail { grid-column: 2; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px; font: 400 11px var(--mono); letter-spacing: .06em; }

/* Lettre */
.letter p { font-size: 16px; line-height: 1.8; color: rgba(236, 236, 236, .85); }
.letter .sig { margin-top: 24px; font-family: var(--mono); font-size: 18px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1c, #0e0e10);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--faint); font: 400 10px var(--mono); letter-spacing: .15em; text-transform: uppercase;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* une vraie image : affichée entière, à sa proportion, et cliquable */
.gallery .img.has { aspect-ratio: auto; background: none; cursor: zoom-in; transition: border-color .2s, transform .3s var(--ease); }
.gallery .img.has img { height: auto; object-fit: contain; }
.gallery .img.has:hover, .gallery .img.has:focus-visible { border-color: rgba(255,255,255,.7); transform: scale(1.015); outline: none; }
.gallery figcaption { font: 400 11px var(--mono); color: var(--muted); margin-top: 8px; letter-spacing: .06em; }

/* Sons */
.tracks { list-style: none; }
.track {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.track:first-child { border-top: 1px solid var(--line); }
.play {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--faint); background: transparent; color: var(--ink);
  cursor: pointer; font-size: 11px;
  transition: background .2s, color .2s;
}
.play:hover, .track.playing .play { background: var(--ink); color: #000; }
.play:disabled { opacity: .3; cursor: not-allowed; background: transparent; color: var(--ink); }
.track .t { color: var(--ink); font-family: var(--mono); }
.track .m { color: var(--muted); font: 400 11px var(--mono); }
.track .bar { grid-column: 2 / 4; height: 1px; background: var(--line); overflow: hidden; display: none; }
.track.playing .bar { display: block; }
.track .bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.track a.ext { color: var(--muted); font: 400 11px var(--mono); }

/* Contact */
.contact-links { list-style: none; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: padding .3s var(--ease);
}
.contact-links li:first-child a { border-top: 1px solid var(--line); }
.contact-links .k { font: 400 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-links .v { font-family: var(--mono); font-size: clamp(17px, 2.6vw, 22px); text-align: right; overflow-wrap: anywhere; }
.contact-links a:hover { padding-left: 8px; }

@media (max-width: 560px) {
  .hint { bottom: auto; top: max(22px, env(safe-area-inset-top)); max-width: calc(100vw - 40px); font-size: 11px; }
  .nav-arrow { top: auto; bottom: max(22px, env(safe-area-inset-bottom)); margin-top: 0; }
  #prev { left: calc(50% - 70px); }
  #next { right: calc(50% - 70px); }
  .cv-item { grid-template-columns: 1fr; }
  .cv-item .detail { grid-column: 1; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #exit.absorbing { animation: none; }
}

/* ---------- la fin : le noir se referme sur le point d'impact ---------- */
#iris { position: fixed; inset: 0; z-index: 19; pointer-events: none; display: none; }
#pane .crack-hit.heal { animation: none; opacity: .35; }
#endNote {
  position: fixed; inset: 0; z-index: 21;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: #000; color: rgba(236, 240, 240, .8);
  font: 400 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  opacity: 0; transition: opacity 1.2s ease;
}
#endNote.show { opacity: 1; }
#endNote p:first-child { font-size: 22px; letter-spacing: .3em; }
#endNote .small { font-size: 11px; color: rgba(236, 240, 240, .45); }
#endNote button {
  margin-top: 18px; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  color: rgba(236,240,240,.75); font: inherit; font-size: 11px; padding: 8px 16px; cursor: pointer;
}
#endNote button:hover { border-color: #fff; color: #fff; }

/* la musique démarre dès l'arrivée : son bouton est là, discret */
body.music-early .music { opacity: .5; pointer-events: auto; transition-delay: 1.5s; }
body.music-early .music:hover, body.music-early .music:focus-within { opacity: 1; }
body.music-early.broken .music { opacity: 1; }
body.closing .music { opacity: 0 !important; pointer-events: none; }

/* ---------- la playlist ---------- */
.embed {
  display: block; width: 100%; height: clamp(380px, 66vh, 720px);
  border: 0; border-radius: 12px; margin-bottom: 18px;
  filter: grayscale(1) contrast(1.05);
  background: rgba(0,0,0,.35);
}
.embed-sp { overflow: hidden; }
.embed-sp > * { display: block; width: 100% !important; height: 100% !important; margin: 0; border: 0; border-radius: 0; filter: none; }
.playlist { list-style: none; margin-bottom: 18px; }
.playlist li {
  display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.playlist .n { font: 400 11px var(--mono); color: var(--muted); }
.playlist .t { font-weight: 700; }
.playlist .a { font: 400 12px var(--mono); color: rgba(228, 232, 232, .7); }
.playlist .ext { color: var(--ink); text-decoration: none; }

/* planche de comparaison des titres (?typos) */
#typos {
  position: fixed; inset: 0; z-index: 60; overflow: auto;
  background: #050505; padding: 28px 16px 60px;
  display: grid; justify-content: center; gap: 26px;
  font: 400 12px var(--mono); color: rgba(236,240,240,.7); letter-spacing: .08em;
}
#typos .typos-head { text-transform: uppercase; letter-spacing: .16em; color: #fff; }
#typos section { display: grid; gap: 8px; }
#typos h3 { font: inherit; color: rgba(236,240,240,.85); }
#typos canvas { max-width: calc(100vw - 32px); height: auto; border-radius: 6px; display: block; }

/* le verre pilé au point d'impact apparaît d'un coup */
#pane .crush { animation: crush .09s ease-out; }
@keyframes crush { from { opacity: 0; } }

/* la fin : l'éclair blanc de l'explosion, puis le noir d'un coup */
#flash.boom { animation: boomflash .6s ease-out forwards; z-index: 18; }
@keyframes boomflash { 0% { opacity: .9; } 35% { opacity: .55; } 100% { opacity: 0; } }
body.cut #curtain { transition: opacity .13s ease-in; }

/* la légende lisible sous chaque tag gravé : sert de menu */
#caps { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#caps .cap {
  position: absolute; left: 0; top: 0;
  padding: 3px 9px 2px;
  border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: rgba(242, 246, 246, .95);
  font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  cursor: pointer; opacity: 0;
  transition: background .2s, color .2s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
#caps .cap.on { background: rgba(255, 255, 255, .92); color: #000; text-shadow: none; }
body.reading #caps, body.closing #caps { display: none; }

/* ---------- l'image en grand ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: calc(100vw - 32px); }
#lightbox img {
  max-width: min(92vw, 1400px); max-height: calc(100vh - 120px); width: auto; height: auto;
  display: block; box-shadow: 0 20px 80px rgba(0,0,0,.8); cursor: default;
}
#lightbox img.in { animation: lbin .45s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.96); } }
#lightbox figcaption { font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(236,240,240,.75); text-align: center; }
#lightbox .lb-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  padding: 7px 14px 6px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  background: rgba(0,0,0,.6); color: #eef2f2; font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
#lightbox .lb-close:hover { background: #fff; color: #000; }
#lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.5);
  color: #fff; font: 400 26px/1 var(--mono); cursor: pointer;
}
#lightbox .lb-nav:hover { border-color: #fff; }
#lightbox .lb-prev { left: 16px; }
#lightbox .lb-next { right: 16px; }
#lightbox.single .lb-nav { display: none; }
@media (max-width: 560px) {
  #lightbox .lb-nav { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  #lightbox .lb-prev { left: calc(50% - 64px); }
  #lightbox .lb-next { right: calc(50% - 64px); }
  #lightbox img { max-height: calc(100vh - 190px); }
}
/* zone de lecture étroite : une image par ligne, en grand */
#shardInfo.narrow .gallery { grid-template-columns: 1fr; }

/* ---------- cartes de profil (réseaux, contact) ---------- */
.profiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.profile {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  background: rgba(0,0,0,.45);
  color: var(--ink); text-decoration: none;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.profile:hover, .profile:focus-visible { background: rgba(255,255,255,.95); color: #000; border-color: #fff; transform: translateY(-2px); outline: none; text-shadow: none; }
.p-ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; }
.p-ic svg { width: 24px; height: 24px; }
.p-txt { display: grid; gap: 2px; min-width: 0; }
.p-name { font: 400 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.p-handle { font: 700 16px var(--sans); overflow-wrap: anywhere; }
.p-go { font: 400 11px var(--mono); letter-spacing: .1em; opacity: .7; }

/* ---------- la question du son, une fois la vitre cassée ---------- */
#soundAsk {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,.25) 70%);
  opacity: 0; transition: opacity .45s var(--ease);
}
#soundAsk.open { opacity: 1; }
#soundAsk.gone { opacity: 0; pointer-events: none; }
#soundAsk .sa-card {
  position: relative;
  width: min(380px, 100%);
  padding: 30px 28px 26px;
  text-align: center;
  color: var(--ink);
  /* un éclat de verre dépoli, coupé en biais */
  background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 55%, rgba(255,255,255,.09));
  backdrop-filter: blur(14px) saturate(.6); -webkit-backdrop-filter: blur(14px) saturate(.6);
  border: 1px solid rgba(255,255,255,.28);
  clip-path: polygon(4% 0, 100% 3%, 97% 100%, 0 94%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transform: translateY(14px) rotate(-1.2deg) scale(.96);
  transition: transform .6s var(--ease);
}
#soundAsk.open .sa-card { transform: rotate(-1.2deg); }
#soundAsk .sa-kicker { font: 400 10px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
#soundAsk .sa-title {
  font: 400 clamp(46px, 12vw, 64px)/1 "Tagster", "Sedgwick Ave", cursive;
  margin: 0 0 10px; color: #f4f4f4;
  text-shadow: 0 0 18px rgba(255,255,255,.35), 0 2px 0 rgba(0,0,0,.6);
}
#soundAsk .sa-text { font: 400 12px/1.6 var(--mono); color: rgba(236,240,240,.75); margin: 0 0 20px; }
#soundAsk .sa-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#soundAsk button {
  font: 400 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); background: transparent; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
#soundAsk .sa-yes { background: #f2f2f2; color: #000; border-color: #f2f2f2; }
#soundAsk button:hover, #soundAsk button:focus-visible { outline: none; border-color: #fff; }
#soundAsk .sa-yes:hover, #soundAsk .sa-yes:focus-visible { background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.4); }
#soundAsk .sa-no:hover, #soundAsk .sa-no:focus-visible { background: rgba(255,255,255,.12); }


/* ---------- le morceau en cours, en haut à droite ---------- */
#nowPlaying {
  position: fixed; z-index: 12;
  top: max(16px, env(safe-area-inset-top)); right: clamp(12px, 2.4vw, 24px);
  display: grid; gap: 8px;
  width: 216px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
/* le lecteur YouTube : visible (YouTube l'exige), 200 × 200 */
#nowPlaying .np-video { width: 200px; height: 200px; border-radius: 8px; overflow: hidden; background: #000; }
#nowPlaying .np-video iframe { display: block; width: 200px; height: 200px; border: 0; }
body.no-yt #nowPlaying .np-video { display: none; }
#nowPlaying .np-row { display: flex; align-items: center; gap: 10px; padding: 0 4px 2px; min-width: 0; }
body.broken #nowPlaying.on { opacity: 1; transform: none; pointer-events: auto; }
body.closing #nowPlaying { opacity: 0 !important; }

body.broken #nowPlaying.on:not(.playing) { opacity: .6; }
#nowPlaying .np-txt { display: grid; min-width: 0; line-height: 1.25; }
#nowPlaying .np-title { font: 700 12px var(--mono); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nowPlaying .np-artist { font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nowPlaying .np-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
#nowPlaying .np-eq i { width: 2px; height: 30%; background: currentColor; opacity: .7; }
#nowPlaying.playing .np-eq i { animation: eq .8s ease-in-out infinite alternate; }
#nowPlaying.playing .np-eq i:nth-child(2) { animation-duration: .6s; animation-delay: -.2s; }
#nowPlaying.playing .np-eq i:nth-child(3) { animation-duration: .9s; animation-delay: -.45s; }
@media (max-width: 640px) {
  #nowPlaying { transform-origin: top right; }
  .hint { top: max(70px, env(safe-area-inset-top)); }
}
/* le titre est en haut : pas besoin de le répéter à côté du bouton */
body:has(#nowPlaying) .music-title { display: none; }

/* ---------- l'éclat Playlist : le même lecteur que l'ambiance ---------- */
.pl-now {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center;
  padding: 14px 16px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  background: rgba(0,0,0,.35);
}
.pl-now .pn-play, .pl-now .pn-next {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--ink); font: 400 13px var(--mono);
}
.pl-now .pn-play { background: #f2f2f2; color: #000; border-color: #f2f2f2; }
.pl-now .pn-next { border: 0; font-size: 18px; }
.pl-now .pn-txt { display: grid; min-width: 0; line-height: 1.3; }
.pl-now .pn-k { font: 400 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pl-now .pn-t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-now .pn-a { font: 400 12px var(--mono); color: rgba(228,232,232,.75); }
.pl-now .pn-bar { grid-column: 1 / -1; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.pl-now .pn-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .4s linear; }
.pl-now .pn-note { grid-column: 1 / -1; font: 400 10px var(--mono); letter-spacing: .08em; color: var(--muted); }
.pl-pick li { display: block; padding: 0; }
.pl-pick .pl-row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: baseline; width: 100%;
  padding: 10px 6px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: background .2s;
}
.pl-pick .pl-row:hover, .pl-pick .pl-row:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.pl-pick li.on .pl-row { background: rgba(255,255,255,.14); }
.pl-pick li.on .n { color: var(--ink); }
.pl-pick li.playing .n { font-size: 0; }
.pl-pick li.playing .n::before { content: "♪"; font-size: 13px; }
.pl-pick .a { text-align: right; }
.pl-now .pn-volw { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pl-now .pn-vol { flex: 1; max-width: 260px; accent-color: #e8f0ee; cursor: pointer; }

#nowPlaying .np-video iframe { pointer-events: none; }   /* on pilote avec les boutons du site */
/* un éclat est ouvert : la carte descend en bas à droite (au-dessus du bouton du son),
   pour ne jamais cacher le bouton « close » ni le titre */
#nowPlaying { transition: opacity .5s var(--ease), transform .5s var(--ease), top .6s var(--ease); }
body.reading #nowPlaying { top: calc(100vh - 250px - max(84px, env(safe-area-inset-bottom) + 62px)); }
/* téléphone, éclat ouvert : la carte se réduit à sa ligne titre/artiste pour laisser lire */
@media (max-width: 640px) {
  body.reading #nowPlaying {
    top: auto; bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px));
    width: auto; max-width: calc(100vw - 32px); padding: 6px 10px;
  }
  body.reading #nowPlaying .np-video { height: 0; }
}
/* carte compacte : le lecteur au minimum autorisé par YouTube (200 × 200), presque sans marge */
#nowPlaying { width: 202px; padding: 1px; gap: 0; border-radius: 10px; border-color: rgba(255,255,255,.16); }
#nowPlaying .np-video { border-radius: 9px 9px 0 0; }
#nowPlaying .np-row { padding: 6px 8px 7px; gap: 8px; }
#nowPlaying .np-txt { display: flex; align-items: baseline; gap: 6px; }
#nowPlaying .np-title { font-size: 11px; flex: 0 1 auto; }
#nowPlaying .np-artist { font-size: 9px; flex: 1 1 0; }
body.reading #nowPlaying { top: calc(100vh - 232px - max(84px, env(safe-area-inset-bottom) + 62px)); }
@media (max-width: 640px) { body.reading #nowPlaying { padding: 4px 6px; } }
/* carte rectangulaire compacte : petite vidéo à gauche, titre et artiste à droite */
#nowPlaying {
  display: flex; align-items: center; gap: 10px;
  width: auto; max-width: min(300px, calc(100vw - 24px));
  padding: 5px 12px 5px 5px; border-radius: 10px;
}
#nowPlaying .np-video { width: 128px; height: 72px; flex: none; border-radius: 6px; }
#nowPlaying .np-video iframe { width: 128px; height: 72px; }
#nowPlaying .np-row { padding: 0; gap: 8px; min-width: 0; flex: 1 1 auto; }
#nowPlaying .np-txt { display: grid; gap: 2px; }
#nowPlaying .np-title { font-size: 12px; }
#nowPlaying .np-artist { font-size: 9px; }
body.reading #nowPlaying { top: calc(100vh - 82px - max(84px, env(safe-area-inset-bottom) + 62px)); }
@media (max-width: 640px) {
  body.reading #nowPlaying { top: auto; padding: 5px 12px 5px 5px; }
  body.reading #nowPlaying .np-video { width: 0; height: 0; }
}
/* encore plus compact : vidéo 96 × 54, texte plus petit */
#nowPlaying { gap: 8px; max-width: min(240px, calc(100vw - 24px)); padding: 4px 10px 4px 4px; border-radius: 8px; }
#nowPlaying .np-video { width: 96px; height: 54px; border-radius: 5px; }
#nowPlaying .np-video iframe { width: 96px; height: 54px; }
#nowPlaying .np-title { font-size: 11px; }
#nowPlaying .np-artist { font-size: 8.5px; }
#nowPlaying .np-eq { height: 10px; }
body.reading #nowPlaying { top: calc(100vh - 62px - max(84px, env(safe-area-inset-bottom) + 62px)); }
/* la pochette en carré, collée à gauche (on recadre le milieu de la vidéo), carte plus courte */
#nowPlaying { max-width: min(200px, calc(100vw - 24px)); padding: 4px 10px 4px 4px; }
#nowPlaying .np-video { width: 54px; height: 54px; position: relative; }
#nowPlaying .np-video iframe { position: absolute; left: -21px; top: 0; width: 96px; height: 54px; }
#nowPlaying .np-txt { max-width: 118px; }

/* le lecteur un peu en retrait (il revient à 100 % au survol) */
body.broken #nowPlaying.on { opacity: .72; }
body.broken #nowPlaying.on:not(.playing) { opacity: .45; }
body.broken #nowPlaying.on:hover { opacity: 1; }
/* la flèche « suivant », qui apparaît au survol du lecteur */
#nowPlaying .np-skip {
  flex: none; width: 26px; height: 26px; margin-left: -2px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: var(--ink);
  font: 400 14px/1 var(--mono); cursor: pointer; display: grid; place-items: center;
  opacity: 0; width: 0; margin: 0; padding: 0; border-width: 0; overflow: hidden;
  transition: opacity .25s var(--ease), width .25s var(--ease), margin .25s var(--ease);
}
#nowPlaying:hover .np-skip, #nowPlaying:focus-within .np-skip { opacity: 1; width: 26px; margin-left: 2px; border-width: 1px; }
#nowPlaying .np-skip:hover, #nowPlaying .np-skip:focus-visible { background: #f2f2f2; color: #000; outline: none; }
@media (hover: none) { #nowPlaying .np-skip { opacity: 1; width: 26px; margin-left: 2px; border-width: 1px; } }

/* le bouton du centre (il ferme le site) : « BREAK THIS FUCKING LOOP », tagué dans un disque de verre */
#exit {
  width: 112px; height: 112px;
  margin: -56px 0 0 -56px;
  padding: 0;
}
#exit .ex-txt {
  display: block;
  font: 400 15px/1.02 "Tagster", "Sedgwick Ave", cursive;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  color: rgba(244, 246, 247, .88);
  text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 0 12px rgba(255,255,255,.18);
  transform: rotate(-6deg);
  transition: color .25s, text-shadow .25s;
}
#exit:hover .ex-txt, #exit:focus-visible .ex-txt { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 0 16px rgba(255,255,255,.55); }
@media (max-width: 560px) {
  #exit { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
  #exit .ex-txt { font-size: 13px; }
}
#exit .ex-txt { font-size: 19px; line-height: .98; }
@media (max-width: 560px) { #exit .ex-txt { font-size: 16px; } }

/* le bouton central : plus de disque, juste « BREAK THIS FUCKING LOOP » en cercle, qui tourne */
#exit {
  width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border: 0; border-radius: 50%;
  background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
#exit:hover, #exit:focus-visible { background: none; border: 0; }
#exit .ex-txt { display: none; }
#exit .ex-ring {
  width: 100%; height: 100%; overflow: visible;
  animation: exitSpin var(--spin, 80s) linear infinite;
  animation-direction: var(--spin-dir, normal);
}
#exit .ex-ring text {
  font: 400 15px "Tagster", "Sedgwick Ave", cursive;
  fill: rgba(244, 246, 247, .85);
  letter-spacing: .02em;
  paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2px;
  transition: fill .25s;
}
#exit:hover .ex-ring text, #exit:focus-visible .ex-ring text { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
@keyframes exitSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #exit .ex-ring { animation: none; } }
@media (max-width: 560px) { #exit { width: 104px; height: 104px; margin: -52px 0 0 -52px; } }
#exit.charged { background: none; box-shadow: none; }

/* ---------- Galeries (covers, design) : de grandes images, chacune visible en entier ---------- */
#shardInfo .gallery { gap: 18px; align-items: start; }
#shardInfo .gallery figure { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#shardInfo .gallery .img.has { width: fit-content; max-width: 100%; }
#shardInfo .gallery .img.has img {
  width: auto; max-width: 100%;
  max-height: calc(var(--bodyh, 70vh) - 60px);   /* la place de la légende : l'image entière reste à l'écran */
}
#shardInfo .gallery figcaption { align-self: stretch; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Bouton du son : ton image remplit tout le rond ---------- */
.music-btn:has(img) { overflow: hidden; padding: 0; background: #000; }
.music-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: .6; transition: opacity .3s, transform .4s var(--ease); }
.music.on .music-btn img { opacity: 1; }
.music-btn:hover img { opacity: 1; transform: scale(1.06); }

/* le bouton du son, plus gros : ton image se voit bien */
.music-btn:has(img) { width: 68px; height: 68px; border-color: rgba(255,255,255,.55); box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.music-btn:has(img) img { opacity: .85; }
.music.on .music-btn:has(img) img, .music-btn:has(img):hover img { opacity: 1; }
@media (max-width: 560px) { .music-btn:has(img) { width: 56px; height: 56px; } }

/* la carte de la musique reste au-dessus du gros bouton du son */
@media (min-width: 641px) {
  body.reading #nowPlaying { top: calc(100vh - 62px - max(104px, env(safe-area-inset-bottom) + 82px)); }
}

/* bouton du son : coupé = plus sombre ; survol = il s'allume, grossit et un halo apparaît */
.music-btn:has(img) { position: relative; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.music-btn:has(img) img { transition: filter .4s var(--ease), opacity .4s, transform .5s var(--ease); }
.music:not(.on) .music-btn:has(img) img { filter: brightness(.45) grayscale(.35); opacity: 1; }
.music.on .music-btn:has(img) img { filter: none; opacity: 1; }
.music-btn:has(img):hover, .music-btn:has(img):focus-visible {
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 22px rgba(255,255,255,.35), 0 6px 22px rgba(0,0,0,.5);
}
.music-btn:has(img):hover img, .music-btn:has(img):focus-visible img { filter: brightness(1.1) contrast(1.05); transform: scale(1.12) rotate(-4deg); }
.music:not(.on) .music-btn:has(img):hover img { filter: brightness(.8) grayscale(.15); }
.music-btn:has(img):active { transform: scale(.96); }

/* nouveau logo sur fond blanc : le rond est blanc ; coupé = plus sombre */
.music-btn:has(img) { background: #fff; }
.music:not(.on) .music-btn:has(img) img { filter: brightness(.55) grayscale(.2); }
.music:not(.on) .music-btn:has(img) { background: #8a8a8a; }
.music:not(.on) .music-btn:has(img):hover img { filter: brightness(.85); }
.music.on .music-btn:has(img) img { filter: none; }
.music.on .music-btn:has(img):hover img { filter: brightness(1.05) contrast(1.05); }

/* ---------- Galerie en parties (Design / Covers) : on voit tout de suite ce qui est quoi ---------- */
.gal-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 6px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.gal-head + .gallery { margin-bottom: 34px; }
.gal-name { font: 400 clamp(26px, 3.4vw, 38px)/1 "Tagster", "Sedgwick Ave", cursive; color: #f2f5f5; letter-spacing: .02em; }
.gal-count { font: 400 11px var(--mono); letter-spacing: .2em; color: var(--muted); }
.gal-head.is-covers::after { content: "♪"; margin-left: auto; font-size: 18px; color: rgba(255,255,255,.55); }

/* Design : affiches posées à plat, cadre fin */
#shardInfo .gallery.is-design .img.has { border: 1px solid rgba(255,255,255,.35); padding: 6px; background: rgba(0,0,0,.35); }

/* Covers : une pochette, avec le disque vinyle qui dépasse à droite */
#shardInfo .gallery.is-covers figure { align-items: flex-start; }
.sleeve { position: relative; width: fit-content; max-width: 82%; margin-right: 18%; }
.sleeve .img.has { position: relative; z-index: 1; box-shadow: 6px 0 18px rgba(0,0,0,.6); border-radius: 1px; }
.vinyl {
  position: absolute; top: 4%; bottom: 4%; aspect-ratio: 1; right: -16%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0b0b0b 0 3%, transparent 3.2%),
    radial-gradient(circle, transparent 0 15%, rgba(0,0,0,.25) 15.5% 16.5%, transparent 17%),
    var(--label, none) center / 32% 32% no-repeat,
    repeating-radial-gradient(circle, #121212 0 1.2px, #1d1d1d 1.6px 2.6px),
    #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 16px rgba(0,0,0,.6);
  transition: right .5s var(--ease), transform .9s var(--ease);
}
/* le reflet sur le disque */
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.12) 14%, transparent 20% 60%, rgba(255,255,255,.08) 64%, transparent 70%); }
/* au survol, le disque sort un peu plus et tourne */
.sleeve:hover .vinyl, .sleeve:focus-within .vinyl { right: -30%; transform: rotate(160deg); }
#shardInfo .gallery.is-covers figcaption { text-align: left; padding-left: 2px; }
#shardInfo .gallery.is-covers figcaption::before { content: "♪ "; color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .vinyl { transition: none; } .sleeve:hover .vinyl { transform: none; } }
/* disque plus visible sur le fond sombre */
.vinyl {
  right: -22%;
  background:
    radial-gradient(circle, #050505 0 2.6%, transparent 2.9%),
    radial-gradient(circle, transparent 0 16%, rgba(255,255,255,.35) 16.4% 17%, transparent 17.4%),
    var(--label, none) center / 33% 33% no-repeat,
    repeating-radial-gradient(circle, #2b2b2b 0 1.4px, #191919 1.8px 3px),
    #222;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), inset 0 0 0 5px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.7), 0 6px 22px rgba(0,0,0,.7);
}
.vinyl::after { background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.28) 13%, transparent 19% 58%, rgba(255,255,255,.2) 63%, transparent 69%); }
.sleeve:hover .vinyl, .sleeve:focus-within .vinyl { right: -34%; }
.gal-name { font-size: clamp(34px, 4.2vw, 54px); }
.gal-count { font-size: 12px; color: rgba(240,242,240,.6); }
.gal-head { border-bottom-color: rgba(255,255,255,.3); }
#shardInfo .gallery.is-covers figcaption { padding-left: 6px; }

/* ---------- Bouton du son animé (vidéo) : plus petit ; figé et plus sombre quand le son est coupé ---------- */
.music-btn:has(video) {
  width: 52px; height: 52px; padding: 0; overflow: hidden; position: relative;
  background: #f4f3ef;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.music-btn .icon-vid {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%;
  pointer-events: none;
  transition: filter .4s var(--ease), transform .5s var(--ease);
}
.music:not(.on) .music-btn .icon-vid { filter: brightness(.55) grayscale(.2); }
.music:not(.on) .music-btn:has(video) { background: #8a8a8a; }
.music.on .music-btn .icon-vid { filter: none; }
.music-btn:has(video):hover, .music-btn:has(video):focus-visible {
  border-color: #fff; transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 22px rgba(255,255,255,.35), 0 6px 22px rgba(0,0,0,.5);
}
.music-btn:has(video):hover .icon-vid { transform: scale(1.06); }
.music:not(.on) .music-btn:has(video):hover .icon-vid { filter: brightness(.85); }
.music-btn:has(video):active { transform: scale(.96); }
@media (max-width: 560px) { .music-btn:has(video) { width: 46px; height: 46px; } }
/* logo du son encore plus petit */
.music-btn:has(video) { width: 42px; height: 42px; }
@media (max-width: 560px) { .music-btn:has(video) { width: 38px; height: 38px; } }

/* ---------- last shyt : le fil des dernières actus ---------- */
.feed { display: grid; gap: 30px; }
.post { position: relative; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
.post-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 11px var(--mono); letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45); color: #f2f5f5; background: rgba(0,0,0,.35);
}
.post-dot { width: 7px; height: 7px; border-radius: 50%; background: #f2f5f5; }
.post.is-first .post-dot { animation: postPulse 1.6s ease-in-out infinite; }
@keyframes postPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
.post.is-soon .post-tag { border-style: dashed; color: rgba(240,242,240,.8); }
.post.is-soon .post-dot { background: transparent; border: 1px solid rgba(240,242,240,.8); }
.post-date { font: 400 11px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.post-img { width: fit-content; max-width: 100%; cursor: zoom-in; border: 1px solid rgba(255,255,255,.35); padding: 6px; background: rgba(0,0,0,.35); transition: border-color .2s, transform .3s var(--ease); }
.post-img img { display: block; max-width: 100%; height: auto; max-height: calc(var(--bodyh, 70vh) - 120px); }
.post-img:hover, .post-img:focus-visible { border-color: rgba(255,255,255,.8); transform: scale(1.01); outline: none; }
.post-title { font: 400 clamp(26px, 3.2vw, 38px)/1.1 "Tagster", "Sedgwick Ave", cursive; margin: 12px 0 2px; color: #f2f5f5; letter-spacing: .02em; }
.post-text { color: rgba(240,242,240,.82); margin-top: 4px; }

/* le teasing « soon » : un son qui charge, le titre caché, le tampon */
.teaser {
  position: relative; overflow: hidden;
  max-width: 520px; height: 150px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(0,0,0,.45);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px;
}
.teaser::before {   /* une image floutée derrière, si tu en mets une */
  content: ""; position: absolute; inset: -20px;
  background: var(--tease, none) center / cover no-repeat;
  filter: blur(14px) grayscale(.4) brightness(.6); opacity: .8;
}
.tease-wave { position: absolute; left: 16px; right: 16px; top: 16px; height: 70px; display: flex; align-items: center; gap: 4px; }
.tease-wave i {
  flex: 1; height: var(--h); border-radius: 2px;
  background: rgba(240,242,240,.55);
  transform-origin: center; animation: teaseWave 1.4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes teaseWave { 0%, 100% { transform: scaleY(.25); opacity: .35; } 50% { transform: scaleY(1); opacity: .9; } }
.tease-title { position: relative; font: 400 20px/1.2 var(--mono); color: #f2f5f5; letter-spacing: .04em; }
.tease-title.redacted { color: #050505; text-shadow: none; background: #050505; width: fit-content; padding: 0 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); user-select: none; }
.stamp {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font: 400 clamp(34px, 4.5vw, 52px)/1 "Tagster", "Sedgwick Ave", cursive;
  color: #f2f5f5; letter-spacing: .04em;
  padding: 4px 14px 6px; border: 3px solid #f2f5f5; border-radius: 6px;
  text-shadow: 0 0 12px rgba(0,0,0,.8); box-shadow: 0 0 18px rgba(0,0,0,.6), inset 0 0 14px rgba(0,0,0,.4);
  background: rgba(0,0,0,.25);
  animation: stampIn .7s cubic-bezier(.2,1.6,.4,1) both; animation-delay: .5s;
}
@keyframes stampIn { from { transform: translateY(-50%) rotate(-12deg) scale(2.2); opacity: 0; } to { transform: translateY(-50%) rotate(-12deg) scale(1); opacity: 1; } }
@media (max-width: 560px) { .teaser { height: 130px; } .stamp { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .tease-wave i, .post.is-first .post-dot, .stamp { animation: none; } }

/* teasing de l'EP : le gros « EP » en creux, le titre caché, le tampon SOON (sans animation de son) */
.teaser { height: 170px; }
.tease-big {
  position: absolute; left: 14px; top: 50%; transform: translateY(-58%);
  font: 400 clamp(84px, 11vw, 120px)/1 "Tagster", "Sedgwick Ave", cursive;
  color: transparent; -webkit-text-stroke: 1.5px rgba(240,242,240,.7);
  letter-spacing: .04em; pointer-events: none;
}
@media (max-width: 560px) { .teaser { height: 150px; } }
/* la cover floutée derrière le teasing : on devine les couleurs et les formes, pas les détails */
.teaser::before { filter: blur(9px) brightness(.72) saturate(1.15); opacity: 1; transform: scale(1.05); }
.teaser[style*="--tease"] { border-color: rgba(255,255,255,.4); }
