/* ==========================================================================
   BANK ANALYZER — DESIGN SYSTEM RESETS & ARCHITECTURAL PATTERNS
   ========================================================================== */

:root {
  --bg-app: #f8fafc;        /* slate-50 */
  --text-main: #0f172a;     /* slate-900 */
  --border-fine: rgba(226, 232, 240, 0.8); /* slate-200 / 80% */
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  position: relative;
}

/* Incrustation d'un grain d'opacité ultra-fin (Effet Papier) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typographie technique typée 'architecte' */
.tile-title {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Modèle de Cartes Blanches Interactives */
.architect-card {
  background-color: #ffffff;
  border: 1px solid var(--border-fine);
  border-radius: 1.5rem; /* rounded-3xl */
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.02), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.architect-card:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* Customisation des barres de défilement (Minimaliste) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3); /* slate-400 transparentisé */
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Badges Épurés pour la Grille Forensic */
.badge-forensic {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid currentColor;
}

/* Ajustements Print Pro */
@media print {
  .sidebar-shell, .toolbar-shell, #themeToggle, .no-print {
    display: none !important;
  }
  body::before { display: none; }
  .main-shell { padding: 0 !important; }
  .architect-card { border: 1px solid #000; box-shadow: none !important; }
}
