/* --- Matrice de convergence entre groupes politiques --- */
.tableau-matrice {
    border-collapse: collapse;
    font-size: 0.82rem;
}
.tableau-matrice th,
.tableau-matrice td {
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.tableau-matrice thead th {
    background: var(--couleur-primaire);
    color: #fff;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    max-height: 120px;
    padding: 8px 6px;
}
.tableau-matrice tbody th {
    background: var(--couleur-fond);
    color: var(--couleur-texte);
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    left: 0;
}
.tableau-matrice td {
    color: #1c232e;
    font-weight: 600;
    cursor: help;
    min-width: 56px;
}

@media (min-width: 700px) {
    .tableau-matrice thead th {
        writing-mode: horizontal-tb;
        max-height: none;
    }
}