/* =================================================================
   QUARKYZ — DESIGN SYSTEM
   Direction artistique : Apple Liquid Glass x underground club premium.

   Palette :
     --bg-900     noir profond de fond
     --bg-800     noir légèrement plus clair (sections)
     --white      blanc pur
     --mist       gris clair (texte secondaire)
     --smoke      gris moyen (texte tertiaire / bordures)
     --ember      touche chaude afrobeats (accent rare, jamais dominant)

   Typographie : pile système proche de San Francisco (Apple).
   Le wordmark "QUARKYZ" est le seul endroit où l'on prend un vrai
   risque typographique (grande taille, tracking extrême, dégradé).
================================================================== */

:root {
  --bg-900: #07070a;
  --bg-800: #0d0d11;
  --bg-700: #131318;
  --white: #ffffff;
  --mist: #c7c7cf;
  --smoke: #86868f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ember: #d9a05c;
  /* touche chaude, accent rare */
  --ember-soft: rgba(217, 160, 92, 0.35);

  /* Verre */
  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-fill-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur: 22px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Typo */
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Menlo", "Consolas", monospace;

  /* Rythme */
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.16, .84, .44, 1);
}

/* =================== RESET =================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--white);
  font-family: var(--font-sf);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =================== UTILITAIRES VERRE =================== */
.glass {
  background: var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-thin {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 14px;
}

.section {
  position: relative;
  padding: 140px 0;
}

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 56px;
}

.section__title span {
  color: var(--smoke);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--glass-border);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.btn--light {
  background: var(--white);
  color: var(--bg-900);
  border-color: var(--white);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

/* =================== REVEAL AU SCROLL =================== */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}

.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================== PRÉLOADEUR =================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-900);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}

.preloader__mark {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  animation: pulseMark 1.4s ease-in-out infinite;
}

@keyframes pulseMark {

  0%,
  100% {
    opacity: .35;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

body:not(.is-loading) .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =================== NAVIGATION =================== */
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav__inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
}

.nav__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.nav__logo-fallback {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 700;
}

.nav__wordmark {
  opacity: .92;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--mist);
  transition: color .3s var(--ease), background .3s var(--ease);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.is-active {
  color: var(--bg-900);
  background: var(--white);
}

.nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav__mobile {
  position: fixed;
  top: 78px;
  left: 20px;
  right: 20px;
  border-radius: var(--radius-m);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__mobile-link {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 15px;
  color: var(--mist);
}

.nav__mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* =================== HERO / HOME =================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--bg-900);
}

/* Fond de secours : dégradé animé + halos, toujours présent derrière
   la vidéo. Si aucune vidéo n'est fournie, la page d'accueil garde
   une allure volontaire au lieu d'un logo étiré en plein écran. */
.hero__fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 100%, #16161c 0%, #0a0a0d 60%, #050506 100%);
}

.hero__fallback-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero__fallback-glow--1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(217, 160, 92, 0.5), transparent 70%);
  animation: fallbackDrift 16s ease-in-out infinite;
}

.hero__fallback-glow--2 {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation: fallbackDrift 20s ease-in-out infinite reverse;
}

@keyframes fallbackDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6%, 8%) scale(1.12);
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

/* La vidéo n'apparaît que lorsqu'elle a réellement des données à afficher */
.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(7, 7, 10, 0.15) 0%, rgba(7, 7, 10, 0.55) 55%, rgba(7, 7, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.6) 0%, rgba(7, 7, 10, 0.25) 32%, rgba(7, 7, 10, 0.88) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 70px;
  max-width: 100%;
}

.hero__mark {
  margin-bottom: 22px;
  position: relative;
}

.hero__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.hero__logo-fallback {
  display: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero__title {
  font-size: clamp(52px, 12vw, 132px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

/* Le dégradé doit être posé sur l'élément qui porte le texte lui-même
   (le span), pas sur le h1 qui l'entoure : sinon le clip s'applique à
   une boîte sans glyphes et le titre ne rend simplement rien. */
.hero__title-line {
  display: inline-block;
  /* Repli solide d'abord : si le dégradé texte n'est pas supporté,
     le titre reste blanc et parfaitement lisible. */
  color: var(--white);
  opacity: 0;
  transform: translateY(40px);
  animation: titleIn 1.4s var(--ease-soft) 0.5s forwards;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-line {
    background: linear-gradient(180deg, #ffffff 0%, #d8d8de 55%, #a8a8b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subname {
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-soft) 1s forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__hint {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-soft) 1.6s forwards;
}

.hero__hint-bar {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--white), transparent);
  position: relative;
  overflow: hidden;
}

.hero__hint-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: hintDrop 2.2s var(--ease) infinite;
}

@keyframes hintDrop {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* =================== LECTEUR MUSICAL — "vinyle flottant" =================== */
.player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  display: flex;
  justify-content: flex-end;
}

/* ---- Disque (vinyle) réutilisé en petit et en grand format ---- */
.player__disc {
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #2b2b32, #08080a 72%);
  border: 1px solid var(--glass-border);
}

.player__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.player__disc-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  opacity: .85;
}

.player__disc-hole {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--bg-900);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player__disc-shine {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg, rgba(255, 255, 255, 0.18), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.1));
  mix-blend-mode: screen;
  opacity: .6;
}

/* Rotation façon vinyle uniquement pendant la lecture */
#player[data-state="playing"] .player__disc {
  animation: discSpin 9s linear infinite;
}

@keyframes discSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Halo ambré qui respire pendant la lecture (autour du grand disque) */
#player[data-state="playing"] .player__disc--big::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--ember-soft);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0% {
    opacity: .9;
    transform: scale(0.9);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* ---------------- Pastille compacte (état par défaut) ---------------- */
.player__mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  border: none;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.player__mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.player__disc--mini {
  width: 40px;
  height: 40px;
}

.player__disc--mini .player__disc-hole {
  width: 26%;
  height: 26%;
}

.player__mini-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  max-width: 120px;
}

.player__mini-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.player__mini-sub {
  font-size: 10px;
  color: var(--smoke);
}

.player__mini-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.player__mini-wave i {
  width: 2px;
  border-radius: 2px;
  background: var(--ember);
  height: 20%;
  opacity: .5;
  transition: height .22s ease-out, opacity .3s;
}

#player[data-state="playing"] .player__mini-wave i {
  opacity: 1;
}

.player__mini-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player__mini-play svg {
  width: 11px;
  height: 11px;
  fill: var(--bg-900);
}

/* ---------------- Carte dépliée ---------------- */
.player__card {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 340px;
  border-radius: var(--radius-l);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft), transform .45s var(--ease-soft), visibility .4s;
}

.player__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__close svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.player__top {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 20px;
}

.player__disc--big {
  width: 84px;
  height: 84px;
}

.player__top-meta {
  min-width: 0;
  flex: 1;
}

.player__eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 4px;
}

.player__track-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__track-artist {
  font-size: 11px;
  color: var(--smoke);
  margin-top: 2px;
}

.player__waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-top: 10px;
}

.player__waveform span {
  flex: 1;
  background: linear-gradient(180deg, var(--white), var(--smoke));
  border-radius: 2px;
  height: 18%;
  opacity: .45;
  transition: height .28s ease-out, opacity .3s;
}

#player[data-state="playing"] .player__waveform span {
  opacity: 1;
}

.player__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--smoke);
  width: 30px;
  flex-shrink: 0;
}

.player__time:last-child {
  text-align: right;
}

.player__range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.player__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  cursor: pointer;
  margin-top: -4px;
  transition: transform .2s var(--ease);
}

.player__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.player__range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
}

.player__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.player__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), transform .2s var(--ease);
}

.player__btn svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

.player__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.player__btn--main {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.player__btn--main svg {
  fill: var(--bg-900);
  width: 19px;
  height: 19px;
}

.player__btn--main:hover {
  transform: translateY(-1px) scale(1.05);
}

/* Sécurité : un seul état (play OU pause) visible à la fois, quoi qu'il
   arrive côté JS — jamais les deux icônes superposées. */
#player[data-state="playing"] #iconPlay,
#player[data-state="playing"] #miniIconPlay {
  display: none;
}

#player[data-state="paused"] #iconPause,
#player[data-state="paused"] #miniIconPause {
  display: none;
}

.player__volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player__volume-icon {
  width: 14px;
  height: 14px;
  fill: var(--smoke);
  flex-shrink: 0;
}

/* ---------------- Bascule entre les deux états ---------------- */
.player[data-open="false"] .player__mini {
  opacity: 1;
  visibility: visible;
}

.player[data-open="false"] .player__card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
}

.player[data-open="true"] .player__mini {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player[data-open="true"] .player__card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 560px) {
  .player {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    justify-content: stretch;
  }

  /* Pastille compacte : pleine largeur, plus grande zone tactile */
  .player__mini {
    width: 100%;
    padding: 10px 16px 10px 10px;
    gap: 10px;
  }

  .player__mini-meta {
    max-width: none;
    flex: 1;
  }

  .player__mini-play {
    width: 32px;
    height: 32px;
  }

  .player__mini-play svg {
    width: 13px;
    height: 13px;
  }

  /* Carte dépliée : occupe la largeur disponible, hauteur limitée avec
     défilement interne pour rester utilisable même sur petit écran */
  .player__card {
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
  }

  .player__top {
    padding-right: 30px;
    gap: 14px;
  }

  .player__disc--big {
    width: 68px;
    height: 68px;
  }

  .player__track-title {
    font-size: 16px;
  }

  /* Contrôles agrandis pour un toucher confortable (cible ~44px) */
  .player__controls {
    gap: 10px;
  }

  .player__btn {
    width: 44px;
    height: 44px;
  }

  .player__btn svg {
    width: 16px;
    height: 16px;
  }

  .player__btn--main {
    width: 56px;
    height: 56px;
  }

  .player__btn--main svg {
    width: 21px;
    height: 21px;
  }

  .player__volume {
    margin-top: 2px;
  }

  .player__range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
  }

  .player__range::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }

  .player__range {
    height: 5px;
  }
}

@media (max-width: 380px) {
  .player__mini-meta {
    display: none;
  }

  /* garde juste le disque + la vague sur très petit écran */
  .player__mini {
    justify-content: space-between;
  }
}

/* =================== ABOUT =================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

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

.about__image--empty {
  background: linear-gradient(160deg, #17171c, #0a0a0d);
}

.about__image--empty img {
  opacity: 0;
}

.about__image-glow {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: radial-gradient(circle, rgba(217, 160, 92, 0.18), transparent 65%);
  filter: blur(30px);
}

.about__story p {
  color: var(--mist);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 46ch;
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.about__stat-label {
  font-size: 12px;
  color: var(--smoke);
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =================== MUSIC =================== */
.track-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  border-radius: var(--radius-l);
  padding: 28px;
  margin-bottom: 40px;
}

.track-feature__art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(150deg, #1a1a20, #08080a);
}

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

.track-feature__art--empty img {
  opacity: 0;
}

.track-feature__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.track-feature__play svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-900);
  margin-left: 2px;
}

.track-feature__play:hover {
  transform: scale(1.08);
}

.track-feature__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-feature__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}

.track-feature__title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.track-feature__desc {
  color: var(--mist);
  line-height: 1.7;
  max-width: 60ch;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.track-slot {
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}

.track-slot:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.track-slot__art--empty {
  aspect-ratio: 1/1;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--smoke);
}

.track-slot__title {
  font-weight: 600;
  font-size: 14px;
}

.track-slot__sub {
  font-size: 12px;
  color: var(--smoke);
}

@media (max-width: 760px) {
  .track-feature {
    grid-template-columns: 1fr;
  }

  .track-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
}

/* =================== LIVE / TIMELINE =================== */
.timeline {
  position: relative;
  padding-left: 92px;
  margin-bottom: 60px;
}

.timeline__line {
  position: absolute;
  left: 44px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.timeline__date {
  position: absolute;
  left: -92px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  text-align: right;
  font-family: var(--font-mono);
}

.timeline__day {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.timeline__month {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--smoke);
  text-transform: uppercase;
}

.timeline__dot {
  position: absolute;
  left: -52px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.timeline__card {
  flex: 1;
  border-radius: var(--radius-m);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}

.timeline__card:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.06);
}

.timeline__card h3 {
  font-size: 17px;
  font-weight: 650;
}

.timeline__place {
  font-size: 13px;
  color: var(--smoke);
  margin-top: 4px;
}

.timeline__badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  flex-shrink: 0;
}

.live__booking {
  border-radius: var(--radius-l);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.live__booking h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.live__booking p {
  color: var(--mist);
  font-size: 14px;
}

@media (max-width: 640px) {
  .timeline {
    padding-left: 56px;
  }

  .timeline__date {
    position: static;
    text-align: left;
    width: auto;
    margin-bottom: 8px;
  }

  .timeline__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline__dot {
    left: -30px;
  }
}

/* =================== VISUALS / GALLERY =================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-m);
  overflow: hidden;
  padding: 0;
  border: none;
  background: linear-gradient(150deg, #1a1a20, #08080a);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft), filter .6s var(--ease-soft);
}

.gallery__item--empty img {
  opacity: 0;
}

.gallery__item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.gallery__item:hover::after {
  opacity: 1;
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-m);
}

.lightbox__close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

/* =================== CONTACT =================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__text {
  color: var(--mist);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 30px;
}

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-s);
  transition: background .3s var(--ease), transform .3s var(--ease);
  font-size: 14px;
  font-weight: 600;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.social-link__handle {
  color: var(--smoke);
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 12px;
}

.contact__form {
  border-radius: var(--radius-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--smoke);
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.field select {
  appearance: none;
}

.contact__submit {
  margin-top: 6px;
  align-self: flex-start;
}

.contact__status {
  font-size: 13px;
  color: var(--ember);
  min-height: 18px;
}

@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =================== FOOTER =================== */
.footer {
  position: relative;
  padding: 96px 32px 140px;
  border-top: 1px solid var(--line);
  background: var(--bg-800);
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  width: 60vw;
  max-width: 640px;
  height: 260px;
  background: radial-gradient(circle, rgba(217, 160, 92, 0.14), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  max-width: 300px;
}

.footer__mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
}

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

.footer__mark-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.footer__wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 6px;
}

.footer__links-col a {
  font-size: 14px;
  color: var(--mist);
  transition: color .25s var(--ease), transform .25s var(--ease);
  width: fit-content;
}

.footer__links-col a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: var(--smoke);
}

.footer__top-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  color: var(--mist);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.footer__top-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 6px;
}

.footer__top-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .footer {
    padding: 72px 24px 120px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =================== SECTIONS : léger contraste de fond =================== */
.about,
.live {
  background: var(--bg-800);
}