/* Structure de base */
.table-responsive {
    margin: 20px auto;
    max-width: 960px;
    overflow-x: auto;
}

.raci-table {
    margin: 0 auto;
    width: 100%;
    table-layout: fixed !important;
    border-collapse: collapse;
}

/* Dimensions des colonnes - PRIORITAIRE */
.raci-table th:first-child,
.raci-table td:first-child {
    width: 80px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

.raci-table th:not(:first-child),
.raci-table td:not(:first-child) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
}

/* Styles des cellules */
.raci-table th,
.raci-table td {
    padding: 0 !important;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    font-size: 0.85em;
    box-sizing: border-box;
}

/* Alignement spécifique pour la colonne des tâches */
.raci-table td:first-child {
    text-align: left;
    padding-left: 8px !important;
    background-color: #f8f9fa;
}

/* En-têtes */
.raci-table thead th {
    background-color: #2c5282;
    color: white;
    font-weight: bold;
    padding: 8px 4px !important;
}

.raci-table th.equipe-header {
    background-color: #2c5282;
    text-transform: uppercase;
}

/* Styles RACI */
.raci-table td .raci-R,
.raci-table td .raci-A,
.raci-table td .raci-C,
.raci-table td .raci-I {
    width: 100%;
    height: 100%;
    display: block;
}

.raci-R { background-color: #f5a462; }  /* Responsible - Orange */
.raci-A { background-color: #a1e760; }  /* Accountable - Vert */
.raci-C { background-color: #eb5f5f; }  /* Consulted - Rouge */
.raci-I { background-color: #72a0f7; }  /* Informed - Bleu */

/* Légende */
.raci-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 15px auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-width: 960px;
}

.raci-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.9em;
}

.raci-text-R { background-color: #f5a462; }
.raci-text-A { background-color: #a1e760; }
.raci-text-C { background-color: #eb5f5f; }
.raci-text-I { background-color: #72a0f7; }

/* Carte */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 960px;
    margin: 0 auto;
}

.card-header {
    background-color: #2c5282;
    color: white;
    border-bottom: none;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.5rem;
}