/* =========================================================
   Beats Guyane : nuit amazonienne
   Fond vert forêt, titres vert clair, orange réservé aux actions.
   ========================================================= */

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --foret: #0D2A1C;
  --canopee: #143826;
  --sous-bois: #1A4430;
  --liane: #2A5A40;
  --vert: #B9F5A0;
  --jaune: #FFD21F;
  --jaune-clair: #FFE15C;
  --blanc: #FFFFFF;
  --menthe: #B9F5A0;
  --lueur: 255 210 31;
  --coton: #EEF5E9;
  --brume: #A3BFAE;

  --titre: "Arial Black", "Archivo Black", "Arial Bold", sans-serif;
  --texte: Arial, "Helvetica Neue", Helvetica, Roboto, sans-serif;

  --page: min(1240px, 100% - 2 * var(--marge));
  --marge: clamp(16px, 4vw, 40px);
  --lecteur: 84px;
  --fluide: cubic-bezier(.2, .8, .2, 1);
  --rebond: cubic-bezier(.2, .9, .25, 1.25);
  color-scheme: dark;
}

@view-transition { navigation: auto; types: page; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html { background: var(--foret); }
body {
  margin: 0;
  background: transparent;
  color: var(--coton);
  font: 400 16px/1.55 var(--texte);
  padding-bottom: calc(var(--lecteur) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blanc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--jaune); }
h1, h2, h3 { font-family: var(--titre); font-weight: 900; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--blanc); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--jaune); color: var(--foret); }

.visuel-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--jaune); color: var(--foret); padding: 10px 14px; font-weight: 700; border-radius: 6px; }
.evitement:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Boutons ---------- */
.bouton, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--jaune); color: var(--foret);
  font: 900 15px/1 var(--titre);
  padding: 13px 20px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--fluide), background-color .2s;
}
.bouton:hover, .btn:hover { background: var(--jaune-clair); color: var(--foret); }
.bouton:active, .btn:active { transform: scale(.96); }
.bouton:disabled { background: transparent; color: var(--brume); box-shadow: inset 0 0 0 1px var(--liane); cursor: not-allowed; transform: none; }
.bouton-grand { font-size: 17px; padding: 17px 26px; }
.bouton-petit { font-size: 13px; padding: 10px 15px; }
.bouton-large { width: 100%; }
.bouton-texte {
  display: inline-flex; align-items: center; gap: .45em;
  background: none; border: 0; color: var(--coton); cursor: pointer;
  font: 700 14px/1 var(--texte); padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--liane);
}
.bouton-texte:hover { color: var(--jaune); text-decoration-color: currentColor; }
.bouton-icone {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; color: var(--coton); border: 1px solid var(--liane); border-radius: 50%;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--fluide);
}
.bouton-icone:hover { border-color: var(--blanc); color: var(--blanc); }
.bouton-icone:active { transform: scale(.9); }
.bouton-icone .ico { width: 18px; height: 18px; }

/* Bouton playlist : + devient coche */
.bouton-playlist .ico:last-child { display: none; }
.bouton-playlist[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--foret); }
.bouton-playlist[aria-pressed="true"] .ico:first-child { display: none; }
.bouton-playlist[aria-pressed="true"] .ico:last-child { display: block; }

/* Lecture / pause */
.bouton-lecture {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: var(--jaune); color: var(--foret); border: 0; border-radius: 50%; cursor: pointer;
  transition: transform .2s var(--rebond), background-color .2s;
}
.bouton-lecture:hover { background: var(--jaune-clair); }
.bouton-lecture:active { transform: scale(.9); }
.bouton-lecture .ico { width: 22px; height: 22px; }
.bouton-lecture .ico:last-child, .bouton-lecture.en-lecture .ico:first-child { display: none; }
.bouton-lecture.en-lecture .ico:last-child { display: block; }
.bouton-lecture-grand { width: 72px; height: 72px; }
.bouton-lecture-grand .ico { width: 30px; height: 30px; }

/* ---------- En-tête ---------- */
.entete {
  view-transition-name: entete;
  width: var(--page); margin: 0 auto; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marque { font: 900 18px/1 var(--titre); color: var(--blanc); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.marque:hover { color: var(--coton); }
.entete-nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); }
.entete-nav a { color: var(--coton); text-decoration: none; font-weight: 700; font-size: 15px; }
.entete-nav a:hover { color: var(--jaune); }
.bouton-panier {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--canopee); color: var(--coton); border: 1px solid var(--liane); border-radius: 999px;
  padding: 9px 14px; font: 700 15px/1 var(--texte); cursor: pointer;
}
.bouton-panier:hover { border-color: var(--blanc); }
.pastille {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--jaune); color: var(--foret); border-radius: 999px; font: 900 12px/1 var(--titre);
}
.pastille[hidden] { display: none; }
.pastille.rebond { animation: rebond .5s var(--rebond); }
@keyframes rebond { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- Ouverture : le titre égaliseur ---------- */
.ouverture { width: var(--page); margin: 0 auto; padding: clamp(24px, 6vh, 72px) 0 clamp(40px, 8vh, 88px); }
.egaliseur {
  font-size: clamp(3.4rem, 17vw, 15rem);
  line-height: .8; letter-spacing: -.035em; margin: 0;
  display: flex; flex-direction: column; gap: .04em;
  user-select: none;
}
.egaliseur-ligne { display: flex; align-items: flex-end; width: max-content; }
.eq {
  --n: 0;
  display: inline-block;
  transform-origin: 50% 100%;
  color: color-mix(in oklab, var(--blanc), var(--jaune) calc(var(--n) * 100%));
  text-shadow: 0 0 calc(var(--n) * 40px) rgb(var(--lueur) / .55);
  transition: transform .7s var(--rebond), color .5s, text-shadow .5s;
  will-change: transform;
  animation: eq-entree 1s var(--rebond) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
@keyframes eq-entree {
  0% { transform: scaleY(.04); }
  55% { transform: scaleY(1.08); }
  100% { transform: scaleY(1); }
}
body.ecoute .eq { transition: color .15s; }
.ouverture-bas {
  margin-top: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.ouverture-bas p { max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--coton); margin: 0; }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.lien-fort { font: 900 15px/1 var(--titre); color: var(--blanc); }

/* ---------- Catalogue ---------- */
.catalogue { width: var(--page); margin: 0 auto; }
.filtres {
  position: sticky; top: 0; z-index: 20;
  display: grid; gap: 12px;
  padding: 14px 0 12px;
  background: var(--foret);
  border-bottom: 1px solid var(--liane);
}
.filtres-recherche input {
  width: 100%; height: 56px; padding: 0 20px;
  background: var(--canopee); color: var(--coton);
  border: 2px solid var(--liane); border-radius: 14px;
  font: 700 18px/1 var(--texte);
  transition: border-color .2s;
}
.filtres-recherche input::placeholder { color: var(--brume); font-weight: 400; }
.filtres-recherche input:focus { outline: none; border-color: var(--blanc); }
.filtres-genres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.filtres-genres::-webkit-scrollbar { display: none; }
.puce {
  flex: none; padding: 9px 15px; border-radius: 999px;
  background: transparent; color: var(--coton); border: 1px solid var(--liane);
  font: 700 14px/1 var(--texte); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.puce:hover { border-color: var(--blanc); }
.puce[aria-pressed="true"] { background: var(--blanc); color: var(--foret); border-color: var(--blanc); }
.filtres-reglages { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; color: var(--brume); }
.champ-bpm, .champ-select { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.champ-bpm input { width: 70px; }
.filtres-reglages input, .filtres-reglages select {
  width: auto; height: 38px; padding: 0 10px; background: var(--canopee); color: var(--coton);
  border: 1px solid var(--liane); border-radius: 8px; font: 700 14px/1 var(--texte);
}
.filtres-reglages select { padding-right: 6px; }
.resultat { margin: 14px 0 4px; color: var(--brume); font-size: 14px; }

.pistes-entete, .piste {
  display: grid; align-items: center; column-gap: 18px;
  grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 2fr) 52px 72px 92px 150px;
}
.pistes-entete { padding: 10px 12px; color: var(--brume); font-size: 13px; }
.pistes { list-style: none; margin: 0 0 24px; padding: 0; }
.piste {
  position: relative; padding: 10px 12px; border-radius: 12px;
  transition: background-color .25s, transform .35s var(--fluide), box-shadow .35s;
  animation: piste-entree .7s var(--fluide) backwards;
  animation-delay: calc(min(var(--k, 0), 14) * 50ms + 150ms);
}
@keyframes piste-entree { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.piste:hover { transform: translateX(4px); }
.piste.en-cours { box-shadow: inset 3px 0 0 var(--jaune), 0 0 40px rgb(var(--lueur) / .08); }
.piste + .piste::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; border-top: 1px solid var(--canopee); }
.piste:hover, .piste.en-cours { background: var(--canopee); }
.piste:hover + .piste::before, .piste.en-cours + .piste::before, .piste:hover::before, .piste.en-cours::before { border-color: transparent; }
.piste[hidden] { display: none; }

.piste-lecture {
  position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px;
}
.piste-lecture:disabled { cursor: default; }
.pochette {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  background: var(--sous-bois); font: 900 24px/1 var(--titre); flex: none;
}
.pochette img { width: 100%; height: 100%; object-fit: cover; }
.pochette.t-vert { background: var(--menthe); color: var(--foret); }
.pochette.t-orange { background: var(--jaune); color: var(--foret); }
.pochette.t-coton { background: var(--coton); color: var(--foret); }
.pochette.t-liane { background: var(--liane); color: var(--blanc); }
.piste-lecture-ico {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 8px;
  background: rgb(13 42 28 / .62); color: var(--coton); opacity: 0; transition: opacity .2s;
}
.piste-lecture-ico .ico:last-child { display: none; }
.piste-lecture:hover .piste-lecture-ico, .piste-lecture:focus-visible .piste-lecture-ico { opacity: 1; }
.mini-eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding: 15px 0; border-radius: 8px; background: rgb(13 42 28 / .62); }
.mini-eq i { width: 4px; height: 100%; background: var(--jaune); border-radius: 2px; transform-origin: bottom; animation: mini-eq .9s ease-in-out infinite; }
.mini-eq i:nth-child(2) { animation-delay: -.3s; }
.mini-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes mini-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.piste.en-cours.en-lecture .mini-eq { display: flex; }
.piste.en-cours.en-lecture .piste-lecture:hover .mini-eq { display: none; }
.piste.en-cours.en-lecture .piste-lecture-ico .ico:first-child { display: none; }
.piste.en-cours.en-lecture .piste-lecture-ico .ico:last-child { display: block; }

.piste-titre { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.piste-titre a {
  font: 900 17px/1.15 var(--titre); color: var(--coton); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.piste-titre a:hover, .piste.en-cours .piste-titre a { color: var(--jaune); }
.piste-infos, .piste-infos-mobile { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--brume); }
.piste-infos-mobile { display: none; }
.piste-onde { width: 100%; height: 40px; display: block; cursor: pointer; }
.piste-bpm, .piste-ton { font: 900 15px/1 var(--titre); color: var(--coton); }
.piste-ton { color: var(--brume); }
.piste-prix { font: 900 15px/1 var(--titre); color: var(--blanc); white-space: nowrap; }
.piste-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* Transitions des filtres (View Transitions) */
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--fluide); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

.etat-vide { padding: 40px 0 56px; max-width: 52ch; }
.etat-vide-titre { font: 900 clamp(1.4rem, 3vw, 2rem)/1.1 var(--titre); color: var(--blanc); margin-bottom: .4em; }
.etat-vide[hidden] { display: none; }

/* ---------- Licences ---------- */
.licences { width: var(--page); margin: clamp(56px, 9vw, 120px) auto 0; }
.licences-intro { max-width: 60ch; margin-bottom: 28px; }
.licences-intro p { color: var(--brume); }
.tableau-defile { overflow-x: auto; }
.comparatif { width: 100%; min-width: 640px; border-collapse: collapse; }
.comparatif th, .comparatif td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--liane); }
.comparatif thead th { font: 900 20px/1.1 var(--titre); color: var(--blanc); padding-bottom: 20px; }
.comparatif thead th span { display: block; margin-top: 8px; font: 400 14px/1.45 var(--texte); color: var(--brume); max-width: 26ch; }
.comparatif tbody th { font-weight: 700; color: var(--brume); width: 20%; }
.comparatif td { color: var(--coton); font-weight: 700; }

/* ---------- Pied de page ---------- */
.pied { width: var(--page); margin: clamp(64px, 10vw, 128px) auto 0; padding: 28px 0 36px; border-top: 1px solid var(--liane); display: grid; gap: 10px; }
.pied-marque { font: 900 16px/1 var(--titre); color: var(--blanc); text-transform: uppercase; margin: 0; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied nav a { color: var(--coton); font-size: 14px; text-decoration: none; }
.pied nav a:hover { color: var(--jaune); text-decoration: underline; }
.pied-note { color: var(--brume); font-size: 13px; margin: 0; }

/* ---------- Lecteur ---------- */
.lecteur {
  view-transition-name: lecteur;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--lecteur) + env(safe-area-inset-bottom));
  padding: 0 var(--marge) env(safe-area-inset-bottom);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr) auto; align-items: center; gap: 24px;
  background: var(--canopee); border-top: 1px solid var(--liane);
  transition: transform .45s var(--fluide);
}
.lecteur[data-etat="vide"] .lecteur-onde, .lecteur[data-etat="vide"] #l-prec, .lecteur[data-etat="vide"] #l-suiv { opacity: .35; pointer-events: none; }
.lecteur-piste { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lecteur-piste .pochette { width: 48px; height: 48px; font-size: 22px; }
.lecteur-texte { display: flex; flex-direction: column; min-width: 0; }
.lecteur-texte strong { font: 900 15px/1.2 var(--titre); color: var(--coton); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#l-meta { display: flex; gap: 10px; font-size: 13px; color: var(--brume); white-space: nowrap; overflow: hidden; }
.lecteur-commandes { display: flex; align-items: center; gap: 10px; }
.lecteur-commandes .bouton-icone { border: 0; }
.lecteur-onde { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; transition: opacity .3s; }
.temps { font: 700 12px/1 var(--texte); color: var(--brume); font-variant-numeric: tabular-nums; min-width: 34px; }
.temps:last-child { text-align: right; }
.onde-zone { position: relative; height: 44px; border-radius: 6px; }
.onde-zone canvas { width: 100%; height: 100%; display: block; }
.onde-zone input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.onde-zone:has(input:focus-visible) { outline: 3px solid var(--jaune); outline-offset: 4px; }
.lecteur-actions { display: flex; align-items: center; gap: 14px; }
.compteur { font: 900 12px/1 var(--titre); color: var(--jaune); }
.compteur:empty { display: none; }

/* ---------- Tiroirs et fenêtre de licence ---------- */
dialog { color: var(--coton); }
dialog::backdrop { background: rgb(6 20 13 / .7); backdrop-filter: blur(3px); }
.tiroir {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--canopee); border-left: 1px solid var(--liane);
  display: none; flex-direction: column;
}
.tiroir[open] { display: flex; animation: tiroir-entree .45s var(--fluide); }
.tiroir.fermeture { animation: tiroir-sortie .3s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes tiroir-sortie { to { transform: translateX(100%); } }
dialog[open]::backdrop { animation: fondu-entree .35s ease; }
dialog.fermeture::backdrop { animation: fondu-sortie .3s ease forwards; }
@keyframes fondu-entree { from { opacity: 0; } }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes tiroir-entree { from { transform: translateX(100%); } to { transform: none; } }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--liane); }
.tiroir-tete h2 { margin: 0; font-size: 24px; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 8px 22px; }
.tiroir-pied { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--liane); display: grid; gap: 10px; justify-items: center; }
.tiroir-pied[hidden] { display: none; }
.vide { color: var(--brume); padding: 20px 0; }
.ligne-tiroir { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--liane); }
.ligne-tiroir .pochette { width: 44px; height: 44px; font-size: 20px; }
.ligne-tiroir strong { display: block; font: 900 15px/1.2 var(--titre); }
.ligne-tiroir span { font-size: 13px; color: var(--brume); }
.ligne-tiroir .droite { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ligne-tiroir .prix { font: 900 15px/1 var(--titre); color: var(--blanc); }
.ligne-tiroir button.titre-jouer { all: unset; cursor: pointer; display: block; min-width: 0; }
.ligne-tiroir button.titre-jouer:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.ligne-tiroir.en-cours strong { color: var(--jaune); }
.total { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin: 0; }
.total strong { font: 900 22px/1 var(--titre); color: var(--blanc); }

.fenetre {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--liane); border-radius: 20px; background: var(--canopee); overflow: auto;
}
.fenetre[open] { animation: fenetre-entree .45s var(--rebond); }
.fenetre.fermeture { animation: fenetre-sortie .22s ease-in forwards; }
@keyframes fenetre-sortie { to { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fenetre-entree { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.fenetre-tete { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 20px 20px 8px; }
.fenetre-tete .pochette { width: 56px; height: 56px; }
.fenetre-tete h2 { font-size: 22px; margin: 0 0 2px; }
.fenetre-tete p { margin: 0; color: var(--brume); font-size: 14px; }
.fenetre form > fieldset { padding: 12px 20px; }
.fenetre-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 20px; flex-wrap: wrap; }
.fenetre-pied a { font-size: 14px; color: var(--coton); }

.choix-licences { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choix-licence {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 16px 18px 16px 50px; border: 2px solid var(--liane); border-radius: 14px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choix-licence:hover { border-color: var(--brume); }
.choix-licence input { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--jaune); }
.choix-licence:has(input:checked) { border-color: var(--jaune); background: var(--sous-bois); }
.choix-licence:has(input:focus-visible) { outline: 3px solid var(--jaune); outline-offset: 3px; }
.choix-nom { font: 900 17px/1.2 var(--titre); color: var(--coton); }
.choix-prix { font: 900 17px/1.2 var(--titre); color: var(--blanc); }
.choix-desc { grid-column: 1 / -1; font-size: 14px; color: var(--brume); }

/* ---------- Annonces (toasts) ---------- */
.annonces { position: fixed; z-index: 60; inset: auto auto auto 50%; margin: 0; border: 0; padding: 0; background: transparent; overflow: visible; height: auto; left: 50%; bottom: calc(var(--lecteur) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.annonce {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--vert); color: var(--foret);
  font-weight: 700; font-size: 15px; pointer-events: auto;
  animation: annonce .35s var(--fluide);
}
.annonce.erreur { background: var(--jaune); }
.annonce button { background: none; border: 0; color: var(--foret); font: 900 14px/1 var(--titre); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.annonce.sortie { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes annonce { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Fiche prod ---------- */
.fiche { width: var(--page); margin: 0 auto; padding-top: 16px; }
.retour { display: inline-block; margin-bottom: 24px; color: var(--brume); font-weight: 700; text-decoration: none; }
.retour::before { content: "‹ "; }
.retour:hover { color: var(--jaune); }
.fiche-tete { display: flex; gap: clamp(18px, 4vw, 40px); align-items: flex-end; flex-wrap: wrap; }
.pochette-grande { width: clamp(140px, 22vw, 240px); height: clamp(140px, 22vw, 240px); border-radius: 18px; font-size: clamp(64px, 10vw, 120px); }
.fiche-texte { flex: 1; min-width: 260px; }
.fiche-texte h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin-bottom: 18px; overflow-wrap: anywhere; }
.fiche-infos { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 14px; }
.fiche-infos dt { font-size: 13px; color: var(--brume); }
.fiche-infos dd { margin: 2px 0 0; font: 900 22px/1 var(--titre); color: var(--coton); }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fiche-tags span { padding: 6px 12px; border: 1px solid var(--liane); border-radius: 999px; font-size: 13px; }
.fiche-ecoute { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin: 40px 0; padding: 18px; background: var(--canopee); border-radius: 18px; }
.fiche-onde { height: 72px; }
.fiche-description { max-width: 65ch; color: var(--coton); margin-bottom: 40px; }
.fiche-licences { max-width: 720px; }
.fiche-achat { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 20px; }
.fiche-achat a { color: var(--coton); }
.note { color: var(--brume); font-size: 14px; margin-top: 16px; }

/* ---------- Pages simples, commande, légal ---------- */
.page-simple { width: var(--page); margin: 0 auto; padding-top: clamp(16px, 4vw, 48px); }
.texte-legal { max-width: 75ch; margin-left: max(var(--marge), (100% - 1240px) / 2); }
.texte-legal h2 { font-size: 1.3rem; margin-top: 2em; }
.texte-legal p { color: var(--coton); }
.commande-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.commande-recap, .commande-form { background: var(--canopee); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.commande h2 { font-size: 1.4rem; }
.lignes-panier { list-style: none; margin: 0 0 18px; padding: 0; }
.lignes-panier li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--liane); }
.lignes-panier li div { display: flex; flex-direction: column; }
.lignes-panier strong { font: 900 16px/1.2 var(--titre); }
.lignes-panier span { color: var(--brume); font-size: 14px; }
.lignes-panier .ligne-prix { font: 900 16px/1 var(--titre); color: var(--blanc); }
.lignes-panier form { grid-column: 1 / -1; }
.lignes-panier .bouton-texte { padding: 4px 0; font-size: 13px; }
.commande-form { display: grid; gap: 16px; }
.commande-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facultatif { font-weight: 400; color: var(--brume); }
.commande-form label > span:first-child { display: block; }
.aide { font-weight: 400; color: var(--brume); font-size: 13px; }
.case { display: flex !important; grid-template-columns: none; gap: 12px !important; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--jaune); }
.merci { max-width: 60ch; margin-left: max(var(--marge), (100% - 1240px) / 2); }

/* ---------- Champs (site et admin) ---------- */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  font: 400 16px/1.3 var(--texte); color: var(--coton);
  background: var(--foret); border: 1px solid var(--liane); border-radius: 10px; padding: 12px 14px; width: 100%;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--blanc); }
input[type="file"] { padding: 9px; }

.ok, .alerte { padding: 14px 16px; border-radius: 12px; margin: 14px 0; font-weight: 700; }
.ok { background: var(--vert); color: var(--foret); }
.alerte { background: rgb(255 210 31 / .12); border: 1px solid var(--jaune); color: var(--coton); }

/* ---------- Back office (pages .admin uniquement) ---------- */
.admin { padding-bottom: 48px; }
.admin main { width: var(--page); margin: 0 auto; }
.admin main:not(:has(.admin-nav)) { padding-top: clamp(32px, 8vh, 96px); }
.top { width: var(--page); margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top .logo { font: 900 16px/1 var(--titre); color: var(--blanc); text-decoration: none; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--coton); font-weight: 700; text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.admin-nav a { padding: 9px 15px; border: 1px solid var(--liane); border-radius: 999px; color: var(--coton); text-decoration: none; font-weight: 700; font-size: 14px; }
.admin-nav a:hover { border-color: var(--blanc); }
.admin-nav a.actif { background: var(--blanc); color: var(--foret); border-color: var(--blanc); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--canopee); border-radius: 16px; padding: 18px; color: var(--brume); font-size: 14px; }
.stat b { display: block; margin-top: 8px; font: 900 28px/1 var(--titre); color: var(--blanc); }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--canopee); border-radius: 14px; overflow: hidden; }
.admin th, .admin td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--liane); }
.admin th { color: var(--brume); font-weight: 700; }
.admin .carte { background: var(--canopee); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.admin .carte h3 { font-size: 18px; }
.admin .form-ligne { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.admin .form-ligne > * { flex: 1; min-width: 180px; }
.admin form label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 700; color: var(--coton); }
.admin form label:has(> input[type="checkbox"]) { display: flex; gap: 10px; align-items: center; }
.btn.vert { background: var(--vert); }
.btn.gris { background: transparent; color: var(--coton); border: 1px solid var(--liane); }
.btn.gris:hover { border-color: var(--blanc); color: var(--blanc); background: transparent; }
.small { font-size: 13px; color: var(--brume); }
.contrat { background: var(--coton); color: #111; padding: 32px; border-radius: 12px; white-space: pre-wrap; font: 400 14px/1.6 var(--texte); max-width: 80ch; }
.admin code { background: var(--canopee); padding: 2px 6px; border-radius: 4px; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .pistes-entete, .piste { grid-template-columns: 52px minmax(0, 1.4fr) minmax(0, 1.3fr) 44px 92px 130px; }
  .pistes-entete span:nth-child(5), .piste-ton { display: none; }
  .lecteur { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto; gap: 16px; }
}
@media (max-width: 820px) {
  :root { --lecteur: 132px; }
  .entete-nav a { display: none; }
  .pistes-entete { display: none; }
  .piste { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 6px; padding: 10px 8px; }
  .piste .piste-onde, .piste-bpm, .piste-ton, .piste-prix { display: none; }
  .filtres { position: static; }
  .fiche-onde { height: 56px; }
  .piste-infos { display: none; }
  .piste-infos-mobile { display: flex; }
  .piste-titre a { font-size: 16px; }
  .piste-actions { gap: 8px; }
  .lecteur {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "piste commandes" "onde onde";
    align-content: center; row-gap: 8px; column-gap: 12px; padding-top: 10px;
  }
  .lecteur-piste { grid-area: piste; }
  .lecteur-commandes { grid-area: commandes; gap: 4px; }
  .lecteur-onde { grid-area: onde; }
  .lecteur-actions { display: none; }
  .lecteur-commandes #l-prec { display: none; }
  .onde-zone { height: 34px; }
  .commande-grille { grid-template-columns: 1fr; }
  .fiche-ecoute { grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px; margin: 28px 0; }
  .bouton-lecture-grand { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .bouton-panier span:not(.pastille) { display: none; }
  .ouverture-actions { width: 100%; }
  .ouverture-actions .bouton { width: 100%; }
  .champs-duo { grid-template-columns: 1fr; }
  .filtres-recherche input { height: 50px; font-size: 16px; }
  .piste-actions .bouton-petit { padding: 10px 12px; }
}

/* Lecteur mobile : la playlist passe dans la barre de commandes */
.lecteur-commandes .lecteur-mobile-actions { display: none; }
@media (max-width: 820px) {
  .lecteur-commandes .lecteur-mobile-actions { display: inline-grid; }
}

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

@media print {
  body { background: #fff; color: #111; padding: 0; }
  .entete, .pied, .lecteur, .annonces, .bouton, .btn, .admin-nav, .top, dialog { display: none !important; }
  .contrat { background: #fff; padding: 0; max-width: none; }
  h1, h2, a { color: #111; }
}

.prix-mobile { color: var(--blanc); font-weight: 700; }

/* ---------- Fond lumineux : halos qui dérivent lentement et battent avec les basses ---------- */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transform-origin: 50% 60%; will-change: transform, opacity; }
.fond span { position: absolute; border-radius: 50%; will-change: transform; }
.fond span:nth-child(1) {
  width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgb(185 245 160 / .26), rgb(185 245 160 / .08) 55%, transparent);
  animation: halo-1 32s ease-in-out infinite alternate;
}
.fond span:nth-child(2) {
  width: 60vmax; height: 60vmax; right: -24vmax; top: 6vmax;
  background: radial-gradient(closest-side, rgb(255 210 31 / .16), rgb(255 210 31 / .05) 55%, transparent);
  animation: halo-2 38s ease-in-out infinite alternate;
}
.fond span:nth-child(3) {
  width: 80vmax; height: 80vmax; left: 10vmax; bottom: -52vmax;
  background: radial-gradient(closest-side, rgb(52 170 105 / .32), rgb(52 170 105 / .1) 55%, transparent);
  animation: halo-3 44s ease-in-out infinite alternate;
}
@keyframes halo-1 { to { transform: translate(14vmax, 10vmax) scale(1.12); } }
@keyframes halo-2 { to { transform: translate(-12vmax, 14vmax) scale(.9); } }
@keyframes halo-3 { to { transform: translate(-10vmax, -8vmax) scale(1.08); } }
.filtres, .lecteur, .tiroir, .fenetre { background-color: rgb(13 42 28 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lecteur, .tiroir, .fenetre { background-color: rgb(20 56 38 / .9); }


/* =========================================================
   Transitions
   ========================================================= */
.bouton, .btn { transition: transform .2s var(--fluide), background-color .2s, box-shadow .3s var(--fluide); }
.bouton:not(:disabled):hover, .btn:hover { box-shadow: 0 0 0 4px rgb(var(--lueur) / .16), 0 10px 34px rgb(var(--lueur) / .32); }
.bouton-lecture { transition: transform .2s var(--rebond), background-color .2s, box-shadow .3s; }
.bouton-lecture:hover { box-shadow: 0 0 0 6px rgb(var(--lueur) / .16), 0 0 34px rgb(var(--lueur) / .45); }
.bouton-lecture.en-lecture { box-shadow: 0 0 24px rgb(var(--lueur) / .5); }

/* Entre les pages : l'en-tête et le lecteur restent en place, le contenu glisse */
main { view-transition-name: contenu; }
html:active-view-transition-type(page)::view-transition-old(contenu) { animation: page-sortie .28s cubic-bezier(.5, 0, .75, 0) both; }
html:active-view-transition-type(page)::view-transition-new(contenu) { animation: page-entree .55s var(--fluide) both; }
@keyframes page-sortie { to { opacity: 0; transform: translateY(-12px) scale(.985); filter: blur(8px); } }
@keyframes page-entree { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
::view-transition-group(entete), ::view-transition-group(lecteur) { animation-duration: 0s; }

/* Apparition au défilement */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--fluide), transform .8s var(--fluide), filter .8s var(--fluide); transition-delay: var(--rd, 0s); }
html.js [data-reveal].vu { opacity: 1; transform: none; filter: none; }

/* Lien espace artiste */
.lien-compte { display: inline-flex; align-items: center; gap: 8px; }
.lien-compte .ico { width: 18px; height: 18px; }

/* =========================================================
   Espace artiste
   ========================================================= */
.compte-accueil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 6vw, 80px); align-items: start; }
.compte-intro h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.compte-intro p { font-size: 18px; max-width: 44ch; }
.liste-atouts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.liste-atouts li { padding-left: 30px; position: relative; font-weight: 700; }
.liste-atouts li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 16px rgb(var(--lueur) / .6); }
.compte-carte { background: rgb(20 56 38 / .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--liane); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.compte-carte h2 { font-size: 1.5rem; }
.form-compte { display: grid; gap: 16px; margin-top: 8px; }
.form-compte label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form-compte label.case { display: flex; }
.bascule { margin: 16px 0 0; font-size: 14px; color: var(--brume); }
.encart { padding: 14px 16px; border-radius: 14px; background: rgb(var(--lueur) / .1); border: 1px solid rgb(var(--lueur) / .35); font-size: 14px; }
.espace-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.espace-tete h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); margin: 0; }
.espace-salut { color: var(--brume); font-weight: 700; margin: 0 0 6px; }
.mes-prods { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 10px; }
.ma-prod { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px; background: rgb(20 56 38 / .7); border: 1px solid var(--liane); border-radius: 16px; transition: border-color .3s, transform .35s var(--fluide); }
.ma-prod:hover { border-color: rgb(var(--lueur) / .5); transform: translateY(-2px); }
.ma-prod-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-prod-texte strong { font: 900 17px/1.2 var(--titre); }
.ma-prod-texte span { color: var(--brume); font-size: 14px; }
.ma-prod-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.etiquette { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--liane); font-size: 13px; }
.espace-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.replie { margin-top: 18px; border-top: 1px solid var(--liane); padding-top: 14px; }
.replie summary { cursor: pointer; font-weight: 700; }
.bouton-danger { background: transparent; color: var(--coton); box-shadow: inset 0 0 0 1px #E5484D; }
.bouton-danger:hover { background: #E5484D; color: #fff; box-shadow: none; }

/* =========================================================
   Statistiques (back office)
   ========================================================= */
.stat { transition: transform .35s var(--fluide), box-shadow .35s; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgb(0 0 0 / .25); }
.stat a { color: var(--brume); text-decoration: none; }
.stat a:hover { color: var(--blanc); text-decoration: underline; }
.stat .small { display: block; margin-top: 6px; }
.periodes { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px; }
.periodes a { padding: 8px 14px; border-radius: 999px; color: var(--coton); text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.periodes a:hover { border-color: var(--liane); }
.periodes a.actif { background: var(--jaune); color: var(--foret); }
.titre-graph { font-size: 1.15rem; margin: 0 0 14px; }
.graph-zone { position: relative; }
.graphique { width: 100%; height: auto; display: block; overflow: visible; }
.graphique .grille { stroke: var(--liane); stroke-width: 1; stroke-dasharray: 2 4; }
.graphique .base { stroke: var(--brume); stroke-width: 1; }
.graphique .axe { fill: var(--brume); font: 400 12px var(--texte); }
.graphique .cible { fill: transparent; }
.graphique .valeur { fill: var(--jaune); transition: fill .15s; transform-box: fill-box; transform-origin: bottom; animation: barre-pousse .8s var(--fluide) backwards; }
@keyframes barre-pousse { from { transform: scaleY(0); } }
.graphique .barre:hover .valeur, .graphique .barre:focus .valeur { fill: var(--jaune-clair); }
.graphique .barre:hover .cible, .graphique .barre:focus .cible { fill: rgb(255 255 255 / .05); }
.graphique .barre:focus { outline: none; }
.info-bulle { position: fixed; z-index: 70; transform: translate(-50%, calc(-100% - 12px)); padding: 8px 12px; border-radius: 10px; background: var(--coton); color: var(--foret); font: 700 13px/1.2 var(--texte); pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.grille-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.liste-barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-barres li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 1.2fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.lb-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-piste { height: 10px; background: var(--foret); border-radius: 999px; overflow: hidden; }
.lb-piste span { display: block; height: 100%; background: var(--jaune); border-radius: 0 4px 4px 0; transform-origin: left; animation: barre-glisse .9s var(--fluide) backwards; }
@keyframes barre-glisse { from { transform: scaleX(0); } }
.lb-val { font-weight: 700; text-align: right; white-space: nowrap; }
.lb-val small { color: var(--brume); font-weight: 400; }
.tableau-defile table { min-width: 720px; }

/* Back office : chaque écran arrive en douceur */
.admin main > * { animation: admin-entree .6s var(--fluide) backwards; }
.admin main > *:nth-child(2) { animation-delay: .05s; }
.admin main > *:nth-child(3) { animation-delay: .1s; }
.admin main > *:nth-child(4) { animation-delay: .15s; }
.admin main > *:nth-child(5) { animation-delay: .2s; }
.admin main > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes admin-entree { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
.admin-nav a { transition: background-color .25s, color .25s, border-color .25s; }
.admin table tr { transition: background-color .2s; }
.admin table tr:hover td { background: rgb(255 255 255 / .03); }

@media (max-width: 820px) {
  .entete-nav a.lien-compte { display: inline-flex; }
  .lien-compte span { display: none; }
  .compte-accueil, .espace-grille { grid-template-columns: 1fr; }
  .ma-prod { grid-template-columns: 52px 1fr; }
  .ma-prod-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .fond span { animation: none; }
}
@media print { .fond, .info-bulle { display: none !important; } }

/* Back office : équipe, paiement, historique */
.top nav { align-items: center; }
.connecte { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: 13px; font-weight: 700; color: var(--coton); }
.code-invit { font: 900 16px/1 var(--titre); letter-spacing: .06em; color: var(--jaune); background: rgb(var(--lueur) / .12) !important; padding: 4px 8px !important; }
.etapes { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.55; }
.etapes code, .small code { overflow-wrap: anywhere; }
.historique { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Beatmakers */
.piste-beatmaker { font-size: 13px; color: var(--coton); opacity: .85; }
.fiche-beatmaker { margin: -8px 0 16px; color: var(--brume); font-size: 16px; }
.fiche-beatmaker strong { color: var(--blanc); }
.stat-fort { box-shadow: inset 0 0 0 1px rgb(var(--lueur) / .5); }
.stat-fort b { color: var(--jaune); }
.barre-ligne td { opacity: .55; }

/* Téléchargement gratuit */
.bouton-secondaire { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 2px var(--jaune); }
.bouton-secondaire:hover { background: rgb(var(--lueur) / .14); color: var(--blanc); }
.lien-gratuit { font-size: 13px; white-space: nowrap; color: var(--jaune); text-decoration-color: rgb(var(--lueur) / .5); }
.lien-gratuit:hover { color: var(--jaune-clair); }
.fiche-ecoute { grid-template-columns: auto 1fr auto auto; }
.gratuit-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 8px; }
.gratuit-grille h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.gratuit-grille h2 { font-size: 1.2rem; margin-top: 1.6em; }
.gratuit-prod { display: flex; align-items: center; gap: 14px; margin: 8px 0 8px; }
.gratuit-prod strong { display: block; font: 900 20px/1.2 var(--titre); }
.gratuit-prod span { color: var(--brume); }
.gratuit form { display: grid; gap: 16px; }
.encadre-gratuit { margin-top: 14px; }
@media (max-width: 820px) {
  .gratuit-grille { grid-template-columns: 1fr; }
  .fiche-ecoute { grid-template-columns: auto 1fr auto; }
  .fiche-ecoute .bouton-secondaire { grid-column: 1 / -1; order: 5; }
  .lien-gratuit { display: none; }
}

/* Connexion Google et inscription */
.bouton-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; margin: 4px 0 6px; border-radius: 999px; background: #fff; color: #1f1f1f; font: 700 15px/1 var(--texte); text-decoration: none; transition: transform .2s var(--fluide), box-shadow .3s; }
.bouton-google:hover { color: #1f1f1f; box-shadow: 0 0 0 4px rgb(255 255 255 / .15); transform: translateY(-1px); }
.separateur { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; color: var(--brume); font-size: 13px; }
.separateur::before, .separateur::after { content: ""; flex: 1; border-top: 1px solid var(--liane); }
.case-mineur span { font-size: 13px; color: var(--brume); }
.form-compte input[type="date"] { color-scheme: dark; }

/* Transactions gratuites */
.pastille-type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pastille-type.gratuite { background: rgb(185 245 160 / .15); color: var(--menthe); border: 1px solid rgb(185 245 160 / .4); }

/* =========================================================
   Bandeau défilant « DES NEW BEATS TOUS LES MOIS »
   ========================================================= */
html, body { overflow-x: clip; }
.defilant {
  position: relative; margin: 8px 0 64px; padding: 16px 0;
  background: var(--jaune); color: var(--foret);
  transform: rotate(-2deg); width: 104vw; margin-left: -2vw;
  box-shadow: 0 0 60px rgb(var(--lueur) / .35);
  overflow: hidden;
}
.defilant-piste { display: flex; width: max-content; animation: defile 26s linear infinite; font: 900 clamp(22px, 3.6vw, 44px)/1 var(--titre); white-space: nowrap; }
.defilant-piste > * { padding-right: .7em; }
.defilant .etoile { font-size: .7em; align-self: center; }
.defilant:hover .defilant-piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }

/* =========================================================
   Licences : sections indépendantes qui défilent
   ========================================================= */
.carrousel { position: relative; }
.carrousel-piste {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; border-radius: 22px; }
.licence-carte {
  flex: 0 0 min(400px, 86%); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 32px); border-radius: 24px;
  background: rgb(20 56 38 / .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--liane);
  transition: transform .45s var(--fluide), border-color .3s, box-shadow .45s;
}
.licence-carte:hover { transform: translateY(-6px); border-color: rgb(var(--lueur) / .6); box-shadow: 0 18px 50px rgb(0 0 0 / .3), 0 0 40px rgb(var(--lueur) / .12); }
.licence-num { margin: 0; font: 900 15px/1 var(--titre); color: var(--jaune); }
.licence-carte h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; color: var(--blanc); }
.licence-prix { margin: 0; font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--titre); color: var(--blanc); }
.licence-details { margin: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.licence-details div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--liane); font-size: 14px; }
.licence-details dt { color: var(--brume); }
.licence-details dd { margin: 0; font-weight: 700; text-align: right; }
.licence-carte .bouton { align-self: flex-start; }
.licence-stems { background: linear-gradient(160deg, rgb(var(--lueur) / .16), rgb(20 56 38 / .82) 55%); border-color: rgb(var(--lueur) / .45); }
.licence-exclu { background: rgb(13 42 28 / .85); border-style: dashed; }
.carrousel-commandes { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.carrousel-points { display: flex; gap: 8px; }
.carrousel-point { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--liane); cursor: pointer; transition: width .35s var(--fluide), background-color .3s; }
.carrousel-point[aria-selected="true"] { width: 30px; background: var(--jaune); }

/* =========================================================
   Partage
   ========================================================= */
.bouton-partager .ico { width: 17px; height: 17px; }
.partage-liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 12px 20px; }
.partage-lien { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 14px; border: 1px solid var(--liane); color: var(--blanc); font-weight: 700; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--fluide); }
.partage-lien:hover { border-color: var(--jaune); background: rgb(var(--lueur) / .1); color: var(--blanc); transform: translateY(-2px); }
.partage-copie { display: flex; gap: 10px; padding: 4px 20px 8px; }
.partage-copie input { flex: 1; min-width: 0; }
.partage-note { padding: 0 20px 18px; margin: 0; }

/* =========================================================
   Espace beatmaker
   ========================================================= */
.stats-site { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 28px; }
.stats-site .stat { background: rgb(20 56 38 / .72); border: 1px solid var(--liane); border-radius: 18px; padding: 18px; color: var(--brume); font-size: 14px; }
.stats-site .stat b { display: block; margin-top: 8px; font: 900 28px/1 var(--titre); color: var(--blanc); }
.depot { margin-bottom: 40px; }
.champs-trio { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 16px; }
.depot-groupe { border: 1px solid var(--liane); border-radius: 18px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
.depot-groupe legend { padding: 0 8px; font: 900 15px/1 var(--titre); color: var(--blanc); }
.depot-licence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.champ-depot { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgb(13 42 28 / .6); border: 1px dashed var(--liane); transition: border-color .3s, background-color .3s; }
.champ-depot-titre { font-weight: 700; font-size: 14px; }
.champ-depot input[type="file"] { font-size: 14px; color: var(--brume); }
.champ-depot.fait { border-style: solid; border-color: var(--menthe); background: rgb(185 245 160 / .07); }
.champ-depot.fait .depot-info { color: var(--menthe); font-weight: 700; }
.champ-depot.erreur { border-color: #E5484D; }
.champ-depot.erreur .depot-info { color: #FF8A8E; font-weight: 700; }
.depot-barre { display: block; height: 6px; border-radius: 999px; background: var(--liane); overflow: hidden; }
.depot-barre > span { display: block; width: 0; height: 100%; background: var(--jaune); transition: width .3s var(--fluide); }
.depot-etat { margin: 0; color: var(--jaune); font-weight: 700; }
.statut { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px !important; font-weight: 700; border: 1px solid var(--liane); }
.statut-attente { color: var(--jaune) !important; border-color: rgb(var(--lueur) / .5); }
.statut-ok { color: var(--menthe) !important; border-color: rgb(185 245 160 / .45); }
.statut-refus { color: #FF8A8E !important; border-color: rgb(229 72 77 / .5); }
.table-site { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-site th, .table-site td { padding: 10px; border-bottom: 1px solid var(--liane); text-align: left; }
.table-site th { color: var(--brume); }
.rib-actuel { padding: 12px 14px; border-radius: 14px; background: rgb(13 42 28 / .6); line-height: 1.6; }

/* Back office : vérification des prods déposées */
.a-valider { margin-bottom: 24px; }
.verif { padding: 16px 0; border-top: 1px solid var(--liane); display: grid; gap: 10px; }
.verif-tete { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.verif audio { width: 100%; max-width: 520px; }
.echeance { padding: 6px 12px; border-radius: 999px; background: rgb(var(--lueur) / .14); color: var(--jaune); font-weight: 700; font-size: 13px; white-space: nowrap; }
.echeance.retard { background: rgb(229 72 77 / .18); color: #FF8A8E; }
.verif-retard { box-shadow: inset 3px 0 0 #E5484D; padding-left: 12px; }
.verif-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.verif-actions .refus { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.verif-actions .refus input { flex: 1; }
code.iban { font-size: 15px; letter-spacing: .04em; }

@media (max-width: 820px) {
  .champs-trio, .depot-licence { grid-template-columns: 1fr; }
  .defilant { margin-bottom: 44px; }
  .verif-tete { grid-template-columns: 52px 1fr; }
  .verif-tete .echeance { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .defilant-piste { animation: none; }
}

/* ---- v10 : prods proches (fiche) ---- */
.fiche-proches { margin-top: clamp(40px, 6vw, 72px); }
.fiche-proches h2 { margin-bottom: 18px; }
.proches-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.proches-liste a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.proches-liste a:hover, .proches-liste a:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: var(--jaune); }
.proches-liste .pochette { grid-row: 1 / 3; width: 56px; height: 56px; }
.proche-titre { font-family: var(--titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proche-infos { font-size: .82rem; opacity: .7; }
