/* ==========================================================================
   ZOUFF! — Institut de Bruitothérapie
   Direction : cabinet de nuit, émail crème, papier administratif, néons.
   ========================================================================== */

:root {
  --ink: #111015;
  --ink-2: #1b1922;
  --ink-3: #262230;
  --paper: #f4edde;
  --paper-2: #e9dfca;
  --paper-3: #d8cbb2;
  --paper-4: #fbf6ea;
  --lime: #d9ff4a;
  --pink: #ff5b9e;
  --cyan: #75e9ff;
  --violet: #c6afff;
  --orange: #ffad57;
  --red: #e8412f;
  --green: #8cf5b5;
  --bg: #111015;
  --muted: rgba(244, 237, 222, 0.64);
  --line: rgba(244, 237, 222, 0.14);
  --page-text: var(--paper);
  --page-muted: var(--muted);
  --page-faint: rgba(244, 237, 222, 0.45);
  --page-hint: rgba(244, 237, 222, 0.47);
  --page-line: var(--line);
  --page-chrome-bg: rgba(244, 237, 222, 0.045);
  --page-chrome-bg-hover: rgba(244, 237, 222, 0.09);
  --page-chrome-border: rgba(244, 237, 222, 0.23);
  --page-chrome-strong: rgba(244, 237, 222, 0.52);
  --page-ghost-border: rgba(244, 237, 222, 0.36);
  --page-accent: var(--lime);
  --page-cool: var(--cyan);
  --page-focus: var(--cyan);
  --page-shadow: rgba(0, 0, 0, 0.42);
  --page-ambient: rgba(244, 237, 222, 0.085);
  --page-ambient-fresh: rgba(217, 255, 74, 0.15);
  --grain-opacity: 0.055;
  --console-gradient: linear-gradient(150deg, #fcf7ec 0%, #eee4cf 46%, #e2d6bd 100%);
  --seismo-bg: #f4edde;
  --seismo-paper: #faf4e6;
  --bg-glow: radial-gradient(44vw 46vw at 6% 8%, rgba(255, 91, 158, 0.22), transparent 68%),
    radial-gradient(40vw 42vw at 96% 10%, rgba(217, 255, 74, 0.16), transparent 70%),
    radial-gradient(56vw 48vw at 62% 100%, rgba(117, 233, 255, 0.12), transparent 70%),
    radial-gradient(32vw 32vw at 52% 44%, rgba(198, 175, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 26%);
  --display: "Arial Black", "Arial Bold", "Helvetica Neue", Impact, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  --body: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3ebdc;
  --ink: #191821;
  --ink-2: #25212b;
  --ink-3: #2f2a36;
  --paper: #fbf6ea;
  --paper-2: #f2e9d8;
  --paper-3: #ded2bb;
  --paper-4: #fffaf0;
  --page-text: #1b1822;
  --page-muted: rgba(27, 24, 34, 0.74);
  --page-faint: rgba(27, 24, 34, 0.6);
  --page-hint: rgba(27, 24, 34, 0.64);
  --page-line: rgba(27, 24, 34, 0.18);
  --page-chrome-bg: rgba(27, 24, 34, 0.05);
  --page-chrome-bg-hover: rgba(27, 24, 34, 0.085);
  --page-chrome-border: rgba(27, 24, 34, 0.26);
  --page-chrome-strong: rgba(27, 24, 34, 0.6);
  --page-ghost-border: rgba(27, 24, 34, 0.32);
  --page-accent: #5f6b00;
  --page-cool: #0f6b78;
  --page-focus: #c2185b;
  --page-shadow: rgba(27, 24, 34, 0.22);
  --page-ambient: rgba(27, 24, 34, 0.07);
  --page-ambient-fresh: rgba(95, 107, 0, 0.18);
  --grain-opacity: 0.03;
  --console-gradient: linear-gradient(150deg, #fffdf8 0%, #f8f0e2 46%, #e8dbc4 100%);
  --seismo-bg: #ece2cf;
  --seismo-paper: #fffaf0;
  --bg-glow: radial-gradient(44vw 46vw at 6% 8%, rgba(255, 91, 158, 0.12), transparent 68%),
    radial-gradient(40vw 42vw at 96% 10%, rgba(164, 180, 20, 0.14), transparent 70%),
    radial-gradient(56vw 48vw at 62% 100%, rgba(43, 160, 180, 0.1), transparent 70%),
    radial-gradient(32vw 32vw at 52% 44%, rgba(198, 175, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 28%);
}

html[data-theme="sepia"] {
  color-scheme: light;
  --bg: #e8d6b4;
  --ink: #2b2117;
  --ink-2: #3a2c20;
  --ink-3: #4a3829;
  --paper: #f3e6c9;
  --paper-2: #e8d7b6;
  --paper-3: #d1bb97;
  --paper-4: #f8ecd2;
  --page-text: #2d2218;
  --page-muted: rgba(45, 34, 24, 0.74);
  --page-faint: rgba(45, 34, 24, 0.6);
  --page-hint: rgba(45, 34, 24, 0.64);
  --page-line: rgba(45, 34, 24, 0.22);
  --page-chrome-bg: rgba(45, 34, 24, 0.055);
  --page-chrome-bg-hover: rgba(45, 34, 24, 0.095);
  --page-chrome-border: rgba(45, 34, 24, 0.28);
  --page-chrome-strong: rgba(45, 34, 24, 0.62);
  --page-ghost-border: rgba(45, 34, 24, 0.34);
  --page-accent: #8a4a1f;
  --page-cool: #2f6b5a;
  --page-focus: #8a4a1f;
  --page-shadow: rgba(45, 34, 24, 0.25);
  --page-ambient: rgba(45, 34, 24, 0.09);
  --page-ambient-fresh: rgba(138, 74, 31, 0.2);
  --grain-opacity: 0.045;
  --console-gradient: linear-gradient(150deg, #fbf1da 0%, #eddcb8 46%, #ddc79b 100%);
  --seismo-bg: #e2cfab;
  --seismo-paper: #f8ecd2;
  --bg-glow: radial-gradient(44vw 46vw at 6% 8%, rgba(160, 84, 60, 0.13), transparent 68%),
    radial-gradient(40vw 42vw at 96% 10%, rgba(138, 110, 40, 0.14), transparent 70%),
    radial-gradient(56vw 48vw at 62% 100%, rgba(47, 107, 90, 0.09), transparent 70%),
    radial-gradient(32vw 32vw at 52% 44%, rgba(120, 80, 50, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 245, 220, 0.22), transparent 28%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  font-size: 106.25%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-x: clip;
  isolation: isolate;
  color: var(--page-text);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background: var(--bg-glow);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--page-focus);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1500;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Décor : les mots fantômes et le couloir
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.ambient span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--page-ambient);
  transform: rotate(var(--r));
  animation: ambientDrift var(--dur) ease-in-out var(--delay) infinite alternate;
}

.ambient span.is-fresh {
  -webkit-text-stroke-color: var(--page-ambient-fresh);
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-12px, -8px, 0) rotate(var(--r));
  }
  to {
    transform: translate3d(18px, 14px, 0) rotate(calc(var(--r) + 2deg));
  }
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 20;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--pink);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(-5deg);
}

.brand__mark i {
  position: absolute;
  top: -9px;
  right: -8px;
  color: var(--pink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: normal;
  text-shadow: 1px 1px 0 var(--ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__word {
  color: var(--page-text);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand__word span {
  color: var(--pink);
}

.brand__tag {
  color: var(--page-muted);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--page-muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(217, 255, 74, 0.5);
  animation: livePulse 2.1s ease-out infinite;
}

.live__clock {
  margin-left: 2px;
  color: var(--page-faint);
  letter-spacing: 0.04em;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 255, 74, 0.45);
  }
  65%,
  100% {
    box-shadow: 0 0 0 8px rgba(217, 255, 74, 0);
  }
}

.tool,
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  color: var(--page-text);
  background: var(--page-chrome-bg);
  border: 1px solid var(--page-chrome-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tool:hover,
.sound:hover {
  background: var(--page-chrome-bg-hover);
  border-color: var(--page-chrome-strong);
}

.tool:active,
.sound:active {
  transform: scale(0.97);
}

.tool__icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--page-cool);
}

.tool__icon svg {
  width: 100%;
  height: 100%;
}

.tool__label,
.sound__label {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.voice__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--lime);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.voice__icon svg {
  width: 100%;
  height: 100%;
}

.sound.is-muted .voice__icon {
  color: var(--page-muted);
  opacity: 0.45;
}

.sound__eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 16px;
}

.sound__eq i {
  width: 2px;
  height: 12px;
  border-radius: 99px;
  background: var(--lime);
  transform-origin: center;
  animation: soundBar 0.52s ease-in-out infinite alternate;
}

.sound__eq i:nth-child(1) {
  height: 8px;
  animation-delay: -0.36s;
}

.sound__eq i:nth-child(2) {
  height: 13px;
  animation-delay: -0.12s;
}

.sound__eq i:nth-child(3) {
  height: 10px;
  animation-delay: -0.28s;
}

.sound__eq i:nth-child(4) {
  height: 6px;
  animation-delay: -0.04s;
}

@keyframes soundBar {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}

.sound.is-muted {
  color: var(--page-muted);
  border-color: var(--page-line);
}

.sound.is-muted .sound__eq i {
  background: var(--page-muted);
  opacity: 0.45;
  animation-play-state: paused;
  transform: scaleY(0.22);
}

/* Thème : nuit / jour / sépia */

.theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  color: var(--page-text);
  background: var(--page-chrome-bg);
  border: 1px solid var(--page-chrome-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme:hover {
  background: var(--page-chrome-bg-hover);
  border-color: var(--page-chrome-strong);
}

.theme:active {
  transform: scale(0.97);
}

.theme__icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--page-accent);
}

.theme__icon svg {
  display: none;
  width: 100%;
  height: 100%;
}

html[data-theme="dark"] .theme__icon--dark,
html[data-theme="light"] .theme__icon--light,
html[data-theme="sepia"] .theme__icon--sepia {
  display: block;
}

.theme__label {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme__dots {
  display: inline-flex;
  gap: 2px;
}

.theme__dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
}

.theme__dots i.is-on {
  background: var(--page-accent);
  opacity: 1;
}


/* --------------------------------------------------------------------------
   Page / héros
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  padding: clamp(20px, 4vh, 44px) 0 clamp(58px, 8vh, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(470px, 0.96fr);
  align-items: center;
  gap: clamp(34px, 4.6vw, 70px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 740px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(18px, 3vh, 28px);
  color: var(--page-accent);
  font-family: var(--mono);
  font-size: clamp(0.55rem, 0.8vw, 0.64rem);
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__cross {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--ink);
  background: var(--pink);
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1;
  transform: rotate(-6deg);
}

.eyebrow__pill {
  padding: 4px 8px;
  color: var(--page-text);
  border: 1px solid var(--page-chrome-border);
  border-radius: 99px;
  font-size: 0.9em;
  letter-spacing: 0.07em;
}

.hero__title {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  margin: 0 0 clamp(34px, 5vh, 46px);
  font-family: var(--display);
  font-size: clamp(5rem, 9.3vw, 9.6rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.77;
  text-transform: uppercase;
}

.hero__word {
  position: relative;
  display: inline-block;
  color: var(--page-text);
  text-shadow:
    4px 4px 0 var(--pink),
    8px 8px 0 var(--page-shadow),
    0 0 80px rgba(244, 237, 222, 0.06);
}

.hero__bang {
  position: relative;
  display: inline-block;
  margin-left: 0.04em;
  color: var(--page-accent);
  font-size: 1.06em;
  line-height: 0.8;
  text-shadow:
    4px 4px 0 var(--pink),
    7px 7px 0 var(--page-shadow);
  transform-origin: 30% 80%;
  animation: bangPop 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes bangPop {
  0%,
  84%,
  100% {
    transform: rotate(7deg) scale(1);
  }
  88% {
    transform: rotate(-2deg) scale(1.14);
  }
  92% {
    transform: rotate(10deg) scale(0.98);
  }
  96% {
    transform: rotate(5deg) scale(1.04);
  }
}

.hero__squiggle {
  position: absolute;
  left: 2%;
  bottom: -25px;
  width: 86%;
  height: 22px;
  color: var(--page-accent);
  overflow: visible;
}

.hero__squiggle path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawSquiggle 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawSquiggle {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__tagline {
  max-width: 580px;
  margin: 0 0 13px;
  font-size: clamp(1.12rem, 1.5vw, 1.36rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.42;
}

.mark {
  display: inline-block;
  padding: 0 0.26em 0.04em;
  color: var(--ink);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 0.2em;
  box-shadow: 2px 2px 0 var(--lime);
  font-weight: 900;
  transform: rotate(-1.8deg);
}

.hero__sub {
  max-width: 530px;
  margin: 0 0 clamp(22px, 3.6vh, 30px);
  color: var(--page-muted);
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
  line-height: 1.6;
}

.hero__intake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  max-width: 680px;
  margin-bottom: 18px;
}

/* Ticket de salle d'attente */

.ticket {
  position: relative;
  padding: 13px 14px 12px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(17, 16, 21, 0.035) 23px 24px),
    var(--paper);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.42);
  transform: rotate(-1.2deg);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.ticket::before {
  left: -9px;
}

.ticket::after {
  right: -9px;
}

.ticket__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(17, 16, 21, 0.4);
  font-family: var(--mono);
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ticket__top span:last-child {
  text-align: right;
  opacity: 0.6;
}

.ticket__label {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.19em;
  opacity: 0.55;
  text-transform: uppercase;
}

.ticket__number {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ticket__number::after {
  content: "NON REMBOURSÉ";
  margin-left: 12px;
  padding: 2px 4px;
  color: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 2px;
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  vertical-align: middle;
  transform: rotate(-6deg);
  display: inline-block;
}

.ticket__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ticket__meta span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0.65;
}

.ticket__meta strong {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: -0.02em;
  opacity: 1;
}

.ticket__barcode {
  height: 19px;
  margin: 9px 0 7px;
  opacity: 0.72;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px,
    var(--ink) 8px 11px,
    transparent 11px 13px
  );
}

.ticket__foot {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.39rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 12px 18px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.14s ease,
    border-color 0.14s ease;
}

.btn--primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--pink);
}

.btn--primary:hover {
  box-shadow: 8px 8px 0 var(--pink);
  transform: translate(-2px, -2px) rotate(-0.5deg);
}

.btn--primary:active {
  box-shadow: 1px 1px 0 var(--pink);
  transform: translate(4px, 4px);
}

.btn--ghost {
  color: var(--page-text);
  background: var(--page-chrome-bg);
  border-color: var(--page-ghost-border);
}

.btn--ghost:hover {
  background: var(--page-chrome-bg-hover);
  border-color: var(--page-chrome-strong);
  transform: translateY(-2px);
}

.btn--small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--pink);
}

.btn--small.btn--ghost {
  box-shadow: none;
}

.keycap {
  padding: 4px 7px;
  color: var(--ink);
  background: rgba(17, 16, 21, 0.08);
  border: 1px solid rgba(17, 16, 21, 0.34);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.05em;
}

.chaos__icon {
  font-size: 1.1rem;
  line-height: 0.7;
}

.btn--ghost[aria-pressed="true"] {
  color: var(--ink);
  background: var(--pink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--cyan);
  animation: chaosNudge 0.32s ease-in-out infinite alternate;
}

.console .btn--ghost {
  color: var(--ink);
  background: rgba(17, 16, 21, 0.03);
  border-color: rgba(17, 16, 21, 0.36);
}

.console .btn--ghost:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.console .btn--ghost[aria-pressed="true"] {
  color: var(--ink);
  background: var(--pink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--cyan);
}

@keyframes chaosNudge {
  from {
    transform: rotate(-0.8deg);
  }
  to {
    transform: rotate(0.8deg) scale(1.012);
  }
}

.hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--page-hint);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.hint__arrow {
  color: var(--pink);
  font-size: 0.9rem;
}

.hint__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hint__item + .hint__item::before {
  content: "·";
  margin-right: 5px;
  opacity: 0.5;
}

.hint__sep {
  opacity: 0.5;
}

.hint kbd {
  display: inline-block;
  min-width: 18px;
  padding: 2px 5px;
  color: var(--page-text);
  background: var(--page-chrome-bg);
  border: 1px solid var(--page-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.53rem;
  line-height: 1.2;
  text-align: center;
}

.shared {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  max-width: 680px;
  margin-top: 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed var(--pink);
  border-radius: 5px;
  transform: rotate(-0.5deg);
}

.shared[hidden] {
  display: none;
}

.shared p {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shared strong {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   La machine : console en émail
   -------------------------------------------------------------------------- */

.console {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14px 14px, rgba(17, 16, 21, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(17, 16, 21, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 14px calc(100% - 14px), rgba(17, 16, 21, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(17, 16, 21, 0.16) 0 2px, transparent 3px),
    var(--console-gradient);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    10px 10px 0 rgba(0, 0, 0, 0.36),
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(17, 16, 21, 0.12);
  transform: rotate(0.35deg);
  transition: box-shadow 0.3s ease;
}

.console::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px dashed rgba(17, 16, 21, 0.16);
  border-radius: 12px;
}

.screw {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(17, 16, 21, 0.55);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 43%, rgba(17, 16, 21, 0.55) 43% 57%, transparent 57%),
    radial-gradient(circle at 35% 30%, #fff, #c9bda6 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.screw--tl {
  top: 9px;
  left: 9px;
}

.screw--tr {
  top: 9px;
  right: 9px;
}

.screw--bl {
  bottom: 9px;
  left: 9px;
}

.screw--br {
  right: 9px;
  bottom: 9px;
}

.console__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 3px 11px;
  border-bottom: 1px solid rgba(17, 16, 21, 0.18);
}

.console__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.43rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.console__kicker span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px rgba(255, 91, 158, 0.8);
}

.console__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.58rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.console__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.eq {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 58px;
  height: 30px;
  padding: 0 9px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 99px;
  box-shadow: 2px 2px 0 rgba(17, 16, 21, 0.25);
}

.eq i {
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--lime);
  transform: scaleY(0.22);
  transform-origin: bottom;
}

.console.is-live .eq i {
  animation: eqDance 0.48s ease-in-out infinite alternate;
}

.eq i:nth-child(2) {
  height: 21px;
  background: var(--pink);
  animation-delay: -0.18s !important;
}

.eq i:nth-child(3) {
  height: 12px;
  animation-delay: -0.32s !important;
}

.eq i:nth-child(4) {
  height: 18px;
  background: var(--cyan);
  animation-delay: -0.08s !important;
}

.eq i:nth-child(5) {
  height: 9px;
  animation-delay: -0.25s !important;
}

@keyframes eqDance {
  from {
    transform: scaleY(0.18);
  }
  to {
    transform: scaleY(1);
  }
}

.console__serial {
  color: #776d5a;
  font-family: var(--mono);
  font-size: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tabs {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 4px;
  margin: 11px 0 9px;
  padding: 4px;
  background: rgba(17, 16, 21, 0.065);
  border: 1px solid rgba(17, 16, 21, 0.18);
  border-radius: 8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 5px;
  color: #5f5748;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.tab span {
  padding: 1px 4px;
  color: #6b6252;
  background: rgba(17, 16, 21, 0.08);
  border-radius: 99px;
  font-size: 0.4rem;
}

.tab:hover {
  background: rgba(17, 16, 21, 0.07);
}

.tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--pink);
}

.tab[aria-selected="true"] span {
  color: var(--ink);
  background: var(--lime);
}

.console__panels {
  position: relative;
}

.panel {
  min-height: 478px;
  animation: panelIn 0.2s ease both;
}

.panel[hidden] {
  display: none;
}

.panel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 6px 0 3px;
}

.pad {
  position: relative;
  min-height: 75px;
  padding: 9px 9px 8px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--pad, var(--paper));
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.pad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image: repeating-linear-gradient(
    116deg,
    transparent 0 16px,
    rgba(17, 16, 21, 0.12) 16px 17px
  );
}

.pad:hover {
  filter: saturate(1.08);
  transform: translateY(-3px) rotate(-0.6deg);
  box-shadow: 0 7px 0 var(--ink);
}

.pad:nth-child(even):hover {
  transform: translateY(-3px) rotate(0.6deg);
}

.pad:active,
.pad.is-playing {
  transform: translateY(3px) scale(0.992);
  box-shadow: 0 1px 0 var(--ink);
}

.pad.is-playing {
  animation: padHit 0.2s ease;
}

@keyframes padHit {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.pad__idx {
  position: absolute;
  top: 7px;
  right: 8px;
  font-family: var(--mono);
  font-size: 0.44rem;
  font-weight: 700;
  opacity: 0.45;
}

.pad__word {
  display: block;
  padding-right: 16px;
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.35vw, 1.12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.pad__desc {
  display: block;
  max-width: 94%;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  opacity: 0.63;
  text-transform: uppercase;
}

.pad__corner {
  position: absolute;
  right: -6px;
  bottom: -11px;
  width: 29px;
  height: 29px;
  border: 2px solid rgba(17, 16, 21, 0.17);
  border-radius: 50%;
}

.pad:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}

.pad--note {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: rgba(17, 16, 21, 0.6);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(17, 16, 21, 0.045) 0 6px,
      transparent 6px 12px
    ),
    var(--paper-2);
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}

.pad--note::before {
  opacity: 0.1;
}

.pad--note:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

.pad--note .pad__word {
  padding-right: 0;
  font-size: 0.78rem;
  letter-spacing: -0.03em;
}

.pad--note .pad__desc {
  max-width: 100%;
  margin-top: 0;
  font-size: 0.4rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Carte sonore
   -------------------------------------------------------------------------- */

.map-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 6px;
}

.map {
  position: relative;
  height: 386px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(217, 255, 74, 0.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(217, 255, 74, 0.045) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 50% 50%, #1a2b24 0%, #0d1512 58%, #070b09 100%);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow:
    inset 0 0 50px rgba(117, 233, 255, 0.08),
    inset 0 0 0 1px rgba(217, 255, 74, 0.08);
  cursor: crosshair;
  touch-action: manipulation;
}

.map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.45;
}

.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.map__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(217, 255, 74, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map__ring--1 {
  width: 26%;
  height: 26%;
}

.map__ring--2 {
  width: 54%;
  height: 54%;
}

.map__ring--3 {
  width: 82%;
  height: 82%;
}

.map__axis {
  position: absolute;
  background: rgba(217, 255, 74, 0.1);
  pointer-events: none;
}

.map__axis--x {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.map__axis--y {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.map__nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  background: var(--node);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.38),
    0 0 14px color-mix(in srgb, var(--node) 55%, transparent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.node::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--node);
  border-radius: 50%;
  opacity: 0.28;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.node:hover,
.node:focus-visible {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.28);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.42),
    0 0 22px var(--node);
}

.node:hover::before,
.node:focus-visible::before {
  opacity: 0.8;
  transform: scale(1.18);
}

.node.is-near {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.42),
    0 0 24px var(--node);
}

.node.is-hit {
  animation: nodeHit 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes nodeHit {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.55);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.node:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.node__label {
  position: absolute;
  top: 23px;
  left: 50%;
  padding: 1px 4px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}

.node:hover .node__label,
.node:focus-visible .node__label,
.node.is-near .node__label {
  opacity: 1;
}

.map__ripples {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ripple {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12px;
  height: 12px;
  border: 2px solid var(--pop);
  border-radius: 50%;
  opacity: 0.9;
  transform: translate(-50%, -50%);
  animation: mapRipple 0.85s ease-out forwards;
}

@keyframes mapRipple {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

.map__corner {
  position: absolute;
  z-index: 4;
  color: rgba(217, 255, 74, 0.45);
  font-family: var(--mono);
  font-size: 0.38rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  pointer-events: none;
}

.map__corner--tl {
  top: 7px;
  left: 8px;
}

.map__corner--br {
  right: 8px;
  bottom: 7px;
  max-width: 45%;
  text-align: right;
}

.map__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.map__readout {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin: 0;
}

.map__readout span {
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.39rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map__readout strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-btn {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(17, 16, 21, 0.45);
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.14s ease, color 0.14s ease;
}

.chip-btn:hover {
  color: var(--paper);
  background: var(--ink);
}

.panel__hint {
  margin: 6px 2px 0;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.43rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Orchestre
   -------------------------------------------------------------------------- */

.orchestra {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 464px;
  padding-top: 6px;
  justify-content: space-between;
}

.lcd {
  position: relative;
  padding: 10px 11px 9px;
  overflow: hidden;
  color: var(--lime);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 20%, #1a2b1c 0%, #0a0f0b 70%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow:
    inset 0 0 26px rgba(217, 255, 74, 0.08),
    inset 0 0 0 1px rgba(217, 255, 74, 0.12);
}

.lcd__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(217, 255, 74, 0.55);
  font-family: var(--mono);
  font-size: 0.39rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
  margin: 9px 0 8px;
}

.steps i {
  height: 26px;
  background: rgba(217, 255, 74, 0.08);
  border: 1px solid rgba(217, 255, 74, 0.15);
  border-radius: 2px;
  transition: background 0.08s ease, box-shadow 0.08s ease;
}

.steps i.is-on {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(217, 255, 74, 0.8);
}

.steps i.is-pink {
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255, 91, 158, 0.8);
}

.steps i.is-beat {
  border-color: rgba(217, 255, 74, 0.4);
}

.lcd__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lcd__status::after {
  content: "_";
  animation: lcdBlink 1s steps(2, end) infinite;
}

@keyframes lcdBlink {
  50% {
    opacity: 0;
  }
}

.orchestra__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.orchestra__controls .btn {
  width: 100%;
}

.setlist {
  padding: 7px 9px 6px;
  background: var(--paper-4);
  border: 1px dashed rgba(17, 16, 21, 0.35);
  border-radius: 3px;
}

.setlist__label {
  margin: 0 0 3px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.38rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setlist__items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.setlist__items li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.setlist__items li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c, #6b6252);
}

.setlist__items li.is-empty {
  color: #6b6252;
}

.setlist__items li.is-empty::before {
  display: none;
}

.orchestra .panel__hint {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Bas de la machine
   -------------------------------------------------------------------------- */

.console__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  padding: 9px 10px;
  color: var(--paper);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px),
    var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
}

.readout,
.dose {
  min-width: 0;
  margin: 0;
}

.readout span,
.dose span {
  display: block;
  margin-bottom: 2px;
  color: rgba(244, 237, 222, 0.42);
  font-family: var(--mono);
  font-size: 0.38rem;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.readout strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dose {
  text-align: right;
}

.dose strong {
  display: inline-block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.dose strong.bump {
  animation: countBump 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.dose em {
  margin-left: 3px;
  color: rgba(244, 237, 222, 0.45);
  font-family: var(--mono);
  font-size: 0.38rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes countBump {
  0% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.18);
    color: var(--pink);
  }
  100% {
    transform: scale(1);
  }
}

.rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 3px 3px 0 var(--pink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rx-btn:hover {
  box-shadow: 5px 5px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.rx-btn:active {
  box-shadow: 1px 1px 0 var(--pink);
  transform: translate(2px, 2px);
}

.rx-btn__arrow {
  font-size: 0.7rem;
}

body.is-chaos .console {
  box-shadow:
    0 34px 100px rgba(255, 91, 158, 0.18),
    10px 10px 0 rgba(0, 0, 0, 0.36),
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(17, 16, 21, 0.12);
}

body.is-chaos .console::before {
  border-color: rgba(255, 91, 158, 0.34);
}

body.is-chaos .ambient span {
  animation-duration: 5s !important;
}

body.is-chaos .hero__bang {
  animation-duration: 1.8s;
}

body.is-chaos .eq i {
  animation-duration: 0.3s;
}

/* --------------------------------------------------------------------------
   Bande de soins (sismographe)
   -------------------------------------------------------------------------- */

.seismo {
  position: relative;
  z-index: 3;
  margin-top: 4px;
  padding: 15px 0 13px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(17, 16, 21, 0.025) 0 1px, transparent 1px 4px),
    var(--seismo-bg);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transform: rotate(-0.35deg) scale(1.008);
}

.seismo__head,
.seismo__legend {
  width: min(1360px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.seismo__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.seismo__kicker {
  margin: 0 0 2px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.43rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.seismo__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.seismo__rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seismo__rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: recPulse 1.4s ease-out infinite;
}

@keyframes recPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 65, 47, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(232, 65, 47, 0);
  }
}

.seismo__paper {
  position: relative;
  width: min(1360px, calc(100% - 32px));
  height: 166px;
  margin: 9px auto 0;
  overflow: hidden;
  background: var(--seismo-paper);
  border: 2px solid var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(17, 16, 21, 0.1),
    inset 0 8px 18px rgba(17, 16, 21, 0.05);
}

.seismo__paper::before,
.seismo__paper::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 9px;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--ink) 1.4px, transparent 1.8px);
  background-size: 13px 9px;
  background-repeat: repeat-x;
  opacity: 0.55;
}

.seismo__paper::before {
  top: -1px;
}

.seismo__paper::after {
  bottom: -1px;
}

#seismo {
  display: block;
  width: 100%;
  height: 100%;
}

.seismo__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 7px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 12px 28px;
  color: var(--page-faint);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.footer p {
  margin: 0 0 4px;
}

.footer__strong {
  color: var(--page-text);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.footer__col--end {
  text-align: right;
}

.footer span {
  color: var(--pink);
}

.linkish {
  padding: 0;
  color: var(--pink);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 91, 158, 0.45);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}

.linkish:hover {
  color: var(--page-accent);
  border-color: var(--page-accent);
}

.linkish.is-armed {
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Scène : mots projetés
   -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
}

.burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}

.burst__word {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.38em 0.58em 0.32em;
  color: var(--ink);
  background: var(--pop);
  border: 3px solid var(--ink);
  border-radius: 11px;
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(1.12rem, 3.2vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--rot));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  animation: wordBurst 1.4s cubic-bezier(0.16, 1, 0.3, 1) var(--delay) forwards;
}

.burst--outline .burst__word {
  padding: 0.05em 0.09em;
  color: var(--pop);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow:
    3px 3px 0 var(--ink),
    6px 6px 0 rgba(0, 0, 0, 0.25);
}

.burst--big .burst__word {
  font-size: clamp(1.9rem, 6.1vw, 4rem);
  border-width: 4px;
  box-shadow: 8px 8px 0 var(--ink);
}

/* Chaque soin a sa physique */

.burst--zouff .burst__word {
  animation-name: zouffBurst;
  animation-duration: 1.15s;
  border-radius: 4px;
}

.burst--doudouw .burst__word {
  border-radius: 24px;
  font-family: var(--body);
  letter-spacing: -0.02em;
  animation-name: doudouwBurst;
  animation-duration: 1.55s;
}

.burst--shizzle .burst__word {
  border-radius: 3px;
  font-style: italic;
  animation-name: shizzleBurst;
  animation-duration: 1.35s;
}

.burst--nizzle .burst__word {
  border-radius: 3px;
  animation-name: nizzleBurst;
  animation-duration: 1.05s;
}

.burst--brooow .burst__word {
  border-radius: 3px;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  animation-name: brooowBurst;
  animation-duration: 1.9s;
}

.burst--douwap .burst__word {
  border-radius: 14px 4px 14px 4px;
  animation-name: douwapBurst;
  animation-duration: 1.45s;
}

.burst--bretzel .burst__word {
  border-radius: 20px 4px 20px 4px;
  animation-name: bretzelBurst;
  animation-duration: 1.35s;
}

.burst--touwoutap .burst__word {
  border-radius: 2px;
  letter-spacing: -0.065em;
  animation-name: touwoutapBurst;
  animation-duration: 1.3s;
}

.burst--fikiprauoow .burst__word {
  border-radius: 2px;
  letter-spacing: -0.06em;
  animation-name: fikiprauoowBurst;
  animation-duration: 1.45s;
}

.burst--fuzz .burst__word {
  border-radius: 2px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
  animation-name: fuzzBurst;
  animation-duration: 1.2s;
}

.burst--wopadiz .burst__word {
  border-radius: 6px;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: none;
  animation-name: wopadizBurst;
  animation-duration: 1.6s;
}

.burst--plouf .burst__word {
  padding: 0.5em 0.7em;
  border-radius: 50%;
  animation-name: ploufBurst;
  animation-duration: 1.5s;
}

.burst--bzzzt .burst__word {
  border-radius: 1px;
  font-family: var(--mono);
  animation-name: bzzztBurst;
  animation-duration: 1.08s;
}

.burst--bloup .burst__word {
  padding: 0.5em 0.7em;
  border-radius: 50%;
  animation-name: bloupBurst;
  animation-duration: 1.6s;
}

.burst--wouch .burst__word {
  border-radius: 3px;
  animation-name: wouchBurst;
  animation-duration: 1.1s;
}

.burst--splatch .burst__word {
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
  animation-name: splatchBurst;
  animation-duration: 1.5s;
}

@keyframes wordBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -34%) rotate(var(--rot)) scale(0.32);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.08);
  }
  21% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1);
  }
  67% {
    opacity: 1;
    transform: translate(-50%, -55%) rotate(calc(var(--rot) * 0.75)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.6)) scale(1.02);
  }
}

@keyframes zouffBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -38%) rotate(calc(var(--rot) - 8deg)) scale(0.2);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 2deg)) scale(1.18);
  }
  24% {
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1);
  }
  62% {
    opacity: 1;
    transform: translate(calc(-50% + 5px), calc(-50% - 10px)) rotate(calc(var(--rot) + 1deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.35)) scale(0.94);
  }
}

@keyframes doudouwBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.2, 0.2);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -52%) rotate(calc(var(--rot) - 3deg)) scale(1.18, 0.82);
  }
  30% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 2deg)) scale(0.9, 1.12);
  }
  42% {
    transform: translate(-50%, -51%) rotate(var(--rot)) scale(1.04, 0.96);
  }
  55% {
    transform: translate(-50%, -52%) rotate(calc(var(--rot) - 1deg)) scale(0.98, 1.02);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -56%) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.5)) scale(0.96);
  }
}

@keyframes shizzleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 20deg)) scale(0.1);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 4deg)) scale(1.14);
  }
  34% {
    opacity: 0.65;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 2deg)) scale(1);
  }
  46% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -54%) rotate(calc(var(--rot) + 8deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) + 26deg)) scale(0.72);
  }
}

@keyframes nizzleBurst {
  0% {
    opacity: 0;
    transform: translate(calc(-50% - 70px), -50%) rotate(calc(var(--rot) - 10deg)) scale(0.8);
  }
  16% {
    opacity: 1;
    transform: translate(calc(-50% + 14px), -50%) rotate(calc(var(--rot) + 3deg)) scale(1.16);
  }
  28% {
    transform: translate(calc(-50% - 5px), -50%) rotate(var(--rot)) scale(1);
  }
  36% {
    transform: translate(calc(-50% + 4px), -50%) rotate(calc(var(--rot) - 2deg)) scale(1);
  }
  64% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.4)) scale(0.94);
  }
}

@keyframes brooowBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 48px)) rotate(calc(var(--rot) + 4deg)) scale(0.7, 0.8);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.06, 1.08);
  }
  34% {
    transform: translate(-50%, calc(-50% + 6px)) rotate(var(--rot)) scale(1.1, 0.86);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, calc(-50% + 16px)) rotate(calc(var(--rot) - 1deg)) scale(1.04, 1.12);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + 95px))
      rotate(calc(var(--rot) * 1.2)) scale(1.16, 1.5);
    filter: blur(1.5px);
  }
}

@keyframes douwapBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 14deg)) scale(0.4);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 8deg)) scale(1.12);
  }
  36% {
    transform: translate(calc(-50% - 6px), -50%) rotate(calc(var(--rot) - 5deg)) scale(0.96);
  }
  54% {
    transform: translate(calc(-50% + 6px), calc(-50% - 6px)) rotate(calc(var(--rot) + 4deg)) scale(1.02);
  }
  74% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 12px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 2)) scale(0.9);
  }
}

@keyframes bretzelBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 30deg)) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 10deg)) scale(1.16);
  }
  38% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 7deg)) scale(1);
  }
  56% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 4deg)) scale(1);
  }
  74% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 10px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) - 22deg)) scale(0.86);
  }
}

@keyframes touwoutapBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.3);
  }
  12% {
    opacity: 1;
    transform: translate(calc(-50% - 8px), -50%) rotate(calc(var(--rot) - 2deg)) scale(1.1);
  }
  20% {
    transform: translate(calc(-50% + 7px), -50%) rotate(calc(var(--rot) + 2deg)) scale(1);
  }
  28% {
    transform: translate(calc(-50% - 5px), -50%) rotate(calc(var(--rot) - 1deg)) scale(1);
  }
  36% {
    transform: translate(calc(-50% + 4px), -50%) rotate(var(--rot)) scale(1);
  }
  44% {
    transform: translate(calc(-50% - 2px), -50%) rotate(var(--rot)) scale(1);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 9px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.3)) scale(0.94);
  }
}

@keyframes fikiprauoowBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.1);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 4deg)) scale(1.22);
  }
  24% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 3deg)) scale(0.94);
  }
  32% {
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 2deg)) scale(1.08);
  }
  40% {
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 11px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.4)) scale(1.3);
  }
}

@keyframes fuzzBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.6);
  }
  10% {
    opacity: 1;
    transform: translate(calc(-50% - 5px), -50%) rotate(calc(var(--rot) + 1deg)) scale(1.08);
  }
  18% {
    transform: translate(calc(-50% + 6px), calc(-50% - 2px)) rotate(calc(var(--rot) - 1deg)) scale(1);
  }
  26% {
    transform: translate(calc(-50% - 4px), calc(-50% + 2px)) rotate(calc(var(--rot) + 1deg)) scale(1);
  }
  34% {
    transform: translate(calc(-50% + 3px), -50%) rotate(var(--rot)) scale(1);
  }
  42% {
    opacity: 0.65;
  }
  48% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.5)) scale(0.9);
  }
}

@keyframes wopadizBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 12deg)) scale(0.3);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 6deg)) scale(1.1);
  }
  38% {
    transform: translate(calc(-50% + 8px), calc(-50% - 4px)) rotate(calc(var(--rot) - 4deg)) scale(1);
  }
  58% {
    transform: translate(calc(-50% - 8px), calc(-50% - 8px)) rotate(calc(var(--rot) + 4deg)) scale(1);
  }
  78% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 14px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 2)) scale(0.9);
  }
}

@keyframes ploufBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 110px)) rotate(var(--rot)) scale(0.5);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.12, 0.78);
  }
  40% {
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.9, 1.14);
  }
  52% {
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.02, 0.97);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 9px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.3)) scale(0.9);
  }
}

@keyframes bzzztBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.4);
    text-shadow: none;
  }
  12% {
    opacity: 1;
    transform: translate(calc(-50% - 6px), -50%) rotate(calc(var(--rot) - 2deg)) scale(1.12);
    text-shadow: 3px 0 var(--cyan), -3px 0 var(--pink);
  }
  20% {
    transform: translate(calc(-50% + 7px), calc(-50% - 2px)) rotate(calc(var(--rot) + 2deg)) scale(1);
    text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink);
  }
  28% {
    transform: translate(calc(-50% - 5px), calc(-50% + 2px)) rotate(calc(var(--rot) - 1deg)) scale(1);
    text-shadow: 2px 0 var(--lime), -2px 0 var(--cyan);
  }
  36% {
    transform: translate(calc(-50% + 4px), -50%) rotate(var(--rot)) scale(1);
    text-shadow: none;
  }
  62% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.2)) scale(1.1);
    text-shadow: none;
  }
}

@keyframes bloupBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.2);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 3deg)) scale(1.14);
  }
  30% {
    transform: translate(calc(-50% + 4px), calc(-50% - 6px)) rotate(calc(var(--rot) + 2deg)) scale(1);
  }
  48% {
    transform: translate(calc(-50% - 3px), calc(-50% - 16px)) rotate(calc(var(--rot) - 1deg)) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(calc(-50% + 2px), calc(-50% - 30px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.5)) scale(0.7);
  }
}

@keyframes wouchBurst {
  0% {
    opacity: 0;
    transform: translate(calc(-50% - 140px), -50%) rotate(calc(var(--rot) - 6deg)) scale(0.7);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.06);
  }
  38% {
    transform: translate(calc(-50% + 18px), calc(-50% - 8px)) rotate(calc(var(--rot) + 6deg)) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(calc(-50% + 90px), calc(-50% - 18px)) rotate(calc(var(--rot) + 10deg)) scale(0.96);
    filter: blur(0.4px);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + 190px), calc(-50% - 24px)) rotate(calc(var(--rot) + 18deg)) scale(0.72);
    filter: blur(2px);
  }
}

@keyframes splatchBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) + 18deg)) scale(0.2);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--rot) - 4deg)) scale(1.35, 0.72);
  }
  30% {
    transform: translate(calc(-50% - 4px), -50%) rotate(calc(var(--rot) + 2deg)) scale(1.05, 0.98);
  }
  48% {
    transform: translate(calc(-50% + 3px), calc(-50% + 3px)) rotate(calc(var(--rot) - 1deg)) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8px)) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y)))
      rotate(calc(var(--rot) * 1.8)) scale(0.86);
  }
}

.burst__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border: 3px solid var(--pop);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: burstRing 0.52s ease-out var(--delay) forwards;
}

@keyframes burstRing {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.burst__particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--pop);
  border: 2px solid var(--ink);
  border-radius: var(--shape);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: particleFly 0.62s cubic-bezier(0.15, 0.7, 0.32, 1) var(--particle-delay) forwards;
}

@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1)
      rotate(210deg);
  }
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 700;
  max-width: min(92vw, 500px);
  padding: 9px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Tampon
   -------------------------------------------------------------------------- */

.stamp-overlay {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
}

.stamp-overlay.is-on {
  animation: stampOverlay 1.9s ease forwards;
}

.stamp {
  padding: 16px 26px 13px;
  color: var(--red);
  border: 5px solid var(--red);
  outline: 2px solid var(--red);
  outline-offset: 6px;
  background: rgba(17, 16, 21, 0.72);
  box-shadow: 0 0 50px rgba(232, 65, 47, 0.2);
  font-family: var(--display);
  font-size: clamp(1.1rem, 4vw, 2.2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-11deg);
}

.stamp strong {
  display: block;
}

.stamp span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: clamp(0.5rem, 1.2vw, 0.62rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stamp-overlay.is-on .stamp {
  animation: stampSlam 1.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes stampOverlay {
  0%,
  100% {
    opacity: 0;
  }
  8%,
  78% {
    opacity: 1;
  }
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scale(1.6);
  }
  12% {
    opacity: 1;
    transform: rotate(-11deg) scale(0.94);
  }
  20% {
    transform: rotate(-11deg) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Feuilles / dialogues
   -------------------------------------------------------------------------- */

.sheet {
  width: min(1020px, calc(100vw - 36px));
  max-height: min(90vh, 920px);
  margin: auto;
  padding: 18px;
  overflow: auto;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(17, 16, 21, 0.025) 27px 28px),
    var(--paper);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.42),
    0 40px 120px rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
}

.sheet::backdrop {
  background: rgba(8, 7, 11, 0.74);
  backdrop-filter: blur(5px);
}

.sheet--rx {
  width: min(790px, calc(100vw - 36px));
}

.sheet__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 10px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.sheet__kicker {
  margin: 0 0 3px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sheet__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.close-btn {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.close-btn:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(90deg);
}

.sheet__sub {
  max-width: 78ch;
  margin: 10px 0 14px;
  color: #4f483c;
  font-size: 0.84rem;
  line-height: 1.55;
}

.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 16, 21, 0.35);
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.46rem;
  line-height: 1.5;
}

.sheet__foot p {
  margin: 0;
}

.sheet :focus-visible {
  outline-color: var(--ink);
}

/* Dictionnaire */

.dico-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dico-card {
  align-self: start;
  border: 1px solid rgba(17, 16, 21, 0.3);
  border-left: 7px solid var(--c);
  border-radius: 3px;
  background: var(--paper-4);
  box-shadow: 2px 2px 0 rgba(17, 16, 21, 0.12);
}

.dico-card:nth-child(3n + 2) {
  transform: rotate(0.25deg);
}

.dico-card:nth-child(3n) {
  transform: rotate(-0.2deg);
}

.dico-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  list-style: none;
  cursor: pointer;
}

.dico-card summary::-webkit-details-marker {
  display: none;
}

.dico-card__word {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.dico-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dico-card__danger {
  color: var(--c);
  letter-spacing: 0.08em;
}

.dico-card__plus {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.dico-card[open] .dico-card__plus {
  color: var(--pink);
}

.dico-card__body {
  padding: 0 10px 10px;
  border-top: 1px dashed rgba(17, 16, 21, 0.22);
}

.dico-card__definition {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.4;
}

.dico-card__body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.dico-card__body dt {
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.38rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.dico-card__body dd {
  margin: 0;
}

.dico-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dico-card__actions .btn {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 0.46rem;
  box-shadow: 2px 2px 0 var(--pink);
}

.dico-card__actions .btn--ghost {
  color: var(--ink);
  border-color: rgba(17, 16, 21, 0.45);
  background: transparent;
}

.dico-card__actions .btn--ghost:hover {
  color: var(--paper);
  background: var(--ink);
}

/* Traducteur */

.translate-form {
  display: grid;
  gap: 7px;
}

.translate-form label {
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.translate-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  color: var(--ink);
  background: var(--paper-4);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

.translate-form textarea::placeholder {
  color: rgba(17, 16, 21, 0.4);
}

.translate-form .btn {
  justify-self: start;
}

.translate-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 4px;
}

.example {
  padding: 4px 7px;
  color: #4f483c;
  background: transparent;
  border: 1px dashed rgba(17, 16, 21, 0.4);
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.42rem;
  line-height: 1.3;
  text-align: left;
}

.example:hover {
  color: var(--paper);
  background: var(--ink);
  border-style: solid;
}

.translate-out {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 2px dashed rgba(17, 16, 21, 0.4);
}

.translate-out[hidden] {
  display: none;
}

.translate-out__label {
  margin: 0 0 4px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.translate-out__text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.translate-out__gloss {
  margin: 7px 0 0;
  color: #6b6252;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.4;
}

.translate-out__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.translate-out__actions .btn--ghost {
  color: var(--ink);
  border-color: rgba(17, 16, 21, 0.45);
  background: transparent;
}

.translate-out__actions .btn--ghost:hover {
  color: var(--paper);
  background: var(--ink);
}

/* Ordonnance */

.rx-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin: 10px 0 12px;
}

.rx-controls label {
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rx-controls input {
  width: 190px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--paper-4);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.rx-controls__hint {
  flex-basis: 100%;
  margin-top: 2px;
  color: #6b6252;
  font-family: var(--mono);
  font-size: 0.4rem;
  line-height: 1.3;
}

.rx-paper {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(17, 16, 21, 0.035) 26px 27px),
    var(--paper-4);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 16, 21, 0.08);
}

.rx-paper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 3px double var(--ink);
}

.rx-paper__clinic {
  margin: 0;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.rx-paper__service {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rx-paper__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.4rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.rx-paper__title {
  margin: 14px 0 2px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.rx-paper__sub {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rx-paper__patient {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.48rem;
  text-transform: uppercase;
}

.rx-paper__patient strong {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.rx-paper__items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(17, 16, 21, 0.3);
}

.rx-paper__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(17, 16, 21, 0.28);
}

.rx-paper__item strong {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.rx-paper__item strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--c, var(--pink));
  border: 1px solid var(--ink);
  vertical-align: 2px;
}

.rx-paper__item em {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 0.4rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rx-paper__item span {
  grid-column: 1 / -1;
  color: #5a5346;
  font-size: 0.66rem;
  line-height: 1.35;
}

.rx-paper__advice {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

.rx-paper__sign {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.rx-paper__signature {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1;
  transform: rotate(-2deg);
}

.rx-paper__doctor {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rx-paper__barcode {
  width: 42%;
  height: 28px;
  opacity: 0.75;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 6px,
    transparent 6px 9px,
    var(--ink) 9px 10px,
    transparent 10px 13px
  );
}

.rx-paper__stamp {
  position: absolute;
  right: 22px;
  bottom: 58px;
  padding: 7px 11px;
  color: var(--red);
  border: 3px solid var(--red);
  outline: 1px solid var(--red);
  outline-offset: 3px;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.82;
  transform: rotate(-9deg);
}

.rx-paper__stamp small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.34rem;
  letter-spacing: 0.08em;
}

.rx-paper__foot {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(17, 16, 21, 0.25);
  font-family: var(--mono);
  font-size: 0.36rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.rx-actions .btn--ghost {
  color: var(--ink);
  border-color: rgba(17, 16, 21, 0.45);
  background: transparent;
}

.rx-actions .btn--ghost:hover {
  color: var(--paper);
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.95fr);
    gap: 36px;
  }

  .hero__intake {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .hero__actions {
    flex-direction: column;
  }
}

@media (max-width: 1080px) {
  .theme__label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: clamp(38px, 6vw, 60px);
    padding-top: 24px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__intake {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    max-width: 660px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .console {
    width: min(100%, 720px);
    justify-self: center;
    transform: rotate(0.25deg);
  }

  .ambient span {
    font-size: clamp(4rem, 13vw, 8rem);
  }
}

@media (max-width: 1020px) {
  .live {
    display: none;
  }
}

@media (max-width: 860px) {
  .live {
    display: none;
  }

  .tool__label {
    display: none;
  }

  .tool {
    width: 38px;
    justify-content: center;
    padding: 7px;
  }

  .panel {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .topbar,
  .page,
  .footer,
  .seismo__head,
  .seismo__legend {
    width: calc(100% - 28px);
  }

  .topbar {
    padding-top: 14px;
    gap: 12px;
  }

  .brand__tag {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .topbar__actions {
    gap: 6px;
  }

  .tool,
  .sound {
    width: 34px;
    min-height: 34px;
    padding: 6px;
    justify-content: center;
  }

  .sound__label {
    display: none;
  }

  .tool__icon {
    width: 16px;
    height: 16px;
  }

  .theme {
    width: 34px;
    min-height: 34px;
    padding: 6px;
    justify-content: center;
  }

  .theme__label,
  .theme__dots {
    display: none;
  }

  .hero {
    gap: 34px;
    padding: 18px 0 48px;
  }

  .hero__title {
    margin-bottom: 34px;
    font-size: clamp(4.1rem, 20vw, 6.4rem);
  }

  .hero__squiggle {
    bottom: -19px;
    height: 18px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 0.53rem;
  }

  .hero__tagline {
    max-width: 34ch;
    font-size: 1.06rem;
  }

  .hero__sub {
    margin-bottom: 22px;
    font-size: 0.9rem;
  }

  .hero__intake {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .ticket {
    transform: rotate(-0.8deg);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .keycap {
    margin-left: auto;
  }

  .hint {
    font-size: 0.53rem;
  }

  .console {
    padding: 13px;
    border-radius: 14px;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.5),
      6px 6px 0 rgba(0, 0, 0, 0.34);
  }

  .console::before {
    inset: 5px;
    border-radius: 10px;
  }

  .console__top {
    padding-bottom: 9px;
  }

  .console__kicker {
    font-size: 0.38rem;
  }

  .console__title {
    font-size: 1.2rem;
  }

  .eq {
    width: 50px;
    height: 27px;
    padding: 0 7px;
  }

  .tabs {
    margin: 9px 0 8px;
  }

  .tab {
    min-height: 29px;
    font-size: 0.44rem;
  }

  .tab span {
    display: none;
  }

  .pad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pad {
    min-height: 68px;
    padding: 8px 8px 7px;
  }

  .pad__word {
    font-size: 0.96rem;
  }

  .pad__desc {
    font-size: 0.42rem;
  }

  .pad--note {
    display: none;
  }

  .map {
    height: 300px;
  }

  .node {
    width: 17px;
    height: 17px;
  }

  .node__label {
    display: none;
  }

  .map__corner--br {
    max-width: 60%;
    font-size: 0.33rem;
  }

  .steps i {
    height: 22px;
  }

  .orchestra {
    min-height: 0;
  }

  .console__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .rx-btn {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 32px;
  }

  .readout strong {
    max-width: 190px;
    font-size: 0.7rem;
  }

  .dose strong {
    font-size: 1.05rem;
  }

  .seismo {
    padding: 11px 0 10px;
  }

  .seismo__paper {
    width: calc(100% - 16px);
    height: 128px;
  }

  .seismo__title {
    font-size: 1rem;
  }

  .seismo__legend {
    font-size: 0.38rem;
  }

  .footer {
    grid-template-columns: 1fr;
    padding-top: 20px;
    font-size: 0.47rem;
  }

  .footer__col--end {
    text-align: left;
  }

  .toast {
    bottom: calc(13px + env(safe-area-inset-bottom));
    font-size: 0.56rem;
  }

  .sheet {
    width: calc(100vw - 18px);
    max-height: 92vh;
    padding: 13px;
  }

  .sheet--rx {
    width: calc(100vw - 18px);
  }

  .dico-grid {
    grid-template-columns: 1fr;
  }

  .sheet__title {
    font-size: 1.12rem;
  }

  .sheet__sub {
    font-size: 0.78rem;
  }

  .rx-paper {
    padding: 13px 12px;
  }

  .rx-paper__head {
    flex-direction: column;
    gap: 7px;
  }

  .rx-paper__meta {
    text-align: left;
  }

  .rx-paper__stamp {
    right: 12px;
    bottom: 52px;
    font-size: 0.5rem;
  }

  .rx-paper__barcode {
    width: 38%;
    height: 22px;
  }

  .stamp {
    padding: 12px 16px 10px;
    border-width: 4px;
    font-size: 1.12rem;
  }
}

@media (max-width: 400px) {
  .eyebrow__pill {
    display: none;
  }

  .topbar {
    gap: 8px;
  }

  .topbar__actions {
    gap: 4px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .brand__word {
    font-size: 1.04rem;
  }

  .tool,
  .sound,
  .theme {
    width: 30px;
    min-height: 30px;
    padding: 5px;
  }

  .tool__icon,
  .theme__icon {
    width: 15px;
    height: 15px;
  }

  .sound__eq {
    width: 16px;
  }

  .hero__title {
    font-size: 19.5vw;
  }

  .console__title {
    font-size: 1.04rem;
  }

  .ticket__number {
    font-size: 2.1rem;
  }

  .ticket__number::after {
    font-size: 0.4rem;
  }

  .pad__desc {
    max-width: 100%;
  }

  .map {
    height: 270px;
  }
}

/* --------------------------------------------------------------------------
   Mode calme
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient span,
  .eyebrow__cross,
  .brand__mark,
  .hero__bang,
  .live i,
  .sound__eq i,
  .console.is-live .eq i,
  .btn--ghost[aria-pressed="true"],
  .seismo__rec i,
  .lcd__status::after {
    animation: none !important;
  }

  .hero__squiggle path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .panel {
    animation: none;
  }

  .burst__word {
    animation: reducedWordBurst 0.9s ease forwards !important;
  }

  .burst__ring,
  .burst__particle {
    display: none;
  }

  .stamp-overlay.is-on,
  .stamp-overlay.is-on .stamp {
    animation-duration: 1.2s;
  }

  @keyframes reducedWordBurst {
    0%,
    72% {
      opacity: 1;
      transform: translate(-50%, -50%) rotate(var(--rot)) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -58%) rotate(var(--rot)) scale(1);
    }
  }
}

/* --------------------------------------------------------------------------
   Impression : uniquement l'ordonnance
   -------------------------------------------------------------------------- */

@media print {
  body.rx-open {
    background: #fff;
  }

  body.rx-open > *:not(#rxDialog) {
    display: none !important;
  }

  body.rx-open #rxDialog {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  body.rx-open #rxDialog .sheet__bar,
  body.rx-open #rxDialog .rx-controls,
  body.rx-open #rxDialog .rx-actions,
  body.rx-open #rxDialog::backdrop {
    display: none !important;
  }

  body.rx-open .rx-paper {
    border: 1px solid #000;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
