/*
 * Proposition 03 — ORBITE
 * Ambiance « cosmic house » : fond violet profond, orbites concentriques autour de l'isotype.
 * Un artiste à la fois : sélecteur rond (onglets) + scène en verre.
 * La photo devient un disque qui tourne pendant la preview, avec un anneau de progression.
 */
:root {
  --bg: #0b0414;
  --bg-2: #160829;
  --glass: rgba(254, 253, 228, 0.06);
  --glass-strong: rgba(254, 253, 228, 0.1);
  --line: rgba(254, 253, 228, 0.14);
  --fg: var(--fresca-cream);
  --muted: rgba(254, 253, 228, 0.68);
  --accent: var(--fresca-magenta);
  --radius-xl: 40px;
  --radius-l: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --warm: linear-gradient(135deg, var(--fresca-blush), var(--fresca-magenta) 55%, var(--fresca-orchid));

  --kit-bg: radial-gradient(1200px 700px at 85% -10%, rgba(107, 48, 161, 0.55), transparent 60%) fixed,
    radial-gradient(900px 500px at 50% 110%, rgba(253, 83, 210, 0.22), transparent 60%) fixed, var(--bg);
  --kit-fg: var(--fg);
  --kit-muted: var(--muted);
  --kit-line: var(--line);
  --kit-surface: var(--glass);
}

body {
  color: var(--fg);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(107, 48, 161, 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(138, 56, 168, 0.35), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(253, 83, 210, 0.22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--fresca-blush);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ───────── En-tête ───────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.topbar img {
  height: 44px;
  width: auto;
}

.pills {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.pills a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.pills a:hover,
.pills a[aria-current="page"] {
  background: var(--glass-strong);
  color: var(--fg);
}

/* ───────── Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fresca-blush);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  margin: 18px 0 24px;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 32px;
}

/* Orbites autour de l'isotype */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin linear infinite;
}

.orbit__ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--fresca-blush);
  box-shadow: 0 0 16px var(--fresca-magenta);
}

.orbit__ring:nth-child(1) {
  inset: 0;
  animation-duration: 40s;
}

.orbit__ring:nth-child(2) {
  inset: 11%;
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit__ring:nth-child(2)::after {
  background: var(--fresca-magenta);
}

.orbit__ring:nth-child(3) {
  inset: 22%;
  animation-duration: 18s;
  border-style: dashed;
}

.orbit__ring:nth-child(3)::after {
  background: var(--fresca-cream);
}

.orbit img {
  width: 54%;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(253, 83, 210, 0.45));
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ───────── Boutons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--cream {
  background: var(--fresca-cream);
  color: #1a0b24;
}

.btn--cream:hover {
  box-shadow: 0 10px 40px rgba(255, 205, 207, 0.35);
}

.btn--warm {
  background: var(--warm);
  color: #1a0b24;
}

.btn--glass {
  background: var(--glass);
  border-color: var(--line);
  color: var(--fg);
}

.btn--glass:hover {
  background: var(--glass-strong);
}

/* ───────── Sélecteur d'artistes (onglets) ───────── */
.lineup {
  padding-bottom: 32px;
}

.lineup__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lineup__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0;
  line-height: 1;
}

.lineup__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.tab:hover {
  background: var(--glass-strong);
}

.tab img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.tab small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.tab[aria-selected="true"] {
  background: var(--fresca-cream);
  color: #1a0b24;
  border-color: transparent;
}

.tab[aria-selected="true"] small {
  color: rgba(26, 11, 36, 0.6);
}

.tab[aria-selected="true"] img {
  filter: none;
  box-shadow: 0 0 0 2px var(--fresca-magenta);
}

/* indicateur « en lecture » sur l'onglet */
.tab .eq {
  display: none;
  gap: 2px;
  align-items: end;
  height: 14px;
  margin-left: 4px;
}

.tab.is-playing .eq {
  display: inline-flex;
}

.eq i {
  width: 3px;
  background: var(--fresca-magenta);
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) {
  animation-delay: -0.3s;
}

.eq i:nth-child(3) {
  animation-delay: -0.6s;
}

@keyframes eq {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}

/* ───────── Scène (panneau artiste) ───────── */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: rise 0.6s var(--ease);
}

.stage[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Disque + lecteur circulaire */
.disc-player {
  --progress: 0;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.disc {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
  animation: spin 14s linear infinite;
  animation-play-state: paused;
}

.disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* sillons et étiquette centrale du disque */
.disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 5px, rgba(0, 0, 0, 0.12) 5px 6px);
  mix-blend-mode: multiply;
}

.disc::after {
  content: "";
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.is-playing .disc {
  animation-play-state: running;
}

.ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 3;
}

.ring .bg {
  stroke: var(--line);
}

.ring .fg {
  stroke: url(#fresca-ring);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress) * 100);
}

.disc-player .play {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: var(--fresca-cream);
  color: #1a0b24;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}

.disc-player .play:hover {
  transform: scale(1.08);
}

.play svg {
  width: 26px;
  height: 26px;
}

.play .i-pause,
.is-playing .play .i-play {
  display: none;
}

.is-playing .play .i-pause {
  display: block;
}

.disc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.disc-meta .js-time {
  color: var(--fg);
  font-weight: 600;
}

/* contenu */
.stage__body {
  display: grid;
  gap: 24px;
  align-content: start;
}

.stage__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  margin: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--fg);
}

.badge--warm {
  background: var(--warm);
  color: #1a0b24;
  font-weight: 600;
}

.quote {
  margin: 0;
  padding: 24px 28px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(253, 83, 210, 0.16), rgba(107, 48, 161, 0.2));
  border: 1px solid rgba(253, 83, 210, 0.25);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  font-weight: 500;
}

/* Interview en accordéon */
.acc {
  display: grid;
  gap: 8px;
}

.acc details {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
}

.acc details[open] {
  background: var(--glass);
}

.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  position: relative;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--fg), var(--fg)) center / 10px 2px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 2px 10px no-repeat,
    var(--glass-strong);
  transition: transform 0.3s var(--ease);
}

.acc details[open] summary::after {
  transform: rotate(45deg);
}

.acc p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────── Pied de page ───────── */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer img {
  height: 48px;
  width: auto;
}

.footer p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .stage {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(100%, 380px);
    order: -1;
  }

  .footer .wrap {
    grid-template-columns: 1fr;
  }

  .pills .hide-sm {
    display: none;
  }
}
