/**
 * STYLE GLOBAL POUR L'APPLICATION ASSOCIATION
 * Design moderne avec dégradés et animations
 * Responsive pour tous les appareils
 */

/* ============================
   VARIABLES CSS
   ============================ */
:root {
    /* Couleurs principales avec dégradés */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Couleurs de fond */
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Bordures */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ============================
   RESET ET BASE
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 12px;
}

/* Tailles de police par défaut */
h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

p, div, span, td, th, li {
    font-size: 12px;
}

small {
    font-size: 11px;
}

.text-xs {
    font-size: 10px;
}

.text-sm {
    font-size: 11px;
}

.text-lg {
    font-size: 14px;
}

.text-xl {
    font-size: 16px;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-warning);
}

/* ============================
   CARTES ET CONTENEURS
   ============================ */
.card {
    background: var(--card-gradient);
    border: none !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-header {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: 1.25rem !important;
    font-weight: 600;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0 !important;
}

.card-header.bg-success {
    background: var(--gradient-success) !important;
}

.card-header.bg-danger {
    background: var(--gradient-danger) !important;
}

.card-header.bg-warning {
    background: var(--gradient-warning) !important;
}

.card-header.bg-info {
    background: var(--gradient-info) !important;
}

.card-body {
    padding: 1.5rem !important;
}

.card-footer {
    background: rgba(0, 0, 0, 0.02) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Cartes statistiques */
.stat-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px) scale(1.02);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: rotate(360deg) scale(1.1);
}

/* ============================
   BOUTONS
   ============================ */
.btn {
    border-radius: var(--border-radius-sm) !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6) !important;
    transform: translateY(-3px) !important;
}

.btn-success {
    background: var(--gradient-success) !important;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4) !important;
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(17, 153, 142, 0.6) !important;
    transform: translateY(-3px) !important;
}

.btn-danger {
    background: var(--gradient-danger) !important;
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4) !important;
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(235, 51, 73, 0.6) !important;
    transform: translateY(-3px) !important;
}

.btn-warning {
    background: var(--gradient-warning) !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4) !important;
    color: white !important;
}

.btn-warning:hover {
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.6) !important;
    transform: translateY(-3px) !important;
}

.btn-info {
    background: var(--gradient-info) !important;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4) !important;
}

.btn-info:hover {
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6) !important;
    transform: translateY(-3px) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #868f96 0%, #596164 100%) !important;
}

.btn-sm {
    padding: 0.4rem 1rem !important;
    font-size: 11px !important;
}

.btn-lg {
    padding: 0.9rem 2rem !important;
    font-size: 14px !important;
}

/* ============================
   TABLEAUX
   ============================ */
.table {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    border: none !important;
    padding: 1rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle;
}

.table-responsive {
    border-radius: var(--border-radius-md);
}

/* ============================
   BADGES
   ============================ */
.badge {
    padding: 0.5rem 0.9rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: var(--gradient-success) !important;
}

.badge.bg-danger {
    background: var(--gradient-danger) !important;
}

.badge.bg-warning {
    background: var(--gradient-warning) !important;
}

.badge.bg-info {
    background: var(--gradient-info) !important;
}

/* ============================
   FORMULAIRES
   ============================ */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm) !important;
    border: 2px solid #e0e6ed !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-normal) !important;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 12px;
}

.input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.input-group-text {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
}

/* ============================
   ALERTS
   ============================ */
.alert {
    border: none !important;
    border-radius: var(--border-radius-md) !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.5s ease;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724 !important;
}

.alert-success::before {
    background: var(--gradient-success);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
}

.alert-danger::before {
    background: var(--gradient-danger);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
}

.alert-warning::before {
    background: var(--gradient-warning);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460 !important;
}

.alert-info::before {
    background: var(--gradient-info);
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================
   MODALS
   ============================ */
.modal-content {
    border: none !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: 1.5rem !important;
}

.modal-header.bg-success {
    background: var(--gradient-success) !important;
}

.modal-header.bg-danger {
    background: var(--gradient-danger) !important;
}

.modal-header.bg-warning {
    background: var(--gradient-warning) !important;
}

.modal-header.bg-info {
    background: var(--gradient-info) !important;
}

.modal-body {
    padding: 2rem !important;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1.25rem !important;
    background: rgba(0, 0, 0, 0.02);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ============================
   NAVIGATION ET TOPBAR
   ============================ */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 18px;
    color: white !important;
    transition: var(--transition-normal);
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: var(--transition-normal);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================
   PAGINATION
   ============================ */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 0.6rem 1rem !important;
    color: #667eea !important;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.active .page-link {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
    background: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #2c3e50;
    font-weight: 600;
}

/* ============================
   PROGRESS BARS
   ============================ */
.progress {
    height: 1.5rem !important;
    border-radius: 50px !important;
    background: #e9ecef !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: visible !important;
}

.progress-bar {
    background: var(--gradient-primary) !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================
   TOOLTIPS ET POPOVERS
   ============================ */
.tooltip-inner {
    background: var(--gradient-dark) !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
}

.popover {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--border-radius-md) !important;
}

/* ============================
   ICÔNES
   ============================ */
i, .fas, .far, .fab, .bi {
    transition: var(--transition-normal);
}

.icon-hover:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ============================
   ANIMATIONS GLOBALES
   ============================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease;
}

/* ============================
   UTILITAIRES
   ============================ */
.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.shadow-hover {
    transition: var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-5px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.border-gradient {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablettes */
@media (max-width: 991.98px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 11px !important;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Mobiles */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .table {
        font-size: 11px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 11px !important;
    }
    
    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 16px !important; }
    
    .modal-body {
        padding: 1.25rem !important;
    }
}

/* Petits mobiles */
@media (max-width: 575.98px) {
    body {
        font-size: 11px;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table {
        font-size: 10px;
    }
    
    .badge {
        font-size: 10px !important;
        padding: 0.35rem 0.65rem !important;
    }
}

/* ============================
   DARK MODE (Optionnel)
   ============================ */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e0e0e0;
    }
    
    .card {
        background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
        color: #e0e0e0;
    }
    
    .table tbody tr:hover {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .form-control,
    .form-select {
        background: #2a2a3e;
        color: #e0e0e0;
        border-color: #3a3a4e !important;
    }
}

/* ============================
   IMPRESSION
   ============================ */
@media print {
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn,
    .sidebar,
    .navbar,
    .modal {
        display: none !important;
    }
}

/* ============================
   DATATABLES PERSONNALISATION
   ============================ */

/* Conteneur DataTables */
.dataTables_wrapper {
    padding: 0 !important;
}

/* En-tête avec sélecteur et recherche */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.4rem 0.75rem !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    border: 2px solid #e0e6ed !important;
    margin: 0 0.5rem;
    min-width: 70px;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.5rem 0.75rem !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    border: 2px solid #e0e6ed !important;
    margin-left: 0.5rem;
    min-width: 200px;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.15) !important;
    outline: none;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

/* Informations de pagination */
.dataTables_wrapper .dataTables_info {
    padding-top: 1rem;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.4rem 0.75rem !important;
    font-size: 11px !important;
    margin: 0 2px;
    border-radius: 6px !important;
    border: none !important;
    background: white !important;
    color: #667eea !important;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Message "Aucune donnée disponible" */
.dataTables_wrapper .dataTables_empty {
    padding: 2rem !important;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Tri des colonnes */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 2rem !important;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    position: absolute;
    right: 0.75rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    opacity: 0.6;
}

table.dataTable thead th.sorting:after {
    content: "\f0dc";
}

table.dataTable thead th.sorting_asc:after {
    content: "\f0de";
    opacity: 1;
}

table.dataTable thead th.sorting_desc:after {
    content: "\f0dd";
    opacity: 1;
}

/* Responsive DataTables */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background: var(--gradient-primary);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    font-size: 10px;
}

/* Ligne de détails responsive */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    background: var(--gradient-danger);
}

/* Styles compacts pour DataTables */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        min-width: 150px;
        margin: 0.5rem 0 0 0;
        display: block;
        width: 100%;
    }
    
    .dataTables_wrapper .dataTables_length select {
        margin: 0.5rem auto;
        display: block;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 0.75rem;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.3rem 0.5rem !important;
        font-size: 10px !important;
        margin: 0.1rem;
    }
}
