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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.4;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- mise en page ---------- */

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

main.wrap {
  padding-top: 36px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
}

.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

/* L'en-tête tient toujours dans l'écran (scroll à 0) :
   - sa hauteur est celle de la fenêtre, avec un plancher et un plafond
   - les titres (nom, tagline, ville) sont collés en bas de l'en-tête
   - la photo prend toute la place restante et se réduit si l'écran est court */
.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  max-height: 1000px;
}

.hero__photo {
  flex: 1 1 0;
  min-height: 0;
  align-self: center;
  aspect-ratio: 2 / 3;
  max-width: min(100%, 560px);
}
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.hero__titles {
  flex: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
}

/* le nom chevauche le bas de la photo */
.hero__name {
  margin-top: -0.7em;
  font-size: clamp(96px, min(40vw, 28vh), 260px);
  /* fin contour noir net (sans flou) pour le détacher de la photo ; même décalage que les pochettes */
  text-shadow: 3px 3px 0 #000;
}

.hero__tagline {
  margin: 0;
  max-width: 600px;
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  text-wrap: balance;
}
.hero__city { color: var(--lilac); }

/* Ordinateur : la photo remonte un peu (le haut de l'image est du noir) */
@media (min-width: 720px) {
  .hero__photo { margin-top: calc(-1 * min(120px, 12vh)); }
}

/* ---------- apparition (un seul moment de mouvement) ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero__photo   { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__name    { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.hero__tagline,
.hero__city    { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- lignes cliquables ---------- */

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}
.row:hover { color: var(--ember); }
.row--end { border-bottom: 1px solid var(--line); }
.row svg { flex: none; width: 22px; height: 22px; }

.links { display: flex; flex-direction: column; }
.links .row {
  min-height: 76px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 56px);
  text-transform: uppercase;
}
.links .row svg { width: 28px; height: 28px; }
.links__end { border-top: 1px solid var(--line); }

/* ---------- sortie + mixes : lecteur ---------- */

/* « Out now » : fond orangé léger, sans flou. Intensité réglable avec --out-tint.
   Les marges négatives étendent le fond sans décaler le contenu par rapport aux autres sections. */
.release {
  --out-tint: 12%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 -20px;
  padding: 20px;
  background: color-mix(in srgb, var(--ember) var(--out-tint), transparent);
}
.release .label { color: var(--ember); }

.mixes { display: flex; flex-direction: column; }

.track {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas: "cover head" "player player";
  gap: 20px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.track__cover {
  grid-area: cover;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tile, var(--ember));
  color: var(--ink);
  display: grid;
  place-items: center;
  /* ombre orange nette, même décalage que le titre PIPOL */
  --cover-shadow-alpha: 65%;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ember) var(--cover-shadow-alpha), transparent);
}
.track__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.track__cover-fallback {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
}

.track__head { grid-area: head; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.track__tag {
  margin: 0;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  text-wrap: balance; /* contexte de retour à la ligne propre au surtitre, indépendant du titre */
}
.track__tag:empty { display: none; }
.track__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.track__paren { color: var(--lilac); }
/* la flèche suit le texte du titre, comme un dernier caractère */
.track__titlerow {
  min-width: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.02;
  text-wrap: balance;
}
.track__titlerow .track__title { display: inline; }
.track__link {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  /* centre la flèche sur la hauteur des capitales (mesuré : 0,185 em plus haut que « middle ») */
  position: relative;
  top: -0.185em;
  width: 44px;
  height: 44px;
  /* zone de toucher de 44 px sans agrandir la ligne */
  margin: -14px -11px -14px -4px;
  color: var(--muted);
}
.track__link svg { width: 22px; height: 22px; }
.track__link:hover { color: var(--ember); }

.track__player { grid-area: player; display: flex; align-items: center; gap: 16px; min-width: 0; }

.track__play {
  flex: none;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: var(--ember);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.track__play:hover { background: var(--cream); }
.track__play svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
.track__play .icon-pause { display: none; }
.track.is-playing .icon-play { display: none; }
.track.is-playing .icon-pause { display: block; }
@keyframes pulse { 50% { opacity: 0.45; } }
.track.is-loading .track__play { animation: pulse 0.9s ease-in-out infinite; }

.track__wave {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 52px;
  cursor: pointer;
  touch-action: pan-y; /* le défilement vertical reste natif */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.wave span { flex: 1; min-width: 1px; height: var(--h, 30%); background: var(--bar); }
.wave--played { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wave--played span { background: var(--ember); }
.track:not(.is-ready) .wave--base span { background: var(--line); }
.track:not(.is-ready) .wave--played { display: none; }

/* durées posées sur la waveform, sur fond noir */
.track__t {
  position: absolute;
  bottom: 0;
  z-index: 1;
  padding: 1px 5px;
  background: rgba(6, 3, 4, 0.9);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.track__t--cur { left: 0; }
.track__t--dur { right: 0; }

.track__status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.track__status:empty { display: none; }

.sc-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* grande sortie */
.track--feature {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "cover" "head" "player";
  gap: 24px;
  align-items: start;
  padding: 0;
  border-top: 0;
}
.track--feature { gap: 20px; }
.track--feature .track__cover { width: 100%; }
.track--feature .track__cover-fallback { font-size: 120px; }
.track--feature .track__titlerow { font-size: clamp(44px, 12.5vw, 56px); line-height: 0.98; }
.track--feature .track__wave { height: 64px; }

@media (min-width: 720px) {
  .track { grid-template-columns: 112px minmax(0, 1fr); gap: 20px 28px; }
  .track__cover { width: 112px; }
  .track--feature {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "cover head" "cover player";
    gap: 20px 28px;
  }
  .track--feature .track__cover { width: 200px; }
  .track--feature .track__player { align-self: end; }
}

/* Téléphone : le style (surtitre) et le titre restent dans la colonne à côté de la pochette */
@media (max-width: 719.98px) {
  .track:not(.track--feature) {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px 16px;
  }
  /* la colonne à côté de la pochette est étroite (238 px à 390 px d'écran) :
     taille et espacement réduits pour que « Hardgroove / Hardbounce » tienne sur une ligne */
  .track:not(.track--feature) .track__tag { font-size: 15px; letter-spacing: 0.06em; }
  .track:not(.track--feature) .track__cover { width: 96px; }
  .track:not(.track--feature) .track__titlerow { font-size: 26px; }
}

/* ---------- dates ---------- */

.date {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
a.date:hover { color: var(--ember); }
.date__day {
  width: 76px;
  flex: none;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}
.date__month {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
}
.date__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.date__venue { font-size: 20px; font-weight: 700; }
.date__city { font-size: 14px; color: var(--muted); }
.date svg { flex: none; width: 22px; height: 22px; }

/* ---------- indice de scroll (côté droit de l'en-tête) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.hero { position: relative; }

.nudge {
  position: absolute;
  top: 52%;
  right: max(20px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--lilac);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: nudge-in 1.2s ease 2.2s forwards;
}
.nudge:hover { color: var(--ember); }
.nudge__label { writing-mode: vertical-rl; }
.nudge__line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: var(--line);
}
.nudge__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ember);
  animation: nudge-drop 1.8s ease-in-out 3s infinite;
}
.nudge.is-hidden { opacity: 0 !important; pointer-events: none; transition: opacity 0.4s; }

@keyframes nudge-in { to { opacity: 1; } }
@keyframes nudge-drop { from { top: -40%; } to { top: 100%; } }

@media (min-width: 760px) {
  /* aligné sur le bord droit de la colonne de 720 px */
  .nudge { right: calc((100% - 720px) / 2 + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .nudge { opacity: 1 !important; }
  .nudge.is-hidden { opacity: 0 !important; }
}

/* ---------- booking ---------- */

.booking { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.booking__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 14vw, 128px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ember);
}
.booking__mail {
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 700;
  border-bottom: 2px solid var(--cream);
  overflow-wrap: anywhere;
}
.booking__mail:hover { color: var(--ember); border-color: var(--ember); }
.booking__copy {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.booking__copy:hover { color: var(--cream); }

/* adresse et press kit : deux lignes identiques */
.booking__list { align-self: stretch; display: flex; flex-direction: column; margin-top: 8px; }
.booking__row {
  min-height: 76px;
  font-size: clamp(22px, 5.4vw, 32px);
}
.booking__row .booking__mail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  border: 0;
}
.booking__row .booking__mail { font-size: inherit; }
.booking__row .booking__copy {
  flex: none;
  min-width: 64px;
  min-height: 44px;
  text-align: right;
}
