:root {
  --vert: #2e7d32; --vert-clair: #e2efda; --bleu: #1565c0;
  --gris: #f2f2f2; --gris-bord: #d9d9d9; --rouge: #c0392b;
  --texte: #1f2933; --muet: #6b7280; --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte); background: #f7f8fa; line-height: 1.5;
}
header, main, footer { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 32px; }
h1 { margin: 0 0 4px; font-size: 1.9rem; }
.sous-titre { color: var(--muet); margin: 0 0 16px; }
h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--bleu);
  color: #fff; font-size: 0.9rem; flex: none;
}
.carte {
  background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius);
  padding: 22px; margin: 18px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bandeau { padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; margin-top: 8px; }
.bandeau--info { background: #eef2ff; color: #3730a3; }
.bandeau--ok { background: var(--vert-clair); color: var(--vert); }
.bandeau--ko { background: #fdecea; color: var(--rouge); }
.depose {
  display: block; border: 2px dashed var(--gris-bord); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer; color: var(--muet);
  transition: border-color .15s, background .15s;
}
.depose:hover, .depose.survol { border-color: var(--bleu); background: #f5f8ff; color: var(--bleu); }
.ligne { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ligne label { font-weight: 600; min-width: 60px; }
select, input[type=file] { font: inherit; }
select {
  padding: 7px 10px; border: 1px solid var(--gris-bord); border-radius: 8px; background: #fff;
  min-width: 220px;
}
.mapping { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 8px; }
.champ { display: flex; flex-direction: column; gap: 4px; }
.champ label { font-weight: 600; font-size: .92rem; }
.champ .requis { color: var(--rouge); }
.champ select { min-width: 0; width: 100%; }
.muet { color: var(--muet); font-size: .92rem; }
.bouton {
  display: inline-block; margin-top: 16px; padding: 11px 20px; border: none;
  border-radius: 8px; background: var(--bleu); color: #fff; font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.bouton:hover { filter: brightness(1.07); }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.bouton--vert { background: var(--vert); }
.bouton--lien { background: none; color: var(--bleu); font-weight: 500; margin-left: 12px; }
.barre { height: 14px; background: var(--gris); border-radius: 8px; overflow: hidden; margin: 10px 0; }
#barre-remplissage { height: 100%; width: 0; background: var(--vert); transition: width .3s; }
.statuts { list-style: none; padding: 0; margin: 0 0 8px; }
.statuts li {
  display: flex; justify-content: space-between; padding: 7px 12px; margin-bottom: 5px;
  background: var(--gris); border-radius: 8px; max-width: 460px;
}
.statuts .compte { font-weight: 700; }
.erreur { color: var(--rouge); background: #fdecea; border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; font-size: .85rem; }
th, td { border: 1px solid #e5e7eb; padding: 5px 9px; text-align: left; white-space: nowrap; }
th { background: var(--gris); }
details summary { cursor: pointer; color: var(--bleu); margin-top: 10px; }
footer { padding: 24px 20px 40px; text-align: center; }
