:root {
  /* Marque */
  --bleu: #1a3fa8;
  --bleu-light: #2d5be3;
  --bleu-dark: #0f2460;
  --or: #c9920a;
  --or-light: #f4b429;
  --vert: #2a8c3f;
  --vert-light: #34a84f;

  /* Sidebar */
  --sidebar-bg: #0a1628;
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-active: #1a3fa8;
  --sidebar-text: rgba(255, 255, 255, 0.65);
  --sidebar-width: 268px;

  /* Content */
  --bg-page: #f0f3fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faff;
  --border: #e4e9f2;
  --border-light: #f0f3fa;

  /* Texte */
  --text-primary: #0f1f45;
  --text-secondary: #5a6882;
  --text-muted: #9aa5bc;

  /* États */
  --danger: #e53935;
  --warning: #f59e0b;
  --success: #16a34a;
  --info: #0284c7;

  /* Effets */
  --shadow-sm: 0 1px 4px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.mono {
  font-family: 'DM Mono', monospace;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

/* LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  padding: 28px 32px;
  flex: 1;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header-left h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.page-header-left .breadcrumb-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-header-left .breadcrumb-line a {
  color: var(--bleu);
  text-decoration: none;
}

.page-header-left .breadcrumb-line a:hover {
  text-decoration: underline;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
  .page-wrapper {
    margin-left: 0;
  }

  /* Adjust topbar padding for mobile */
  .topbar {
    padding: 0 16px;
  }

  /* Adjust page content padding for mobile */
  .page-content {
    padding: 20px 16px;
  }

  #sidebar-toggle-btn {
    display: inline-block !important;
  }
}