/* Police et arrière-plan */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Conteneur principal */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Titres */
h2 {
    color: #444;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Formulaires */
form {
    margin-top: 20px;
}

label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #555;
}

/* Champs de saisie */
input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Boutons */
input[type="submit"],
input[type="button"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

input[type="submit"]:active,
input[type="button"]:active {
    transform: scale(0.98);
}

/* Messages d'erreur et de succès */
.error {
    color: #dc3545;
    font-weight: bold;
    margin: 10px 0;
}

.success {
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
}

/* Listes */
ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 1rem;
}

th {
    background-color: #f7f7f7;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #eef6ff;
}

/* Liens */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}
