/* Variables CSS */
:root {
--primary-color: #781f19;
--secondary-color: #494949;
--success-color: #28a745;
--danger-color: #dc3545;
--warning-color: #ffc107;
--info-color: #17a2b8;
--light-color: #f8f9fa;
--dark-color: #343a40;
--white: #ffffff;
--gray-100: #f8f9fc;
--gray-200: #eaecf4;
--gray-300: #dddfeb;
--gray-400: #d1d3e2;
--gray-500: #b7b9cc;
--gray-600: #858796;
--gray-700: #6e707e;
--gray-800: #5a5c69;
--gray-900: #3a3b45;
--shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}
/* Styles globaux */
body {
font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--gray-100);
}
/* Navigation */
.navbar-brand {
font-weight: 700;
font-size: 1.5rem;
}
.navbar {
box-shadow: var(--shadow);
}
/* Cartes */
.card {
border: none;
box-shadow: var(--shadow);
border-radius: 0.35rem;
}
.card-header {
background-color: var(--gray-100);
border-bottom: 1px solid var(--gray-200);
}
/* Boutons */
.btn {
font-weight: 400;
border-radius: 0.35rem;
font-size: 0.875rem;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background-color: #5a1713;
border-color: #5a1713;
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}
.btn-secondary:hover {
background-color: #333333;
border-color: #333333;
}
/* Tableaux */
.table {
font-size: 0.875rem;
}
.table th {
font-weight: 600;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Bordures colorées pour les cartes statistiques */
.border-left-primary {
border-left: 0.25rem solid var(--primary-color) !important;
}
.border-left-success {
border-left: 0.25rem solid var(--success-color) !important;
}
.border-left-info {
border-left: 0.25rem solid var(--info-color) !important;
}
.border-left-warning {
border-left: 0.25rem solid var(--warning-color) !important;
}
.border-left-danger {
border-left: 0.25rem solid var(--danger-color) !important;
}
/* Formulaires */
.form-control {
border-radius: 0.35rem;
border: 1px solid var(--gray-300);
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(120, 31, 25, 0.25);
}
/* Alertes */
.alert {
border: none;
border-radius: 0.35rem;
font-size: 0.875rem;
}
/* Modals */
.modal-content {
border: none;
border-radius: 0.5rem;
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}
.modal-header {
border-bottom: 1px solid var(--gray-200);
}
.modal-footer {
border-top: 1px solid var(--gray-200);
}
/* Badges */
.badge {
font-weight: 500;
font-size: 0.75rem;
}
/* Breadcrumbs */
.breadcrumb {
background-color: transparent;
margin-bottom: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
content: "›";
}
/* Images utilisateur */
.user-photo {
width: 40px;
height: 40px;
object-fit: cover;
border: 2px solid var(--white);
box-shadow: 0 0 0 2px var(--primary-color);
}
/* Animations */
.btn, .card, .form-control {
transition: all 0.15s ease-in-out;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}
/* Charts */
.chart-pie, .chart-bar {
position: relative;
height: 15rem;
}
/* Responsive */
@media (max-width: 768px) {
.container-fluid {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.card-body {
    padding: 1rem;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
}
}
/* Print styles */
@media print {
.no-print {
display: none !important;
}
.card {
    box-shadow: none;
    border: 1px solid #ddd;
}

.table {
    font-size: 0.75rem;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
background: var(--gray-400);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--gray-500);
}
/* Loading states */
.loading {
position: relative;
opacity: 0.7;
pointer-events: none;
}
.loading::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid transparent;
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}