:root {
    --vert: #00693E;
    --vert-fonce: #004d2d;
    --texte: #1d2129;
    --discret: #5A5E70;
    --fond: #f5f7f6;
    --bord: #dde3e0;
    --danger: #b3261e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--texte);
    background: var(--fond);
}

h1 { font-size: 1.6rem; margin: 0 0 24px; }
h1:focus { outline: none; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; }

a { color: var(--vert); }

.discret { color: var(--discret); font-size: 0.9rem; }

.carte {
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 12px;
    padding: 20px 24px;
}

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tuile { text-decoration: none; color: inherit; }
.tuile .valeur { font-size: 2rem; font-weight: 700; color: var(--vert); }

.tableau { overflow-x: auto; background: #fff; border: 1px solid var(--bord); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--discret); }
tr:last-child td { border-bottom: none; }
tr.estompe td { color: var(--discret); }

.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; background: #e7efeb; }
.pastille.alerte { background: #fbe9e7; color: var(--danger); }

button, .bouton {
    font: inherit;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    background: var(--vert);
    color: #fff;
    text-decoration: none;
    display: inline-block;
}
button.danger, .bouton.danger { background: var(--danger); }
button.secondaire, .bouton.secondaire { background: #fff; color: var(--texte); border: 1px solid var(--bord); }
button.link { background: none; padding: 0; border-radius: 0; }

.erreur { background: #fbe9e7; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.succes { background: #e7efeb; color: var(--vert-fonce); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }

.centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=email], input[type=password] {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--bord);
    border-radius: 10px;
}
.validation-message { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }

.actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
