/* =========================================================
   DA « bibliothèque musicale » :
   noir vinyle, papier crème, accent mandarine,
   serif éditoriale + chiffres en mono façon tracklist.
   ========================================================= */
@font-face {
  font-family: "Producer";
  src: url("assets/fonts/Producer-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0c0b;
  --bg-2: #17140f;
  --card: #1c1814;
  --paper: #f3ebdd;
  --ink: #15110d;
  --text: #f3ebdd;
  --text-2: #a99e8d;
  --line: rgba(243, 235, 221, .12);
  --accent: #ff5b2e;
  --accent-2: #ffb547;

  --g1: #ff7a4d;   /* genres */
  --g2: #b9a5ff;
  --g3: #7fe0c0;
  --g4: #f5d36b;

  --f-serif: "Producer", "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --player-h: 76px;
}

*, *::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.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--player-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 400; }
p, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* grain papier sur toute la page */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ================= HALO SOURIS ================= */
.halo {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 140, 80, .16) 0%, rgba(255, 91, 46, .06) 40%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s ease, width .3s ease, height .3s ease, margin .3s ease;
}
.halo.is-visible { opacity: 1; }
.halo.is-hover {
  width: 190px; height: 190px; margin: -95px 0 0 -95px;
  background: radial-gradient(circle, rgba(255, 190, 140, .3) 0%, rgba(255, 91, 46, .12) 45%, transparent 70%);
}
@media (hover: none), (prefers-reduced-motion: reduce) { .halo { display: none; } }

/* ================= BARRE DU HAUT ================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s ease, padding .3s ease;
}
.topbar.is-scrolled {
  background: rgba(14, 12, 11, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-serif); font-size: 1.6rem; letter-spacing: -.01em; }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; font-size: .9rem; font-weight: 500; }
.nav a { color: var(--text-2); transition: color .2s ease; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav__cta { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text) !important; }
.nav__cta:hover { background: var(--paper); color: var(--ink) !important; }
@media (max-width: 680px) { .nav a:not(.nav__cta) { display: none; } }

/* ================= HERO ================= */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  min-height: min(calc(100svh - var(--player-h)), 900px);
  padding: 110px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__stage { position: relative; }

/* --- Pochette + vinyle --- */
.record {
  position: relative; margin: 0;
  width: 100%; aspect-ratio: 1.85 / 1;
}
.record__sleeve {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 54%; aspect-ratio: 1;
  background:
    radial-gradient(120% 90% at 0% 0%, #fff7ea 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.25);
  overflow: hidden;
  padding: 7% 7% 6%;
  display: flex; flex-direction: column;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.record__sleeve::after { /* usure du carton */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .42  0 0 0 0 .32  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sleeve__sun {
  position: absolute; right: -18%; bottom: -14%;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent) 55%, #d63a12);
}
.sleeve__ring { /* trace circulaire laissée par le disque */
  position: absolute; left: 8%; top: 8%; width: 84%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(21, 17, 13, .07);
}
.sleeve__artist {
  position: relative; z-index: 1;
  font-family: var(--f-serif); font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: .9; letter-spacing: -.02em;
}
.sleeve__title { position: relative; z-index: 1; margin-top: 10px; font-size: clamp(.7rem, 1.1vw, .9rem); font-weight: 600; }
.sleeve__title em { font-family: var(--f-serif); font-size: 1.35em; font-weight: 400; }
.sleeve__foot {
  position: relative; z-index: 1; margin-top: auto;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: clamp(.55rem, .8vw, .7rem); text-transform: uppercase; letter-spacing: .08em;
}

.record__disc {
  position: absolute; left: 2%; top: 3.7%; z-index: 1;
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  /* position finale par défaut : le disque reste visible même sans animation */
  transform: translateX(88%);
  animation: slide-out 1.4s cubic-bezier(.2,.8,.2,1) .3s both;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
@keyframes slide-out { from { transform: translateX(0); } }
.record:hover .record__sleeve { transform: translateX(-3%) rotate(-1.5deg); }

.record__grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.14) 30deg, rgba(255,255,255,0) 70deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.1) 215deg, rgba(255,255,255,0) 250deg),
    repeating-radial-gradient(circle, #111 0 1px, #1b1b1b 1px 3px),
    #111;
  animation: spin 4s linear infinite;
}
.record__grooves::after { /* bord du disque */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #0a0a0a, inset 0 0 0 5px rgba(255,255,255,.05);
}
@keyframes spin { to { transform: rotate(360deg); } }
.record.is-paused .record__grooves { animation-play-state: paused; }

.record__label { /* étiquette = avatar, ne tourne pas */
  position: absolute; left: 21%; top: 21%; width: 58%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  background: #ffff98; /* même jaune que le fond de l'avatar */
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 7px #111;
}
.record__label img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* --- Infos de l'album --- */
.kicker {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
}
.hero h1 { font-family: var(--f-serif); font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -.02em; margin: 12px 0 14px; }
.hero__sub { font-size: 1.1rem; }
.hero__sub strong { font-weight: 600; }
.hero__pitch { margin-top: 14px; color: var(--text-2); max-width: 520px; }
.hero__meta { margin-top: 18px; font-size: .85rem; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: scale(1.04); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--play { background: var(--accent); color: var(--ink); }
.btn--play:hover { background: #ff7650; }
.btn--outline { border: 1px solid var(--line); }
.btn--outline:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .sleeve__artist { font-size: clamp(1.5rem, 8vw, 3rem); }
  .sleeve__title { font-size: clamp(.62rem, 2.4vw, .9rem); }
  .sleeve__foot { font-size: clamp(.5rem, 1.8vw, .7rem); }
}

/* ================= SECTIONS ================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.section__head { margin-bottom: 40px; }
.section h2 { font-family: var(--f-serif); font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.02em; margin-top: 10px; }
.section h2 em { color: var(--text-2); }
.section__lead { color: var(--text-2); margin-top: 12px; max-width: 620px; }

/* --- Tracklist --- */
.discs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .discs { grid-template-columns: 1fr; } }
.disc__title {
  font-family: var(--f-serif); font-size: 1.7rem;
  padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.disc__title span {
  font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-2); margin-right: 10px; vertical-align: middle;
}
.track {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px;
  padding: 18px 12px; margin: 0 -12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.track:hover { background: rgba(243, 235, 221, .05); }
.track__num { font-family: var(--f-mono); font-size: .9rem; color: var(--text-2); padding-top: 2px; position: relative; }
.track__num b { font-weight: 400; }
.track h4 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.track__artist { font-size: .9rem; color: var(--text-2); margin-top: 2px; }
.track__desc { font-size: .92rem; color: rgba(243, 235, 221, .72); margin-top: 8px; }
.track__time { font-family: var(--f-mono); font-size: .8rem; color: var(--text-2); white-space: nowrap; padding-top: 3px; }
@media (max-width: 560px) {
  .track { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
  .track__time { grid-column: 2; padding-top: 6px; }
}

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 6px; vertical-align: -1px; }
.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.track.is-playing .track__num b { display: none; }
.track.is-playing .eq { margin-left: 0; }
body.is-paused .eq i { animation-play-state: paused; }

.liner {
  margin-top: 30px; padding: 22px 24px;
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  transform: rotate(-.6deg);
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.liner p { font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.35; }
.liner cite { display: block; margin-top: 12px; font-family: var(--f-mono); font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #7a6c5a; }

/* --- Discographie --- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 22px; }
.album { display: flex; flex-direction: column; }
.album__cover {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--c1);
  color: var(--c-ink, var(--ink));
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.album__cover::before { /* motif graphique */
  content: ""; position: absolute; inset: 0;
  background: var(--pattern);
}
.album__cover > * { position: relative; }
.album__cover-title { font-family: var(--f-serif); font-size: 2.1rem; line-height: .95; letter-spacing: -.01em; }
.album__cover-foot { font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; display: flex; justify-content: space-between; }
.album__play {
  position: absolute; right: 14px; bottom: 14px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.album__play svg { width: 22px; height: 22px; fill: currentColor; }
.album:hover .album__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 50px rgba(0,0,0,.55); }
.album:hover .album__play { opacity: 1; transform: none; }
.album.is-upcoming .album__cover { filter: grayscale(.55) brightness(.8); }
.album h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 600; margin-top: 16px; line-height: 1.3; }
.album__meta { font-size: .85rem; color: var(--text-2); margin-top: 2px; }
.album__meta b { color: var(--accent); font-weight: 600; }
.album__desc { font-size: .9rem; color: rgba(243, 235, 221, .72); margin-top: 8px; }
.album .pills { margin-top: 12px; }
.album__link { margin-top: 10px; font-weight: 600; font-size: .88rem; color: var(--accent); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: .78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); }

/* --- Genres --- */
.genres { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.genre {
  position: relative; overflow: hidden;
  min-height: 250px; padding: 22px;
  border-radius: 10px;
  color: var(--ink); background: var(--gc);
  transition: transform .3s ease;
}
.genre:hover { transform: translateY(-4px); }
.genre h3 { font-family: var(--f-serif); font-size: 2rem; margin-bottom: 16px; }
.genre > p { font-size: .85rem; margin-top: 14px; opacity: .75; max-width: 75%; }
.genre .pills li { border-color: rgba(21, 17, 13, .25); background: rgba(255,255,255,.25); }
.genre--1 { --gc: var(--g1); }
.genre--2 { --gc: var(--g2); }
.genre--3 { --gc: var(--g3); }
.genre--4 { --gc: var(--g4); }
.genre__art { /* petite pochette inclinée dans le coin, comme les tuiles de genres */
  position: absolute; right: -18px; bottom: -14px; width: 92px; height: 92px;
  transform: rotate(24deg);
  box-shadow: -6px 8px 20px rgba(0,0,0,.25);
  transition: transform .4s ease;
}
.genre:hover .genre__art { transform: rotate(14deg) translate(-6px, -6px); }
.genre--1 .genre__art { background: radial-gradient(circle at 60% 40%, var(--ink) 0 18%, transparent 19%), repeating-linear-gradient(0deg, #d63a12 0 8px, #ff9a73 8px 16px); }
.genre--2 .genre__art { background: linear-gradient(135deg, #5b3fd6, #ff8fd0); }
.genre--3 .genre__art { background: radial-gradient(circle, #0e6b52 0 30%, #2fbf95 31% 55%, #0e6b52 56%); }
.genre--4 .genre__art { background: conic-gradient(from 45deg, #d68a00, #ff5b2e, #d68a00); }
.levels li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; font-weight: 600; font-size: .95rem; }
.levels em { font-style: normal; font-weight: 500; font-size: .82rem; opacity: .75; }
.level { height: 6px; border-radius: 6px; background: rgba(21, 17, 13, .15); overflow: hidden; }
.level i { display: block; height: 100%; width: var(--v); background: var(--ink); border-radius: inherit; }

.also { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.also ul { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 12px; color: var(--text-2); }
.also li::before { content: "♪"; color: var(--accent); margin-right: 8px; }

/* --- Contact --- */
.contact__title { font-size: clamp(3rem, 9vw, 7.5rem) !important; line-height: .95; }
.contact__title em { color: var(--accent) !important; }
.contact__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.contact__item {
  padding: 18px 22px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 600; word-break: break-word;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.contact__item span { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); margin-bottom: 6px; }
.contact__item:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.contact__item:hover span { color: var(--ink); }

.footer {
  max-width: var(--maxw); margin: clamp(70px, 10vw, 120px) auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-2);
}

/* ================= MINI-LECTEUR ================= */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  height: var(--player-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(14, 12, 11, .88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.player__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover { width: 46px; height: 46px; object-fit: cover; object-position: center; border-radius: 4px; flex: none; }
.player__track { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { font-size: .8rem; color: var(--text-2); }
.player__controls { display: flex; align-items: center; gap: 14px; }
.player__controls button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: color .2s ease, transform .2s ease; }
.player__controls button:hover { color: var(--text); transform: scale(1.08); }
.player__controls svg { width: 20px; height: 20px; fill: currentColor; }
.player__toggle { width: 44px !important; height: 44px !important; background: var(--paper); color: var(--ink) !important; }
.player__toggle .i-play { display: none; }
body.is-paused .player__toggle .i-play { display: block; }
body.is-paused .player__toggle .i-pause { display: none; }
.player__progress { display: flex; align-items: center; gap: 10px; justify-self: end; width: 100%; max-width: 360px; font-family: var(--f-mono); font-size: .72rem; color: var(--text-2); }
.player__progress .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(243, 235, 221, .15); overflow: hidden; }
.player__progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
@media (max-width: 700px) {
  .player { grid-template-columns: minmax(0, 1fr) auto; }
  .player__progress { display: none; }
}

/* ================= APPARITIONS ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .record__disc { transform: translateX(88%); }
  .reveal { opacity: 1; transform: none; }
}

/* ================= PAGE MENTIONS LÉGALES ================= */
.page-legal { padding-bottom: 0; }
.legal { max-width: 820px; padding-top: 140px; }
.legal h1 { font-family: var(--f-serif); font-size: clamp(2.8rem, 7vw, 4.6rem); letter-spacing: -.02em; margin-top: 10px; }
.legal h1 em { color: var(--text-2); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--f-serif); font-size: 1.9rem !important; margin: 0 0 14px !important; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 6px; }
.legal p, .legal li { color: rgba(243, 235, 221, .8); font-size: .97rem; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 14px; }
.legal li { padding: 3px 0 3px 18px; position: relative; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal__updated { margin-top: 20px; font-family: var(--f-mono); font-size: .75rem !important; color: var(--text-2) !important; }
.footer a:hover { color: var(--text); }
.legal .kicker { color: var(--accent); }

/* ================= FORMULAIRE DE CONTACT ================= */
.anchor { display: block; position: relative; top: -90px; }
#contact { scroll-margin-top: 70px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.mailform {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
@media (max-width: 560px) { .mailform { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.field label small { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 200px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 158, 141, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 91, 46, .2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }
.mailform__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mailform__foot .btn { border: 0; cursor: pointer; }
.mailform__status { font-size: .85rem; color: var(--text-2); flex: 1; min-width: 200px; }
.contact__side { display: grid; gap: 14px; }
.contact__note { font-size: .82rem; color: var(--text-2); line-height: 1.5; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mailform { position: relative; }
.mailform__status.is-ok { color: var(--g3); }
.mailform__status.is-error { color: #ff8a7a; }
.mailform__foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ================= INDICATION DE DÉFILEMENT ================= */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--text-2);
  opacity: .7;
  transition: opacity .4s ease, color .2s ease;
}
.scroll-cue:hover { opacity: 1; color: var(--text); }
.scroll-cue i { /* deux petites flèches qui s'allument l'une après l'autre */
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.scroll-cue b {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  opacity: .2;
  animation: scroll-cue 1.6s ease-in-out infinite;
}
.scroll-cue b:nth-child(2) { animation-delay: .2s; }
@keyframes scroll-cue {
  0%, 100% { opacity: .2; translate: 0 -2px; }
  40%      { opacity: 1;  translate: 0 2px; }
}
body.has-scrolled .scroll-cue { opacity: 0; pointer-events: none; }
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* Page 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }


/* =========================================================
   MISE À JOUR : marque, langue, disponibilité, réseaux,
   formulaire (obligatoires + confirmation), mobile
   ========================================================= */

/* --- Marque « maffy.dev » + note --- */
.brand__note { width: 15px; height: 15px; fill: var(--accent); transform: translateY(-6px) rotate(8deg); transition: transform .3s ease; }
.brand:hover .brand__note { transform: translateY(-8px) rotate(-6deg); }

/* --- Bascule de langue --- */
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
}
.lang-toggle span { padding: 4px 9px; border-radius: 999px; color: var(--text-2); transition: background .2s ease, color .2s ease; }
html:not(.is-en) .lang-toggle [data-l="fr"],
html.is-en .lang-toggle [data-l="en"] { background: var(--paper); color: var(--ink); }
.lang-toggle:hover { border-color: rgba(243, 235, 221, .35); }

/* --- Pochette --- */
.sleeve__kicker { position: relative; z-index: 1; font-family: var(--f-mono); font-size: clamp(.55rem, .85vw, .72rem); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 8px; }
.sleeve__title { max-width: 70%; line-height: 1.35; }

/* --- Disponibilité --- */
.availability {
  margin-top: 22px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(243, 235, 221, .03);
  max-width: 520px;
}
.availability__status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.availability__status i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.availability__list { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; margin-top: 12px; }
.availability__list span { display: block; font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.availability__list b { font-weight: 500; font-size: .92rem; }
@media (max-width: 560px) { .availability__list { grid-template-columns: 1fr; } }

/* --- Boutons icônes (LinkedIn, GitHub) --- */
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--paper); color: var(--ink); transform: scale(1.06); }

/* --- Formation / expériences --- */
.tracks--wide { max-width: 860px; }
.discs { align-items: start; }

/* --- Formulaire : champs obligatoires --- */
.req { color: var(--accent); font-weight: 600; }
.mailform__legend { font-size: .82rem; color: var(--text-2); margin-bottom: -4px; }

/* --- Formulaire : confirmation d'envoi --- */
.mailform.is-sent > :not(.mailform__success) { display: none; }
.mailform__success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 10px 4px;
  outline: none;
  animation: success-in .5s cubic-bezier(.2, .8, .2, 1);
}
.mailform__success[hidden] { display: none; }
.mailform__check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #3ddc84; color: var(--ink);
  box-shadow: 0 0 0 8px rgba(61, 220, 132, .15);
}
.mailform__check svg { width: 30px; height: 30px; fill: currentColor; }
.mailform__success h3 { font-family: var(--f-serif); font-size: 2.2rem; margin-top: 6px; }
.mailform__success p { color: rgba(243, 235, 221, .8); max-width: 460px; }
.mailform.is-sent { border-color: rgba(61, 220, 132, .45); background: linear-gradient(160deg, rgba(61, 220, 132, .08), var(--card) 60%); }
@keyframes success-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* --- Pied de page --- */
.footer__links a:hover { color: var(--text); }

/* --- Mobile : pas de mini-lecteur --- */
@media (max-width: 700px) {
  :root { --player-h: 0px; }
  .player { display: none; }
}
@media (max-width: 700px) { .scroll-cue { display: none; } }
.hero .actions { gap: 10px; }
.hero .btn { padding: 0 22px; }
.hero .icon-btn { width: 46px; height: 46px; }

/* --- Projet : pochette + disque en miniature (comme l'accueil) --- */
.album__cover--record {
  --c-ink: var(--text);
  background:
    radial-gradient(90% 70% at 30% 40%, rgba(255, 91, 46, .18), transparent 70%),
    var(--bg-2);
  justify-content: center;
}
.album__cover--record::before { display: none; }
.album__cover--record .album__cover-foot { position: absolute; left: 16px; right: 16px; bottom: 14px; color: var(--text-2); }
.record--mini { width: 92%; margin: 0 auto 10px; }
.record--mini .record__sleeve { padding: 9% 8%; box-shadow: 0 14px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.25); }
.record--mini .sleeve__kicker { font-size: .48rem; letter-spacing: .16em; margin-bottom: 4px; }
.record--mini .sleeve__artist { font-size: 1.45rem; }
.record--mini .record__label { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px #111; }
.album:hover .record--mini .record__sleeve { transform: translateX(-3%) rotate(-1.5deg); }
body.is-paused .record__grooves { animation-play-state: paused; }

/* --- Animations de lecture --- */
/* Égaliseur devant le numéro de section : il « joue » quand la section est à l'écran */
.kicker .eq { height: 11px; margin: 0 10px 0 0; vertical-align: 0; }
.kicker .eq i { animation-play-state: paused; height: 4px; }
.section.is-current .kicker .eq i { animation-play-state: running; }
body.is-paused .section.is-current .kicker .eq i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .kicker .eq i:nth-child(odd) { height: 9px; } }

/* Bouton lecture au survol d'une ligne du parcours */
.track__num b { transition: color .15s ease; }
.track:hover .track__num b { color: transparent; }
.track:hover .track__num b::before {
  content: ""; position: absolute; left: 1px; top: 4px;
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--accent);
}

/* ================= PORTÉES EN FOND ================= */
/* Décor très discret : lignes de portée ondulées derrière le contenu */
body { position: relative; isolation: isolate; }
/* Les portées couvrent toute la page et défilent avec le contenu.
   L'ondulation (vague de gauche à droite) est animée dans assets/staves.svg. */
.staves {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/staves.svg") center 40px / 1600px auto repeat-y;
  opacity: .07;
  /* fondu sur les bords pour ne pas encadrer la page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
@media (max-width: 700px) { .staves { background-size: 1100px auto; opacity: .13; } }

/* --- Indication de longueur du message --- */
.field__hint { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.field__count { font-family: var(--f-mono); font-size: .72rem; }
.field__count.is-ok { color: #3ddc84; }
