:root {
  --texte: #1f2328; --discret: #656d76; --bord: #d8dce1; --fond: #f6f7f9;
  --accent: #1f3864; --rouge: #a3262d; --rouge-clair: #fdecec;
  --vert: #1a6b46; --vert-clair: #e8f4ee; --ambre: #8a5a00; --ambre-clair: #fff5e0;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
h2 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
a { color: var(--accent); }

header { background: #fff; border-bottom: 1px solid var(--bord); }
nav {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 52px;
}
nav a { text-decoration: none; color: var(--texte); font-size: 14px; }
nav a:hover { color: var(--accent); }
nav .lien-deconnexion { background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-size: 14px; color: var(--texte); cursor: pointer; }
nav .lien-deconnexion:hover { color: var(--accent); }
nav .marque { font-weight: 600; color: var(--accent); }
nav .pousse { margin-left: auto; color: var(--discret); font-size: 13px; }

table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px;
        border: 1px solid var(--bord); border-radius: 6px; overflow: hidden; }
th { text-align: left; background: #f0f2f5; font-weight: 600; font-size: 12px;
     text-transform: uppercase; letter-spacing: .03em; color: var(--discret); }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tr.retard td { background: var(--rouge-clair); }
tr.termine td { opacity: .55; }
tr.doute td { background: var(--ambre-clair); }
.nowrap { white-space: nowrap; }
.petit { font-size: 13px; }
.discret { color: var(--discret); font-size: 13px; }
.citation { max-width: 380px; font-style: italic; }

.chiffres { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: 6px;
         padding: 14px 18px; min-width: 130px; display: flex; flex-direction: column; }
.carte .nombre { font-size: 26px; font-weight: 600; }
.carte span:last-child { font-size: 12px; color: var(--discret); }
.carte.rouge .nombre { color: var(--rouge); }

.etiquette { display: inline-block; padding: 2px 9px; border-radius: 11px;
             font-size: 12px; white-space: nowrap; background: #eceff3; }
.s-a_faire { background: #eceff3; }
.s-en_cours { background: #e4edfa; color: #14457c; }
.s-attente_tiers { background: var(--ambre-clair); color: var(--ambre); }
.s-traitee { background: var(--vert-clair); color: var(--vert); }
.s-sans_suite { background: #eceff3; color: var(--discret); }
.i-termine { background: var(--vert-clair); color: var(--vert); }
.i-erreur { background: var(--rouge-clair); color: var(--rouge); }
.i-en_cours, .i-en_attente { background: #e4edfa; color: #14457c; }

.puce { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px;
        margin-left: 5px; }
.puce.alerte { background: var(--rouge-clair); color: var(--rouge); }
.puce.doute { background: var(--ambre-clair); color: var(--ambre); }

.bandeau { padding: 11px 14px; border-radius: 6px; font-size: 14px; margin: 12px 0; }
.bandeau.action { background: #e4edfa; color: #14457c; }
.bandeau.alerte { background: var(--rouge-clair); color: var(--rouge); }
.bandeau.ok { background: var(--vert-clair); color: var(--vert); }
.erreur { color: var(--rouge); }

input, select, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=search], select, textarea {
  padding: 7px 9px; border: 1px solid var(--bord); border-radius: 5px;
  background: #fff; max-width: 100%;
}
textarea { width: 100%; resize: vertical; }
button { padding: 8px 15px; background: var(--accent); color: #fff; border: none;
         border-radius: 5px; cursor: pointer; }
button:hover { opacity: .9; }
label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--discret); }
label input, label select { display: block; margin-top: 4px; width: 100%; }
.ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.ligne label { margin: 0; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filtres label.case { display: flex; align-items: center; gap: 5px; margin: 0; }
.filtres label.case input { width: auto; margin: 0; }

.encadre { background: #fff; border: 1px solid var(--bord); border-radius: 6px;
           padding: 18px; margin-bottom: 22px; }
.connexion { max-width: 340px; margin: 90px auto; background: #fff; padding: 28px;
             border: 1px solid var(--bord); border-radius: 6px; }
.connexion button { width: 100%; margin-top: 8px; }

.colonnes { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .colonnes { grid-template-columns: 1fr; } }
aside { background: #fff; border: 1px solid var(--bord); border-radius: 6px; padding: 18px; }
aside h2:first-child { margin-top: 0; }
dl { margin: 0; font-size: 13px; }
dt { color: var(--discret); margin-top: 9px; font-size: 12px; }
dd { margin: 1px 0 0; }
blockquote { margin: 0; padding: 10px 13px; background: var(--fond);
             border-left: 3px solid var(--bord); font-style: italic; font-size: 13px; }

.journal { list-style: none; padding: 0; margin: 14px 0 0; }
.journal li { border-left: 2px solid var(--bord); padding: 0 0 12px 13px; margin-bottom: 4px; }
.journal li p { margin: 3px 0 0; font-size: 14px; }
.fil { font-size: 13px; color: var(--discret); margin: 0 0 6px; }
table.validation td { font-size: 13px; }

.progression { background:#fff; border:1px solid var(--bord); border-radius:6px;
               padding:14px 16px; margin:12px 0; }
.progression-entete { display:flex; justify-content:space-between; align-items:baseline;
                      margin-bottom:8px; font-size:14px; }
.jauge { height:9px; background:#e6e9ed; border-radius:5px; overflow:hidden; }
.jauge-remplie { height:100%; background:var(--accent); border-radius:5px;
                 transition:width .5s ease; }
.progression p { margin:8px 0 0; }
table.validation input[type=text] { width:100%; font-size:13px; padding:5px 7px; }
table.validation input[type=date] { font-size:13px; padding:4px 6px; }
table.validation select { font-size:13px; padding:4px 6px; max-width:150px; }
table.validation td { vertical-align:top; }
.sous-titre { font-size:15px; font-weight:600; margin:22px 0 8px; }

nav .marque { display:flex; align-items:center; gap:9px; }
.logo { height:26px; width:auto; display:block; }
.logo-connexion { display:block; max-height:52px; max-width:180px; margin:0 auto 18px; }
footer { max-width:1400px; margin:0 auto; padding:0 20px 26px;
         color:var(--discret); font-size:12px; }
.version { text-align:center; color:var(--discret); font-size:12px; margin:16px 0 0; }
.rapport { font-size:13px; line-height:1.6; }

.colonnes section > h2:first-child { margin-top: 0; }
.colonnes section blockquote { padding: 13px 16px; font-size: 14px; }
blockquote .source { display: block; margin-top: 7px; font-style: normal; }

.visionneuse { margin: 14px 0 4px; border: 1px solid var(--bord); border-radius: 6px;
               background: #fff; }
.visionneuse > summary { cursor: pointer; padding: 11px 14px; font-size: 14px;
                         color: var(--accent); }
.visionneuse > summary:hover { background: var(--fond); }
.visionneuse[open] > summary { border-bottom: 1px solid var(--bord); }
.visionneuse-barre { display: flex; justify-content: space-between; align-items: center;
                     gap: 12px; padding: 9px 14px; font-size: 13px;
                     border-bottom: 1px solid var(--bord); }
.visionneuse iframe { display: block; width: 100%; height: 640px; border: 0; }
.visionneuse > p { margin: 0; padding: 9px 14px; border-top: 1px solid var(--bord); }
@media (max-width: 900px) { .visionneuse iframe { height: 420px; } }

.apercu { padding: 12px 14px; }
.apercu img { display: block; width: 100%; height: auto; border: 1px solid var(--bord);
              border-radius: 4px; }
.apercu .chargement span { display: block; margin-top: 3px; }

.case-immeuble { display: inline-flex; align-items: center; gap: 5px; margin: 0 14px 6px 0;
                 font-size: 13px; color: var(--texte); }
.case-immeuble input { width: auto; margin: 0; }

button.retirer { padding: 3px 9px; font-size: 12px; background: transparent;
                 color: var(--rouge); border: 1px solid var(--bord); }
button.retirer:hover { background: var(--rouge-clair); border-color: var(--rouge);
                       opacity: 1; }

.appel-action { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
                margin: 12px 0 4px; }
.appel-action button { padding: 9px 18px; font-size: 15px; }

table.comptes input[type=text], table.comptes input[type=email] { width: 100%;
  font-size: 13px; padding: 5px 7px; }
table.comptes select { font-size: 13px; padding: 4px 6px; max-width: 140px; }
table.comptes select:disabled { background: var(--fond); color: var(--discret); }
table.comptes td { vertical-align: middle; }
table.comptes form { margin: 0; }

table.repartition input[type=text] { width: 100%; font-size: 13px; padding: 5px 7px; }
table.repartition select { width: 100%; font-size: 13px; padding: 4px 6px; }
table.repartition td { vertical-align: middle; }
table.repartition form { margin: 0; }
table.repartition .petit { display: block; margin-top: 3px; }

.derniere-remarque { max-width: 300px; }
.derniere-remarque span[title] { cursor: help; }
