/* Style général */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
}

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

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

th {
    background-color: #1fd5cc;
    color: white;
    cursor: pointer;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Formulaire */
form {
    margin: 20px 0;
}

input, button, select, textarea {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* Boutons */
button {
    background-color: #35b9a7;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px;
    background: white;
    border: 2px solid black;
    width: 400px; /* largeur fixe plus étroite */
    max-width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #000;
    border-radius: 8px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
/* Bouton */
.btn-modifier, .btn-supprimer {
    padding: 4px 8px;
    font-size: 0.85em;
    border: none;
    text-decoration: none;
    color: white;
    border-radius: 30px;
    margin-right: 20px;
}

.btn-modifier {
    background-color: #3498db;
}

.btn-supprimer {
    background-color: #e74c3c;
}

.btn-modifier:hover,
.btn-supprimer:hover {
    opacity: 0.85;
}
