/* Étape 4 : pilotage du groupe. Colonnes empilées par pôle (couleurs du site), filiales, compagnies. */
.pilotage__grille { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.pilotage__poles { grid-row: span 2; padding-bottom: 12px; }
.bascule { display: inline-flex; border: 1px solid var(--filet-fort); border-radius: 999px; padding: 2px; }
.bascule button { border: 0; background: none; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--encre-2); }
.bascule button[aria-pressed='true'] { background: var(--encre); color: #fff; }

.legende { list-style: none; margin: 0; padding: 0 20px 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.legende li { display: inline-flex; align-items: center; gap: 6px; }

.graphe { position: relative; padding: 0 12px; }
.graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.graphe__grille { stroke: var(--filet); stroke-width: 1; }
.graphe__axe, .graphe__mois { fill: var(--encre-2); font-size: 12px; font-family: var(--police); }
.graphe__valeur { fill: var(--encre); font-size: 13px; font-weight: 700; font-family: var(--police); }
.graphe__cible { fill: transparent; }
.graphe__colonne { outline: none; cursor: default; }
.graphe__colonne:hover .graphe__cible { fill: var(--papier); }
.graphe__colonne:focus-visible .graphe__cible { fill: var(--papier); stroke: var(--carmin); stroke-width: 2; rx: 4; }
.graphe__bulle {
  position: absolute; top: 0; left: 0; width: 200px; pointer-events: none; z-index: 2;
  background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon-petit); box-shadow: var(--ombre);
  padding: 10px 12px; display: grid; gap: 4px; font-size: 13px;
}
.graphe__bulle[hidden] { display: none; }
.graphe__bulle span { display: flex; align-items: center; gap: 6px; }
.graphe__bulle b { margin-left: auto; font-weight: 600; }
.graphe__bulle-total { border-top: 1px solid var(--filet); padding-top: 4px; font-weight: 600; }

.filiales { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 10px; }
.filiales li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.filiales b { font-weight: 600; }
.filiales__barre { grid-column: 1 / -1; display: block; height: 6px; background: var(--papier); border-radius: 3px; overflow: hidden; }
.filiales__barre em { display: block; height: 100%; background: var(--encre-2); transform-origin: left; border-radius: 3px; }
.pilotage .panneau > .tableau { margin: 0 8px 8px; width: calc(100% - 16px); }
.pilotage__note { padding: 0 20px 16px; font-size: 13px; }
.pilotage__retour { margin-top: 28px; }
.pilotage__retour a { color: var(--carmin); font-weight: 600; }

@media (max-width: 1000px) {
  .pilotage__grille { grid-template-columns: minmax(0, 1fr); }
  .pilotage__poles { grid-row: auto; }
}
