/* Version photo : images générées + éléments animés posés dessus.
   Les coordonnées des éléments sont en pixels de l'image (1024 × 1536) ;
   le cadre .pframe est ensuite mis à l'échelle du panneau en JS. */

/* Avant le script, les panneaux ont déjà la couleur du mur blanc (fini le carré bleu nuit
   au chargement) ; le fond sombre ne sert qu'aux thèmes "dark" de layout.js. */
.panel--player, .panel--pile { background: #efedf0; }
[data-player-theme="dark"] .panel--player { background: #0f1e33; }
[data-player-theme="light"] .panel--player { background: #e9e9e7; }
[data-player-theme="light"] .panel--player .caption {
  color: #2a2c2f; background: linear-gradient(transparent, rgba(236, 236, 234, .7));
}
[data-pile-theme="dark"] .panel--pile { background: #9c9a95; }
[data-pile-theme="light"] .panel--pile { background: #ecebe9; }
[data-pile-theme="light"] .panel--pile .caption {
  color: #2a2c2f; background: linear-gradient(transparent, rgba(236, 235, 233, .7));
}

.pstage {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* Fond flouté tiré de la même photo : comble les bords si le panneau est plus large que l'image */
.pstage::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--photo) center / cover no-repeat;
  filter: blur(28px) brightness(.85);
}
.pstage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 45%, transparent 60%, rgba(0, 0, 0, .28));
}

.pframe {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  /* bords fondus vers le fond flouté */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
          mask-composite: intersect;
  opacity: 0; transition: opacity .5s ease;
}
.is-ready .pframe { opacity: 1; }
.pframe > img, .pframe > canvas { position: absolute; left: 0; top: 0; display: block; user-select: none; }
#photo-player { width: 100%; height: 100%; }

/* ---------- Le disque ---------- */
.p-disc {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(8px 12px 10px rgba(0, 0, 0, .55));
  transition: translate .45s cubic-bezier(.3,.7,.2,1), scale .45s cubic-bezier(.3,.7,.2,1), opacity .45s;
}
.p-disc.no-anim { transition: none; }
.p-disc.is-out { translate: 70% -6%; scale: 1.04; opacity: 0; }
.p-disc.is-empty { opacity: 0; pointer-events: none; }

.p-disc-base, .p-disc-spin, .p-disc-light, .p-disc-print { position: absolute; inset: 0; border-radius: 50%; }

/* polycarbonate argenté irisé (reflet fixe, il ne tourne pas) */
.p-disc-base {
  background:
    conic-gradient(from 215deg,
      #c3c9cf, #eef1f4 8%, #aeb6bf 16%, #dccbea 24%, #bcdeec 31%, #efeac4 38%, #c3c9cf 46%,
      #eef1f4 58%, #aab2bb 66%, #d6c6e6 74%, #b9dbeb 81%, #ebe6c0 88%, #c3c9cf);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 12.4%, rgba(0,0,0,.35) 12.8% 27.6%, #000 28% 99.5%, transparent 100%);
          mask: radial-gradient(circle closest-side, transparent 0 12.4%, rgba(0,0,0,.35) 12.8% 27.6%, #000 28% 99.5%, transparent 100%);
}
.p-disc-spin { will-change: rotate; }
.p-disc-print {
  background: #2b2d31 center / cover no-repeat;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 36%, #000 36.4% 95.6%, transparent 96%);
          mask: radial-gradient(circle closest-side, transparent 0 36%, #000 36.4% 95.6%, transparent 96%);
}
/* lumière de la photo : venue du haut à gauche */
.p-disc-light {
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.22), transparent 55%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 12.4%, #000 12.8%);
          mask: radial-gradient(circle closest-side, transparent 0 12.4%, #000 12.8%);
  mix-blend-mode: soft-light;
}

/* ---------- Couvercle fumé simulé ---------- */
.p-lid {
  position: absolute; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%;
  background:
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,.13) 36%, rgba(255,255,255,.03) 43%, transparent 48%),
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.12), transparent 32%),
    rgba(10, 14, 20, .34);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), inset 0 0 40px rgba(0,0,0,.45), 0 10px 22px rgba(0,0,0,.35);
  transition: opacity .4s ease, scale .4s cubic-bezier(.3,.7,.2,1), translate .4s cubic-bezier(.3,.7,.2,1);
}
.is-open .p-lid { opacity: 0; scale: 1.06; translate: 0 -4%; pointer-events: none; }

/* Lecteur mural : capot en acrylique clair (reflets seuls, à peine teinté), qui bascule vers le haut */
[data-lid="clear"] .p-lid {
  background:
    linear-gradient(125deg, transparent 28%, rgba(255,255,255,.20) 34%, rgba(255,255,255,.05) 41%, transparent 46%),
    linear-gradient(125deg, transparent 52%, rgba(255,255,255,.08) 55%, transparent 59%),
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.16), transparent 30%),
    rgba(200, 210, 220, .05);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), inset 0 -6px 18px rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.28);
}
[data-lid="clear"].is-open .p-lid { translate: 0 -12%; scale: 1.02; }

/* Voyant */
.p-led {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: #2a1206;
  transition: background .15s, box-shadow .15s;
}
[data-status="playing"] .p-led,
[data-status="loading"] .p-led {
  background: #ffb020;
  box-shadow: 0 0 6px 2px rgba(255, 170, 30, .85), 0 0 18px 6px rgba(255, 150, 20, .35);
}
[data-status="loading"] .p-led { animation: p-blink .35s steps(2) infinite; }
[data-status="paused"] .p-led { background: #e0901a; animation: p-blink 1s steps(2) infinite; }
@keyframes p-blink { 50% { opacity: .2; } }

/* ---------- Écran et touches ---------- */
.p-lcd { position: absolute; mix-blend-mode: multiply; pointer-events: none; }
.pstage[data-status="playing"] .p-lcd,
.pstage[data-status="loading"] .p-lcd,
.pstage[data-status="paused"] .p-lcd { filter: drop-shadow(0 0 0 transparent); }

.p-btn {
  position: absolute; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%; background: transparent;
  transition: background .08s, box-shadow .08s;
}
.p-btn:active { background: rgba(0, 0, 0, .28); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .45); }

/* Pictogrammes sérigraphiés : gris clair sur les touches noires, brun foncé sur la touche orange */
.p-btn { display: grid; place-items: center; }
.p-btn svg {
  grid-area: 1 / 1;
  width: 34%; height: 34%;
  fill: rgba(214, 218, 222, .82);
  /* léger relief : l'encre accroche la lumière venue du haut à gauche */
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 -0.5px 0 rgba(255, 255, 255, .12));
  pointer-events: none;
  transition: opacity .15s ease;
}
.p-btn--play svg {
  fill: rgba(70, 26, 2, .82);
  filter: drop-shadow(0 1px 0 rgba(255, 190, 120, .45));
}
.p-btn:active svg { translate: 0 1px; }
/* touche lecture : ▶ à l'arrêt ou en pause, ‖ pendant la lecture */
.p-btn--play .i-pause { opacity: 0; }
[data-status="playing"] .p-btn--play .i-play,
[data-status="loading"] .p-btn--play .i-play { opacity: 0; }
[data-status="playing"] .p-btn--play .i-pause,
[data-status="loading"] .p-btn--play .i-pause { opacity: 1; }
.p-btn--play .i-play { translate: 3% 0; }      /* centrage optique du triangle */
.p-btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Touche lecture rétroéclairée (lecteur mural) : éteinte à l'arrêt, elle « respire » pendant la lecture
   comme une diode derrière du plastique orange translucide (montée assez vive, retombée lente, jamais
   tout à fait éteinte), reste faiblement allumée en pause et chauffe pendant le chargement.
   ::before = la face de la touche éclairée par l'intérieur ; ::after = le halo qui déborde sur le boîtier noir. */
[data-lid="clear"] .p-btn--play::before,
[data-lid="clear"] .p-btn--play::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  mix-blend-mode: screen; opacity: 0;
  transition: opacity .6s ease;
}
[data-lid="clear"] .p-btn--play::before {
  inset: 7%;
  background: radial-gradient(circle at 46% 42%,
    rgba(255, 226, 170, .95) 0, rgba(255, 150, 55, .78) 34%, rgba(255, 98, 18, .42) 60%, rgba(255, 80, 10, 0) 74%);
}
[data-lid="clear"] .p-btn--play::after {
  inset: -55%;
  background: radial-gradient(circle,
    rgba(255, 130, 40, .55) 0, rgba(255, 110, 25, .30) 30%, rgba(255, 90, 15, .10) 48%, rgba(255, 80, 10, 0) 68%);
}
[data-lid="clear"] .p-btn--play svg { position: relative; z-index: 1; }

[data-lid="clear"][data-status="paused"] .p-btn--play::before { opacity: .38; }
[data-lid="clear"][data-status="paused"] .p-btn--play::after { opacity: .22; }
[data-lid="clear"][data-status="loading"] .p-btn--play::before,
[data-lid="clear"][data-status="loading"] .p-btn--play::after { animation: p-glow-warm .9s ease-in-out infinite alternate; }
[data-lid="clear"][data-status="playing"] .p-btn--play::before { animation: p-breathe 2.8s infinite; opacity: 1; }
[data-lid="clear"][data-status="playing"] .p-btn--play::after { animation: p-breathe-halo 2.8s infinite; opacity: 1; }

@keyframes p-breathe {
  0%   { opacity: .42; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  38%  { opacity: 1;   animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  100% { opacity: .42; }
}
@keyframes p-breathe-halo {
  0%   { opacity: .28; scale: .9;  animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  38%  { opacity: 1;   scale: 1.06; animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  100% { opacity: .28; scale: .9; }
}
@keyframes p-glow-warm { from { opacity: .15; } to { opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  [data-lid="clear"][data-status="playing"] .p-btn--play::before,
  [data-lid="clear"][data-status="playing"] .p-btn--play::after,
  [data-lid="clear"][data-status="loading"] .p-btn--play::before,
  [data-lid="clear"][data-status="loading"] .p-btn--play::after { animation: none; opacity: .8; }
}

/* Touche (i) jaune, rétroéclairée (demande d'Olaf, 26/11/2026 après-midi : « briller plus fort, en rouge,
   vert ou jaune », Maxime a choisi le jaune ; elle était bleu foncé, et ne clignotait qu'en lecture).
   Elle signale la fiche du disque (séries, crédits) : elle pulse dès qu'un disque (ou une cassette) est dans
   l'appareil ([data-loaded], posé par markLoaded), lecture ou non ; sans disque, plastique jaune éteint, sans
   halo (Maxime, 26/11/2026 : « pas besoin qu'il s'allume si absence de disque ou de cassette »).
   ::before = la face jaune éclairée par l'intérieur ; ::after = le halo qui déborde sur le boîtier noir.
   Même touche sur le magnétoscope de la page Soundtrack (même feuille). Pas sur le lecteur de clips
   (.cf-btn), où data-action="info" est le plein écran. */
.p-btn[data-action="info"]:not(.cf-btn)::before,
.p-btn[data-action="info"]:not(.cf-btn)::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.p-btn[data-action="info"]:not(.cf-btn)::before {
  inset: 7%;
  background: radial-gradient(circle at 46% 40%,
    rgb(255, 246, 170) 0, rgb(255, 214, 40) 38%, rgb(236, 172, 0) 72%, rgb(170, 112, 0) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 230, .6), inset 0 -2px 3px rgba(90, 50, 0, .45);
  filter: brightness(.58) saturate(.85);                          /* éteinte */
  transition: filter .4s;
}
.p-btn[data-action="info"]:not(.cf-btn)::after {
  inset: -60%;
  background: radial-gradient(circle,
    rgba(255, 220, 40, .6) 0, rgba(255, 200, 20, .32) 30%, rgba(255, 190, 10, .1) 48%, rgba(255, 180, 0, 0) 68%);
  mix-blend-mode: screen;
  opacity: 0;                                                     /* éteinte : pas de halo */
  transition: opacity .4s;
}
[data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::before { animation: p-info-face 1.8s ease-in-out infinite; }
[data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::after { animation: p-info-halo 1.8s ease-in-out infinite; }
.p-btn[data-action="info"]:not(.cf-btn) svg {
  position: relative; z-index: 1;
  fill: rgba(60, 36, 0, .88);
  filter: drop-shadow(0 1px 0 rgba(255, 245, 190, .5));
}

@keyframes p-info-face {
  0%, 100% { filter: brightness(.9); }
  50%      { filter: brightness(1.18); }
}
@keyframes p-info-halo {
  0%, 100% { opacity: .35; scale: .9; }
  50%      { opacity: 1;   scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  [data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::before,
  [data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::after { animation: none; }
  [data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::before { filter: none; }
  [data-loaded] .p-btn[data-action="info"]:not(.cf-btn)::after { opacity: .7; }
}

/* ---------- La pile ---------- */
.p-case {
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer;
  transition: scale .3s cubic-bezier(.2,.8,.2,1), translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, filter .3s;
}
.p-case canvas { display: block; width: 100%; height: 100%; }
/* au survol, le boîtier avance légèrement vers nous */
.p-case:hover, .p-case:focus-visible {
  z-index: 50 !important;
  scale: 1.03; translate: 0 -1px;
  box-shadow: 0 10px 16px -6px rgba(0, 0, 0, .45);
}
.p-case.is-loaded {
  z-index: 60 !important;
  scale: 1.07; translate: -3% 0;
  box-shadow: 0 16px 24px -8px rgba(0, 0, 0, .55);
}
.p-case:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .p-case, .p-lid, .p-disc { transition-duration: .01s; }
}

/* ---------- Mur continu : les deux photos sur un seul mur blanc, sans séparation ---------- */
.diptych.is-wall {
  --wall: #efedf0;                       /* blanc mesuré sur la photo du lecteur */
  gap: 0;
  position: relative;
  background: var(--wall);
  border-radius: 2px;
  overflow: hidden;
}
.is-wall .panel { background: transparent; border-radius: 0; }
.is-wall .pstage::before,
.is-wall .pstage::after { display: none; }     /* plus de fond flouté ni de vignettage par panneau */
.is-wall .pframe {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
}
/* le mur de la pile est ~2 % plus sombre que celui du lecteur : on l'aligne */
.is-wall #frame-pile { filter: brightness(1.021); }
/* Côte à côte : quand la fenêtre est haute (tablette, fenêtre étroite), chaque photo déborde de son
   panneau et était coupée net, ombre de l'étagère tranchée à la jonction. Les bords gauche et droit de
   chaque panneau se fondent dans le mur sur --fade-x ; fitFrame() garde l'objet en dehors du fondu. */
@media not all and (max-width: 760px) and (orientation: portrait) {
  .is-wall .pstage {
    --fade-x: 32px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-x), #000 calc(100% - var(--fade-x)), transparent);
            mask-image: linear-gradient(to right, transparent, #000 var(--fade-x), #000 calc(100% - var(--fade-x)), transparent);
  }
}
.is-wall .caption { background: none !important; color: #2a2c2f; }
/* un seul vignettage, sur l'ensemble du mur, en-tête compris (23/11/2026) : il remonte jusqu'en haut
   de la page, sous le logo et le menu (l'en-tête devient transparent). Le diptyque coupe par clip-path
   et non plus par overflow, pour laisser dépasser le vignettage vers le haut ; centre et rayons
   recalculés pour garder à peu près le même rendu sur les photos. */
.diptych.is-wall {
  overflow: visible;
  clip-path: inset(calc(-1 * var(--head)) 0 0 0);
}
.diptych.is-wall::after {
  content: ""; position: absolute; inset: calc(-1 * var(--head)) 0 0 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 85% 74% at 50% 50%, transparent 62%, rgba(0, 0, 0, .14));
}
body:has(.diptych.is-wall) .site-head { background: transparent; }


/* ---------- Choisir un disque au doigt : bulle de titre ---------- */
#p-cases { touch-action: none; }             /* le doigt glisse sur la pile sans faire défiler la page */
.p-case.is-scrub {
  z-index: 50 !important;
  scale: 1.05; translate: -2% -1px;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .5);
}
.p-scrub {
  position: absolute; left: 50%; top: 6px; z-index: 3;
  translate: -50% -6px; opacity: 0;
  margin: 0; padding: 6px 16px 7px;
  display: grid; justify-items: center; gap: 1px;
  max-width: calc(100% - 32px);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  color: #1d1f22; text-align: center;
  pointer-events: none;
  transition: opacity .15s ease, translate .15s ease;
}
.p-scrub.is-on, .p-scrub.is-hint { opacity: 1; translate: -50% 0; }
.p-scrub.is-hint { background: rgba(255, 255, 255, .55); box-shadow: none; }
.p-scrub-title { font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.p-scrub-meta { font-size: 12px; color: #5d6166; }
.p-scrub.is-hint .p-scrub-title { font-size: 14px; font-weight: 500; }

/* ---------- Téléphone en portrait : tout sur un seul écran, lecteur en haut, pile en bas ---------- */
@media (max-width: 760px) and (orientation: portrait) {
  :root { --head: 48px; }
  .wordmark { font-size: 18px; }
  /* chaque photo prend toute la largeur (marge de 14 px) ; la pile passe sous le lecteur et la page défile.
     Hauteurs = largeur utile × proportions du cadrage focusMobile de layout.js */
  .diptych.is-wall {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto; min-height: 0; padding: 0 0 24px; border-radius: 0;
  }
  .is-wall .pstage { --reserve-x: 14px; }
  /* lecteur : respire davantage (30 px de chaque côté, 24 px en haut, 20 px en bas) */
  .is-wall .panel--player { height: calc((100vw - 60px) * 880 / 662 + 44px); }
  .is-wall .panel--pile { height: calc((100vw - 28px) * var(--pile-ratio, 1.045) + 58px + 14px); }
  /* jonction entre les deux photos : chacune se fond dans le blanc du mur sur quelques pixels,
     sinon le bas de la photo du lecteur est coupé net et la ligne se voit */
  .is-wall #stage-player {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
  }
  .is-wall #stage-pile {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px);
            mask-image: linear-gradient(to bottom, transparent, #000 22px);
  }
  .is-wall .caption { display: none; }        /* l'écran LCD dit déjà tout */
  .is-wall #stage-player { --reserve-x: 30px; --reserve-top: 24px; --reserve-bottom: 20px; }
  .is-wall #stage-pile { --reserve-top: 58px; --reserve-bottom: 14px; }   /* en haut : la bulle de titre */
}

/* ---------- Téléphone en paysage : côte à côte, dans la hauteur de l'écran ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --head: 40px; }
  .site-head { padding: 0 16px; }
  .wordmark { font-size: 17px; }
  .diptych.is-wall {
    grid-template-columns: 1fr 1fr; grid-template-rows: none;   /* côte à côte, même sur petit écran */
    height: calc(100dvh - var(--head));
    min-height: 0; padding: 0; border-radius: 0;
  }
  .is-wall .panel--player, .is-wall .panel--pile { height: auto; }
  .is-wall .caption { display: none; }
  .is-wall .pstage { --reserve-bottom: 8px; }
  .is-wall #stage-pile { --reserve-top: 56px; }
}

/* ---------- En-tête : logo au centre, Bandcamp et langues à gauche, navigation (menu) à droite ---------- */
/* En-tête clair, du même blanc que le mur des photos (plus de gris anthracite) ; logo grand */
:root { --head: 100px; }
body:has(.diptych.is-wall) { background: #efedf0; }

/* Chargement (26/11/2026, Maxime en 3G : « j'aime pas ça au chargement ») : la page part directement en
   « mur » (classe is-wall dans index.html, plus de cadres gris ni de fond sombre en attendant le script),
   les légendes attendent la scène (leur texte n'est juste qu'une fois les disques lus), et un petit disque
   gris tourne au milieu de chaque panneau jusqu'à ce que la scène apparaisse en fondu. */
/* Plus de légendes sous les panneaux (Maxime, 26/11/2026 : « enlève la légende Le lecteur est vide et
   Quatorze disques ») : masquées à l'écran, gardées pour les lecteurs d'écran. */
#now, #pile-caption {
  position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body:not(.is-ready) .is-wall .pstage::after {
  display: block; content: ""; inset: auto; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; mix-blend-mode: normal; opacity: .55;
  background:
    radial-gradient(circle, #efedf0 0 15%, rgba(0,0,0,.18) 15.5% 17%, transparent 17.5% 33%, rgba(0,0,0,.08) 33.5% 34.5%, transparent 35%),
    conic-gradient(from 20deg, #cfcdd2, #f4f3f6 12%, #bdbbc1 26%, #e6e4ea 40%, #c4c2c8 55%, #f2f1f4 68%, #c9c7cd 84%, #cfcdd2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
  animation: p-loading 1.1s linear infinite;
}
@keyframes p-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body:not(.is-ready) .is-wall .pstage::after { animation-duration: 4s; } }
.site-head {
  --page: #efedf0; --ink-light: #1c1c1e; --ink-dim: #6e6e73;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  position: relative; z-index: 20;
  background: var(--page); color: var(--ink-light);
}
.site-nav { justify-self: end; grid-column: 3; grid-row: 1; }
.site-tools { justify-self: start; grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-tools a { text-decoration: none; color: var(--ink-dim); }
.site-tools a:hover { color: var(--ink-light); }
.langs { display: flex; gap: 8px; font-size: 13px; letter-spacing: 0.04em; }
.langs a[aria-current] { color: var(--ink-light); }
.menu-toggle, .site-nav .nav-mobile { display: none; }

/* Typo des titres et du menu : Josefin Sans (gratuite, en attendant une éventuelle licence Neutraface).
   Texte courant en Familjen Grotesk ; logo, tranches, pochettes et écriture manuscrite inchangés.
   Comparaison : docs/typo/neutraface-vs-josefin.png */
:root { --font-titres: "Josefin Sans", "Familjen Grotesk", system-ui, sans-serif; }
.site-head .site-nav, .site-head .site-tools, .site-head .menu-toggle, .caption { font-family: var(--font-titres); }
.site-nav a, .site-tools a, .menu-toggle { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 400; }
.site-tools .langs a { letter-spacing: 0.12em; font-size: 12px; }
.caption { font-size: 16px; }
/* Le menu en capitales espacées fait ~470 px : il ne tient à côté du logo centré qu'au-delà de ~1 375 px.
   Entre 1 241 et 1 400 px on le resserre (~390 px) ; en dessous, il passe derrière « Menu » (cf. plus bas). */
@media (min-width: 1241px) and (max-width: 1400px) {
  .site-nav { gap: 16px; }
  .site-nav a { letter-spacing: 0.1em; }
}

/* Logo animé (assets/js/logo.js) : cadre fixe, le nom change de typo, couleur et fond
   d'après les pochettes. Sans JS, .wordmark reste le texte simple. */
.wordmark { justify-self: center; grid-column: 2; }
/* Si logo.js ne prend pas la main (bug, script bloqué) : le nom en capitales (demande d'Olaf, 26/11/2026) */
.wordmark:not(.logo) { text-transform: uppercase; }
.wordmark.logo {
  --logo-h: 72px; --logo-w: 360px;
  display: block;
  width: var(--logo-w); height: var(--logo-h);
  font-size: inherit; letter-spacing: 0;
}
.logo-face {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .12);
}
.logo-face.is-burst { box-shadow: none; border-radius: 0; }
.logo-text { white-space: nowrap; line-height: 1; padding: 0.08em 0; }
/* Version « signature » du logo animé (cf. logo.js) : le dessin en masque, à la couleur fg de la version */
.logo-text.is-signature {
  display: block; width: 74%; height: 92%; padding: 0;
  background-color: currentColor;
  -webkit-mask: url("../logo/olaf-hund-signature.svg") center / contain no-repeat;
  mask: url("../logo/olaf-hund-signature.svg") center / contain no-repeat;
}

/* Jusqu’à 1 240 px (tablettes, petits portables, téléphones) : la navigation passe derrière « Menu », qui ouvre un menu plein écran
   en couleur (couleur tirée des pochettes à chaque ouverture, cf. site-head.js). Le logo et le bouton
   restent par-dessus : le menu est dans l'en-tête, en z-index négatif. */
@media (max-width: 1240px) {
  .site-head { grid-template-columns: 1fr auto 1fr; transition: background-color .25s; }
  .site-head.is-open { background: transparent; }
  .menu-toggle {
    display: block; justify-self: end; grid-column: 3; grid-row: 1;
    font: inherit; font-size: 13px; color: var(--ink-light);
    background: none; border: 0; padding: 10px 0; cursor: pointer;
    transition: color .25s;
  }
  .is-open .menu-toggle { color: var(--menu-fg, #fff); }
  .is-open .site-tools { visibility: hidden; }            /* déjà en bas du menu ouvert */
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    width: auto; height: auto; justify-self: stretch; align-self: stretch;   /* annule le placement « à droite » de l'ordinateur */
    display: flex; flex-direction: column; align-items: flex-end;
    padding: calc(var(--head) + 16px) 24px max(28px, env(safe-area-inset-bottom));
    background: var(--menu-bg, #012afe); color: var(--menu-fg, #fff);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0;
    transition: opacity .25s, visibility 0s linear .25s;
  }
  .is-open .site-nav { visibility: visible; opacity: 1; transition: opacity .25s; }
  .site-nav > a {
    display: block; color: inherit; text-decoration: none;
    font-size: clamp(34px, 10vw, 60px); font-weight: 400; line-height: 1.25; letter-spacing: 0.06em;
    transform: translateY(14px); opacity: 0;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
  }
  .site-nav > a:first-child { margin-top: auto; }
  .site-nav > a:nth-child(n+4) { display: block; }
  .is-open .site-nav > a { transform: none; opacity: 1; }
  .is-open .site-nav > a:nth-child(2) { transition-delay: .03s; }
  .is-open .site-nav > a:nth-child(3) { transition-delay: .06s; }
  .is-open .site-nav > a:nth-child(4) { transition-delay: .09s; }
  .is-open .site-nav > a:nth-child(5) { transition-delay: .12s; }
  .is-open .site-nav > a:nth-child(6) { transition-delay: .15s; }
  .site-nav > a:hover, .site-nav > a:focus-visible { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
  .site-nav .nav-foot {
    display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 28px;
    font-size: 16px;
  }
  .nav-foot a { color: inherit; text-decoration: none; }
  .nav-langs { display: flex; gap: 10px; letter-spacing: .04em; }
  .nav-langs a:not([aria-current]) { opacity: .6; }
  .wordmark { grid-row: 1; }
  .site-tools { grid-column: 1; grid-row: 1; gap: 14px; font-size: 14px; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 1240px) and (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav > a { transition: none; transform: none; }
}
@media (max-width: 760px) {
  :root { --head: 72px; }
  .site-head { gap: 10px; }
  .wordmark.logo { --logo-h: 50px; --logo-w: 210px; }
  /* téléphone : le logo prend la place, Bandcamp et les langues ne sont plus que dans le menu */
  .site-tools { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --head: 52px; }
  .wordmark.logo { --logo-h: 40px; --logo-w: 190px; }
}

/* =====================================================================
   Fiche du disque (touche « i ») — boîtier cristal sous blister.
   Le blister est un calque de reflets calculé en JS (assets/js/photo/blister.js).
   ===================================================================== */
.info {
  width: min(92vw, 880px); max-height: 92dvh;
  padding: 0; border: 0; border-radius: 18px;
  background: #f4f3f1; color: #1d1f22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  overflow: auto; overscroll-behavior: contain;   /* arrivé en bas de la fiche, la page derrière ne défile pas */
}
/* fiche ouverte : la page ne défile plus (une seule barre de défilement, celle de la fiche) */
html:has(.info[open]) { overflow: hidden; }
.info::backdrop { background: rgba(225, 224, 220, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* téléphones : pas de flou derrière la fiche (coûteux sur iPhone, recalculé à chaque image du disque qui tourne).
   Après la règle générale : placé avant elle, ce bloc de même poids était annulé (le flou restait). */
@media (pointer: coarse) {
  .info::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(225, 224, 220, .92); }
}
.info[open] { animation: info-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes info-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.info-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .06); cursor: pointer; display: grid; place-items: center;
}
.info-close svg { width: 18px; height: 18px; stroke: #2a2c2f; stroke-width: 2; fill: none; }
.info-close:hover { background: rgba(0, 0, 0, .1); }
.info-body:focus { outline: none; }   /* reçoit le focus à l'ouverture, au lieu de la croix */
.info-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; padding: 44px 40px 40px; }
.info-visual { display: grid; justify-items: center; align-content: start; gap: 14px; }
.info-hint { margin: 0; font-size: 14px; color: #6a6e73; }

/* Boîtier cristal vu de face (14,2 × 12,5 cm) : charnière à gauche, livret carré à droite */
.jewel {
  position: relative; display: block; width: 100%;
  aspect-ratio: 142 / 125;
  padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: #0d0d0e;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -12px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.18);
}
.jewel > span, .jewel > img { position: absolute; pointer-events: none; }
.jewel-tray { inset: 0; border-radius: 3px; background: linear-gradient(135deg, #1b1c1e, #0a0a0b); }
.jewel-cover { left: 10.6%; top: 2.2%; width: 85.5%; height: 95.7%; object-fit: cover; }   /* zone du livret de la photo du boîtier */
.jewel-hinge { left: 0; top: 0; bottom: 0; width: 9%; border-radius: 3px 0 0 3px; background: #0a0a0b; }
/* couvercle : photo d'un vrai boîtier vide sur fond noir, en « screen » (charnière, ergots, arêtes, reflets) */
.jewel-glass {
  inset: 0; border-radius: 3px;
  background: url("../generated/boitier-cristal.webp") 0 0 / 100% 100% no-repeat;   /* blanc + transparence = « screen » sans fusion (Safari) */
}

/* Blister : le film dépasse un peu du boîtier ; ses reflets sont dessinés par blister.js */
.blister {
  inset: -1.4%; border-radius: 5px;
  transform-origin: 100% 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 1.5px rgba(0,0,0,.05);
}
.blister-film { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
/* arrachage : on attrape le coin haut droit, le film se tend, puis part en se froissant */
.blister.is-peeling { animation: peel 1s cubic-bezier(.45,0,.3,1) forwards; }
.blister.is-off { display: none; }
@keyframes peel {
  0%   { transform: none; opacity: 1; filter: none; }
  18%  { transform: translate(.6%, -.8%) skew(-1.5deg, 1deg) scale(1.012); filter: brightness(1.25); }
  45%  { transform: translate(14%, -12%) rotate(5deg) skew(-6deg, 3deg) scale(.97, .93); opacity: 1; filter: brightness(1.4); }
  100% { transform: translate(55%, -48%) rotate(19deg) skew(-14deg, 6deg) scale(.55, .42); opacity: 0; filter: brightness(1.6); }
}

.info-text { min-width: 0; }
.info-title { margin: 6px 0 4px; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.info-meta { margin: 0 0 18px; color: #6a6e73; font-size: 14px; }
/* Citations de presse de la fiche (renderPress, 26/11/2026) : guillemets français, média en petites capitales */
.info-press { display: grid; gap: 12px; margin: 0 0 20px; }
.info-press figure { margin: 0; padding-left: 12px; border-left: 2px solid rgba(0,0,0,.14); }
.info-press blockquote {
  margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;   /* romain seul dans fonts.css */
  font-size: 19px; line-height: 1.3; color: #2a2c30; text-wrap: pretty;
}
.info-press blockquote::before { content: "«\00a0"; }
.info-press blockquote::after { content: "\00a0»"; }
.info-press figcaption { margin-top: 4px; color: #6a6e73; font-size: 12px; letter-spacing: .02em; }
.info-press cite, .info-press figcaption a { font-style: normal; font-variant: small-caps; letter-spacing: .06em; color: #3d4045; }
.info-press figcaption a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,.25); }
.info-tracks { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid rgba(0,0,0,.08); }
.info-tracks button {
  display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: baseline;
  width: 100%; padding: 9px 4px; border: 0; border-bottom: 1px solid rgba(0,0,0,.08);
  background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.info-tracks button:hover { background: rgba(0,0,0,.03); }
.info-tracks .n, .info-tracks .d { color: #8a8e93; font-variant-numeric: tabular-nums; font-size: 13px; }
.info-tracks .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-tracks .is-current button { color: #c4470e; }
.info-tracks .is-current .n { color: transparent; position: relative; }
.info-tracks .is-current .n::before { content: "▶"; position: absolute; left: 0; color: #e0590f; font-size: 11px; }
.info-buy {
  display: inline-block; padding: 11px 18px; border-radius: 999px;
  background: #1d1f22; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
}
.info-buy:hover { background: #000; }
.info-buy[hidden] { display: none; }   /* disque sans page Bandcamp (le display ci-dessus l'emportait sur hidden) */
/* La série du disque (26/11/2026) : un bac de disquaire en bas de la fiche. Photo d'un bac en plastique noir
   (assets/generated/bac-cd.webp, 784 × 904) : la « scène » garde les pixels de la photo et elle est réduite
   d'un coup (--s) ; les boîtiers sont posés dans l'ouverture en 3D (positions dans view-photo.js,
   renderSeries) et la façade, découpée dans la même photo, repasse devant eux. */
.info-series-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 16px; padding: 5px 11px;
  border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: #fff;
  color: #3a3d41; font: inherit; font-size: 12.5px; cursor: pointer;
}
.info-series-chip:hover { border-color: #e0590f; color: #c4470e; }
.info-series-chip[hidden] { display: none; }
.info-series {
  padding: 24px 40px 30px; scroll-margin-top: 12px; text-align: center;
  background: #e9e7ea;   /* le fond de la photo du bac */
  border-top: 1px solid rgba(0,0,0,.06); border-radius: 0 0 18px 18px;
}
.crate-k { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8a8e93; }
.crate-sub { margin: 4px 0 0; font-size: 13px; color: #6a6e73; }
.crate-sub > * + *::before { content: " · "; font-style: normal; }
.crate-tag:empty, .crate-period:empty { display: none; }
/* texte de présentation de la série (admin, 26/11/2026) : entre la devise et le bac, replié au-delà de ~5 lignes */
.crate-text { max-width: 560px; margin: 14px auto 4px; text-align: left; }
.crate-text-in { font-size: 15px; line-height: 1.6; color: #2a2c2f; max-height: calc(1.6em * 5); overflow: hidden; }
.crate-text-in p { margin: 0 0 .7em; }
.crate-text-in p:last-child { margin-bottom: 0; }
.crate-text-in a { color: #c4470e; }
.crate-text.is-open .crate-text-in { max-height: none; }
.crate-text.is-long .crate-text-in { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.crate-more { display: block; margin: 6px auto 0; padding: 4px 10px; border: 0; background: none; color: #c4470e; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.crate-more[hidden] { display: none; }

.crate {
  --s: .7;   /* agrandi le 26/11/2026 (Maxime : « augmenter la taille », avant .5) */
  position: relative; width: calc(784px * var(--s)); height: calc(904px * var(--s)); margin: 0 auto; overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
}
.crate:active { cursor: grabbing; }
.crate:focus-visible { outline: 2px solid #e0590f; outline-offset: 4px; border-radius: 6px; }
.crate-scene {
  position: absolute; left: 0; top: 0; width: 784px; height: 904px;
  transform: scale(var(--s)); transform-origin: 0 0;
}
/* la photo, bords fondus dans le fond de la fiche (son studio est un peu plus clair au centre) */
.crate-scene::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../generated/bac-cd.webp") 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 3%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 3%);
          mask-composite: intersect;
}
.crate-stack { position: absolute; inset: 0; transform-style: preserve-3d; perspective: 1700px; perspective-origin: 50% -15%; z-index: 1; }
/* bac à plat (téléphones, écrans tactiles) : aucune 3D, pas d'épaisseur dessinée (view-photo.js, `flat`) */
.crate.is-flat .crate-stack, .crate.is-flat .crate-card, .crate.is-flat .mini-jewel { transform-style: flat; perspective: none; }
.crate.is-flat .mj-top { display: none; }
/* la façade du bac (et sa lèvre arrondie), découpée dans la photo */
.crate-front {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("../generated/bac-cd.webp") 0 0 / 100% 100% no-repeat;
  clip-path: polygon(69px 662px, 73px 648px, 84px 638px, 102px 633px, 676px 633px, 694px 638px, 705px 648px, 709px 662px, 709px 904px, 69px 904px);
}
/* le nom de la série, au marqueur sur la carte du porte-étiquette (fenêtre : 245-529 × 705-782 dans la photo) */
.crate-name {
  position: absolute; z-index: 3; left: 253px; top: 709px; width: 268px; height: 69px;
  display: grid; place-items: center; overflow: hidden; pointer-events: none;
  font-family: 'Permanent Marker', cursive; line-height: 1; color: #16161a; white-space: nowrap;
  transform: rotate(-1.2deg); opacity: .88;
}
.crate-card {
  position: absolute; left: 139px; top: 250px; width: 500px;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
/* petit boîtier : charnière à gauche, pochette, reflets (même dessin que le grand), dessus en plastique */
.mini-jewel {
  position: relative; display: block; width: 100%; aspect-ratio: 142 / 125;
  border-radius: 4px; background: #0d0d0e;
  box-shadow: 0 2px 0 rgba(255,255,255,.55) inset, 0 30px 40px -24px rgba(0,0,0,.6);
}
.mini-jewel > span { position: absolute; }
.mj-tray { inset: 0; border-radius: 4px; background: linear-gradient(135deg, #1b1c1e, #0a0a0b); }
.crate-card, .crate-card .mini-jewel { transform-style: preserve-3d; }
.mj-top {   /* épaisseur du boîtier (1 cm pour 14,2 : 7 % de la largeur) */
  left: 0; right: 0; top: 0; height: 35px; transform-origin: 50% 0; transform: rotateX(-90deg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.12) 30%, rgba(0,0,0,.15)),
    linear-gradient(90deg, #1c1d1f 0 9%, rgba(214,218,222,.92) 9% 97%, #c8cbce 97%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
/* plastique : photo d'un vrai boîtier vide sur fond noir (assets/generated/boitier-cristal.webp, ChatGPT,
   942 × 830) posée en « screen » : le noir disparaît, restent charnière, ergots, arêtes et reflets.
   Zone du livret dans la photo : x 100-905, y 18-812 (10,6 %, 2,2 %, 85,5 % × 95,7 %). */
.mj-cover {
  left: 10.6%; top: 2.2%; width: 85.5%; height: 95.7%; overflow: hidden;
  display: grid; place-items: center; padding: 20px; background: #d9d6d0;
  color: #4a4d52; font: 400 34px/1.2 'Kalam', cursive; text-align: center;
}
.mj-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mj-hinge { left: 0; top: 0; bottom: 0; width: 9%; border-radius: 4px 0 0 4px; background: #0a0a0b; }
.mj-glass {
  inset: 0; border-radius: 4px; pointer-events: none;
  background: url("../generated/boitier-cristal.webp") 0 0 / 100% 100% no-repeat;   /* blanc + transparence = « screen » sans fusion (Safari) */
}
/* boîtiers du fond un peu dans l'ombre : un voile dans la pochette, jamais de filter sur le boîtier
   (un filter aplatit la 3D et le boîtier repasse alors devant celui qui est redressé) */
.mj-cover::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.crate-card:not(.is-focus) .mj-cover::after { opacity: .2; }
/* sorties seulement citées : voile plus marqué (pas de filter : Safari plantait avec filtres et fusions en 3D) */
.crate-card.is-off .mj-cover::after { opacity: .32; background: #3a3a3a; }
.crate-card.is-off.is-focus .mj-cover::after { opacity: .12; }
/* étiquette de prix de disquaire collée sur le boîtier redressé (élément 2D au-dessus de la scène : le
   boîtier redressé ne bouge pas, coin haut droit vers x 639, y 204 dans la photo). « ÉCOUTER » imprimé à
   l'étiqueteuse (VT323, encre rouge un peu baveuse), coins arrondis, entailles de sécurité, léger reflet. */
.crate-badge {
  position: absolute; z-index: 4; left: 468px; top: 214px; width: 150px; height: 64px; padding: 6px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 0; border-radius: 7px; cursor: pointer;
  background:
    linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,0) 38%),
    linear-gradient(#fbf9f2, #f1eee4);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -2px 3px rgba(0,0,0,.06) inset, 0 3px 6px rgba(0,0,0,.28), 0 1px 1px rgba(0,0,0,.25);
  color: #c4262e; font-family: 'VT323', monospace; line-height: .9; text-shadow: 0 0 .6px rgba(196,38,46,.8);
  transform: rotate(-5deg); transition: transform .15s ease, opacity .2s ease;
}
.crate-badge small { font-size: 15px; letter-spacing: .16em; color: rgba(196,38,46,.75); }
.crate-badge b { font-size: 36px; font-weight: 400; letter-spacing: .06em; }
.crate-badge::before, .crate-badge::after {   /* entailles de sécurité des étiquettes de prix */
  content: ""; position: absolute; bottom: 9px; width: 14px; height: 2px; background: rgba(0,0,0,.18); transform: rotate(35deg);
}
.crate-badge::before { left: 10px; }
.crate-badge::after { right: 10px; transform: rotate(-35deg); }
.crate-badge:hover:not(:disabled) { transform: rotate(-5deg) translateY(-2px) scale(1.04); }
.crate-badge.is-current { cursor: default; background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,0) 38%), linear-gradient(#ffd23a, #f4bf1c); color: #1d1f22; text-shadow: none; }
.crate-badge.is-current b { font-size: 27px; line-height: .95; }
.crate-badge[hidden] { display: none; }
.crate.is-running .crate-badge { opacity: 0; transition-duration: .05s; }
/* sorti du bac : il monte et file vers le lecteur */
.crate-card.is-pulled { transition: transform .38s cubic-bezier(.5,0,.8,.4), opacity .38s ease; transform: translate3d(-160px, -760px, 0) rotateZ(-14deg) !important; opacity: 0 !important; }

/* flèches de chaque côté du bac, compteur, titre */
.crate-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.crate-wrap .crate { margin: 0; }
.crate-nav {
  flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: #2a2c2f; font-size: 26px; line-height: 1; padding-bottom: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.16); transition: transform .15s ease, background .15s ease;
}
.crate-nav:hover:not(:disabled) { transform: scale(1.08); background: #fff7f2; color: #c4470e; }
.crate-nav:disabled { opacity: .3; cursor: default; }
.crate-label { margin: 10px auto 0; max-width: 460px; }
.crate-label .n { display: block; font-size: 11px; letter-spacing: .14em; color: #8a8e93; font-variant-numeric: tabular-nums; }
.crate-label strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.crate-label .f { display: block; font-size: 12.5px; color: #6a6e73; }
/* boîtiers du fond : visés au survol */
.crate-card:not(.is-focus):hover .mj-cover::after { opacity: 0; }
/* réglette de vignettes */
.crate-index {
  list-style: none; margin: 18px auto 0; padding: 6px 4px 10px; max-width: 100%;
  display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: thin;
}
.crate-thumb {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; overflow: hidden;
  border: 0; border-radius: 3px; background: #d3d0cb; cursor: pointer;
  color: #4a4d52; font: 400 9px/1.1 'Kalam', cursive; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.crate-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crate-thumb.is-off { opacity: .6; }
.crate-thumb:hover { transform: translateY(-3px); opacity: 1; }
.crate-thumb.is-focus { outline: 2px solid #1d1f22; outline-offset: 2px; transform: translateY(-3px); opacity: 1; }
.crate-thumb.is-current::after {   /* le disque dans le lecteur : point orange */
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-radius: 50%;
  background: #e0590f; box-shadow: 0 0 0 2px #fff;
}
.crate-play {
  display: inline-block; margin: 12px auto 0; padding: 10px 18px; border: 0; border-radius: 999px;
  background: #d7d3cc; color: #6a6e73; font: inherit; font-size: 14px; font-weight: 500;
}
.crate-play.is-on { background: #e0590f; color: #fff; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(224,89,15,.7); }
.crate-play.is-on:hover { background: #c94d0b; }
@media (max-width: 760px) {
  .info-series { padding: 20px 12px 28px; border-radius: 0; }
  .crate { --s: .44; }
  .crate-wrap { position: relative; }   /* les flèches passent par-dessus les bords du bac */
  .crate-nav { position: absolute; top: 46%; z-index: 5; width: 40px; height: 40px; font-size: 22px; }
  .crate-nav[data-step="-1"] { left: 0; }
  .crate-nav[data-step="1"] { right: 0; }
  .crate-index { justify-content: flex-start; }
  .crate-thumb { width: 46px; height: 46px; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .crate-card { transition: none; }
}

@media (max-width: 760px) {
  .info { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .info-body { grid-template-columns: 1fr; gap: 22px; padding: 64px 20px 28px; }
  .info-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .info[open], .blister.is-peeling { animation-duration: .01s; }
}

/* ---------- Liens pas encore actifs + pied de page (22/11/2026, session « Analyse critique ») ----------
   Un lien du menu ou des langues resté en href="/#" (page pas encore faite) est masqué : il réapparaît
   tout seul dès qu'on lui donne sa vraie adresse (/scene, /bio, /en/…). */
.site-nav > a[href="/#"], .langs a[href="/#"], .nav-langs a[href="/#"] { display: none; }
.langs:not(:has(a:not([href="/#"]))), .nav-langs:not(:has(a:not([href="/#"]))) { display: none; }
/* Pied de page discret commun à toutes les pages : lien vers les mentions légales */
.site-foot {
  padding: 20px 16px 28px; text-align: center;
  font: 400 12px/1.4 var(--font-titres); text-transform: uppercase; letter-spacing: 0.14em;
  background: #efedf0;
}
.site-foot a { color: #6e6e73; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: #1c1c1e; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Version texte pour les robots et les IA + pied de page à trois liens (28/11/2026) ----------
   « YOU ARE A ROBOT » à côté du choix de la langue : la même page en Markdown (/bio.md, /en/index.md…), servie par
   Laravel (App\Support\RobotText). Discret, en caractères de terminal, curseur qui clignote. docs/seo.md */
.site-tools .robot-link, .nav-foot .robot-link {
  font: 500 10.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: none;
  color: var(--ink-dim); text-decoration: none; white-space: nowrap;
  padding: 4px 7px 4px 6px; border: 1px dashed currentColor; border-radius: 3px; opacity: .75;
}
.site-tools .robot-link:hover, .site-tools .robot-link:focus-visible, .nav-foot .robot-link:hover, .nav-foot .robot-link:focus-visible {
  color: var(--ink-light); opacity: 1; border-style: solid;
}
.robot-link > span { animation: robot-cursor 1.1s steps(1) infinite; }
@keyframes robot-cursor { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .robot-link > span { animation: none; } }
/* la colonne à gauche du logo est étroite (le menu, ou « Menu », prend la place à droite) : le lien est posé sous les
   langues, hors du flux, pour ne rien pousser (sinon « Bandcamp » passait à la ligne et « Menu » sortait de l'écran) */
.site-tools:has(.robot-link) { position: relative; }
.site-tools .robot-link { position: absolute; right: 0; top: calc(100% + 7px); }
.nav-foot .robot-link { font-size: 12px; padding: 6px 9px; color: inherit; opacity: .85; }   /* couleur du menu ouvert */
/* menu du téléphone : Bandcamp et les langues sur une ligne, le lien en dessous (sinon Bandcamp sortait de l'écran) */
.site-nav .nav-foot:has(.robot-link) { flex-wrap: wrap; justify-content: flex-end; row-gap: 16px; }
.nav-foot .robot-link { flex-basis: auto; margin-left: auto; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.site-foot a[aria-current] { color: #1c1c1e; }
