/* public/css/shapes.css */
:root {
  /* Arrondis — Géométrie stricte */
  --r-xs:  2px;
  --r-sm:  4px;
  --r-md:  6px;
  --r-lg:  10px;
  --r-xl:  14px;

  /* Ombres calibrées */
  --sh-card:   0 1px 3px rgba(13,24,33,0.06), 0 4px 16px rgba(13,24,33,0.04);
  --sh-elevated: 0 2px 8px rgba(13,24,33,0.08), 0 12px 32px rgba(13,24,33,0.08);
  --sh-sidebar:  4px 0 24px rgba(13,24,33,0.18);

  /* Typographie */
  --font-display: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   140ms;
  --t-normal: 260ms;
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Animations spécifiques pour le statut système */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,131,10,0); }
  50% { box-shadow: 0 0 0 8px rgba(232,131,10,0.06); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GLOBAL STYLE (SCROLLBAR)
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--night, #0d1821); }
::-webkit-scrollbar-thumb { background: var(--gold, #c8a96e); border-radius: 2px; }

/* ============================================================
   BASE & CONTENT (CARTES, TABLES, KPI)
   ============================================================ */
h1, h2, h3, .page-title, .brand-name, .card-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}

/* Cartes Institutionnelles */
.card {
  background: var(--bg-white) !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--sh-card) !important;
  margin-bottom: 24px;
}

.card-header {
  padding: 18px 20px 14px !important;
  border-bottom: 1px solid var(--border) !important;
  background: transparent !important;
}

/* KPI Cards avec Hover Premium */
.kpi-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-card);
  transition: all var(--t-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); opacity: 0;
  transition: opacity var(--t-normal) var(--ease);
}
.kpi-card:hover {
  box-shadow: var(--sh-elevated);
  transform: translateY(-2px);
  border-color: var(--border-gold);
}
.kpi-card:hover::before { opacity: 1; }

/* Icônes KPI */
.icon-shape {
  width: 40px !important; height: 40px !important;
  border-radius: var(--r-md) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 0.9rem; flex-shrink: 0;
}
.icon-shape-navy  { background: rgba(13,24,33,0.07);  color: var(--primary); }

/* --- MIGRATED FROM admin-login.css --- */
.admin-login-body {
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  position: relative;
}

.flag-bar {
  height: 3px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
}

.geo-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.geo-deco.top-right {
  top: 80px; right: 40px;
  width: 120px; height: 120px;
  transform: rotate(15deg);
  opacity: 0.4;
}
.geo-deco.bottom-left {
  bottom: 60px; left: 40px;
  width: 80px; height: 80px;
  transform: rotate(-10deg);
  opacity: 0.5;
}
.geo-inner {
  position: absolute;
  inset: 12px;
  opacity: 0.5;
}

.site-header {
  position: relative;
  z-index: 10;
  margin-top: 3px;
  padding: 14px 40px;
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.btn-back-nav {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.header-divider { width: 1px; height: 20px; }

.brand-lockup { display: flex; align-items: center; gap: 10px; }

.brand-logo-box {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-logo-box img { width: 22px; height: 22px; object-fit: contain; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

.page-body {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 63px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.left-panel {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 63px);
}

.security-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.security-label::before {
  content: ''; display: block; width: 24px; height: 1px;
}

.left-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.left-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 340px;
  margin-bottom: 48px;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 0 4px 4px 0;
  transition: all 0.25s ease;
  animation: slideRight 0.5s ease both;
}
.feature-item:hover { transform: translateX(4px); }

.feature-icon {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.feature-text strong { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.feature-text span { font-size: 0.75rem; }

.right-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px;
  min-height: calc(100vh - 63px);
}

.login-card {
  width: 100%; max-width: 420px;
  border-radius: 6px;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
  position: relative;
}

.card-top-bar {
  height: 3px;
}

.card-header-section { padding: 32px 36px 24px; }

.admin-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}
.admin-icon-wrap::after {
  content: ''; position: absolute; bottom: -1px; right: -1px; width: 8px; height: 8px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.card-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.card-subtitle { font-size: 0.8rem; letter-spacing: 0.03em; }

.card-body-section { padding: 28px 36px 32px; }

.alert-error {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 0 4px 4px 0;
  margin-bottom: 24px;
  font-size: 0.82rem;
  animation: shakeX 0.4s ease;
}

.alert-success {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 0 4px 4px 0;
  margin-bottom: 24px;
  font-size: 0.82rem;
}

.field-group { margin-bottom: 20px; }
.field-label { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.field-label i { font-size: 0.65rem; }

.input-wrap { position: relative; transition: transform 0.2s; }
.input-icon-left { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; pointer-events: none; transition: color 0.2s ease; }

.form-input {
  width: 100%;
  border-radius: 4px;
  padding: 12px 14px 12px 40px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s ease;
}

.input-email { font-family: var(--font-mono); font-size: 0.83rem; }

.btn-reveal { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 0.8rem; padding: 4px; }

.pwd-strength { display: flex; gap: 4px; margin-top: 6px; }
.pwd-bar { flex: 1; height: 2px; border-radius: 1px; transition: background 0.3s ease; }

.form-footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.remember-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.8rem; user-select: none; }

.custom-check {
  appearance: none; width: 14px; height: 14px; border-radius: 2px; cursor: pointer; transition: all 0.2s ease; position: relative; flex-shrink: 0;
}
.custom-check:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 9px; }

.forgot-link { font-size: 0.78rem; text-decoration: none; letter-spacing: 0.03em; transition: opacity 0.2s; }

.btn-login {
  width: 100%; padding: 13px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; overflow: hidden; transition: all 0.3s ease;
}

.card-footer-section { padding: 16px 36px 20px; }
.restricted-notice { display: flex; align-items: flex-start; gap: 10px; font-size: 0.76rem; line-height: 1.6; }
.restricted-notice i { margin-top: 2px; flex-shrink: 0; }

.back-home-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 0.78rem; text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }

.page-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: 10px 40px; display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(8px);
}

.footer-left { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; }

.system-status { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; }
.system-status .dot-status { width: 5px; height: 5px; border-radius: 50%; animation: pulse-green 2s ease-in-out infinite; }

/* ANIMATIONS */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .page-body { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .site-header, .page-footer { padding: 10px 20px; }
}
.icon-shape-gold  { background: rgba(200,169,110,0.12); color: var(--accent-dim); }
.icon-shape-green { background: rgba(21,128,61,0.1);  color: #15803d; }
.icon-shape-red   { background: rgba(185,28,28,0.08); color: #b91c1c; }

/* Tableaux Premium */
.table thead th {
  background: var(--bg-subtle) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--text-muted) !important;
  border-bottom: 2px solid var(--border) !important;
}

/* Badges Statut */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-xs);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.status-approved { background: rgba(21,128,61,0.08); color: #15803d; border: 1px solid rgba(21,128,61,0.15); }
.status-pending { background: rgba(180,83,9,0.08); color: #b45309; border: 1px solid rgba(180,83,9,0.15); }
.status-rejected { background: rgba(185,28,28,0.06); color: #b91c1c; border: 1px solid rgba(185,28,28,0.12); }

/* Boutons */
.btn {
  padding: 8px 16px !important; border-radius: var(--r-sm) !important;
  font-size: 0.82rem !important; font-weight: 600 !important;
  text-transform: none !important;
}
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: white !important; }
.btn-gold { background: var(--accent) !important; color: var(--primary) !important; }

/* ============================================================
   TIMELINE (ACTIVITÉS RÉCENTES)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 1rem;
}
.timeline-block {
  display: flex;
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-step {
  position: absolute;
  left: -1rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--sh-card);
}
.timeline-content {
  margin-left: 2rem; /* Espace pour l'icône */
  padding-top: 0.2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background: var(--border);
  z-index: 1;
}

/* ============================================================
   STRUCTURE SIDEBAR (RESTAURÉE ET PROTÉGÉE)
   ============================================================ */
.sidenav {
  width: 264px !important;
  background: var(--primary) !important;
  box-shadow: var(--sh-sidebar) !important;
}

.brand-logo-container {
  width: 36px !important; height: 36px !important;
  background: var(--accent) !important;
  border-radius: var(--r-sm) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}

.brand-name { font-size: 1.05rem !important; color: var(--text-inverse) !important; }
.brand-subtitle { font-size: 0.58rem !important; color: var(--accent) !important; }

.sidenav .nav-link {
  padding: 6px 20px !important;
  font-size: 0.85rem !important;
  gap: 8px !important;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shakeX {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-4px); }
  40%,80%  { transform: translateX(4px); }
}

/* ============================================================
   RESPONSIVITY & UTILS
   ============================================================ */
@media (max-width: 900px) {
  .admin-page-body { grid-template-columns: 1fr; }
  .admin-left-panel { display: none; }
  .admin-site-header { padding: 14px 20px; }
}

@media (max-width: 600px) {
  .admin-right-panel { padding: 40px 20px; }
  .admin-card-header-section,
  .admin-card-body-section,
  .admin-card-footer-section { padding-left: 24px; padding-right: 24px; }
  .admin-page-footer { padding: 10px 20px; }
  .admin-footer-right .sec-badge { display: none; }
}
.sidenav .nav-link.active::before {
  content: ''; position: absolute; left: 0 !important; top: 50% !important;
  transform: translateY(-50%) !important; height: 20px !important;
  width: 3px !important; background: var(--accent) !important;
  border-radius: 0 4px 4px 0 !important;
}

/* ============================================================
   LANDING PAGE — STRUCTURE & MISE EN PAGE
   ============================================================ */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 72%, #f4f7fa 100%);
}

.landing-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background:
    radial-gradient(900px 420px at 8% 18%, rgba(26, 107, 58, 0.05), transparent 62%),
    radial-gradient(760px 380px at 90% 26%, rgba(200, 169, 110, 0.06), transparent 64%);
}

.landing-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(90deg, rgba(247, 127, 0, 0.05), rgba(255, 255, 255, 0.0) 38%, rgba(0, 154, 68, 0.05));
}

.ci-stripe {
  height: 4px;
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
}

.landing-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand .label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link-ghost {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.nav-link-ghost::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  transition: width 0.3s;
}

.nav-link-ghost:hover::after { width: 100%; }

.nav-btn-primary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  color: #ffffff !important;
  background: linear-gradient(140deg, #1a6b3a, #14512c);
  border: 1px solid rgba(11, 59, 31, 0.3);
  box-shadow: 0 6px 20px rgba(20, 81, 44, 0.28);
}

.nav-btn-primary:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 81, 44, 0.34);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 60px); /* Garantit que le hero prend tout l'espace restant */
}

.hero-content {
  order: 1;
  padding: 0 80px 60px; /* Remontée globale : suppression padding-top car inclus dans hero grid */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.hero-content::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%; width: 1px;
  background: var(--border); /* Ajout de la couleur manquante */
  opacity: 0.3;
}

.hero-visual {
  order: 2;
  position: relative;
  overflow: hidden;
  height: 100%; /* S'adapte à la hauteur du grid */
  min-height: 700px;
  z-index: 5;
  isolation: isolate;
}

.hero-visual--video {
  border-radius: 0;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

/* Canvas mascotte interactif */
#elephant-mascot-canvas {
  position: absolute;
  inset: -3% -2%;
  width: 104%;
  height: 106%;
  background: #ffffff;
  z-index: 1;
  display: block;
}

.hero-visual::before, .hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-visual::before {
  background: none;
}

.hero-visual::after {
  background: none;
}

.elephant-preload {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(220px, 42%);
  z-index: 4;
  pointer-events: none;
  opacity: 0.95;
}

.elephant-preload-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 32, 0.12);
}

.elephant-preload-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a6b3a, #c8a96e);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem; /* Taille augmentée pour plus d'impact */
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px; /* Marge réduite */
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.hero-desc {
  font-size: 1.1rem; /* Légèrement plus grand pour la lisibilité sur titre 4rem */
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 30px; /* Marge réduite */
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px; /* Marge réduite */
}

.section-divider .line {
  flex: 1;
  height: 1px;
  max-width: 40px;
}

.section-divider .text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin-bottom: 40px; /* Réduit l'espace avec le footer */
}

.access-card {
  padding: 30px 24px; /* Augmenté */
  border-radius: 12px;
  border: 1px solid #dde5ec;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 30, 40, 0.07);
}

.access-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
}

.access-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.access-card:hover .access-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.access-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.access-card__title {
  font-weight: 700;
  font-size: 1.2rem; /* Augmenté */
}

.access-card__desc {
  font-size: 0.85rem; /* Augmenté */
  line-height: 1.4;
  opacity: 0.8;
}

.access-card__arrow {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.access-card:hover .access-card__arrow {
  transform: translateX(4px);
}

.access-card--citizen {
  border-color: rgba(15, 121, 72, 0.2);
  background: linear-gradient(165deg, #ffffff 0%, #f1fbf5 100%);
}

.access-card--citizen::before {
  background: #1a6b3a;
}

.access-card--citizen .access-card__icon {
  background: rgba(26, 107, 58, 0.12);
  color: #165c31;
}

.access-card--admin {
  border-color: rgba(200, 169, 110, 0.28);
  background: linear-gradient(165deg, #ffffff 0%, #fff7e9 100%);
}

.access-card--admin::before {
  background: #c8a96e;
}

.access-card--admin .access-card__icon {
  background: rgba(200, 169, 110, 0.16);
  color: #8a6b2f;
}

/* Neutralise le violet du gradient Bootstrap soft-ui (#7928ca → #ff0080) */
.access-card:hover,
.access-card:focus,
.access-card:active,
.access-card:focus-visible {
  outline: none;
  box-shadow: none;
  background-image: none;
  color: inherit;
  text-decoration: none;
}

.hero-footer {
  margin-top: -12px; /* Remonte encore plus les statistiques */
  padding-top: 24px;
  display: flex; 
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 2px solid var(--accent); /* Ajout d'une ligne de vie pour dynamiser */
  padding-left: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem; /* Un peu plus petit pour la lisibilité */
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.hero-badge {
  position: absolute;
  bottom: 85px; /* Relevé pour être bien au-dessus de la ligne d'horizon des stats */
  right: 60px;  /* Rapproche du centre (plus détaché du bord extrême droite) */
  z-index: 3;
  padding: 8px 16px; /* Padding réduit pour un aspect plus compact */
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(13, 24, 33, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  animation: fadeUp 1s ease 1.2s both;
  box-shadow: 0 8px 28px rgba(13, 24, 33, 0.16);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50; /* Vert pur */
  position: relative;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.8); /* Glow de base */
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: inherit;
  animation: pulse-green 2s infinite; /* Utilise la nouvelle animation plus visible */
}

.badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #5b6672;
}

.badge-status {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1f2e3b;
}

/* ============================================================
   RESPONSIVITY (EXTRACTED FROM LANDING & VERIFICATION)
   ============================================================ */
@media (max-width: 991px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    padding: 48px 32px 64px;
  }

  .hero-content::after { display: none; }

  .hero-title { font-size: 2.4rem; }

  .hero-footer { gap: 24px; }

  .landing-header { padding: 0 24px; }
}

@media (max-width: 575px) {
  .hero-content { padding: 40px 24px 56px; }
  .hero-title { font-size: 2rem; }
  .header-nav .nav-link-ghost { display: none; }
  .access-card { padding: 16px 18px; gap: 14px; }
  .hero-footer { gap: 20px; flex-wrap: wrap; }
}

/* ==========================================================================

/* ═══════════════════════════════════════════════════════
   LAYOUT & COMPOSANTS APP (ex layout-app.css)
═══════════════════════════════════════════════════════ */
    /* ============ LAYOUT CENTRÉ & RESPONSIVE ============ */
    html, body {
      overflow: hidden !important; /* On bloque tout scrolleur NATIF du navigateur */
      height: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    body {
      background-color: var(--bg-subtle);
    }

    .main-content {
      position: relative;
      height: 100vh !important; /* On force la hauteur à la fenêtre */
      overflow-y: auto !important; /* LE SEUL ET UNIQUE SCROLL ACTIF */
      overflow-x: hidden !important;
      display: flex;
      flex-direction: column;
    }

    /* Fix définitif pour la Navbar qui déborde */
    .navbar.navbar-main {
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: 1rem !important;
      width: 100% !important; /* On laisse Bootstrap gérer l'espacement via le container interne */
      max-width: 100% !important;
      box-shadow: none !important;
      left: 0 !important;
      position: relative !important;
    }

    .navbar-main .container-fluid {
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
      min-height: 74px;
      background: #ffffff;
      border: 1px solid rgba(13, 24, 33, 0.08);
      border-radius: 14px;
      box-shadow: 0 8px 20px rgba(13, 24, 33, 0.07);
      margin: 0 auto !important; /* Centrage automatique */
      width: calc(100% - 3rem) !important;
      max-width: calc(100% - 30px) !important;
    }

    .navbar-breadcrumb-block {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0.18rem;
    }

    .navbar-actions-list {
      align-items: center;
      gap: 0.65rem;
    }

    .navbar-main .nav-link,
    .navbar-main .nav-link i,
    .navbar-main .navbar-brand,
    .navbar-main .fa-bell,
    .navbar-main .fa-user {
      color: #1d2f44 !important;
      opacity: 1 !important;
    }

    body,
    .main-content,
    .sidenav,
    .sidenav .nav-link,
    .sidenav .nav-link-text,
    .sidenav .nav-children .nav-link,
    .navbar-main,
    .navbar-main .nav-link,
    .navbar-main .dropdown-item,
    .table,
    .form-control,
    .form-select,
    label,
    .form-label,
    .kpi-footer,
    .kpi-footer .kpi-trend,
    .kpi-footer .kpi-trend-label,
    .kpi-footer .status-badge {
      font-family: "Inter", "Segoe UI", sans-serif !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .card-title,
    .brand-name,
    .navbar-brand,
    .sidebar-brand-name,
    .loader-title,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-warning,
    .btn-danger,
    .sidebar-logout-link {
      font-family: "Montserrat", "Segoe UI", sans-serif !important;
    }

    .navbar-action-chip,
    .navbar-action-icon {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(13, 24, 33, 0.08);
      background: linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);
      color: #15364a !important;
      box-shadow: 0 8px 18px rgba(13, 24, 33, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .navbar-action-chip {
      padding: 0 1rem !important;
      gap: 0.5rem;
    }

    .navbar-action-icon {
      width: 42px;
      height: 42px;
    }

    .navbar-action-chip:hover,
    .navbar-action-chip:focus,
    .navbar-action-icon:hover,
    .navbar-action-icon:focus {
      transform: translateY(-1px);
      border-color: rgba(21, 54, 74, 0.18);
      box-shadow: 0 12px 26px rgba(13, 24, 33, 0.12);
      background: linear-gradient(180deg, #ffffff 0%, #eaf1f6 100%);
      color: var(--navy-deep) !important;
    }

    .navbar-logout-link {
      font-size: 0.92rem;
    }

    /* FIX NOTIFICATIONS DROPDOWN OVERFLOW */
    .navbar-main .dropdown-menu {
      position: absolute !important;
      right: 0 !important;
      left: auto !important;
      z-index: 1060 !important;
      transform: translateX(0) !important;
      max-width: 300px !important;
      border: 1px solid rgba(13, 24, 33, 0.08);
      box-shadow: 0 20px 40px rgba(13, 24, 33, 0.14);
      border-radius: 16px;
      padding: 0.55rem;
    }

    .navbar-main .dropdown-item {
      border-radius: 12px;
      padding: 0.72rem 0.9rem;
    }

    .navbar-main .dropdown-item:hover,
    .navbar-main .dropdown-item:focus {
      background: rgba(13, 24, 33, 0.05);
    }

    /* Empêcher le scroll horizontal causé par la navbar */
    .navbar.navbar-main {
      overflow: visible !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      width: 100% !important;
    }

    /* Le décalage ne s'applique que SI la sidebar est présente (pages connectées) */
    body:has(.sidenav) .main-content {
      margin-left: 250px !important;
      width: calc(100% - 250px) !important;
    }

    body:has(.sidenav.collapsed) .main-content {
      margin-left: 80px !important;
      width: calc(100% - 80px) !important;
    }

    /* Sur mobile, on annule le décalage */
    @media (max-width: 1199px) {
      body:has(.sidenav) .main-content {
        margin-left: 0 !important;
        width: 100% !important;
      }
    }

    /* Styles spécifiques pour les pages "Guest" (Login) */
    @media (max-width: 1199px) {
      .main-content {
        margin-left: 0 !important;
        width: 100% !important;
      }
    }
      
      .main-content.collapsed {
        margin-left: 80px !important;
        width: calc(100% - 80px) !important;
      }

      .container-fluid {
        padding: 2rem !important;
        max-width: 100% !important;
        margin: 0 !important;
      }
    

    /* Responsive mobile */
    @media (max-width: 1199px) {
      .main-content {
        margin-left: 0 !important;
        width: 100% !important;
      }
    }

    /* ============ SIDEBAR STYLE ÉPURÉ ============ */
    .sidenav {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      bottom: 0 !important;
      width: 250px !important;
      height: 100vh !important;
      z-index: 1050 !important;
      background: var(--navy-deep) !important;
      border: none !important;
      border-right: 2px solid #E8830A !important;
      margin: 0 !important;
      border-radius: 0 !important;
      transition: width 0.3s ease-in-out, transform 0.3s ease-in-out !important;
      box-shadow: 18px 0 40px rgba(7, 18, 25, 0.18);
      overflow: hidden !important; /* Pas de scroll sur la sidebar elle-même */
    }

    .sidenav::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 180px;
      background: radial-gradient(circle at top left, rgba(112, 163, 255, 0.18), transparent 58%);
      pointer-events: none;
    }
    
      .brand-landmark-icon {
        color: var(--primary);
        font-size: 1.2rem;
      }
    
      .sidebar-brand-name {
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.1;
      }
    
      .sidebar-brand-subtitle {
        color: var(--accent);
        font-size: 0.58rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 2px;
      }
    
      .menu-icon-wrap {
        width: 20px;
        text-align: center;
      }
    
      .menu-icon-wrap-wide {
        width: 24px;
      }
    
      .sidebar-user-card {
        background: rgba(255, 255, 255, 0.03);
        padding: 12px;
        border-radius: var(--r-sm);
      }
    
      .sidebar-user-avatar {
        width: 32px;
        height: 32px;
        background: #4CAF50;
        color: var(--accent);
        border-radius: var(--r-xs);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.8rem;
        border: 1px solid rgba(200, 169, 110, 0.2);
      }
    
      .sidebar-user-name {
        font-size: 0.74rem;
        font-weight: 600;
      }
    
      .sidebar-user-role {
        font-size: 0.58rem;
        color: var(--text-muted);
      }

    .sidenav.collapsed {
      width: 80px !important;
    }

    #sidenav-collapse-main {
      height: calc(100vh - 100px) !important;
      overflow-y: auto !important; /* Seul le menu scroll si besoin */
      overflow-x: hidden !important;
    }

    #sidenav-collapse-main::-webkit-scrollbar {
      width: 4px;
    }

    #sidenav-collapse-main::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 10px;
    }

    /* Liens Sidebar */

    .sidenav.collapsed {
      width: 80px !important;
    }

    /* Liens Sidebar */
    .sidenav .nav-link {
      color: rgba(255, 255, 255, 0.8) !important;
      margin: 6px 18px !important;
      padding: 12px 15px !important;
      border-radius: 14px !important;
      display: flex !important;
      align-items: center !important;
      font-size: 0.88rem !important;
      font-weight: 600 !important;
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
    }

    .sidenav .nav-link::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 65%);
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .sidenav .nav-link[aria-expanded="true"] {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.84) !important;
      transform: none;
    }

    .sidenav .nav-link.active,
    .sidenav .nav-link[aria-expanded="true"] {
      background: rgba(255, 255, 255, 0.08) !important;
      color: #f3e7cf !important;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(5, 15, 24, 0.22);
    }

    .sidenav .nav-link.active::before,
    .sidenav .nav-link[aria-expanded="true"]::before {
      opacity: 1;
    }

    /* Icônes Sidebar */
    .sidenav .nav-link .icon {
      background-color: rgba(255, 255, 255, 0.08) !important;
      width: 34px !important;
      height: 34px !important;
      min-width: 34px !important;
      border-radius: 10px !important;
      margin-right: 14px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: all 0.2s ease;
    }

    .sidenav .nav-link i {
      color: #FFFFFF !important;
      font-size: 0.9rem !important;
    }

    .sidenav .nav-link.active .icon {
      background-color: rgba(200, 169, 110, 0.18) !important;
    }

    .sidenav .nav-link[aria-expanded="true"] .icon {
      background-color: rgba(200, 169, 110, 0.18) !important;
    }

    .sidenav .nav-link-parent {
      cursor: pointer;
      margin-bottom: 0 !important;
      width: calc(100% - 30px);
      border: none;
      text-align: left;
      padding-right: 20px !important;
    }

    .sidenav .nav-item.has-children .nav-submenu-wrap {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      visibility: hidden;
      margin-top: 0;
      transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
    }

    .sidenav .nav-item.has-children.open .nav-submenu-wrap,
    .sidenav .nav-submenu-wrap.is-open {
      max-height: 420px;
      opacity: 1;
      visibility: visible;
      margin-top: 0.3rem;
    }

    .sidenav .nav-children {
      display: block !important;
      background: rgba(255, 255, 255, 0.03) !important;
      margin: 4px 15px 10px !important;
      padding: 6px 0 !important;
      border-radius: 10px !important;
      border: 1px solid rgba(255, 255, 255, 0.04) !important;
      transform: translateY(-4px);
      transition: transform 0.2s ease;
    }

    .sidenav .nav-item.has-children.open .nav-children,
    .sidenav .nav-submenu-wrap.is-open .nav-children {
      transform: translateY(0);
    }

    .sidenav .nav-children .nav-link {
      margin: 0 !important;
      padding: 8px 18px 8px 56px !important;
      border-radius: 0 !important;
      color: rgba(230, 237, 243, 0.72) !important;
      font-size: 0.78rem !important;
      background: transparent !important;
    }

    .sidenav .nav-children .nav-link:hover {
      background: rgba(255, 255, 255, 0.06) !important;
      color: rgba(245, 248, 251, 0.98) !important;
    }

    .sidenav .nav-children .nav-link.active {
      background: transparent !important;
      color: rgba(235, 241, 246, 0.95) !important;
    }

    .sidenav .nav-link.active i {
      color: #FFFFFF !important;
    }

    .sidenav .submenu-caret {
      margin-left: 8px;
      margin-right: 2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      flex-shrink: 0;
      font-size: 0.62rem;
      color: rgba(255, 255, 255, 0.76);
      transition: transform 0.2s ease, color 0.2s ease;
      position: relative;
      z-index: 1;
    }

    .sidenav .nav-item.has-children.open .submenu-caret,
    .sidenav .nav-link[aria-expanded="true"] .submenu-caret {
      transform: rotate(180deg);
      color: #f3e7cf;
    }

    .sidenav .sidenav-footer {
      margin: 1rem 1.15rem 1.1rem;
      padding: 0.95rem 1rem;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .sidenav .sidebar-user-card {
      background: rgba(255, 255, 255, 0.04) !important;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 12px;
      margin-bottom: 0.65rem;
    }

    .sidenav .sidebar-user-avatar {
      background: rgba(255, 255, 255, 0.12) !important;
      color: #f3e7cf !important;
      border: 1px solid rgba(200, 169, 110, 0.35) !important;
    }

    .sidenav .sidebar-logout-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      color: #f3e7cf;
      text-decoration: none;
      font-size: 0.8rem;
      font-weight: 600;
      border: 1px solid rgba(200, 169, 110, 0.35);
      background: rgba(200, 169, 110, 0.12);
      transition: background 0.2s ease, color 0.2s ease;
    }

    .sidenav .sidebar-logout-link:hover {
      color: #f3e7cf;
      background: rgba(200, 169, 110, 0.12);
    }

    .sidenav .nav-section-label {
      font-size: 0.66rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .kpi-value,
    .amount-value,
    .payment-amount,
    .sidebar-finance-amount,
    .currency-value,
    .finance-value,
    .chart-value,
    .text-mono,
    .text-monospace,
    .font-mono,
    .kpi-trend-label .amount,
    .kpi-label .amount,
    .kpi-footer .amount,
    .table .amount,
    .table .currency,
    .table .text-end,
    .table td:nth-child(4),
    .table td:nth-child(5) {
      font-family: "JetBrains Mono", "Courier New", monospace !important;
      letter-spacing: 0.01em;
    }

    /* Style du Header de la Sidebar */
    .sidenav-header {
        height: auto !important;
        padding: 1.5rem 1rem !important;
    }

    .sidenav .nav-section-label {
      color: #9cb0c2 !important;
      opacity: 1 !important;
      display: block !important;
      visibility: visible !important;
    }

    .sidenav .brand-subtitle {
      color: var(--accent, #c8a96e) !important;
      display: inline-block !important;
    }

    .sidenav .user-role {
      color: var(--text-muted, #94a3b8) !important;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .brand-logo-container {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        background: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-right: 12px;
    }

    .brand-logo-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .brand-text-container {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .brand-text {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: white !important;
        line-height: 1.2 !important;
        white-space: normal !important; /* Permet le retour à la ligne si c'est long */
        display: -webkit-box;
      line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Bouton toggle menu */
    #sidebarToggleDesktop {
        background: rgba(255, 255, 255, 0.15);
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    #sidebarToggleDesktop:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    

    .sidenav .nav-link-text {
      font-weight: 600;
      color: inherit !important;
      white-space: nowrap;
    }

    /* Header Sidebar */
    .sidenav-header {
      padding: 20px !important;
      margin-bottom: 10px;
    }

    /* ============ PAGE LOADER — Kollecta Institutionnel ============ */
    .page-loader {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      min-height: 100dvh;
      background: #ffffff;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
      z-index: 9999;
      overflow: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .page-loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* Bandeau tricolore ivoirien */
    .page-loader::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(to right, #f77f00 33.33%, #ffffff 33.33%, #ffffff 66.66%, #009a44 66.66%);
    }

    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      width: min(92vw, 920px);
      min-height: min(78vh, 720px);
      max-width: 920px;
    }

    /* Visuel principal */
    .loader-logo-wrap {
      position: relative;
      width: clamp(280px, 68vmin, 720px);
      height: clamp(240px, 58vmin, 620px);
      margin-bottom: clamp(16px, 3vh, 28px);
    }

    .loader-logo-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
      display: block;
    }

    .loader-title {
      font-family: "Montserrat", "Segoe UI", sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: #0d1821;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin: 0 0 5px;
    }

    .loader-msg {
      font-size: 0.78rem;
      font-weight: 500;
      color: #5f7284;
      letter-spacing: 0.04em;
      margin: 0;
    }

    /* Barre de progression animée */
    .loader-bar-wrap {
      width: 160px;
      height: 3px;
      margin-top: 18px;
      overflow: hidden;
    }

    .loader-bar-fill {
      height: 100%;
      width: 45%;
      background: linear-gradient(90deg, #f77f00 0 33.33%, #ffffff 33.33% 66.66%, #009a44 66.66% 100%);
      animation: us-bar 1.6s ease-in-out infinite;
    }

    @keyframes us-bar {
      0%   { transform: translateX(-120%); }
      60%  { transform: translateX(270%); }
      100% { transform: translateX(270%); }
    }

    /* Sidebar collapse mode for desktop */
    .sidenav-toggler-line {
      display: block;
      height: 2px;
      width: 100%;
      background-color: currentColor;
      margin: 4px 0;
      transition: all 0.3s ease;
      border-radius: 1px;
    }

    .sidenav.collapsed { width: 80px !important; }
    .sidenav.collapsed .nav-link-text,
    .sidenav.collapsed .brand-text,
    .sidenav.collapsed .nav-section-label,
    .sidenav.collapsed .user-info { display: none; }
    .sidenav.collapsed .nav-link { padding: 0.625rem 0.5rem !important; justify-content: center; }
    .sidenav.collapsed .icon { margin: 0 auto !important; }
    .sidenav.collapsed .submenu-caret,
    .sidenav.collapsed .nav-submenu-wrap { display: none !important; }

    @media (max-width: 1200px) {
      .sidenav.collapsed { width: 250px !important; }
      .sidenav.collapsed .nav-link-text,
      .sidenav.collapsed .brand-text,
      .sidenav.collapsed .nav-section-label,
      .sidenav.collapsed .user-info { display: initial; }
      .sidenav.collapsed .nav-link { padding: inherit !important; }
    }

    @media (max-width: 991.98px) {
      .navbar-main .container-fluid {
        width: calc(100% - 1rem) !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
      }

      .navbar-actions-list {
        gap: 0.45rem;
      }

      .navbar-action-chip {
        min-height: 38px;
        padding: 0 0.85rem !important;
      }

      .navbar-action-icon {
        width: 38px;
        height: 38px;
        min-height: 38px;
      }
    }

    /* Loading pour les boutons */
    .btn-loading {
      position: relative;
      pointer-events: none;
      opacity: 0.95;
      color: transparent !important;
      text-shadow: none !important;
      transition: all 140ms ease;
    }

    .btn-loading::after {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      top: 50%;
      left: 50%;
      margin-left: -9px;
      margin-top: -9px;
      border: 2px solid rgba(255, 255, 255, 0.28);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .btn-outline-primary.btn-loading::after,
    .btn-outline-success.btn-loading::after,
    .btn-outline-secondary.btn-loading::after,
    .btn-outline-warning.btn-loading::after,
    .btn-outline-danger.btn-loading::after,
    .btn-light.btn-loading::after,
    .btn-link.btn-loading::after {
      border: 2px solid rgba(13, 24, 33, 0.20);
      border-top-color: var(--ci-green);
    }

    button.btn-loading[disabled],
    input.btn-loading[disabled] {
      cursor: wait !important;
      filter: saturate(0.88);
    }

    .btn-loading .btn-text {
      visibility: hidden;
    }

    /* ============ SHADOWS ============ */
    .shadow-success {
      box-shadow: 0 4px 20px 0 rgba(46, 125, 50, 0.3) !important;
    }

    .shadow-warning {
      box-shadow: 0 4px 20px 0 rgba(255, 152, 0, 0.3) !important;
    }

    /* ============ DASHBOARD THEME OVERRIDE (COHÉRENCE LOGIN) ============ */
    /* Titres */
    h1, h2, h3, h4, h5, h6,
    .card-title,
    .table thead {
      color: var(--text-main) !important;
    }

    h1, h2, h3 {
      font-weight: 700 !important;
      color: var(--ci-green) !important;
    }

    h4, h5, h6 {
      font-weight: 600 !important;
      color: var(--text-main) !important;
    }

    /* Titres dans card-header */
    .card-header h1,
    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5,
    .card-header h6 {
      color: var(--text-on-dark) !important;
    }

    /* Tous les boutons primaires en vert */
    .btn-primary,
    [role="button"].btn-primary,
    button.btn-primary {
      background: linear-gradient(310deg, #155a32 0%, var(--ci-green) 100%) !important;
      border-color: #155a32 !important;
      color: white !important;
    }

    .btn-primary:hover {
      background: linear-gradient(310deg, var(--ci-green) 0%, #4CAF50 100%) !important;
      color: white !important;
    }

    .btn-primary:focus,
    .btn-primary:active {
      background: #155a32 !important;
      color: white !important;
    }

    /* Boutons secondaires en orange */
    .btn-secondary {
      background: linear-gradient(310deg, #c0620a 0%, var(--ci-orange) 100%) !important;
      border-color: #c0620a !important;
      color: white !important;
    }

    .btn-secondary:hover {
      background: linear-gradient(310deg, var(--ci-orange) 0%, #FFB74D 100%) !important;
      color: white !important;
    }

    /* Cartes */
    .card {
      border: none !important;
      box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08) !important;
      border-radius: 15px !important;
      margin-bottom: 20px;
    }

    .card-header {
      background: var(--navy-deep) !important;
      color: var(--text-on-dark) !important;
      border: none !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
      font-weight: 700;
      padding: 20px !important;
      border-radius: 15px 15px 0 0 !important;
    }

    /* KPI: titre + icone alignes sur une seule ligne, style plus vivant */
    .kpi-card {
      position: relative;
      border: 1px solid rgba(13, 24, 33, 0.12) !important;
      border-left: 4px solid var(--navy-deep) !important;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      will-change: transform, box-shadow;
    }

    .kpi-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
    }

    .kpi-top .numbers {
      flex: 1;
      min-width: 0;
    }

    .kpi-label {
      margin-bottom: 4px !important;
      line-height: 1.2;
      font-weight: 700;
      color: var(--navy-deep) !important;
      font-size: 0.82rem !important;
    }

    .kpi-value {
      margin-bottom: 0;
      font-size: 1.95rem;
      color: #142433;
      font-weight: 800;
      line-height: 1.1;
    }

    .kpi-top .icon-shape {
      width: 38px;
      height: 38px;
      min-width: 38px;
      border-radius: 10px;
      margin-top: -2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(13, 24, 33, 0.08);
    }

    .kpi-top .icon-shape i {
      font-size: 0.9rem !important;
    }

    .kpi-footer,
    .kpi-footer .kpi-trend,
    .kpi-footer .kpi-trend-label,
    .kpi-footer .status-badge {
      font-size: 0.8rem !important;
      line-height: 1.2;
    }

    .kpi-footer .kpi-trend-label {
      color: #5f7284;
    }

    .kpi-footer .status-badge {
      padding: 2px 8px;
    }

    .progress-bar-wrap {
      height: 6px;
      border-radius: 99px;
      overflow: hidden;
    }

    .kpi-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 28px rgba(13, 24, 33, 0.14) !important;
    }

    .kpi-card:has(.icon-shape-green):hover {
      box-shadow: 0 18px 30px rgba(21, 128, 61, 0.28) !important;
      border-color: rgba(21, 128, 61, 0.35) !important;
    }

    .kpi-card:has(.icon-shape-red):hover {
      box-shadow: 0 18px 30px rgba(185, 28, 28, 0.24) !important;
      border-color: rgba(185, 28, 28, 0.28) !important;
    }

    .kpi-card:has(.icon-shape-gold):hover {
      box-shadow: 0 18px 30px rgba(200, 169, 110, 0.28) !important;
      border-color: rgba(200, 169, 110, 0.32) !important;
    }

    .kpi-card:has(.icon-shape-navy):hover {
      box-shadow: 0 18px 30px rgba(13, 24, 33, 0.28) !important;
      border-color: rgba(13, 24, 33, 0.3) !important;
    }

    .card-header p,
    .card-header small,
    .card-header .text-muted,
    .card-header .card-title {
      color: rgba(248, 251, 255, 0.9) !important;
    }

    .card-header a {
      color: #f8fbff !important;
      border-color: rgba(248, 251, 255, 0.35) !important;
    }

    .card-header a:hover {
      background: rgba(248, 251, 255, 0.12) !important;
      color: #ffffff !important;
    }

    .card-body {
      padding: 25px !important;
    }

    /* Tables */
    .table {
      margin-bottom: 0;
    }

    .table thead th {
      background-color: var(--bg-subtle) !important;
      color: var(--text-secondary) !important;
      font-weight: 700 !important;
      border: none !important;
      padding: 15px !important;
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: 0.5px;
    }

    .table tbody td {
      padding: 15px !important;
      border-color: #f0f0f0 !important;
      vertical-align: middle;
      color: var(--text-secondary);
    }

    .table tbody tr:hover {
      background-color: rgba(46, 125, 50, 0.03) !important;
    }

    /* Labels et form */
    label,
    .form-label {
      font-weight: 600 !important;
      color: var(--text-main) !important;
      margin-bottom: 12px !important;
    }

    .form-control,
    .form-select {
      border: 2px solid var(--border-light) !important;
      border-radius: 12px !important;
      padding: 12px 15px !important;
      font-size: 1rem;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-control:focus,
    .form-select:focus {
      border-color: var(--ci-green) !important;
      box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
    }

    /* Badges */
    .badge {
      padding: 8px 15px !important;
      border-radius: 12px !important;
      font-weight: 600;
      font-size: 0.85rem;
    }

    .badge.bg-success,
    .badge.bg-gradient-success {
      background: linear-gradient(310deg, #155a32 0%, var(--ci-green) 100%) !important;
      color: white;
    }

    .badge.bg-warning,
    .badge.bg-gradient-warning {
      background: linear-gradient(310deg, #c0620a 0%, var(--ci-orange) 100%) !important;
      color: white;
    }

    /* Alertes */
    .alert {
      border: none !important;
      border-radius: 12px !important;
      padding: 15px 20px !important;
      margin-bottom: 20px;
    }

    .alert-success {
      background-color: #e8f5e9 !important;
      color: var(--ci-green) !important;
    }

    .alert-danger {
      background-color: #ffebee !important;
      color: #c62828 !important;
    }

    .alert-warning {
      background-color: #fff3e0 !important;
      color: #e65100 !important;
    }

    /* Navbar et header */
    .navbar {
      box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08) !important;
    }

    .navbar-brand {
      font-weight: 700 !important;
      color: var(--ci-green) !important;
      font-size: 1.3rem;
    }

    /* Dropdowns */
    .dropdown-menu {
      border: none !important;
      box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1) !important;
      border-radius: 12px !important;
      padding: 8px 0 !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
      background-color: rgba(46, 125, 50, 0.1) !important;
      color: var(--ci-green) !important;
    }

    /* Pagination */
    .pagination .page-link {
      border-radius: 8px !important;
      margin: 0 4px;
    }

    .pagination .page-link:hover {
      background-color: var(--ci-green) !important;
      border-color: var(--ci-green) !important;
      color: white !important;
    }

    .pagination .page-link.active {
      background-color: var(--ci-green) !important;
      border-color: var(--ci-green) !important;
    }

    /* Spacing cohérent */
    .card + .card {
      margin-top: 20px;
    }

    /* Listes */
    .list-group-item {
      border: 1px solid var(--border-light) !important;
      padding: 15px !important;
    }

    .list-group-item:hover {
      background-color: rgba(46, 125, 50, 0.05) !important;
    }

    /* Inputs avec icônes */
    .input-group-text {
      background-color: var(--bg-subtle) !important;
      border: 2px solid var(--border-light) !important;
      color: var(--ci-green) !important;
    }

    /* Tabs */
    .nav-tabs .nav-link {
      color: var(--text-secondary) !important;
      border-bottom: 3px solid transparent !important;
      font-weight: 600;
    }

    .nav-tabs .nav-link.active {
      color: var(--ci-green) !important;
      border-bottom-color: var(--ci-green) !important;
      background-color: transparent !important;
    }

/* ── Neutralisation gradients Soft UI ──────────────────── */
.bg-gradient-primary,
.btn.bg-gradient-primary,
.bg-gradient-success,
.btn.bg-gradient-success,
.bg-gradient-warning,
.btn.bg-gradient-warning,
.bg-gradient-info,
.btn.bg-gradient-info,
.bg-gradient-secondary,
.btn.bg-gradient-secondary,
.bg-gradient-danger,
.btn.bg-gradient-danger {
  background-image: none !important;
}

/* ── Utility: Auto-fit grid ────────────────────────────── */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
