/* Platine : le site est un disque. Il sort de sa pochette, se pose, et le scroll le fait tourner. */

@font-face {
  font-family: 'Anybody';
  src: url('anybody.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('onest.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@property --fond {
  syntax: '<color>';
  inherits: true;
  initial-value: #14123f;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #ff5a1f;
}

:root {
  --fond: #14123f;
  --accent: #ff5a1f;
  --creme: #fff1dd;
  --vinyle: #0b0b0e;
  --marge: clamp(1.25rem, 4vw, 4rem);
  --disque: min(84vh, 44vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--fond);
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  color: var(--creme);
  background: var(--fond);
  font-family: 'Onest', system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.lumiere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 58% 72% at 70% 52%, var(--accent), transparent 72%);
}

.entete {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--marge);
  font-family: 'Anybody', sans-serif;
  font-stretch: 110%;
  font-weight: 700;
  pointer-events: none;
  background: linear-gradient(var(--fond) 55%, transparent);
}

.entete a {
  pointer-events: auto;
  text-decoration: none;
}

.entete nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-size: 0.9375rem;
}

.entete nav a:hover {
  color: var(--accent);
}

/* La platine */

.platine {
  position: fixed;
  z-index: 5;
  top: 52%;
  left: 70%;
  width: var(--disque);
  height: var(--disque);
  margin: calc(var(--disque) / -2) 0 0 calc(var(--disque) / -2);
}

#spectre {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  pointer-events: none;
}

.disque {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  box-shadow: 0 24px 90px rgb(0 0 0 / 0.55);
}

.disque:active {
  cursor: grabbing;
}

#sillons {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Le reflet reste fixe pendant que le disque tourne : c'est lui qui le rend vrai. */
.reflet {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 18deg, transparent 0 8%, rgb(255 255 255 / 0.13) 13%, transparent 19% 58%, rgb(255 255 255 / 0.1) 63%, transparent 69%);
  -webkit-mask: radial-gradient(circle, transparent 34.5%, #000 35%);
  mask: radial-gradient(circle, transparent 34.5%, #000 35%);
}

.bras {
  position: absolute;
  top: -4%;
  right: -7%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transform: rotate(-9deg);
  pointer-events: none;
  opacity: 0;
}

.bras i {
  position: absolute;
  display: block;
}

.bras .axe {
  left: calc(var(--disque) * -0.05);
  top: calc(var(--disque) * -0.05);
  width: calc(var(--disque) * 0.1);
  height: calc(var(--disque) * 0.1);
  border-radius: 50%;
  background: #d9dbe0;
  box-shadow: inset 0 0 0 calc(var(--disque) * 0.022) #6f7380;
}

.bras .tige {
  left: calc(var(--disque) * -0.006);
  top: 0;
  width: calc(var(--disque) * 0.012);
  height: calc(var(--disque) * 0.68);
  border-radius: 99px;
  background: linear-gradient(90deg, #f3f4f6, #9ca0aa);
  transform: rotate(13deg);
  transform-origin: 50% 0;
}

.bras .tete {
  left: calc(var(--disque) * -0.205);
  top: calc(var(--disque) * 0.645);
  width: calc(var(--disque) * 0.04);
  height: calc(var(--disque) * 0.085);
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(13deg);
}

/* Ouverture : la pochette */

main {
  position: relative;
  z-index: 8;
  pointer-events: none;
}

/* Main passe au-dessus du disque : seules les zones de texte restent cliquables et sélectionnables. */
.pochette,
.ouverture-texte,
.piste,
.notes,
.bonus,
.credits {
  pointer-events: auto;
}

.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 100dvh;
  padding: 4.5rem var(--marge) 2rem;
}

.pochette {
  position: relative;
  z-index: 3;
  width: min(70%, 74vh);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--vinyle);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}

.pochette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pochette figcaption {
  position: absolute;
  inset: 1rem 1.1rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 1rem;
  color: var(--creme);
}

.artiste {
  grid-column: 1 / -1;
  align-self: start;
  font-family: 'Anybody', sans-serif;
  font-size: 0.9375rem;
  font-stretch: 110%;
  font-weight: 700;
}

.album {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

/* Le bas de la pochette tombe sur la chemise blanche : le texte y passe en noir. */
.album,
.face-a {
  color: var(--vinyle);
}

.face-a {
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: right;
}

.ouverture-texte {
  position: relative;
  z-index: 6;
  justify-self: end;
  max-width: 34rem;
}

.nom {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(2.6rem, 0.8rem + 4.6vw, 5.5rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.accroche {
  margin-top: 1rem;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.34;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--vinyle);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s;
}

.bouton:hover {
  transform: scale(1.04);
}

.bouton-creux {
  background: none;
  color: var(--creme);
  box-shadow: inset 0 0 0 2px var(--creme);
}

/* Tracklist */

.tracklist {
  padding-inline: var(--marge);
}

.piste {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 42vw);
  min-height: 100dvh;
  padding-block: 5rem 2.5rem;
}

.piste-haut {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
  font-family: 'Anybody', sans-serif;
  font-stretch: 110%;
  font-weight: 800;
}

.face {
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--vinyle);
}


.titre {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(2.6rem, 0.8rem + 5.6vw, 7rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.94;
  text-transform: uppercase;
  transform-origin: 0 100%;
}

.role {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--accent);
}

.chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 2.5vw, 2.25rem);
  margin-top: 0.9rem;
}

.chiffres div {
  display: flex;
  flex-direction: column-reverse;
}

.chiffres dd {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3.5rem);
  font-stretch: 75%;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.chiffres dt {
  font-size: 0.8125rem;
  font-weight: 600;
}

.suite {
  margin-top: 0.6rem;
  max-width: 40rem;
  opacity: 0.84;
}

.visuel {
  margin-top: 1.5rem;
}

/* Sites : la capture entière, dans sa fenêtre de navigateur. */
.fenetre {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--vinyle);
  color: var(--creme);
  text-decoration: none;
  box-shadow: 0 20px 56px rgb(0 0 0 / 0.42);
}

.fenetre img {
  width: 100%;
}

.barre {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.4fr) 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.8rem;
}

.points {
  display: flex;
  gap: 0.35rem;
}

.points i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgb(255 241 221 / 0.26);
}

.adresse {
  padding: 0.15rem 0.75rem;
  border-radius: 99px;
  background: rgb(255 241 221 / 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.barre svg {
  justify-self: end;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

a.fenetre:hover .adresse {
  background: var(--accent);
  color: var(--vinyle);
}

/* Applications : les écrans entiers, côte à côte, dans un boîtier de téléphone. */
.ecrans {
  --tel: min(19.5vw, 36vh);
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.ecrans figure {
  flex: none;
  width: var(--tel);
  padding: calc(var(--tel) * 0.022);
  border-radius: calc(var(--tel) * 0.15);
  background: var(--vinyle);
  box-shadow: 0 20px 56px rgb(0 0 0 / 0.42);
}

.ecrans img {
  width: 100%;
  border-radius: calc(var(--tel) * 0.13);
}

.lien {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

/* Notes de pochette */

.notes,
.bonus,
.credits {
  position: relative;
  z-index: 8;
  padding: clamp(4rem, 9vw, 8rem) var(--marge);
}

.grand {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(3rem, 1rem + 8vw, 10rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.regles {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.regles li {
  break-inside: avoid;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.etiquette {
  font-family: 'Anybody', sans-serif;
  font-stretch: 100%;
  font-weight: 800;
  color: var(--accent);
}

.regle {
  margin-top: 0.3rem;
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.6rem, 1rem + 1.9vw, 3rem);
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1.02;
}

.sous-titre {
  margin-top: 0.75rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
}

.liste {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--creme);
}

.liste li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 2px solid rgb(255 241 221 / 0.3);
}

.num {
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  color: var(--accent);
}

.liste h3 {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.8rem, 1rem + 2.6vw, 3.5rem);
  font-stretch: 70%;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.liste p {
  margin-top: 0.3rem;
  max-width: 44rem;
  opacity: 0.84;
}

.passion {
  font-weight: 600;
  opacity: 0.8;
}

.outils {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 5rem);
  margin-top: 2rem;
}

.outils li {
  break-inside: avoid;
  padding-bottom: 1rem;
}

.outils span {
  display: block;
  font-family: 'Anybody', sans-serif;
  font-stretch: 100%;
  font-weight: 800;
  color: var(--accent);
}

.credits-contact {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.courriel {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Anybody', sans-serif;
  font-size: 7.4vw;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.courriel:hover {
  color: var(--accent);
}

.mentions {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 60ch;
  font-size: 0.8125rem;
  opacity: 0.72;
}

@media (max-width: 56.2rem) {
  :root {
    --disque: 66vw;
  }

  .entete nav {
    display: none;
  }

  /* Sur téléphone, le disque reste dans l'ouverture et dépasse de la pochette. */
  .platine {
    position: absolute;
    top: 5rem;
    left: 28vw;
    margin: 0;
  }

  .bras {
    display: none;
  }

  .ouverture {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 5rem;
  }

  .pochette {
    width: 70vw;
    z-index: 9;
  }

  /* Sur une ligne, le titre reste sur la chemise. */
  .album {
    white-space: nowrap;
  }

  .face-a {
    display: none;
  }

  .ouverture-texte {
    justify-self: start;
    margin-top: 1.5rem;
  }

  .piste {
    width: 100%;
    min-height: 0;
    padding-block: 3rem;
  }

  .ecrans {
    --tel: calc((100vw - 2 * var(--marge) - 0.75rem) / 2);
  }

  .regles,
  .outils {
    columns: 1;
  }

  .liste li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .passion {
    display: none;
  }

  .courriel {
    font-size: 11vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bras {
    opacity: 1;
  }
}

/* Impression : un CV sobre, sans disque ni captures. */
@media print {
  @page {
    size: A4;
    margin: 13mm 15mm;
  }

  html {
    --fond: #fff !important;
    --accent: #111 !important;
    --creme: #111 !important;
    background: #fff;
  }

  body {
    background: #fff;
    font-size: 10pt;
    line-height: 1.38;
    overflow: visible;
  }

  *,
  *::before,
  *::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .entete,
  .lumiere,
  .platine,
  .pochette,
  .actions,
  .visuel,
  .lien,
  .mentions {
    display: none !important;
  }

  .pin-spacer {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .ouverture {
    position: static !important;
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    min-height: 0;
    padding: 0;
  }

  .ouverture-texte {
    max-width: none;
  }

  .nom {
    font-size: 28pt;
  }

  .nom br {
    display: none;
  }

  .accroche {
    margin-top: 3pt;
    font-size: 10.5pt;
  }

  .tracklist {
    padding: 0;
  }

  .piste {
    display: block;
    width: auto;
    min-height: 0;
    margin-top: 11pt;
    padding: 0;
    break-inside: avoid;
  }

  .piste-haut,
  .face {
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    font-size: 8.5pt;
  }

  .face {
    margin-right: 4pt;
  }

  .titre {
    font-size: 16pt;
    font-stretch: 75%;
  }

  .role {
    margin-top: 0;
  }

  .chiffres {
    margin-top: 2pt;
  }

  .chiffres div {
    flex-direction: row-reverse;
    gap: 4pt;
    align-items: baseline;
  }

  .chiffres dd {
    font-size: 11pt;
  }

  .chiffres dt {
    font-size: 9pt;
  }

  .suite {
    margin-top: 2pt;
    max-width: none;
  }

  .notes,
  .bonus,
  .credits {
    padding: 0;
    margin-top: 16pt;
  }

  .grand {
    font-size: 18pt;
    font-stretch: 75%;
  }

  .regles,
  .outils {
    margin-top: 6pt;
    column-gap: 18pt;
  }

  .regles li {
    padding-bottom: 7pt;
  }

  .regle {
    font-size: 11pt;
  }

  .sous-titre {
    margin-top: 2pt;
    font-size: 10pt;
  }

  .liste {
    margin-top: 6pt;
    border-top: 1pt solid #111;
  }

  .liste li {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    padding-block: 4pt;
    border-bottom: 0.5pt solid #999;
    break-inside: avoid;
  }

  .liste h3 {
    font-size: 11pt;
  }

  .liste p {
    margin-top: 0;
  }

  .passion {
    display: none;
  }

  .outils li {
    padding-bottom: 3pt;
  }

  .credits-contact {
    margin-top: 10pt;
  }

  .courriel {
    font-size: 14pt;
    font-stretch: 75%;
  }
}
