/* Style général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e6f7ff;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* En-têtes */
h1, h2 {
    text-align: center;
    color: #007acc;
    margin: 20px 0;
    padding: 0;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
}

/* Formulaire */
form {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    transition: all 0.3s ease;
}

form:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Conteneur de champs */
.form-group {
    margin-bottom: 20px;
}

/* Labels et textes */
label {
    font-size: 1rem;
    color: #007acc;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

/* Entrées de texte et boutons */
input[type="text"],
input[type="file"],
input[type="submit"],
input[type="reset"],
select,
textarea {
    width: 100%;
    padding: 12px 18px;
    margin: 8px 0 15px;
    border: 2px solid #007acc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: #005f8d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

/* Radio buttons */
.radio-group {
    margin: 15px 0;
}

input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.radio-label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

/* Boutons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

input[type="submit"],
input[type="reset"],
button {
    flex: 1;
    background-color: #007acc;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    text-align: center;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
    background-color: #005f8d;
    transform: translateY(-2px);
}

input[type="reset"] {
    background-color: #6c757d;
}

input[type="reset"]:hover {
    background-color: #5a6268;
}

/* Tableaux */
table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #007acc;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

td {
    background-color: #f9f9f9;
    vertical-align: middle;
}

tr:nth-child(even) td {
    background-color: #f1f1f1;
}

tr:hover td {
    background-color: #e6f7ff;
}

td img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* Messages */
.message {
    font-size: 1rem;
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    max-width: 600px;
}

.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
    }
    
    form {
        padding: 20px;
        width: 100%;

    }
    
    .button-group {
        flex-direction: column;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 8px 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

form, table {
    animation: fadeIn 0.5s ease-out;
}