/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
}

h1, h2, h3 {
    color: #333;
}

a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: red;
}

form {
    margin-top: 20px;
}

label {
    display: block;
    margin-top: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
}

/* Styles pour le calendrier */
#calendar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Les en-têtes de mois */
.month-header {
    width: 100%;
    text-align: left;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

/* Les lignes de jours */
.days-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

/* Les cellules du calendrier */
.day-cell, .empty-cell, .day-of-week-cell {
    box-sizing: border-box;
    width: calc(100% / 7);
    max-width: 50px;
    height: 50px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
}

.day-of-week-cell {
    font-weight: bold;
}

.empty-cell {
    visibility: hidden;
}

.modifiable {
    border: 1px solid #000;
}

.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Disponibilités */
.no-availability {
    background-color: white;
}

.morning-availability {
    background-color: #add8e6;
}

.afternoon-availability {
    background-color: #00008b;
    color: white;
}

.full-availability {
    background: linear-gradient(to bottom, #add8e6 50%, #00008b 50%);
    color: white;
}

/* Fenêtre modale */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 300px;
    max-width: 90%;
    box-sizing: border-box;
    position: relative;
    margin: auto;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .day-cell, .empty-cell, .day-of-week-cell {
        width: calc(100% / 7);
        height: 40px;
        font-size: 0.8rem;
    }

    .month-header {
        font-size: 1rem;
    }

    .modal-content {
        width: 90%;
        margin: 100px auto;
        padding: 15px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}