/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #0033cc;
    color: white;
}

#calendar {
    margin: 20px auto;
    width: 90%;
}

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

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

th {
    background-color: #0033cc;
    color: white;
}

/* Styles pour le formulaire */
#form {
    width: 90%;
    margin: 20px auto;
}

#form h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 10px 0 5px;
}

input, textarea {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #0033cc;
    color: white;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #001f80;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #0033cc;
    color: white;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    #calendar {
        width: 100%;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }
    
    header h1 {
        font-size: 1.5em;
    }

    form input, form textarea {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
        padding: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    th, td {
        font-size: 12px;
    }

    form input, form textarea {
        font-size: 12px;
        padding: 8px;
    }

    button {
        padding: 8px;
        font-size: 12px;
    }
}

/* Style de base pour le champ select */
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
}

/* Apparence du champ select sur les appareils mobiles */
@media screen and (max-width: 768px) {
    select {
        font-size: 14px;
        padding: 8px;
    }
}

/* Style du champ select au focus */
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Style de l'option sélectionnée */
option {
    font-size: 16px;
    padding: 10px;
}
