/* Prototype 30 : bichrome calme (p29 sans rotation). Une seule paire de couleurs ; la face B est l'inverse exact de la face A.
   Accueil : BEATS à l'endroit, LOOPS à l'envers (seul le mot est retourné), la recherche posée sur la couture.
   Un seul mouvement : la face touchée s'agrandit, l'autre se replie en bande. Rien ne tourne, rien ne réagit au son. */
:root {
  --sombre: #23211d;
  --clair: #e6e1d6;
  --mono: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --affiche: "Anton", Impact, "Arial Narrow", sans-serif;
  --pad: clamp(16px, 2.4vw, 40px);
  --part: 50%;
  --bande: 54px;
  --tete: 60px;
  --champ: 52px;
  --duree: .32s;
  --courbe: cubic-bezier(.3, 0, .2, 1); /* douce, sans rebond */
  --haut: env(safe-area-inset-top, 0px);
  --bas: max(env(safe-area-inset-bottom, 0px), var(--sortie, 0px)); /* --sortie : la barre « ouvrir dans Safari » */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--sombre); color: var(--clair); overflow: hidden; -webkit-font-smoothing: antialiased; font-family: var(--mono); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
svg { display: block; fill: currentColor; }

/* ---------- le disque : deux faces, tête-bêche ---------- */
.disque {
  position: fixed; inset: 0; height: 100dvh;
  display: grid; grid-template-rows: var(--part) calc(100% - var(--part));
  transition: grid-template-rows var(--duree) var(--courbe);
}
.disque[data-vue="accueil"][data-cherche] { --part: 30%; }
.disque[data-vue="a"] { grid-template-rows: calc(100% - var(--bande) - var(--bas)) calc(var(--bande) + var(--bas)); }
.disque[data-vue="b"] { grid-template-rows: calc(var(--bande) + var(--haut)) calc(100% - var(--bande) - var(--haut)); }
/* la bande garde sa hauteur utile ; la marge de l'encoche (en haut) ou de la barre d'accueil (en bas) s'ajoute */
.disque[data-vue="a"] .face-b .bande { padding-bottom: var(--bas); }
.disque[data-vue="b"] .face-a .bande { padding-top: var(--haut); }

.face { position: relative; overflow: hidden; min-height: 0; background: var(--fond); color: var(--encre); }
.face-a { --fond: var(--sombre); --encre: var(--clair); }
.face-b { --fond: var(--clair); --encre: var(--sombre); }
.face {
  --recul: color-mix(in srgb, var(--encre) 30%, var(--fond));
  --survol: color-mix(in srgb, var(--encre) 62%, var(--fond));
  --trait: color-mix(in srgb, var(--encre) 30%, var(--fond));
}

/* trois couches par face : l'entrée (accueil), la bande (l'autre face), la bibliothèque */
.entree, .bande, .biblio, .r-accueil, .l-accueil, .c-accueil {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease, visibility 0s linear .12s;
}
.entree, .bande, .biblio { position: absolute; inset: 0; }
.disque[data-vue="accueil"] .entree,
.disque[data-vue="accueil"] .r-accueil,
.disque[data-vue="accueil"] .l-accueil,
.disque[data-vue="accueil"] .c-accueil,
.disque[data-vue="a"] .face-a .biblio,
.disque[data-vue="b"] .face-b .biblio,
.disque[data-vue="a"] .face-b .bande,
.disque[data-vue="b"] .face-a .bande {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .18s ease .2s, visibility 0s; /* apparaît quand le mouvement est presque fini */
}
/* au retour à l'accueil, les deux mots ne reviennent qu'une fois la couture posée (ils sont redessinés à la bonne taille) */
.disque[data-vue="accueil"] .entree { transition: opacity .18s ease var(--duree), visibility 0s; }

/* ---------- accueil ---------- */
.entree { display: block; outline: none; }
.mot { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; } /* taille fixée en px au dessin : le mot ne s'étire pas pendant le mouvement */
.face-b .mot { transform: rotate(180deg); } /* tête-bêche : seul le mot LOOPS de l'accueil est à l'envers */
.entree:focus-visible { outline: 2px solid var(--encre); outline-offset: -6px; }
.r-accueil { position: absolute; top: calc(var(--pad) * .7 + var(--haut)); right: var(--pad); z-index: 4; color: var(--clair); }
.l-accueil { position: absolute; top: calc(var(--pad) * .7 + var(--haut)); left: var(--pad); z-index: 4; color: var(--clair); }

/* ---------- FR | EN : même gabarit que les icônes réseaux (26 px), la langue active pleine, l'autre en retrait ---------- */
.langues { display: inline-flex; align-items: center; height: 26px; font: 500 12px/1 "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
.langues > span { opacity: .45; padding: 0 1px; }
.langues button { height: 26px; min-width: 26px; padding: 0 3px; color: inherit; background: none; border: 0; opacity: .5; cursor: pointer; }
.langues button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; cursor: default; }
.langues button:hover, .langues button:focus-visible { opacity: 1; outline: none; }
.langues button:focus-visible { box-shadow: 0 0 0 2px currentColor; }
.l-accueil { display: flex; align-items: center; }
.infos { display: inline-flex; align-items: center; height: 26px; margin-left: 12px; font: 500 12px/1 "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; color: inherit; opacity: .5; text-decoration: none; }
.infos:hover, .infos:focus-visible { opacity: 1; outline: none; text-decoration: underline; text-underline-offset: 4px; }
.t-gauche { justify-self: start; display: flex; align-items: center; gap: 14px; min-width: 0; }

/* ---------- réseaux ---------- */
.reseaux { display: flex; gap: 14px; align-items: center; }
.reseaux a { display: grid; place-items: center; width: 26px; height: 26px; opacity: .85; }
.reseaux a:hover, .reseaux a:focus-visible { opacity: 1; outline: none; }
.reseaux a:focus-visible { box-shadow: 0 0 0 2px currentColor; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .plein { fill: currentColor; stroke: none; }

/* ---------- la recherche ---------- */
.cherche { --cf: var(--fond); --ce: var(--encre); position: relative; }
.c-accueil {
  --cf: var(--clair); --ce: var(--sombre);
  position: absolute; z-index: 4; left: 50%; top: 50%;
  width: min(560px, calc(100% - var(--pad) * 2)); height: var(--champ);
  transform: translate(-50%, -50%);
}
.champ {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 0 14px; background: var(--cf); color: var(--ce); border: 1.5px solid var(--ce);
}
.champ svg { width: 17px; height: 17px; flex: none; }
.champ input { flex: 1; min-width: 0; height: 100%; font-size: 15px; letter-spacing: 0; outline: none; }
.champ input::placeholder { color: var(--ce); opacity: .5; }
.champ input::-webkit-search-cancel-button { display: none; }
.champ:focus-within { box-shadow: 0 0 0 1.5px var(--ce); }
.effacer { width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px; line-height: 1; opacity: .7; }
.effacer:hover { opacity: 1; }
.resultats {
  position: absolute; left: 0; right: 0; top: calc(100% - 1.5px); z-index: 6;
  max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ce); color: var(--cf); border: 1.5px solid var(--ce); list-style: none;
}
.resultats:empty { display: none; }
.res {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 14px;
  width: 100%; padding: 11px 14px; text-align: left;
}
li + li .res { border-top: 1px solid color-mix(in srgb, var(--cf) 18%, var(--ce)); }
.r-t { font-family: var(--affiche); font-size: 24px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-bpm, .r-type { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.r-type { opacity: .6; min-width: 3.2em; text-align: right; }
.res:hover, .res[aria-selected="true"] { background: color-mix(in srgb, var(--cf) 12%, var(--ce)); outline: none; }
.r-vide { padding: 14px; font-size: 13px; }

/* ---------- la bande : l'autre face, repliée ---------- */
.bande { display: flex; align-items: center; padding: 0 var(--pad); width: 100%; text-align: left; }
.b-mot { font-family: var(--affiche); font-size: 30px; line-height: 1; letter-spacing: .01em; color: var(--encre); }
.bande:hover .b-mot { color: var(--survol); }
.bande:focus-visible { outline: 2px solid var(--encre); outline-offset: -4px; }

/* ---------- la bibliothèque : la liste-affiche ---------- */
.biblio { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.biblio::-webkit-scrollbar { display: none; }
.tete {
  position: sticky; top: 0; z-index: 5; height: calc(var(--tete) + var(--haut));
  display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; gap: 16px;
  padding: var(--haut) var(--pad) 0; background: var(--fond); color: var(--encre);
  font-size: 12.5px; letter-spacing: 0;
}
.t-retour { justify-self: start; font-weight: 500; padding: 8px 0; white-space: nowrap; }
.t-retour:hover, .t-retour:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.tete .cherche { height: 38px; }
.tete .champ input { font-size: 14px; }
.tete .reseaux { justify-self: end; }

.liste { padding: 4px var(--pad) 0; }
.biblio::after { content: ""; display: block; height: calc(var(--pad) * 1.2 + 64px + var(--dock, 0px)); } /* place pour le mini-lecteur, ou le lecteur fixe du téléphone */
.disque[data-vue="b"] .face-b .biblio::after { height: calc(var(--pad) * 1.2 + 64px + var(--bas) + var(--dock, 0px)); }
/* une rangée touche les deux bords ; chaque rangée a sa taille (--f), calculée en JS */
.rangee { display: flex; justify-content: flex-start; align-items: flex-start; }
.rangee.pleine { justify-content: space-between; }
.titre { display: inline-flex; align-items: flex-start; flex: none; text-align: left; padding: 0; color: var(--encre); }
.t {
  font-family: var(--affiche); font-size: var(--f, 100px); line-height: .9; text-transform: uppercase;
  letter-spacing: 0; white-space: nowrap; color: var(--encre); transition: color .25s ease;
  display: inline-block; pointer-events: none;
}
.etire .t { transform: scaleY(var(--sy, 1)); transform-origin: 0 0; margin-bottom: calc(var(--f, 100px) * .9 * (var(--sy, 1) - 1)); }
.bpm b, .bpm i { display: block; font: inherit; }
.bpm {
  pointer-events: none; width: var(--g, 46px); padding: calc(var(--f, 100px) * .07) 0 0 7px;
  font-size: 11px; line-height: 1.15; letter-spacing: 0; color: var(--encre); transition: opacity .25s ease;
}
/* dès qu'un son est choisi, les autres titres reculent vers le fond */
.biblio[data-actif] .t { color: var(--recul); }
.biblio[data-actif] .bpm { opacity: .4; }
.biblio[data-actif] .courant .t { color: var(--encre); }
.biblio[data-actif] .courant .bpm { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .biblio:not([data-actif]) .titre:hover .t,
  .biblio[data-actif] .titre:not(.courant):hover .t { color: var(--survol); }
}
.titre:focus-visible { outline: none; }
/* face sans aucun son : une ligne calme sous l'en-tête */
.vide { padding: 28px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; letter-spacing: 0; color: var(--encre); }
.vide a { text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding: 10px 0; margin: -10px 0; }
.titre:focus-visible .t { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* le panneau s'ouvre sous la rangée du son choisi : lecteur + licence */
.panneau { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duree) var(--courbe); padding: 0 var(--pad); }
.panneau.ouvert { grid-template-rows: 1fr; }
.panneau.ombre { display: block; overflow: hidden; transition: height var(--duree) var(--courbe); } /* l'ancien panneau qui se replie */
.biblio > .panneau:last-child:not(.ouvert) { height: 0; }
.dedans { min-height: 0; overflow: hidden; color: var(--encre); }
.lecteur {
  display: grid; align-items: center; column-gap: 14px;
  grid-template-columns: 52px 34px minmax(0, 1fr) auto 34px;
  grid-template-areas: "jouer prec tl temps suiv";
  padding: 12px 0 10px;
}
.jouer { grid-area: jouer; width: 52px; height: 52px; display: grid; place-items: center; background: var(--encre); color: var(--fond); }
.jouer svg { width: 18px; height: 18px; }
/* le son arrive : le bouton tourne, le titre respire */
body[data-charge] .jouer svg, body[data-charge] .mini-jouer svg { visibility: hidden; }
body[data-charge] .jouer, body[data-charge] .mini-jouer { position: relative; }
body[data-charge] .jouer::after, body[data-charge] .mini-jouer::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite;
}
body[data-charge] .titre.courant .t { animation: respire .8s ease-in-out infinite alternate; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes respire { to { opacity: .45; } }
.p-info { display: none; } /* titre dans le lecteur : téléphone seulement */
.prec { grid-area: prec; } .suiv { grid-area: suiv; }
.prec, .suiv { height: 52px; display: grid; place-items: center; }
.prec svg, .suiv svg { width: 15px; height: 15px; }
.prec:disabled, .suiv:disabled { opacity: .28; cursor: default; }
.jouer:focus-visible, .prec:focus-visible, .suiv:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

.tl { grid-area: tl; position: relative; height: 40px; cursor: pointer; touch-action: none; --p: 0; outline: none; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--trait); }
.tl-plein { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: calc(var(--p) * 100%); background: var(--encre); }
.tl-tete { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 4px; height: 18px; margin: -9px 0 0 -2px; background: var(--encre); }
.tl:hover .tl-tete, .tl.tire .tl-tete { width: 6px; margin-left: -3px; }
.tl:focus-visible::after { content: ""; position: absolute; inset: 4px -6px; outline: 2px solid var(--encre); }
.temps { grid-area: temps; font-size: 12.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }

.licence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 2px 0 calc(var(--pad) * .9 + 8px); font-size: 13px; letter-spacing: 0; }

.payer { height: 42px; padding: 0 18px; border: 1.5px solid var(--encre); letter-spacing: 0; white-space: nowrap; }
.payer { background: var(--encre); color: var(--fond); }
.payer:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.licence input { height: 42px; flex: 0 1 300px; min-width: 0; padding: 0 2px; border-bottom: 1.5px solid var(--encre); font-size: 14px; outline: none; }
.licence input::placeholder { color: var(--encre); opacity: .5; }
.licence input:focus-visible { border-bottom-width: 3px; }
.l-note { flex-basis: 100%; font-size: 12px; opacity: .75; line-height: 1.45; }
.l-note a { text-decoration: underline; text-underline-offset: 3px; }
.l-msg { flex-basis: 100%; font-size: 12px; }
.l-msg:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .disque, .panneau, .entree, .bande, .biblio, .t, .bpm, .r-accueil, .l-accueil, .c-accueil { transition: none !important; }
}

/* ---------- téléphone ---------- */
@media (max-width: 600px) {
  :root { --bande: 58px; --tete: 62px; --champ: 48px; }
  .disque[data-vue="accueil"][data-cherche] { --part: 20%; }
  .reseaux { gap: 8px; }
  /* en-tête : retour et recherche, de même hauteur. La langue et les réseaux sont sur l'accueil */
  .tete { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding-right: var(--pad); }
  .tete .reseaux, .tete .langues { display: none; }
  .t-retour .t-nom { display: none; }
  .t-gauche { gap: 0; }
  .tete .t-retour { width: 48px; min-height: 46px; height: 46px; padding: 0; justify-content: center; border: 1.5px solid currentColor; font-size: 24px; line-height: 1; }
  .tete .cherche { height: 46px; }
  .champ { padding: 0 10px; gap: 8px; }
  .champ input { font-size: 16px; } /* 16 px : Safari iOS ne zoome pas sur le champ */
  .tete .champ input { font-size: 16px; }
  .r-t { font-size: 22px; }
  .res { padding: 13px 14px; }
  .b-mot { font-size: 30px; }

  /* la liste : un titre par ligne, toute la ligne se touche, le bpm aligné à droite */
  .rangee { display: block; }
  .titre { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 5px 0; min-height: 46px; }
  .bpm { flex: none; width: var(--g, 44px); padding: 0; text-align: right; font-size: 13px; line-height: 1.1; }
  .bpm i { font-size: 9.5px; opacity: .65; }
  .etire .bpm { align-self: flex-start; }
  /* un son en cours : les autres restent lisibles, on continue de choisir */
  .biblio[data-actif] .t { color: var(--survol); }
  .biblio[data-actif] .bpm { opacity: .7; }

  /* le lecteur : fixe en bas, au pouce, inverse de la face ; il ne pousse jamais la liste */
  .panneau, .panneau.ouvert {
    display: block; position: fixed; left: 0; right: 0; z-index: 12;
    bottom: max(var(--dock-bas, 0px), var(--clavier, 0px));
    padding: 0 var(--pad) 12px; max-height: calc(100dvh - var(--tete) - var(--haut));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--fond); color: var(--encre);
    transform: translateY(calc(100% + var(--dock-bas, 0px))); visibility: hidden;
    transition: transform var(--duree) var(--courbe), visibility 0s linear var(--duree);
  }
  .panneau.ouvert { transform: none; visibility: visible; transition: transform var(--duree) var(--courbe), visibility 0s; }
  .face-a .panneau { --fond: var(--clair); --encre: var(--sombre); --trait: color-mix(in srgb, var(--sombre) 30%, var(--clair)); }
  .face-b .panneau { --fond: var(--sombre); --encre: var(--clair); --trait: color-mix(in srgb, var(--clair) 30%, var(--sombre)); }
  .disque[data-vue="a"] .panneau { --dock-bas: calc(var(--bande) + var(--bas)); border-bottom: 1px solid var(--trait); }
  .disque[data-vue="b"] .panneau { --dock-bas: 0px; padding-bottom: calc(12px + var(--bas)); }
  .disque[data-saisie] .panneau { visibility: hidden; } /* pendant la recherche, le clavier et les résultats ont la place */
  .dedans { overflow: visible; position: relative; padding-top: 18px; color: var(--encre); }

  /* la barre de lecture court sur tout le haut du lecteur : 44 px de zone pour le doigt, un trait fin à l'œil */
  .panneau .lecteur {
    position: static; display: grid; padding: 0; column-gap: 8px;
    grid-template-columns: 58px minmax(0, 1fr) 50px 50px; grid-template-rows: 58px;
    grid-template-areas: "jouer temps prec suiv";
  }
  .panneau .tl { position: absolute; left: 0; right: 0; top: -14px; height: 44px; }
  .p-info { display: flex; position: absolute; left: 68px; right: 108px; top: 20px; height: 30px; align-items: baseline; gap: 8px; min-width: 0; pointer-events: none; }
  .p-t { font-family: var(--affiche); font-size: 24px; line-height: 30px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .p-bpm { font-size: 12px; letter-spacing: 0; white-space: nowrap; flex: none; }
  .panneau .temps { font-size: 11.5px; align-self: end; padding: 0 0 3px 2px; opacity: .75; }
  .panneau .jouer { width: 58px; height: 58px; }
  .panneau .jouer svg { width: 22px; height: 22px; }
  .panneau .prec, .panneau .suiv { width: 50px; height: 58px; }
  .panneau .prec svg, .panneau .suiv svg { width: 22px; height: 22px; }
  .panneau .tl::before { height: 3px; margin-top: -1.5px; }
  .panneau .tl-plein { height: 5px; margin-top: -2.5px; }
  .panneau .tl-tete { width: 6px; height: 22px; margin: -11px 0 0 -3px; }

  /* un seul bouton ; le détail de la licence est sur la page d'achat */
  .panneau .collabs { margin: 10px 0 2px; }
  .licence { padding: 8px 0 0; gap: 8px; }
  .licence > .l-note { display: none; }
  
  .payer, .licence .payer { flex: 1 1 100%; height: 50px; padding: 0 8px; font-size: 15px; }
  .licence input { flex: 1 1 100%; font-size: 16px; height: 46px; }
  /* loop : l'e-mail et la case n'apparaissent qu'après le premier « télécharger » */
}

/* case « je crédite » du formulaire de loop */



/* clavier : annonce pour lecteurs d'écran, aide affichée une seule fois sur ordinateur */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aide-clavier {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 8px); z-index: 20; margin: 0;
  padding: 9px 14px; background: var(--sombre); color: var(--clair); outline: 1px solid var(--clair);
  font: 500 12px/1 var(--mono); letter-spacing: 0; white-space: nowrap;
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.aide-clavier.vu { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aide-clavier { transition: none; transform: translate(-50%, 0); } }

/* ---------- mini-lecteur : collé en bas quand le panneau du son en cours sort de l'écran ---------- */
.mini {
  position: fixed; left: 0; right: 0; z-index: 15; bottom: var(--bas);
  display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center;
  height: 56px; padding: 0 var(--pad) 0 0; background: var(--m-fond); color: var(--m-encre);
}
.mini[data-vue="a"] { bottom: calc(var(--bande) + var(--bas)); }      /* au-dessus de la bande LOOPS */
.mini[data-face="a"] { --m-fond: var(--clair); --m-encre: var(--sombre); } /* l'inverse de la face, pour se détacher du mur */
.mini[data-face="b"] { --m-fond: var(--sombre); --m-encre: var(--clair); }
.mini-jouer { width: 52px; height: 56px; display: grid; place-items: center; }
.mini-jouer svg { width: 16px; height: 16px; }
.mini-titre { display: flex; align-items: baseline; gap: 10px; min-width: 0; height: 56px; text-align: left; }
.mini-t { font-family: var(--affiche); font-size: 22px; line-height: 56px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bpm { font-size: 11px; letter-spacing: 0; white-space: nowrap; opacity: .75; }
.mini-p { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--m-encre); }
.mini-jouer:focus-visible, .mini-titre:focus-visible { outline: 2px solid var(--m-encre); outline-offset: -4px; }

/* ---------- après le téléchargement d'une loop ---------- */










/* ---------- toucher : zones de 44 px au moins, sans changer le dessin ---------- */
@media (pointer: coarse) {
  .reseaux a { width: 44px; height: 44px; }
  .reseaux { gap: 0; }
  .effacer { width: 44px; height: 44px; margin-right: -10px; }
  .t-retour { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px 0 0; }
  .prec, .suiv { width: 44px; }
  .tl { height: 44px; }
  
  
  .bande { min-height: 44px; }
  .payer { height: 44px; }
  .tete .reseaux a { width: 38px; }
  .t-retour { min-width: 44px; }
  .langues, .langues button { height: 44px; }
  .langues button { min-width: 44px; }
  .infos { height: 44px; min-width: 44px; margin-left: 4px; padding: 0 6px; justify-content: center; font-size: 13px; opacity: .7; }
  .t-gauche { gap: 4px; }
}

/* ---------- achat d'un beat : une seule colonne, centrée à l'écran, du choix au téléchargement ---------- */
.achat {
  position: fixed; inset: 0; z-index: 60; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; padding: calc(var(--haut) + 24px) 20px calc(24px + var(--bas));
  background: var(--clair); color: var(--sombre); animation: f-voile .2s ease-out both;
}
/* margin: auto centre sans couper le haut quand le formulaire de paiement dépasse de l'écran */
.ac-col { --encre: var(--sombre); --fond: var(--clair); --trait: color-mix(in srgb, var(--sombre) 22%, var(--clair)); margin: auto; width: 100%; max-width: 440px; min-width: 0; }
.ac-retour { min-height: 44px; padding: 0 14px 0 0; font-size: 13px; letter-spacing: 0; opacity: .62; transition: opacity .15s ease; }
.ac-retour:hover, .ac-retour:focus-visible { opacity: 1; outline: none; }
.ac-beat { margin-top: 18px; }
.ac-col .f-titre { margin: 0; color: var(--sombre); }
.ac-col .f-bpm { margin: 10px 0 0; font-size: 13px; letter-spacing: 0; opacity: .62; }
.ac-droit { margin: 4px 0 0; font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.ac-lecteur { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; margin-top: 22px; }
.ac-lecteur .jouer { grid-area: auto; width: 44px; height: 44px; }
.ac-lecteur .tl { grid-area: auto; }
.ac-lecteur .temps { grid-area: auto; font-size: 12px; opacity: .62; }
.ac-corps { margin-top: 30px; }
.ac-accord { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin-bottom: 18px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.ac-accord input:disabled { opacity: .5; }
.ac-accord input { width: 20px; height: 20px; margin: 0; accent-color: var(--sombre); cursor: pointer; }
.ac-accord.rappel { animation: ac-rappel .32s ease; }
@keyframes ac-rappel { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ac-payer, .ac-dl {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; background: var(--sombre); color: var(--clair);
  font-size: 15px; letter-spacing: 0; text-decoration: none; cursor: pointer; transition: transform .12s ease, opacity .15s ease;
}
.ac-payer:hover, .ac-dl:hover { opacity: .88; }
.ac-payer:active, .ac-dl:active { transform: scale(.985); }
.ac-payer:focus-visible, .ac-dl:focus-visible { outline: 2px solid var(--sombre); outline-offset: 3px; }
.ac-payer:disabled { cursor: default; opacity: .6; }
.ac-moyens { margin: 12px 0 0; font-size: 12px; line-height: 1.6; text-align: center; opacity: .62; }
.ac-liens { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 18px; margin: 22px 0 0; font-size: 12px; opacity: .62; }
.ac-liens a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 12px 0; display: inline-block; }
.ac-email { width: 100%; height: 52px; margin-bottom: 18px; padding: 0; border: 0; border-bottom: 1.5px solid var(--sombre); border-radius: 0; background: none; color: var(--sombre); font: inherit; font-size: 16px; letter-spacing: 0; outline: none; }
.ac-email::placeholder { color: var(--sombre); opacity: .45; }
.ac-email:focus { border-bottom-width: 2.5px; }
.ac-loop .ac-moyens a { text-decoration: underline; text-underline-offset: 3px; }
.ac-abo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--trait); text-align: left; }
.ac-abo-t { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.ac-abo-d { margin: 2px 0 0; font-size: 12.5px; letter-spacing: 0; opacity: .62; }
.ac-oui { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--sombre); color: var(--sombre); font-size: 13.5px; letter-spacing: 0; transition: background-color .15s ease, color .15s ease; }
.ac-oui:focus-visible { outline: 2px solid var(--sombre); outline-offset: 2px; }
.ac-oui.fait { border-color: transparent; padding-inline: 0; opacity: .7; }
.ac-oui:disabled { cursor: default; }
@media (hover: hover) { .ac-oui:not(:disabled):hover { background: var(--sombre); color: var(--clair); } }
.ac-etat, .ac-note { font-size: 13px; line-height: 1.45; margin: 0 0 12px; text-align: center; }
.ac-etat:empty { display: none; }
.ac-note a { text-decoration: underline; text-underline-offset: 3px; }
.ac-stripe:empty { display: none; }
.ac-stripe { margin-inline: -11px; } /* Stripe garde 11 px de marge dans son cadre : son formulaire s'aligne sur la colonne */
/* formulaire ouvert : le beat s'efface, le lecteur reste et Stripe prend la place */
.ac-col.paie .ac-beat, .ac-col.paie .ac-accord, .ac-col.paie .ac-payer, .ac-col.paie .ac-moyens, .ac-col.paie .ac-liens { display: none; }
.ac-col.paie .ac-lecteur { margin-top: 8px; }
.ac-col.paie .ac-corps { margin-top: 18px; animation: f-voile .25s ease-out both; }
.ac-recu { text-align: center; }
.ac-recu .ac-retour { display: block; }
.ac-recu .ac-ok { margin: 18px 0 14px; font-size: 13px; letter-spacing: 0; opacity: .62; }
.ac-recu .f-mot { margin-inline: auto; }
.ac-recu .ac-dl { margin-top: 28px; }
.ac-auto { min-height: 18px; margin: 12px 0 0; font-size: 13px; }
.ac-lic { margin: 22px 0 0; font-size: 13px; }
.ac-lic a { display: inline-block; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ac-plus { margin: 14px 0 0; font-size: 12px; opacity: .62; }
.ac-plus a { text-decoration: underline; text-underline-offset: 3px; }
.ac-reseaux { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.ac-reseaux a { display: grid; place-items: center; width: 44px; height: 44px; opacity: .72; transition: opacity .15s ease; }
.ac-reseaux a:hover, .ac-reseaux a:focus-visible { opacity: 1; outline: none; }
.ac-reseaux .ico { width: 20px; height: 20px; }
.p-accueil { display: none; position: absolute; left: 0; right: 0; bottom: calc(var(--bas) + 4px); z-index: 4; padding: 0 var(--pad); color: var(--sombre); text-align: center; }
.disque[data-vue="accueil"] .p-accueil { display: block; }
[hidden] { display: none !important; }
/* merci : lien de secours vers le fichier, rappel du crédit, « suis-moi » (bloc réutilisable, aussi après un achat) */
.suivre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; padding-top: 6px; border-top: 1px solid var(--trait); margin-top: 4px; }
.suivre-t { font-size: 12px; opacity: .75; margin-right: 2px; padding-top: 6px; }
.suivre-b { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--encre); font-size: 13px; letter-spacing: 0; }
.suivre-b:hover { background: var(--encre); color: var(--fond); }
.suivre-b:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
@media (max-width: 600px) { .suivre-t { flex-basis: 100%; } }

/* ---------- écran de fin : une pochette (après le paiement d'une prod, après l'e-mail d'une loop) ----------
   recto : le titre en grand, plein cadre ; verso : une seule action, puis les mentions rangées comme au dos d'un disque.
   ?fin=a : pochette sombre ; ?fin=b : deux faces (recto sombre, verso clair, la couture de l'accueil). */
.fin {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--sombre) 80%, transparent);
}














.f-titre { margin: 22px 0 0; font-weight: 400; }
.f-mot {
  display: inline-block; font-family: var(--affiche); font-size: 100px; line-height: .86; text-transform: uppercase;
  letter-spacing: -.005em; overflow-wrap: normal; word-break: keep-all; hyphens: none; max-width: 100%;
}
.f-bpm { margin: 10px 0 0; font-size: 13px; letter-spacing: 0; }

/* la seule action : un bloc plein, le titre en Anton, le détail en mono dessous */
.f-dl {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0;
  padding: 18px 20px 16px; background: var(--encre); color: var(--fond); text-decoration: none;
  min-height: 76px; justify-content: center;
}






.f-dl.fait { background: transparent; color: var(--encre); outline: 1.5px solid var(--encre); outline-offset: -1.5px; }

a.f-dl:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }

/* le dos du disque : intitulé à gauche, valeur à droite, filets fins */






/* loop : recevoir les prochaines, un bloc à part, sobre */










/* suivre : une rangée discrète d'icônes, en bas */






/* la ligne laissée dans le panneau du son */


/* entrée calme : un fondu et quelques pixels, rien qui rebondit */
.fin { animation: f-voile .22s ease-out both; }

 
 
 
@keyframes f-voile { from { opacity: 0; } }
@keyframes f-entree { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .fin{ animation: none; } }

@media (max-width: 600px) {
  .fin { padding: 0; place-items: stretch; }
  
  
  
  
  
  
  
  
  
}

/* collabs : « avec » puis une pastille Instagram par personne, assez grande pour le pouce */
.collabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 14px; letter-spacing: 0; }
.c-avec { opacity: .65; font-size: 13px; }
.collab { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 0 13px 0 11px; border: 1.5px solid var(--trait, currentColor); color: inherit; font-weight: 500; text-decoration: none; }
.collab .ico { width: 18px; height: 18px; flex: none; }
.c-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.collab:hover, a.collab:focus-visible { border-color: currentColor; }
a.collab:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.f-collabs { margin: 8px 0 0; }
.payer.dm { display: inline-flex; align-items: center; text-decoration: none; }
/* au doigt : les puces des options (écran de fin d'une loop) font 44 px, après leur règle de base */

