/* ==========================================================
   DSNSKY RECORDZ — Thème « Signal »
   Maquette statique HTML/CSS — à intégrer par Orbyte
   ========================================================== */

/* Polices hébergées en local (aucune requête vers un CDN) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --bar: #111113;
  --line: #26262A;
  --line-2: #3A3A3F;
  --text: #F2F0EB;
  --text-2: #C9C6BF;
  --muted: #9A9893;
  --accent: #FF4D1A;
  --on-accent: #0A0A0B;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --gutter: 32px;
  --player-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}
img { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-top: 72px; padding-bottom: 72px; }

/* ---------- Typo ---------- */
.display, .h1, .h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: -0.02em; }
.h1 { font-stretch: 70%; font-size: clamp(56px, 9vw, 148px); line-height: 0.86; }
.h1--xl { font-stretch: 62%; font-size: clamp(88px, 16vw, 248px); line-height: 0.8; }
.h2 { font-stretch: 75%; font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.01em; }
.mono { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.mono--sm { font-size: 12px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.kicker { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 640px; margin: 0; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-head a, .section-head span { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head span { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { text-decoration: none; font-family: var(--f-display); font-weight: 900; font-stretch: 75%; font-size: 26px; text-transform: uppercase; }
.logo b, .dot { color: var(--accent); font-weight: inherit; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; }
.nav a { text-decoration: none; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a[aria-current="page"] { color: var(--accent); }

.crumbs { padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.crumbs a { text-decoration: none; color: var(--muted); }

/* ---------- Buttons & tags ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid var(--line-2); background: transparent; text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn svg { width: 14px; height: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line-2); padding: 6px 12px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.pill { min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill--accent[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Cover (pochette + secours typographique) ---------- */
.cover { text-decoration: none; position: relative; aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__meta { position: relative; font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cover__title { position: relative; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(32px, 3.4vw, 48px); line-height: 0.86; text-transform: uppercase; }
.cover__bar { width: 72px; height: 6px; background: var(--accent); }
.cover--hero { padding: 28px; }
.cover--hero .cover__title { font-size: clamp(72px, 10vw, 150px); line-height: 0.82; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 72px; padding-bottom: 96px; }
.hero__cover { flex: 1 1 380px; max-width: 540px; }
.hero__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 17px; color: var(--muted); }
.meta-row strong { color: var(--text); font-weight: 400; }

/* ---------- Grids ---------- */
.grid-releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; }
.grid-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 24px; }
.release-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.release-card__title { font-weight: 600; font-size: 16px; }
.release-card__sub { font-size: 14px; color: var(--muted); margin-top: -10px; }
[hidden] { display: none !important; }

/* ---------- Playlist ---------- */
.tracklist { list-style: none; margin: 0; padding: 0; }
.track { width: 100%; display: flex; align-items: center; gap: 20px; padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.track__n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); width: 28px; flex: none; }
.track__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track__title { font-weight: 600; font-size: 17px; }
.track__artists { font-size: 14px; color: var(--muted); }
.track__year { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.track.is-active .track__title { color: var(--accent); }
.round { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer; }
.round svg { width: 12px; height: 12px; }
.is-active .round, .round.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Artist list ---------- */
.artist-list { list-style: none; margin: 0; padding: 0; }
.artist-list a { display: flex; align-items: center; gap: 28px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.artist-list__n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); width: 28px; }
.artist-list__name { flex: 1; font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: clamp(40px, 6vw, 76px); line-height: 1; text-transform: uppercase; }
.artist-list svg { width: 28px; height: 28px; }

/* ---------- Artist page ---------- */
.artist-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.portrait { position: relative; flex: 1 1 360px; max-width: 520px; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 24px; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.motto { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 6px 0 0; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 20px; }
.socials a { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.others { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.others a { text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: 44px; text-transform: uppercase; color: var(--muted); }
.others a:hover { color: var(--accent); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .round { width: 64px; height: 64px; color: var(--accent); background: rgba(10,10,11,.6); }
.video .round svg { width: 18px; height: 18px; }
.video--main .round { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.video--main .round svg { width: 28px; height: 28px; }
.video__off { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.video-card { display: flex; flex-direction: column; gap: 12px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.video-card[disabled] { cursor: not-allowed; opacity: .55; }
.video-card__title { font-weight: 600; font-size: 16px; }
.watch { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.watch__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.watch__side { flex: 1 1 320px; min-width: 0; }
.up-next { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 0; cursor: pointer; }
.up-next__thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.up-next__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up-next.is-active .up-next__thumb { border-color: var(--accent); }
.up-next.is-active .up-next__title { color: var(--accent); }
.up-next__title { font-weight: 600; font-size: 15px; line-height: 1.3; display: block; }
.up-next__sub { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 48px; padding-bottom: 80px; }
.contact__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.info { margin: 0; }
.info > div { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.info dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 16px; }
.form { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; background: var(--surface); border: 1px solid var(--line); padding: 40px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .field span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { margin: 0; }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; border-radius: 0; }
.field input { min-height: 48px; padding: 0 14px; }
.field textarea { padding: 14px; resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status.ok { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.wordmark { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(72px, 15vw, 220px); line-height: 0.82; text-transform: uppercase; letter-spacing: -0.02em; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Lecteur fixe ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bar); border-top: 1px solid var(--line); }
.player .wrap { min-height: var(--player-h); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.player__ctrl { display: flex; gap: 4px; }
.player__btn { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.player__btn svg { width: 16px; height: 16px; }
.player__play { border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.player__now { font-size: 14px; font-weight: 600; min-width: 0; }
.player__now span { color: var(--muted); font-weight: 400; }
.player__bar { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.player__track { flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.player__track i { display: block; width: 100%; height: 2px; background: var(--line-2); }
.player__track b { display: block; width: 0; height: 2px; background: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section > .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 40px; padding-bottom: 64px; gap: 32px; }
  .nav { gap: 18px; }
  .form { padding: 24px; }
  .artist-list a { gap: 16px; }
  .player__bar { order: 3; flex-basis: 100%; }
}
/* Titres géants : ne jamais déborder, même si la police n'est pas encore chargée */
.h1, .h2, .cover__title, .artist-list__name, .others a, .wordmark, .motto, .lead { overflow-wrap: anywhere; }
.hero__body, .artist-body, .contact__intro, .form, .watch__main, .portrait, .hero__cover { min-width: 0; }
@media (max-width: 640px) {
  .h1--xl { font-size: clamp(48px, 14vw, 88px) !important; }
  :root { --player-h: 112px; }
  .player__now { flex: 1 1 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player__now > span:last-child { display: none; }
  .h1 { font-size: clamp(48px, 13vw, 72px); }
  .motto { font-size: 30px; }
  .others a { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Quand la vraie pochette / photo est présente, le bloc typographique de secours est masqué */
.cover:has(img) .cover__meta, .cover:has(img) .cover__title, .cover:has(img) .cover__bar,
.portrait:has(img) > span { visibility: hidden; }
.cover--hero .cover__title { overflow-wrap: normal; font-size: clamp(64px, 8.5vw, 128px); }

/* ---------- Intégration Orbyte : lecteur (barre de progression native) ---------- */

/* Le masquage des filtres doit l'emporter sur les display:flex des cartes. */
[hidden] { display: none !important; }
.player__now { display: flex; align-items: center; gap: 8px; }
.player__now .player__title { color: var(--text); font-weight: 600; }
.player__now img { width: 36px; height: 36px; object-fit: cover; flex: none; }
.player__track { appearance: none; -webkit-appearance: none; width: 100%; height: 24px; background: transparent; border: 0; padding: 0; cursor: pointer; }
.player__track::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
.player__track::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--accent); }
.player__track::-moz-range-track { height: 2px; background: var(--line-2); }
.player__track::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.player__btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .player__now img { display: none; }
}
