/* AZALYS V5.70 — Police et densité alignées avec les standards web modernes */
html { font-size: 14px; }
body {
  font-family: Inter, "Segoe UI", Roboto, Arial, system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit !important; font-size: 13px !important; }
.view { padding: 20px 22px !important; }
.topbar { min-height: 68px !important; padding: 13px 22px !important; }
.topbar h2 { font-size: 20px !important; line-height: 1.25 !important; }
.eyebrow { font-size: 10.5px !important; letter-spacing: .075em !important; }
.side-brand strong { font-size: 16px !important; }
.side-brand span, .muted, .row-sub, .item-sub, .kpi-sub { font-size: 12px !important; }
.nav-btn { min-height: 40px !important; padding: 10px 13px !important; font-size: 13px !important; }
.btn { min-height: 32px !important; padding: 7px 11px !important; border-radius: 9px !important; font-size: 13px !important; }
.btn.compact, .compact.btn { min-height: 29px !important; padding: 6px 9px !important; font-size: 12.5px !important; }
.control { min-height: 36px !important; padding: 8px 10px !important; border-radius: 9px !important; }
label { font-size: 11.5px !important; gap: 5px !important; margin-bottom: 10px !important; }
th, td { padding: 10px 12px !important; font-size: 13px !important; }
th { font-size: 10.5px !important; letter-spacing: .055em !important; }
.card-head { padding: 14px 16px !important; }
.card-head h3 { font-size: 15.5px !important; }
.hero { padding: 20px !important; border-radius: 18px !important; }
.hero h1, .cockpit-hero h1 { font-size: clamp(22px, 2.35vw, 28px) !important; line-height: 1.12 !important; }
.cockpit-sub { font-size: 13px !important; }
.kpi { padding: 15px !important; }
.kpi-value, .home-view .kpi-value { font-size: 26px !important; }
.badge { font-size: 10.5px !important; padding: 3px 7px !important; }
.row-title { font-size: 13.5px !important; line-height: 1.28 !important; }
.dossier-actions { min-width: 330px !important; }
.client-space-btn { white-space: nowrap; }
.client-impersonation-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0;
  padding:10px 22px;
  background:#eff6ff;
  border-bottom:1px solid #bfdbfe;
  color:#1e3a8a;
  font-size:13px;
  position:sticky;
  top:68px;
  z-index:4;
}
.client-impersonation-banner div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.client-impersonation-banner strong { font-size:13px; }
.client-impersonation-banner span { color:#475569; font-size:12px; }
@media (max-width: 760px) {
  html { font-size: 13px; }
  body { font-size: 13px !important; }
  .view { padding: 14px !important; }
  .topbar { padding: 11px 14px !important; min-height: 62px !important; }
  .topbar h2 { font-size: 18px !important; }
  .client-impersonation-banner { top:62px; padding:9px 14px; align-items:flex-start; flex-direction:column; }
  th, td { padding: 9px 10px !important; }
}

/* AZALYS V5.71 — correction visuelle droits collaborateurs + anti-cache */
.collab-global-modules-zone,
#collab-global-modules-zone {
  padding: 14px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #fff !important;
}
.global-modules-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}
.global-modules-head strong {
  color: #0f2544 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}
.global-modules-head .muted,
.global-modules-head span {
  display: inline-block !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.global-modules-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.global-module-card,
label.global-module-card {
  display: grid !important;
  grid-template-columns: 22px 34px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.global-module-card:hover { border-color: #bfdbfe !important; background: #eff6ff !important; }
.global-module-card.checked {
  background: #eef6ff !important;
  border-color: #93c5fd !important;
  box-shadow: 0 8px 20px rgba(37,99,235,.08) !important;
}
.global-module-card.locked { cursor: not-allowed !important; opacity: .82 !important; }
.global-module-card input.global-module-check,
.global-module-card input[type="checkbox"] {
  grid-column: 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  accent-color: #2563eb !important;
  align-self: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
}
.global-module-icon {
  grid-column: 2 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}
.global-module-text {
  grid-column: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}
.global-module-text strong {
  display: block !important;
  color: #0f2544 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
.global-module-text small {
  display: block !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
.collab-rights-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}
.collab-rights-summary > div {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
}
.collab-rights-summary strong { font-size: 20px !important; line-height: 1 !important; }
.collab-rights-summary span { font-size: 11px !important; line-height: 1.2 !important; }
@media (max-width: 900px) {
  .global-modules-head { align-items: flex-start !important; flex-direction: column !important; }
  .global-modules-grid { grid-template-columns: 1fr !important; }
  .collab-rights-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
