:root {
      --bd-ink:       #0a1228;
      --bd-ink-2:     #1e2640;
      --bd-muted:     #7a84a0;
      --bd-subtle:    #c2c8d8;
      --bd-surface:   #ffffff;
      --bd-surface-2: #f4f6fb;
      --bd-surface-3: #eaedf6;
      --bd-accent:    #0052f5;
      --bd-accent-2:  #3d7aff;
      --bd-green:     #00a866;
      --bd-amber:     #d97706;
      --bd-red:       #dc2626;
      --bd-purple:    #6366f1;
      --bd-border:    rgba(10,18,40,0.08);
      --bd-radius:    14px;
      --bd-radius-sm: 8px;
      --bd-radius-lg: 20px;
      --bd-shadow:    0 1px 6px rgba(10,18,40,0.07);
      --bd-shadow-md: 0 4px 20px rgba(10,18,40,0.1);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bd-surface-2); -webkit-tap-highlight-color: transparent; }
    #root { min-height: 100vh; }
    #splash { position:fixed;inset:0;background:linear-gradient(135deg,#0f172a,#1e3a8a);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999; }
    #splash h1 { color:#fff;font-size:42px;font-weight:900;letter-spacing:4px; }
    #splash p { color:#93c5fd;font-size:14px;margin-top:8px; }
    #splash .bar { width:200px;height:4px;background:#ffffff20;border-radius:4px;margin-top:30px;overflow:hidden; }
    #splash .fill { height:100%;width:0%;background:#60a5fa;border-radius:4px;transition:width 0.3s; }
    #splash .errmsg { color:#fca5a5;font-size:12px;padding:16px;text-align:center;max-width:320px;margin-top:20px; }
    input, select, textarea, button { font-family: inherit; }

.bd-hidden { display: none !important; }


/* v372 — correction globale layout desktop + uniformisation boutons primaires */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
:root {
  --bd-accent: #1e3a8a;
  --bd-accent-2: #2563eb;
}
@media (min-width:1024px){
  body, #root { height:100vh; overflow:hidden; }
  #bd-main-layout { height:100vh; width:100%; overflow:hidden; }
  #bd-app-content { margin-left:280px !important; width:calc(100% - 280px) !important; max-width:calc(100% - 280px) !important; height:100vh !important; overflow:hidden !important; }
  #bd-page-scroll { overflow-y:auto !important; overflow-x:hidden !important; }
  #bd-page-inner { width:100% !important; max-width:none !important; margin:0 !important; box-sizing:border-box !important; }
  table { max-width:100%; }
}
@media (max-width:1023px){
  #bd-app-content { margin-left:0 !important; width:100% !important; max-width:100% !important; }
}
button[style*="background: var(--bd-accent)"][style*="padding"],
button[style*="background:var(--bd-accent)"][style*="padding"],
button[style*="background: #0052f5"][style*="padding"],
button[style*="background:#0052f5"][style*="padding"],
button[style*="background: #1e3a8a"][style*="padding"],
button[style*="background:#1e3a8a"][style*="padding"]{
  background:var(--bd-accent) !important;
  border-radius:12px !important;
  min-height:44px !important;
  padding:0 18px !important;
  font-weight:800 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}
