/* KICKOFF · écran Stats avancées (étape 3)
   Visualisations maison : jauge de réussite, forme, barres par source,
   histogramme de progression, comparaison au club. Zéro lib. */

.st-wrap { display: flex; flex-direction: column; gap: 14px; }

.st-intro { margin: 2px 0 2px; }

/* ---------- carte héro : jauge de réussite ---------- */
.st-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}
.st-gauge {
  flex: none;
  width: 128px;
  height: 128px;
  position: relative;
}
.st-gauge svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-gauge-track { stroke: rgba(255, 255, 255, .07); }
.st-gauge-arc {
  stroke: url(#stGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 8px rgba(232, 0, 13, .5));
}
.st-gauge-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.st-gauge-val {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--txt);
  text-shadow: 0 0 20px rgba(244, 195, 59, .35);
}
.st-gauge-val small { font-size: 16px; opacity: .7; }
.st-gauge-cap {
  font-family: var(--disp);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 3px;
}
.st-hero-side { flex: 1; min-width: 0; }
.st-hero-title {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: .01em;
  margin-bottom: 3px;
}
.st-hero-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* répartition exact / bon / manqué */
.st-split { display: flex; gap: 7px; margin-top: 12px; }
.st-split-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 7px 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.st-split-v {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}
.st-split-l {
  display: block;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
}
.st-split-item.exact .st-split-v { color: var(--gold); }
.st-split-item.good .st-split-v { color: var(--green); }
.st-split-item.miss .st-split-v { color: var(--muted); }

/* ---------- forme récente : pastilles ---------- */
.st-form { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.st-form-dots { display: flex; gap: 5px; }
.st-dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  transform: skewX(-10deg);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.st-dot.d-exact { background: linear-gradient(160deg, var(--gold), #b8901f); box-shadow: 0 0 9px rgba(244, 195, 59, .5); }
.st-dot.d-good { background: linear-gradient(160deg, var(--green), #128a3e); }
.st-dot.d-miss { background: rgba(255, 255, 255, .10); }
.st-form-lbl { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- barres par source ---------- */
.st-bars { display: flex; flex-direction: column; gap: 13px; margin-top: 4px; }
.st-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.st-bar-name {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}
.st-bar-name .st-ico { font-style: normal; margin-right: 6px; }
.st-bar-val { font-size: 12px; font-weight: 700; }
.st-bar-val b { font-family: var(--disp); font-style: italic; font-size: 15px; }
.st-bar-sub { color: var(--muted); font-weight: 600; font-size: 10.5px; margin-left: 6px; }
.st-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
  position: relative;
}
.st-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(90deg, var(--red-deep), var(--red-glow));
}
.st-fill.f-grille { background: linear-gradient(90deg, #128a3e, var(--green)); }
.st-fill.f-quiz { background: linear-gradient(90deg, #b8901f, var(--gold)); }

/* ---------- histogramme de progression ---------- */
.st-hist {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 96px;
  margin-top: 6px;
  padding-top: 6px;
}
.st-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.st-col-bar {
  width: 100%;
  max-width: 16px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--red-glow), var(--red-deep));
  min-height: 3px;
  height: 0;
  transition: height .9s cubic-bezier(.2, .8, .2, 1);
}
.st-col.empty .st-col-bar { background: rgba(255, 255, 255, .07); box-shadow: none; }
.st-col.today .st-col-bar { box-shadow: 0 0 10px rgba(232, 0, 13, .6); }
.st-col-day {
  font-size: 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .02em;
}
.st-col.today .st-col-day { color: var(--red-glow); }
.st-hist-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.st-hist-foot b { color: var(--gold); font-family: var(--disp); font-style: italic; font-size: 14px; }

/* ---------- comparaison au club ---------- */
.st-vs { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.st-vs-row { }
.st-vs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}
.st-vs-head .st-vs-who {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12.5px;
}
.st-vs-head b { font-family: var(--disp); font-style: italic; font-size: 15px; }
.st-vs-track { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.st-vs-fill {
  height: 100%;
  border-radius: 7px;
  width: 0;
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.st-vs-fill.me { background: linear-gradient(90deg, var(--red-deep), var(--red-glow)); box-shadow: 0 0 12px rgba(232, 0, 13, .4); }
.st-vs-fill.avg { background: rgba(255, 255, 255, .22); }
.st-vs-verdict {
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(232, 0, 13, .08);
  border: 1px solid rgba(232, 0, 13, .28);
  font-size: 13px;
  line-height: 1.45;
}
.st-vs-verdict.below { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.st-vs-verdict b { color: var(--gold); }

/* ---------- état vide ---------- */
.st-empty {
  text-align: center;
  padding: 34px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.st-empty .st-empty-big {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
}
.st-empty p { color: var(--muted); font-size: 13.5px; max-width: 28ch; line-height: 1.5; }
