/* ═══════════════════════════════════════════════════════════════
   TRACKLIST — STYLESHEET
   Fonts: bc-novatica-cyr (display/headings) · neue-haas-unica (body/UI)
   Both loaded via Adobe Fonts: https://use.typekit.net/max7mrn.css
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:             #141414;
  --surface:        #1e1e1e;
  --surface-hi:     #272727;
  --border:         #333333;
  --text:           #f0f0f0;
  --text-muted:     #5f5f5f;
  --text-dim:       #868686;
  --progress-bg:    #2a2a2a;
  --progress-fill:  #d0d0d0;
  --error:          #ff6b6b;
  --success:        #a8e6a3;

  /* Shape */
  --radius-card:    18px;
  --radius-btn:     999px;

  /* Typography */
  --font-primary:   'bc-novatica-cyr', sans-serif;   /* Display / headings / UI labels */
  --font-secondary: 'neue-haas-unica', sans-serif;   /* Body / subtitles / inputs */

  /* Motion */
  --transition:     200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TYPOGRAPHIC SCALE ──────────────────────────────────────────
   Hierarchy (largest → smallest):

   T1 · Page title          bc-novatica  700  clamp(48px→72px)  tight tracking
   T2 · DJ name (submit)    bc-novatica  600  clamp(36px→52px)  tight tracking
   T3 · Section heading     bc-novatica  600  22–28px           tight tracking
   T4 · Card DJ name        bc-novatica  600  15px              tight tracking
   T5 · UI label / button   bc-novatica  500  13–14px           tight tracking
   T6 · Nav link            bc-novatica  500  17px              tight tracking

   B1 · Body / about text   neue-haas    400  15px              normal
   B2 · Tags / subtitles    neue-haas    400  13px              normal
   B3 · Form inputs         neue-haas    400  14px              normal
   B4 · Labels / errors     neue-haas    400  11px              wide tracking
   B5 · Footer / legal      neue-haas    400  10px              wide tracking
──────────────────────────────────────────────────────────────── */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
nav.scrolled { border-color: var(--border); }

/* T1 — Logo */
.nav-logo {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

/* T6 — Nav link */
.nav-link {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

/* ── PAGES ───────────────────────────────────────────────────── */
.page { display: none; flex: 1; flex-direction: column; }
.page.active { display: flex; }

/* ── HOME ────────────────────────────────────────────────────── */
#page-home {
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  flex: 1;
}

.tracklist-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease both;
}

.tracklist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  animation: fadeUp 0.5s ease both;
}
.tracklist-card:nth-child(2) { animation-delay: 0.07s; }
.tracklist-card:nth-child(3) { animation-delay: 0.14s; }

/* Progress bar */
.progress-wrap {
  width: 100%;
  margin-bottom: 16px;
  height: 5px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card body */
.card-body {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.card-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-placeholder {
  width: 100%; height: 100%;
  background: #3a3a3a;
}

/* Full overlay */
.card-full-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

/* T3 — "Tracklist complète" overlay label */
.card-full-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  padding: 0 16px;
  line-height: 1.25;
  height: 21px;
}

/* Card info */
.card-info {
  margin-top: 14px;
  text-align: center;
  width: 100%;
}

/* T4 — Card DJ name */
.dj-name {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.2;
}

/* B2 — Tags */
.dj-tags {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
}

/* Card CTA */
.card-cta {
  margin-top: 20px;
  width: 100%;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* T5 — Button label */
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 12px 20px;
  width: 100%;
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}
.btn-outline:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-solid {
  border: none;
  background: var(--text);
  color: var(--bg);
  padding: 13px 32px;
}
.btn-solid:hover { background: #d4d4d4; }

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 12px 24px;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Counter badge inside button */
.btn-counter {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* T5 — Sent label (replaces button when maxed) */
.sent-label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
}

/* ── SUBMIT PAGE ─────────────────────────────────────────────── */
#page-submit {
  padding: 0 40px 80px;
  flex: 1;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* B4 — small nav label */
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  /*margin-bottom: 60px;*/
  transition: color var(--transition);
  border: none;
  background: none;
  padding: 16px 0;
}
.back-btn:hover { color: var(--text); }
.back-arrow { font-size: 13px; }

/* Submit header */
.submit-header {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeUp 0.4s ease both;
}

.submit-progress-wrap {
  width: 240px;
  height: 5px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 28px;
}

/* Nom de tracklist sur la carte home */
.tracklist-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.15;
}

/* Page submit — nom de tracklist */
.submit-tracklist-name {
  font-family: var(--font-primary);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  /*margin-bottom: 10px;*/
}

/* Page submit — nom DJ (réduit, gris) */
#submit-dj-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
  /*margin-bottom: 12px;*/
}

/* Page submit — bio DJ */
.submit-dj-bio {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1;
  max-width: 420px;
  margin: 0 auto 16px;
}

/*Page submit — tags (sous la bio)
#submit-dj-tags {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}*/

/*T2 — DJ name large
.submit-dj-name {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}*/

/* B2 — DJ tags on submit */
.submit-dj-tags {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

/* B4 — Limit note */
.submit-limit-note {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── FORM ────────────────────────────────────────────────────── */
.submit-form {
  max-width: 560px;
  margin: 0 auto;
  animation: fadeUp 0.4s 0.08s ease both;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.form-group.full { grid-column: 1 / -1; }

/* B4 — Form label */
.form-label {
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-label .optional {
  color: var(--text-dim);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* B3 — Form input */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 10px 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--text-muted); }
.form-input.error { border-color: var(--error); }

/* B5 — Field error */
.field-error {
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--error);
  min-height: 15px;
}

/* Pseudo tooltip */
.pseudo-info {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-dim);
  cursor: help;
  font-size: 12px;
}
.pseudo-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  /* B4 */
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  width: 220px;
  z-index: 10;
  line-height: 1.6;
}
.pseudo-info:hover .pseudo-tooltip { display: block; }

/* Track counter */
.track-counter {
  text-align: center;
  /* T3 variant — numeric counter */
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 36px 0;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ── CONFIRMATION STATE ──────────────────────────────────────── */
.confirmation-block {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.35s ease both;
}

.confirmation-icon {
  font-size: 28px;
  /*margin-bottom: 24px;*/
  color: var(--text-muted);
}

/* T3 — Confirmation title */
.confirmation-title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.1;
}

/* B1 — Track name */
.confirmation-track {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

/* B4 — Sub note */
.confirmation-sub {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 44px;
  font-style: italic;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.confirmation-actions .btn { min-width: 300px; }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
#page-about {
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  flex: 1;
  text-align: center;
}

.about-content {
  max-width: 520px;
  animation: fadeUp 0.4s ease both;
}

/* T1 — About title */
.about-title {
  font-family: var(--font-primary);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 36px;
}

/* B1 — About body */
.about-text {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.85;
  color: var(--text-muted);
}
.about-text p { margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  /* B5 — Legal / footer */
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 20px 24px; }
  .nav-logo { font-size: 24px; }
  .nav-link  { font-size: 14px; }

  #page-home { padding: 40px 24px; }
  .tracklist-grid { gap: 48px; }
  .tracklist-card { width: 100%; max-width: 300px; }

  #page-submit { padding: 0 24px 60px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }

  #page-about { padding: 48px 24px; }

  footer { padding: 20px 24px; }
}