/* ==========================================================================
   ACCUEIL TEMPO - DA "Playlist"
   Fond asphalte, chaque modèle est un morceau avec son BPM.
   La couleur d'accent (--accent) suit le modèle en cours de lecture.
   Inspirations : pages de lancement (nom géant), callouts techniques, drop countdown.
   ========================================================================== */

body.home {
  --bg: #0C0C0D;
  --fg: #F2EFE9;
  --muted: rgba(242, 239, 233, 0.55);
  --line: rgba(242, 239, 233, 0.12);
  --accent: #FF5A1F;
  --beat: 0.5s;
  --f-display: "Big Shoulders Display", "Anton", "Impact", sans-serif;
  transition: --accent 0.8s;
}
@property --accent { syntax: '<color>'; inherits: true; initial-value: #FF5A1F; }
.home ::selection { background: var(--accent); color: #0C0C0D; }
.home .header { background: color-mix(in srgb, #0C0C0D 82%, transparent); }
.home .nav a::after, .home .cart-count { background: var(--accent); }
.home .cart-count { color: #0C0C0D; }

.home .btn { border-color: var(--fg); }
.home .btn--primary { background: var(--accent); border-color: var(--accent); color: #0C0C0D; }
.home .btn--primary:hover { background: var(--fg); border-color: var(--fg); }
.home .btn--ghost:hover { background: var(--fg); color: #0C0C0D; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.eq { display: inline-flex; align-items: end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: var(--accent); animation: eq var(--beat) ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: calc(var(--beat) * -0.33); }
.eq i:nth-child(3) { animation-delay: calc(var(--beat) * -0.66); }
.eq i:nth-child(4) { animation-delay: calc(var(--beat) * -0.15); }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* ---------- HERO "Now playing" ---------- */
.np {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 24px var(--gutter) 28px;
}
.np::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(48% 52% at 50% 54%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%);
}
.np__grid { position: absolute; inset: 0; z-index: -2; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.np__top { display: flex; justify-content: space-between; gap: 16px; }
.np__bpm { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.np__bpm strong { color: var(--accent); font-size: 14px; }

.np__stage { position: relative; display: grid; place-items: center; }
.np__name {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: -1;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(120px, 30vw, 520px); line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 55%, transparent);
  user-select: none;
}
.np__name span { display: block; transition: transform 0.9s var(--ease-out), opacity 0.5s; }
.np__ring { position: absolute; width: min(44vw, 520px, 60svh); aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); animation: beat var(--beat) ease-out infinite; z-index: -1; }
@keyframes beat { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.12); opacity: 0; } }
.np__shoe { position: relative; width: min(46vw, 600px, 62svh); }
.np__shoe img {
  width: 100%; rotate: -12deg;
  filter: drop-shadow(0 50px 50px rgba(0, 0, 0, 0.6));
  animation: hover 4s ease-in-out infinite;
  transition: opacity 0.45s, transform 0.7s var(--spring);
}
.np__shoe.is-out img { opacity: 0; transform: translateX(-12%) rotate(-8deg) scale(0.92); }
.np__shoe.is-in img { opacity: 0; transform: translateX(12%) rotate(8deg) scale(0.92); }
@keyframes hover { 50% { translate: 0 -14px; } }

/* Callouts techniques */
.callout { position: absolute; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg); white-space: nowrap; transition: opacity 0.4s; }
.callout::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); flex-shrink: 0; }
.callout i { display: block; height: 1px; width: clamp(30px, 5vw, 80px); background: color-mix(in srgb, var(--fg) 45%, transparent); }
.callout--1 { left: 6%; top: 18%; flex-direction: row-reverse; }
.callout--2 { right: 4%; top: 30%; }
.callout--3 { left: 10%; bottom: 14%; flex-direction: row-reverse; }
.np__stage.is-switching .callout { opacity: 0; }

/* Lecteur */
.player { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.player__track h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(42px, 5vw, 80px); line-height: 0.85; }
.player__track p { color: var(--muted); margin-top: 8px; }
.player__controls { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.player__btns { display: flex; align-items: center; gap: 12px; }
.pbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--spring); }
.pbtn:hover { border-color: var(--fg); transform: scale(1.08); }
.pbtn--play { width: 64px; height: 64px; background: var(--accent); border-color: var(--accent); color: #0C0C0D; font-size: 20px; }
.player__dots { display: flex; gap: 6px; }
.player__dots button { width: 34px; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.player__dots button span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.player__dots button.is-done span { transform: scaleX(1); }
.player__buy { justify-self: end; display: flex; flex-direction: column; align-items: end; gap: 12px; }
.player__price { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; }

/* ---------- Bandeau ---------- */
.home .marquee { background: var(--accent); color: #0C0C0D; transition: background 0.8s; }
.home .marquee__item { font-family: var(--f-display); font-weight: 900; }
.home .marquee__item:nth-child(even) { color: #0C0C0D; -webkit-text-stroke: 0; opacity: 0.55; }

/* ---------- Titres de section ---------- */
.home .section-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 10vw, 160px); line-height: 0.82; }
.home .section-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--fg); }

/* ---------- Tracklist (collection) ---------- */
.tracklist { border-top: 1px solid var(--line); }
.track {
  --a: var(--accent);
  position: relative; display: grid; grid-template-columns: 70px 1.6fr 1fr 0.8fr 0.8fr 40px; align-items: center; gap: 20px;
  padding: 22px 12px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color 0.35s, padding 0.5s var(--ease-out);
}
.track::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--a); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); }
.track:hover { color: #0C0C0D; padding-left: 24px; }
.track:hover::before { transform: scaleY(1); }
.track__num { font-family: var(--f-mono); font-size: 13px; }
.track__name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4vw, 64px); line-height: 0.9; }
.track__meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; opacity: 0.7; }
.track__price { font-weight: 800; font-size: 18px; }
.track__arrow { font-size: 22px; transition: transform 0.4s var(--ease-out); }
.track:hover .track__arrow { transform: rotate(-45deg); }
.track__img {
  position: absolute; left: 41%; top: 50%; width: 260px; z-index: 1; pointer-events: none;
  translate: 0 -50%; rotate: -14deg; opacity: 0; scale: 0.7;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.35));
  transition: opacity 0.35s, scale 0.6s var(--spring), rotate 0.6s var(--spring);
}
.track:hover .track__img { opacity: 1; scale: 1; rotate: -6deg; }
.track__meta { transition: opacity 0.3s; }
.track:hover .track__meta { opacity: 0; }

/* ---------- Drop countdown (Tempo Night) ---------- */
.drop {
  position: relative; margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 560px;
  background: #050506; border: 1px solid var(--line);
}
.drop__img { position: absolute; inset: 0 0 0 40%; z-index: -1; }
.drop__img img { width: 100%; height: 100%; object-fit: cover; }
.drop__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050506 0%, rgba(5, 5, 6, 0.6) 35%, transparent 70%); }
.drop__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.drop__tag { align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 1px solid #D9DEE6; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.drop__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 8vw, 128px); line-height: 0.82; }
.drop__title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #D9DEE6; }
.countdown { display: flex; gap: clamp(10px, 2vw, 24px); }
.countdown div { display: flex; flex-direction: column; gap: 6px; }
.countdown strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; }
.countdown span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.drop .btn--primary { --accent: #D9DEE6; align-self: flex-start; }

/* ---------- Remix (configurateur) ---------- */
.remix { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.remix p { color: var(--muted); font-size: 18px; max-width: 40ch; margin: 22px 0 30px; }
.remix__visual { position: relative; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); background: color-mix(in srgb, var(--accent) 14%, #141416); border: 1px solid var(--line); }
.remix__visual canvas { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.5)); }
.remix__swatches { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.remix__swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 2px solid rgba(242, 239, 233, 0.25); transition: transform 0.3s var(--spring); }
.remix__swatches button:hover { transform: scale(1.15); }
.remix__swatches button.is-active { box-shadow: 0 0 0 3px #0C0C0D, 0 0 0 5px var(--fg); }

/* ---------- Lookbook (pochettes) ---------- */
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cover { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-out), filter 0.6s; filter: grayscale(0.4) contrast(1.05); }
.cover:hover img { scale: 1.07; filter: none; }
.cover::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); pointer-events: none; }
.cover__label { z-index: 1; }
.cover__label { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.cover__label strong { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 0.9; }
.cover__label span { font-family: var(--f-mono); font-size: 11px; padding: 4px 8px; border-radius: 4px; background: var(--c); color: #0C0C0D; }

/* ---------- Liner notes (engagement) ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.note { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.note + .note { padding-left: 24px; border-left: 1px solid var(--line); }
.note__side { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.note h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: 0.9; }
.note p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .player { grid-template-columns: 1fr 1fr; }
  .player__controls { grid-column: 1 / -1; grid-row: 1; }
  .track { grid-template-columns: 44px 1fr auto 30px; }
  .track__meta, .track__img { display: none; }
  .drop, .remix { grid-template-columns: 1fr; }
  .drop__img { inset: 40% 0 0 0; }
  .drop__img::after { background: linear-gradient(180deg, #050506 0%, transparent 60%); }
  .drop { min-height: 760px; }
  .covers { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr; }
  .note + .note { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 640px) {
  .callout { display: none; }
  .np__shoe { width: 92vw; }
  .player { grid-template-columns: 1fr; }
  .player__buy { justify-self: start; align-items: start; }
}
