/* Déployeur ZamGescom : couleurs du logiciel (vert #163832, or #D99A1E, fond #F4F5F3, bordures #E2E4DF) */
:root { --ink: #163832; --ink-soft: #32504B; --accent: #D99A1E; --fond: #F4F5F3; --trait: #E2E4DF; --texte: #1C1917; --gris: #78716C; --vert: #047857; --rouge: #B91C1C; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.55 "Public Sans", system-ui, "Segoe UI", Arial, sans-serif; }
a { color: var(--ink); }
.barre { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 18px; padding: 12px 24px; }
.barre span { color: #C9D8D3; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; font-size: 17px; }
.marque i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 900; }
.page { max-width: 1120px; margin: 24px auto; padding: 0 20px 60px; }
h1 { font-size: 24px; color: var(--ink); margin: 0 0 4px; } h2 { font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.sous { color: var(--gris); margin: 0 0 20px; }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 18px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 10px 16px; font: 700 14px inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.bouton.principal { background: var(--accent); color: var(--ink); }
.bouton.sombre { background: var(--ink); color: #fff; }
.bouton.contour { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.bouton.danger { background: #fff; color: var(--rouge); border: 1.5px solid #F3B5B0; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.message { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.message.succes { background: #D1FAE5; color: #065F46; } .message.erreur { background: #FEE2E2; color: #991B1B; } .message.info { background: #F7E3B8; color: #5B4512; }
label { display: block; font-weight: 600; font-size: 14px; margin-top: 12px; }
label small { display: block; font-weight: 400; color: var(--gris); }
input[type=text], input[type=password], input[type=number], input[type=url], select, textarea { width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--trait); border-radius: 8px; font: inherit; background: #fff; }
textarea { font-family: Consolas, monospace; font-size: 13px; }
.case { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.deux { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.chiffres div { background: var(--fond); border-radius: 10px; padding: 12px; }
.chiffres b { display: block; font-size: 24px; color: var(--ink); }
.chiffres p { margin: 0; color: var(--gris); font-size: 13px; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); margin-top: 8px; }
.liste-fichiers { max-height: 260px; overflow: auto; font-family: Consolas, monospace; font-size: 12.5px; background: var(--fond); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.progression { height: 14px; background: var(--trait); border-radius: 7px; overflow: hidden; margin: 14px 0 6px; }
.progression i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.journal { height: 240px; overflow: auto; font-family: Consolas, monospace; font-size: 12.5px; background: #0F2925; color: #C9D8D3; border-radius: 8px; padding: 10px 12px; }
.journal .ko { color: #FCA5A5; } .journal .ok { color: #86EFAC; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--gris); font-weight: 600; font-size: 12.5px; padding: 8px; border-bottom: 1px solid var(--trait); }
td { padding: 8px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.termine { background: #D1FAE5; color: var(--vert); } .badge.annule { background: #FEE2E2; color: var(--rouge); } .badge.en_cours { background: #F7E3B8; color: #5B4512; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .deux, .chiffres { grid-template-columns: 1fr 1fr; } }

/* Zone de dépôt d'un .zip */
.depot { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 10px; padding: 22px 16px; border: 2px dashed var(--trait); border-radius: 12px;
  background: var(--fond); cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400; }
.depot strong { color: var(--ink); font-size: 15px; }
.depot span { color: var(--gris); font-size: 13px; }
.depot:hover, .depot.survol { border-color: var(--accent); background: #FBF3E2; }
.depot.envoi { border-style: solid; border-color: var(--ink); cursor: progress; }
.depot.refus { border-color: var(--rouge); background: #FEE2E2; }
.depot-barre { display: block; width: 100%; max-width: 360px; height: 8px; margin-top: 6px; background: var(--trait); border-radius: 4px; overflow: hidden; }
.depot-barre i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.depot.grand { padding: 34px 16px; }
.depot.grand strong { font-size: 17px; }
.maj-zip { border: 2px solid var(--accent); }
