/* Repris de maquette/Main.dc.html (validée par Joël le 10/11/2026). */
* { box-sizing: border-box; }
body { margin: 0; background: #F4F5F7; }
a { color: #1E4FC2; } a:hover { color: #163B91; }
.fond { font-family: Inter, system-ui, sans-serif; color: #121A26; background: #F4F5F7; min-height: 100vh; padding: 32px 16px 56px; }
.principal { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.entete { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.titres { display: flex; flex-direction: column; gap: 6px; }
.sur-titre { font-size: 13px; color: #5A6474; font-weight: 500; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.chapo { font-size: 14px; color: #5A6474; }
.qui { font-size: 14px; color: #3B4453; margin: 0; }
.lien { background: none; border: 0; padding: 0; color: #1E4FC2; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

.bandeau { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500; border: 1px solid #E3E6EB; background: #FFFFFF; color: #3B4453; }
.bandeau.rouge { background: #FDECEC; border-color: #F3C2C2; color: #8A1C1C; }
.bandeau.orange { background: #FFF4E0; border-color: #F2D49B; color: #7A4B00; }
.bandeau.bleu { background: #EAF0FC; border-color: #C9D7F5; color: #163B91; }
.bandeau form { margin: 0; }

.depot { display: flex; flex-wrap: wrap; gap: 16px; }
.zone { flex: 1 1 340px; background: #FFFFFF; border: 2px dashed #B9C3D3; border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; margin: 0; position: relative; }
.zone.survol { border-color: #1E4FC2; background: #F5F8FE; }
.zone-titre { font-size: 16px; font-weight: 600; }
.zone-texte { font-size: 14px; color: #5A6474; }
.carte { flex: 1 1 340px; background: #FFFFFF; border: 1px solid #E3E6EB; border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.carte-titre { font-size: 13px; color: #5A6474; font-weight: 500; }
.carte-quand { font-size: 18px; font-weight: 600; }
.chiffres { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chiffres > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #EEF0F3; }
.chiffres b { font-weight: 600; }
.chiffres .vert { color: #12663F; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #C9CED6; background: #FFFFFF; color: #121A26; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.bouton.primaire { background: #1E4FC2; border-color: #1E4FC2; color: #FFFFFF; }
.bouton.primaire:hover { background: #163B91; color: #FFFFFF; }
.bouton.petit { min-height: 40px; padding: 0 12px; font-size: 13px; }
.fichier { position: absolute; width: 1px; height: 1px; opacity: 0; }

.apercu { background: #FFFFFF; border: 1px solid #C9D7F5; border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.apercu h2 { margin: 0; font-size: 18px; }
.apercu .ligne { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; align-items: center; }
.apercu .effet { display: flex; flex-wrap: wrap; gap: 10px; }
.pastille { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: #F1F3F6; color: #3B4453; display: inline-block; }
.pastille.bleu { background: #EAF0FC; color: #163B91; }
.pastille.vert { background: #E7F5EE; color: #12663F; }
.pastille.orange { background: #FFF4E0; color: #7A4B00; }
.alerte { margin: 0; padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #8A1C1C; font-size: 14px; font-weight: 500; }
.alerte.orange { background: #FFF4E0; color: #7A4B00; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
select { min-height: 44px; border-radius: 8px; border: 1px solid #C9CED6; padding: 0 10px; font: inherit; font-size: 14px; background: #FFFFFF; color: #121A26; }

.clients { background: #FFFFFF; border: 1px solid #E3E6EB; border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.barre { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.onglets { display: flex; gap: 8px; flex-wrap: wrap; }
.onglet { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #C9CED6; background: #FFFFFF; color: #121A26; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.onglet[aria-selected="true"] { background: #1E4FC2; border-color: #1E4FC2; color: #FFFFFF; }
.outils { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.outils input[type=search] { min-height: 44px; width: 290px; max-width: 100%; padding: 0 12px; border-radius: 8px; border: 1px solid #C9CED6; font-family: inherit; font-size: 14px; color: #121A26; }
.tableau { overflow-x: auto; border: 1px solid #E3E6EB; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
thead tr { background: #F7F8FA; text-align: left; color: #3B4453; }
th { padding: 12px 16px; font-weight: 600; }
td { padding: 12px 16px; border-top: 1px solid #EEF0F3; }
td.nom { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.act { text-align: right; }
td.act form { display: inline; margin: 0; }
.vide { padding: 24px 16px; color: #5A6474; text-align: center; }
.pied { font-size: 13px; color: #5A6474; }

.journal { font-size: 13px; color: #3B4453; }
.journal summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.journal ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.journal li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; border-top: 1px solid #EEF0F3; }
.journal .q { color: #5A6474; min-width: 130px; }

.connexion { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.formulaire input { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #C9CED6; font: inherit; font-size: 15px; }

@media (max-width: 600px) {
  .fond { padding: 20px 16px 40px; }
  h1 { font-size: 22px; }
  .outils, .outils input[type=search] { width: 100%; }
  .outils input[type=search] { flex: 1 1 auto; }
  /* le tableau devient une liste de cartes sur téléphone */
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr.ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid #EEF0F3; }
  tr.ligne td { padding: 0; border: 0; }
  tr.ligne td.nom { grid-column: 1; }
  tr.ligne td.num { grid-column: 2; grid-row: 1; }
  tr.ligne td.tel { grid-column: 1; }
  tr.ligne td.info { grid-column: 1 / -1; }
  tr.ligne td.act { grid-column: 1 / -1; text-align: left; }
  .tableau { border-radius: 10px; }
}
