body {
    font-family: sans-serif;
    font-size: 20px;
    margin: 20px;
    background-color: white;
    color: #333;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    border-bottom: 2px solid black;
}

nav ul li a {
    padding: 10px 20px;
    display: block;
    color: black;
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

/* Hover Navbar */
nav ul li a:hover {
    background-color: #f0f0f0;
}

nav ul li a.active {
    background-color: black;
    color: white;
}

nav ul li:last-child {
    margin-left: auto;
}

/* --- Layout Général --- */
h1 {
    font-size: 28px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions {
    margin-bottom: 25px;
}

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

th,
td {
    border: 1px solid black;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #fafafa;
}

/* --- Formulaires --- */
form {
    max-width: 600px;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 18px;
    box-sizing: border-box;
    border: 1px solid black;
}

.form-large {
    max-width: 100%;
}

/* --- Boutons --- */
button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    background-color: white;
    border: 2px solid black;
    font-weight: bold;
    transition:
        background-color 0.2s,
        color 0.2s;
}

/* Hover Boutons */
button:hover {
    background-color: black;
    color: white;
}

/* --- Page Connexion (Centrage) --- */
.page-connexion {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.boite-connexion {
    width: 400px;
    padding: 40px;
    border: 2px solid black;
    background-color: white;
    text-align: center;
}

.boite-connexion form {
    text-align: left;
}

.boite-connexion h1 {
    margin-top: 0;
}

.boite-connexion button {
    width: 100%;
}

/* --- Messages --- */
.succes {
    color: #155724;
    border: 2px solid #155724;
    background-color: #d4edda;
    padding: 15px;
    margin-bottom: 20px;
}

.erreur {
    color: #721c24;
    border: 2px solid #721c24;
    background-color: #f8d7da;
    padding: 15px;
    margin-bottom: 20px;
}

/* --- Page Détails --- */
.fiche {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
}

.fiche p {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.fiche strong {
    color: #000;
    display: inline-block;
    width: 250px;
}

.liste-commentaires {
    padding: 0;
}

.liste-commentaires li {
    list-style: none;
    background: #f9f9f9;
    padding: 15px;
    border-left: 5px solid black;
    margin-bottom: 15px;
}

/* --- Statistiques --- */
.stats-globales {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    border: 2px solid black;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    font-size: 18px;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
}
