body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f4f7f6; color: #333; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.container { width: 100%; max-width: 1500px; background-color: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); box-sizing: border-box; }
h1 { color: #005a9e; text-align: center; }
h2 { color: #333; border-bottom: 2px solid #eef2f5; padding-bottom: 10px; }
.controls { display: flex; flex-direction: column; gap: 20px; margin-bottom: 25px; padding: 20px; background-color: #eef2f5; border-radius: 8px; }
.control-group { display: flex; flex-direction: column; }
label { font-weight: bold; margin-bottom: 8px; }
select, input[type="file"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.file-status { font-weight: bold; margin-left: 10px; }
.file-status.loaded { color: #2e7d32; }
.file-status.loading { color: #6c757d; }
.file-status.error { color: #c62828; }
.status-item { padding: 4px 0; }
#loading-status-container p { margin-top: 0; }
.summary { text-align: center; font-size: 1.2em; margin-bottom: 25px; padding: 15px; border-radius: 8px; background-color: #e3f2fd; color: #1565c0; border: 1px solid #b3e5fc; }
.tab-buttons { border-bottom: 2px solid #ccc; margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; cursor: pointer; background-color: transparent; border: none; font-size: 1em; border-bottom: 3px solid transparent; }
.tab-btn.active { border-bottom: 3px solid #005a9e; font-weight: bold; color: #005a9e; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
table { width: 100%; border-collapse: collapse; margin-top: 25px; }
th, td { border: 1px solid #ddd; padding: 12px; text-align: left; vertical-align: middle; }
th { background-color: #005a9e; color: white; }
tbody tr:nth-child(even) { background-color: #f9f9f9; }
#skills-table th:nth-child(2), #skills-table td:nth-child(2) { text-align: center; }
#skills-table td:nth-child(2) { font-weight: bold; }
.tag { padding: 5px 10px; border-radius: 12px; color: white; font-weight: bold; text-align: center; display: inline-block; min-width: 100px; }
.tag.not-started { background-color: #607d8b; }
.tag.in-progress { background-color: #ff9800; }
.tag.completed { background-color: #4caf50; }
.timeline-navigation { display: flex; align-items: center; margin-top: 20px; }
.nav-arrow { background: #005a9e; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; cursor: pointer; line-height: 40px; text-align: center; margin: 0 10px; flex-shrink: 0; }
#gantt-chart-container { position: relative; flex-grow: 1; overflow-x: auto; scrollbar-width: thin; cursor: grab; }
#gantt-chart-container.active { cursor: grabbing; user-select: none; }
.gantt-chart { display: grid; grid-template-columns: 300px 1fr; }
.gantt-names-col, .gantt-timelines-col { grid-row: 1; }
.gantt-names-col { grid-column: 1; position: sticky; left: 0; z-index: 20; background-color: #fff; }
.gantt-timelines-col { grid-column: 2; position: relative; }
.gantt-header-cell { display: flex; align-items: center; box-sizing: border-box; height: 60px; font-weight: bold; background-color: #eef2f5; border-bottom: 1px solid #ccc; padding-left: 10px; }
.gantt-skill-name { display: flex; align-items: center; gap: 10px; height: 45px; padding: 10px; border-right: 1px solid #ccc; border-bottom: 1px solid #eee; box-sizing: border-box; }
.gantt-skill-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-timeline { width: 100%; position: relative; height: 45px; border-bottom: 1px solid #eee; box-sizing: border-box; }
.gantt-weeks-header { display: flex; flex-direction: column; height: 100%; width: 100%; }
.gantt-week-header-title { font-weight: bold; text-align: center; padding: 5px 0; }
.gantt-week-numbers { display: flex; flex-grow: 1; }
.gantt-week-number { flex: 1; font-size: 0.8em; border-right: 1px dotted #ccc; text-align: center; }
.gantt-lanes-grid { display: grid; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.gantt-bar { padding: 5px; margin: 5px 0; color: white; font-size: 0.8em; text-align: center; border-radius: 4px; overflow: hidden; white-space: nowrap; grid-column-start: var(--start); grid-column-end: var(--end); z-index: 10; }
.gantt-bar.type-theorique { background-color: #2a7ab8; }
.gantt-bar.type-pratique { background-color: #1a7431; }
#gantt-progress-line { position: absolute; top: 0; bottom: 0; width: 3px; background-color: #c62828; z-index: 5; pointer-events: none; }
#gantt-progress-line::after { content: "AUJOURD'HUI"; position: absolute; top: 40px; left: -30px; background-color: #c62828; color: white; padding: 2px 5px; font-size: 0.7em; border-radius: 4px; }
.schedule-controls, .occupation-controls { display: flex; flex-direction: row; align-items: center; gap: 20px; margin-bottom: 20px; padding: 10px; background-color: #f9f9f9; border-radius: 6px; }
#calendar-grid, #occupation-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
#calendar-header, #occupation-calendar-header { display: contents; }
.calendar-header-day { font-weight: bold; text-align: center; padding: 10px 0; background-color: #eef2f5; border-radius: 4px; }
#schedule-view, #occupation-calendar-view { display: contents; }
.day-card { border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff; display: flex; flex-direction: column; min-height: 140px; }
.day-card.empty, .day-card.weekend { background-color: #f9f9f9; border-style: dashed; }
.day-card.holiday .day-body { display: flex; align-items: center; justify-content: center; color: #999; font-style: italic; font-size: 0.9em; }
.day-card.today { border: 2px solid #005a9e; box-shadow: 0 4px 8px rgba(0, 90, 158, 0.2); }
.day-header { background-color: #f5f5f5; color: #555; padding: 8px; border-top-left-radius: 8px; border-top-right-radius: 8px; text-align: right; font-size: 0.9em; font-weight: bold; }
.day-card.today .day-header { background-color: #005a9e; color: white; }
.day-body { padding: 8px; flex-grow: 1; display: flex; flex-direction: column; gap: 5px; }
.competency-badge { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; border-radius: 5px; color: white; font-size: 0.85em; font-weight: 500; flex-shrink: 0; }
.badge-theorique { background-color: #2a7ab8; }
.badge-pratique { background-color: #1a7431; }
.competency-hours { background-color: rgba(0, 0, 0, 0.2); padding: 2px 6px; border-radius: 3px; font-weight: bold; }
td .competency-badge { display: inline-flex; margin-right: 10px; }
td .competency-name-text { vertical-align: middle; }
.occupation-details { padding: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; font-size: 1.1em; color: #333; height: 100%; }
.occupation-details div > strong { color: #005a9e; }
#evaluations-view { margin-top: 20px; display: flex; flex-direction: column; gap: 25px; }
.evaluation-week { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; background-color: #fcfcfc; }
.evaluation-week h3 { margin-top: 0; color: #005a9e; border-bottom: 2px solid #eef2f5; padding-bottom: 10px; margin-bottom: 15px; }
.evaluation-week table { margin-top: 0; }
.evaluation-students-list { font-style: italic; color: #555; }

#cohort-timeline-view {
    overflow-x: auto;
    cursor: grab; /* MODIFICATION : Ajout du curseur */
}

#cohort-timeline-view.active {
    cursor: grabbing;
    user-select: none; /* NOUVEAU : Style pour l'état actif */
}

.cohort-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 800px; 
}
.cohort-table th, .cohort-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}
.cohort-table th {
    background-color: #005a9e;
    color: white;
    font-size: 0.9em;
    white-space: nowrap;
}
.cohort-table td:first-child {
    text-align: left;
    font-weight: bold;
    background-color: #f9f9f9;
    position: sticky;
    left: 0;
    z-index: 1;
}
.entry-date-marker {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    line-height: 1;
}

#stage-view {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.stage-student-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 15px;
}
.stage-student-name {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stage-timeline-track {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #eef2f5;
    border-radius: 4px;
}
.stage-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #2a7ab8;
    border-radius: 4px;
    color: white;
    font-size: 0.8em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
    box-sizing: border-box;
}