/* Onglet « Tactique » : les 6 rotations d'un club (charte : cartes 10 px, étiquettes 4 px, un seul rouge) */
.rot-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.rot-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.rot-lead b { color: var(--text-main); }
.rot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; padding-top: 10px; }
/* le filet, au-dessus de la ligne avant */
.rot-grid::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--text-main); opacity: .55; }
.rot-cell { --tone: var(--green, #1f9d55); position: relative; display: grid; gap: 8px; padding: 12px; border-radius: var(--r-card, 10px);
  background: color-mix(in srgb, var(--tone) calc(var(--k, 0) * 18%), var(--bg-subtle)); border: 1px solid color-mix(in srgb, var(--tone) calc(var(--k, 0) * 45%), var(--border)); }
.rot-cell.neg { --tone: var(--red); }
.rot-cell.zero { --tone: var(--text-dim); }
.rot-cell.best, .rot-cell.worst { box-shadow: 0 0 0 2px var(--tone) inset; }
.rot-head { display: flex; align-items: center; justify-content: space-between; }
.rot-head b { font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.rot-court { width: 30px; height: 20px; flex: none; }
.rot-court rect { fill: none; stroke: var(--text-dim); stroke-width: 1; }
.rot-court line.net { stroke: var(--text-main); stroke-width: 2; }
.rot-court line.m3 { stroke: var(--text-dim); stroke-width: .8; stroke-dasharray: 2 1.5; }
.rot-court circle { fill: var(--tone); }
.rot-net { display: flex; align-items: baseline; gap: 6px; }
.rot-net b { font-size: 26px; font-weight: 900; line-height: 1; color: var(--tone); font-variant-numeric: tabular-nums; }
.rot-net span { font-size: 11px; color: var(--text-dim); }
.rot-kv { margin: 0; display: grid; gap: 3px; }
.rot-kv div { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.rot-kv dt { color: var(--text-dim); }
.rot-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rot em, .rot-legend em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 4px; border-radius: var(--r-tag, 4px); }
.rot em.up { color: var(--green, #1f9d55); background: color-mix(in srgb, var(--green, #1f9d55) 14%, transparent); }
.rot em.down { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.rot-n { font-size: 10.5px; color: var(--text-dim); }
.rot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 6px; font-size: 11.5px; color: var(--text-dim); }
.rot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rot-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--green, #1f9d55); }
.rot-legend i.neg { background: var(--red); }
.rot-src { margin: 4px 0 6px; font-size: 11.5px; color: var(--text-dim); }
.rot-how summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--red); margin-top: 4px; }
.rot-how p { margin: 0 0 6px; }
@media (max-width: 520px) {
  .rot-grid { gap: 6px; }
  .rot-cell { padding: 9px 8px; gap: 6px; }
  .rot-net b { font-size: 21px; }
  .rot-net span { display: none; }
  .rot-kv div { flex-direction: column; gap: 0; }
}
