/* =========================================================
   LIGHT LAB — feuille de style
   Concept : une salle de spectacle dans le noir. Fond noir,
   3 couleurs = celles des pads de la Wolfmix (ambre, cyan,
   magenta), 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;
  --amb: #ffb341;   /* ambre   */
  --cyn: #3cdceb;   /* cyan    */
  --mag: #ff5fd2;   /* magenta */
  --lime: #b6f25a;
  --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(--mag) 14%, transparent), transparent 70%),
    radial-gradient(700px 500px at -10% 10%, color-mix(in srgb, var(--cyn) 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(--cyn); 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(--amb)); 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(--amb); font-weight: 900; }
.logo-beam { position: relative; width: 26px; height: 22px; }
.logo-beam::before { content: ""; position: absolute; left: 9px; top: 0; width: 8px; height: 5px; border-radius: 2px 2px 1px 1px; background: var(--fg); }
.logo-beam i { position: absolute; top: 5px; left: 13px; margin-left: -4px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 17px solid; transform-origin: 50% 0; opacity: 0.9; animation: sweep 2.4s ease-in-out infinite alternate; }
.logo-beam i:nth-child(1) { border-top-color: var(--amb); --a: -28deg; }
.logo-beam i:nth-child(2) { border-top-color: var(--cyn); --a: 0deg; animation-delay: -0.8s; }
.logo-beam i:nth-child(3) { border-top-color: var(--mag); --a: 28deg; animation-delay: -1.6s; }
@keyframes sweep { from { transform: rotate(calc(var(--a) - 10deg)); } to { transform: rotate(calc(var(--a) + 10deg)); } }
.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.mag { background: var(--mag); box-shadow: 0 0 6px var(--mag); }
.meter i.on.amb { background: var(--amb); box-shadow: 0 0 6px var(--amb); }
.meter i.on.cyn { background: var(--cyn); box-shadow: 0 0 6px var(--cyn); }
.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(--amb); }
.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(--amb); 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: 1320px) { .goto-lbl { display: none; } .goto { padding-left: 4px; } }
@media (max-width: 1100px) { .meter { display: none; } }
@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(--amb); 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(--amb); 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(--amb);
  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(--amb); color: var(--bg); border-color: var(--amb); font-weight: 500; box-shadow: 0 0 32px color-mix(in srgb, var(--amb) 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(--cyn), 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(--amb); }
.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(--amb); box-shadow: 0 0 6px var(--amb); }
.vu span.lit.r { background: var(--mag); box-shadow: 0 0 8px var(--mag); }

/* ---------- 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(--cyn); animation-delay: 0.18s; }
.hero-title .w3 { color: var(--amb); animation-delay: 0.31s; }
.hero-title .w4 { color: var(--mag); 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; }


.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(--amb); 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(--amb); }

/* =========================================================
   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); } }


.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(--cyn) 12%, var(--panel)), var(--panel) 55%);
  transition: border-color .2s, transform .2s;
}
.flx-promo:hover { border-color: var(--cyn); 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(--cyn), var(--mag)); }
.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(--cyn); }
.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(--cyn); white-space: nowrap; }
@media (max-width: 600px) { .flx-promo { grid-template-columns: 1fr; } .flx-promo-go { display: none; } }


/* ---------- 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; }
}
/* =========================================================
   LIGHT LAB — accueil
   ========================================================= */
.hero-visual { position: relative; width: 100%; min-width: 0; }
@media (max-width: 860px) { .hero-visual { max-width: none !important; } }
.hero-stage { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; border: 1px solid var(--line); background: #050408; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9); }
.hero.live .hero-title span { animation: bump 0.4839s ease-out infinite; }
.promos { display: grid; gap: 14px; margin-top: 18px; }
.w1-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; }
.w1-art i { position: static !important; width: auto !important; height: auto !important; border-radius: 4px !important; }
.w1-art i:nth-child(-n+4) { background: #ff9a4a; } .w1-art i:nth-child(n+5) { background: var(--cyn); }
.plan-art { overflow: hidden; }
.plan-art i { position: absolute !important; left: 12%; right: 12%; height: 3px !important; width: auto !important; border-radius: 2px !important; background: var(--muted) !important; }
.plan-art i:nth-child(1) { top: 10px; left: 30%; right: 30%; } .plan-art i:nth-child(2) { top: 20px; left: 26%; right: 26%; } .plan-art i:nth-child(3) { top: 30px; left: 22%; right: 22%; }
.plan-art i:nth-child(4) { top: 44px; left: 12%; right: 12%; background: var(--amb) !important; } .plan-art i:nth-child(5) { top: 54px; left: 6%; right: 6%; background: var(--amb) !important; }

/* =========================================================
   SCÈNE et réglages communs
   ========================================================= */
.demo-body { display: flex; flex-direction: column; gap: 14px; }
.stage-box { position: relative; }
.stage-cv { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #050408; border: 1px solid var(--line); }
.slider-row { display: grid; grid-template-columns: 9em 1fr 6em; align-items: center; gap: 12px; }
.slider-row .fader { width: 100%; }
.slider-val { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .slider-row { grid-template-columns: 1fr 5em; } .slider-row .ctl-lbl { grid-column: 1 / -1; } }
.num { width: 6.5em; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); font-family: var(--f-mono); font-size: 16px; }
.num:focus { border-color: var(--c, var(--amb)); outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--fc); box-shadow: 0 0 8px var(--fc); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; line-height: 1.4; transition: border-color .2s, background .2s; }
.steps li::before { content: counter(st); flex: none; width: 24px; height: 24px; 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(--c, var(--cyn)); }
.steps li.done { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--panel)); }
.steps li.done::before { content: "✓"; background: var(--ok); color: var(--bg); }
.steps strong { color: var(--c, var(--cyn)); }

/* 1.2 RVB */
.rgb-panel { display: grid; grid-template-columns: auto auto 1fr; gap: 20px; align-items: center; }
.venn { width: 220px; height: auto; aspect-ratio: 260 / 240; border-radius: 14px; border: 1px solid var(--line); }
.rgb-faders { display: flex; gap: 6px; }
.rgb-faders .fader.vertical .fader-track { height: 150px; }
.rgb-faders .fader.vertical .fader-input { width: 150px; }
.rgb-faders.horiz { flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.swatch-box, .target-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.swatch { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--line); background: #000; transition: background .1s; }
.swatch-name { font-family: var(--f-display); font-size: 18px; }
.swatch-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.target-box .swatch { width: 64px; height: 64px; }
@media (max-width: 680px) { .rgb-panel { grid-template-columns: 1fr 1fr; } .venn { grid-column: 1 / -1; justify-self: center; } }

/* 1.3 kelvins */
.kelvin-bar { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #ffa75a, #ffc98f, #ffe6cc, #fff4ec, #e6edff); }
.kelvin-mark { position: absolute; top: -5px; width: 6px; height: 24px; border-radius: 3px; background: var(--fg); left: calc(var(--p) * 100%); margin-left: -3px; box-shadow: 0 0 0 2px var(--bg); }

/* 2.x triangle */
.tri-panel { flex-direction: row; align-items: center; flex-wrap: wrap; }
.tri-panel > div:last-child { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.tri-wrap { width: 170px; flex: none; }
.tri-map { width: 100%; display: block; }
.tm-stage { fill: var(--bg2); stroke: var(--line); }
.tm-lbl { fill: var(--muted); font: 6px var(--f-mono); text-anchor: middle; }
.tm-artist { fill: var(--fg); }
.tm-fx line { stroke: transparent; stroke-width: 1.2; stroke-dasharray: 2 2; }
.tm-fx rect { fill: var(--panel2); stroke: var(--muted); stroke-width: .6; }
.tm-fx.on rect { fill: var(--cyn); stroke: var(--cyn); }
.tm-fx.on line { stroke: var(--cyn); }

/* 2.3 zones */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zone-grid .pad { font-size: 12px; padding: 8px; text-align: center; }
.zone-legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.zone-legend span:only-child { margin: 0 auto; }

/* 2.4 plan de feu */
.plan-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.plan-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.plan { display: block; width: 100%; height: auto; }
.pl-stage { fill: color-mix(in srgb, var(--cyn) 6%, var(--bg2)); stroke: var(--line); stroke-width: 3; }
.pl-seat { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; opacity: .7; }
.pl-zone { fill: var(--muted); font: 700 34px var(--f-display); text-anchor: middle; opacity: .35; letter-spacing: .1em; }
.pl-bar { stroke: var(--fg); stroke-width: 7; stroke-linecap: round; opacity: .8; }
.pl-barlbl { fill: var(--muted); font: 500 22px var(--f-mono); }
.pl-fx { cursor: pointer; outline: none; }
.pl-fx rect, .pl-fx circle { fill: var(--panel2); stroke: var(--fc); stroke-width: 4; transition: fill .15s; }
.pl-fx:hover rect, .pl-fx:hover circle, .pl-fx:focus-visible rect, .pl-fx:focus-visible circle { fill: color-mix(in srgb, var(--fc) 40%, var(--panel2)); }
.pl-fx.on rect, .pl-fx.on circle { fill: var(--fc); filter: drop-shadow(0 0 10px var(--fc)); }
.pl-addr { fill: var(--muted); font: 500 19px var(--f-mono); text-anchor: middle; }
.pl-fx.on .pl-addr { fill: var(--fc); }
.fx-info { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--fc) 55%, var(--line)); }
.fx-info b { font-family: var(--f-display); font-size: 18px; color: var(--fc); }
.fx-info > span { color: var(--muted); font-size: 15px; }
.fx-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 6px 0 0; font-size: 15px; }
.fx-info dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.fx-info dd { margin: 0; }
@media (max-width: 820px) { .plan-layout { grid-template-columns: 1fr; } }

/* 3.x projecteurs */
.fx-lab { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.fx-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.fx-card small { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fc); }
.fx-card b { font-family: var(--f-display); font-size: 20px; }
.fx-card span { color: var(--muted); }
.fx-card ul { margin: 4px 0 0; padding-left: 1.1em; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.fx-ctl { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cswatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg); }
.cswatch.on { border-color: var(--fg); box-shadow: inset 0 0 0 3px var(--bg), 0 0 16px var(--sw); }
.xy-panel { flex-direction: row; flex-wrap: wrap; align-items: center; }
.xy-panel > div:last-child { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 12px; }
.xy { position: relative; width: 200px; height: 200px; flex: none; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); cursor: crosshair; touch-action: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25% 25%; background-position: center; }
.xy-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 18px var(--mag); pointer-events: none; }
.xy-lbl { position: absolute; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); pointer-events: none; }
.xy-lbl.top { top: 4px; left: 50%; transform: translateX(-50%); } .xy-lbl.bot { bottom: 4px; left: 50%; transform: translateX(-50%); }
.xy-lbl.left { left: 6px; top: 50%; transform: translateY(-50%); } .xy-lbl.right { right: 6px; top: 50%; transform: translateY(-50%); }
.dmx-read { display: flex; gap: 10px; }
.dmx-read span { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: #0d0c10; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 22px; color: var(--amb); min-width: 84px; }
.dmx-read small { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.gobo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gobo-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-family: var(--f-mono); font-size: 12px; min-width: 78px; }
.gobo-btn.on { border-color: var(--mag); box-shadow: 0 0 0 1px var(--mag), 0 0 18px color-mix(in srgb, var(--mag) 35%, transparent); }
.gobo-ico { width: 44px; height: 44px; }
.gobo-disc { fill: #050408; stroke: var(--line); }
.gobo-holes circle { fill: #fff; }
.gobo-btn.on .gobo-holes circle { fill: var(--mag); }

/* 4.x DMX */
.univ { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; }
.univ i { --v: 0; aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--amb) calc(var(--v) * 100%), #1d1925); }
.univ i.scan { outline: 1px solid var(--cyn); }
.univ i.own { background: color-mix(in srgb, var(--fc) 70%, #1d1925); }
.univ i.own.start { background: var(--fc); box-shadow: inset 0 0 0 1.5px var(--bg); }
.univ i.clash { background: var(--no) !important; animation: shake .4s; }
.dmx-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.lamp-box { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-mono); color: var(--muted); }
.dmx-lamp { width: 70px; height: 70px; border-radius: 50%; border: 6px solid #2a2632; }
.ch-desk { display: flex; gap: 4px; justify-content: space-between; overflow-x: auto; padding-bottom: 4px; }
.ch { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 48px; }
.ch-n { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.ch-val { font-family: var(--f-mono); font-size: 15px; color: var(--amb); font-variant-numeric: tabular-nums; }
.ch-name { font-size: 12.5px; color: var(--muted); text-align: center; }
.ch .fader.vertical .fader-track { height: 140px; } .ch .fader.vertical .fader-input { width: 140px; }
.addr-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.addr-strip span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; border-radius: 4px; background: #1d1925; font-family: var(--f-mono); }
.addr-strip small { font-size: 9px; color: var(--muted); }
.addr-strip b { font-size: 12px; color: var(--bg); }
.addr-strip span.in { background: var(--amb); }
.addr-strip span.in small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.addr-strip span.over { background: repeating-linear-gradient(45deg, #2a1b20, #2a1b20 4px, #1d1925 4px 8px); }
@media (max-width: 600px) { .addr-strip { grid-template-columns: repeat(12, 1fr); } }
.addr-scale { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); color: var(--muted); }
.addr-line { flex: 1; position: relative; height: 8px; border-radius: 9px; background: #1d1925; }
.addr-line i { position: absolute; top: 0; bottom: 0; background: var(--amb); border-radius: 9px; min-width: 3px; }
.chain { display: flex; align-items: stretch; gap: 22px; overflow-x: auto; padding: 8px 2px 14px; }
.chain > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 82px; font-family: var(--f-mono); font-size: 12px; }
.chain > div + div::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 4px; margin-top: -2px; background: var(--amb); }
.chain.unplugged > div:nth-child(4)::before { background: repeating-linear-gradient(90deg, var(--no) 0 4px, transparent 4px 8px); }
.chain-console b { font-family: var(--f-display); font-size: 18px; }
.chain-lamp { width: 26px; height: 26px; border-radius: 50%; background: #111; }
.chain-fx small { color: var(--muted); }
.chain-term { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 16px; height: 22px; border-radius: 0 6px 6px 0; background: var(--ok); font-size: 0; }
.chain.no-term .chain-term { background: transparent; border: 1px dashed var(--no); }
.patch-rows { display: flex; flex-direction: column; gap: 8px; }
.patch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--fc); background: var(--panel); }
.patch-row b { min-width: 7.5em; } .patch-row > small:first-of-type { color: var(--muted); min-width: 6em; }
.patch-range { font-family: var(--f-mono); color: var(--fc); margin-left: auto; }
.conf { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.conf-col { display: flex; flex-direction: column; gap: 4px; }
.conf-col b { font-size: 14px; font-family: var(--f-mono); }
@media (max-width: 640px) { .conf { grid-template-columns: 1fr; } }

/* tableau du patch */
.sub-h { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; margin: 40px 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.rig-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rig-table th { text-align: left; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; background: var(--panel2); }
.rig-table td { padding: 8px 12px; border-top: 1px solid var(--line); }
.rig-table .mono { font-family: var(--f-mono); color: var(--fc); }
.rig-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fc); margin-right: 8px; }

/* 6.x show */
.sec-strip { display: flex; gap: 3px; }
.sec-strip span { padding: 8px 4px; border-radius: 6px; background: var(--panel2); text-align: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .1s; }
.sec-strip span.on { background: var(--mag); color: var(--bg); }
.sec-count { font-family: var(--f-mono); color: var(--mag); font-size: 15px; }
.drop-row { display: flex; justify-content: center; }
.cue-panel { flex-direction: row; flex-wrap: wrap; align-items: center; }
.cue-list { flex: 1; min-width: 260px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cue-list li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: all .2s; }
.cue-list li span { color: var(--muted); font-size: 14px; }
.cue-list li.past { opacity: .5; }
.cue-list li.on { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.cue-go { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto; font-family: var(--f-mono); color: var(--muted); }
.safety { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.safe-card { position: relative; min-height: 150px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 14px; perspective: 600px; }
.safe-front, .safe-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; backface-visibility: hidden; transition: transform .45s; }
.safe-front i { font-style: normal; font-size: 40px; }
.safe-front b { font-family: var(--f-display); font-size: 16px; }
.safe-back { transform: rotateY(180deg); background: color-mix(in srgb, var(--mag) 10%, var(--panel)); font-size: 14.5px; line-height: 1.35; text-align: left; }
.safe-card.flip .safe-front { transform: rotateY(-180deg); }
.safe-card.flip .safe-back { transform: rotateY(0); }

/* =========================================================
   WOLFMIX W1 MK2 VIRTUELLE
   Chaque élément est placé (en %) d'après une photo de la
   vraie console. Les tailles de texte suivent la largeur de
   la console (unités cqw).
   ========================================================= */
.w1-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.w1-body {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 696 / 788;
  container-type: inline-size; font-size: 10px;
  border-radius: 2.6cqw; background: linear-gradient(180deg, #2a2a2f, #1f1f24 60%, #1b1b1f);
  border: 1px solid #3c3b43; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -28px rgba(0,0,0,.9);
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
}
.w1-body > * { position: absolute; box-sizing: border-box; }
.w1-btn {
  display: grid; place-items: center; padding: 0 .3cqw; border-radius: .9cqw; cursor: pointer;
  border: 1px solid #2b2a31; background: #060607; color: #f3f3f3;
  font: 700 max(7px, 1.72cqw) / 1.05 "Atkinson Hyperlegible", system-ui, sans-serif; text-align: center; letter-spacing: .01em;
  box-shadow: 0 .35cqw 0 #000, inset 0 1px 0 rgba(255,255,255,.05); transition: box-shadow .12s, background .12s, color .12s;
}
.w1-btn.down { transform: translateY(.25cqw); box-shadow: 0 .1cqw 0 #000; }
.w1-btn.c-cyan { color: #8ff6fb; } .w1-btn.c-lime { color: #9ee66b; } .w1-btn.c-pink { color: #f59be6; } .w1-btn.c-peach { color: #ffc6a3; }
.w1-btn.lit { background: #16161a; border-color: currentColor; box-shadow: 0 0 0 1px currentColor, 0 0 2.2cqw color-mix(in srgb, currentColor 55%, transparent), 0 .35cqw 0 #000; text-shadow: 0 0 1cqw currentColor; }
.w1-btn.shift { background: linear-gradient(#f1f1f3, #d6d6da); color: #151515; border-color: #bdbdc3; }
.w1-btn.shift.lit { background: #ffffff; color: #000; text-shadow: none; box-shadow: 0 0 0 .4cqw var(--cyn), 0 0 3cqw var(--cyn); }
.w1-btn.preset { background: linear-gradient(#ffd2a6, #ffad74); color: #5a2a0e; border-color: #e99a62; }
.w1-btn.preset.lit { color: #3a1500; text-shadow: none; box-shadow: 0 0 0 .4cqw #fff, 0 0 3cqw #ffad74; }
.w1-btn.wolf { padding: 0; }
.w1-wolf { width: 58%; height: 58%; background: linear-gradient(135deg, #d9cbff, #8f7be6); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 12 12 6 20 12 28 6 36 12 36 24 20 36 4 24Z M12 14 9 22 20 31 31 22 28 14 20 20Z' fill='black' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 12 12 6 20 12 28 6 36 12 36 24 20 36 4 24Z M12 14 9 22 20 31 31 22 28 14 20 20Z' fill='black' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; }
.w1-btn.wolf.lit .w1-wolf { background: #fff; }
.w1-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: #e4e4e8; pointer-events: none; }
.w1-brand-top { display: flex; align-items: center; gap: .6cqw; font: 700 max(6px, 1.45cqw) var(--f-mono); letter-spacing: .18em; color: #c9c9cf; }
.w1-wolfico { width: 1.8cqw; height: 1.8cqw; background: #c9c9cf; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 12 12 6 20 12 28 6 36 12 36 24 20 36 4 24Z' /%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 12 12 6 20 12 28 6 36 12 36 24 20 36 4 24Z' /%3E%3C/svg%3E") center / contain no-repeat; }
.w1-brand b { font: italic 900 max(16px, 6.2cqw) / 1 var(--f-display); letter-spacing: -.04em; margin-top: .4cqw; }
.w1-static { border: .3cqw solid #8f8d97; border-radius: 1.4cqw; pointer-events: none; }
.w1-static span { position: absolute; left: 50%; bottom: -1.1cqw; transform: translateX(-50%); padding: 0 .8cqw; background: #1e1e22; font: italic 700 max(6px, 1.5cqw) / 1 "Atkinson Hyperlegible", system-ui, sans-serif; color: #e2e2e6; letter-spacing: .04em; }
.w1-groups { display: grid; place-items: center; font: 700 max(6px, 1.35cqw) "Atkinson Hyperlegible", system-ui, sans-serif; color: #cfcfd5; letter-spacing: .04em; pointer-events: none; }
.w1-glass { border-radius: 1cqw; background: #000; border: .9cqw solid #0a0a0c; box-shadow: inset 0 0 0 1px #1a1a1f, 0 0 0 1px #2c2c33; overflow: hidden; }
.w1-enc {
  --rot: 0deg; border-radius: 50%; cursor: ns-resize; touch-action: none;
  background: radial-gradient(circle at 50% 32%, #5a5a63, #26262b 55%, #151518 75%); box-shadow: 0 0 0 .5cqw #0c0c0e, 0 .6cqw 1.2cqw rgba(0,0,0,.7);
  transform: rotate(var(--rot));
}
.w1-enc i { position: absolute; left: 50%; top: 9%; width: .5cqw; height: 30%; margin-left: -.25cqw; border-radius: .3cqw; background: #e6e6ea; }
.w1-enc:active, .w1-enc:focus-visible { box-shadow: 0 0 0 .5cqw var(--cyn), 0 .6cqw 1.2cqw rgba(0,0,0,.7); }
.w1-pad {
  --pc: #444; border: 0; border-radius: 1.2cqw; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--pc) 10%, #131316);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, #24242a), 0 .35cqw 0 #000;
  transition: background .07s, box-shadow .07s;
}
.w1-pad.tint { background: color-mix(in srgb, var(--pc) 52%, #141417); }
.w1-pad.on { background: var(--pc); box-shadow: inset 0 -1cqw 2cqw rgba(0,0,0,.16), 0 0 2.6cqw color-mix(in srgb, var(--pc) 60%, transparent), 0 .35cqw 0 #000; }
.w1-pad.down { transform: translateY(.25cqw); filter: brightness(1.25); }

/* l'écran */
.w1-screen {
  position: absolute; inset: 11% 7% 7.5%; display: flex; flex-direction: column; gap: .7cqw; color: #fff;
  font: 700 max(6px, 1.6cqw) / 1.15 "Atkinson Hyperlegible", system-ui, sans-serif;
}
.w1-screen button { font: inherit; color: inherit; cursor: pointer; border: 0; padding: 0; background: none; touch-action: manipulation; }
.w1s-head { display: flex; align-items: flex-end; gap: 1cqw; min-height: 3.6cqw; }
.w1s-head > b { font-size: 1.12em; margin-right: auto; white-space: nowrap; }
.w1s-main, .w1s-bpm { display: flex !important; flex-direction: column; align-items: flex-start; color: #ff9a4a !important; line-height: 1.05; }
.w1s-head small, .w1s-bar small, .w1s-dim small { color: #fff; font-size: .78em; letter-spacing: .02em; }
.w1s-bpm { border-radius: .4cqw; }
.w1s-ico { width: 2.8cqw; height: 2.8cqw; border-radius: .5cqw !important; background: #fff !important; color: #000 !important; display: grid !important; place-items: center; font-size: 1.1em !important; }
.w1s-mic { width: 2.8cqw; height: 2.8cqw; border-radius: .5cqw; background: #fff; display: grid; place-items: center; }
.w1s-mic i { width: 1cqw; height: 1.5cqw; border-radius: .5cqw; background: #000; box-shadow: 0 0 0 .2cqw #fff, 0 .45cqw 0 -.05cqw #000; }
.w1s-mic.on { background: #ff9a4a; }
.w1s-shift { align-self: center; background: var(--cyn); color: #000; padding: .1em .4em; border-radius: .3cqw; }
.w1s-tool { background: #24242a !important; border-radius: .4cqw; padding: .25em .55em !important; font-size: .82em !important; white-space: nowrap; }
.w1s-tool.on { background: #fff !important; color: #000 !important; }
.w1s-pages { display: flex; gap: .4cqw; }
.w1s-cols { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 0; }
.w1s-colg { display: flex; flex-direction: column; align-items: center; gap: .45cqw; padding: 0 .5cqw; border-left: 1px solid #333; min-width: 0; }
.w1s-colg:first-child { border-left: 0; }
.w1s-colg > b { font-size: 2.1em; line-height: 1; display: flex; align-items: center; gap: .2em; }
.w1s-colg > small { font-size: .75em; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: .3cqw; }
.w1s-colg.empty { opacity: .35; }
.w1s-cols.compact .w1s-colg { gap: .3cqw; }
.w1s-cols.compact .w1s-colg > b { font-size: 1.35em; }
.w1s-cols.compact .w1s-colg > small { display: none; }
.w1s-cols.compact .w1s-it { padding: .15em .35em !important; }
.w1s-lock { font-style: normal; font-size: .45em; }
.w1s-tag { display: block; width: 100%; text-align: center; border-radius: .35cqw; padding: .4em 0 !important; font-size: .85em !important; color: #000 !important; opacity: .32; white-space: nowrap; overflow: hidden; }
.w1s-tag.cy { background: #3ce0ef !important; } .w1s-tag.li { background: #a6e23a !important; } .w1s-tag.pk { background: #e940d0 !important; }
.w1s-tag.on { opacity: 1; box-shadow: 0 0 1.2cqw rgba(255,255,255,.35); }
.w1s-dim { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; width: 100%; color: #ff9a4a; font-size: 1.3em; line-height: 1.05; }
.w1s-dim.zero { color: #ff6b6b; }
.w1s-fxtop { display: flex; gap: .6cqw; }
.w1s-let { flex: 1; text-align: center; border-radius: .35cqw; background: #1c1c20; color: #666; padding: .1em 0; }
.w1s-let.on { background: #fff; color: #000; }
.w1s-let.other { background: #3a3a40; color: #aaa; }
.w1s-types { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .6cqw; min-height: 0; }
.w1s-types.nine { grid-template-columns: repeat(3, 1fr); }
.w1s-type { border: 1px solid #34343a !important; border-radius: .5cqw; background: #121215 !important; color: #ddd !important; padding: 0 .3em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w1s-type.on { background: #ff9a4a !important; color: #000 !important; border-color: #ff9a4a !important; }
.w1s-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6cqw; border-top: 1px solid #2a2a2f; padding-top: .5cqw; }
.w1s-bar span { display: flex; flex-direction: column; color: #ff9a4a; font-size: 1.05em; line-height: 1.1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w1s-bar span.alt { color: #3ce0ef; }
.w1s-feats { display: flex; gap: .6cqw; }
.w1s-it { width: 100%; display: flex !important; align-items: center; gap: .35em; padding: .25em .35em !important; border-radius: .35cqw; background: #1c1c20 !important; font-size: .82em !important; white-space: nowrap; overflow: hidden; text-align: left; }
.w1s-it i { width: .8em; height: .8em; border-radius: .15em; flex: none; }
.w1s-it.on { background: #fff !important; color: #000 !important; }
.w1s-presets { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .5cqw; min-height: 0; }
.w1s-pre { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; border-radius: .4cqw; background: #1a1a1e !important; color: #666 !important; font-size: .78em !important; padding: 0 .4em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.05; }
.w1s-pre small { font-size: .8em; opacity: .7; }
.w1s-pre.full { background: color-mix(in srgb, var(--pc) 38%, #1a1a1e) !important; color: #fff !important; }
.w1s-pre.on { background: var(--pc) !important; color: #000 !important; }
.w1s-big { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; text-align: center; color: #ccc; position: relative; }
.w1s-big b { color: #fff; font-size: 2.2em; }
.w1s-big.live b { color: #ff9a4a; text-shadow: 0 0 1.5cqw #ff9a4a; }
.w1s-beat { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #333; }
.w1s-beat.on { background: #ff9a4a; box-shadow: 0 0 1.5cqw #ff9a4a; }
.w1s-flashcols { display: flex; justify-content: space-between; color: #888; font-size: .8em; }
.w1s-flash { position: absolute; left: -4%; right: -4%; bottom: -3%; padding: .4em; text-align: center; background: #ff9a4a; color: #000; letter-spacing: .08em; }

/* sous la console */
.w1-info { min-height: 2.8em; margin: 0; max-width: 560px; padding: 6px 12px; border-radius: 10px; text-align: center; color: var(--muted); font-size: 15px; border: 1px solid transparent; }
.w1-info.warn { color: var(--amb); border-color: color-mix(in srgb, var(--amb) 45%, transparent); background: color-mix(in srgb, var(--amb) 8%, transparent); }
.w1-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.w1-tools .slider-row { flex: 1 1 100%; grid-template-columns: 10em 1fr 4em; }
.w1-page { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.rig-layout { display: flex; flex-direction: column; gap: 16px; }
.rig-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 980px) {
  .rig-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: start; gap: 20px; }
  .rig-left { position: sticky; top: 90px; }
}
