/* Console de prospection — feuille unique, aucun style en ligne (CSP stricte). */
:root {
  --fond: #f6f7f9; --surface: #ffffff; --texte: #1d2430; --discret: #667085; --bord: #dde1e7;
  --accent: #2f5fd0; --accent-texte: #ffffff; --ok: #1f7a4d; --ok-fond: #e3f4ea;
  --ko: #b42318; --ko-fond: #fde8e6; --avert: #8a5a00; --avert-fond: #fff4db; --barre: #2f5fd0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #12151b; --surface: #1b2029; --texte: #e6e9ef; --discret: #98a2b3; --bord: #2c3340;
    --accent: #6e93f2; --accent-texte: #0d1117; --ok: #5cc98f; --ok-fond: #15301f;
    --ko: #f97066; --ko-fond: #3a1714; --avert: #f5c04a; --avert-fond: #33270c; --barre: #6e93f2;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.6rem; margin: 0 0 12px; } h2 { font-size: 1.1rem; margin: 0 0 12px; }
.barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--bord); }
.marque { font-weight: 700; text-decoration: none; color: var(--texte); }
.barre nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
.barre nav a { text-decoration: none; color: var(--discret); padding: 4px 0; }
.barre nav a.actif { color: var(--texte); border-bottom: 2px solid var(--accent); }
.deco { margin: 0; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.etroite { max-width: 420px; margin: 60px auto; }
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.grille2 > * { min-width: 0; }
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.actions { display: flex; gap: 8px; } .actions form { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 12px 14px; color: var(--discret); text-decoration: none; }
.kpi .valeur { font-size: 1.6rem; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--bord); vertical-align: top; }
thead th { color: var(--discret); font-weight: 600; white-space: nowrap; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.defile { overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.discret { color: var(--discret); }
.coupe { max-width: 260px; overflow-wrap: anywhere; }
table.barres th { width: 34%; font-weight: 500; } table.barres td:nth-child(2) { width: 50%; }
.barre-h { width: 100%; height: 12px; display: block; } .barre-h rect { fill: var(--barre); }
.barres-v { width: 100%; height: 140px; display: block; } .barres-v rect { fill: var(--barre); }
.axe { display: flex; justify-content: space-between; color: var(--discret); font-size: 0.8rem; margin: 4px 0 0; }
.pastille { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; background: var(--fond); border: 1px solid var(--bord); white-space: nowrap; }
.pastille.ok, .statut-succes { background: var(--ok-fond); color: var(--ok); border-color: transparent; }
.pastille.ko, .statut-echec { background: var(--ko-fond); color: var(--ko); border-color: transparent; }
.statut-en_cours, .statut-en_attente, .pastille.test, .pastille.manuel { background: var(--avert-fond); color: var(--avert); border-color: transparent; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li, .alerte, .info { padding: 10px 14px; border-radius: 8px; margin: 0 0 10px; }
.msg-success, .info { background: var(--ok-fond); color: var(--ok); }
.msg-error, .alerte { background: var(--ko-fond); color: var(--ko); }
.msg-info { background: var(--avert-fond); color: var(--avert); }
.avertissement { border-color: var(--avert); } .zone-danger { border-color: var(--ko); }
form { margin: 0 0 8px; }
.champ { margin-bottom: 12px; } .champ label { display: block; font-weight: 600; margin-bottom: 4px; }
.champ small { display: block; color: var(--discret); }
.champ small ul { margin: 4px 0; padding-left: 18px; }
.en-erreur input, .en-erreur select, .en-erreur textarea { border-color: var(--ko); }
.erreur { color: var(--ko); display: block; }
label { display: block; margin-bottom: 10px; } label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; }
input, select, textarea, button, .bouton { font: inherit; color: var(--texte); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--bord); border-radius: 7px; background: var(--fond); }
input[type=checkbox] { width: auto; }
button, .bouton { display: inline-block; padding: 7px 14px; border: 1px solid var(--bord); border-radius: 7px; background: var(--surface); cursor: pointer; text-decoration: none; }
button.principal, .bouton.principal { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
button.danger, .bouton.danger { background: var(--ko-fond); color: var(--ko); border-color: var(--ko); }
button.lien { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
button:disabled { opacity: 0.6; cursor: default; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filtres input[type=search] { flex: 1 1 260px; width: auto; } .filtres select { width: auto; }
fieldset { border: 1px solid var(--bord); border-radius: 8px; margin: 0 0 14px; padding: 10px 14px; } legend { font-weight: 700; padding: 0 6px; }
.ligne { display: flex; flex-wrap: wrap; gap: 12px; } .ligne .champ { flex: 1 1 120px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } dt { color: var(--discret); } dd { margin: 0; }
pre.logs, pre.json { background: var(--fond); border: 1px solid var(--bord); border-radius: 8px; padding: 12px; overflow: auto; max-height: 520px; font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 14px; justify-content: center; margin-top: 12px; }
@media (max-width: 640px) { .grille2 { grid-template-columns: 1fr; } main { padding: 14px 16px 40px; } }
