/* Smart link Scriiibe Music : une constellation de liens */
:root { --nuit: #070b1e; --or: #d9b45a; --or-vif: #f2c96b; --turquoise: #3ec6c0; --texte: #ece6d6; --doux: #b9b6c8;
  --titre: 'Cormorant SC', Georgia, serif; --corps: 'Jost', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, #1d3480 0%, #0c1433 38%, var(--nuit) 75%) fixed, var(--nuit);
  color: var(--texte); font: 200 1rem/1.5 var(--corps); overflow-x: hidden;
}
#ciel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.voie-lactee { position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(90, 120, 220, 0.10) 47%, rgba(140, 160, 255, 0.07) 52%, transparent 62%); }
.smartlink { overflow-x: clip; position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px 40px; }

/* en-tête : le cartouche */
.sl-tete { text-align: center; animation: monte 1.2s ease-out both; }
.sl-cartouche { display: inline-block; padding: 18px 26px; border: 3px double var(--or); border-radius: 999px;
  background: radial-gradient(circle, rgba(27, 58, 140, 0.6), rgba(7, 11, 30, 0.9));
  box-shadow: 0 0 50px rgba(217, 180, 90, 0.3), inset 0 0 24px rgba(217, 180, 90, 0.15); position: relative; }
.sl-cartouche::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 60%; height: 5px; transform: translateX(-50%); border-radius: 3px; background: var(--or); }
.sl-cartouche img { width: 92px; height: auto; display: block; }
.sl-tete h1 { font-family: var(--titre); font-weight: 300; color: var(--or); letter-spacing: 0.16em; font-size: clamp(1.8rem, 7vw, 2.4rem); margin: 1.6rem 0 0.2rem; }
.sl-accroche { margin: 0; color: var(--doux); font-size: 0.95rem; letter-spacing: 0.02em; text-wrap: balance; }

/* la constellation */
.constellation { position: relative; height: calc(var(--n) * 86px + 40px); margin: 28px 0 20px; }
.traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.traits line { stroke: rgba(242, 201, 107, 0.45); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.1s ease-out forwards; animation-delay: var(--d); }
@keyframes trace { to { stroke-dashoffset: 0; } }

.astre-lien { position: absolute; transform: translate(-11px, -11px); display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--texte); opacity: 0; animation: apparait 0.7s ease-out forwards; animation-delay: var(--d); }
.astre-lien.gauche { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -11px); }
.point { width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle, #fff 0 22%, var(--c) 40%, transparent 72%);
  filter: drop-shadow(0 0 8px var(--c)); animation: pulse 3.2s ease-in-out infinite; animation-delay: var(--d); }
.point::before, .point::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; opacity: 0.85; border-radius: 1px;
  transform: translate(-50%, -50%); }
.point::before { width: 2px; height: 30px; background: linear-gradient(transparent, #fff, transparent); }
.point::after { width: 30px; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); }
@media (max-width: 420px) { .pastille { font-size: 1rem !important; padding: 7px 12px 7px 9px !important; } }
.pastille { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 11px; border-radius: 999px;
  background: rgba(7, 11, 30, 0.78); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  backdrop-filter: blur(6px); font-family: var(--titre); font-weight: 400; font-size: 1.12rem; letter-spacing: 0.06em;
  white-space: nowrap; max-width: min(54vw, 300px); transition: background 0.25s, box-shadow 0.25s, transform 0.25s; }
.pastille .nom { overflow: hidden; text-overflow: ellipsis; }
.pastille svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.astre-lien.eclat .pastille { background: linear-gradient(90deg, rgba(242, 201, 107, 0.22), rgba(7, 11, 30, 0.8)); }
.astre-lien:hover .pastille, .astre-lien:focus-visible .pastille { background: color-mix(in srgb, var(--c) 22%, rgba(7, 11, 30, 0.85)); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); transform: scale(1.05); }
.astre-lien:hover .point, .astre-lien:focus-visible .point { animation-duration: 0.8s; }
.astre-lien:focus-visible { outline: none; }
.astre-lien:focus-visible .pastille { outline: 2px solid var(--turquoise); outline-offset: 3px; }
@keyframes apparait { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes pulse { 50% { transform: scale(0.72); opacity: 0.75; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* pied : l'offre */
.sl-pied { text-align: center; margin-top: 10px; animation: monte 1.2s ease-out 2.2s both; }
.sl-pied p { color: var(--doux); font-size: 0.95rem; margin: 0 0 12px; text-wrap: balance; }
.sl-offre { display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none; color: var(--nuit);
  background: linear-gradient(180deg, var(--or-vif), var(--or)); font-family: var(--titre); font-weight: 500; letter-spacing: 0.08em; font-size: 1.05rem;
  box-shadow: 0 0 24px rgba(242, 201, 107, 0.35); }
.sl-offre:hover { box-shadow: 0 0 36px rgba(242, 201, 107, 0.6); }
.sl-marque { margin-top: 22px !important; font-family: var(--titre); letter-spacing: 0.2em; }
.sl-marque a { color: var(--or); text-decoration: none; }

/* étoile filante */
.filante { position: fixed; z-index: 0; width: 140px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent); border-radius: 2px;
  transform: rotate(-28deg); animation: file 1.4s ease-out forwards; }
@keyframes file { from { opacity: 0; translate: 0 0; } 15% { opacity: 1; } to { opacity: 0; translate: -340px 180px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .astre-lien { opacity: 1; } .traits line { stroke-dashoffset: 0; }
}
