:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    color: #333;
}

/* Header */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    background: #fff;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar .nav-link {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--primary) 10%, #224abe 100%);
    min-height: calc(100vh - 56px);
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    font-weight: 600;
}

.sidebar .nav-item .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-item .nav-link i {
    margin-right: 0.5rem;
}

.sidebar .nav-item.active .nav-link {
    color: #fff;
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Tables */
.table {
    color: #5a5c69;
}

.table th {
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
}

/* Forms */
.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .navbar-collapse {
        background: #fff;
        box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    }
    html, body {
        height: 100%;
        margin: 0;
    }
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    .main-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .sidebar {
        height: calc(100vh - 120px); /* 120px pour header/footer */
    }
    
    .main-content {
        min-height: calc(100vh - 150px); /* Marge supplémentaire */
    }
    footer {
        margin-top: auto; /* Pousse le footer vers le bas */
        background: #f8f9fa;
        padding: 20px;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    }

/* Ajout du 06/05/25 */

    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .nav-link {
        transition: all 0.3s ease;
        border-radius: 5px;
    }
    
    .nav-link:hover {
        background-color: #e9ecef;
        transform: translateX(5px);
    }
    
    .bg-light {
        background-color: #f8f9fa!important;
    }
    .badge {
        padding: 0.5em 0.75em;
        font-size: 0.875em;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .bg-success {
        background-color: #28a745 !important;
    }
    
    .bg-warning {
        background-color: #ffc107 !important;
        color: #212529 !important;
    }
    
    .bg-danger {
        background-color: #dc3545 !important;
    }
    
    .bg-secondary {
        background-color: #6c757d !important;
    }
    
    .bg-info {
        background-color: #17a2b8 !important;
    }
    
    .bg-primary {
        background-color: #007bff !important;
    }
}