/* ====== GLOBAL ====== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f6f8; /* fond clair */
    color: #2c2c2c;
}

/* Conteneur centré */
.container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* ====== FLASH MESSAGES ====== */
.flash-container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto 0;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.flash-error,
.flash-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* ====== TITRES ====== */
h1, h2, h3 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ====== TABLE ====== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table thead {
    background: #eef0f4;
}

table th, table td {
    border: 1px solid #ddd; /* bordures light */
    padding: 12px 10px;
    text-align: left;
}

/* Rangs alternés */
table tr:nth-child(even) {
    background: #fafafa;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

/* Bouton principal (ajout, save) */
.btn-primary {
    background: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background: #3e5ad6;
}

/* Bouton d'édition */
.btn-edit {
    background: #ffc107;
    color: #2c2c2c;
}

.btn-edit:hover {
    background: #e0a800;
}

/* Bouton suppression */
.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #b02a37;
}

/* Boutons flèches */
.btn-arrow {
    background: #17a2b8;
    color: white;
    padding: 6px 10px;
}

.btn-arrow:hover {
    background: #117a8b;
}

/* Form inline */
form.inline {
    display: inline;
}

/* Marges */
.mt-20 {
    margin-top: 20px;
}


/* ====== BADGES STATUT ====== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-todo {
    background: #ffeeba;
    color: #856404;
}

.badge-doing {
    background: #cce5ff;
    color: #004085;
}

.badge-done {
    background: #d4edda;
    color: #155724;
}

/* Boutons statut */
.btn-status {
    background: #e9ecef;
    color: #343a40;
    padding: 4px 8px;
    font-size: 12px;
    margin: 0 2px;
}

.btn-status:hover {
    background: #ced4da;
}


/* ====== BOARD STYLE (type Trello) ====== */
.board {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Colonnes */
.column {
    flex: 1;
    background: #f0f2f6;
    border-radius: 10px;
    padding: 10px;
    min-height: 200px;
}

/* Header des colonnes */
.column-header {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.column-todo {
    background: #fff3cd;
    color: #856404;
}

.column-doing {
    background: #cce5ff;
    color: #004085;
}

.column-done {
    background: #d4edda;
    color: #155724;
}

/* Cartes */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-actions {
    margin-top: 6px;
}

/* Texte quand colonne vide */
.empty-column {
    font-size: 13px;
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}
