/*/////////////////////////////////////////////////////////////////
//////////////   ∞ POSITRON — HOME / SÉLECTION D'EP   /////////////
/////////////////////////////////////////////////////////////////

  Convention rem : html = 10px, donc 1rem = 10px, 1.6rem = 16px.

  Sommaire
    01. RESET & BASE
    02. TOKENS
    03. ANIMATIONS
    04. FONDS FIXES (champ de particules, filtre, scanlines)
    05. BARRE HAUTE (marque + langue)
    06. SCÈNES DE SCROLL (structure commune)
    07. SCÈNE 1 — TITRE EN PARTICULES
    08. SCÈNE 2 — DÉFINITION + EMBLÈME (effet Tron)
    09. SCÈNE 3 — TUNNEL + CARTES D'EP
    10. RESPONSIVE
/////////////////////////////////////////////////////////////////*/


/*/////////////////////////////////////////////////////////////////
////////////////////////   01. RESET & BASE   /////////////////////
/////////////////////////////////////////////////////////////////*/

html {
  font-size: 10px;                 /* 1rem = 10px */
  background: #000;
  scroll-snap-type: y proximity;   /* ancre chaque scène */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #f2f2f2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  -webkit-font-smoothing: antialiased;
}

a       { color: #f2f2f2; text-decoration: none; }
a:hover { color: #fff; }

*::-webkit-scrollbar { width: 0; height: 0; }


/*/////////////////////////////////////////////////////////////////
///////////////////////////   02. TOKENS   ///////////////////////
/////////////////////////////////////////////////////////////////*/

.hp {
  --hp-accent:     #3fe8bd;        /* accent de l'EP mis en avant */
  --hp-ink:        #f2f2f2;
  --hp-ink-soft:   rgba(255, 255, 255, .8);
  --hp-ink-mute:   rgba(255, 255, 255, .55);
  --hp-ink-faint:  rgba(255, 255, 255, .45);
  --hp-line:       rgba(255, 255, 255, .22);

  --hp-mono:       'IBM Plex Mono', monospace;
  --hp-display:    Anton, Impact, sans-serif;

  --hp-gutter:     clamp(2rem, 4vw, 4.4rem);
  --hp-pill:       99.9rem;

  position: relative;
  background: #000;
  color: var(--hp-ink);
}


/*/////////////////////////////////////////////////////////////////
/////////////////////////   03. ANIMATIONS   /////////////////////
/////////////////////////////////////////////////////////////////*/

/* invitation à scroller : respiration de l'opacité et du tracking */
@keyframes hp-pulse {
  0%, 100% { opacity: .35; letter-spacing: .34em; }
  50%      { opacity: 1;   letter-spacing: .4em; }
}


/*/////////////////////////////////////////////////////////////////
////////////////////////  04. FONDS FIXES  ///////////////////////
/////////////////////////////////////////////////////////////////*/

.hp-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.hp-bg--field { z-index: 0; }

/* désature et assombrit les particules pour que le texte reste lisible */
.hp-bg--filter {
  z-index: 1;
  backdrop-filter: grayscale(1) brightness(.62) blur(.4px);
  background: radial-gradient(120% 90% at 50% 55%,
              rgba(0, 0, 0, .32) 0%,
              rgba(0, 0, 0, .62) 58%,
              rgba(0, 0, 0, .86) 100%);
}
.hp-bg--scan {
  z-index: 2;
  opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
}


/*/////////////////////////////////////////////////////////////////
////////////////////////  05. BARRE HAUTE  ///////////////////////
/////////////////////////////////////////////////////////////////*/

.hp-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6rem var(--hp-gutter);
}

.hp-wordmark {
  font: 400 1.3rem/1 var(--hp-mono);
  letter-spacing: .16em;
  mix-blend-mode: difference;      /* reste lisible sur fond clair ou sombre */
}

.hp-lang        { display: flex; align-items: center; gap: .6rem; }
.hp-lang__btn {
  padding: .9rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--hp-pill);
  background: transparent;
  color: rgba(255, 255, 255, .65);
  font: 500 1rem/1 var(--hp-mono);
  letter-spacing: .14em;
  cursor: pointer;
}
.hp-lang__btn.is-active { background: #fff; border-color: #fff; color: #000; }


/*/////////////////////////////////////////////////////////////////
//////////////////  06. SCÈNES DE SCROLL  ////////////////////////
/////  Chaque scène = une piste haute + un panneau sticky.    /////
/////  La hauteur de piste détermine la durée de l'animation. /////
/////////////////////////////////////////////////////////////////*/

.hp-scenes { position: relative; z-index: 3; }

.hp-scene            { position: relative; }
.hp-scene--hero      { height: 280vh; }
.hp-scene--def       { height: 250vh; }
.hp-scene--tunnel    { height: 300vh; }

/* point d'ancrage invisible : cale le scroll sur l'état "construit" */
.hp-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-snap-align: start;
}
.hp-anchor--hero    { top: calc(50% - 50vh); }
.hp-anchor--def     { top: calc(62% - 62vh); }
.hp-anchor--tunnel  { top: calc(72% - 72vh); }

.hp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


/*/////////////////////////////////////////////////////////////////
///////////  07. SCÈNE 1 — TITRE EN PARTICULES  //////////////////
/////////////////////////////////////////////////////////////////*/

.hp-hero { position: relative; text-align: center; }

.hp-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 400 1.2rem/1 var(--hp-mono);
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 0 2.6rem rgba(255, 255, 255, .5);
  animation: hp-pulse 2.6s ease-in-out infinite;
}

/* les lettres sont animées une par une (opacité, flou, dérive) par la logique */
.hp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .02em;
  margin: 0;
  font-family: var(--hp-display);
  font-weight: 400;
  font-size: clamp(5.2rem, 11vw, 15rem);
  line-height: .86;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
}
.hp-title__space { width: .28em; }


/*/////////////////////////////////////////////////////////////////
/////////  08. SCÈNE 2 — DÉFINITION + EMBLÈME (TRON)  ////////////
/////////////////////////////////////////////////////////////////*/

.hp-def-stage {
  gap: clamp(2rem, 4vw, 6rem);
  padding: 0 clamp(2.2rem, 6vw, 9rem);
}

/* emblème : se construit du bas vers le haut, puis se déconstruit */
.hp-build {
  position: relative;
  flex: 0 0 auto;
  width: min(68rem, 50vw, 82vh);
  margin-left: clamp(0rem, 4vw, 8rem);
  aspect-ratio: 1;
  opacity: 0;
}
.hp-build__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.12);
}
.hp-build__scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 4px);
}
.hp-build__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: .2rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 2.6rem .6rem rgba(255, 255, 255, .55);
  pointer-events: none;
}

/* bloc texte, légèrement incliné pour donner la profondeur du décor */
.hp-crest {
  width: min(43rem, 52vw);
  min-width: 25rem;
  align-self: flex-start;
  margin-top: 16vh;
  transform: perspective(90rem) rotateX(4deg) rotateY(-7deg);
}
.hp-crest__word {
  font: 500 1.5rem/1.6 var(--hp-mono);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
}
.hp-crest__ipa {
  margin-top: .6rem;
  font: 400 1.2rem/1.5 var(--hp-mono);
  letter-spacing: .08em;
  color: var(--hp-ink-mute);
}
.hp-crest__rule {
  width: 7.8rem;
  height: 1px;
  margin: 1.6rem 0;
  background: rgba(255, 255, 255, .3);
}
.hp-crest__body {
  font: 400 1.25rem/1.9 var(--hp-mono);
  color: var(--hp-ink-soft);
  text-wrap: pretty;
}


/*/////////////////////////////////////////////////////////////////
/////////////  09. SCÈNE 3 — TUNNEL + CARTES D'EP  ///////////////
/////////////////////////////////////////////////////////////////*/

.hp-tunnel {
  flex-direction: column;
  gap: clamp(1.4rem, 2.5vh, 3rem);
  padding: 9vh clamp(2.2rem, 6vw, 8rem) 6vh;
}

.hp-tunnel__head { flex: none; text-align: center; }
.hp-tunnel__title {
  margin: 0;
  font-family: var(--hp-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 3.4vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: pre-line;
  color: #fff;
  text-shadow: 0 0 3.6rem rgba(255, 255, 255, .3);
}
.hp-tunnel__lede {
  max-width: 42rem;
  margin-top: 1rem;
  font: 400 1.1rem/1.6 var(--hp-mono);
  color: var(--hp-ink-mute);
  text-wrap: pretty;
}

/* les cartes arrivent de loin : échelle et opacité pilotées par le scroll */
.hp-cards {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 3.2rem);
  will-change: transform, opacity;
}
.hp-cards > * { width: min(32rem, 80vw, 34vh); }
.hp-card__link {
  display: block;
  padding: 1.3rem 1.3rem 1.8rem;
  border: 1px solid var(--hp-line);
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(.3rem);
  transition: border-color .35s, background .35s, box-shadow .35s;
}
/* au survol, le contour et le halo prennent la couleur de l'EP */
.hp-card__link:hover {
  border-color: var(--hp-card-accent, #fff);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 6rem rgba(255, 255, 255, .22);
}
/* pochette en fond : aucune requête tant que le catalogue n'est pas lu */
.hp-card__art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0b0b0b center / cover no-repeat;
}
.hp-card__body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.4rem;
}
.hp-card__meta {
  font: 400 .9rem/1 var(--hp-mono);
  letter-spacing: .26em;
  color: var(--hp-ink-faint);
}
.hp-card__title {
  /* flex : les retours à la ligne du template ne créent pas d'espaces */
  display: flex;
  align-items: baseline;
  font-family: var(--hp-display);
  font-size: 3.2rem;
  line-height: .95;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
}
.hp-card__digit { font-size: .62em; }   /* chiffres d'une formule chimique */
.hp-card__molecule {
  font: 500 1rem/1 var(--hp-mono);
  letter-spacing: .18em;
  color: var(--hp-accent);
}
.hp-card__cta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: .8rem;
  font: 500 1rem/1 var(--hp-mono);
  letter-spacing: .2em;
  color: #fff;
}
.hp-card__cta span { font-size: 1.2rem; }


/*/////////////////////////////////////////////////////////////////
///////////////////////   10. RESPONSIVE   ///////////////////////
/////  Sous 820px la scène "définition" passe en colonne :    /////
/////  emblème au-dessus, texte dessous, sans inclinaison.    /////
/////////////////////////////////////////////////////////////////*/

@media (max-width: 820px) {
  .hp-def-stage {
    flex-direction: column;
    gap: 2.6rem;
    padding: 0 2.2rem;
  }
  .hp-build {
    width: min(68vw, 42vh);
    margin-left: 0;
  }
  .hp-crest {
    width: 100%;
    min-width: 0;
    align-self: stretch;
    margin-top: 0;
    transform: none;
  }
}
