/* Style pour impression */
@media print {
    
/* Styles généraux pour l'impression */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Conteneur pour centrer le formulaire */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Assure que le conteneur prend toute la hauteur de la fenêtre */
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: none; /* Masquer la navigation dans l'impression */
}

.content {
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th, tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

thead th {
    background-color: #f2f2f2;
}

.reserved {
    margin-top: 5px;
    font-size: 0.9em;
}

/* Styles pour le tableau du calendrier */
tbody td {
    height: 100px;
    vertical-align: top;
    padding: 5px;
    position: relative;
}

/* Styles pour les dates */
.date {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Styles pour les réservations */
.reservation {
    font-size: 0.9em;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #fff;
}

/* Classes pour les couleurs des réservations */
.reservation.green {
    background-color: #4CAF50;
}

.reservation.red {
    background-color: #F44336;
}

.reservation.orange {
    background-color: #FFA500;
    color: white;
}

/* Message pour aucune réservation */
td div {
    text-align: center;
    color: #999;
}

/* Style pour la pagination */
a.pagination {
    display: none; /* Masquer la pagination dans l'impression */
}

/* CSS pour masquer le bouton d'impression à l'impression */
.print-button {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    table, thead th, tbody td {
        display: block;
        width: 100%;
    }

    thead th {
        display: none;
    }

    tbody td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        text-align: left;
        font-weight: bold;
    }
}

}
