body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

.add-task {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.add-task input[type="text"], .add-task input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.add-task button {
    width: 100%;
    padding: 10px 15px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.task-lists {
    display: flex;
    flex-direction: column;
}

.task-list {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #f4f4f4;
    margin: 5px 0;
    padding: 10px;
    border-radius: 3px;
}

.task-details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #e9e9e9;
    border-radius: 3px;
}

.task-details textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.important {
    border-left: 5px solid #ff4500;
}

/* Responsive design */
@media screen and (min-width: 768px) {
    .add-task input[type="text"], .add-task input[type="date"] {
        width: 70%;
        display: inline-block;
        margin-right: 2%;
    }

    .add-task button {
        width: auto;
        display: inline-block;
    }

    .task-lists {
        flex-direction: row;
        gap: 10px;
        justify-content: space-evenly;
    }

    .task-list {
        flex: 1;
    }
}

/* Ajustements pour les boutons sur mobile */
@media screen and (max-width: 767px) {
    li button {
        display: block;
        width: 100%;
        margin-top: 5px;
    }
}