/* Réinitialiser les marges et les paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général du calendrier */
.calendar {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    background-color: #fff;
    position: relative;
    text-align: center;
}

/* En-tête du calendrier */
.calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
}

.calendar__month-year {
    font-size: 18px;
}

/* Boutons de navigation du calendrier */
.calendar__nav-button {
    cursor: pointer;
    font-size: 18px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.calendar__nav-button:hover {
    background-color: #0056b3;
}

/* Style de la table */
.calendar__table {
    width: 100%;
    border-collapse: collapse;
}

/* Style des cellules de la table */
.calendar__weekday, .calendar__day-cell {
    text-align: center;
    padding: 8px;
}

/* Style des jours du calendrier */
.calendar__day-cell {
    border: 1px solid #ccc;
    position: relative;
}

/* Style des jours du mois actuel */
.calendar__day-cell.current-month-day {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

/* Style des jours désactivés (hors du mois actuel) */
.calendar__day-cell.disabled {
    color: #ccc;
}

/* Style pour mettre en évidence le jour sélectionné */
.calendar__day-cell.selected-day {
    background-color: #ffc107;
}

/* Style pour les en-têtes de jour */
.calendar__weekday {
    background-color: #f0f0f0;
}

/* Style de la modal */
#openModalPointage.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Style pour le bouton "Fermer" de la modal */
#openModalPointage .modal__close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

/* Style du formulaire d'ajout d'événement */
#openModalPointage .modal__title {
    margin-bottom: 10px;
}

#openModalPointage .modal__label {
    display: block;
    margin-bottom: 5px;
}

#openModalPointage .modal__input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

#openModalPointage .modal__button {
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#openModalPointage .modal__button:hover {
    background-color: #0056b3;
}

/* Style pour les événements ajoutés */
.events-container {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.event {
    margin: 5px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
}

/* Style pour les événements ajoutés dans le mois précédent */
.prev-month .event,
.next-month .event {
    background-color: #999;
}

/* Bouton pour changer d'année */
.year-change {
    max-width: 600px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.year-change__button {
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
}

/* Positionnement du bouton d'ajout d'événement */
#openModalBtn {
    margin-top: 10px;
    display: block;
    margin: 0 auto;
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
