<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo $page_title; ?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/font-awesome/css/font-awesome.min.css') ?>">
  <!-- Ionicons -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/Ionicons/css/ionicons.min.css') ?>">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url('assets/dist/css/AdminLTE.min.css') ?>">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?php echo base_url('assets/dist/css/skins/_all-skins.min.css') ?>">
  <!-- Morris chart -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/morris.js/morris.css') ?>">
  <!-- jvectormap -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/jvectormap/jquery-jvectormap.css') ?>">
  <!-- Date Picker -->
  <link rel="stylesheet"
    href="<?php echo base_url('assets/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
  <!-- Daterange picker -->
  <link rel="stylesheet"
    href="<?php echo base_url('assets/bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet"
    href="<?php echo base_url('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css') ?>">
  <link rel="stylesheet"
    href="<?php echo base_url('assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
  <!-- DataTables Responsive -->
  <link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.5.0/css/responsive.bootstrap.min.css">
  <!-- Select2 -->
  <link rel="stylesheet" href="<?php echo base_url('assets/bower_components/select2/dist/css/select2.min.css') ?>">
  <link rel="stylesheet" href="<?php echo base_url('assets/plugins/fileinput/fileinput.min.css') ?>">
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  <!-- icheck -->
  <!-- iCheck for checkboxes and radio inputs -->
  <!-- <link rel="stylesheet" href="<?php echo base_url('assets/plugins/iCheck/all.css') ?>"> -->

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> -->
  <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"> -->

  <!-- jQuery 3 -->
  <script src="<?php echo base_url('assets/bower_components/jquery/dist/jquery.min.js') ?>"></script>
  <script src="<?php echo base_url('assets/bower_components/jquery-ui/jquery-ui.min.js') ?>"></script>
  <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <!-- Bootstrap 3.3.7 -->
  <script src="<?php echo base_url('assets/bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
  <!-- Morris.js charts -->
  <script src="<?php echo base_url('assets/bower_components/raphael/raphael.min.js') ?>"></script>
  <script src="<?php echo base_url('assets/bower_components/morris.js/morris.min.js') ?>"></script>
  <!-- Sparkline -->
  <script
    src="<?php echo base_url('assets/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js') ?>"></script>
  <!-- jvectormap -->
  <script src="<?php echo base_url('assets/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') ?>"></script>
  <script src="<?php echo base_url('assets/plugins/jvectormap/jquery-jvectormap-world-mill-en.js') ?>"></script>
  <!-- jQuery Knob Chart -->
  <script src="<?php echo base_url('assets/bower_components/jquery-knob/dist/jquery.knob.min.js') ?>"></script>
  <!-- daterangepicker -->
  <script src="<?php echo base_url('assets/bower_components/moment/min/moment.min.js') ?>"></script>
  <script src="<?php echo base_url('assets/bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
  <!-- datepicker -->
  <script
    src="<?php echo base_url('assets/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
  <!-- Bootstrap WYSIHTML5 -->
  <script src="<?php echo base_url('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js') ?>"></script>
  <!-- Slimscroll -->
  <script src="<?php echo base_url('assets/bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
  <!-- FastClick -->
  <script src="<?php echo base_url('assets/bower_components/fastclick/lib/fastclick.js') ?>"></script>
  <!-- Select2 -->
  <script src="<?php echo base_url('assets/bower_components/select2/dist/js/select2.full.min.js') ?>"></script>
  <!-- AdminLTE App -->
  <script src="<?php echo base_url('assets/dist/js/adminlte.min.js') ?>"></script>
  <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
  <script src="<?php echo base_url('assets/dist/js/pages/dashboard.js') ?>"></script>
  <!-- AdminLTE for demo purposes -->
  <script src="<?php echo base_url('assets/dist/js/demo.js') ?>"></script>
  <script src="<?php echo base_url('assets/plugins/fileinput/fileinput.min.js') ?>"></script>
  <!-- <script src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/js/all.min.js"></script> -->
  <!-- jQuery UI 1.11.4 -->
  <script src="<?php echo base_url('assets/plugins/iCheck/icheck.min.js') ?>"></script>

  <!-- DataTables -->
  <script src="<?php echo base_url('assets/bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
  <script src="<?php echo base_url('assets/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
  <!-- DataTables Responsive -->
  <script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.min.js"></script>
  <script src="https://cdn.datatables.net/responsive/2.5.0/js/responsive.bootstrap.min.js"></script>
  <script>
    // Enable responsive for all DataTables globally
    $.extend(true, $.fn.dataTable.defaults, { responsive: true });
  </script>

    

    

    

</head>

<body class="hold-transition skin-blue sidebar-mini">
  <div class="wrapper">
    <style>
/* ============================================
   VARIABLES CSS - Design System Couleurs Unies
============================================ */
/* ============================================
   VARIABLES CSS - Design System Couleurs Unies
============================================ */
:root {
    --primary-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --dark-color: #34495e;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BODY & WRAPPER - Base modernisée
============================================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Source Sans Pro', sans-serif !important;
    overflow-x: hidden;
    min-height: 100vh;
    background: #3498db !important;
}

.wrapper {
    margin-top:30px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   CONTENT WRAPPER - Design moderne avec ombre
============================================ */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
    margin-left: 230px;
    padding-top: 50px;
    transition: margin-left 0.3s ease;
    background: #ecf0f1 !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    padding: 30px !important;
}

/* ============================================
   HEADER SECTION - En-tête amélioré
============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #3498db !important;
    height: 50px;
    transition: margin-left 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.content-header {
    background: white;
    padding: 25px 30px !important;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px !important;
    border-left: 5px solid #3498db;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin: 0;
}

.content-header small {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

.breadcrumb {
    background: transparent !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
}

.breadcrumb li {
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb li a {
    color: #3498db;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb li a:hover {
    color: #2980b9;
}

/* ============================================
   SIDEBAR - Sidebar modernisée
============================================ */
.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 810;
    width: 230px;
    background: #2c3e50 !important;
    transition: width 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
    display: block;
    padding: 15px;
    text-align: center;
    background: #3498db !important;
    color: white;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    transition: padding 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-mini {
    display: none;
}

.logo-lg {
    display: inline;
}

/* ============================================
   MENU SIDEBAR - Menu modernisé avec effets
============================================ */
.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-menu > li {
    position: relative;
    margin: 5px 8px;
}

.sidebar-menu > li > a {
    padding: 14px 15px;
    display: block;
    color: #b8c7ce;
    text-decoration: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.sidebar-menu > li > a:hover {
    color: #fff;
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.sidebar-menu > li.active > a {
    color: #fff;
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.sidebar-menu i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
}

/* ============================================
   SOUS-MENUS - Design moderne
============================================ */
.treeview-menu {
    display: none;
    list-style: none;
    padding: 5px 0;
    margin: 5px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.treeview-menu > li {
    margin: 2px 0;
}

.treeview-menu > li > a {
    padding: 10px 15px 10px 45px;
    display: block;
    font-size: 14px;
    color: #8aa4af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.treeview-menu > li > a:hover {
    color: #fff;
    background: rgba(52, 152, 219, 0.4);
    padding-left: 50px;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Affichage des sous-menus */
.treeview.menu-open > .treeview-menu {
    display: block;
}

.treeview.menu-open > a > .pull-right-container > .fa-angle-left {
    transform: rotate(-90deg);
}

/* ============================================
   SMALL BOXES - SANS HOVER
============================================ */
.small-box {
    border-radius: 20px !important;
    padding: 25px !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: none !important;
}

.small-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.small-box .inner {
    position: relative;
    z-index: 10;
}

.small-box .inner h3 {
    font-size: 42px !important;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.small-box .inner p {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

.small-box .icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 90px !important;
    opacity: 0.2 !important;
}

.small-box-footer {
    display: block;
    padding: 12px 0 0 0 !important;
    margin-top: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500;
}

/* Couleurs des small-box */
.bg-aqua {
    background: #3498db !important;
}

.bg-green {
    background: #2ecc71 !important;
}

.bg-yellow {
    background: #f39c12 !important;
}

.bg-red {
    background: #e74c3c !important;
}

.bg-primary {
    background: #3498db !important;
}

.small-box[style*="background-color: #A9A9A9"] {
    background: #7f8c8d !important;
}

/* ============================================
   CARDS - SANS HOVER
============================================ */
.card {
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft);
    border: none !important;
    margin-bottom: 25px;
    overflow: hidden;
    background: white;
}

.card-header {
    padding: 20px 25px !important;
    border-bottom: 2px solid #f3f4f6 !important;
    font-weight: 600;
}

.card-header.bg-success {
    background: #2ecc71 !important;
    color: white !important;
    border: none !important;
}

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

/* ============================================
   TABLES - SANS HOVER
============================================ */
.table {
    border-radius: 12px !important;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
}

.table thead th {
    text-align: center !important;
    background: #34495e !important;
    color: white !important;
    font-weight: 600;
    padding: 15px !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.table tbody td {
    padding: 15px !important;
    vertical-align: middle;
    text-align: center !important;
}

.table tfoot th {
    background: #f9fafb !important;
    font-weight: 700;
    padding: 15px !important;
    color: #111827;
}

/* ============================================
   BUTTONS - SANS HOVER
============================================ */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #3498db !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: #2ecc71 !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* ============================================
   FORM CONTROLS - Champs de formulaire
============================================ */
.form-control {
    border-radius: 10px !important;
    border: 2px solid #e5e7eb !important;
    padding: 10px 15px !important;
    transition: var(--transition-smooth);
    font-size: 14px;
}

.form-control:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

/* ============================================
   BOX - SANS HOVER
============================================ */
.box {
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft);
    border: none !important;
    overflow: hidden;
    background: white;
    margin-bottom: 25px;
}

.box-header {
    padding: 20px 25px !important;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb !important;
}

.box-header.with-border {
    border-bottom: 3px solid #3498db !important;
}

.box-title {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

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

.box-primary {
    border-top: 4px solid #3498db !important;
}

.box-info {
    border-top: 4px solid #3498db !important;
}

/* ============================================
   INFO BOX - SANS HOVER
============================================ */
.info-box {
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft);
    padding: 20px !important;
    border: none !important;
    overflow: hidden;
    position: relative;
}

.info-box.bg-aqua {
    background: #3498db !important;
}

.info-box.bg-yellow {
    background: #f39c12 !important;
}

.info-box-icon {
    font-size: 50px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
}

.info-box-content {
    padding: 10px 20px !important;
}

.info-box-text {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.info-box-number {
    font-size: 32px;
    font-weight: 800;
    margin-top: 5px;
}

/* ============================================
   DESCRIPTION BLOCK - SANS HOVER
============================================ */
.description-block {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: #f9fafb;
}

.description-header {
    font-size: 28px !important;
    font-weight: 800;
    color: #3498db;
    margin: 0 0 10px 0;
}

.description-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CHARTS - SANS HOVER
============================================ */
.col-lg-6[style*="background-color: white"] {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 25px !important;
    margin-bottom: 20px;
}

/* ============================================
   FOOTER - Footer modernisé
============================================ */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 230px;
    margin-left: 2px;
    right: 0;
    z-index: 1000;
    background: #ffffff !important;
    padding: 12px 20px;
    border-top: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: left 0.3s ease, margin-left 0.3s ease;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* ============================================
   SIDEBAR TOGGLE BUTTON
============================================ */
.sidebar-toggle {
    position: fixed;
    left: 230px;
    z-index: 2000;
    background: #3c8dbc;
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: left 0.3s ease;
}

.sidebar-collapsed .sidebar-toggle {
    left: 70px;
}

/* ============================================
   NOTIFICATIONS - Badge modernisé
============================================ */
.navbar-badge {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 3px 6px;
    position: absolute;
    right: 5px;
    top: 9px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav > li > a > .fa-bell,
.navbar-nav > li > a > .ion-ios-bell,
.nav-link .fa-bell,
.nav-link .ion-ios-bell {
    font-size: 24px !important;
    padding: 5px;
}

.navbar-nav > .notifications-menu > a {
    padding: 8px 15px !important;
}

.badge-warning {
    color: #fff;
    background: #f39c12;
}

/* ============================================
   DROPDOWN MENU - Menu déroulant modernisé
============================================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 280px;
    padding: 8px 0;
    margin: 8px 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background: #ffffff;
    background-clip: padding-box;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.show {
    display: block;
}

/* ============================================
   MODE SIDEBAR RÉDUITE
============================================ */
.sidebar-collapsed .main-sidebar {
    width: 70px;
    overflow-y: auto;
    overflow-x: visible;
    direction: rtl;
}

.sidebar-collapsed .main-sidebar .sidebar-menu {
    direction: ltr;
}

.sidebar-collapsed .content-wrapper {
    margin-left: 70px;
}

.sidebar-collapsed .main-header {
    width: 100%;
    margin-left: 0;
}

.sidebar-collapsed .main-footer {
    left: 70px;
    margin-left: 2px;
}

.sidebar-collapsed .sidebar-toggle {
    left: 70px;
}

.sidebar-collapsed .logo {
    padding: 15px 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    box-sizing: border-box;
}

.sidebar-collapsed .logo-mini {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.sidebar-collapsed .logo-lg {
    display: none;
}

.sidebar-collapsed .sidebar-menu > li > a > span {
    display: none;
}

.sidebar-collapsed .sidebar-menu > li > a .pull-right-container {
    display: none;
}

.sidebar-collapsed .sidebar-menu > li > a {
    text-align: center;
    padding: 14px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    box-sizing: border-box;
    margin: 5px auto;
}

.sidebar-collapsed .sidebar-menu i {
    margin-right: 0;
    display: block;
    font-size: 20px;
    width: auto;
    text-align: center;
}

.sidebar-collapsed .sidebar-menu > li > a::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    pointer-events: none;
}

.sidebar-collapsed .sidebar-menu > li:hover > a::before {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

.sidebar-collapsed .treeview-menu {
    position: fixed;
    left: 80px;
    top: auto;
    width: 200px;
    max-width: calc(100vw - 100px);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border-left: 2px solid #3c8dbc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: block !important;
    background: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(210, 214, 222, 0.8);
    pointer-events: none;
    transform: translateX(-20px) scale(0.95);
    transform-origin: left center;
    margin-top: 0;
}

.sidebar-collapsed .treeview:hover .treeview-menu {
    pointer-events: auto !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.sidebar-collapsed .treeview-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) scale(1) !important;
}

.sidebar-collapsed .treeview-menu > li > a {
    padding: 8px 12px;
    color: #495057;
    white-space: nowrap;
    border-bottom: 1px solid rgba(210, 214, 222, 0.4);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    display: block;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto !important;
    z-index: 10000;
}

.sidebar-collapsed .treeview-menu > li:last-child > a {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.sidebar-collapsed .treeview-menu > li:first-child > a {
    border-radius: 4px 4px 0 0;
}

.sidebar-collapsed .treeview-menu > li > a:hover {
    background: #3c8dbc;
    color: #fff;
    padding-left: 15px;
    transform: translateX(2px);
}

.sidebar-collapsed .treeview-menu > li > a i {
    margin-right: 6px;
    width: 14px;
    text-align: center;
    font-size: 11px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sidebar-collapsed .treeview-menu > li > a:hover i {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.main-sidebar::-webkit-scrollbar {
    width: 8px;
}

.main-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.sidebar-collapsed .main-sidebar::-webkit-scrollbar {
    width: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Tablettes (768px - 991px) */
@media (max-width: 991px) {
    .content-header h1 {
        font-size: 28px;
    }
    
    .small-box .inner h3 {
        font-size: 36px !important;
    }
    
    .small-box .icon {
        font-size: 70px !important;
    }
    
    .box-title {
        font-size: 16px;
    }
    
    /* Tables responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 12px;
    }
    
    .table {
        width: 100% !important;
        min-width: auto !important;
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    
    .table thead,
    .table tbody,
    .table tfoot {
        display: table;
        width: 100%;
        table-layout: auto;
    }
    
    .table thead th {
        padding: 12px 8px !important;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 12px 8px !important;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .table tfoot th {
        padding: 12px 8px !important;
        white-space: nowrap;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 15px !important;
        font-size: 12px;
        border-radius: 8px !important;
    }
    
    /* Form controls */
    .form-control {
        padding: 8px 12px !important;
        font-size: 13px;
        border-radius: 8px !important;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* Info boxes */
    .info-box {
        border-radius: 12px !important;
        padding: 15px !important;
        flex-direction: column;
        text-align: center;
    }
    
    .info-box-icon {
        font-size: 40px !important;
        padding: 15px !important;
        margin-bottom: 10px;
    }
    
    .info-box-content {
        padding: 0 !important;
    }
    
    .info-box-text {
        font-size: 13px;
    }
    
    .info-box-number {
        font-size: 26px;
    }
    
    /* Description blocks */
    .description-block {
        padding: 15px;
        border-radius: 10px;
    }
    
    .description-header {
        font-size: 22px !important;
    }
    
    .description-text {
        font-size: 12px;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        min-width: 250px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    /* Sidebar collapsed sur mobile */
    .sidebar-collapsed .main-sidebar {
        margin-left: -70px;
    }
    
    .sidebar-collapsed .content-wrapper {
        margin-left: 0 !important;
    }
    
    .sidebar-collapsed .main-footer {
        left: 0 !important;
    }
    
    .sidebar-collapsed .sidebar-toggle {
        left: 10px;
    }
    
    /* Treeview menu sur mobile */
    .sidebar-collapsed .treeview-menu {
        left: 70px;
        width: 180px;
    }
    
    /* Charts containers */
    .col-lg-6[style*="background-color: white"] {
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 15px;
    }
    
    /* Grid columns full width sur mobile */
    .col-xs-12,
    .col-sm-6,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Petits mobiles (max-width: 576px) */
@media (max-width: 576px) {
    /* Content wrapper */
    .content-wrapper {
        padding: 10px !important;
        padding-top: 60px !important;
        padding-bottom: 90px !important;
    }
    
    /* Content header */
    .content-header {
        padding: 12px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px;
        border-left-width: 3px;
    }
    
    .content-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .content-header small {
        font-size: 11px;
        margin-top: 3px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        padding: 8px 0 0 0 !important;
        font-size: 11px;
    }
    
    .breadcrumb li {
        font-size: 11px;
    }
    
    /* Small boxes */
    .small-box {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .small-box .inner h3 {
        font-size: 28px !important;
    }
    
    .small-box .inner p {
        font-size: 13px;
    }
    
    .small-box .icon {
        font-size: 50px !important;
        right: 10px;
        opacity: 0.15 !important;
    }
    
    .small-box-footer {
        padding: 8px 0 0 0 !important;
        margin-top: 8px !important;
        font-size: 12px;
    }
    
    /* Cards et boxes */
    .card, .box {
        border-radius: 10px !important;
        margin-bottom: 12px;
    }
    
    .card-header, .box-header {
        padding: 12px 15px !important;
    }
    
    .card-body, .box-body {
        padding: 12px !important;
    }
    
    .box-title {
        font-size: 15px;
    }
    
    /* Tables */
    .table {
        width: 100% !important;
        min-width: auto !important;
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .table thead,
    .table tbody,
    .table tfoot {
        display: table;
        width: 100%;
        table-layout: auto;
    }
    
    .table thead th {
        padding: 10px 6px !important;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 10px 6px !important;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .table tfoot th {
        padding: 10px 6px !important;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Buttons */
    .btn {
        padding: 7px 12px !important;
        font-size: 11px;
        border-radius: 6px !important;
        letter-spacing: 0.3px;
    }
    
    /* Form controls */
    .form-control {
        padding: 7px 10px !important;
        font-size: 12px;
        border-radius: 6px !important;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    /* Info boxes */
    .info-box {
        border-radius: 10px !important;
        padding: 12px !important;
    }
    
    .info-box-icon {
        font-size: 35px !important;
        padding: 12px !important;
        margin-bottom: 8px;
    }
    
    .info-box-text {
        font-size: 12px;
    }
    
    .info-box-number {
        font-size: 22px;
    }
    
    /* Description blocks */
    .description-block {
        padding: 12px;
        border-radius: 8px;
    }
    
    .description-header {
        font-size: 20px !important;
    }
    
    .description-text {
        font-size: 11px;
    }
    
    /* Footer */
    .main-footer {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        min-width: 220px;
        font-size: 13px;
        border-radius: 8px;
        margin: 5px 0 0;
    }
    
    /* Navbar badge */
    .navbar-badge {
        font-size: 1rem;
        padding: 2px 5px;
        right: 3px;
        top: 7px;
    }
    
    .navbar-nav > li > a > .fa-bell,
    .navbar-nav > li > a > .ion-ios-bell,
    .nav-link .fa-bell,
    .nav-link .ion-ios-bell {
        font-size: 20px !important;
    }
    
    /* Charts containers */
    .col-lg-6[style*="background-color: white"] {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    /* Logo */
    .logo {
        padding: 12px;
        font-size: 16px;
    }
    
    /* Sidebar menu */
    .sidebar-menu > li > a {
        padding: 12px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .sidebar-menu i {
        font-size: 15px;
        width: 22px;
        margin-right: 8px;
    }
    
    /* Treeview menu */
    .treeview-menu > li > a {
        padding: 8px 12px 8px 40px;
        font-size: 13px;
        border-radius: 5px;
    }
}

/* Très petits mobiles (max-width: 375px) */
@media (max-width: 375px) {
    .content-wrapper {
        padding: 8px !important;
        padding-top: 58px !important;
    }
    
    .content-header h1 {
        font-size: 18px;
    }
    
    .small-box .inner h3 {
        font-size: 24px !important;
    }
    
    .small-box .inner p {
        font-size: 12px;
    }
    
    .small-box .icon {
        font-size: 45px !important;
    }
    
    .btn {
        padding: 6px 10px !important;
        font-size: 10px;
    }
    
    .form-control {
        padding: 6px 8px !important;
        font-size: 11px;
    }
    
    .table {
        width: 100% !important;
        min-width: auto !important;
        font-size: 11px;
        display: block;
        overflow-x: auto;
    }
    
    .table thead,
    .table tbody,
    .table tfoot {
        display: table;
        width: 100%;
        table-layout: auto;
    }
    
    .table thead th {
        padding: 8px 5px !important;
        font-size: 9px;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 8px 5px !important;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .info-box-number {
        font-size: 20px;
    }
    
    .description-header {
        font-size: 18px !important;
    }
}

/* Paysage mobile (orientation landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .content-wrapper {
        padding-top: 55px !important;
        padding-bottom: 70px !important;
    }
    
    .main-footer {
        padding: 8px 15px;
    }
    
    .small-box {
        padding: 15px !important;
    }
    
    .small-box .inner h3 {
        font-size: 28px !important;
    }
    
    .small-box .icon {
        font-size: 55px !important;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromSidebar {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateX(3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.small-box,
.card,
.box {
    animation: fadeInUp 0.5s ease-out;
}

.small-box:nth-child(1) { animation-delay: 0.1s; }
.small-box:nth-child(2) { animation-delay: 0.2s; }
.small-box:nth-child(3) { animation-delay: 0.3s; }
.small-box:nth-child(4) { animation-delay: 0.4s; }
.small-box:nth-child(5) { animation-delay: 0.5s; }

.sidebar-collapsed .treeview:hover .treeview-menu {
    animation: slideInFromSidebar 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Désactiver les animations sur mobile pour de meilleures performances */
@media (max-width: 768px) {
    .small-box,
    .card,
    .box {
        animation: none;
    }
    
    * {
        transition-duration: 0.2s !important;
    }
};
    }
    
    .info-box-number {
        font-size: 28px;
    }
    
    .description-header {
        font-size: 24px !important;
    }
}

/* Mobiles et petites tablettes (max-width: 768px) */
@media (max-width: 768px) {
    /* Sidebar caché par défaut sur mobile */
    .main-sidebar {
        margin-left: -230px;
        transition: margin-left 0.3s ease;
    }
    
    /* Content prend toute la largeur */
    .content-wrapper {
        margin-left: 0 !important;
        padding: 15px !important;
        padding-top: 65px !important;
        padding-bottom: 80px !important;
    }
    
    /* Header prend toute la largeur */
    .main-header {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Footer prend toute la largeur */
    .main-footer {
        left: 0 !important;
        margin-left: 0 !important;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    /* Quand la sidebar est ouverte sur mobile */
    .sidebar-mobile-open .main-sidebar {
        margin-left: 0;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    /* Overlay pour fermer la sidebar sur mobile */
    .sidebar-mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 800;
    }
    
    /* Content header */
    .content-header {
        padding: 15px 20px !important;
        margin-bottom: 20px !important;
        border-radius: 12px;
    }
    
    .content-header h1 {
        font-size: 24px;
    }
    
    .content-header small {
        font-size: 12px;
    }
    
    /* Breadcrumb responsive */
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    /* Small boxes */
    .small-box {
        padding: 20px !important;
        border-radius: 16px !important;
        margin-bottom: 15px;
    }
    
    .small-box .inner h3 {
        font-size: 32px !important;
    }
    
    .small-box .inner p {
        font-size: 14px;
    }
    
    .small-box .icon {
        font-size: 60px !important;
        right: 15px;
    }
    
    .small-box-footer {
        padding: 10px 0 0 0 !important;
        margin-top: 10px !important;
        font-size: 13px;
    }
    
    /* Cards et boxes */
    .card, .box {
        border-radius: 12px !important;
        margin-bottom: 15px;
    }
    
    .card-header, .box-header {
        padding: 15px 20px !important;
    }
    
    .card-body, .box-body {
        padding: 15px !important;
    }
    
    .box-title {
        font-size: 16px
    }
}
    </style>