/* Le portail Visual Engine : le même thème que l'application (sombre, sobre). */
:root {
  --fond: #0f141b; --panneau: #161d27; --carte: #1c2531; --bord: #2a3646;
  --texte: #e6ebf2; --doux: #93a1b4; --accent: #4f8ef7; --vert: #3fbf7f; --orange: #e6a23c; --rouge: #e5604d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: var(--panneau); border-bottom: 1px solid var(--bord); }
header .barre { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
header .marque { font-weight: 600; font-size: 18px; color: var(--texte); margin-right: auto; }
header nav { display: flex; gap: 18px; flex-wrap: wrap; }
header nav a { color: var(--doux); }
header nav a.actif, header nav a:hover { color: var(--texte); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
main.etroit { max-width: 460px; }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.doux { color: var(--doux); font-size: 13.5px; }
label { display: block; color: var(--doux); font-size: 13.5px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; background: var(--fond); color: var(--texte); border: 1px solid var(--bord); border-radius: 7px; padding: 9px 10px; font: inherit;
}
textarea { min-height: 80px; }
button, .bouton {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 9px 16px; font: inherit;
  font-weight: 600; cursor: pointer; margin: 12px 8px 0 0;
}
button.secondaire, .bouton.secondaire { background: transparent; border: 1px solid var(--bord); color: var(--texte); }
button.danger { background: var(--rouge); }
button.petit, .bouton.petit { padding: 5px 10px; font-size: 13px; margin-top: 0; }
.nowrap { white-space: nowrap; }
td.actions { white-space: nowrap; text-align: right; }
form.ligne { display: inline; }
.message { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; background: #22324a; }
.message.erreur { background: #5a2422; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { color: var(--doux); font-weight: 600; font-size: 13px; }
.etat { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.etat.vert { background: #1f3d30; color: var(--vert); }
.etat.orange { background: #3d311c; color: var(--orange); }
.etat.rouge { background: #3d2320; color: var(--rouge); }
.chiffres { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.chiffres .carte { flex: 1 1 180px; margin: 0; }
.chiffres .valeur { font-size: 28px; font-weight: 600; }
code, .cle { font-family: Consolas, "Cascadia Mono", monospace; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 640px) { th:nth-child(n+4), td:nth-child(n+4) { display: none; } }
