/* ==========================================================
   STARRYSKY — feuille de style
   Même structure et même esprit que le site AsterLián,
   avec l'identité STARRYSKY (logo, rouge, constellation).
   ========================================================== */

:root {
  --bg: #0a0b0f;
  --bg-alt: #111218;
  --bg-card: #16171f;
  --line: rgba(255, 102, 102, 0.16);
  --accent: #ff6666;
  --accent-soft: #ffb0a8;
  --ember: #d63a3a;
  --text: #eef0f5;
  --text-muted: #9ea3b2;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--accent); color: var(--bg); padding: 8px 14px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 11, 15, 0.85), transparent);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { margin-right: auto; }
.brand img { width: 170px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-family: var(--font-head); font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-soft); }

.header-socials { display: flex; gap: 14px; font-size: 18px; }
.header-socials a { display: inline-flex; color: var(--text-muted); transition: color 0.2s ease; }
.header-socials a:hover { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  position: relative; z-index: 101;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; padding-bottom: 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-band.jpg") center 20% / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  /* révélation de gauche à droite au chargement */
  -webkit-mask-image: linear-gradient(to right, #000 33%, transparent 66%);
          mask-image: linear-gradient(to right, #000 33%, transparent 66%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: hero-reveal 2.4s cubic-bezier(0.25, 0.6, 0.3, 1) 0.2s both;
}
@keyframes hero-reveal {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: saturate(1.05) contrast(1.05) brightness(0.3); }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0;    filter: saturate(1.05) contrast(1.05) brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; -webkit-mask-image: none; mask-image: none; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(10,11,15,0) 0%, rgba(10,11,15,0.45) 65%, rgba(10,11,15,0.85) 100%),
    linear-gradient(to top, rgba(10,11,15,1) 0%, rgba(10,11,15,0.75) 28%, rgba(10,11,15,0) 60%);
}
.hero-constellation {
  position: absolute; right: 3%; top: 14%;
  width: min(42vw, 520px); height: auto;
  color: rgba(255, 102, 102, 0.12);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px; max-width: 820px;
}
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.28em; font-size: 0.8rem;
  color: var(--accent); margin: 0 0 18px;
}
.hero-title { margin: 0 0 20px; }
.hero-title img { width: min(560px, 84vw); margin: 0 auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.6)); }
.hero-tagline {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 36px;
}
.hero-tagline strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.9rem;
  padding: 14px 32px; border: 1px solid var(--accent);
  transition: all 0.25s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-outline { background: transparent; color: var(--accent-soft); }
.btn-outline:hover { background: rgba(255, 102, 102, 0.1); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn.is-disabled { opacity: .45; cursor: default; }
.btn.is-disabled:hover { background: transparent; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600; margin: 0; color: var(--text); line-height: 1.1;
}
.section-sub { margin: 8px 0 0; color: var(--text-muted); }
.section-footnote { text-align: center; color: var(--text-muted); margin-top: 40px; }
.section-footnote a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- Concerts ---------- */
.events { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 28px;
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 22px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.event:hover { border-color: var(--accent); transform: translateY(-3px); }
.event-date {
  display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid var(--line); padding-right: 24px;
}
.event-date .d { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--accent-soft); }
.event-date .m { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }
.event-info h3 { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.03em; font-weight: 600; margin: 0; line-height: 1.2; }
.event-meta { margin: 2px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.event-tag {
  margin: 8px 0 0; display: inline-block;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  color: var(--accent); border: 1px solid var(--line); padding: 2px 9px;
}
.events-empty { max-width: 560px; margin: 0 auto; text-align: center; color: var(--text-muted); }

@media (max-width: 640px) {
  .event { grid-template-columns: 74px 1fr; gap: 16px 18px; padding: 20px; }
  .event-date { padding-right: 16px; }
  .event-date .d { font-size: 2.1rem; }
  .event .btn { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Shop : bandeau d'articles ---------- */
.merch-band {
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 6px 0;
  overflow-x: auto; scrollbar-width: thin;
}
.merch-track {
  list-style: none; margin: 0; padding: 0 16px;
  display: flex; gap: 18px; width: max-content;
}
.merch-band.is-moving {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* gap remplacé par une marge pour que -50% tombe pile sur la copie */
.merch-band.is-moving .merch-track {
  padding: 0; gap: 0;
  animation: merch-scroll var(--merch-duration, 50s) linear infinite;
}
.merch-band.is-moving .merch-item { margin-right: 18px; }
.merch-band:hover .merch-track,
.merch-band:focus-within .merch-track { animation-play-state: paused; }
@keyframes merch-scroll { to { transform: translateX(-50%); } }

.merch-item { flex: 0 0 auto; width: 210px; }
.merch-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--bg-card); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.merch-link:hover, a.merch-link:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.merch-media { background: #fff; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.merch-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
a.merch-link:hover .merch-media img { transform: scale(1.06); }
.merch-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.merch-name {
  margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  letter-spacing: 0.03em; line-height: 1.2; color: var(--text);
}
.merch-price { margin: auto 0 0; font-family: var(--font-head); font-size: 1rem; color: var(--accent-soft); letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .merch-item { width: 160px; }
  .merch-name { font-size: 0.98rem; }
}

/* ---------- Shop ---------- */
.shop-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  max-width: 960px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.shop-card:hover { border-color: var(--accent); }
.shop-media { display: grid; place-items: center; background: #fff; padding: 28px; overflow: hidden; }
.shop-media img { width: 100%; max-width: 400px; transition: transform 0.5s ease; }
.shop-card:hover .shop-media img { transform: scale(1.04); }
.shop-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.shop-text > p:first-child { color: var(--text-muted); margin: 0 0 22px; font-size: 1.02rem; }
.shop-text strong { color: var(--accent-soft); font-weight: 600; }
.shop-items { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-items li {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
  color: var(--text-muted); border: 1px solid var(--line); padding: 4px 12px;
}
.shop-note { margin: 16px 0 0; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 760px) {
  .shop-card { grid-template-columns: 1fr; }
  .shop-text { align-items: center; text-align: center; }
  .shop-items { justify-content: center; }
}

/* ---------- Musique ---------- */
.music-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  max-width: 960px; margin: 0 auto;
}
.music-embed { display: block; width: 100%; height: 380px; border: 0; border-radius: 12px; background: var(--bg); }
.music-links p { color: var(--text-muted); margin: 0 0 24px; }
.music-links strong { color: var(--accent-soft); font-weight: 600; }
.platform {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.platform svg { font-size: 1.2rem; color: var(--accent); }
.platform:hover { border-color: var(--accent); color: var(--accent-soft); transform: translateX(4px); }
@media (max-width: 820px) { .music-grid { grid-template-columns: 1fr; } }

/* ---------- Vidéo ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: 0 auto;
  background: #000; border: 1px solid var(--line);
}
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: none; overflow: hidden; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s, opacity .3s; }
.video-play:hover img { transform: scale(1.03); opacity: 1; }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid var(--accent); background: rgba(10, 11, 15, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background-color .25s, transform .25s;
}
.play-icon::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent-soft);
}
.video-play:hover .play-icon { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.video-play:hover .play-icon::after { border-left-color: var(--bg); }

/* ---------- Membres ---------- */
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 24px;
}
.member-card { text-align: center; }
.member-photo {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 18px; border: 1px solid var(--line);
  outline: 2px solid transparent; outline-offset: 4px;
  transition: outline-color 0.25s ease;
}
.member-card:hover .member-photo { outline-color: var(--accent); }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) contrast(1.05); transition: filter 0.3s ease;
}
.member-card:hover .member-photo img { filter: none; }
.member-card h3 { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.03em; font-weight: 600; margin: 0 0 2px; }
.member-role { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.member-socials { display: flex; justify-content: center; gap: 8px; }
.member-socials a {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.member-socials a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* ---------- Bio ---------- */
.lang-switch { display: flex; justify-content: center; gap: 0; margin: -24px auto 40px; width: fit-content; border: 1px solid var(--line); }
.lang-switch button {
  background: none; border: 0; cursor: pointer; padding: 9px 22px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  color: var(--text-muted); transition: all 0.2s ease;
}
.lang-switch button:hover { color: var(--accent-soft); }
.lang-switch button[aria-selected="true"] { background: var(--accent); color: var(--bg); }

.bio-grid { max-width: 780px; margin: 0 auto; }
.bio-text p { color: var(--text-muted); margin: 0 0 22px; }
.bio-text strong { color: var(--accent-soft); font-weight: 600; }
.bio-text em { color: var(--text); font-style: italic; }

.stats {
  list-style: none; padding: 0; margin: 56px auto 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line); padding: 28px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stat:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.stat-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--text); }
.stat-label { margin-top: 8px; color: var(--text-muted); font-size: 0.88rem; }
.ulule { display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid var(--accent); border-radius: 50%; }
.ulule i { width: 8px; height: 8px; border-radius: 50%; background: #2fb5d2; }
.ulule i + i { background: #e8344e; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; max-width: 360px; } }

/* ---------- Contact ---------- */
.contact-box { max-width: 520px; margin: 0 auto; text-align: center; }
.contact-box p { color: var(--text-muted); margin: 0 0 28px; }
.contact-box .btn { text-transform: none; letter-spacing: 0.06em; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: #060609; border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo { width: 150px; opacity: .85; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer-socials a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.85rem; color: var(--text-muted); transition: color .2s ease;
}
.footer-socials a:hover { color: var(--accent); }
.footer-note { color: var(--text-muted); font-size: 0.82rem; max-width: 460px; margin: 8px 0 0; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(78vw, 320px);
    background: var(--bg-alt); border-left: 1px solid var(--line);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .header-socials { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding-bottom: 100px; }
  /* photo entière en haut, bord inférieur fondu dans le fond */
  .hero-bg {
    background:
      linear-gradient(to bottom, transparent 55%, var(--bg) 98%) 50% 64px / 210% 124.25vw no-repeat,
      url("../img/hero-band.jpg") 50% 64px / 210% 124.25vw no-repeat,
      var(--bg);
  }
  .hero-constellation { width: 70vw; top: 10%; right: -6%; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
  .member-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .member-photo { width: 120px; height: 120px; }
}
