div#PlanningCreneaux {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.planning {
    text-align: center;
}

.planningperiods {
    margin: 30px 0;
}

.hidden {
    display: none;
}

.Prestataires, .Ressources{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 8px;
    /*padding: 20px;
    margin: 20px 0;*/
}

.Prestataires h1, .Ressources h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.ressources {
    width: 100%;
}

.form-control-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    color: #555;
}

.reservation-page {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
}

.selected-prestations {
    flex: 1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

.selected-prestations h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.prestation, .forfait {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.prestation p, .forfait p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

.prestation .btn-danger, .forfait .btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.prestation .btn-danger:hover, .forfait .btn-danger:hover{
    background-color: #c82333;
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.planning {
    flex: 2;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

.planning iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

.planning-table {
    width: 100%;
    border: 1px solid black;
    border-radius: 25px;
    border-collapse: inherit;
    table-layout: fixed;
    background: white;
    color: black;
}

.planning-table td {
    opacity: 1;
    height: 45px;
}

th#month {
    font-size: 20px;
}

.planning-table th {
    height: 25px;
}

.planning-table td:hover {
    cursor: not-allowed;
}

.planning-table td.not-available {
    background: #e55454;
}

.planning-table td.available {
    background: #00c062;
}

.planning-table td.available:hover {
    cursor: pointer;
    opacity: 0.8;
}

.planning-table td.out {
    color: grey;
    background: none;
}

.planning-table td.active {
    color: gold;
    border: 2px solid;
}

.planning-table td.out:hover {
    cursor: not-allowed;
}

.planning-table td {
    color: white;
}

span.creneau.dispo {
    padding: 10px 30px;
    background: #ddd;
    border-radius: 50px;
    margin: 10px;
    color: black;
}

span.creneau.dispo:hover {
    cursor: pointer;
    background: #96da3e;
    color: #FFF;
}

span.creneau.dispo.selected {
    background: #87D728;
    color: #FFF;
}

@media (max-width: 470px) {
    span.creneau.dispo {
        padding: 7px 10px;
        margin: 5px;
    }
}

.reservation_validation {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#validation-message {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ff9800;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    text-align: center;
}

#validate-button {
    display: block;
    margin: 20px auto;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#validate-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#validate-button:not(:disabled):hover {
    background-color: #0056b3;
}

button#next, button#prev {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 4px 5px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}

button#next:hover, button#prev:hover {
    background-color: #0056b3;
}

button#next:disabled, button#prev:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#sixth-row td:first-child {
    border-radius: 0 0 0 23px;
}
#sixth-row td:last-child {
    border-radius: 0 0 23px 0;
}

.reservation_validation {
    display: flex;
    flex-direction: column; /* Arrange les éléments en colonne */
    gap: 15px; /* Espacement entre les éléments */
}
#PlanningCreneaux {
    margin-bottom: 20px; /* Ajoute un peu d'espace sous les créneaux */
}
.optionsresa {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
#validate-button {
    align-self: flex-start; /* Aligne le bouton à gauche */
}
.optionsresa label {
    display: flex;
    flex-direction: column;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .reservation-page {
        flex-direction: column;
        align-items: center;
    }

    .selected-prestations, .planning {
        min-width: 100%;
    }
}

@media (max-width: 1024px) {
    .reservation-page {
        gap: 10px;
    }

    .Prestataires h1 {
        font-size: 1.2em;
    }

    .selected-prestations h3 {
        font-size: 1.2em;
    }

    .planning-table td {
        height: 35px;
    }

    th#month {
        font-size: 18px;
    }

    .planning-table th {
        height: 20px;
    }

    span.creneau.dispo {
        padding: 8px 20px;
    }
}
