/* Burnsfield Music — fond noir, texte gris, mascotte 3D en arrière-plan */
:root {
  --bg: #000;
  --fg: #a9a9a9;
  --fg-strong: #eee;
  --panel: #222;
  --panel-hover: #333;
  --accent-red: #db1217;
  --accent-yellow: #ffd10a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-align: center;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Mascotte plein écran, derrière le contenu, ne bloque aucun clic */
#mascot {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#mascot.is-ready { opacity: 1; }

/* Fond animé orbites : derrière tout, ne bloque aucun clic */
#orbits, #orbits-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#mascot { z-index: 1; }
.page-home .site-header, .page-home main, .page-home footer { position: relative; z-index: 2; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent-yellow);
  color: #000;
  font-weight: bold;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.container, .site-header, .site-footer { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.site-header { padding: 1rem; display: flex; justify-content: center; }
.site-header img { width: min(480px, 90vw); border-radius: 10px; mix-blend-mode: screen; }

.lead { max-width: 600px; margin: 1rem auto 2rem; font-size: 1.2rem; text-shadow: 0 1px 6px #000; }

h1, h2 { color: var(--fg-strong); text-shadow: 0 1px 8px #000; }
h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
section { padding: 2rem 0; }

/* Artistes */
.artist-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.artist-card {
  width: min(220px, 44vw);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.artist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.artist-card:hover, .artist-card:focus-visible {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 10px 30px rgba(219, 18, 23, 0.35);
}

/* Sorties */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
  text-align: left;
}
.release-card {
  display: block;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.release-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release-card span { display: block; padding: 0.55rem 0.7rem 0.15rem; color: var(--fg-strong); font-weight: bold; font-size: 0.95rem; }
.release-card small { display: block; padding: 0 0.7rem 0.6rem; font-size: 0.78rem; color: var(--fg); }
.release-card:hover, .release-card:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(255, 209, 10, 0.3); }

/* Page artiste */
.artist-header img { width: min(300px, 70vw); margin: 1rem auto; border-radius: 15px; background: rgba(255, 255, 255, 0.05); padding: 10px; }

.link-buttons { margin: 2rem 0 1rem; }
.btn-linktree {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0.5rem auto;
  padding: 1rem;
  background: var(--panel);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s, transform 0.1s;
}
.btn-linktree:hover, .btn-linktree:focus-visible { background: var(--panel-hover); transform: translateY(-2px); }

.contact { margin: 1rem 0; }
.contact a { color: var(--fg-strong); }

.btn {
  display: inline-block;
  min-width: 180px;
  margin: 1.5rem 0 1rem;
  padding: 12px 24px;
  background: var(--fg);
  color: #000;
  border-radius: 9px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn:hover, .btn:focus-visible { background: #444; color: var(--fg); }

a:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: 3px; }

.site-footer {
  margin-top: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
.site-footer img { opacity: 0.85; }

.not-found { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.not-found h1 { font-size: clamp(4rem, 20vw, 9rem); line-height: 1; }

/* Fonds des pages artistes (reprise de la version en ligne) */
.page-artist::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.page-burnsfield::before { background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)), url("../img/bg-burnsfield.webp"); }
.page-lanuit::before { background-image: url("../img/bg-lanuit.webp"); }
.page-burnsfield { color: #eee; background: #111; }
.page-lanuit { color: #000; background: #4c3fba; }
.page-lanuit h2, .page-lanuit .lead { color: #000; text-shadow: none; }
.page-lanuit .contact a { color: #000; }

/* Mobile : la mascotte reste derrière le contenu, un peu atténuée */
@media (max-width: 899px) {
  #mascot.is-ready { opacity: 0.55; }
  .lead { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
