.calendar-nav {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calendar-nav a {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
week-navigation {
    width: 100%;
    justify-content: center;
}

#week-info {
    text-align: center;
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

table {
    margin-left: 5%;
    width: 90%;
    border-collapse: collapse;
    table-layout: fixed;
}
th, td {
    width: calc(100% / 22);
    min-width: 50px; /* Largeur minimale pour éviter que les cellules ne deviennent trop petites */
    max-width: 80px; /* Largeur maximale pour éviter que les cellules ne deviennent trop larges */
    border: 1px solid #ddd;
    padding: 0;
    text-align: center;
    cursor: pointer;
}
th {
    background-color: #f2f2f2;
}
.time-slot {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    min-height: 40px;
}
.room-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
}
.room-cell:last-child {
    border-right: 1px solid #ddd;
    padding: 4px;
    height: auto; /* Hauteur automatique */
    min-height: 60px; /* Hauteur minimale pour le contenu */
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.motif-popup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 5px;
}
.reservation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.reservation-content span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    word-break: break-word;
}

.delete-btn {
    width: 100%;
    font-size: 12px;
    padding: 2px 4px;
    margin-top: 3px; /* Espace au-dessus du bouton */
}

/* Style pour les cases réservées (conserve la couleur mais plus foncée) */
.room-cell.reserved[data-room="info gela"] {
    background-color: #b3e5ff; /* Bleu plus foncé */
}
.room-cell.reserved[data-room="chromebook 1"] {
    background-color: #b3ffb3; /* Rose plus foncé */
}
.room-cell.reserved[data-room="chromebook 2"] {
    background-color: #b3ffb3; /* Vert plus foncé */
}

.legend-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Trait plus épais toutes les 2 lignes */
tbody tr:nth-child(2),
tbody tr:nth-child(4),
tbody tr:nth-child(6) {
    border-bottom: 5px solid #bbb; /* Trait plus épais */
}

/* Cibler la 5ème lignes ostiralea*/
tbody tr:nth-child(5) {
    /* Cibler les colonnes du vendredi (ajuste les indices selon ta structure) */
    td:nth-child(14),
    td:nth-child(15),
    td:nth-child(16) {
        background-color: #c8c8c8;
    }
}

/* Cibler les 4 dernières lignes asteazkena*/
tbody tr:nth-last-child(-n+4) {
    td:nth-child(8),
    td:nth-child(9),
    td:nth-child(10) {
        background-color: #c8c8c8;
    }
}
