/* ==========================================================================
   Composants : en-tête, deck DJ, cartes Discord, catalogue, fiche, parcours
   ========================================================================== */

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-stuck {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: .25rem; list-style: none; }
.nav__list a {
  display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none;
  color: var(--text-soft); font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--text); background: var(--surface-2); }
.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--text-soft); transition: color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; }
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* ---------- Puces d'action (maquettes) ---------- */
.chip-btn {
  min-height: 2.5rem; padding: .4rem .95rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: .65rem;
  font-weight: 600; font-size: .88rem;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.chip-btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--surface); }
.chip-btn:active:not(:disabled) { transform: translateY(1px); }
.chip-btn:disabled { opacity: .45; cursor: not-allowed; }
.chip-btn--primary { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.chip-btn--primary:hover:not(:disabled) { background: var(--amber); filter: brightness(1.1); }
.chip-btn[aria-pressed="true"]:not(.chip-btn--primary) { background: var(--emerald-soft); color: var(--emerald); }

.seg { display: inline-flex; background: var(--surface-2); border-radius: .75rem; padding: .22rem; gap: .15rem; max-width: 100%; }
.seg button {
  background: transparent; border: 0; border-radius: .55rem; padding: .4rem .8rem;
  font-weight: 600; font-size: .85rem; color: var(--text-soft); min-height: 2.2rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--amber); box-shadow: var(--shadow-1); }

/* ---------- Deck DJ ---------- */
.deck {
  background: var(--surface-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow-2);
  display: grid; gap: 1rem;
}
.deck__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.deck__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.deck__room { color: var(--text-faint); font-size: .75rem; }
.deck__now { display: flex; gap: 1rem; align-items: center; }
.deck__art {
  --label: var(--amber);
  flex: none; width: 4.25rem; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg) 0 7%, var(--label) 8% 28%, transparent 29%),
    repeating-radial-gradient(circle, hsl(220 8% 8%) 0 2px, hsl(220 8% 15%) 2px 4px);
  box-shadow: 0 6px 18px -6px hsl(0 0% 0% / .7);
  animation: spin 7s linear infinite;
}
.deck.is-paused .deck__art, .deck.is-paused .eq i { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.deck__meta { min-width: 0; flex: 1; }
.deck__track { font-weight: 700; font-size: 1.05rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck__sub { color: var(--text-soft); font-size: .85rem; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 1.6rem; margin-top: .5rem; }
.eq i { flex: 1; max-width: 6px; height: 100%; background: var(--amber); border-radius: 2px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-duration: .8s; } .eq i:nth-child(3n) { animation-duration: 1.4s; }
.eq i:nth-child(1) { animation-delay: -.1s; } .eq i:nth-child(2) { animation-delay: -.5s; } .eq i:nth-child(3) { animation-delay: -.3s; }
.eq i:nth-child(4) { animation-delay: -.8s; } .eq i:nth-child(5) { animation-delay: -.2s; } .eq i:nth-child(6) { animation-delay: -.6s; }
.eq i:nth-child(7) { animation-delay: -.4s; } .eq i:nth-child(8) { animation-delay: -.9s; } .eq i:nth-child(9) { animation-delay: -.7s; } .eq i:nth-child(10) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.deck__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.deck__mix { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.meter__head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-soft); margin-bottom: .35rem; font-weight: 600; }
.meter__track { height: .6rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter__fill { height: 100%; width: 100%; background: var(--amber); border-radius: inherit; transform-origin: left; transform: scaleX(var(--lvl, 1)); transition: transform var(--meter-dur, .7s) var(--ease); }
.deck__pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pad {
  display: grid; place-items: center; text-align: center; min-height: 3rem; padding: .5rem .3rem; background: var(--surface-2); border: 1px solid var(--line);
  border-bottom: 3px solid var(--line-strong); border-radius: .7rem; font-weight: 700; font-size: .82rem; color: var(--text);
  transition: transform .12s, background-color .2s, color .2s;
}
.pad:hover { background: var(--surface); }
.pad:active, .pad.is-firing { transform: translateY(2px); border-bottom-width: 1px; background: var(--amber); color: var(--amber-ink); }
.deck__status { font-size: .8rem; color: var(--text-faint); min-height: 1.3em; }

/* ---------- Cartes « Discord » (maquettes) ---------- */
.dc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-1); display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; align-content: start; min-width: 0;
}
.dc-card__who { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-soft); flex-wrap: wrap; }
.dc-card__who strong { color: var(--text); }
.dc-card__kicker { color: var(--text-faint); font-size: .75rem; }
.dc-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.dc-card__text { font-size: .9rem; color: var(--text-soft); }
.dc-card__count { font-size: .85rem; font-weight: 600; color: var(--emerald); }
.dc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.dc-avatar { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--emerald); color: hsl(160 60% 8%); font-weight: 800; font-size: .8rem; }
.dice-result { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-height: 2.6rem; }
.die {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .5rem;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem;
  animation: pop .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.die.is-drop { opacity: .4; text-decoration: line-through; }
.die.is-max { color: var(--amber); }
@keyframes pop { from { transform: scale(.4) rotate(-25deg); opacity: 0; } }
.dice-total { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--amber); letter-spacing: -.02em; line-height: 1; }
.dice-total small { font-family: var(--font-body); font-size: .7rem; color: var(--text-faint); font-weight: 600; display: block; text-align: right; letter-spacing: .06em; text-transform: uppercase; }
.dice-form { display: flex; gap: .5rem; }
.dice-input {
  flex: 1; min-width: 0; min-height: 2.5rem; padding: .3rem .75rem; background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: .65rem; color: var(--text);
}
.dice-input:focus-visible { outline-offset: 1px; }
.dice-err { color: var(--ruby); font-size: .85rem; }

/* ---------- Catalogue ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: var(--space-5); }
.search {
  flex: 1 1 18rem; display: flex; align-items: center; gap: .7rem; padding: 0 1rem; min-height: 3.25rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-faint);
  transition: border-color .2s;
}
.search:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; border-color: transparent; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 1rem; color: var(--text); }
.search input::placeholder { color: var(--text-faint); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }

.poles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-5); }
.pole {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem; min-height: 2.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--text-soft);
  transition: color .2s, background-color .2s, border-color .2s, transform .2s var(--ease);
}
.pole:hover { color: var(--text); transform: translateY(-1px); border-color: var(--line-strong); }
.pole__n { font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); }
.pole__c { font-family: var(--font-mono); font-size: .72rem; padding: .05rem .4rem; border-radius: .35rem; background: var(--surface-2); color: var(--text-faint); }
.pole[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.pole[aria-pressed="true"] .pole__n { color: inherit; opacity: .7; }
.pole[aria-pressed="true"] .pole__c { background: hsl(0 0% 0% / .15); color: inherit; }

.results { font-size: .9rem; color: var(--text-faint); margin-bottom: var(--space-4); min-height: 1.4em; }
.results strong { color: var(--text); }
.pole-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: var(--space-5); padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.pole-head:first-child { margin-top: 0; }
.pole-head h3 { font-size: var(--step-2); }
.pole-head p { color: var(--text-soft); font-size: .95rem; }
.pole-head .mono { color: var(--amber); font-size: .8rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); gap: 1rem; }
.fcard {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.25rem 1.25rem 1.1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, box-shadow .35s;
  animation: fadeUp .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 25ms);
}
.fcard::before { /* texture : voile de grain propre à la carte */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); opacity: .035; pointer-events: none; mix-blend-mode: overlay;
}
.fcard:hover, .fcard:focus-within { transform: translateY(-4px); background: var(--surface-2); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(.75rem); } }
.fcard__top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.fcard__pole { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
.fcard h3 { font-size: 1.12rem; line-height: 1.25; }
.fcard__link { all: unset; cursor: pointer; }
.fcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fcard__link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.fcard__desc { color: var(--text-soft); font-size: .93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fcard__roles { display: flex; gap: .3rem; flex-wrap: wrap; }
.fcard__more { font-size: .85rem; font-weight: 700; color: var(--amber); display: inline-flex; gap: .3rem; align-items: center; transition: gap .25s var(--ease); }
.fcard:hover .fcard__more { gap: .6rem; }
mark { background: var(--amber-soft); color: var(--amber); border-radius: .2rem; padding: 0 .1em; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-soft); display: grid; gap: 1rem; justify-items: center; }

/* ---------- Fiche détaillée (dialog) ---------- */
.dialog {
  width: min(100% - 1.5rem, 44rem); max-height: min(90vh, 52rem); padding: 0; border: 1px solid var(--line-strong);
  border-radius: var(--radius-l); background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-2); overflow: hidden;
}
.dialog[open] { animation: dlgIn .35s var(--ease); display: flex; flex-direction: column; }
.dialog::backdrop { background: hsl(220 15% 3% / .7); backdrop-filter: blur(6px); animation: fade .3s; }
:root[data-theme="light"] .dialog::backdrop { background: hsl(30 30% 20% / .45); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(1.5rem) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.dialog__panel { overflow-y: auto; padding: clamp(1.4rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; overscroll-behavior: contain; }
.dlg__close { position: absolute; top: .9rem; right: .9rem; z-index: 2; background: var(--bg-raised); }
.dlg__badges { display: flex; gap: .4rem; flex-wrap: wrap; padding-right: 3rem; }
.dlg__title { font-size: var(--step-3); padding-right: 2.5rem; }
.dlg__desc { color: var(--text-soft); font-size: var(--step-1); line-height: 1.55; }
.dlg__block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.2rem; }
.dlg__block h3 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: .6rem; font-weight: 600; }
.dlg__block p { color: var(--text); }
.dlg__flow { list-style: none; counter-reset: s; display: grid; gap: .6rem; }
.dlg__flow li { counter-increment: s; display: grid; grid-template-columns: 1.75rem 1fr; gap: .75rem; align-items: start; }
.dlg__flow li::before { content: counter(s); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--surface-2); font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--amber); }
.dlg__cmds { display: flex; flex-wrap: wrap; gap: .5rem; }
.cmd {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem; min-height: 2.4rem;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: .55rem; color: var(--text);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500; transition: background-color .2s, color .2s;
}
.cmd:hover { background: var(--surface-2); }
.cmd.is-copied { color: var(--emerald); }
.cmd small { font-family: var(--font-body); color: var(--text-faint); font-size: .72rem; }
.dlg__tags { font-size: .85rem; color: var(--text-faint); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 300;
  max-width: min(92vw, 30rem); padding: .8rem 1.2rem; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: .8rem; box-shadow: var(--shadow-2); font-weight: 600; font-size: .93rem;
}
.toast:not([hidden]) { animation: toastIn .4s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 1rem); } }

/* ---------- Parcours (showcase) ---------- */
.showcase { display: grid; gap: 1.5rem; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.tab {
  text-align: left; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  display: grid; gap: .25rem; transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.tab:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tab__n { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .08em; }
.tab__t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.tab__d { font-size: .85rem; color: var(--text-soft); line-height: 1.4; }
.tab[aria-selected="true"] { background: var(--amber); border-color: transparent; color: var(--amber-ink); }
.tab[aria-selected="true"] .tab__n, .tab[aria-selected="true"] .tab__d { color: inherit; opacity: .8; }

.tabpanel { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.tabpanel[hidden] { display: none; }
.stepper { list-style: none; display: grid; gap: .5rem; counter-reset: st; }
.stepper button {
  counter-increment: st; width: 100%; text-align: left; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start;
  padding: .85rem 1rem; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: background-color .25s, border-color .25s;
}
.stepper button::before { content: counter(st); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.stepper button:hover { background: var(--surface); }
.stepper button[aria-current="step"] { background: var(--surface); border-color: var(--line-strong); }
.stepper button[aria-current="step"]::before { background: var(--amber); color: var(--amber-ink); }
.stepper strong { display: block; font-size: .98rem; line-height: 1.3; }
.stepper span { display: block; font-size: .84rem; color: var(--text-soft); line-height: 1.45; margin-top: .15rem; }

.stagebox { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-2); overflow: hidden; }
.stagebox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stagebox__bar .mono { color: var(--text-faint); font-size: .75rem; }
.stagebox__body { padding: 1.25rem; min-height: 24rem; display: grid; align-content: start; gap: .9rem; }
.stagebox__body > * { animation: fadeUp .45s var(--ease) backwards; }
.stagebox__caption { color: var(--text-soft); font-size: .9rem; border-top: 1px solid var(--line); padding: .85rem 1.25rem; min-height: 4.2rem; }

/* Éléments de maquette « Discord » */
.dm-cmd { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: .7rem; font-family: var(--font-mono); font-size: .9rem; }
.dm-cmd::before { content: "/"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: .35rem; background: var(--surface-2); color: var(--amber); font-weight: 700; }
.dm-cmd span { color: var(--text); }
.dm-cmd em { color: var(--text-faint); font-style: normal; }
.dm-msg { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; }
.dm-av { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--amber-ink); background: var(--amber); font-family: var(--font-display); }
.dm-av--em { background: var(--emerald); color: hsl(160 60% 8%); }
.dm-av--sky { background: var(--sky); color: hsl(210 60% 10%); }
.dm-name { font-weight: 700; font-size: .95rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dm-name .tag { font-family: var(--font-mono); font-size: .65rem; padding: .08rem .35rem; border-radius: .25rem; background: var(--emerald-soft); color: var(--emerald); font-weight: 600; letter-spacing: .04em; }
.dm-name small { color: var(--text-faint); font-weight: 500; font-size: .75rem; }
.dm-text { color: var(--text-soft); font-size: .93rem; }
.dm-embed { margin-top: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1rem; display: grid; gap: .45rem; }
.dm-embed h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.dm-embed p { font-size: .88rem; color: var(--text-soft); margin: 0; }
.dm-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; }
.dm-kv dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; }
.dm-kv dd { font-size: .9rem; font-weight: 600; margin: 0; }
.dm-btns { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .35rem; }
.dm-btn { min-height: 2.1rem; padding: .25rem .8rem; border: 0; border-radius: .5rem; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .83rem; cursor: default; }
.dm-btn--ok { background: var(--emerald); color: hsl(160 60% 8%); }
.dm-btn--warn { background: var(--amber); color: var(--amber-ink); }
.dm-btn--no { background: var(--ruby-soft); color: var(--ruby); }
.dm-btn.is-hot { outline: 2px solid var(--amber); outline-offset: 2px; }
.dm-select { display: flex; justify-content: space-between; align-items: center; padding: .6rem .85rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: .6rem; font-size: .88rem; color: var(--text-soft); }
.dm-select::after { content: "▾"; color: var(--text-faint); }
.dm-modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: .9rem; padding: 1.1rem; display: grid; gap: .8rem; }
.dm-modal h4 { font-family: var(--font-display); margin: 0; font-size: 1.1rem; }
.dm-field label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; margin-bottom: .25rem; }
.dm-field div { padding: .55rem .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: .5rem; font-size: .9rem; min-height: 2.3rem; }
.dm-list { list-style: none; display: grid; gap: .4rem; font-size: .9rem; }
.dm-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .7rem; background: var(--bg); border-radius: .5rem; }
.dm-list li span:last-child { color: var(--emerald); font-weight: 700; white-space: nowrap; }
.vote-bar { height: .5rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: .25rem; }
.vote-bar i { display: block; height: 100%; background: var(--emerald); border-radius: inherit; }
.mini-deck { display: grid; gap: .7rem; }
.mini-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.cfg-health { display: grid; gap: .4rem; }
.cfg-health__bar { height: .7rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cfg-health__bar i { display: block; height: 100%; background: var(--emerald); border-radius: inherit; transition: width .5s var(--ease); }
.cfg-toggles { display: grid; gap: .45rem; }
.cfg-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .8rem; background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; font-size: .9rem; font-weight: 600; width: 100%; text-align: left; }
.sw { position: relative; flex: none; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: var(--surface-2); transition: background-color .25s; }
.sw::after { content: ""; position: absolute; top: .18rem; left: .2rem; width: 1.09rem; height: 1.09rem; border-radius: 50%; background: var(--text-soft); transition: transform .25s var(--ease), background-color .25s; }
.cfg-row[aria-pressed="true"] .sw { background: var(--emerald); }
.cfg-row[aria-pressed="true"] .sw::after { transform: translateX(1.1rem); background: hsl(160 60% 8%); }

/* Avant / Après */
.pains { list-style: none; display: grid; gap: .6rem; }
.pains li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; padding: .75rem .9rem; background: var(--ruby-soft); border-radius: .7rem; font-size: .92rem; color: var(--text); }
.pains li::before { content: "✕"; color: var(--ruby); font-weight: 800; }
.pains-total { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem .2rem 0; border-top: 1px solid var(--line); font-weight: 700; }
.pains-total strong { color: var(--ruby); font-family: var(--font-display); font-size: 1.4rem; }
.gains-total strong { color: var(--emerald); }

/* Démo du ducking (parcours audio) */
.meter__fill--demo { animation: duckdemo 4.2s var(--ease) infinite; transform-origin: left; }
@keyframes duckdemo {
  0%, 12% { transform: scaleX(1); }
  18%, 52% { transform: scaleX(.4); }
  75%, 100% { transform: scaleX(1); }
}
.no-anim .fcard { animation: none; }
