* { box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Arial, sans-serif; margin: 0; background: #f4f6f8; color: #1c2733; }
header { background: #14365c; color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.brand { font-size: 1.25em; font-weight: 700; }
.brand span { font-weight: 400; opacity: .75; font-size: .8em; }
nav a { color: #cfe0f5; text-decoration: none; margin-right: 18px; padding: 6px 10px; border-radius: 6px; }
nav a.actif, nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
main { padding: 24px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 1.4em; margin: 0 0 18px; }
h2 { font-size: 1.1em; margin: 26px 0 10px; }
.carte { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cartes { display: flex; gap: 18px; flex-wrap: wrap; }
.cartes .carte { flex: 1 1 320px; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .88em; }
th, td { border: 1px solid #dde3ea; padding: 6px 8px; text-align: left; vertical-align: middle; }
th { background: #eef2f7; position: sticky; top: 0; }
tr.exclue td { opacity: .45; text-decoration: line-through; }
tr.probleme td { background: #fff3e6; }
tr:focus-within td { background: #dbeafe !important; box-shadow: inset 0 -2px 0 #14365c; }
td.num, th.num { text-align: right; white-space: nowrap; }
.message { background: #e2f5e5; border: 1px solid #79c789; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.erreur { background: #fdeaea; border: 1px solid #e08c8c; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.alerte { background: #fff3e6; border: 1px solid #e6b87a; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
input[type=text], select { padding: 5px 8px; border: 1px solid #c4ccd6; border-radius: 6px; font-size: .95em; }
input.compte { width: 90px; font-family: ui-monospace, Menlo, monospace; }
button, .bouton { background: #14365c; color: #fff; border: 0; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: .95em; text-decoration: none; display: inline-block; }
button:hover, .bouton:hover { background: #1d4a7d; }
button.petit { padding: 4px 9px; font-size: .85em; }
.filtres { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.filtres label { display: flex; flex-direction: column; font-size: .8em; color: #5a6b7d; gap: 3px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .8em; background: #eef2f7; }
.badge.ko { background: #fdeaea; color: #a33; }
.badge.ok { background: #e2f5e5; color: #2a7a3b; }
.pastille-d { color: #a33; font-weight: 600; }
.pastille-r { color: #2a7a3b; font-weight: 600; }
.aide { color: #5a6b7d; font-size: .85em; }
.total-ok { color: #2a7a3b; font-weight: 700; }
.total-ko { color: #a33; font-weight: 700; }

header .deconnexion { margin-left: auto; }
header .deconnexion button { background: rgba(255,255,255,.15); }
header .deconnexion button:hover { background: rgba(255,255,255,.3); }
