* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #222;
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 60px auto;
    padding: 0 24px;
}

h1 {
    margin-bottom: 28px;
    font-size: 28px;
}

.btn-ajouter {
    display: inline-block;
    background: #163a5c;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 32px;
}

.btn-ajouter:hover {
    background: #1f4d77;
}

.liste-taches {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.liste-taches li {
    background: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.titre {
    flex: 1;
    font-size: 16px;
}

.liste-taches li.terminee .titre {
    text-decoration: line-through;
    color: #aaa;
}

.checkbox {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 2px solid #163a5c;
    border-radius: 50%;
    background: #fff;
    color: #163a5c;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox:hover {
    background: #eef3f8;
}

.liste-taches li.terminee .checkbox {
    background: #163a5c;
    color: #fff;
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-action {
    font-size: 14px;
    text-decoration: none;
    color: #163a5c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-action:hover {
    text-decoration: underline;
}

.btn-supprimer {
    color: #c0392b;
}

.form-bascule,
.form-supprimer {
    display: inline;
}

.liste-taches form {
    flex-direction: row;
    background: none;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

/* Formulaires des pages ajouter / modifier */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 440px;
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

label {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

input[type="text"] {
    padding: 11px 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #163a5c;
}

.erreur {
    color: #c0392b;
    margin-bottom: 16px;
}

.retour {
    display: inline-block;
    margin-top: 20px;
    color: #163a5c;
}

.vide {
    color: #777;
    margin-top: 8px;
}