/* ... Styles existants ... */
#calendar-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #495057;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-weekdays div {
    font-weight: bold;
    color: #6c757d;
    padding: 0.5rem 0;
}

.calendar-days .day {
    padding: 0.75rem 0;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.calendar-days .day.empty {
    visibility: hidden;
    cursor: default;
}

.calendar-days .day:not(.empty):hover {
    background-color: #f1f1f1;
}

.calendar-days .day.today {
    border: 2px solid var(--sable-fonce);
    font-weight: bold;
}

.calendar-days .day.selected {
    background-color: var(--sable-principal);
    color: var(--texte-sombre);
    border-color: var(--sable-fonce);
    font-weight: bold;
}

.calendar-days .day.unavailable {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #f1f3f5;
    text-decoration: line-through;
    opacity: 0.7;
}

.horaire-slot {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.horaire-slot:hover {
    background-color: var(--sable-principal);
    border-color: #adb5bd;
}

.horaire-slot.selected {
    background-color: var(--sable-principal);
    color: var(--texte-sombre);
    border-color: var(--sable-fonce);
    font-weight: bold;
}

/* Stepper UI */
.stepper-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.step-counter {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stepper-item.active .step-counter {
    background-color: var(--violet-principal);
    color: #fff;
    border-color: var(--violet-principal);
}

.stepper-item.completed .step-counter {
    background-color: var(--sable-fonce);
    color: #fff;
    border-color: var(--sable-fonce);
}

.step-name {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.stepper-item.active .step-name {
    color: var(--violet-principal);
    font-weight: bold;
}

/* Lot 7 : jours (boutons), jours indisponibles, créneaux lisibles (>= 4,5:1) */
.calendar-header button {
    color: var(--violet-fonce, #4b2f6a);
}

.calendar-days .day {
    font: inherit;
    background: #fff;
    color: var(--violet-fonce, #4b2f6a);
}

.calendar-days .day.today {
    border-color: var(--violet-fonce, #4b2f6a);
}

.calendar-days .day.unavailable,
.calendar-days .day:disabled {
    background-color: #efeae4;
    color: #6f6877;
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: rgb(111 104 119 / 0.45);
}

.calendar-days .day:not(.empty):not(:disabled):hover {
    background-color: var(--sable-clair, #f4eadf);
}

.calendar-days .day.selected {
    background-color: var(--violet-fonce, #4b2f6a);
    color: var(--sable-clair, #f4eadf);
    border-color: var(--violet-fonce, #4b2f6a);
}

.horaire-slot {
    display: block;
    width: 100%;
    font: inherit;
    background-color: var(--sable-clair, #f4eadf);
    color: var(--violet-fonce, #4b2f6a);
    border: 1px solid #8f7a9f;
}

.horaire-slot:hover {
    background-color: #e8d8c4;
    color: var(--violet-fonce, #4b2f6a);
    border-color: var(--violet-fonce, #4b2f6a);
}

.horaire-slot.selected {
    background-color: var(--violet-fonce, #4b2f6a);
    color: var(--sable-clair, #f4eadf);
    border-color: var(--violet-fonce, #4b2f6a);
}

.horaire-slot--cours {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.horaire-slot--cours .slot-nom {
    font-size: 1.05rem;
}

.horaire-slot--cours .slot-meta {
    font-size: 0.9rem;
}

.horaire-slot:focus-visible,
.calendar-days .day:focus-visible {
    outline: 3px solid var(--violet-fonce, #4b2f6a);
    outline-offset: 2px;
}

.rdv-note {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--sable-clair, #f4eadf);
    color: #3a2750;
    border-left: 4px solid var(--violet-fonce, #4b2f6a);
    border-radius: 0.25rem;
}

.rdv-note a {
    color: var(--violet-fonce, #4b2f6a);
    font-weight: 600;
}

#next-day-title {
    color: var(--violet-fonce, #4b2f6a);
}
