/* --- Réinitialisation --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif; /* Police moderne */
}

body {
    background: #f7f8fa; /* Gris clair plus doux pour l'arrière-plan */
    color: #4e5d6c; /* Gris foncé pour le texte principal */
    min-height: 100vh;
    line-height: 1.6; /* Meilleure lisibilité du texte */
}

/* --- Menu de navigation --- */
header {
    background: #0056a1; /* Bleu institutionnel plus sombre */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 14px 0;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu .logo {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin-left: 25px;
}

.menu ul li .btn {
    text-decoration: none;
    color: #ffffff;
    background: #006bb3; /* Bleu clair plus doux */
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
}

.menu ul li .btn:hover {
    background: #004c8b; /* Bleu plus foncé pour hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* --- Formulaire centré --- */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.form-container h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

form {
    background: #ffffff;
    padding: 35px 45px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #444;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #d1d9e6; /* Bordure subtile pour les champs */
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #0056a1; /* Bleu pour focus */
    box-shadow: 0 0 8px rgba(0, 86, 161, 0.5);
    outline: none;
}

.btn-submit {
    background: #006bb3; /* Bleu pour bouton submit */
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #004c8b; /* Bleu plus foncé pour hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* --- Bouton déconnexion stylé --- */
.btn-deconnexion {
    background: #e74c3c; /* Rouge discret */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deconnexion:hover {
    background: #c0392b; /* Rouge plus sombre pour hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-deconnexion:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Styles pour le tableau --- */
.table-container {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #ffffff; /* Fond plus neutre pour le tableau */
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

th, td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 1rem;
}

th {
    background-color: #0056a1; /* Bleu pour l'en-tête */
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f4f7fc; /* Lignes paires plus claires */
}

tr:hover {
    background-color: #ecf0f1; /* Survol plus subtil */
    transition: background-color 0.3s ease;
}

caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #444;
}

.btn-modification {
    background: #27ae60; /* Vert pour la modification */
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modification:hover {
    background: #2ecc71; /* Vert plus foncé pour hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-modification:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
