/* ===========================================================================
   Temporal Dissonance — feuille de style unique
   Thème : bleu uni #65bbf2, texte blanc, typo techno (Orbitron).
   =========================================================================== */

/* --- Polices ------------------------------------------------------------- */
@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-latin.woff2") format("woff2");
  font-weight: 400 900;        /* police variable */
  font-style: normal;
  font-display: swap;
}

/* OPTION TR-909 : dépose assets/fonts/tr-909.woff2, décommente ce bloc, puis
   passe --font-display à "TR-909" plus bas, si la licence est obtenue.
@font-face {
  font-family: "TR-909";
  src: url("../fonts/tr-909.woff2") format("woff2");
  font-display: swap;
}
*/

/* --- Variables ----------------------------------------------------------- */
:root {
  --blue: #65bbf2;
  --white: #ffffff;
  --font-display: "Orbitron", system-ui, sans-serif;   /* ← mets "TR-909", ... pour basculer */
  --wrap: 1000px;        /* largeur du couloir central */
  --gap: 22px;
}

/* --- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Couloir central étroit, centré, sans bordure visible. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Bouton outline (CONTACT, READ MORE, plateformes, retour) ------------ */
.btn {
  display: inline-block;
  border: 1.5px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-indent: .09em;   /* compense la moitié de l'espace de letter-spacing en fin de texte (centrage) */
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--white); color: var(--blue); outline: none; }

/* --- Navigation (commune) ----------------------------------------------- */
.nav {
  display: flex;
  gap: 38px;
  align-items: center;
}
.nav a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 600;
}
/* Astérisque (span réel) — même style que le « * » sous le logo de la home.
   Plus grand, centré verticalement, révélé sans décaler la mise en page. */
.ast {
  position: absolute;
  left: -0.95em;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.4em;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.nav a:hover .ast,
.nav a:focus-visible .ast { opacity: 1; }

/* --- Header de la landing ----------------------------------------------- */
.site-header {
  display: flex;
  justify-content: flex-end;
  padding-top: 26px;
}

/* --- Header des pages release (logo + longue ligne + nav) --------------- */
.release-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 0 24px;
  margin-bottom: 34px;
}
.release-header .brand { flex: none; }
.release-header .brand-logo { width: 168px; }
.release-header .nav { margin-left: auto; position: relative; z-index: 1; }
/* La ligne part après le logo et file jusqu'au bord droit, sous la nav. */
.release-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 58%;
  width: calc(100% - 215px);
  border-top: 1.5px solid var(--white);
}

/* --- Hero (logo) --------------------------------------------------------- */
.hero { text-align: center; padding: 56px 0 10px; }

.hero .logo {
  width: min(560px, 78%);
  margin: 0 auto;
}

.sep {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .3em;
  margin: 40px 0 60px;
  opacity: .9;
}

/* --- Texte de présentation (animé au scroll) ---------------------------- */
.intro { max-width: 760px; margin: 0 auto 90px; text-align: center; }

.intro p {
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.9;
  font-size: clamp(.82rem, 1.6vw, 1.02rem);
  font-weight: 500;
  margin: 0 0 2.2em;

  /* état initial avant révélation au scroll (fade lent) */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}
.intro p.is-visible { opacity: 1; transform: none; }

/* --- Séparateur + filtres du catalogue ---------------------------------- */
/* Masqué tant que le JS n'a pas rendu intro + grille, pour éviter le saut
   d'affichage au chargement (le séparateur apparaissait sous le logo). */
.catalog-section { scroll-margin-top: 20px; opacity: 0; transition: opacity .4s ease; }
body.ready .catalog-section { opacity: 1; }

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-top: 1.5px solid var(--white);
  padding: 14px 2px 22px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 600;
}
.filters { display: flex; gap: 30px; }
.filter {
  position: relative;
  background: none;
  border: 0;
  color: var(--white);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  opacity: .75;
  transition: opacity .18s ease;
}
.filter:hover { opacity: 1; }
.filter.active { opacity: 1; }
.filter.active .ast { opacity: 1; }   /* astérisque = filtre sélectionné */

/* --- Grille catalogue ---------------------------------------------------- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-bottom: 100px;
}

.card { display: block; }

/* La jaquette + l'overlay vivent dans ce conteneur : le survol n'affecte
   donc QUE l'image, jamais le texte (artiste / titre / date) en dessous. */
.card-cover { position: relative; }

.card .cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, .12);
  display: block;
}

.card .meta {
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  line-height: 1.6;
  font-weight: 500;
}
.card .meta .artist { font-weight: 700; }
/* Date / « RELEASE SOON » : légèrement moins blanc (comme un filtre non sélectionné). */
.card .meta .date,
.card .meta .soon { display: inline-block; margin-top: 2px; opacity: .72; }

/* Bouton READ MORE révélé au survol de la jaquette (desktop). */
.card .reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 187, 242, .55);
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover .reveal,
.card:focus-visible .reveal { opacity: 1; }

/* --- Page de release ----------------------------------------------------- */
.release { padding: 30px 0 100px; }

.release-left { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.release .back { align-self: flex-start; }

.release-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.release-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.release h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 4px;
}
.release .artist {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  margin: 0 0 18px;
  opacity: .9;
}
.release .date {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  margin: 0 0 28px;
  opacity: .72;
}
.release .desc {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  line-height: 1.8;
  font-size: .98rem;
  white-space: pre-line;        /* respecte les paragraphes du .txt */
  margin: 0 0 34px;
}
.release .platforms { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Tracklist (pleine largeur, sous la fiche) -------------------------- */
.tracklist {
  margin-top: 56px;
  border-top: 1.5px solid var(--white);
}
.track {
  display: grid;
  grid-template-columns: 60px 1fr auto 44px;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .4);
}
.t-pos {
  font-family: var(--font-display);
  letter-spacing: .08em;
  font-size: .9rem;
  opacity: .72;
}
.t-title {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
}
.t-dur {
  font-family: var(--font-display);
  letter-spacing: .06em;
  font-size: .82rem;
  opacity: .72;
  white-space: nowrap;
}
.t-play {
  display: flex;
  justify-content: flex-end;
  color: var(--white);
}
.t-play .play-ico { width: 22px; height: 22px; display: block; }
.t-play--off { opacity: .55; }
a.t-play { transition: opacity .15s ease; }
a.t-play:hover { opacity: .65; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .release-grid { grid-template-columns: 280px 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr; }
  .release-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero .logo { width: 90%; }
  /* Pas de hover tactile : la carte reste simplement cliquable, READ MORE discret. */
  .card .reveal { position: static; inset: auto; opacity: 1; background: none; justify-content: flex-start; margin-top: 10px; }
  /* Header release : logo réduit + ligne raccourcie. */
  .release-header { padding: 14px 0 18px; }
  .release-header .brand-logo { width: 120px; }
  .release-header .nav { gap: 22px; }
  .release-header::after { width: calc(100% - 150px); top: 60%; }
  /* Tracklist : colonnes resserrées. */
  .track { grid-template-columns: 40px 1fr auto 34px; gap: 12px; }
  .t-play .play-ico { width: 18px; height: 18px; }
}
