:root {
  /* ============================================================
     1. PALETTE DE BASE (CORE)
     ============================================================ */
  --navy-deep:      #0d1821;   /* Nuit profonde */
  --navy-mid:       #162032;   /* Marine institutionnel */
  --slate-dark:     #1e2f45;   /* Ardoise profonde */
  --gold-civic:     #c8a96e;   /* Or institutionnel */
  --gold-light:     #e2c896;
  
  --primary:        var(--slate-dark); /* On définit le primaire comme Ardoise */
  --accent:         var(--gold-civic);
  --accent-glow:    rgba(200, 169, 110, 0.15);
  --text-muted:     #94a3b8;
  --r-sm:           8px;
  --r-xs:           4px;
    --font-display:   'Montserrat', 'Segoe UI', sans-serif;
    --font-body:      'Inter', 'Segoe UI', sans-serif;
    --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  
  /* Identité Côte d'Ivoire */
  --ci-orange:      #E8830A;
  --ci-green:       #1A6B3A;
  --ivory:          #f5f0e8;

  /* ============================================================
     2. SYSTÈME DE SURFACES (MODIFIÉ POUR FOND BLANC)
     ============================================================ */
  --bg-page:        #ffffff;   /* FOND BLANC PUR (Ta demande) */
  --bg-subtle:      #f8fafc;   /* Gris très léger pour les zones de contraste */
  --surface-card:   #ffffff;   /* Cartes blanches */
  --border-light:   #e2e8f0;   /* Bordures fines et modernes sur blanc */
  --border-strong:  #cbd5e1;

  /* ============================================================
     3. TYPOGRAPHIE (POUR FOND CLAIR)
     ============================================================ */
  --text-main:      #0f172a;   /* Texte quasi noir pour lisibilité max */
  --text-secondary: #475569;   /* Gris ardoise pour texte secondaire */
  --text-muted:     #94a3b8;   /* Texte désactivé */
  --text-on-dark:   #f8fafc;   /* Texte ivoire/blanc pour la sidebar */

  /* ============================================================
     4. COMPOSANT : SIDEBAR (MARINE / ARDOISE)
     ============================================================ */
  --sidebar-bg:           var(--navy-deep);
  --sidebar-item-active:  var(--slate-dark);
  --sidebar-text:         var(--text-on-dark);
  --sidebar-accent:       var(--gold-civic);
  --sidebar-border:       rgba(255, 255, 255, 0.08);

  /* ============================================================
     5. STATUTS & FEEDBACK
     ============================================================ */
  --success:        #15803d;
  --warning:        #b45309;
  --danger:         #b91c1c;
  --info:           #0369a1;

  /* ============================================================
     6. EFFETS & GRADIENTS MIGRÉS
     ============================================================ */
  --gold-glow:    rgba(200, 169, 110, 0.15);
  --admin-green-glow: rgba(26, 107, 58, 0.35);
  
  --hero-texture-grain: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0%, var(--bg-page) 100%),
                        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ============================================================
   APPLICATION GÉNÉRALE
   ============================================================ */
body {
  background-color: var(--bg-page);
  color: var(--text-main);
    font-family: var(--font-body);
}

html,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

/* Exemple de structure Sidebar vs Main Content */
.app-sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
}

.app-content {
  background-color: var(--bg-page);
}

.card-civic {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ============================================================
   SIDEBAR PREMIUM STYLES
   ============================================================ */
.sidenav {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 264px !important;
    background: var(--primary) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    z-index: 1050;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.sidenav-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100% !important;
    scrollbar-width: none;
}
.sidenav-section::-webkit-scrollbar { display: none; }

.sidenav-brand {
    padding: 32px 24px 12px !important; 
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.nav-section-label {
    padding: 18px 24px 6px !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    opacity: 0.6;
}

.nav-section-label:first-of-type {
    padding-top: 24px !important;
}

.sidenav .nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 24px !important;
    gap: 12px !important;
    color: rgba(232, 237, 242, 0.7) !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease;
    font-size: 0.92rem !important;
}

.sidenav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 24px !important;
    width: 3px !important;
    background: var(--accent) !important;
    border-radius: 0 4px 4px 0;
}

.sidenav .nav-link.active {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
}

.brand-logo-container {
    width: 42px; height: 42px;
    background: var(--accent);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidenav-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* FIX COLLAPSE INVISIBILITY */
.nav-children {
    background: rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    padding: 5px 0 !important;
}

.nav-children .nav-link {
    padding: 8px 24px 8px 56px !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.nav-children .nav-link:hover {
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.nav-children .nav-link.active {
    color: var(--accent) !important;
    background: transparent !important;
}

/* ============================================================
   NAVBAR & BREADCRUMB STYLES
   ============================================================ */
.navbar-main {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}

.breadcrumb-item, .breadcrumb-item a {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.breadcrumb-item.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.navbar-main .nav-link, 
.navbar-main .nav-link i {
    color: var(--text-main) !important;
}

.navbar-main .font-weight-bolder {
    color: var(--primary) !important;
}