* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.upload-section {
    margin-bottom: 20px;
    text-align: center;
}

#csvFile {
    padding: 10px 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
}

#scheduleTable {
    width: 100%;
    margin-top: 20px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    position: relative;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    min-width: 120px; /* Largeur minimale pour les colonnes */
}

/* En-têtes stickies */
thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

/* Colonne des noms sticky */
tbody tr th {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: white;
    box-shadow: 2px 0 2px rgba(0,0,0,0.1);
}

/* Largeur fixe pour la première colonne (noms) */
tbody tr th {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Largeur fixe pour les autres colonnes */
tbody td {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* Style pour le conteneur du tableau */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    position: relative;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Couleurs de rôle */
.role-boucherie { color: #FF1493; }
.role-traiteur { color: #00BFFF; }
.role-responsable { color: #00008B; }
.role-maladie { color: #FF0000; }
.role-conge { color: #000000; }
.role-a-remplacer { color: #FFD700; }

