:root {
  --bleu-drillmex: #1b2a4a;
  --gris-bleu: #6b8ba4;
  --fond: #f4f6f8;
  --bordure: #d7dde3;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--fond);
  margin: 0;
  color: #222;
}

header {
  background: var(--bleu-drillmex);
  color: white;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 { font-size: 1.15rem; margin: 0; font-weight: 600; }
header a { color: #cfe0ee; text-decoration: none; font-size: 0.9rem; }

.container {
  max-width: 760px;
  margin: 30px auto;
  background: white;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 28px 32px;
}

.container.large { max-width: 1100px; }

h2 { margin-top: 0; color: var(--bleu-drillmex); }

label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: 0.92rem; }

input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--bordure);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea { min-height: 110px; resize: vertical; }

button, .btn {
  background: var(--gris-bleu);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 18px;
}

button:hover, .btn:hover { background: var(--bleu-drillmex); }

.succes {
  background: #e4f5e9;
  border: 1px solid #a9d9bb;
  color: #1e6b3a;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.erreur {
  background: #fbe6e6;
  border: 1px solid #e6a9a9;
  color: #a11a1a;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { background: #eef1f4; color: var(--bleu-drillmex); }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: white;
  white-space: nowrap;
}
.badge-Nouveau { background: #4a7fc2; }
.badge-Enattente, .badge-EnAttente { background: #c9982b; }
.badge-Encours { background: #a86dd0; }
.badge-Resolu { background: #3fa15f; }
.badge-Ferme { background: #7a828b; }

.filtres { margin-bottom: 14px; }
.filtres a {
  margin-right: 8px;
  padding: 5px 12px;
  border-radius: 14px;
  background: #eef1f4;
  color: var(--bleu-drillmex);
  text-decoration: none;
  font-size: 0.85rem;
}
.filtres a.actif { background: var(--bleu-drillmex); color: white; }

.compteurs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.compteur { background: #eef1f4; padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; }
.compteur b { color: var(--bleu-drillmex); font-size: 1.05rem; }

form.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
form.inline select, form.inline input { padding: 5px 6px; font-size: 0.82rem; }
form.inline button { padding: 5px 12px; margin-top: 0; font-size: 0.82rem; }
