/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Container principal */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
}

header h1 {
    color: #4a69bd;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Formulaires */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    margin-bottom: 20px;
    color: #4a69bd;
    text-align: center;
}

.form-container p {
    margin-bottom: 25px;
    text-align: center;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea.form-control {
    resize: vertical;
}

.has-error .form-control {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.error-alert {
    color: #e74c3c;
    background-color: #fdf2f2;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a69bd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3b5998;
}

.btn-primary {
    background-color: #4a69bd;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Tâches */
.task-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.task-form h2 {
    margin-bottom: 20px;
    color: #4a69bd;
}

.tasks-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tasks-container h2 {
    margin-bottom: 20px;
    color: #4a69bd;
}

.task-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 15px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #4a69bd;
    color: #fff;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #4a69bd;
    border-radius: 4px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.task-status.à {
    background-color: #e74c3c;
    color: #fff;
}

.task-status.en {
    background-color: #f39c12;
    color: #fff;
}

.task-status.terminé {
    background-color: #2ecc71;
    color: #fff;
}

.task-body {
    margin-bottom: 15px;
}

.task-date {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
}

.task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.no-tasks {
    text-align: center;
    padding: 30px;
    color: #777;
}

/* Alertes */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .task-filters {
        flex-wrap: wrap;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
