/* Reset rapide */
body, h1, h2, p, table, th, td, form, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
}

/* Calendrier */
table.calendar {
    border-collapse: collapse;
    width: 90%;
    max-width: 800px;
    margin-bottom: 30px;
    background-color: #3c3c3c;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

table.calendar th {
    background-color: #444444;
    color: #ffffff;
    padding: 12px;
    font-weight: 600;
}

table.calendar td {
    padding: 15px;
    border: 1px solid #555555;
    vertical-align: middle;
    min-width: 50px;
    height: 60px;
    transition: transform 0.2s, background-color 0.2s;
    cursor: default;
    font-size: 14px;
}

table.calendar td.available {
    background-color: #2ecc71; /* vert */
    color: #000000;
}

table.calendar td.reserved {
    background-color: #e74c3c; /* rouge */
    color: #ffffff;
}

table.calendar td.today {
    border: 2px solid #3498db; /* bordure bleu clair */
}

table.calendar td:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Formulaire */
form {
    width: 90%;
    max-width: 500px;
    background-color: #3c3c3c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

form label {
    display: block;
    margin-bottom: -20px;
    font-weight: 500;
}

form input, form textarea, form button {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

form input, form textarea {
    background-color: #2b2b2b;
    color: #ffffff;
    border: 1px solid #555555;
}

form textarea {
    min-height: 80px;
    resize: vertical;
}

form button {
    background-color: #484735;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #e74c3c;
    transform: scale(1.02);
}

.month-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.month-buttons button {
    background-color: #444;  /* gris foncé */
    color: #fff;             /* texte blanc */
    border: none;
    padding: 6px 10px;       /* plus petit */
    font-size: 12px;         /* plus petit texte */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.month-buttons button:hover {
    background-color: #666;
}

.month-buttons form {
    display: inline-block;
    margin: 0 5px;
}

/* Message succès */
p.success {
    background-color: crimson;
    color: #000000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Table responsive sur petits écrans */
@media(max-width:600px){
    table.calendar td, table.calendar th {
        padding: 8px;
        font-size: 12px;
    }
    form {
        width: 100%;
    }
}
