h2.dispo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 24px;
}

#status {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ======= LAYOUT RESPONSIVE ======= */

.year {
    font-family: Arial, sans-serif;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width:550px) {
    .year {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablette */
@media (min-width:700px) {
    .year {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width:1000px) {
    .year {
        grid-template-columns: repeat(4, 1fr);
    }
}

.month {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.month h2 {
    text-align: center;
    margin: 4px 0 10px 0;
    font-size: 17px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dayname {
    text-align: center;
    font-size: 11px;
    color: #666;
    padding: 2px;
}

/* jours = carrés, responsive */
.day {
    aspect-ratio: 1 / 1;
    /* carré automatique */
    border-radius: 4px;
    background: #c6f5c6;
    /* vert = ouvert */
    transition: background 0.15s ease;
}

.day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
  
.closed {
    background: #f4b5b5;
    color: #333; /* lisible sur rouge */
}

.empty {
    background: transparent;
}

/* ======= POPUP ======= */
/* Rendre les cases cliquables */
.day:not(.empty) {
    cursor: pointer;
    transition: background 0.2s;
}
/* .day:not(.empty):hover {
    background-color: #f0f0f0;
}
.day.closed:hover {
    background-color: #ffcccc;
} */

/* Styles de la modale */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.close-button {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 24px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.btn-link {
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #455a64;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}