/* ===== Base ===== */
:root {
  --or: #e6b422;
  --or-clair: #fff3b0;
  --or-fonce: #b8860b;
  --noir: #050505;
  --texte: #fbefc2;
  --fond-hero: url("assets/covers/moiv2.png");
  --descente: 444px; /* descend vinyle + pochettes (ex. 250px) pour laisser le visage visible */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--noir); color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: var(--noir); isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: calc(130px + var(--descente)) 20px 30px; user-select: none;
}
/* La photo est sur un calque dont la hauteur reste celle d'origine (--hero-h0, mesurée par app.js) :
   même si le panneau s'ouvre et allonge la page (mobile), l'image ne change ni de taille ni de cadrage. */
.hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: var(--hero-h0, 100%);
  background: var(--fond-hero) center / cover no-repeat; pointer-events: none; }
/* voile sombre uniquement sous la zone de la signature : le haut de la photo (signature et sa droite) reste net */
.hero-filtre { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, transparent 240px, rgba(0,0,0,.35) 420px, rgba(0,0,0,.35) 100%); }
.hero > * { position: relative; }
.hero-filtre { position: absolute; }

/* ===== Vinyle ===== */
@keyframes rotation-vinyle { from { transform: translateZ(9px) rotateZ(0deg); } to { transform: translateZ(9px) rotateZ(360deg); } }
.vinyle-zone { display: flex; justify-content: center; }
.scene-vinyle { position: relative; width: 330px; height: 330px; perspective: 800px; margin-bottom: -50px; }
.vinyle-wrap {
  position: relative; width: 330px; height: 330px; border-radius: 50%;
  transform-style: preserve-3d; --incl: 48deg; transform: rotateX(var(--incl));
  cursor: pointer; transition: transform .35s ease;
  box-shadow: 0 10px 18px rgba(0,0,0,.98), 0 32px 50px rgba(0,0,0,.92), 0 50px 85px rgba(0,0,0,.85), 0 0 32px rgba(230,180,34,.25);
}
.vinyle-wrap::before { content: ""; position: absolute; inset: 10px -14px -32px -14px; border-radius: 50%; transform: translateZ(-8px);
  background: radial-gradient(circle, rgba(0,0,0,.94) 45%, rgba(0,0,0,.48) 70%, transparent 82%); filter: blur(15px); pointer-events: none; }
.vinyle-wrap:hover { --incl: 42deg; transform: rotateX(var(--incl)); }
.vinyle-wrap:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 8px; }

.tranche { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.tranche:nth-child(1) { transform: translateZ(1px);   background: #2a1b00; }
.tranche:nth-child(2) { transform: translateZ(2.2px); background: #3b2701; }
.tranche:nth-child(3) { transform: translateZ(3.4px); background: #5a3d03; }
.tranche:nth-child(4) { transform: translateZ(4.6px); background: #8a6305; }
.tranche:nth-child(5) { transform: translateZ(5.8px); background: #b8860b; }
.tranche:nth-child(6) { transform: translateZ(7px);   background: #d8a521; }
.tranche:nth-child(7) { transform: translateZ(8.2px); background: #f0c64a; }

.disque-vinyle { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(9px); background: #7a5503;
  box-shadow: 0 0 0 1px #000, inset 0 1px 2px rgba(255,245,190,.55);
  animation: rotation-vinyle 12s linear infinite; transition: box-shadow .5s; will-change: transform; backface-visibility: hidden; }
.disque-vinyle.en-lecture { animation-duration: 5s; box-shadow: 0 0 0 1px #000, 0 0 48px rgba(255,200,40,.65); }
.disque-vinyle > * { position: absolute; border-radius: 50%; pointer-events: none; }
.d-carbone { inset: 0; background: radial-gradient(circle closest-side, #a97a0a 0, #d8a521 38%, #e6b832 62%, #c8961a 90%, #8a6305 100%); }
.d-sillons { inset: 0;
  background: repeating-radial-gradient(circle closest-side at center, rgba(60,38,0,.30) 0 .6px, rgba(255,240,170,.12) .6px 1.2px, rgba(0,0,0,0) 1.2px 1.8px);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 39.5%, #000 40.5% 95.5%, transparent 96.5%);
          mask: radial-gradient(circle closest-side, transparent 0 39.5%, #000 40.5% 95.5%, transparent 96.5%); }
.d-pistes { inset: 0;
  background: radial-gradient(circle closest-side, transparent 0 49.6%, rgba(70,45,0,.5) 49.6% 50.3%, rgba(240,200,80,.94) 50.3% 62.7%,
    rgba(70,45,0,.5) 62.7% 63.4%, transparent 63.4% 77%, rgba(255,226,120,.6) 77% 78.3%, transparent 78.3% 88%, rgba(255,226,120,.6) 88% 89%, transparent 89%); }
.d-titre { inset: 0; width: 100%; height: 100%; }
.d-titre text { font: 700 4.2px system-ui, sans-serif; letter-spacing: .3px; fill: #1f1400; stroke: rgba(255,244,190,.6); stroke-width: .25px; paint-order: stroke; }
.d-bord-or { inset: 0; background: radial-gradient(circle closest-side, transparent 0 95.5%, rgba(255,240,176,.55) 96.5%, #c8961a 97.8%, #6b4a04 99%, #2e1f00 100%); }
.disque-or-macaron { inset: 33.5%; background-color: #0b0b0c;
  background-image: linear-gradient(27deg,#151515 3px,transparent 3px), linear-gradient(207deg,#151515 3px,transparent 3px),
    linear-gradient(27deg,#2a2a2a 3px,transparent 3px), linear-gradient(207deg,#2a2a2a 3px,transparent 3px),
    linear-gradient(90deg,#1b1b1b 6px,transparent 6px),
    linear-gradient(#1d1d1d 25%,#1a1a1a 25%,#1a1a1a 50%,transparent 50%,transparent 75%,#262626 75%,#262626);
  background-size: 12px 12px; background-position: 0 3px, 6px 0, 0 6px, 6px 3px, 0 0, 0 0;
  box-shadow: 0 0 0 1px rgba(60,40,0,.7), 0 0 7px rgba(0,0,0,.55), inset 0 0 12px rgba(0,0,0,.9); overflow: hidden; }
.disque-or-macaron::before { content: ""; position: absolute; inset: 5%; border-radius: 50%; border: 1px solid rgba(230,180,34,.6); }
.disque-or-macaron::after  { content: ""; position: absolute; inset: 30%; border-radius: 50%; border: 1px solid rgba(230,180,34,.35); }
.disque-or-macaron svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.disque-or-macaron text { font: 600 6.4px system-ui, sans-serif; letter-spacing: .4px; fill: var(--or); }
.trou-vinyle { inset: 48.2%; background: radial-gradient(circle, #000 52%, #b8860b 60%, #fff0b0 76%, #6b4a04 100%); }

.ombre-fixe, .lumiere-fixe { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(9.5px); pointer-events: none;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 33%, #000 34% 99%, transparent 100%);
          mask: radial-gradient(circle closest-side, transparent 0 33%, #000 34% 99%, transparent 100%); }
.ombre-fixe { background: conic-gradient(from 0deg, rgba(35,20,0,.25) 0deg, rgba(35,20,0,0) 30deg, rgba(35,20,0,.35) 62deg, rgba(35,20,0,.62) 120deg,
  rgba(35,20,0,.35) 178deg, rgba(35,20,0,0) 210deg, rgba(35,20,0,.35) 242deg, rgba(35,20,0,.62) 300deg, rgba(35,20,0,.25) 360deg); }
.lumiere-fixe { mix-blend-mode: screen;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,230,150,0) 10deg, rgba(255,247,205,.85) 30deg, rgba(255,230,150,0) 52deg,
    transparent 92deg, rgba(255,226,140,.22) 110deg, transparent 130deg, transparent 190deg, rgba(255,247,205,.85) 210deg, rgba(255,230,150,0) 232deg,
    transparent 272deg, rgba(255,226,140,.22) 290deg, transparent 310deg, transparent 360deg); }

/* Note dorée qui sort du vinyle */
@keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.logo-note { position: absolute; left: 50%; top: 50%; width: 105px; height: 105px; margin: -52.5px 0 0 -52.5px; z-index: 5; pointer-events: none;
  opacity: 0; transform: translateY(0) scale(1); transition: transform .5s ease-in, opacity .3s ease-in .1s; }
.logo-note.sorti { opacity: 1; transform: translateY(-60px) scale(1); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.logo-note .sp-logo { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 16px rgba(255,205,60,.75)) drop-shadow(0 10px 10px rgba(0,0,0,.55)); }
.note-flotte { position: absolute; inset: 0; will-change: transform; }
.logo-note { will-change: transform, opacity; }
.logo-note.sorti .note-flotte { animation: flotte 1.7s ease-in-out 1.1s infinite alternate; }

/* ===== Bande de pochettes ===== */
.bande-wrap { width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.bande-piste { display: flex; align-items: flex-start; gap: 6px; flex: 0 0 auto; will-change: transform; }
.bande { --W: 150px; display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; overflow-y: hidden;
  padding: 45px max(6vw, 40px) 40px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.bande::-webkit-scrollbar { display: none; }
.bande.glisse { cursor: grabbing; }
.bande img { -webkit-user-drag: none; pointer-events: none; }

@keyframes spin { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
.item { all: unset; box-sizing: border-box; flex: 0 0 auto; position: relative; width: calc(var(--W) * 1.34); height: var(--W);
  perspective: 1000px; cursor: pointer; transition: width .8s cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color: transparent; }
.item:focus-visible .sleeve { outline: 2px solid var(--or); outline-offset: 4px; }
.item.actif { z-index: 3; --x: 42%; }   /* pas d'élargissement : rien ne bouge dans la bande */
.poch { position: absolute; left: 0; top: 0; width: var(--W); height: var(--W); transform-style: preserve-3d; transform: rotateY(26deg);
  transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.poch::before { content: ""; position: absolute; inset: 8% -4% -6% 4%; transform: translateZ(-14px); border-radius: 6px;
  background: radial-gradient(closest-side, rgba(0,0,0,.7) 0, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 75%, transparent 100%); pointer-events: none; }
@media (hover: hover) { .item:hover .poch { transform: rotateY(12deg) translateY(-8px); } .item:hover { --x: 42%; } }
.ep { position: absolute; inset: 0; border-radius: 4px; background: #171717; border: 1px solid #3a2c08; pointer-events: none; }
.ep:nth-child(1) { transform: translateZ(-3px); } .ep:nth-child(2) { transform: translateZ(-6px); } .ep:nth-child(3) { transform: translateZ(-9px); background: #0c0c0c; }
.disc-wrap { position: absolute; top: 4%; left: 4%; width: 92%; height: 92%; transform-style: preserve-3d;
  transform: translateX(var(--x, 30%)) translateZ(-4px); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.item.actif .sleeve { box-shadow: 0 0 0 1px rgba(255,225,120,.95), 0 0 24px rgba(255,205,60,.55), 0 14px 28px rgba(0,0,0,.6); }
.disc { position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #000 0 4%, #b8860b 4.6% 5.8%, #0b0b0c 6.4% 29%, #e6b422 30% 31%, transparent 32%),
    repeating-radial-gradient(circle closest-side at center, rgba(60,38,0,.30) 0 .6px, rgba(255,240,170,.14) .6px 1.2px, rgba(0,0,0,0) 1.2px 1.8px),
    radial-gradient(circle closest-side, #a97a0a 0, #d8a521 40%, #e6b832 65%, #c8961a 92%, #6b4a04 100%);
  box-shadow: 0 0 0 1px #000, 0 8px 18px rgba(0,0,0,.7), inset 0 1px 2px rgba(255,245,190,.55);
  animation: spin 4s linear infinite; animation-play-state: paused; }
.item.joue .disc { animation-play-state: running; box-shadow: 0 0 0 1px #000, 0 0 34px rgba(255,200,40,.6); }
.lum { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0, rgba(255,247,205,.45) 30deg, transparent 55deg, transparent 180deg, rgba(255,247,205,.45) 210deg, transparent 235deg, transparent 360deg); }
.item.joue .disc { will-change: transform; }
.sleeve { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; transform: translateZ(0); background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(230,180,34,.55), 0 14px 28px rgba(0,0,0,.6); transition: box-shadow .4s ease; }
.sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sleeve::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.26) 0, rgba(255,255,255,.05) 30%, transparent 46%, rgba(0,0,0,.22) 100%); box-shadow: inset 0 0 0 1px rgba(255,240,176,.18); }
.secours { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center;
  background: radial-gradient(circle at 30% 20%, #2a1d05, #080808 70%); }
.secours .m { font: 700 30px Georgia, serif; color: var(--or); letter-spacing: .06em; }
.secours b { font: 700 15px/1.15 system-ui, sans-serif; color: var(--or-clair); text-transform: uppercase; letter-spacing: .03em; }
.secours i { font: 600 10px system-ui, sans-serif; color: #c9ae5a; font-style: normal; letter-spacing: .2em; }

.lecteur { width: min(440px, 100%); margin: -30px auto 0; border-radius: 12px; overflow: hidden; }
.lecteur iframe { border: 0; width: 100%; height: 80px; border-radius: 12px; }

/* ===== HUD : histoire + paroles ===== */
@keyframes hud-ligne { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hud-hist { position: absolute; top: 178px; left: 24px; z-index: 6; width: min(380px, calc(50vw - 190px)); min-width: 250px;
  padding: 16px 18px 14px; border-radius: 14px; color: #f3e3a6;
  background: linear-gradient(160deg, rgba(24,16,2,.96), rgba(6,6,6,.96));
  border: 1px solid rgba(230,180,34,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.6), 0 0 28px rgba(230,180,34,.18), inset 0 1px 0 rgba(255,240,176,.18);
  opacity: 0; visibility: hidden; pointer-events: none; user-select: text;
  transform: perspective(900px) translateX(-60px) rotateY(22deg); transform-origin: left center;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.9,.3,1.1), visibility 0s linear .8s; }
.hud-on .hud-hist { opacity: 1; visibility: visible; pointer-events: auto; transform: perspective(900px) translateX(0) rotateY(0);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.9,.3,1.1), visibility 0s; }
.hud-fermer { all: unset; position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; box-sizing: border-box; text-align: center;
  font: 400 22px/26px system-ui, sans-serif; color: var(--or); border-radius: 50%; cursor: pointer; }
.hud-fermer:hover { background: rgba(230,180,34,.18); color: var(--or-clair); }
.hud-fermer:focus-visible { outline: 2px solid var(--or-clair); }
.hud-tag { font: 600 10px system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #c9ae5a; }
.hud-entete { display: flex; align-items: center; gap: 12px; margin: 6px 30px 12px 0; }
.hud-titre { margin: 0; min-width: 0; text-shadow: 0 1px 2px rgba(0,0,0,.8); font: 700 20px/1.15 Georgia, serif; color: var(--or-clair); }
.hud-pochette { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 6px;
  border: 1px solid rgba(230,180,34,.7); box-shadow: 0 4px 12px rgba(0,0,0,.6), 0 0 14px rgba(230,180,34,.25); }
.hud-pochette[hidden] { display: none; }
.hud-corps { max-height: min(44vh, 330px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--or-fonce) transparent; }
.hud-on .hud-corps > div { animation: hud-ligne .55s ease both; }
.hud-date { margin: 0 0 8px; font: 600 12px system-ui, sans-serif; letter-spacing: .06em; color: #c9ae5a; }
.hud-sec { margin: 12px 0 6px; font: 700 11px system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }
.hud-corps > .hud-sec:first-child { margin-top: 0; }
.hud-txt { margin: 0 0 6px; font: 400 14px/1.55 system-ui, sans-serif; color: var(--texte); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.hud-l { font: italic 500 15px/1.6 Georgia, serif; color: #fff6c8; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hud-esp { height: 10px; }

/* ===== Boutons PayPal + Écoutez (3D) ===== */
.hud-actions { position: absolute; top: 28px; right: 28px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 30px; }
.hud-actions .hud-paypal { position: relative; top: auto; right: auto; }
.hud-ecoute[hidden] { display: none !important; }
/* « Écoutez » apparaît et disparaît exactement comme PayPal (mêmes animations, même moment) */

.hud-paypal { position: absolute; top: 28px; right: 28px; z-index: 6; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; cursor: pointer; text-decoration: none !important;
  font: 800 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; color: #1f1400 !important;
  background: linear-gradient(180deg, #fff3b0 0, #f0c64a 40%, #d8a521 100%); border: 1px solid #fff0b0;
  box-shadow: 0 1px 0 #c8961a, 0 2px 0 #b8860b, 0 3px 0 #a37608, 0 4px 0 #8a6305, 0 5px 0 #6b4a04, 0 6px 0 #5a3d03, 0 7px 0 #3b2701, 0 8px 0 #2a1b00,
    0 18px 22px rgba(0,0,0,.55), 0 0 30px rgba(230,180,34,.35), inset 0 2px 2px rgba(255,255,255,.8);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: perspective(700px) rotateX(10deg) rotateY(80deg) translateX(40px);
  transition: opacity .5s ease .25s, transform .8s cubic-bezier(.2,.9,.3,1.2) .25s, box-shadow .2s ease, visibility 0s linear 1s; }
.hud-on .hud-paypal { opacity: 1; visibility: visible; pointer-events: auto; transform: perspective(700px) rotateX(12deg) rotateY(-16deg) translateX(0);
  transition: opacity .5s ease .25s, transform .8s cubic-bezier(.2,.9,.3,1.2) .25s, box-shadow .2s ease, visibility 0s; }
.hud-on .hud-paypal:hover { transform: perspective(700px) rotateX(4deg) rotateY(-6deg) translateY(3px); transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 #c8961a, 0 2px 0 #b8860b, 0 3px 0 #a37608, 0 4px 0 #8a6305, 0 5px 0 #6b4a04, 0 12px 18px rgba(0,0,0,.55), 0 0 40px rgba(255,205,60,.6), inset 0 2px 2px rgba(255,255,255,.8); }
.hud-on .hud-paypal:active { transform: perspective(700px) rotateX(0) rotateY(0) translateY(7px); transition: transform .08s ease, box-shadow .08s ease;
  box-shadow: 0 1px 0 #6b4a04, 0 4px 8px rgba(0,0,0,.5), inset 0 2px 5px rgba(0,0,0,.25); }
.hud-paypal:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 5px; }
.hud-paypal svg { width: 20px; height: 20px; flex: 0 0 auto; }

.pied { text-align: center; padding: 22px 16px; font-size: 12px; color: #c9ae5a; background: var(--noir); border-top: 1px solid rgba(230,180,34,.25); }
.pied p { margin: 0; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .hud-mobile { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-height: 0; overflow: hidden; padding: 0 14px;
    transition: max-height .7s ease, padding .7s ease; }
  .hud-mobile.hud-on { max-height: 1100px; padding: 10px 14px 26px; }
  .hud-mobile .hud-hist { position: relative; top: auto; left: auto; right: auto; width: 100%; max-width: 440px; min-width: 0; transform-origin: center; }
  .hud-mobile .hud-corps { max-height: 240px; }
  .hud-mobile .hud-actions { position: relative; top: auto; right: auto; align-items: center; gap: 24px; }
  .hud-mobile .hud-paypal { position: relative; top: auto; right: auto; padding: 12px 24px; font-size: 14px; }
}
@media (max-width: 640px) { .bande { --W: 120px; padding: 35px 28px 30px; } }
@media (max-width: 600px) {
  .scene-vinyle, .vinyle-wrap { width: 280px; height: 280px; }
  .scene-vinyle { margin-bottom: -40px; }
  .logo-note.sorti { transform: translateY(-50px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .disque-vinyle, .disc, .note-flotte { animation: none !important; }
}

/* Visualizer : barres dorées autour du logo */
.sp-viz { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.logo-note.viz-on .sp-viz { opacity: 1; }
.sp-rayon { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.sp-barre { position: absolute; left: -2px; bottom: 60px; width: 4px; height: 37px; border-radius: 2px;
  transform-origin: 50% 100%; transform: scaleY(.1); background: linear-gradient(to top, #fff3b0, #e6b422 55%, #b8860b);
  box-shadow: 0 0 6px rgba(255,205,60,.75); will-change: transform; }


/* ===== Signature manuscrite dorée (haut gauche) ===== */
@keyframes sig-brille { 0% { background-position: 100% 0; } 45%, 100% { background-position: -200% 0; } }
@keyframes sig-scintille { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.hero > .sig-titre {
  margin: 0; font-weight: 400; position: absolute; top: 34px; left: 26px; z-index: 7; display: block; cursor: pointer; text-decoration: none;
  font-size: clamp(2.7rem, 5.4vw, 4.8rem); line-height: 1; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 .22em rgba(230,180,34,.38)) drop-shadow(0 .05em .06em rgba(0,0,0,.75));
}
.signature:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 8px; border-radius: 8px; }

.sig-ecrit {
  display: inline-block; position: relative; padding: .22em .5em .26em .12em;
  transform: rotate(-3.5deg); transform-origin: left bottom;
  --a: -60px; --b: -20px;             /* position du front d'écriture (piloté par app.js) */
  -webkit-mask-image: linear-gradient(to right, #000 var(--a), transparent var(--b));
          mask-image: linear-gradient(to right, #000 var(--a), transparent var(--b));
}
.sig-texte {
  display: inline-block; white-space: nowrap;
  font-family: var(--sig-font, "Mrs Saint Delafield"), "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-size: calc(1em * var(--sig-k, 1.28)); line-height: 1; font-weight: 400;
  /* feuille d'or : reflets chauds + éclats clairs */
  background: linear-gradient(100deg, #7a5200 0%, #c98f0b 10%, #f7d65c 21%, #fff6c8 29%, #f0c030 40%, #b8860b 54%, #e8b82a 68%, #fff0a0 78%, #c58f10 90%, #8a5f06 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .6px rgba(150,100,6,.75);   /* épaissit légèrement les déliés fins */
  /* les boucles de la police manuscrite dépassent largement des lettres : on agrandit la zone dorée
     (padding) sans rien déplacer (marges négatives), sinon ces parties restent noires */
  padding: .45em .6em .35em .3em; margin: -.45em -.6em -.35em -.3em;
}
.signature.sig-fini .sig-texte { animation: sig-brille 9s ease-in-out infinite; }
.hero > .sig-titre { will-change: transform; }

.sig-paraphe { display: block; width: 84%; height: auto; margin: -.34em 0 0 7%; transform: rotate(-1.2deg);
  clip-path: inset(-10% 100% -10% 0); }

.sig-etoile, .sig-eclat {
  position: absolute; left: 0; top: 0; width: .34em; height: .34em; margin: -.17em 0 0 -.17em; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0, #fff7cf 30%, #ffd861 60%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.sig-eclat.e1 { left: 14%; top: 22%; } .sig-eclat.e2 { left: 58%; top: 12%; width: .26em; height: .26em; } .sig-eclat.e3 { left: 90%; top: 52%; width: .3em; height: .3em; }
.signature.sig-fini .sig-eclat { animation: sig-scintille 3.2s ease-in-out infinite; }
.signature.sig-fini .sig-eclat.e2 { animation-delay: 1.1s; } .signature.sig-fini .sig-eclat.e3 { animation-delay: 2.1s; }

@media (max-width: 600px) { .hero > .sig-titre { top: 24px; left: 12px; font-size: clamp(2.3rem, 11vw, 3.2rem); } }
@media (prefers-reduced-motion: reduce) { .signature.sig-fini .sig-texte, .signature.sig-fini .sig-eclat { animation: none; } }

.signature { display: block; color: inherit; text-decoration: none; cursor: pointer; }

/* ===== Contenu référencé : singles, histoires et paroles ===== */
html { scroll-behavior: smooth; }
.hero > .voir-singles { margin-top: 18px; z-index: 5; font: 600 12px system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or-clair); text-decoration: none; padding: 9px 16px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(230,180,34,.4); }
.voir-singles:hover, .voir-singles:focus-visible { background: rgba(60,40,0,.75); border-color: var(--or); }

.seo { padding: 72px 20px 30px; background: linear-gradient(#050505, #0b0802); border-top: 1px solid rgba(230,180,34,.25); }
.seo-in { max-width: 900px; margin: 0 auto; }
.seo a { color: var(--or); text-decoration: none; }
.seo a:hover, .seo a:focus-visible { color: var(--or-clair); text-decoration: underline; }
.seo h2 { margin: 0 0 16px; font: 700 clamp(1.6rem, 3.6vw, 2.5rem)/1.2 Georgia, "Times New Roman", serif; color: var(--or-clair); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.seo-intro { max-width: 68ch; margin: 0 0 34px; line-height: 1.75; font-size: 1.05rem; color: var(--texte); }
.seo-nav h3 { margin: 0 0 10px; font: 700 .8rem system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c9ae5a; }
.seo-nav ol { margin: 0 0 24px; padding-left: 1.7em; columns: 2 260px; column-gap: 32px; line-height: 1.9; }

.single { display: grid; grid-template-columns: 150px 1fr; gap: 0 26px; padding: 34px 0; border-top: 1px solid rgba(230,180,34,.2); scroll-margin-top: 20px; }
.single > img { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(230,180,34,.45); background: #0b0b0b; box-shadow: 0 6px 18px rgba(0,0,0,.7); }
.single h3 { margin: 0 0 12px; font: 700 clamp(1.3rem, 2.6vw, 1.8rem)/1.2 Georgia, "Times New Roman", serif; color: var(--or); }
.single h4 { margin: 18px 0 8px; font: 700 .78rem system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c9ae5a; }
.single p { margin: 0 0 14px; line-height: 1.75; color: var(--texte); }
.paroles-bloc { margin-top: 8px; }
.paroles-bloc summary { cursor: pointer; list-style: none; padding: 4px 0; }
.paroles-bloc summary::-webkit-details-marker { display: none; }
.paroles-bloc summary::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--or); transition: transform .2s; }
.paroles-bloc[open] summary::before { transform: rotate(90deg); }
.paroles-bloc summary h4 { display: inline; margin: 0; }
.paroles-bloc summary:hover h4 { color: var(--or-clair); }
.paroles { padding-top: 10px; }
.paroles p { color: #f3e6b0; line-height: 1.7; margin: 0 0 16px; }
.single-ecoute { margin-top: 10px; }
.seo-haut { margin: 24px 0 0; text-align: center; }
.seo-pied { text-align: center; padding: 28px 20px 52px; color: #8f7a3a; font-size: .85rem; background: #0b0802; }
@media (max-width: 640px) {
  .single { grid-template-columns: 1fr; }
  .single > img { width: 110px; height: 110px; margin-bottom: 14px; }
  .seo-nav ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.single .single-date { margin: -4px 0 10px; font-size: .9rem; color: #c9ae5a; }
.single-date time { color: var(--or-clair); }

/* ===== Extrait audio (quand il n'y a pas de lien Spotify) ===== */
.lecteur .extrait { padding: 10px 12px 12px; background: linear-gradient(#1a1204, #0b0802); border: 1px solid rgba(230,180,34,.45); border-radius: 12px; }
.extrait-tag { display: block; margin-bottom: 6px; font: 600 11px system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c9ae5a; }
.extrait audio { display: block; width: 100%; height: 40px; color-scheme: dark; }
.single-extrait { margin: 4px 0 12px; }
.single-extrait audio { width: min(420px, 100%); height: 40px; color-scheme: dark; }

/* Mobile : quand le panneau allonge la page, le bas de la photo s'estompe en douceur dans le noir */
@media (max-width: 900px) {
  .hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--hero-h0, 100%) - 90px); height: 90px;
    background: linear-gradient(transparent, var(--noir)); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
  .hero.hud-on::after { opacity: 1; }
}

/* ===== Date de sortie qui clignote (8 décembre 2026) ===== */
@keyframes date-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.single-date time { display: inline-block; }
.single-date time, .hud-date { text-shadow: 0 0 10px rgba(255,215,80,.9), 0 0 2px #fff6c8; will-change: opacity; }
.single-date time, .hud-date { animation: date-clignote 1.2s ease-in-out infinite; }
.hud-on .hud-corps > .hud-date { animation: hud-ligne .55s ease both, date-clignote 1.2s ease-in-out 1.2s infinite; }
.hud-date { color: var(--or-clair); }

