/* ============================================================
   VEGETIMES — style.css
   Identité : néon classe. Violet → rose pour la marque,
   cyan réservé aux données musicales (BPM, tonalité, temps).
   Display : Unbounded · Texte : Space Grotesk · Data : Space Mono
   ============================================================ */

:root {
  --bg: #08060d;
  --bg-2: #0e0a18;
  --ink: #f4f2fa;
  --muted: #9a94b8;
  --line: rgba(244, 242, 250, 0.09);
  --surface: rgba(244, 242, 250, 0.035);
  --surface-2: rgba(244, 242, 250, 0.06);

  --violet: #a44bff;
  --rose: #ff3d81;
  --cyan: #35e0ff;

  --grad: linear-gradient(92deg, var(--violet), var(--rose));
  --glow-violet: 0 0 22px rgba(164, 75, 255, 0.45), 0 0 70px rgba(164, 75, 255, 0.18);
  --glow-rose: 0 0 22px rgba(255, 61, 129, 0.4), 0 0 70px rgba(255, 61, 129, 0.15);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --radius: 16px;
  --nav-h: 72px;
  --player-h: 92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body.has-player { padding-bottom: calc(var(--player-h) + 20px); }

::selection { background: rgba(164, 75, 255, 0.45); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambiance de fond ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(164, 75, 255, 0.16), transparent 60%),
    radial-gradient(800px 520px at 95% 8%, rgba(255, 61, 129, 0.12), transparent 60%),
    radial-gradient(700px 700px at 50% 115%, rgba(53, 224, 255, 0.07), transparent 55%),
    var(--bg);
}
.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 242, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 250, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; left: -140px; top: 8%; background: rgba(164, 75, 255, 0.35); }
.orb-2 { width: 360px; height: 360px; right: -120px; top: 34%; background: rgba(255, 61, 129, 0.28); animation-delay: -8s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 60px, 0) scale(1.12); }
}

.container { width: min(1160px, 92vw); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 6, 13, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1160px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.logo em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow-rose);
}
.nav-cta { display: inline-flex; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-neon {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 61, 129, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(164, 75, 255, 0.45); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(53, 224, 255, 0.5); box-shadow: 0 0 18px rgba(53, 224, 255, 0.15); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.btn-danger {
  border-color: rgba(255, 90, 90, 0.35);
  background: rgba(255, 70, 70, 0.08);
  color: #ff9c9c;
}
.btn-danger:hover { border-color: rgba(255, 90, 90, 0.7); box-shadow: 0 0 16px rgba(255, 70, 70, 0.2); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 10px 0 14px;
}
.section-sub { color: var(--muted); max-width: 560px; }

.mono { font-family: var(--font-mono); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 0px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative;
}
.hero-inner { width: 100%; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  background: var(--surface);
  animation: fadeUp 0.8s 0.1s both;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px var(--rose);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 10.5vw, 128px);
  letter-spacing: 0.015em;
  line-height: 1.02;
  margin: 26px 0 8px;
  background: linear-gradient(96deg, #fff 5%, var(--violet) 45%, var(--rose) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 26px rgba(164, 75, 255, 0.5))
    drop-shadow(0 0 90px rgba(255, 61, 129, 0.25));
  animation: fadeUp 0.9s 0.25s both;
}

/* Signature : la waveform néon sous le titre */
.hero-wave {
  width: min(620px, 82vw);
  margin: 4px auto 22px;
  display: block;
  animation: fadeUp 0.9s 0.45s both;
}
.hero-wave path {
  fill: none;
  stroke: url(#waveGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 61, 129, 0.65));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s 0.55s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 0 auto 36px;
  animation: fadeUp 0.9s 0.55s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.7s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Bandeau défilant (genres) ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: rgba(14, 10, 24, 0.5);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(164, 75, 255, 0.55);
  white-space: nowrap;
}
.marquee span.solid { color: var(--rose); -webkit-text-stroke: 0; text-shadow: 0 0 16px rgba(255, 61, 129, 0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { margin-bottom: 42px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Grille de prods ---------- */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.beat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.beat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(164, 75, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), var(--glow-violet);
}
.beat-card.playing { border-color: rgba(255, 61, 129, 0.65); box-shadow: var(--glow-rose); }

.beat-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(164, 75, 255, 0.35), rgba(255, 61, 129, 0.25) 55%, rgba(53, 224, 255, 0.2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.beat-cover img { width: 100%; height: 100%; object-fit: cover; }
.beat-cover .initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  color: rgba(244, 242, 250, 0.28);
  letter-spacing: 0.05em;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 6, 13, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.25s, box-shadow 0.25s;
}
.play-btn svg { width: 24px; height: 24px; fill: currentColor; }
.beat-card:hover .play-btn,
.beat-card.playing .play-btn,
.play-btn:focus-visible { opacity: 1; transform: scale(1); }
.play-btn:hover { box-shadow: var(--glow-rose); border-color: var(--rose); }

.beat-body { padding: 18px 18px 20px; }
.beat-title { font-weight: 700; font-size: 17.5px; margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 255, 0.3);
  background: rgba(53, 224, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}
.chip.style { color: var(--muted); border-color: var(--line); background: var(--surface); }

.beat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Filtre (page Écouter) ---------- */
.filter-bar { position: relative; max-width: 380px; width: 100%; }
.filter-bar input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar input:focus { outline: none; border-color: rgba(53, 224, 255, 0.6); box-shadow: 0 0 16px rgba(53, 224, 255, 0.15); }
.filter-bar svg {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  stroke: var(--muted);
}

/* ---------- Player fixe ---------- */
.player {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 140%);
  width: min(1120px, 94vw);
  height: var(--player-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1px solid rgba(164, 75, 255, 0.35);
  background: rgba(14, 10, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(164, 75, 255, 0.12);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.player.visible { transform: translate(-50%, 0); }

.player-cover {
  width: 54px; height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(164, 75, 255, 0.4), rgba(255, 61, 129, 0.3));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: rgba(244, 242, 250, 0.4);
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }

.player-meta { min-width: 0; width: 180px; flex-shrink: 0; }
.player-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info { font-family: var(--font-mono); font-size: 11.5px; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(255, 61, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.player-play:hover { transform: scale(1.07); box-shadow: var(--glow-rose); }
.player-play svg { width: 19px; height: 19px; fill: currentColor; }

.player-center { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex-shrink: 0; width: 42px; }
.time.right { text-align: right; }

.seek {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.seek-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 242, 250, 0.12);
  overflow: visible;
}
.seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 61, 129, 0.7);
}
.seek-fill::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--rose);
  opacity: 0;
  transition: opacity 0.2s;
}
.seek:hover .seek-fill::after { opacity: 1; }

.player-viz { width: 74px; height: 40px; flex-shrink: 0; }

.player-buy { flex-shrink: 0; }
.player-close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s, border-color 0.2s;
}
.player-close:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- Points forts (accueil) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(53, 224, 255, 0.4); }
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(164, 75, 255, 0.12);
  border: 1px solid rgba(164, 75, 255, 0.3);
  margin-bottom: 18px;
}
.feature .ico svg { width: 22px; height: 22px; stroke: var(--violet); }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(164, 75, 255, 0.2), transparent 60%),
    radial-gradient(500px 240px at 90% 100%, rgba(255, 61, 129, 0.16), transparent 60%),
    var(--surface);
  text-align: center;
  padding: 70px 30px;
}
.cta-band .section-title { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 13, 0.5);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(164, 75, 255, 0.65);
  box-shadow: 0 0 16px rgba(164, 75, 255, 0.18);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 34px;
}

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.contact-aside .card { padding: 28px; }
.contact-aside h3 { font-size: 16px; margin-bottom: 6px; }
.contact-aside p { color: var(--muted); font-size: 14.5px; }
.contact-aside .card + .card { margin-top: 18px; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.socials a:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--glow-rose); }
.socials svg { width: 18px; height: 18px; fill: var(--ink); }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14.5px;
}
.form-status.ok { display: block; border: 1px solid rgba(80, 250, 170, 0.35); background: rgba(80, 250, 170, 0.08); color: #7dffc4; }
.form-status.err { display: block; border: 1px solid rgba(255, 90, 90, 0.35); background: rgba(255, 70, 70, 0.08); color: #ff9c9c; }

/* ---------- Page admin ---------- */
.admin-wrap { padding: calc(var(--nav-h) + 50px) 0 90px; }
.login-card { max-width: 420px; margin: 10vh auto 0; text-align: center; }
.login-card .section-title { font-size: 26px; }
.login-card form { margin-top: 24px; display: grid; gap: 14px; text-align: left; }

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.admin-grid { display: grid; grid-template-columns: 420px 1fr; gap: 30px; align-items: start; }

.beat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.beat-row + .beat-row { margin-top: 12px; }
.beat-row .thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(164, 75, 255, 0.4), rgba(255, 61, 129, 0.3));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(244, 242, 250, 0.4);
}
.beat-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.beat-row .info { flex: 1; min-width: 0; }
.beat-row .info strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beat-row .info span { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.beat-row .actions { display: flex; gap: 8px; flex-shrink: 0; }

.msg-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.msg-row + .msg-row { margin-top: 12px; }
.msg-row .top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-row .who { font-weight: 700; }
.msg-row .who a { color: var(--cyan); font-family: var(--font-mono); font-size: 13px; }
.msg-row .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.msg-row p { color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.msg-row .actions { margin-top: 12px; display: flex; gap: 8px; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 242, 250, 0.1);
  overflow: hidden;
  display: none;
  margin-top: 14px;
}
.progress .bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 61, 129, 0.6);
  transition: width 0.15s;
}

.tab-btns { display: flex; gap: 10px; margin-bottom: 22px; }
.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.tab-btn.active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(164, 75, 255, 0.35);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 224, 255, 0.35);
  color: var(--cyan);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 34px);
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(14, 10, 24, 0.95);
  border: 1px solid rgba(164, 75, 255, 0.45);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), var(--glow-violet);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 80;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer nav a:hover { color: var(--ink); }
.footer .admin-link { opacity: 0.55; font-size: 13px; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .player-viz, .player-info { display: none; }
  .player-meta { width: auto; flex: 1; }
  .player-center { flex: 1.4; }
  .player-buy .btn { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 6, 13, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 14px 4vw 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  .nav-links a.active::after { display: none; }
  .burger { display: inline-flex; }
  .nav-cta { display: none; }

  .section { padding: 64px 0; }
  .player { height: auto; flex-wrap: wrap; padding: 14px 16px; gap: 12px; bottom: 10px; }
  .player-center { order: 5; flex-basis: 100%; }
  body.has-player { padding-bottom: 170px; }
  .toast { bottom: auto; top: calc(var(--nav-h) + 14px); }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-wave path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Modale d'achat (PayPal) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(164, 75, 255, 0.4);
  border-radius: 22px;
  background: linear-gradient(180deg, #14101f, #0c0915);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--glow-violet);
  padding: 30px 28px 28px;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--muted); }

.checkout-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.checkout-cover {
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(164, 75, 255, 0.4), rgba(255, 61, 129, 0.3));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(244, 242, 250, 0.4);
}
.checkout-cover img { width: 100%; height: 100%; object-fit: cover; }
.checkout-head > div:nth-child(2) { flex: 1; min-width: 0; }
.checkout-head .chips { margin-bottom: 0; margin-top: 8px; }
.checkout-title { font-size: 19px; font-weight: 700; }
.checkout-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.pp-note { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pp-sandbox {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  border: 1px dashed rgba(53, 224, 255, 0.4);
  background: rgba(53, 224, 255, 0.06);
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 14px;
}
.pp-zone { min-height: 54px; }
.pp-loading {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0;
}

.checkout-success { text-align: center; }
.success-ico {
  width: 62px; height: 62px;
  margin: 4px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7dffc4;
  border: 1px solid rgba(80, 250, 170, 0.45);
  background: rgba(80, 250, 170, 0.08);
  box-shadow: 0 0 26px rgba(80, 250, 170, 0.25);
}
.success-ico svg { width: 30px; height: 30px; }
.checkout-success .btn { margin: 6px 0 20px; }

.backup-link { text-align: left; }
.backup-link label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.backup-row { display: flex; gap: 8px; }
.backup-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 13, 0.6);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- Page téléchargement ---------- */
.dl-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.dl-card .success-ico { margin-top: 0; }
.dl-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}

/* ---------- Explorateur bibliothèque NAS (admin) ---------- */
.nas-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.nas-chosen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 255, 0.35);
  background: rgba(53, 224, 255, 0.07);
  border-radius: 999px;
  padding: 6px 8px 6px 13px;
}
.nas-chosen span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.nas-chosen button {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(53, 224, 255, 0.18);
  color: var(--cyan);
  font-size: 11px;
  line-height: 1;
}
.nas-chosen button:hover { background: rgba(53, 224, 255, 0.32); }

.nas-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 12px;
}
.nas-crumbs button {
  border: none;
  background: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: inherit;
  padding: 2px 4px;
  border-radius: 6px;
}
.nas-crumbs button:hover { background: rgba(53, 224, 255, 0.1); }
.nas-crumbs .sep { opacity: 0.5; }

.nas-filter { margin-bottom: 12px; }
.nas-filter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 13, 0.5);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
.nas-filter input:focus { outline: none; border-color: rgba(53, 224, 255, 0.55); }

.nas-list {
  max-height: min(46vh, 420px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 6, 13, 0.4);
}
.nas-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.nas-row:last-child { border-bottom: none; }
.nas-row:hover { background: rgba(164, 75, 255, 0.09); }
.nas-row .ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nas-row .ico svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.nas-row.dossier .ico svg { stroke: var(--violet); }
.nas-row .nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nas-row .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  flex-shrink: 0;
}
.nas-row .ext {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 255, 0.3);
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.nas-vide {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
