/* GESTION, site vitrine : bases du design et adaptation aux petits ecrans.
   Le reste des styles est porte par les pages (styles en ligne du design). */
html { scroll-behavior: smooth; }
/* Rien ne depasse en largeur (cercle du G qui tourne, imprimante du ticket) :
   la page ne flotte plus de cote. clip garde les en-tetes collants. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
body {
  margin: 0; background: #ffffff; color: #0f172a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
a { color: #1d4ed8; }
a:hover { color: #1e3a8a; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
details[open] .faq-plus { background: #0f172a; color: #ffffff; border-color: #0f172a; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ecrans de l'application (maquettes) : mis a l'echelle par site.js */
.shot-frame { position: relative; }
.shot-scale { pointer-events: none; }

/* Menu : bouton et panneau mobile */
.site-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid #334155;
  background: transparent; color: #ffffff; cursor: pointer;
}
.mobile-menu { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: #0b1220; }
.mobile-menu[hidden] { display: none; }
.menu-close { background: transparent; cursor: pointer; }

/* Formulaire de demo : choix dessines selon l'etat de l'input */
.opt { position: relative; border: 1px solid #e2e8f0; background: #ffffff; }
.opt:has(input:checked) { border: 2px solid #1d4ed8; background: #eff6ff; }
.opt:has(input:focus-visible) { outline: 3px solid #60a5fa; outline-offset: 2px; }
.opt .opt-box { border: 2px solid #64748b; background: #ffffff; color: #ffffff; }
.opt .opt-box svg { visibility: hidden; }
.opt:has(input:checked) .opt-box { border-color: #1d4ed8; background: #1d4ed8; }
.opt:has(input:checked) .opt-box svg { visibility: visible; }
.form-err { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 15px; }
.form-ok { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.form-ok[hidden], .form-err[hidden] { display: none; }

/* Tableau comparatif : defile horizontalement sur telephone */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Tablette et telephone ───────────────────────────────────────── */
@media (max-width: 960px) {
  .site-nav, .site-cta { display: none !important; }
  .site-burger { display: inline-flex; }
}
@media (max-width: 760px) {
  [style*="padding: 0 40px"] { padding-left: 20px !important; padding-right: 20px !important; }
  section:not(.gc *) { padding-top: 56px !important; padding-bottom: 64px !important; }
  h1:not(.gc *) { font-size: clamp(34px, 9.5vw, 48px) !important; line-height: 1.08 !important; }
  h2:not(.gc *) { font-size: clamp(28px, 7.5vw, 38px) !important; line-height: 1.12 !important; }
  [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="font-size: 20px; line-height: 1.55"], [style*="font-size: 22px; line-height"] { font-size: 18px !important; }
  [style*="padding: 40px; box-sizing: border-box; border-radius: 22px"] { padding: 24px !important; }
  footer [style*="padding: 72px 0 56px"] { padding: 48px 0 40px !important; }
  .shot { padding: 6px !important; border-radius: 14px !important; }
}

/* ── Imprimante thermique (bloc « Vendre ») ───────────────────────
   Le ticket sort ligne par ligne, se detache, puis recommence.
   Sans animation (reglage systeme) : ticket complet, immobile. */
.shot.has-printer { position: relative; }
.printer { position: absolute; right: -48px; bottom: -46px; width: 272px; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(11,18,32,0.28)); }
.printer-paper-slot { position: relative; height: 290px; overflow: hidden; margin: 0 22px -10px; }
.printer-paper { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 18px; box-sizing: border-box;
  background: #fffef9; color: #111827; font: 600 11px/1.5 "SFMono-Regular", Menlo, Consolas, monospace;
  border-radius: 2px 2px 0 0; animation: rcpt-out 7s ease-in-out infinite; }
.printer-paper::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px;
  background: linear-gradient(135deg, transparent 50%, #fffef9 50%) 0 0 / 10px 7px repeat-x,
              linear-gradient(225deg, transparent 50%, #fffef9 50%) 0 0 / 10px 7px repeat-x; }
.printer-paper .r-c { text-align: center; }
.printer-paper .r-b { font-weight: 800; font-size: 12.5px; letter-spacing: .02em; }
.printer-paper .r-row { display: flex; justify-content: space-between; gap: 8px; }
.printer-paper .r-sep { border-top: 1px dashed #9ca3af; margin: 6px 0; }
.printer-paper .r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 13.5px; }
.printer-paper .r-bar { height: 26px; margin: 8px 18px 4px;
  background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 3px, #111827 3px 4px, transparent 4px 7px, #111827 7px 10px, transparent 10px 11px); }
.printer-body { position: relative; height: 86px; border-radius: 16px 16px 20px 20px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 55%, #0f172a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.printer-body::before { content: ""; position: absolute; left: 16px; right: 16px; top: 8px; height: 8px; border-radius: 6px;
  background: #020617; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.printer-led { position: absolute; left: 20px; bottom: 18px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; animation: rcpt-led 7s linear infinite; }
.printer-name { position: absolute; right: 18px; bottom: 14px; color: #94a3b8; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; }
/* le ticket monte (sort de l'imprimante) puis est arrache */
@keyframes rcpt-out {
  0%   { transform: translateY(100%); opacity: 1; }
  70%  { transform: translateY(0); opacity: 1; }
  86%  { transform: translateY(0) rotate(0); opacity: 1; }
  96%  { transform: translateY(-40px) rotate(-6deg); opacity: 0; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes rcpt-led { 0%, 70% { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; } 71%, 100% { background: #22c55e; box-shadow: 0 0 8px #22c55e; } }
@media (prefers-reduced-motion: reduce) {
  .printer-paper, .printer-led { animation: none; }
  .printer-paper { transform: none; }
}
@media (max-width: 760px) {
  .printer { right: -4px; bottom: -70px; transform: scale(.62); transform-origin: right bottom; }
}

.annual-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #86efac, 0 6px 16px rgba(22, 101, 52, 0.12);
  animation: gift-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.p-gift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  animation: gift-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.annual-gift[hidden],
.p-gift[hidden] {
  display: none;
}
@keyframes gift-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .annual-gift,
  .p-gift { animation: none; }
}

.px-hero,
.px-deep {
  position: relative;
  overflow: hidden;
}
.px-hero > :not(.px-layer),
.px-deep > :not(.px-layer) {
  position: relative;
}
.px-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.px-hero > .px-layer {
  bottom: 260px;
}
.px-glow {
  position: absolute;
  border-radius: 50%;
}
.px-glow-blue {
  width: 820px;
  height: 820px;
  left: -260px;
  top: -320px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.42), rgba(37, 99, 235, 0));
}
.px-glow-violet {
  width: 720px;
  height: 720px;
  right: -220px;
  top: -80px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.34), rgba(124, 58, 237, 0));
}
.px-glow-cyan {
  width: 560px;
  height: 560px;
  left: 38%;
  top: 340px;
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0));
}
.px-glow-pink {
  width: 760px;
  height: 760px;
  right: -240px;
  bottom: -260px;
  background: radial-gradient(closest-side, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0));
}
.px-glow-indigo {
  width: 680px;
  height: 680px;
  left: -200px;
  top: -220px;
  background: radial-gradient(closest-side, rgba(129, 140, 248, 0.35), rgba(129, 140, 248, 0));
}
.px-glow-low {
  top: auto;
  bottom: -360px;
}
.px-dots {
  position: absolute;
  inset: -200px 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 20%, transparent 75%);
}
.px-stage {
  perspective: 1800px;
  perspective-origin: 50% 0;
}
.px-on .px-hero-copy {
  translate: 0 calc(var(--hy, 0) * -0.22px);
  opacity: calc(1 - var(--hp, 0) * 0.9);
}
.px-on .px-tilt {
  transform-origin: 50% 100%;
  rotate: 1 0 0 calc((1 - var(--hp, 0)) * 22deg);
  scale: calc(0.9 + var(--hp, 0) * 0.1);
}
.px-on .rp-card .rp-back {
  translate: calc((var(--p, 1) - 1) * 4%) calc((var(--p, 1) - 1) * 2%);
  rotate: calc((var(--p, 1) - 1) * 4deg);
}
.px-on .rp-card .rp-front {
  rotate: calc((1 - var(--p, 1)) * 1.5deg);
}
@media (max-width: 760px) {
  .px-glow { scale: 0.6; }
  .px-on .px-tilt { rotate: 1 0 0 calc((1 - var(--hp, 0)) * 14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .px-on .px-hero-copy,
  .px-on .px-tilt,
  .px-on .rp-card .rp-back,
  .px-on .rp-card .rp-front,
  [data-px] {
    translate: none !important;
    rotate: none !important;
    scale: none !important;
    opacity: 1 !important;
  }
}

.ticks > li {
  align-items: center !important;
  margin: -6px -10px;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms cubic-bezier(0.25, 1, 0.5, 1);
}
.ticks > li:hover {
  background-color: rgba(15, 23, 42, 0.04);
}
.ticks > li:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
.tick {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 11px;
  background-color: #ffffff;
  border: 1px solid #dde3ec;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 260ms cubic-bezier(0.25, 1, 0.5, 1), border-color 260ms cubic-bezier(0.25, 1, 0.5, 1), color 260ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 260ms cubic-bezier(0.25, 1, 0.5, 1), scale 160ms cubic-bezier(0.25, 1, 0.5, 1);
}
.ticks > li:hover .tick {
  border-color: #bfdbfe;
  color: #1e40af;
}
.ticks > li:active .tick {
  scale: 0.9;
}
.ticks > li[aria-checked="true"] .tick {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 5px rgba(29, 78, 216, 0.14), 0 8px 18px rgba(29, 78, 216, 0.32);
}
.ticks > li[aria-checked="true"]:hover .tick {
  background-color: #1e40af;
  border-color: #1e40af;
}
.ticks > li[aria-checked="true"] .tick svg {
  animation: tick-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tick-pop {
  from { scale: 0.5; opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .ticks > li,
  .tick { transition: none; }
  .ticks > li[aria-checked="true"] .tick svg { animation: none; }
}
.ticks > li:has(> span > span + span) {
  align-items: flex-start !important;
}
.ticks > li:has(> span > span + span) > :not(.tick) {
  padding-top: 5px;
}
@media (max-width: 760px) {
  .px-hero {
    background: #0b1220 !important;
    padding-bottom: 64px !important;
  }
  .px-hero > .px-layer {
    bottom: 0;
  }
  .px-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }
  .px-hero-copy {
    display: contents !important;
  }
  .px-hero-copy > * {
    order: 3;
  }
  .px-hero-copy > p:first-child,
  .px-hero-copy > h1 {
    order: 1;
  }
  .px-hero-inner > #apercu {
    order: 2;
    width: 100%;
    padding-top: 4px !important;
    padding-bottom: 8px;
  }
}

.rt-grid { position: relative; perspective: 900px; }
.rt-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.rt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.16), transparent 70%);
  transition: opacity 0.4s ease-out;
}
.rt-card > * {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rt-on .rt-card {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--lift, 0px));
  box-shadow:
    calc(var(--sx, 0) * -1.6px) calc(var(--sy, 0) * -1.6px + 14px) 34px rgba(0, 0, 0, calc(0.25 + var(--hot, 0) * 0.3)),
    0 0 0 calc(var(--hot, 0) * 6px) rgba(59, 130, 246, 0.28);
}
.rt-on .rt-card.is-hot { transition-duration: 0.25s, 0.4s; }
.rt-on .rt-card.is-hot::before { opacity: 1; }
.rt-on .rt-card.is-hot > :first-child { transform: translateZ(36px); }
.rt-on .rt-card.is-hot > :last-child { transform: translateZ(20px); }
@media (prefers-reduced-motion: reduce) {
  .rt-card, .rt-card > *, .rt-card::before { transition: none; }
}

.fl-panel { perspective: 1100px; }
.px-on .fl-card {
  transform-origin: 50% 0;
  transform: translate3d(0, calc((1 - var(--p, 1)) * 110px), 0) rotateX(calc((1 - var(--p, 1)) * -26deg)) scale(calc(0.9 + var(--p, 1) * 0.1));
  opacity: calc(0.12 + var(--p, 1) * 0.88);
  box-shadow: 0 calc(2px + (1 - var(--p, 1)) * 26px) calc(6px + (1 - var(--p, 1)) * 40px) rgba(15, 23, 42, calc(0.05 + (1 - var(--p, 1)) * 0.16));
}
.fl-card.is-live > div > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fl-card.is-live > div > span:last-child::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45);
  animation: fl-live 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes fl-live {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(29, 78, 216, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fl-card.is-live > div > span:last-child::before { animation: none; }
}

.db { display: flex; width: 1280px; height: 800px; background: #eef2f7; color: #0f172a; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.db b { font-weight: 800; }
.db-rail { width: 84px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0; background: #ffffff; border-right: 1px solid #e2e8f0; box-sizing: border-box; }
.db-rail-btn { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: #334155; }
.db-rail-btn.is-on { background: #e8eefb; color: #1d4ed8; }
.db-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-top { height: 84px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 28px; background: #ffffff; border-bottom: 1px solid #e2e8f0; box-sizing: border-box; }
.db-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: 0.14em; color: #1d4ed8; }
.db-brand img { border-radius: 10px; }
.db-crumb { padding-left: 24px; border-left: 1px solid #e2e8f0; font-size: 19px; color: #334155; }
.db-top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.db-store { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid #e2e8f0; border-radius: 14px; font-size: 19px; font-weight: 700; color: #0f172a; }
.db-store svg:first-child { color: #1d4ed8; }
.db-icon-btn { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #e8eefb; color: #1d4ed8; }
.db-badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: #b91c1c; color: #ffffff; font-size: 14px; font-weight: 700; }
.db-date { font-size: 17px; color: #475569; }
.db-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e8eefb; color: #1d4ed8; font-size: 14px; font-weight: 700; }
.db-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 24px 28px 28px; box-sizing: border-box; }
.db-head { display: flex; align-items: center; gap: 16px; }
.db-tag { padding: 8px 14px; border-radius: 10px; background: #e8eefb; color: #1d4ed8; font-size: 17px; font-weight: 600; }
.db-title { display: flex; flex-direction: column; gap: 2px; }
.db-title b { font-size: 28px; letter-spacing: -0.02em; }
.db-title span { font-size: 17px; color: #475569; }
.db-periods { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.db-periods span { padding: 10px 14px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; }
.db-periods span.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.db-periods em { margin-left: 8px; font-style: normal; font-weight: 500; color: #475569; display: flex; align-items: center; gap: 8px; }
.db-periods em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.db-kpi { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px; border-radius: 20px; background: #ffffff; border: 1px solid #e2e8f0; }
.db-kpi.is-on { background: #eef2fd; border: 2px solid #1d4ed8; padding: 19px 19px; }
.db-kpi-label { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #334155; }
.db-kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-spark { position: absolute; top: 16px; right: 18px; width: 70px; height: 28px; overflow: visible; }
.db-spark-line { fill: none; stroke: #1d4ed8; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.db-spark-fill { fill: rgba(29, 78, 216, 0.1); }
.db-trend { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.db-trend-up { color: #15803d; }
.db-trend-down { color: #b91c1c; }
.db-panels { flex: 1; min-height: 0; display: grid; grid-template-columns: 2.55fr 1fr; gap: 18px; }
.db-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: 20px; background: #ffffff; border: 1px solid #e2e8f0; min-height: 0; box-sizing: border-box; }
.db-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.db-card-head > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: #475569; }
.db-card-head b { font-size: 19px; font-weight: 700; color: #0f172a; }
.db-legend { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #334155; }
.db-legend i { width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.db-seg-0 { background: #1d4ed8; }
.db-seg-1 { background: #60a5fa; }
.db-seg-2 { background: #bfdbfe; }
.db-plot { position: relative; flex: 1; min-height: 0; margin-left: 52px; }
.db-grid { position: absolute; inset: 0 0 34px; display: flex; flex-direction: column; justify-content: space-between; }
.db-grid span { position: relative; border-top: 1px dashed #e2e8f0; }
.db-grid span:last-child { border-top: 1px solid #94a3b8; }
.db-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 10px); top: -10px; font-size: 14px; color: #475569; }
.db-avg { position: absolute; left: 0; right: 0; bottom: calc(34px + (100% - 34px) * var(--f)); border-top: 2px dashed #64748b; z-index: 2; }
.db-avg span { position: absolute; right: 0; bottom: 4px; font-size: 14px; font-weight: 700; color: #475569; }
.db-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; padding: 0 10px; }
.db-col { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
.db-bar { flex: 1; display: flex; flex-direction: column-reverse; transform-origin: 50% 100%; }
.db-seg:first-child { border-radius: 0 0 2px 2px; }
.db-seg:last-child { border-radius: 8px 8px 0 0; }
.db-day { height: 34px; display: flex; align-items: flex-end; justify-content: center; font-size: 15px; color: #475569; white-space: nowrap; }
.db-pay { align-items: stretch; }
.db-donut { width: 188px; height: 188px; margin: 4px auto 0; rotate: -90deg; }
.db-arc { fill: none; stroke-width: 20; stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off); }
.db-arc-0 { stroke: #c2410c; background: #c2410c; }
.db-arc-1 { stroke: #1d4ed8; background: #1d4ed8; }
.db-arc-2 { stroke: #94a3b8; background: #94a3b8; }
.db-pay-list { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.db-pay-list li { display: flex; align-items: center; gap: 10px; }
.db-pay-list i { width: 10px; height: 10px; border-radius: 50%; }
.db-pay-list b { margin-left: auto; font-weight: 700; }

.db-armed .db-bar { transform: scaleY(0); }
.db-armed .db-spark-line { stroke-dashoffset: 1; }
.db-armed .db-spark-fill { opacity: 0; }
.db-armed .db-arc { stroke-dasharray: 0 100; }
.db-armed .db-kpi, .db-armed .db-avg { opacity: 0; translate: 0 14px; }
.db-live .db-bar { transform: scaleY(1); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) calc(0.35s + var(--i) * 0.07s); }
.db-live .db-spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.db-live .db-spark-fill { opacity: 1; transition: opacity 0.8s ease-out 0.9s; }
.db-live .db-arc { stroke-dasharray: var(--len) 100; transition: stroke-dasharray 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s; }
.db-live .db-kpi, .db-live .db-avg { opacity: 1; translate: 0 0; transition: opacity 0.6s ease-out, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.db-live .db-kpi:nth-child(2) { transition-delay: 0.08s; }
.db-live .db-kpi:nth-child(3) { transition-delay: 0.16s; }
.db-live .db-kpi:nth-child(4) { transition-delay: 0.24s; }
.db-live .db-avg { transition-delay: 1.1s; }
