* { box-sizing: border-box; }
body {
  margin: 0; background: #f4f5f7; color: #1c2333;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
}
nav {
  background: #101828; color: #fff; display: flex; align-items: center;
  gap: 18px; padding: 0 24px; height: 52px;
}
nav a { color: #cbd2e0; text-decoration: none; padding: 4px 2px; }
nav a:hover { color: #fff; }
nav .droite { margin-left: auto; }
.logo { font-size: 17px; letter-spacing: .3px; margin-right: 12px; }
.logo strong { color: #4f8cff; }
main { max-width: 1080px; margin: 28px auto; padding: 0 20px; }
h1 { font-size: 24px; margin: 0 0 18px; }
h1 strong { color: #4f8cff; }
h2 { font-size: 17px; margin: 0 0 12px; }
.carte {
  background: #fff; border: 1px solid #e3e6ec; border-radius: 10px;
  padding: 20px 22px; margin-bottom: 18px;
}
.etroit { max-width: 420px; margin: 60px auto; }
.sous-titre { color: #5a6478; margin-top: -8px; }
.cartes-ligne { display: flex; gap: 18px; flex-wrap: wrap; }
.cartes-ligne .carte { flex: 1; min-width: 200px; }
.stat .chiffre { display: block; font-size: 30px; font-weight: 700; }
.stat span { display: block; color: #5a6478; }
.stat a { display: inline-block; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #edf0f4; }
th { color: #5a6478; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
tr.total td { font-weight: 700; border-top: 2px solid #d6dbe4; }
tr.inactif td { color: #9aa3b5; }
td.net { font-weight: 700; color: #0a7a3d; }
td.negatif, .negatif { color: #c02626; font-weight: 600; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.badge.erreur { background: #fde8e8; color: #c02626; }
.badge.ok { background: #e5f6ec; color: #0a7a3d; }
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 13px; color: #3a4358; }
input {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid #ccd3de; border-radius: 7px; font-size: 15px; font-weight: 400;
}
input:focus { outline: 2px solid #4f8cff; border-color: transparent; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 18px; }
.grille button { grid-column: 1 / -1; justify-self: start; }
label.case { display: flex; align-items: center; gap: 8px; }
label.case input { width: auto; margin: 0; }
button, .bouton {
  background: #2456d6; color: #fff; border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block; margin-top: 6px;
}
button:hover, .bouton:hover { background: #1b46b5; }
.bouton.secondaire { background: #eef1f6; color: #1c2333; }
.bouton.secondaire:hover { background: #e2e7f0; }
.bouton.desactive, button:disabled { background: #c7cedb; cursor: not-allowed; }
button.lien {
  background: none; color: #2456d6; padding: 0; margin: 0; font-weight: 400; font-size: 15px;
}
button.lien.danger { color: #c02626; }
.actions { white-space: nowrap; }
.actions form { display: inline; margin-left: 10px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: #e5f6ec; color: #0a7a3d; }
.flash.erreur { background: #fde8e8; color: #c02626; }
.alertes { border-left: 4px solid #e8a13c; }
.alertes ul { margin: 0; padding-left: 20px; }
.alertes li { margin-bottom: 6px; }
.note { color: #5a6478; font-size: 13px; }
pre { white-space: pre-wrap; background: #f7f8fa; padding: 16px; border-radius: 8px; }
.actions-semaine .bouton { margin-right: 10px; }
a { color: #2456d6; }
