/* =========================================================
   MIX LAB — feuille de style
   Concept : une table de mixage de nuit. Fond noir chaud,
   3 couleurs = les 3 bandes de l'EQ (LOW / MID / HIGH),
   panneaux façon matériel, chiffres d'écran LCD.
   ========================================================= */
:root {
  color-scheme: dark;
  /* couleurs */
  --bg: #0b0a0f;
  --bg2: #110f17;
  --panel: #17141f;
  --panel2: #201c2b;
  --line: #2e2939;
  --fg: #f4eff7;
  --muted: #9d94ac;
  --low: #ff4f6e;   /* graves  */
  --mid: #ffb341;   /* médiums */
  --high: #3cdceb;  /* aigus   */
  --ok: #5be39a;
  --no: #ff7a7a;
  /* typo */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* mesures */
  --r: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--low) 14%, transparent), transparent 70%),
    radial-gradient(700px 500px at -10% 10%, color-mix(in srgb, var(--high) 10%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--high); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
strong { color: var(--c, var(--mid)); font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- barre du haut ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-txt { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: 0.04em; }
.logo-txt b { color: var(--mid); font-weight: 900; }
.logo-eq { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.logo-eq i { width: 5px; border-radius: 2px; animation: eq 0.97s ease-in-out infinite alternate; }
.logo-eq i:nth-child(1) { background: var(--low); height: 60%; }
.logo-eq i:nth-child(2) { background: var(--mid); height: 100%; animation-delay: -0.3s; }
.logo-eq i:nth-child(3) { background: var(--high); height: 40%; animation-delay: -0.6s; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.logo-eq i { transform-origin: bottom; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; color: var(--muted);
}
.nav a:hover, .nav a.on { color: var(--fg); background: var(--panel2); }
.meter-wrap { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.meter { display: flex; gap: 2px; height: 18px; align-items: stretch; }
.meter i { width: 4px; border-radius: 1px; background: var(--line); }
.meter i.on.low { background: var(--low); box-shadow: 0 0 6px var(--low); }
.meter i.on.mid { background: var(--mid); box-shadow: 0 0 6px var(--mid); }
.meter i.on.high { background: var(--high); box-shadow: 0 0 6px var(--high); }
.meter-txt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goto {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px;
}
.goto:hover, .goto:focus-within { border-color: var(--mid); }
.goto-lbl { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.goto select {
  -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 230px; text-overflow: ellipsis;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffb341' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 0; border-radius: 999px; padding: 7px 32px 7px 12px;
  color: var(--mid); font-family: var(--f-mono); font-size: 14px; outline: none;
}
.goto select option, .goto select optgroup { background: var(--panel); color: var(--fg); font-family: var(--f-body); }
@media (max-width: 720px) {
  .meter { display: none; }
  .topbar { gap: 10px; }
  .nav a { padding: 6px 9px; font-size: 12px; }
}
@media (max-width: 480px) {
  .goto-lbl { display: none; }
  .goto { padding-left: 4px; }
  .goto select { max-width: 170px; }
  .logo-txt { font-size: 15px; }
}

/* ---------- structure ---------- */
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); padding-block: 28px 64px; }
.view { animation: viewIn 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes viewIn { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.footer {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.footer-copy { font-size: 11px; opacity: 0.7; white-space: nowrap; }
.footer-copy::before { content: "·"; margin-right: 12px; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.footer-copy a:hover { color: var(--mid); text-decoration-color: currentColor; }
.footer-first { margin-left: auto; }
.footer .linkbtn { white-space: nowrap; padding: 5px 10px; font-size: 11px; }
.linkbtn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); cursor: pointer; font-family: var(--f-mono); font-size: 12px; }
.linkbtn:hover { color: var(--fg); border-color: var(--muted); }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); margin: 0 0 14px; }
.page-head { padding-block: 20px 34px; max-width: 760px; }
.page-head h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 900; }
.lede { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 18px 0 0; }

/* ---------- pads (boutons façon matériel) ---------- */
.pad {
  --pc: var(--mid);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pc) 45%, var(--line));
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  color: var(--fg); font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 0 rgba(0,0,0,0.5);
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.pad:hover { border-color: var(--pc); }
.pad:active, .pad.hit { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pad.on, .pad.flash {
  background: color-mix(in srgb, var(--pc) 22%, var(--panel));
  border-color: var(--pc); color: var(--fg);
  box-shadow: 0 0 0 1px var(--pc), 0 0 22px color-mix(in srgb, var(--pc) 45%, transparent);
}
.pad:disabled { opacity: 0.4; cursor: default; }
.pad.small { min-height: 36px; padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.pad.play { min-width: 150px; }
.pad.cta { font-size: 15px; padding: 14px 22px; background: var(--mid); color: var(--bg); border-color: var(--mid); font-weight: 500; box-shadow: 0 0 32px color-mix(in srgb, var(--mid) 40%, transparent), 0 2px 0 rgba(0,0,0,.5); }
.pad.cta:hover { filter: brightness(1.08); }
.pad.round { width: 64px; height: 64px; border-radius: 50%; padding: 0; }
.pad.round.big { width: 78px; height: 78px; flex-direction: column; gap: 2px; }
.pad.round small { font-size: 11px; color: var(--muted); }
.pad.tap {
  width: 132px; height: 132px; border-radius: 28px; font-family: var(--f-display); font-size: 26px; font-weight: 900;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pc) 30%, var(--panel2)), var(--panel));
}
.pad.tap.hit { background: var(--pc); color: var(--bg); box-shadow: 0 0 40px var(--pc); }
.ico-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ico-stop { width: 11px; height: 11px; background: currentColor; border-radius: 2px; }
.pad.play .ico-play { color: var(--pc); }
.pad.round .ico-play { color: var(--pc); border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.pad.round.on .ico-play { color: var(--fg); }
.pad.choice { font-family: var(--f-body); font-size: 16px; letter-spacing: 0; text-align: left; justify-content: flex-start; }
.pad.good { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, var(--panel)); box-shadow: 0 0 0 1px var(--ok); }
.pad.bad { border-color: var(--no); background: color-mix(in srgb, var(--no) 14%, var(--panel)); opacity: 0.75; }

/* ---------- panneaux ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel2), var(--panel) 40%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(14px, 3vw, 24px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 40px -24px rgba(0,0,0,0.8);
}
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.feedback { min-height: 1.5em; font-size: 16px; color: var(--muted); }
.feedback.ok { color: var(--ok); }
.feedback.no { color: var(--no); }
.feedback strong { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.status-line { color: var(--muted); font-family: var(--f-mono); font-size: 13px; }
.score { display: flex; gap: 6px; }
.score span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); transition: all 0.2s; }
.score span.ok { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px var(--ok); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.q { font-size: 18px; font-weight: 700; margin: 0; }
.progress { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--high), var(--ok)); transition: width 0.15s; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--mid); }
.lbl, .ctl-lbl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- potard ---------- */
.knob { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.knob-dial {
  --p: 0.5;
  width: var(--ks); height: var(--ks); border-radius: 50%; position: relative; cursor: ns-resize; touch-action: none;
  background:
    radial-gradient(circle at 50% 40%, #3a3448, #1b1724 70%),
    var(--panel);
  box-shadow: 0 0 0 4px var(--bg2), 0 0 0 5px var(--line), 0 6px 14px rgba(0,0,0,0.6);
}
.knob-dial::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--kc) calc(var(--p) * 270deg), transparent 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
  mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
  opacity: 0.9;
}
.knob-mark {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 42%; margin-left: -1.5px; border-radius: 2px;
  background: var(--fg); transform-origin: 50% 0; transform: rotate(calc(180deg + (-135deg + var(--p) * 270deg)));
}
.knob-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--kc); font-weight: 500; }
.knob-val { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.2em; }

/* ---------- fader ---------- */
.fader { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fader-label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.fader-track { position: relative; }
.fader-input { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 0; touch-action: none; }
.fader-input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.fader-input::-moz-range-track { height: 8px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.fader-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 34px; margin-top: -14px; border-radius: 6px;
  background: linear-gradient(180deg, #4a4359, #2a2533); border: 1px solid #5a536a;
  box-shadow: inset 0 -3px 0 var(--fc), 0 4px 8px rgba(0,0,0,0.6);
}
.fader-input::-moz-range-thumb {
  width: 22px; height: 34px; border-radius: 6px; background: linear-gradient(180deg, #4a4359, #2a2533); border: 1px solid #5a536a;
  box-shadow: inset 0 -3px 0 var(--fc), 0 4px 8px rgba(0,0,0,0.6);
}
.fader.vertical { width: auto; align-items: center; }
.fader.vertical .fader-track { width: 44px; height: 170px; display: flex; align-items: center; justify-content: center; }
.fader.vertical .fader-input { width: 170px; transform: rotate(-90deg); position: absolute; }
.fader-ticks { position: absolute; inset: 6px 4px; background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 16px); -webkit-mask: linear-gradient(90deg, #000 6px, transparent 6px calc(100% - 6px), #000 0); mask: linear-gradient(90deg, #000 6px, transparent 6px calc(100% - 6px), #000 0); }

/* ---------- VU-mètre ---------- */
.vu { display: flex; flex-direction: column; gap: 3px; padding: 6px; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); }
.vu span { width: 26px; height: 7px; border-radius: 2px; background: var(--panel2); transition: background 0.05s; }
.vu span.lit.g { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.vu span.lit.o { background: var(--mid); box-shadow: 0 0 6px var(--mid); }
.vu span.lit.r { background: var(--low); box-shadow: 0 0 8px var(--low); }

/* ---------- confettis ---------- */
.confetti { position: absolute; left: 50%; top: 30px; pointer-events: none; z-index: 5; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: conf var(--d) cubic-bezier(.15,.6,.3,1) forwards; }
@keyframes conf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); opacity: 0; } }

/* =========================================================
   ACCUEIL
   ========================================================= */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  padding-block: clamp(8px, 3vw, 36px) 40px;
}
.hero-copy { min-width: 0; }
.hero-title { font-size: clamp(44px, 8.4vw, 96px); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; }
.hero-title span { display: inline-block; animation: wordIn 0.7s cubic-bezier(.2,.9,.2,1.2) backwards; }
.hero-title .w1 { color: var(--fg); animation-delay: 0.05s; }
.hero-title .w2 { color: var(--high); animation-delay: 0.18s; }
.hero-title .w3 { color: var(--mid); animation-delay: 0.31s; }
.hero-title .w4 { color: var(--low); animation-delay: 0.44s; }
@keyframes wordIn { from { transform: translateY(0.4em) scale(0.9); opacity: 0.001; } }
.hero.live .hero-title span { animation: bump 0.4839s ease-out infinite; }
.hero.live .hero-title .w2 { animation-delay: 0.121s; }
.hero.live .hero-title .w3 { animation-delay: 0.242s; }
.hero.live .hero-title .w4 { animation-delay: 0.363s; }
@keyframes bump { 0% { transform: scale(1.04); } 30%, 100% { transform: scale(1); } }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 40ch; margin: 22px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.vinyl {
  --rot: 0deg;
  position: absolute; left: 2%; top: 4%; width: 82%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.03) 31.5%, transparent 32%),
    repeating-radial-gradient(circle, #111016 0 2px, #1a1820 2px 3px),
    #121117;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px #24212c;
  transform: rotate(var(--rot));
}
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,0.09) 14%, transparent 20% 60%, rgba(255,255,255,0.06) 64%, transparent 70%); }
.vinyl-label {
  position: absolute; inset: 33%; border-radius: 50%;
  background: conic-gradient(var(--low) 0 33%, var(--mid) 0 66%, var(--high) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  color: var(--bg); font-family: var(--f-display);
}
.vinyl-label b { font-size: clamp(14px, 2.4vw, 22px); font-weight: 900; }
.vinyl-label small { font-family: var(--f-mono); font-size: 10px; margin-top: 6px; font-weight: 500; }
.vinyl-label::after { content: ""; position: absolute; width: 8%; height: 8%; border-radius: 50%; background: var(--bg); }
.tonearm {
  position: absolute; right: 2%; top: 2%; width: 34%; height: 58%;
  transform-origin: 82% 10%; transform: rotate(18deg); transition: transform 0.8s cubic-bezier(.3,1.4,.4,1);
}
.tonearm::before { content: ""; position: absolute; right: 8%; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #2a2632; box-shadow: inset 0 0 0 6px #3b3546; }
.tonearm::after { content: ""; position: absolute; right: calc(8% + 13px); top: 15px; width: 5px; height: 92%; background: linear-gradient(#5a536a, #3b3546); border-radius: 4px; transform-origin: top; transform: rotate(14deg); }
.hero.live .tonearm { transform: rotate(32deg); }
.hero-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; width: 100%; }


.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.more { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.more:hover { color: var(--fg); }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel) 60%);
  border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s;
}
.level-card:hover { transform: translateY(-4px); border-color: var(--c); }
.level-n { position: absolute; right: 12px; top: -14px; font-family: var(--f-display); font-weight: 900; font-size: 110px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.level-card b { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--c); position: relative; }
.level-sub { color: var(--muted); font-size: 15px; position: relative; margin-bottom: 14px; }
.level-prog { height: 4px; border-radius: 9px; background: var(--bg2); overflow: hidden; }
.level-prog i { display: block; height: 100%; background: var(--c); }
.level-count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .level-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; }
}

/* =========================================================
   PARCOURS
   ========================================================= */
.track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.track-level { padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.track-level::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.track-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.track-n { font-family: var(--f-display); font-weight: 900; font-size: 46px; color: var(--c); line-height: 1; min-width: 1.1em; }
.track-head h2 { font-size: 22px; font-weight: 700; }
.track-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.track-list { list-style: none; margin: 0; padding: 0; position: relative; }
.track-list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.track-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 4px; border-radius: 10px; text-decoration: none; position: relative; }
.track-item:hover { background: var(--panel2); }
.track-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); flex: none; position: relative; z-index: 1; }
.track-item.seen .track-dot { border-color: var(--c); }
.track-item.done .track-dot { background: var(--c); border-color: var(--c); box-shadow: 0 0 10px var(--c); }
.track-id { font-family: var(--f-mono); font-size: 14px; color: var(--c); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.track-title { flex: 1; min-width: 0; }
.track-state { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.track-item.done .track-state { color: var(--ok); }
@media (max-width: 760px) { .track { grid-template-columns: 1fr; } }

/* =========================================================
   LEXIQUE
   ========================================================= */
.lex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lex { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.lex:hover { border-color: var(--mid); transform: translateY(-2px); }
.lex b { font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.lex span { color: var(--muted); font-size: 15.5px; flex: 1; }
.lex small { font-family: var(--f-mono); font-size: 12px; color: var(--mid); }

/* =========================================================
   POINT (leçon)
   ========================================================= */
.lesson { display: flex; flex-direction: column; gap: 30px; }
.lesson strong { color: var(--c); }
.lesson-head { position: relative; padding-top: 6px; }
.crumb { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.lesson-num {
  font-family: var(--f-display); font-weight: 900; line-height: 0.85; letter-spacing: -0.04em;
  font-size: clamp(96px, 20vw, 200px); margin: 8px 0 6px; display: flex; align-items: baseline;
}
.lesson-num .maj { color: var(--c); text-shadow: 0 0 60px color-mix(in srgb, var(--c) 40%, transparent); }
.lesson-num .dot { color: var(--fg); }
.lesson-num .min { color: transparent; -webkit-text-stroke: 2px var(--fg); }
.lesson-title { font-size: clamp(30px, 5vw, 48px); font-weight: 900; }
.lesson-tag { font-size: 20px; color: var(--muted); margin: 12px 0 0; max-width: 46ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.points li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); font-size: 17.5px; line-height: 1.4;
  animation: ptIn 0.5s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(0.12s + var(--i) * 0.1s);
}
.points li > span:last-child { min-width: 0; }
@keyframes ptIn { from { transform: translateY(16px); opacity: 0.001; } }
.pt-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--bg); font-family: var(--f-mono); font-weight: 500; font-size: 14px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

.block-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.block-tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px; background: var(--fg); color: var(--bg); font-weight: 500;
}
.mission-tag { background: var(--c); }
.tip { color: var(--muted); font-size: 15px; }
.mission { position: relative; padding: clamp(16px, 3vw, 26px); border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 5%, transparent); }
.mission-text { font-size: 17px; margin: 0 0 14px; }
.mission-text .up { font-family: var(--f-mono); font-size: 13px; color: var(--c); white-space: nowrap; }
.stamp {
  margin-left: auto; font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ok); border: 2px solid var(--ok); border-radius: 8px; padding: 5px 10px; transform: rotate(-4deg) scale(0); opacity: 0;
  transition: transform 0.4s cubic-bezier(.3,1.8,.4,1), opacity 0.2s;
}
.mission.won { border-style: solid; border-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); }
.mission.won .stamp { transform: rotate(-4deg) scale(1); opacity: 1; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--panel); transition: border-color .2s; min-width: 0; }
.lesson-nav a:hover { border-color: var(--muted); }
.lesson-nav small { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.lesson-nav b { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.nav-next { text-align: right; }
.nav-next.glow { border-color: var(--ok); box-shadow: 0 0 24px color-mix(in srgb, var(--ok) 25%, transparent); }
.nav-next.glow small { color: var(--ok); }
@media (max-width: 560px) { .lesson-nav { grid-template-columns: 1fr; } .nav-next { text-align: left; } }

/* quiz */
.quiz { display: flex; flex-direction: column; gap: 14px; }
.q-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.q-card .q { display: flex; gap: 12px; align-items: baseline; }
.q-n { font-family: var(--f-mono); font-size: 13px; color: var(--c); }
.why { margin: 0; font-size: 15.5px; min-height: 1.4em; color: var(--muted); }
.why.ok { color: var(--ok); } .why.no { color: var(--no); }
.why strong { color: inherit; }
.order-slots { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.order-slots li { counter-increment: s; min-width: 110px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 14px; color: var(--fg); }
.order-slots li::before { content: counter(s); color: var(--muted); font-size: 12px; }
.order-slots li.filled { border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel)); animation: pop 0.3s; }
@keyframes pop { 50% { transform: scale(1.06); } }
.order-pool { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* =========================================================
   WIDGETS
   ========================================================= */
/* 1.1 deux platines */
.twodecks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; justify-items: center; }
.deckcol { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.platter {
  --rot: 0deg;
  width: min(100%, 190px); aspect-ratio: 1; border-radius: 50%; position: relative; transform: rotate(var(--rot));
  background: repeating-radial-gradient(circle, #121117 0 2px, #1c1a23 2px 3px);
  box-shadow: 0 0 0 6px var(--bg2), 0 0 0 7px var(--line), 0 18px 30px -12px rgba(0,0,0,.8);
  transition: opacity 0.3s;
}
.platter span {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(16px, 4vw, 28px); color: var(--bg);
}
.platter.a span { background: var(--high); }
.platter.b span { background: var(--low); }
.platter::after { content: ""; position: absolute; left: 50%; top: 6%; width: 3px; height: 14%; background: var(--fg); opacity: 0.5; border-radius: 2px; }
.cap { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.mini-xf { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.mini-xf-track { position: relative; width: 90px; height: 8px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.mini-xf-knob { position: absolute; top: 50%; left: 0; width: 16px; height: 26px; margin: -13px 0 0 -8px; border-radius: 4px; background: linear-gradient(#4a4359, #2a2533); box-shadow: inset 0 -3px 0 var(--mid); transition: left 0.1s linear; }
@media (max-width: 520px) { .twodecks { grid-template-columns: 1fr 1fr; } .mixcol { grid-column: 1 / -1; grid-row: 2; } }

/* 1.2 séquenceur */
.seq-wrap { overflow-x: auto; padding-bottom: 4px; }
.seq-count { display: grid; grid-template-columns: 96px repeat(4, 1fr); gap: 4px; margin-bottom: 6px; min-width: 560px; }
.seq-count::before { content: ""; }
.seq-count span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-left: 4px; transition: color 0.1s; }
.seq-count span.on { color: var(--fg); }
.seq { display: flex; flex-direction: column; gap: 6px; min-width: 560px; }
.seq-row { display: grid; grid-template-columns: 92px repeat(16, 1fr); gap: 4px; align-items: center; }
.pad.seq-name { min-height: 38px; padding: 4px 8px; font-size: 12.5px; margin-right: 4px; opacity: 0.45; --pc: var(--c); }
.pad.seq-name.on { opacity: 1; }
.seq-cell { height: 38px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; transition: background 0.08s, transform 0.08s; }
.seq-cell.beat { background: color-mix(in srgb, var(--fg) 6%, var(--bg2)); }
.seq-cell:nth-child(4n+2) { margin-left: 3px; }
.seq-cell.on { background: color-mix(in srgb, var(--c) 70%, var(--panel)); border-color: var(--c); }
.seq-cell.now { outline: 2px solid var(--fg); outline-offset: -2px; }
.seq-cell.on.now { background: var(--c); box-shadow: 0 0 14px var(--c); transform: scale(1.06); }

/* 1.3 métronome */
.metro { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; }
.pulse-ring {
  --pulse: 0;
  width: clamp(170px, 30vw, 220px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--low) calc(var(--pulse) * 35%), var(--bg)) 0 60%, var(--bg) 61%);
  box-shadow: 0 0 0 calc(4px + var(--pulse) * 16px) color-mix(in srgb, var(--low) calc(var(--pulse) * 40%), transparent), 0 0 0 1px var(--line);
}
.bpm-big { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bpm-big b { font-family: var(--f-mono); font-weight: 500; font-size: clamp(48px, 9vw, 70px); font-variant-numeric: tabular-nums; color: var(--fg); }
.bpm-big small { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.2em; margin-top: 6px; }
.bpm-big.small b { font-size: 46px; color: var(--mid); }
.metro-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.per-sec { font-size: 18px; color: var(--muted); }
.per-sec b { color: var(--low); font-family: var(--f-mono); }
.bpm-marks { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) { .metro { grid-template-columns: 1fr; justify-items: center; } .metro-side { width: 100%; } }
.tap-zone { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; padding-block: 8px; }

/* 1.4 styles */
.genres { display: flex; flex-direction: column; gap: 8px; }
.g-lane-wrap { position: relative; }
.g-rows { display: flex; flex-direction: column; gap: 8px; }
.g-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; }
.g-name { font-family: var(--f-display); font-weight: 700; font-size: 14px; cursor: pointer; }
.g-row.on .g-name { color: var(--mid); }
.g-lane { position: relative; height: 44px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20%), var(--bg2); }
.g-bar {
  position: absolute; top: 5px; bottom: 5px; border-radius: 8px; border: 1px solid var(--c); cursor: pointer;
  background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--fg); font-family: var(--f-mono); font-size: 11.5px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; padding: 0 4px;
  transition: background 0.2s, box-shadow 0.2s;
}
.g-bar:hover, .g-row.on .g-bar { background: var(--c); color: var(--bg); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); }
.g-overlay { position: absolute; left: 122px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.g-needle { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--fg); transition: left 0.4s cubic-bezier(.3,1.4,.4,1); }
.g-needle span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; background: var(--fg); color: var(--bg); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.g-scale-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.g-scale { position: relative; height: 18px; }
.g-scale span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 520px) { .g-row, .g-scale-wrap { grid-template-columns: 80px 1fr; } .g-overlay { left: 90px; } .g-name { font-size: 12px; } .g-bar span { display: none; } }

/* 1.5 EQ */
.spec-wrap { position: relative; }
.spectrum { width: 100%; height: 170px; display: block; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.spec-labels { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; margin-top: 6px; padding: 0 6px; }
.spec-labels .l { color: var(--low); } .spec-labels .m { color: var(--mid); } .spec-labels .h { color: var(--high); }
.eq-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eq-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eq-what { font-size: 13px; color: var(--muted); text-align: center; }
.pad.kill { --pc: currentColor; }

/* 2.1 compteur */
.counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transition: opacity 0.3s; }
.counter span {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(42px, 10vw, 88px); text-align: center; line-height: 1;
  padding: 18px 0; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); color: var(--line); transition: all 0.08s;
}
.counter span:first-child { color: color-mix(in srgb, var(--low) 30%, var(--line)); }
.counter span.on { color: var(--fg); background: var(--panel2); border-color: var(--fg); transform: scale(1.04); }
.counter span:first-child.on { color: var(--bg); background: var(--low); border-color: var(--low); box-shadow: 0 0 30px color-mix(in srgb, var(--low) 60%, transparent); }
.counter.hidden { opacity: 0.12; }
.bar-num { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }

/* 2.2 phrases */
.phrase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phrase-bar { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 4px; align-items: center; padding: 6px; border-radius: 10px; background: var(--bg2); }
.phrase-bar small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); width: 1.4em; }
.phrase-bar span { height: 26px; border-radius: 5px; background: var(--panel2); transition: background 0.08s; }
.phrase-bar span:nth-child(2) { background: color-mix(in srgb, var(--mid) 18%, var(--panel2)); }
.phrase-bar span.past { background: color-mix(in srgb, var(--mid) 35%, var(--panel2)); }
.phrase-bar span.on { background: var(--mid); box-shadow: 0 0 12px var(--mid); }
.phrase-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; transition: all 0.2s; }
.chip b { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }
.chip.on { border-color: var(--mid); background: color-mix(in srgb, var(--mid) 12%, transparent); }
@media (max-width: 640px) { .phrase-grid { grid-template-columns: repeat(2, 1fr); } .phrase-chips { grid-template-columns: repeat(2, 1fr); } }

/* 2.3 arrangement */
.arr-display { display: flex; align-items: baseline; gap: 16px; min-height: 44px; }
.arr-now { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 5vw, 40px); }
.arr-bar { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }
.arr-track { position: relative; display: flex; gap: 3px; height: 110px; }
.arr-block {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 6px 6px; min-width: 0;
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; transition: all 0.2s;
}
.arr-block span { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arr-block.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg2)); }
.arr-block.on span { color: var(--fg); }
.arr-wave { flex: 1; display: flex; align-items: center; gap: 1px; }
.arr-wave i { flex: 1; background: var(--c); border-radius: 1px; opacity: 0.55; }
.arr-block.on .arr-wave i { opacity: 1; }
.arr-head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--fg); box-shadow: 0 0 10px var(--fg); pointer-events: none; }
.blind .arr-block span, .blind .arr-now, .blind .arr-wave { visibility: hidden; }
.blind .arr-block { pointer-events: none; }
.blind .arr-display::before { content: "Compte dans ta tête…"; font-family: var(--f-mono); color: var(--muted); }

/* 3.1 contrôleur */
.ctrl-wrap { width: 100%; overflow-x: auto; }
.ctrl { width: 100%; min-width: 520px; height: auto; display: block; }
.ctrl .body { fill: #15131b; stroke: var(--line); stroke-width: 2; }
.ctrl .mixer-bg { fill: #1b1823; stroke: var(--line); }
.ctrl .screen { fill: #0b0a0f; stroke: var(--line); }
.ctrl .lcd { fill: var(--high); font-family: var(--f-mono); font-size: 14px; text-anchor: middle; }
.ctrl .jog { fill: #1f1c27; stroke: #34303f; stroke-width: 3; }
.ctrl .jog-top { fill: url(#none); fill: #26222f; stroke: #3b3546; stroke-width: 2; }
.ctrl .jog-mark { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; opacity: 0.6; }
.ctrl .dot { fill: #3b3546; }
.ctrl .slot { fill: #0b0a0f; stroke: var(--line); }
.ctrl .cap-fader { fill: #4a4359; stroke: #5a536a; }
.ctrl .lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 10px; text-anchor: middle; letter-spacing: 1px; }
.ctrl .btn-cue { fill: #2a2026; stroke: var(--mid); stroke-width: 2; }
.ctrl .btn-play { fill: #1c2a2b; stroke: var(--high); stroke-width: 2; }
.ctrl .btxt { fill: var(--mid); font-family: var(--f-mono); font-size: 11px; text-anchor: middle; }
.ctrl .btxt-f { fill: var(--high); }
.ctrl .btxt-s { fill: var(--fg); font-family: var(--f-mono); font-size: 9px; text-anchor: middle; }
.ctrl .btn-hp { fill: #2a2533; stroke: var(--mid); }
.ctrl .knob-s { fill: #2a2533; stroke: #4a4359; stroke-width: 2; }
.ctrl .knob-s.k0 { stroke: var(--high); } .ctrl .knob-s.k1 { stroke: var(--mid); } .ctrl .knob-s.k2 { stroke: var(--low); }
.ctrl .vu { fill: var(--ok); opacity: 0.55; } .ctrl .vu.o { fill: var(--mid); } .ctrl .vu.r { fill: var(--low); }
.ctrl .deck-letter { fill: var(--muted); font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.ctrl .hs { cursor: pointer; transition: opacity 0.2s, filter 0.2s; }
.ctrl .hs:hover, .ctrl .hs.sel { filter: drop-shadow(0 0 8px var(--mid)) brightness(1.4); }
.ctrl .hs.found { filter: drop-shadow(0 0 8px var(--ok)) brightness(1.3); }
.focus-deck .zone-mixer, .focus-mixer .zone-deck { opacity: 0.25; pointer-events: none; }
.find .hs:hover { filter: brightness(1.3); }
.gear-info { display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 12px 16px; border-radius: 12px; background: var(--bg2); border-left: 3px solid var(--mid); }
.gear-info b { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--mid); }
.gear-info span { color: var(--muted); }
.gear-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gear-prompt { font-size: 18px; }
.gear-prompt b { font-family: var(--f-display); color: var(--mid); }

/* 3.2 cue */
.cue-screen { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.cue-wave { display: block; width: 100%; height: 130px; cursor: grab; touch-action: none; }
.cue-wave:active { cursor: grabbing; }
.lcd-small { position: absolute; right: 10px; top: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--high); font-variant-numeric: tabular-nums; }

/* 3.4 casque */
.hp-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.strips { display: flex; gap: 14px; }
.strip { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.strip-name { font-family: var(--f-display); font-weight: 900; font-size: 24px; }
.strip-name.A { color: var(--high); } .strip-name.B { color: var(--low); }
.dests { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dest { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); transition: all 0.2s; }
.dest b { font-family: var(--f-display); font-size: 16px; }
.dest.ear { border-color: var(--mid); box-shadow: 0 0 0 1px var(--mid); }
.dest-in { display: flex; gap: 6px; }
.dest-in em { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-style: normal; }
.dest-in span { font-family: var(--f-display); font-weight: 900; font-size: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--bg); animation: beat 0.4839s ease-out infinite; }
.dest-in span.A { background: var(--high); } .dest-in span.B { background: var(--low); }
@keyframes beat { 0% { transform: scale(1.15); } 40%, 100% { transform: scale(1); } }
.dest-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--panel2); position: relative; }
.dest-ico.speaker::before { content: ""; position: absolute; inset: 8px 10px; border-radius: 50%; border: 3px solid var(--muted); }
.dest-ico.phones::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 18px; border: 3px solid var(--muted); border-bottom: 0; border-radius: 14px 14px 0 0; }
.dest-ico.phones::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px; height: 10px; border-left: 7px solid var(--muted); border-right: 7px solid var(--muted); border-radius: 3px; }
.dest.live .dest-ico::before, .dest.live .dest-ico::after { border-color: var(--fg); }
@media (max-width: 640px) { .hp-grid { grid-template-columns: 1fr; } .strips { justify-content: center; } }

/* 3.5 gain */
.gain-row { display: flex; justify-content: center; gap: clamp(30px, 10vw, 90px); }
.gain-col { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 130px; }
.vu-state { font-family: var(--f-mono); font-size: 13px; color: var(--muted); min-height: 1.3em; width: 100%; text-align: center; white-space: nowrap; }
.vu-state.ok { color: var(--mid); } .vu-state.red { color: var(--low); } .vu-state.low { color: var(--muted); }

/* 4.1 voies */
.lanes { width: 100%; height: 150px; display: block; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.mode-desc { margin: 0; font-size: 17px; }

/* 4.5 flam */
.flam-viz { --off: 0.45; position: relative; height: 120px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.flam-k { position: absolute; top: 18%; bottom: 18%; width: 16px; margin-left: -8px; border-radius: 6px; left: 50%; transition: left 0.15s; }
.flam-k.a { background: var(--high); box-shadow: 0 0 20px var(--high); }
.flam-k.b { background: var(--low); box-shadow: 0 0 20px var(--low); left: calc(50% + var(--off) * 40%); mix-blend-mode: screen; }
.flam-label { font-size: 17px; }
.flam-label b { font-family: var(--f-mono); color: var(--low); }

/* 5.3 phrases */
.pm { display: grid; grid-template-columns: 26px 1fr; gap: 8px 10px; align-items: center; }
.pm-tag { font-family: var(--f-display); font-weight: 900; font-size: 18px; }
.pm-lane { display: flex; height: 46px; }
.pm-clip { overflow: hidden; }
.pm-lane.b { transition: transform 0.25s cubic-bezier(.3,1.3,.4,1); }
.pm-sec { flex: none; height: 100%; display: flex; align-items: center; padding: 0 8px; font-family: var(--f-mono); font-size: 11.5px; overflow: hidden; white-space: nowrap; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 20%, var(--bg2)); border-radius: 6px; }
.pm-ruler { position: relative; height: 18px; }
.pm-ruler span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.check i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.check.ok { color: var(--fg); }
.check.ok i { background: var(--ok); border-color: var(--ok); }

/* 6.1 set */
.set-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.set-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.set-item { display: grid; grid-template-columns: 22px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); animation: pop 0.25s; }
.set-item b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.set-bpm { font-family: var(--f-mono); font-size: 12px; color: var(--high); white-space: nowrap; }
.energy { --e: 3; display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.energy i { width: 4px; border-radius: 1px; background: var(--line); }
.energy i:nth-child(1) { height: 30%; } .energy i:nth-child(2) { height: 45%; } .energy i:nth-child(3) { height: 60%; } .energy i:nth-child(4) { height: 80%; } .energy i:nth-child(5) { height: 100%; }
.energy[style*="--e: 1"] i:nth-child(-n+1), .energy[style*="--e: 2"] i:nth-child(-n+2), .energy[style*="--e: 3"] i:nth-child(-n+3), .energy[style*="--e: 4"] i:nth-child(-n+4), .energy[style*="--e: 5"] i:nth-child(-n+5) { background: var(--low); }
.set-ctl { display: flex; gap: 4px; }
.mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 11px; }
.mini:disabled { opacity: 0.25; cursor: default; }
.set-chart-label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.set-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.set-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.set-bar { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg, var(--high), var(--mid) 60%, var(--low)); background-size: 100% 200px; background-position: bottom; transition: height 0.35s cubic-bezier(.3,1.3,.4,1); }
.set-col small { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }

/* 6.2 foule */
.moment { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.moment b { font-family: var(--f-display); font-size: 20px; color: var(--mid); }
.moment span { color: var(--muted); }
.crowd { width: 100%; height: 220px; display: block; border-radius: 12px; background: linear-gradient(180deg, var(--bg), var(--bg2)); border: 1px solid var(--line); }
.crowd-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 6.3 fx */
.fx-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.fx-left { padding: 10px; }
.fx-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fx-curve { width: 100%; height: 130px; display: block; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.fx-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
@media (max-width: 560px) { .fx-grid { grid-template-columns: 1fr; justify-items: center; } .fx-right { width: 100%; } }

/* 6.4 caisse */
.crate { display: flex; flex-direction: column; gap: 6px; }
.crate-item { display: grid; grid-template-columns: 40px 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.crate-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crate-item .g { font-size: 13px; color: var(--muted); }
.sleeve { width: 40px; height: 40px; border-radius: 6px; background: conic-gradient(from calc(var(--h) * 1deg), var(--low), var(--mid), var(--high), var(--low)); position: relative; }
.sleeve::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--bg); }
@media (max-width: 520px) { .crate-item .g { display: none; } .crate-item { grid-template-columns: 40px 1fr auto auto; } }

/* =========================================================
   SIMULATEUR DE MIX
   ========================================================= */
.mixsim { gap: 20px; transition: box-shadow 0.2s; }
.mixsim.mud { box-shadow: 0 0 0 2px var(--low), 0 0 40px color-mix(in srgb, var(--low) 35%, transparent); }
.ms-top { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; align-items: center; }
.ms-deck { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.ms-deck.b { flex-direction: row-reverse; text-align: right; }
.platter.mini { width: 64px; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.platter.mini span { font-size: 14px; }
.ms-deck-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ms-deck.b .ms-deck-info { align-items: flex-end; }
.ms-letter { display: none; }
.lcd { font-family: var(--f-mono); font-size: 24px; font-weight: 500; color: var(--high); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px color-mix(in srgb, var(--high) 50%, transparent); line-height: 1; }
.ms-deck.b .lcd { color: var(--low); text-shadow: 0 0 12px color-mix(in srgb, var(--low) 50%, transparent); }
.beatdots { display: flex; gap: 4px; }
.beatdots i { --f: 0; width: 14px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--fg) calc(var(--f) * 100%), var(--line)); }
.beatdots i:first-child { background: color-mix(in srgb, var(--low) calc(var(--f) * 100%), var(--line)); }
.deck-status { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mid); }
.deck-status.play { color: var(--ok); }
.ms-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ms-bar { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-align: center; }
.ms-bar b { color: var(--fg); }
.phase-wrap { transition: opacity 0.2s; }
.phase-wrap.off { opacity: 0.15; }
.phase { position: relative; height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.phase-zone { position: absolute; left: 44%; right: 44%; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok) 22%, transparent); border-left: 1px solid var(--ok); border-right: 1px solid var(--ok); }
.phase-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.phase-needle { position: absolute; top: 4px; bottom: 4px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--low); box-shadow: 0 0 10px var(--low); left: 50%; }
.phase-needle.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.phase-labels { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.ms-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ms-ctl, .ms-mix { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); flex: 1 1 280px; }
.ctl-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pitch-box { display: flex; align-items: center; gap: 6px; }
.fine { display: flex; flex-direction: column; gap: 6px; }
.fine .pad { width: 38px; padding: 0; }
.nudge { display: flex; gap: 8px; }
.nudge .pad { min-height: 64px; min-width: 104px; }
.ms-strips { display: flex; gap: 18px; }
.ms-strip { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pad.low { --pc: var(--low); opacity: 0.55; }
.pad.low.on { opacity: 1; }
.pad.swap { min-height: 64px; min-width: 110px; font-family: var(--f-display); font-weight: 900; font-size: 18px; }
.bouillie { width: 100%; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 14px; color: var(--low); animation: blink 0.5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.steps li { counter-increment: st; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.steps li::before { content: counter(st); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: var(--panel2); color: var(--muted); }
.steps li.cur { border-color: var(--mid); color: var(--fg); background: color-mix(in srgb, var(--mid) 8%, transparent); }
.steps li.cur::before { background: var(--mid); color: var(--bg); }
.steps li.done { color: var(--fg); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.steps li.done::before { content: "✓"; background: var(--ok); color: var(--bg); }
.steps strong { color: inherit; }
@media (max-width: 760px) {
  .ms-top { grid-template-columns: 1fr 1fr; }
  .ms-center { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 420px) {
  .ms-deck { flex-direction: column; text-align: center; }
  .ms-deck.b { flex-direction: column; text-align: center; }
  .ms-deck .ms-deck-info, .ms-deck.b .ms-deck-info { align-items: center; }
  .nudge .pad { min-width: 88px; }
}

/* ---------- réglage de latence ---------- */
.cal-link { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.cal-link:hover { color: var(--high); }
.cal-count { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cal-count b { font-family: var(--f-mono); font-weight: 500; font-size: 52px; color: var(--high); font-variant-numeric: tabular-nums; }
.cal-count small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.cal-cur { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.cal-cur b { color: var(--fg); font-weight: 500; }
.reglage { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.reglage .pad.cta { align-self: flex-start; }
.cal-tips { margin: 0; padding-left: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; max-width: 65ch; }
.footer a.linkbtn { text-decoration: none; }

/* =========================================================
   DDJ-FLX2 VIRTUEL
   ========================================================= */
.flx-promo {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 18px;
  padding: 22px 24px; border-radius: var(--r); text-decoration: none; border: 1px solid var(--line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--high) 12%, var(--panel)), var(--panel) 55%);
  transition: border-color .2s, transform .2s;
}
.flx-promo:hover { border-color: var(--high); transform: translateY(-3px); }
.flx-promo-art { position: relative; width: 120px; height: 64px; border-radius: 12px; background: #15131b; border: 1px solid var(--line); }
.flx-promo-art i { position: absolute; top: 9px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #2a2632 0 34%, #1f1c27 36% 70%, #34303f 72%); }
.flx-promo-art i:first-child { left: 6px; } .flx-promo-art i:nth-child(2) { right: 6px; }
.flx-promo-art span { position: absolute; left: 56px; top: 14px; width: 8px; height: 36px; border-radius: 3px; background: linear-gradient(var(--high), var(--low)); }
.flx-promo-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flx-promo-txt small { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--high); }
.flx-promo-txt b { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.flx-promo-txt span { color: var(--muted); font-size: 15.5px; }
.flx-promo-go { font-family: var(--f-mono); font-size: 14px; color: var(--high); white-space: nowrap; }
@media (max-width: 600px) { .flx-promo { grid-template-columns: 1fr; } .flx-promo-go { display: none; } }

.flx2-page { display: flex; flex-direction: column; gap: 18px; }
/* logiciel simulé */
.f-software { display: grid; grid-template-columns: 1fr 1fr 230px; gap: 10px; padding: 12px; border-radius: 14px; background: #08070b; border: 1px solid var(--line); }
.f-sw-decks { display: contents; }
.f-sw-deck { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; border-radius: 10px; background: var(--bg2); }
.f-sw-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f-sw-num { font-family: var(--f-display); font-weight: 900; font-size: 15px; color: var(--bg); background: var(--high); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.f-sw-deck:nth-child(2) .f-sw-num { background: var(--low); }
.f-sw-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.f-sw-bpm { font-family: var(--f-mono); font-size: 14px; color: var(--mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-sw-wave { width: 100%; height: 56px; display: block; border-radius: 6px; background: var(--bg); cursor: pointer; }
.f-sw-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.f-sw-stat b { color: var(--ok); font-weight: 500; } .f-sw-stat em { color: var(--mid); font-style: normal; }
.f-sw-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f-sw-list-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 4px 4px; }
.f-sw-track { display: grid; grid-template-columns: 1fr auto auto; gap: 4px; align-items: center; padding: 5px 6px; border-radius: 8px; background: var(--bg2); }
.f-sw-track span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.f-sw-track b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-sw-track small { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.f-sw-track button { border: 1px solid var(--line); background: var(--panel2); border-radius: 6px; font-family: var(--f-mono); font-size: 11px; padding: 4px 6px; cursor: pointer; }
.f-sw-track button:hover { border-color: var(--mid); color: var(--mid); }
@media (max-width: 860px) { .f-software { grid-template-columns: 1fr 1fr; } .f-sw-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .f-sw-list-title { grid-column: 1 / -1; } }
@media (max-width: 520px) { .f-software { grid-template-columns: 1fr; } }

/* contrôleur */
.f-stage { display: flex; flex-direction: column; gap: 6px; }
.flx2-wrap { overflow-x: auto; border-radius: 22px; }
.flx2-svg { display: block; width: 100%; min-width: 700px; height: auto; user-select: none; -webkit-user-select: none; touch-action: none; }
.f-rotate { display: none; margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 720px) and (orientation: portrait) { .f-rotate { display: block; } }
.flx2-svg .f-body { fill: #121016; stroke: #2b2733; stroke-width: 2; }
.flx2-svg .f-model { fill: #4a4458; font-family: var(--f-display); font-weight: 700; font-size: 11px; text-anchor: middle; letter-spacing: 2px; }
.flx2-svg .f-decknum { fill: #4a4458; font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.flx2-svg .f-mixer-bg { fill: #17141d; stroke: #262230; }
.flx2-svg .f-lbl { fill: #8a8299; font-family: var(--f-mono); font-size: 10px; text-anchor: middle; letter-spacing: .5px; pointer-events: none; }
.flx2-svg .f-tiny { font-size: 8.5px; }
.flx2-svg .f-sign { font-size: 14px; }
.flx2-svg .f-chnum { fill: #5d566c; font-family: var(--f-display); font-weight: 900; font-size: 15px; }
.flx2-svg .f-ctl { cursor: pointer; }
.flx2-svg .f-hit { fill: transparent; }
.flx2-svg .f-jog-outer { fill: #1a1720; stroke: #2e2a37; stroke-width: 3; }
.flx2-svg .f-jog-grip { fill: none; stroke: #2a2632; stroke-width: 14; stroke-dasharray: 2 5; }
.flx2-svg .f-jog-top { fill: #24202c; stroke: #3a3445; stroke-width: 2; }
.flx2-svg .f-jog-mark { stroke: #f4eff7; stroke-width: 4; stroke-linecap: round; opacity: .75; }
.flx2-svg .f-jog-center { fill: #15131b; stroke: #3a3445; }
.flx2-svg .f-jog-logo { fill: #5d566c; font-family: var(--f-display); font-weight: 700; font-size: 11px; text-anchor: middle; pointer-events: none; }
.flx2-svg .f-jog:hover .f-jog-outer { stroke: var(--high); }
.flx2-svg .f-btn-body { fill: #221e2a; stroke: #3a3445; }
.flx2-svg .f-btxt { fill: #c9c2d6; font-family: var(--f-mono); font-size: 10px; text-anchor: middle; pointer-events: none; font-weight: 500; }
.flx2-svg .f-btn:hover .f-btn-body, .flx2-svg .f-round:hover .f-round-body { stroke: var(--fg); }
.flx2-svg .f-btn.lit .f-btn-body { fill: color-mix(in srgb, var(--mid) 30%, #221e2a); stroke: var(--mid); filter: drop-shadow(0 0 6px var(--mid)); }
.flx2-svg .f-chcue.lit .f-btn-body { fill: color-mix(in srgb, var(--mid) 35%, #221e2a); }
.flx2-svg .f-sync.lit .f-btn-body { fill: color-mix(in srgb, var(--high) 30%, #221e2a); stroke: var(--high); filter: drop-shadow(0 0 6px var(--high)); }
.flx2-svg .f-shift.lit .f-btn-body { fill: #4a4458; stroke: var(--fg); }
.flx2-svg .f-smart.lit .f-btn-body { fill: color-mix(in srgb, var(--low) 30%, #221e2a); stroke: var(--low); filter: drop-shadow(0 0 6px var(--low)); }
.flx2-svg .f-round-body { fill: #1f1b27; stroke-width: 2.5; }
.flx2-svg .f-cue .f-round-body { stroke: var(--mid); }
.flx2-svg .f-cue .f-btxt { fill: var(--mid); }
.flx2-svg .f-cue.lit .f-round-body { fill: color-mix(in srgb, var(--mid) 30%, #1f1b27); filter: drop-shadow(0 0 8px var(--mid)); }
.flx2-svg .f-play .f-round-body { stroke: var(--ok); }
.flx2-svg .f-play-ico { fill: var(--ok); pointer-events: none; }
.flx2-svg .f-play.lit .f-round-body { fill: color-mix(in srgb, var(--ok) 28%, #1f1b27); filter: drop-shadow(0 0 8px var(--ok)); }
.flx2-svg .f-play.blink .f-round-body, .flx2-svg .f-sync.blink .f-btn-body { animation: fblink 1s steps(2) infinite; }
@keyframes fblink { 50% { stroke-opacity: .25; } }
.flx2-svg .f-pad-body { --pc: transparent; fill: #1d1a24; stroke: #34303f; stroke-width: 1.5; transition: fill .08s; }
.flx2-svg .f-pad-body.dim { fill: color-mix(in srgb, var(--pc) 16%, #1d1a24); stroke: color-mix(in srgb, var(--pc) 45%, #34303f); }
.flx2-svg .f-pad-body.on { fill: color-mix(in srgb, var(--pc) 70%, #1d1a24); stroke: var(--pc); filter: drop-shadow(0 0 8px var(--pc)); }
.flx2-svg .f-pad-body.sel { animation: fpad 0.8s ease-in-out infinite alternate; }
@keyframes fpad { to { stroke-width: 3; } }
.flx2-svg .f-pad:active .f-pad-body { transform: translateY(1px); }
.flx2-svg .f-padtxt { fill: #c9c2d6; font-family: var(--f-mono); font-size: 9.5px; text-anchor: middle; pointer-events: none; }
.flx2-svg .f-knob-body { fill: #2a2533; stroke: #474056; stroke-width: 2; }
.flx2-svg .f-knob:hover .f-knob-body { stroke: var(--fg); }
.flx2-svg .f-ring { fill: none; stroke-width: 2; opacity: .6; }
.flx2-svg .f-knob-ind line { stroke: #f4eff7; stroke-width: 3; stroke-linecap: round; }
.flx2-svg .f-slot { fill: #08070b; stroke: #2b2733; }
.flx2-svg .f-thumb { fill: #4a4359; stroke: #6a6380; }
.flx2-svg .f-thumb-line { stroke: #f4eff7; stroke-width: 2; }
.flx2-svg .f-slider:hover .f-thumb { stroke: var(--fg); }
.flx2-svg .f-detent { stroke: #8a8299; stroke-width: 2; }

.f-under { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.f-info { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px 18px; border-radius: 12px; background: var(--panel); border-left: 3px solid var(--high); }
.f-info b { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--high); }
.f-info span { color: var(--fg); }
.f-info strong { color: var(--mid); }
.f-info small { color: var(--muted); font-size: 14px; }
.f-info small em { font-family: var(--f-mono); font-style: normal; color: var(--fg); background: var(--panel2); padding: 1px 6px; border-radius: 4px; }
.f-side { display: flex; flex-direction: column; gap: 10px; }
.f-note { margin: 0; font-size: 14px; color: var(--muted); }
.f-note strong { color: var(--fg); }
@media (max-width: 760px) { .f-under { grid-template-columns: 1fr; } }
.f-defi-box { position: relative; padding: 18px 20px; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--high) 50%, var(--line)); }
.f-defi-box .block-tag { background: var(--high); }
.f-defi-count { font-family: var(--f-mono); color: var(--muted); font-size: 13px; }
.f-defis { list-style: none; counter-reset: d; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.f-defis li { counter-increment: d; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14.5px; line-height: 1.35; position: relative; }
.f-defis li::before { content: counter(d); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: var(--panel2); color: var(--muted); }
.f-defis li strong { color: var(--high); }
.f-defis li.done { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.f-defis li.done::before { content: "✓"; background: var(--ok); color: var(--bg); }

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
