/* ============================================================ */
/* CTA FINAL DES FICHES ARTISTES — variante « artist » du bloc    */
/* renderCtaUniversal (bouyon-glossary-cta.js), skin Néon Lagon   */
/* (maquette B v3, Terry 2026-07-10).                             */
/* ------------------------------------------------------------ */
/* Cette feuille n'est chargée QUE par les fiches artistes        */
/* (bouyon-artist-template.js). Le glossaire garde sa propre      */
/* variante 3 colonnes stylée par bouyon-glossary.css (L202) —    */
/* zéro impact croisé.                                            */
/* Pattern maquette « peak-end » : carte translucide d'ambiance,  */
/* médaillon photo hero + compteur d'auditeurs live (count-up     */
/* par bouyon-fiche-ambient.js), copy raison, bouton corail       */
/* shine/ping (keyframes artistCtaShine/artistCtaPing définis     */
/* dans bouyon-artists.css, chargé sur les mêmes pages).          */
/* ============================================================ */

.artist-page .glossary-cta-universal--artist {
  width: min(var(--maxw), calc(100% - 2 * var(--pad)));
  margin: clamp(35px, 6vw, 53px) auto 0;
  padding: clamp(26px, 5vw, 35px) clamp(17px, 4vw, 35px);
  border: 1px solid var(--hair-strong);
  border-radius: 20px;
  background: var(--ink-card);
}

.artist-page .glossary-cta-universal__kicker {
  margin: 0 0 17px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--aqua);
}

/* ── Preuve sociale : médaillon + compteur live ── */
.artist-page .glossary-cta-universal__proof {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 17px;
}
.artist-page .glossary-cta-universal__face {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 2px solid var(--hair-strong);
}
.artist-page .glossary-cta-universal__anchor {
  margin: 0;
  font-family: "Cabinet Grotesk", "General Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 12vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--txt);
}
.artist-page .glossary-cta-universal__anchor-cap {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--txt-faint);
}

.artist-page .glossary-cta-universal__name {
  margin: 0 0 8px;
  font-family: "Cabinet Grotesk", "General Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 5.4vw, 30px);
  line-height: 1.3;
  color: var(--txt);
}
.artist-page .glossary-cta-universal__why {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--txt);
}

/* ── Actions : corail principal (shine + sonar) + ghosts ── */
.artist-page .glossary-cta-universal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.artist-page .glossary-cta-universal__coral {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 17px 26px;
  border-radius: 12px;
  background: var(--coral);
  color: var(--coral-ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.artist-page .glossary-cta-universal__coral:hover { transform: translateY(-2px); }
.artist-page .glossary-cta-universal__coral:active { transform: scale(0.97); }
.artist-page .glossary-cta-universal__coral:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
/* Balayage lumineux périodique (keyframes partagées avec le pont). */
.artist-page .glossary-cta-universal__coral::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-140%) skewX(-16deg);
  animation: artistCtaShine 3.4s var(--ease) infinite 1.1s;
}
.artist-page .glossary-cta-universal__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 17px;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--aqua);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.artist-page .glossary-cta-universal__ghost:hover,
.artist-page .glossary-cta-universal__ghost:focus-visible {
  border-color: var(--aqua);
  transform: translateY(-1px);
  outline: none;
}

/* ── Liens secondaires : discographie + réseaux ── */
.artist-page .glossary-cta-universal__more {
  margin: 17px 0 0;
  font-size: 14px;
}
.artist-page .glossary-cta-universal__more a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.artist-page .glossary-cta-universal__more a:hover { color: var(--txt); }
.artist-page .glossary-cta-universal__follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 17px;
  margin: 17px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--txt-faint);
}
.artist-page .glossary-cta-universal__follow a {
  padding: 6px 0;
  color: var(--aqua);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.artist-page .glossary-cta-universal__follow a:hover { color: var(--txt); }

/* Mobile : bouton corail pleine largeur (avec son wrapper sonar). */
@media (max-width: 520px) {
  .artist-page .glossary-cta-universal__actions .artist-bridge__ping,
  .artist-page .glossary-cta-universal__coral { width: 100%; }
  .artist-page .glossary-cta-universal__ghost { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .artist-page .glossary-cta-universal__coral::after { animation: none; }
}

/* ============================================================
   CADEAU PLAYLIST « scellé » — CTA de fin de fiche artiste
   (concept validé Terry 2026-07-14). TOUT scopé sous .fiche-gift,
   tokens préfixés --fg-* → zéro collision avec la fiche.
   Piège évité : la fiche définit --ink SOMBRE ; ici le texte est clair.
   ============================================================ */
.fiche-gift {
  --fg-card: #14171d; --fg-card2: #161a21; --fg-raise: #1a1f28;
  --fg-line: rgba(255,255,255,.08); --fg-line2: rgba(255,255,255,.14);
  --fg-aqua: #38e1d4; --fg-aqua-soft: rgba(56,225,212,.14);
  --fg-coral: #ff6b6b; --fg-coral2: #ff8080; --fg-coral-ink: #2a0d0d;
  --fg-ink: #f2f4f8; --fg-ink2: rgba(242,244,248,.74); --fg-ink3: rgba(242,244,248,.62);
  --fg-font-d: 'Anton', sans-serif;
  --fg-font-b: 'Inter Tight', system-ui, sans-serif;
  --fg-font-m: 'JetBrains Mono', ui-monospace, monospace;
  --fg-ease: cubic-bezier(.16,1,.3,1);
  --fg-r: 22px;
  width: 100%; max-width: 600px; margin: 8px auto 0;
  font-family: var(--fg-font-b); line-height: 1.5;
}
.fiche-gift *, .fiche-gift *::before, .fiche-gift *::after { box-sizing: border-box; }
.fiche-gift .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.fiche-gift__eyebrow {
  font-family: var(--fg-font-m); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--fg-aqua); margin: 0;
}
.fiche-gift__dot { opacity: .5; margin: 0 .5ch; }

/* ---- état scellé (masqué sans JS → playlist visible) ---- */
.fiche-gift__sealed { display: none; flex-direction: column; align-items: center; text-align: center; padding: 8px 5px 5px; }
.fiche-gift.has-gift .fiche-gift__sealed { display: flex; }
.fiche-gift.has-gift.opened .fiche-gift__sealed { display: none; }
.fiche-gift__sealed .fiche-gift__eyebrow { margin-bottom: 26px; }

/* ---- « gaté » (JS-only) : sur une fiche avec quiz, le cadeau reste INVISIBLE
   tant que le quiz n'est pas terminé — sinon la surprise est éventée et le
   visiteur n'a plus de raison d'aller au bout (feedback Terry 2026-07-17).
   Appliqué par bouyon-fiche-gift.js uniquement si un quiz existe, retiré à
   l'événement fiche-gift:reveal. Sans JS : classe jamais posée → playlist
   visible (SEO intact). ---- */
.fiche-gift.is-gated { display: none; }

/* ---- cadeau réaliste : SVG inline (boîte satinée + gros nœud aqua), preview B ----
   Wrapper centré : le SVG donne la hauteur, l'origine du confetti = son centre.
   Tout est scopé sous .fiche-gift, keyframes préfixées fgb- (zéro fuite / collision). */
.fiche-gift__art {
  width: min(210px, 62vw); margin: 2px auto 6px; overflow: visible;
  transition: transform .4s var(--fg-ease), opacity .4s ease;
}
.fiche-gift__art svg { width: 100%; height: auto; display: block; overflow: visible; }

/* animations idle du cadeau (flottement, shimmy « ouvre-moi », reflet satiné, sparkles) */
.fiche-gift .fgb-floater { animation: fgb-float 5s ease-in-out infinite; }
.fiche-gift .fgb-gift { transform-box: fill-box; transform-origin: 50% 100%; animation: fgb-wiggle 3.9s ease-in-out infinite; }
.fiche-gift .fgb-bow { transform-box: fill-box; transform-origin: 50% 86%; animation: fgb-bow 3.9s ease-in-out infinite; }
.fiche-gift .fgb-sweep { animation: fgb-glint 4.6s cubic-bezier(.4,0,.2,1) infinite; }
.fiche-gift .fgb-shadow { transform-box: fill-box; transform-origin: 50% 50%; animation: fgb-shadow 5s ease-in-out infinite; }
.fiche-gift .fgb-spark { transform-box: fill-box; transform-origin: 50% 50%; }
.fiche-gift .fgb-spark--a { animation: fgb-twinkle 2.6s ease-in-out infinite; }
.fiche-gift .fgb-spark--b { animation: fgb-twinkle 3.2s ease-in-out .7s infinite; }
.fiche-gift .fgb-spark--c { animation: fgb-twinkle 2.9s ease-in-out 1.4s infinite; }

@keyframes fgb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fgb-wiggle {
  0%,60% { transform: rotate(0deg); }
  65% { transform: rotate(-3.4deg); }
  71% { transform: rotate(2.7deg); }
  77% { transform: rotate(-1.9deg); }
  83% { transform: rotate(1.1deg); }
  89%,100% { transform: rotate(0deg); }
}
@keyframes fgb-bow {
  0%,58% { transform: rotate(0deg) scale(1); }
  66% { transform: rotate(1.8deg) scale(1.045); }
  73% { transform: rotate(-1.4deg) scale(1.02); }
  80% { transform: rotate(.7deg) scale(1.03); }
  88%,100% { transform: rotate(0deg) scale(1); }
}
@keyframes fgb-glint {
  0% { transform: translateX(-172px); }
  42% { transform: translateX(178px); }
  100% { transform: translateX(178px); }
}
@keyframes fgb-shadow {
  0%,100% { transform: scaleX(1); opacity: .5; }
  50% { transform: scaleX(.9); opacity: .4; }
}
@keyframes fgb-twinkle {
  0%,100% { opacity: .12; transform: scale(.55); }
  50% { opacity: .95; transform: scale(1); }
}
/* idle « doux » réservé au reduced-motion : micro-balancement, aucun shake */
@keyframes fgb-breathe { 0%,100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }

.fiche-gift__lead {
  font-family: var(--fg-font-d); font-weight: 400; font-size: 44px; line-height: .92;
  letter-spacing: .005em; text-transform: uppercase; margin: 17px 0 0; color: var(--fg-ink);
}
.fiche-gift__hook { font-size: 16px; color: var(--fg-ink2); max-width: 32ch; margin: 17px auto 0; }

/* ---- boutons (action = corail) ---- */
.fiche-gift__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; font-family: var(--fg-font-b); font-size: 16px; font-weight: 600;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--fg-ease), background-color .18s ease, border-color .18s ease;
}
.fiche-gift__btn svg { width: 20px; height: 20px; flex: none; }
.fiche-gift__btn--primary { background: var(--fg-coral); color: var(--fg-coral-ink); box-shadow: 0 14px 26px -14px rgba(0,0,0,.7); }
.fiche-gift__btn--primary:hover { background: var(--fg-coral2); transform: translateY(-1px); }
.fiche-gift__btn--primary:active { transform: translateY(0); }
.fiche-gift__btn--primary[disabled] { opacity: .6; cursor: default; transform: none; }
.fiche-gift__btn--ghost { background: transparent; color: var(--fg-aqua); border-color: rgba(56,225,212,.45); }
.fiche-gift__btn--ghost:hover { background: var(--fg-aqua-soft); border-color: var(--fg-aqua); }
.fiche-gift__btn--open { margin-top: 26px; }

.fiche-gift__micro { font-family: var(--fg-font-m); font-size: 13px; letter-spacing: .02em; color: var(--fg-ink3); margin: 8px 0 0; }
.fiche-gift__heart { color: var(--fg-coral); font-size: 14px; }

/* ---- état révélé : carte playlist (visible sans JS) ---- */
.fiche-gift__card {
  display: block; background: var(--fg-card); border: 1px solid var(--fg-line);
  border-radius: var(--fg-r); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); padding: 26px 26px;
}
.fiche-gift.has-gift .fiche-gift__card { display: none; }
.fiche-gift.has-gift.opened .fiche-gift__card { display: block; }
.fiche-gift__card .fiche-gift__eyebrow { margin-bottom: 17px; }

.fiche-gift__cover { display: flex; gap: 17px; align-items: center; }
.fiche-gift__cover img {
  width: 96px; height: 96px; flex: none; border-radius: 14px; object-fit: cover;
  background: var(--fg-card2); border: 1px solid var(--fg-line2); box-shadow: 0 12px 26px -14px rgba(0,0,0,.7);
}
.fiche-gift__title { font-family: var(--fg-font-b); font-weight: 700; font-size: 23px; line-height: 1.1; margin: 0; color: var(--fg-ink); letter-spacing: -.01em; }
.fiche-gift__sub { font-size: 14px; color: var(--fg-ink2); margin: 6px 0 0; }
.fiche-gift__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fiche-gift__badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--fg-font-m); font-size: 12px; font-weight: 500;
  color: var(--fg-ink2); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--fg-line); background: var(--fg-card2);
}
.fiche-gift__badge svg { width: 13px; height: 13px; color: var(--fg-aqua); }
.fiche-gift__desc { font-size: 15px; color: var(--fg-ink2); margin: 17px 0 0; line-height: 1.55; }
.fiche-gift__tracks { margin-top: 26px; }
.fiche-gift__tracks-label { font-family: var(--fg-font-m); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--fg-ink3); margin: 0 0 8px; }
.fiche-gift__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-gift__chips li {
  font-family: var(--fg-font-m); font-size: 13px; color: var(--fg-ink); background: var(--fg-card2);
  border: 1px solid var(--fg-line); border-left: 2px solid rgba(56,225,212,.55); padding: 7px 8px; border-radius: 8px;
}
.fiche-gift__tracks-more { font-size: 14px; color: var(--fg-ink3); margin: 8px 0 0; }
.fiche-gift__tracks-more b { color: var(--fg-ink2); font-weight: 600; }

/* « De X, déjà dedans » (Terry 2026-07-28) : ses propres titres méritaient
   mieux qu'un label gris de 12 px. Même code visuel que le bandeau du haut
   de fiche — point « live » + couleur signature de l'artiste — pour que les
   deux blocs se répondent le long de la page. */
.fiche-gift__tracks-label--mine {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .12em; color: var(--fg-ink);
}
.fiche-gift__dot-live {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--sig-h, 174) 78% 62%);
  animation: fg-dot 2.2s ease-out infinite;
}
@keyframes fg-dot {
  0% { box-shadow: 0 0 0 0 hsl(var(--sig-h, 174) 78% 62% / .6); }
  70% { box-shadow: 0 0 0 9px hsl(var(--sig-h, 174) 78% 62% / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--sig-h, 174) 78% 62% / 0); }
}
.fiche-gift__chips--mine li {
  border-left-color: hsl(var(--sig-h, 174) 78% 62% / .85);
  background: linear-gradient(90deg, hsl(var(--sig-h, 174) 78% 62% / .13), var(--fg-card2));
}
/* Les titres tombent l'un après l'autre à l'ouverture : le regard les compte. */
.fiche-gift.opened .fiche-gift__chips--mine li {
  animation: fg-rise .42s var(--fg-ease) both;
  animation-delay: calc(.3s + var(--i) * 60ms);
}
@media (prefers-reduced-motion: reduce) {
  .fiche-gift__dot-live { animation: none; }
  .fiche-gift.opened .fiche-gift__chips--mine li { animation: none; }
}
.fiche-gift__actions { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.fiche-gift__actions .fiche-gift__btn { width: 100%; }
.fiche-gift__actions .fiche-gift__micro { text-align: center; margin: 2px 0; }

/* ---- animation d'ouverture (transform/opacity uniquement) ---- */
.fiche-gift__fade { transition: opacity .35s ease, transform .35s ease; }
.fiche-gift.opening .fiche-gift__art { transform: scale(.9); opacity: 0; }
.fiche-gift.opening .fiche-gift__fade { opacity: 0; transform: translateY(8px); }
@keyframes fg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fiche-gift.opened .fiche-gift__card { animation: fg-fade-in .45s ease both; }
.fiche-gift.opened .fiche-gift__card .fiche-gift__eyebrow { animation: fg-rise .5s var(--fg-ease) .02s both; }
.fiche-gift.opened .fiche-gift__card .fiche-gift__cover { animation: fg-rise .5s var(--fg-ease) .08s both; }
.fiche-gift.opened .fiche-gift__card .fiche-gift__desc { animation: fg-rise .5s var(--fg-ease) .15s both; }
.fiche-gift.opened .fiche-gift__card .fiche-gift__tracks { animation: fg-rise .5s var(--fg-ease) .22s both; }
.fiche-gift.opened .fiche-gift__card .fiche-gift__actions { animation: fg-rise .5s var(--fg-ease) .29s both; }

/* ---- confetti (canvas créé par JS, fixé au viewport) ---- */
.fiche-gift__confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  /* Coupe tous les mouvements gratuits du composant (fades, reveals, shimmy, sparkles)… */
  .fiche-gift *, .fiche-gift *::before, .fiche-gift *::after { animation: none !important; transition: none !important; }
  /* …mais garde l'idle DOUX du cadeau, comme la preview B : reflet satiné + micro-mouvement,
     gros wiggle coupé. Specificité (0,2,0) + !important > blanket (0,1,0) → gagne. */
  .fiche-gift .fgb-floater { animation: fgb-float 8s ease-in-out infinite !important; }
  .fiche-gift .fgb-gift { animation: fgb-breathe 7s ease-in-out infinite !important; }
  .fiche-gift .fgb-sweep { animation: fgb-glint 7s cubic-bezier(.4,0,.2,1) infinite !important; }
  .fiche-gift .fgb-bow { animation: none !important; }
  .fiche-gift .fgb-shadow { animation: none !important; opacity: .46; }
  .fiche-gift .fgb-spark { animation: none !important; opacity: .4; }
}
@media (min-width: 620px) {
  .fiche-gift__sealed .fiche-gift__eyebrow { margin-bottom: 26px; }
  .fiche-gift__lead { font-size: 58px; }
  .fiche-gift__card { padding: 26px; }
  .fiche-gift__cover img { width: 108px; height: 108px; }
  .fiche-gift__cover { gap: 17px; }
}
