.my-calendar-section {
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
}

.calendar-nav {
    cursor: pointer;
    font-size: 1.5em;
    padding: 0 10px;
    user-select: none;
}

    .calendar-nav:hover {
        color: #7b5ca8;
    }

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

.calendar-weekday {
    font-weight: bold;
    color: #7b5ca8;
    padding: 8px 0;
    font-size: 0.9em;
}

.calendar-day {
    padding: 10px 5px;
    border-radius: 5px;
    background-color: #f0f0f0;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    /* --- IMPORTANT : Rendre cliquable visuellement --- */
    cursor: pointer; /* Le curseur change pour indiquer que c'est cliquable */
    transition: background-color 0.2s ease; /* Animation fluide au survol */
}

    .calendar-day.empty {
        background-color: transparent;
        visibility: hidden;
        cursor: default; /* Les jours vides ne sont pas cliquables */
    }

    .calendar-day:not(.empty):hover { /* Applique le style de survol seulement aux jours non-vides */
        background-color: #e6e6fa; /* Légère couleur au survol */
        box-shadow: 0 0 5px rgba(123, 92, 168, 0.3); /* Légère ombre */
    }

    .calendar-day:not(.empty):active { /* Style quand le bouton est pressé */
        background-color: #d1c1eb;
    }


    .calendar-day.special-day {
        background-color: #a7d9ef;
        font-weight: bold;
        color: #333;
        border: 1px solid #7b5ca8;
    }

.special-day-label {
    font-size: 0.7em;
    color: #444;
    margin-top: 3px;
    line-height: 1.2;
}


.calendar-day.today {
    background-color: #ffe0b2;
    border: 2px solid #ff9800; 
    font-weight: bold;
    color: #333;
}

.calendar-day.past-day {
    background-color: #e0e0e0; 
    color: #999; 
    cursor: not-allowed; 
    pointer-events: none; 
    opacity: 0.7; 
}

   
    .calendar-day.past-day:hover {
        background-color: #e0e0e0; 
        box-shadow: none;
    }


.calendar-nav.disabled {
    color: #ccc; 
    cursor: not-allowed;
    opacity: 0.5;
}

    .calendar-nav.disabled:hover {
        color: #ccc; 
    }


.calendar-day.selected-range {
    background-color: #a7d9ef;
    border: 2px solid #007bff; 
    color: #333;
    font-weight: bold;
    
}

   
    .calendar-day.selected-range.today {
        background-color: #90caf9;
        border-color: #1976d2;
    }