/* Tableau de bord Alnatea en ligne : style validé par Ludovic le 26/11/2026 (tuiles par fournisseur, relief). */
* { box-sizing: border-box; }
body { margin: 0; background: #EEF0F6; color: #121826; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
p { margin: 0; }
main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 24px; }

.bandeau { background: linear-gradient(135deg, #151A33 0%, #2A3470 100%); border-radius: 28px; padding: 28px 36px; color: #FFFFFF;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(18, 24, 38, 0.08), 0 20px 40px rgba(21, 26, 51, 0.25); }
.anneau { flex: none; }
.anneau text { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.total { flex: 1 1 320px; min-width: 0; }
.total .titre { font-size: 15px; color: #C9D1F5; }
.total .gros { font-size: clamp(40px, 6vw, 60px); font-weight: 700; letter-spacing: -2px; line-height: 1.1; }
.total .note { font-size: 13px; color: #C9D1F5; margin-top: 4px; }
.duo { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 20px; padding: 18px 22px; min-width: 200px; flex: 1; }
.stat .lib { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.stat .val { font-size: 30px; font-weight: 700; margin-top: 8px; }
.stat .nb { font-size: 13px; margin-top: 2px; }
.stat.retard .lib, .stat.retard .nb { color: #FFD2CA; }
.stat.retard .val, .stat.retard svg { color: #FF9C8C; }
.stat.avenir .lib, .stat.avenir .nb { color: #D3E1FF; }
.stat.avenir .val, .stat.avenir svg { color: #9DBDFF; }

.tuiles { columns: 3 340px; column-gap: 22px; }
.tuile { break-inside: avoid; margin-bottom: 22px; background: #FFFFFF; border-radius: 24px; padding: 22px;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.06), 0 14px 30px rgba(18, 24, 38, 0.08); }
.tete { display: flex; align-items: center; gap: 14px; }
.logo { width: 60px; height: 60px; border-radius: 16px; object-fit: contain; background: #FFFFFF; border: 1px solid #E6E8F0; flex: none; }
.logo.initiales { display: flex; align-items: center; justify-content: center; background: #E8EFFF; color: #1D3FAE; font-weight: 700; font-size: 20px; }
.nom { flex: 1; min-width: 0; }
.nom b { display: block; font-size: 17px; font-weight: 700; }
.pastille { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pastille.retard { background: #FFE9E5; color: #B42318; }
.pastille.avenir { background: #E8EFFF; color: #1D3FAE; }
.pastille.fait { background: #EEF0F6; color: #5B6275; }
.inter { width: 52px; height: 44px; border: 0; background: transparent; padding: 7px 0; cursor: pointer; flex: none; }
.inter span { display: block; width: 52px; height: 30px; border-radius: 15px; background: #8A90A2; position: relative; transition: background .15s; }
.inter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(18, 24, 38, 0.3); transition: left .15s; }
.inter[aria-pressed="true"] span { background: #2A3470; }
.inter[aria-pressed="true"] span::after { left: 25px; }
.montant { font-size: 34px; font-weight: 700; letter-spacing: -1px; margin-top: 14px; }
.jauge { height: 8px; border-radius: 4px; background: #EEF0F6; margin-top: 10px; overflow: hidden; }
.jauge i { display: block; height: 8px; border-radius: 4px; background: #2F6BFF; width: 0; transition: width .2s; }
.jauge.retard i { background: #FF6B57; }
.part { font-size: 12px; color: #5B6275; margin-top: 6px; }
.eteinte .logo { opacity: 0.45; }
.eteinte .nom b, .eteinte .montant { color: #8A90A2; }

.lignes { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ligne { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 78px; gap: 10px; align-items: center; background: #F6F7FB; border-radius: 14px; padding: 8px 10px 8px 12px; }
.ligne input { width: 18px; height: 18px; margin: 0; accent-color: #2A3470; }
.ligne .ref { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .ech { font-size: 12px; color: #1D3FAE; }
.ligne.retard .ech { color: #B42318; }
.ligne .ttc { font-size: 14px; font-weight: 700; }
.ligne button { font-family: inherit; font-size: 12px; font-weight: 700; min-height: 34px; border-radius: 999px; border: 1px solid #121826; background: #121826; color: #FFFFFF; cursor: pointer; }
.ligne.payee .ref, .ligne.payee .ttc { text-decoration: line-through; color: #8A90A2; }
.ligne.payee .ech { color: #5B6275; }
.ligne.payee button { background: #FFFFFF; color: #121826; border-color: #C5CAD8; }
.ligne.hors .ref, .ligne.hors .ttc { color: #8A90A2; }

.pied { font-size: 13px; color: #5B6275; text-align: center; }
.lien { font: inherit; color: #1D3FAE; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.vide { background: #FFFFFF; border-radius: 24px; padding: 32px; text-align: center; color: #5B6275; }

body.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #151A33 0%, #2A3470 100%); padding: 24px; }
.porte { background: #FFFFFF; border-radius: 28px; padding: 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.porte h1 { margin: 0; font-size: 26px; }
.porte .sous { color: #5B6275; margin-bottom: 24px; }
.porte label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.porte input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid #C5CAD8; padding: 0 14px; font: inherit; }
.porte .alerte { color: #B42318; font-size: 14px; min-height: 22px; margin: 8px 0; }
.porte button { width: 100%; height: 48px; border-radius: 14px; border: 0; background: #2A3470; color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
  main { padding: 16px 12px 32px; }
  .bandeau { padding: 22px; gap: 20px; }
  .anneau { width: 96px; height: 96px; }
}
