/* Section 09-footer — fichier propre à la section (base commune : ../styles.css).
   Le pied de page prolonge le sol de la finale (même noir, aucune bordure) : un reste d'aurore
   en haut, le titre illustré traversé d'un reflet, des liens soulignés d'un fil, et une portée
   tissée qui sépare les mentions. */

.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--canvas-deep); color: var(--subtle); }
.footer-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30% 150px at 50% 120px, rgb(0 194 180 / 9%), transparent 80%),
    radial-gradient(35% 60% at 12% 100%, rgb(167 139 250 / 8%), transparent 75%),
    radial-gradient(35% 60% at 88% 100%, rgb(26 255 234 / 6%), transparent 75%); }
.footer-sky .stars { opacity: .32; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }

.footer-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(44px, 5vw, 72px) 36px; font-size: 13px; }

/* Titre illustré, traversé d'un reflet qui ne touche que les lettres et les fils */
.footer-brand { position: relative; width: clamp(220px, 24vw, 340px);
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(50% 50% at 50% 50%, #000 62%, transparent 100%); }
.footer-title { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgb(0 194 180 / 18%)); }
.footer-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 70%) 50%, transparent 58%) 160% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../assets/media/songweaver-wordmark.webp") center / 100% 100% no-repeat;
  mask: url("../assets/media/songweaver-wordmark.webp") center / 100% 100% no-repeat;
  animation: footer-sheen 7s ease-in-out 1s infinite; }
@keyframes footer-sheen { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }

/* Liens : petites étoiles entre eux, un fil lumineux se tend au survol */
.footer-links { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; }
.footer-links a { position: relative; padding: 8px 2px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s, text-shadow .25s; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--brand-bright), var(--violet)); box-shadow: 0 0 10px rgb(26 255 234 / 60%);
  transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.footer-links a + a::before { content: ""; position: absolute; left: -21px; top: 50%; width: 8px; height: 8px; margin-top: -4px; pointer-events: none;
  background: var(--brand); opacity: .7;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--fg); text-shadow: 0 0 18px rgb(26 255 234 / 45%); }
.footer-links a:hover::after, .footer-links a:focus-visible::after { transform: scaleX(1); }

/* Portée tissée : deux fils qui se croisent, une lumière qui les parcourt */
.footer-thread { display: block; width: 100%; height: 48px; margin-top: 26px; overflow: visible; }
.footer-thread-line { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.footer-thread-run { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 1400; stroke-dashoffset: 60;
  filter: drop-shadow(0 0 4px #1AFFEA); animation: footer-run 6.5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes footer-run { from { stroke-dashoffset: 60; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { stroke-dashoffset: -1260; opacity: 0; } }

/* Mentions */
.footer-meta { margin-top: 18px; width: 100%; display: grid; gap: 8px; color: var(--subtle); line-height: 1.5; }
.footer .copyright { color: var(--muted); }
@media (min-width: 900px) {
  .footer-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
}

@media (max-width: 600px) {
  .footer-links { gap: 0 26px; }
  .footer-links a + a::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-sheen, .footer-thread-run { animation: none; }
  .footer-sheen { display: none; }
  .footer-thread-run { opacity: 0; }
  .footer-links a::after { transition: none; }
}
