/* Fond de TOUTES les pages : le meme quasi-noir, avec une lueur doree tres douce (couleur prise dans les rayons du ciel du hero, #e2c59a) :
   une large lueur en haut au centre (--bg-glow-top) et un rechauffement tres leger vers le bas de la page (--bg-glow-bottom, 560 px).
   Chaque page les place dans le `background` de son body. L'accueil ne prend que celle du bas : en haut, son hero est deja la lumiere, et
   la lueur ne se verrait qu'aux bords fondus du cadre (couture) ; le bas du hero se fond dans --bg-base, la lueur du bas commence apres.
   Pages de chanson : le body est sous la pochette floue (.haze), la lueur y est posee mais invisible. Fixe : aucune image, aucun filtre, aucun masque, aucune animation, rien de position: fixed.
   Les alphas sont ecrits en clair (pas de calc() dans les couleurs, pour les vieux Safari). Niveau 2 par defaut. */
:root {
  --bg-base: #08070c;
  --glow-rgb: 226 197 154;
  --gt: .065; --gt-1: .046; --gt-2: .024; --gt-3: .007;      /* lueur du haut : centre, puis 28 %, 56 %, 82 % du rayon */
  --gb: .055; --gb-1: .033; --gb-2: .011;                    /* bas de page : bord bas, puis 30 % et 62 % de la hauteur depuis le bas */
  --bg-glow-top: radial-gradient(ellipse 64% 520px at 50% -60px, rgb(var(--glow-rgb) / var(--gt)), rgb(var(--glow-rgb) / var(--gt-1)) 28%,
    rgb(var(--glow-rgb) / var(--gt-2)) 56%, rgb(var(--glow-rgb) / var(--gt-3)) 82%, rgb(var(--glow-rgb) / 0));
  --bg-glow-bottom: linear-gradient(rgb(var(--glow-rgb) / 0), rgb(var(--glow-rgb) / var(--gb-2)) 38%, rgb(var(--glow-rgb) / var(--gb-1)) 70%,
    rgb(var(--glow-rgb) / var(--gb))) 50% 100% / 100% 560px no-repeat;
}
/* TEMP (choix de Yann, a retirer ensuite avec le petit script « TEMP glow » de chaque page) : ?glow=1 plus discret, ?glow=3 un peu plus chaud. */
html.glow-1 { --gt: .04; --gt-1: .028; --gt-2: .015; --gt-3: .004; --gb: .034; --gb-1: .02; --gb-2: .007; }
html.glow-3 { --gt: .095; --gt-1: .067; --gt-2: .035; --gt-3: .01; --gb: .08; --gb-1: .048; --gb-2: .016; }

/* "← Accueil" link, shared by the 7 song pages. Sits in its own strip above the cover and title (never on the same row, so it can't crowd them),
   tap target 44 px tall, under the warning modal (z-index 10) and the zoom lightbox. Loaded before each page's inline <style>, hence the
   slightly heavier selectors. */
body .app { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.app > header { position: relative; padding-top: 32px; }
/* capitalistes + miroir fold the header away on the end card: fold the strip with it */
body .app.endcard > header { padding-top: 0; transition: opacity .45s ease, max-height .7s ease .1s, padding-top .7s ease .1s, visibility 0s linear .8s; }
.homelink { position: absolute; top: -14px; left: -6px; z-index: 5; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.homelink span { display: inline-flex; align-items: center; gap: .5em; min-height: 26px; padding: 0 11px 0 9px; border-radius: 99px;
  border: 1px solid rgba(214,168,94,.4); background: rgba(10,9,14,.35);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(214,168,94,.85); white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s; }
.homelink span::before { content: "\2190"; font-size: 1.15em; line-height: 1; letter-spacing: 0; }
.homelink:hover span, .homelink:focus-visible span { color: var(--clay); border-color: rgba(214,168,94,.75); background: rgba(214,168,94,.10); }
.homelink:focus-visible { outline: none; }
.homelink:focus-visible span { outline: 2px solid var(--clay); outline-offset: 2px; }
/* Phones: no extra strip (it would cost the lyrics ~32 px of height). A round "←" on the cover's row, 44 px tap target, text kept for screen readers via aria-label. */
@media (max-width: 460px) {
  .app > header { padding-top: 0; }
  .homelink { position: static; order: -1; flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; margin: 0 -11px 0 -6px; }
  .homelink span { width: 34px; height: 34px; min-height: 0; padding: 0; gap: 0; justify-content: center; border-radius: 50%; font-size: 0; letter-spacing: 0; }
  .homelink span::before { font-size: 17px; }
}

/* "Soutenir l'artiste" (vers /soutenir/) + "Me joindre" : deux petits boutons, partages par l'accueil (.support--home) et la carte de fin des 7 chansons (.support--card,
   ajoutee par credits.js). 44 px de haut minimum, focus visible. Aucune dependance. */
.support { display: flex; gap: 10px; align-items: stretch; justify-content: center; }
.supbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box; min-height: 44px; padding: 6px 14px;
  border-radius: 14px; border: 1px solid rgba(214,168,94,.4); background: rgba(214,168,94,.06); color: var(--clay); text-align: center; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: color .2s, border-color .2s, background-color .2s; }
.supbtn b { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; }
.supbtn small { font-family: var(--mono); font-size: 0.56rem; line-height: 1.3; letter-spacing: .06em; color: rgba(236,228,214,.62); text-wrap: balance; }
.supbtn--main { border-color: rgba(214,168,94,.7); background: rgba(214,168,94,.14); }
.supbtn small.supbtn__perk { color: rgba(214,168,94,.85); }  /* accueil : 2e ligne du don libre ("Des 3 $ : ...") */
.supbtn:hover, .supbtn:focus-visible { color: #f3cf84; border-color: rgba(214,168,94,.9); background: rgba(214,168,94,.22); }
.supbtn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
/* accueil : bloc discret avant le pied de page ; cote a cote des que la largeur le permet, sinon empiles */
.support--home { flex-wrap: wrap; max-width: 560px; margin: 30px auto 0; }
.support--home .supbtn { flex: 1 1 230px; }
/* /soutenir/ : dons mensuels (grille .monthly__row, lien "Gerer mon abonnement", ligne Stripe .secure). Boutons au poids secondaire (le don unique reste
   le bouton principal) ; 4 sur une rangee des 768 px, 2 x 2 en dessous. */
.monthly { flex: 1 1 100%; margin: 12px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(214,168,94,.16); text-align: center; }
.monthly h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; line-height: 1.3; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); }
.monthly p { margin: 8px auto 14px; max-width: 32em; font-family: var(--lyric); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: rgba(236,228,214,.78); text-wrap: pretty; }
.monthly__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.support--home .monthly__row .supbtn { flex: none; min-width: 0; }
.supbtn--month b { font-size: 0.82rem; letter-spacing: .06em; }
.supbtn--month small { font-size: 0.58rem; }
.monthly__manage { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 10px; border-radius: 8px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: .08em; color: rgba(214,168,94,.72);
  text-decoration: underline; text-decoration-color: rgba(214,168,94,.35); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.monthly__manage:hover, .monthly__manage:focus-visible { color: #f3cf84; text-decoration-color: currentColor; }
.monthly__manage:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
/* accueil : ligne "Paiements securises par Stripe · Conditions" sous les dons, lien "Conditions et confidentialite" + credit du site dans le pied de page.
   Texte seulement, discret ; liens avec zone de tap de 44 px. */
.secure { flex: 1 1 100%; margin: -14px 0 0; text-align: center; font-family: var(--mono); font-size: 0.6rem; letter-spacing: .08em; color: rgba(236,228,214,.5); }
.secure a, .footlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border-radius: 6px; color: rgba(214,168,94,.78);
  text-decoration: underline; text-decoration-color: rgba(214,168,94,.35); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.secure a:hover, .secure a:focus-visible, .footlink:hover, .footlink:focus-visible { color: #f3cf84; text-decoration-color: currentColor; }
.secure a:focus-visible, .footlink:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.footlink { margin-top: 2px; }
.sitecredit { display: block; opacity: .6; text-wrap: balance; }
@media (max-width: 380px) { .secure { letter-spacing: .03em; } .secure a { padding: 0 4px; } }
@media (min-width: 768px) { .monthly__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* carte de fin : une seule rangee compacte, invisible tant que la carte n'est pas la carte active */
.support--card { margin: 16px 0 0; }
.support--card .supbtn { flex: 1 1 0; min-width: 0; padding: 6px 10px; }
.support--card .supbtn--main { flex-grow: 1.4; }
.line.credits:not(.now) .support { opacity: 0; visibility: hidden; pointer-events: none; }
.line.credits .support { transition: opacity .4s; }
@media (max-width: 460px) {
  .support--card { margin-top: 12px; gap: 8px; }
  .support--card .supbtn { padding: 5px 8px; }
  .support--card .supbtn b { font-size: 0.64rem; letter-spacing: .09em; }
  .support--card .supbtn small { font-size: 0.52rem; letter-spacing: .03em; }
}
@media (max-width: 359px) {                          /* 320 px : boutons empiles, pleine largeur (cote a cote, les sous-lignes s'ecrasaient sur 5 lignes) */
  .support--card { flex-direction: column; }
  .support--card .supbtn { flex: none; }
}

/* Cartes de signature (debut et fin) des 7 chansons : jamais rognees. credits.js mesure la scene et pose --card-max (hauteur de la scene moins
   une marge qui garde les bords hors de son fondu). Une carte plus haute (petits ecrans, ecrans courts) garde ses bords entiers et defile a
   l'interieur ; une carte qui tient deja ne change pas. */
.line.credits { box-sizing: border-box; max-height: var(--card-max, none); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(214,168,94,.45) transparent; }

/* Fond des 7 pages de chanson : la pochette de la chanson, tres floue, plein ecran, derriere tout (.haze), sous un voile sombre un peu plus dense
   vers le bas (.vignette) pour garder le texte, l'or et l'avertissement rouge lisibles. Chaque page pose seulement --cover : la meme URL que sa
   pochette deja affichee, donc aucune requete de plus. Fixe, sans animation, aucun decalage de mise en page. */
.haze { position: fixed; inset: -10%; pointer-events: none; background: var(--cover, none) center / cover no-repeat, var(--void, #08070c);
  filter: blur(40px) saturate(1.3) brightness(.72); transform: scale(1.15); }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.5) 40%, rgba(8,7,12,.76) 100%); }
