/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.wide-select {
    width: 200px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

/* Style tableau */
table th {
    text-align: center;
}

/* Style des menus */
.menu {
    background-color: orange;
    color: white;
    padding: 10px;
    text-align: center;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

.menu a:hover {
    background-color: darkorange;
}

/* Style des formulaires */
form {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

form input {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

form button {
    padding: 10px 20px;
    background-color: orange;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: darkorange;
}

form button, .register-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: orange;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

form button:hover, .register-button:hover {
    background-color: darkorange;
}

.register-button {
    background-color: orange;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    margin-left: 10px;
}

.register-button:hover {
    background-color: darkorange;
}

/* Style des tableaux */
table {
    width: auto; /* Change width to auto */
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 5px; /* Reduce padding */
    text-align: center; /* Center text */
}

th {
    background-color: orange;
    color: white;
}

/* Style du contenu */
.content {
    padding: 20px;
    padding-bottom: 60px;
}

.actions-column {
    width: auto;
    white-space: nowrap;
    text-align: center;
}

.nom-column {
    width: auto;
    white-space: nowrap;
    text-align: left;
}

/* Style du footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative; /* Changez de fixed à relative */
    width: 100%;
}

.align-left {
    text-align: left;
}

/* Style pour les champs de formulaire en erreur */
input.error {
    border: 2px solid red;
}

/* Style pour les sections cachées */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .menu a {
        display: block;
        margin: 5px 0;
    }

    form {
        width: 90%;
    }
}

/* Style des icônes */
.icon-cell {
    text-align: center;
}

.icon-cell a {
    color: orange;
    font-size: 1.5em;
}

.icon-cell a:hover {
    color: darkorange;
}

.icon-orange {
    color: orange;
    font-size: 1em;
}

.icon-orange:hover {
    color: darkorange;
}

button.sauvegarder {
    background-color: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    float: right;
    margin-top: 10px;
}

button.sauvegarder:hover {
    background-color: darkorange;
}

button.right-align {
    float: right;
}

button.right-align {
    float: right;
}

.sauvegarder {
    background-color: #4CAF50; /* Couleur de fond */
    border: none; /* Pas de bordure */
    color: white; /* Couleur du texte */
    padding: 15px 32px; /* Espacement interne */
    text-align: center; /* Alignement du texte */
    text-decoration: none; /* Pas de soulignement */
    display: inline-block; /* Affichage en ligne */
    font-size: 16px; /* Taille de la police */
    margin: 4px 2px; /* Marges */
    cursor: pointer; /* Curseur pointeur */
    border-radius: 4px; /* Coins arrondis */
}

/* Style pour l'icône du calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(330deg);
}

/* Style pour les cases à cocher */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background-color: orange;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: orange;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.173 11.414l-3.707-3.707 1.414-1.414 2.293 2.293 5.293-5.293 1.414 1.414-6.707 6.707z"/></svg>');
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajoutez ces styles pour les boutons "Retour" et "Mettre à jour" */
.Sauvegarder {
    display: flex;
    flex-direction: row; /* Aligne les boutons en ligne */
}

.Sauvegarder .retour {
    order: 1; /* Place le bouton "Retour" en premier */
    background-color: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 4px 2px;
    border-radius: 4px;
}

.Sauvegarder .mettre-a-jour {
    order: 2; /* Place le bouton "Mettre à jour" en deuxième */
    background-color: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 4px 2px;
    border-radius: 4px;
}

.Sauvegarder .retour:hover, .Sauvegarder .mettre-a-jour:hover {
    background-color: darkorange;
}

.message-success {
    color: orange;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

.message-error {
    color: red;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}
