/* Styles personnalisés pour Billio.cloud - Design Ghost-IA */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Couleurs sombres comme Ghost-IA */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e3f;
    --bg-card-hover: #2a2a4a;
    
    --border-color: #2d2d5a;
    --border-light: #3a3a6a;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: #6366f1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Améliorer la lisibilité des textes d'aide (form-text) dans les cartes/tabs sombres */
.card .form-text,
.tab-content .form-text,
.form-text {
    color: #e5e7eb !important; /* gris clair lisible */
    font-size: 0.95rem;
}

/* Lisibilité des labels checkbox dans les cartes sombres */
.card .form-check {
    color: #f3f4f6;
    font-weight: 600;
}
.card .form-check-input { margin-right: 8px; }

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Navigation */
.navbar {
    background: rgba(30, 30, 63, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 40px;
    padding: 0.3rem 1rem;
}

/* Augmenter la taille du brand */
.navbar-brand {
    font-size: 1.2rem !important;
    font-weight: 600;
}

/* Augmenter la taille des liens de navigation */
.navbar-nav .nav-link {
    font-size: 1rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 500;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Dropdown menu */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Boutons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    min-width: auto;
    width: auto;
}

/* Styles spécifiques pour les boutons du dashboard */
.dashboard-page .card .d-grid .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    text-align: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-page .card .d-grid {
    gap: 0.75rem !important;
}

.dashboard-page .card .d-grid .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2, var(--info-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(6, 182, 212, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, var(--warning-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.4);
}

/* Tableaux */
.table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.table thead th {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Formulaires */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
    background: var(--bg-card);
}

.form-control::placeholder {
    color: #a1a1aa;
    opacity: 0.9;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dashboard Stats Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 200px; /* Added for consistent height */
    display: flex; /* Added for vertical centering */
    flex-direction: column; /* Added for vertical centering */
    justify-content: center; /* Added for vertical centering */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.stat-card:nth-child(1)::before { 
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); 
}
.stat-card:nth-child(2)::before { 
    background: linear-gradient(90deg, var(--success-color), #34d399); 
}
.stat-card:nth-child(3)::before { 
    background: linear-gradient(90deg, var(--info-color), #22d3ee); 
}
.stat-card:nth-child(4)::before { 
    background: linear-gradient(90deg, var(--warning-color), #fbbf24); 
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-light);
}

.stat-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    pointer-events: none;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Ajustements spécifiques au dashboard pour éviter le dépassement des labels */
.dashboard-page .stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 16px;
}

.stat-card:nth-child(1) .stat-icon { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
}
.stat-card:nth-child(2) .stat-icon { 
    background: linear-gradient(135deg, var(--success-color), #059669); 
}
.stat-card:nth-child(3) .stat-icon { 
    background: linear-gradient(135deg, var(--info-color), #0891b2); 
}
.stat-card:nth-child(4) .stat-icon { 
    background: linear-gradient(135deg, var(--warning-color), #d97706); 
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Factures */
.invoice-preview {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
}

.invoice-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.invoice-items {
    margin: 2rem 0;
}

.invoice-total {
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 2rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    .dashboard-page .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Effets spéciaux */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Animation de chargement */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Effet de particules en arrière-plan */
.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Styles pour la page de connexion */
.nav-pills .nav-link {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

/* Amélioration des formulaires de connexion */
.form-control {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.form-control:focus {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.form-control::placeholder {
    color: #a1a1aa !important;
    opacity: 0.9 !important;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Styles spécifiques pour les modales */
.modal .form-label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.modal .form-control {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.modal .form-control:focus {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.modal .form-select {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.modal .form-select:focus {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.modal .form-control-plaintext {
    color: var(--text-primary) !important;
}

/* Styles pour les modales - correction des textes blancs */
.modal-content { background: var(--bg-card) !important; border: 1px solid var(--border-color) !important; }
.modal-header { background: var(--bg-card) !important; border-bottom: 1px solid var(--border-color) !important; color: var(--text-primary) !important; }
.modal-header .modal-title { color: var(--text-primary) !important; }
.modal-body { background: var(--bg-card) !important; color: var(--text-primary) !important; }
.modal-footer { background: var(--bg-card) !important; border-top: 1px solid var(--border-color) !important; }
.modal .btn-close { filter: invert(1); }
.modal .alert { background: var(--bg-card) !important; border: 1px solid var(--border-color) !important; }
.modal .form-control-plaintext { background: transparent !important; border: none !important; color: var(--text-primary) !important; padding: 0 !important; }

/* Styles spécifiques pour users.php */
.form-control-plaintext {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
}

.table td {
    color: var(--text-primary) !important;
}

.table th {
    color: var(--text-primary) !important;
}

.table strong {
    color: var(--text-primary) !important;
}

.table .text-muted {
    color: var(--text-secondary) !important;
}

.table .text-danger {
    color: #ff6b6b !important;
}

.table .text-warning {
    color: #ffd93d !important;
}

/* Styles pour les modales dans users.php */
.modal .form-label {
    color: var(--text-primary) !important;
}

.modal .alert {
    color: var(--text-primary) !important;
}

.modal .alert-info {
    background: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: var(--text-primary) !important;
}

.modal .alert-info i {
    color: #0dcaf0 !important;
}

/* Styles spécifiques pour forcer la visibilité du texte dans users.php */
.table td,
.table td *,
.table td span,
.table td div,
.table td p {
    color: var(--text-primary) !important;
}

.table td .text-muted {
    color: var(--text-secondary) !important;
}

/* Styles pour les cartes dans users.php */
.card-body .table td {
    color: var(--text-primary) !important;
}

.card-body .table td * {
    color: var(--text-primary) !important;
}

/* Styles pour les éléments de texte dans les tableaux */
.table td small,
.table td .text-muted,
.table td .text-secondary {
    color: var(--text-secondary) !important;
}

/* Styles pour les badges et éléments spéciaux */
.table td .badge {
    color: white !important;
}

.table td .badge.bg-success {
    background-color: #28a745 !important;
}

.table td .badge.bg-danger {
    background-color: #dc3545 !important;
}

.table td .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.table td .badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Styles spécifiques pour users.php - Règles plus agressives */
.users-page .table td,
.users-page .table th,
.users-page .table strong,
.users-page .table span,
.users-page .table div,
.users-page .table p {
    color: var(--text-primary) !important;
}

.users-page .table .text-muted {
    color: var(--text-secondary) !important;
}

.users-page .table .text-danger {
    color: #ff6b6b !important;
}

.users-page .table .text-warning {
    color: #ffd93d !important;
}

/* Styles pour les modales dans users.php */
.users-page .modal .form-label,
.users-page .modal .form-control-plaintext,
.users-page .modal .alert {
    color: var(--text-primary) !important;
}

.users-page .modal .alert-info {
    background: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: var(--text-primary) !important;
}

.users-page .modal .alert-info i {
    color: #0dcaf0 !important;
}

/* Styles pour tous les tableaux dans users.php */
.users-page .card-body .table td,
.users-page .card-body .table th,
.users-page .card-body .table strong,
.users-page .card-body .table span,
.users-page .card-body .table div,
.users-page .card-body .table p {
    color: var(--text-primary) !important;
}

/* Styles pour les badges dans users.php */
.users-page .table .badge {
    color: white !important;
}

.users-page .table .badge.bg-success {
    background-color: #28a745 !important;
}

.users-page .table .badge.bg-danger {
    background-color: #dc3545 !important;
}

.users-page .table .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.users-page .table .table .badge.bg-info {
    background-color: #17a2b8 !important;
}

.users-page .table .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Styles ultra-spécifiques pour forcer la visibilité du texte dans users.php */
.users-page .table tbody tr td,
.users-page .table tbody tr td *,
.users-page .table tbody tr td strong,
.users-page .table tbody tr td span,
.users-page .table tbody tr td div,
.users-page .table tbody tr td p {
    color: #ffffff !important;
}

.users-page .table tbody tr td .text-muted {
    color: #adb5bd !important;
}

.users-page .table tbody tr td .btn {
    color: inherit !important;
}

/* Styles pour les boutons dans le tableau */
.users-page .table .btn-group .btn {
    color: var(--text-primary) !important;
}

.users-page .table .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.users-page .table .btn-outline-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.users-page .table .btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.users-page .table .btn-outline-success {
    color: #198754 !important;
    border-color: #198754 !important;
}

/* Correction des textes sombres dans les cartes et formulaires */
.card-body { color: var(--text-primary) !important; }
.card-body p { color: var(--text-primary) !important; }
.card-body strong { color: var(--text-primary) !important; }
.card-body span { color: var(--text-primary) !important; }

/* Correction des textes dans les sections de totaux (TVA, etc.) */
.border-top { border-top-color: var(--border-color) !important; }
.border-top span { color: var(--text-primary) !important; }
.border-top .fw-bold { color: var(--text-primary) !important; }

/* Correction des textes dans les tableaux */
.table tbody td { color: var(--text-primary) !important; }
.table tfoot td { color: var(--text-primary) !important; }
.table tfoot strong { color: var(--text-primary) !important; }

/* Correction des textes dans les informations de compte */
.card-body p strong { color: var(--text-primary) !important; }
.card-body .text-muted { color: var(--text-secondary) !important; }

/* Correction des textes dans les sections d'aide */
.card-body .small { color: var(--text-secondary) !important; }

/* Correction des textes dans les notes de facture */
.card-body p.mb-0 { color: var(--text-primary) !important; }

/* Correction des textes dans les sections d'informations */
.card-body div p { color: var(--text-primary) !important; }
.card-body div p strong { color: var(--text-primary) !important; }

/* Styles pour la landing page */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
}

.hero-image i {
    filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
}

.bg-light {
    background: var(--bg-secondary) !important;
}

.bg-dark {
    background: var(--bg-primary) !important;
}

/* Styles pour les sections de la landing page */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section .container {
    position: relative;
    z-index: 1;
}

/* Styles pour les cartes de la landing page */
.card {
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Styles pour les boutons de la landing page */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Styles pour les formulaires de la landing page */
.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Styles pour les alertes de la landing page */
.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Styles pour la navigation de la landing page */
.navbar {
    backdrop-filter: blur(15px);
    background: rgba(30, 30, 63, 0.9) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-nav .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* Styles pour le footer de la landing page */
footer {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-color);
}

/* Responsive pour la landing page */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-image i {
        font-size: 4rem !important;
    }
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Animation pour les cartes de connexion */
.card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alertes */
.alert {
    border-radius: 8px;
    border: none;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 2px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Invoice line items */
.invoice-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
}

/* Uniformiser la hauteur des champs des lignes facture */
.invoice-item .form-control,
.invoice-item .form-select {
    height: 42px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* Alignement vertical du champ Description (form-control-sm dans invoices.php) */
.invoice-item .form-control-sm.product-description {
    padding-top: 0.5rem;
}

.invoice-item .input-group .btn {
    height: 42px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* Corrige un léger décalage vertical des libellés */
.invoice-item .form-label { margin-bottom: 0.25rem; }

.invoice-item:last-child {
    border-bottom: none;
}

/* Status badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    /* Forcer la visibilité du texte pour tous les badges */
    -webkit-text-fill-color: unset !important;
    color: inherit !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Règles spécifiques pour les badges de statut Bootstrap */
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-dark {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 20px;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--text-muted), #52525b) !important;
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24) !important;
    color: white !important;
    box-shadow: 0 2px 8px 0 rgba(245, 158, 11, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #34d399) !important;
    color: white !important;
    box-shadow: 0 2px 8px 0 rgba(16, 185, 129, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171) !important;
    color: white !important;
    box-shadow: 0 2px 8px 0 rgba(239, 68, 68, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.3);
}

/* Sidebar (si nécessaire) */
.sidebar {
    background: white;
    border-right: 1px solid #dee2e6;
    min-height: 100vh;
}

.sidebar .nav-link {
    color: var(--secondary-color);
    border-radius: 8px;
    margin: 0.2rem 0;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Améliorations générales */
.container-fluid {
    padding: 2rem;
}

main {
    min-height: calc(100vh - 80px);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Amélioration des icônes */
.fas, .far, .fab {
    color: var(--text-secondary);
}

.btn .fas, .btn .far, .btn .fab {
    color: inherit;
}

/* Amélioration des liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Amélioration des alertes */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-success::before {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-danger::before {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-warning::before {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    color: var(--info-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.alert-info::before {
    background: linear-gradient(135deg, var(--info-color), #22d3ee);
} 

/* Styles pour la landing page - Design Ghost-IA */
.hero-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 120px 0 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.35rem; /* assure un espace avant le label */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding-top: 0;
    margin-top: -12rem;
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-top: -8rem;
    position: relative;
    z-index: 10;
}

.hero-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Sections */
.info-section,
.form-section,
.preorder-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Info Section */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Form Section */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group .form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
}

.form-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Preorder Section */
.preorder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.offer-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.price-info {
    margin-bottom: 2rem;
}

.price-old {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-savings {
    font-size: 1rem;
    color: #28a745;
    font-weight: 600;
}

.offer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.places-left {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.preorder-form h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-content p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        align-self: center;
    }
    
    .preorder-card .row {
        flex-direction: column;
    }
    
    .offer-details {
        margin-bottom: 2rem;
    }
} 

/* Correction ultime users.php : fond sombre forcé sur les cellules */
.users-page .table td,
.users-page .table th {
    background: #1e1e3f !important; /* même couleur que .card */
    color: #fff !important;
}

/* Styles pour products.php - correction de la visibilité du texte */
.products-page .table tbody tr td,
.products-page .table tbody tr td *,
.products-page .table tbody tr td strong,
.products-page .table tbody tr td span,
.products-page .table tbody tr td div,
.products-page .table tbody tr td p {
    color: #ffffff !important;
}

.products-page .table tbody tr td .text-muted {
    color: #adb5bd !important;
}

.products-page .table tbody tr td .btn {
    color: inherit !important;
}

/* Styles pour les boutons dans le tableau products */
.products-page .table .btn-group .btn {
    color: var(--text-primary) !important;
}

.products-page .table .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.products-page .table .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.products-page .table .btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Correction ultime products.php : fond sombre forcé sur les cellules */
.products-page .table td,
.products-page .table th {
    background: #1e1e3f !important; /* même couleur que .card */
    color: #fff !important;
}

/* Allègement du formulaire d'édition des contacts */
.contacts-page .form-label {
    font-weight: 600;
}

.contacts-page .form-control,
.contacts-page .form-select,
.contacts-page textarea.form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

/* Assombrir les selects désactivés uniquement sur la page contacts */
.contacts-page .form-select:disabled {
    background-color: #2a2a4a !important; /* fond plus foncé pour le thème sombre */
    color: #e6e6f0 !important;
    border-color: rgba(255,255,255,0.15) !important;
    opacity: 1; /* garder lisible */
}

.contacts-page .mb-3 {
    margin-bottom: 0.75rem !important;
}

.contacts-page .row {
    row-gap: 0.5rem;
}

/* Sur grands écrans, limiter la largeur du formulaire pour respirer */
@media (min-width: 992px) {
    .contacts-page form {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Sur mobile, empiler proprement avec des espacements réduits */
@media (max-width: 576px) {
    .contacts-page .form-control,
    .contacts-page .form-select {
        font-size: 0.95rem;
    }
    .contacts-page .mb-3 {
        margin-bottom: 0.6rem !important;
    }
}

/* Styles pour les champs désactivés dans les factures */
.invoice-item input[type="text"]:disabled {
    background-color: var(--bg-secondary) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.invoice-item input[type="text"]:disabled::placeholder {
    color: var(--text-muted) !important;
}

/* Styles généraux pour les champs désactivés */
.form-control:disabled {
    background-color: var(--bg-secondary) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--border-color) !important;
}

.form-control:disabled::placeholder {
    color: var(--text-muted) !important;
}

/* Styles pour la page clients - Correction de la visibilité du texte */
.clients-page .table td,
.clients-page .table th,
.clients-page .card-body,
.clients-page .card-title,
.clients-page .card-text,
.clients-page .form-control,
.clients-page .form-label,
.clients-page .btn,
.clients-page .text-muted,
.clients-page .h3,
.clients-page .h4,
.clients-page .h5,
.clients-page .h6,
.clients-page p,
.clients-page span,
.clients-page div,
.clients-page strong,
.clients-page a {
    color: var(--text-primary) !important;
}

.clients-page .table td,
.clients-page .table th,
.clients-page .card-body,
.clients-page .form-control {
    background-color: var(--bg-primary) !important;
}

.clients-page .table {
    background-color: var(--bg-primary) !important;
}

.clients-page .table td,
.clients-page .table th {
    border-color: var(--border-color) !important;
}

.clients-page .card {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

.clients-page .form-control {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.clients-page .form-control:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

/* Styles pour la page factures - Correction de la visibilité du texte */
.invoices-page .table td,
.invoices-page .table th,
.invoices-page .card-body,
.invoices-page .card-title,
.invoices-page .card-text,
.invoices-page .form-control,
.invoices-page .form-label,
.invoices-page .btn,
.invoices-page .text-muted,
.invoices-page .h3,
.invoices-page .h4,
.invoices-page .h5,
.invoices-page .h6,
.invoices-page p,
.invoices-page span,
.invoices-page div,
.invoices-page strong,
.invoices-page a {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

.invoices-page .table {
    background-color: var(--bg-primary) !important;
}

.invoices-page .table td,
.invoices-page .table th {
    border-color: var(--border-color) !important;
}

.invoices-page .card {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

.invoices-page .form-control {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    border-width: 2px !important;
    border-style: solid !important;
}

.invoices-page .form-control:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

.invoices-page .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    border-width: 2px !important;
    border-style: solid !important;
}

.invoices-page .form-select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

.invoices-page .form-label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.invoices-page textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Styles spécifiques pour le tableau des factures récentes dans le dashboard */
.card .table {
    color: var(--text-primary) !important;
}

.card .table thead th {
    color: var(--text-primary) !important;
    background: var(--bg-card-hover) !important;
    border-bottom-color: var(--border-color) !important;
}

.card .table tbody tr {
    background: transparent !important;
}

.card .table tbody tr:hover {
    background: var(--bg-card-hover) !important;
}

.card .table tbody tr td {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.card .table tbody td a { 
    color: var(--text-accent) !important; 
    text-decoration: none;
}

.card .table tbody td a:hover { 
    color: var(--primary-light) !important; 
    text-decoration: underline;
}

.card .table tbody td .badge { 
    color: var(--text-primary) !important; 
}

/* Règles plus spécifiques et plus fortes pour les tableaux dans les cartes */
.card .table,
.card .table-responsive .table {
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

.card .table thead th,
.card .table-responsive .table thead th {
    color: var(--text-primary) !important;
    background-color: var(--bg-card-hover) !important;
    border-bottom-color: var(--border-color) !important;
    border-top-color: var(--border-color) !important;
    border-left-color: var(--border-color) !important;
    border-right-color: var(--border-color) !important;
}

.card .table tbody tr,
.card .table-responsive .table tbody tr {
    background-color: transparent !important;
}

.card .table tbody tr:hover,
.card .table-responsive .table tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
}

.card .table tbody tr td,
.card .table-responsive .table tbody tr td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-color: var(--border-color) !important;
}

.card .table tbody tr td a,
.card .table-responsive .table tbody tr td a {
    color: var(--text-accent) !important;
    text-decoration: none;
}

.card .table tbody tr td a:hover,
.card .table-responsive .table tbody tr td a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.card .table tbody tr td .badge,
.card .table-responsive .table tbody tr td .badge {
    color: var(--text-primary) !important;
}

/* Règles spécifiques pour les badges dans les tableaux */
.card .table .badge.bg-success,
.card .table-responsive .table .badge.bg-success {
    color: #ffffff !important;
    background-color: var(--success-color) !important;
}

.card .table .badge.bg-danger,
.card .table-responsive .table .badge.bg-danger {
    color: #ffffff !important;
    background-color: var(--danger-color) !important;
}

.card .table .badge.bg-warning,
.card .table-responsive .table .badge.bg-warning {
    color: #ffffff !important;
    background-color: var(--warning-color) !important;
}

.card .table .badge.bg-info,
.card .table-responsive .table .badge.bg-info {
    color: #ffffff !important;
    background-color: var(--info-color) !important;
}

.card .table .badge.bg-secondary,
.card .table-responsive .table .badge.bg-secondary {
    color: #ffffff !important;
    background-color: var(--secondary-color) !important;
}

/* Règles pour s'assurer que tous les éléments de texte sont visibles */
.card .table *,
.card .table-responsive .table * {
    color: inherit !important;
}

.card .table strong,
.card .table-responsive .table strong {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.card .table .text-muted,
.card .table-responsive .table .text-muted {
    color: var(--text-secondary) !important;
}

/* Styles spécifiques pour le dashboard */
.dashboard-page .card .table,
.dashboard-page .card .table-responsive .table {
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

.dashboard-page .card .table thead th,
.dashboard-page .card .table-responsive .table thead th {
    color: var(--text-primary) !important;
    background-color: var(--bg-card-hover) !important;
    border-bottom-color: var(--border-color) !important;
    border-top-color: var(--border-color) !important;
    border-left-color: var(--border-color) !important;
    border-right-color: var(--border-color) !important;
}

.dashboard-page .card .table tbody tr,
.dashboard-page .card .table-responsive .table tbody tr {
    background-color: transparent !important;
}

.dashboard-page .card .table tbody tr:hover,
.dashboard-page .card .table-responsive .table tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
}

.dashboard-page .card .table tbody tr td,
.dashboard-page .card .table-responsive .table tbody tr td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-color: var(--border-color) !important;
}

.dashboard-page .card .table tbody tr td a,
.dashboard-page .card .table-responsive .table tbody tr td a {
    color: var(--text-accent) !important;
    text-decoration: none;
}

.dashboard-page .card .table tbody tr td a:hover,
.dashboard-page .card .table-responsive .table tbody tr td a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.dashboard-page .card .table tbody tr td .badge,
.dashboard-page .card .table-responsive .table tbody tr td .badge {
    color: var(--text-primary) !important;
}

/* Règles spécifiques pour les badges dans les tableaux du dashboard */
.dashboard-page .card .table .badge.bg-success,
.dashboard-page .card .table-responsive .table .badge.bg-success {
    color: #ffffff !important;
    background-color: var(--success-color) !important;
}

.dashboard-page .card .table .badge.bg-danger,
.dashboard-page .card .table-responsive .table .badge.bg-danger {
    color: #ffffff !important;
    background-color: var(--danger-color) !important;
}

.dashboard-page .card .table .badge.bg-warning,
.dashboard-page .card .table-responsive .table .badge.bg-warning {
    color: #ffffff !important;
    background-color: var(--warning-color) !important;
}

.dashboard-page .card .table .badge.bg-info,
.dashboard-page .card .table-responsive .table .badge.bg-info {
    color: #ffffff !important;
    background-color: var(--info-color) !important;
}

.dashboard-page .card .table .badge.bg-secondary,
.dashboard-page .card .table-responsive .table .badge.bg-secondary {
    color: #ffffff !important;
    background-color: var(--secondary-color) !important;
}

/* Règles pour s'assurer que tous les éléments de texte sont visibles dans le dashboard */
.dashboard-page .card .table *,
.dashboard-page .card .table-responsive .table * {
    color: inherit !important;
}

.dashboard-page .card .table strong,
.dashboard-page .card .table-responsive .table strong {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.dashboard-page .card .table .text-muted,
.dashboard-page .card .table-responsive .table .text-muted {
    color: var(--text-secondary) !important;
}

/* Styles ultra-spécifiques pour le tableau des factures récentes */
.dashboard-page .card .table tbody tr td,
.dashboard-page .card .table-responsive .table tbody tr td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-color: var(--border-color) !important;
}

.dashboard-page .card .table tbody tr td *,
.dashboard-page .card .table-responsive .table tbody tr td * {
    color: var(--text-primary) !important;
}

.dashboard-page .card .table tbody tr td a,
.dashboard-page .card .table-responsive .table tbody tr td a {
    color: var(--text-accent) !important;
    text-decoration: none;
}

.dashboard-page .card .table tbody tr td a:hover,
.dashboard-page .card .table-responsive .table tbody tr td a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.dashboard-page .card .table tbody tr td .badge,
.dashboard-page .card .table-responsive .table tbody tr td .badge {
    color: #ffffff !important;
}

/* Forcer la visibilité des badges avec des couleurs spécifiques */
.dashboard-page .card .table .badge.bg-success {
    color: #ffffff !important;
    background-color: var(--success-color) !important;
}

.dashboard-page .card .table .badge.bg-danger {
    color: #ffffff !important;
    background-color: var(--danger-color) !important;
}

.dashboard-page .card .table .badge.bg-warning {
    color: #ffffff !important;
    background-color: var(--warning-color) !important;
}

.dashboard-page .card .table .badge.bg-info {
    color: #ffffff !important;
    background-color: var(--info-color) !important;
}

.dashboard-page .card .table .badge.bg-secondary {
    color: #ffffff !important;
    background-color: var(--secondary-color) !important;
}

/* Styles pour s'assurer que le texte est visible même avec Bootstrap */
.dashboard-page .card .table,
.dashboard-page .card .table-responsive .table {
    color: var(--text-primary) !important;
}

.dashboard-page .card .table thead th {
    color: var(--text-primary) !important;
    background-color: var(--bg-card-hover) !important;
}

.dashboard-page .card .table tbody tr {
    background-color: transparent !important;
}

.dashboard-page .card .table tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
}

.dashboard-page .card .table tbody tr td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

/* Styles ultra-spécifiques pour forcer la visibilité du texte dans le tableau du dashboard */
.dashboard-page .card .table tbody tr td,
.dashboard-page .card .table-responsive .table tbody tr td,
.dashboard-page .card .table tbody tr td strong,
.dashboard-page .card .table tbody tr td span,
.dashboard-page .card .table tbody tr td div,
.dashboard-page .card .table tbody tr td p {
    color: #ffffff !important;
}

.dashboard-page .card .table tbody tr td .text-muted {
    color: #adb5bd !important;
}

.dashboard-page .card .table tbody tr td .btn {
    color: inherit !important;
}

/* Styles pour les badges dans dashboard.php */
.dashboard-page .table .badge {
    color: white !important;
}

.dashboard-page .table .badge.bg-success {
    background-color: #28a745 !important;
}

.dashboard-page .table .badge.bg-danger {
    background-color: #dc3545 !important;
}

.dashboard-page .table .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.dashboard-page .table .badge.bg-info {
    background-color: #17a2b8 !important;
}

.dashboard-page .table .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Styles pour les liens dans le tableau */
.dashboard-page .card .table tbody tr td a {
    color: #0d6efd !important;
}

.dashboard-page .card .table tbody tr td a:hover {
    color: #0a58ca !important;
}

/* Styles pour les en-têtes du tableau */
.dashboard-page .card .table thead th {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Styles pour les lignes du tableau */
.dashboard-page .card .table tbody tr {
    background-color: transparent !important;
}

.dashboard-page .card .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Styles pour la section tarifs */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    pointer-events: none;
}

.pricing-section .section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Bannière offre de lancement */
.launch-offer-banner {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.launch-offer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    pointer-events: none;
}

.launch-offer-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.launch-badge i {
    color: #fbbf24;
}

.launch-price {
    margin-bottom: 1rem;
}

.launch-price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.launch-price-details {
    font-size: 1.1rem;
    opacity: 0.9;
}

.launch-limit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.launch-limit i {
    color: #fbbf24;
}

/* Tableau des tarifs */
.pricing-table {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Règles renforcées pour le tableau des tarifs */
.pricing-table .table,
.pricing-table table {
    margin-bottom: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
}

.pricing-table .table thead th,
.pricing-table table thead th {
    background: #16213e !important;
    border-bottom: 2px solid #2d2d5a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 1rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.pricing-table .table thead th:first-child,
.pricing-table table thead th:first-child {
    text-align: left !important;
}

.pricing-table .table tbody td,
.pricing-table table tbody td {
    border-bottom: 1px solid #3a3a6a !important;
    padding: 1rem 0.75rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #ffffff !important;
    background: transparent !important;
}

.pricing-table .table tbody td:first-child,
.pricing-table table tbody td:first-child {
    text-align: left !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.pricing-table .table tbody tr,
.pricing-table table tbody tr {
    background: transparent !important;
}

.pricing-table .table tbody tr:hover,
.pricing-table table tbody tr:hover {
    background: #2a2a4a !important;
}

.pricing-table .table tbody tr.premium-row,
.pricing-table table tbody tr.premium-row {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%) !important;
    border-left: 4px solid #6366f1 !important;
}

.pricing-table .table tbody tr.premium-row:hover,
.pricing-table table tbody tr.premium-row:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%) !important;
}

.pricing-table .price,
.pricing-table .table .price,
.pricing-table table .price {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
}

.pricing-table .table tbody td i.fa-check,
.pricing-table table tbody td i.fa-check {
    color: #10b981 !important;
    font-size: 1.1rem !important;
}

.pricing-table .table tbody td i.fa-times,
.pricing-table table tbody td i.fa-times {
    color: #71717a !important;
    font-size: 1.1rem !important;
}

/* Note de tarification */
.pricing-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-note i {
    color: var(--info-color);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .launch-offer-banner {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .launch-price-amount {
        font-size: 2rem;
    }
    
    .launch-price-details {
        font-size: 1rem;
    }
    
    .pricing-table {
        padding: 1rem;
    }
    
    .pricing-table .table,
    .pricing-table table {
        font-size: 0.8rem;
    }
    
    .pricing-table .table thead th,
    .pricing-table table thead th {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem !important;
    }
    
    .pricing-table .table tbody td,
    .pricing-table table tbody td {
        padding: 0.5rem 0.25rem !important;
    }
    
    .pricing-table .price,
    .pricing-table .table .price,
    .pricing-table table .price {
        font-size: 1rem !important;
    }
}

/* Styles spécifiques pour la page offre-lancement */
.hero-offer-section {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
    position: relative;
}

.hero-offer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    pointer-events: none;
}

.hero-offer-content {
    position: relative;
    z-index: 2;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-offer-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.offer-price {
    margin-bottom: 3rem;
}

.price-old {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-new {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-savings {
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 600;
}

.offer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.offer-limit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--warning-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Section Explication avec plus d'espacement */
.explanation-section {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.explanation-section .section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.explanation-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.explanation-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.explanation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.explanation-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.explanation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--border-light);
}

.explanation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.explanation-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.explanation-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

/* Section Comparaison avec plus d'espacement */
.comparison-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.comparison-section .section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.comparison-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.comparison-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.comparison-table {
    margin-top: 4rem;
}

/* Section Commande avec plus d'espacement */
.order-section {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.order-section .section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.order-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.order-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

.order-summary {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.order-summary h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--text-primary);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    font-size: 1.2rem;
}

.order-form {
    margin-top: 2rem;
}

.order-form .form-group {
    margin-bottom: 2rem;
}

.order-form .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.order-form .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.order-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    background: var(--bg-tertiary);
}

.order-form .form-check-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.order-form .form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.order-form .form-check-label a:hover {
    text-decoration: underline;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.security-note i {
    color: var(--success-color);
}

/* Responsive pour les sections */
@media (max-width: 768px) {
    .hero-offer-title {
        font-size: 2.5rem;
    }
    
    .price-new {
        font-size: 2.5rem;
    }
    
    .offer-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .explanation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .explanation-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .explanation-section .section-header h2,
    .comparison-section .section-header h2,
    .order-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .order-card {
        padding: 2rem;
    }
    
    /* Styles responsifs pour les boutons du dashboard */
    .dashboard-page .card .d-grid .btn {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .dashboard-page .card .d-grid {
        gap: 0.5rem !important;
    }
}

.offer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Nouvelle grille de fonctionnalités avec cartes */
.offer-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--border-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Styles pour les factures récentes dans le dashboard */
.recent-invoices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.invoice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invoice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.invoice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.invoice-card:hover::before {
    transform: scaleX(1);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.invoice-number a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.invoice-number a:hover {
    color: #667eea;
}

.invoice-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-sent {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0);
    color: white;
}

.status-overdue {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.status-draft {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

.invoice-content {
    margin-bottom: 1rem;
}

.invoice-client {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.invoice-client i {
    color: #667eea;
    margin-right: 0.5rem;
}

.invoice-amount {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.amount-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.invoice-date {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.invoice-date i {
    color: #6c757d;
    margin-right: 0.5rem;
}

.invoice-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.invoice-actions .btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.invoice-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* État vide pour les factures récentes */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.empty-state .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive pour les factures récentes */
@media (max-width: 768px) {
    .recent-invoices-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .invoice-card {
        padding: 1rem;
    }
    
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .invoice-actions {
        flex-direction: column;
    }
    
    .invoice-actions .btn {
        width: 100%;
    }
    
    .amount-value {
        font-size: 1.1rem;
    }
}

/* Styles pour les factures de rappel */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Indication visuelle pour les factures en retard */
.text-warning {
    color: #ffc107 !important;
}

/* Animation pour le bouton de rappel */
.btn-warning .fas {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Style pour les factures de rappel dans la liste */
.reminder-indicator {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: #856404;
}

/* Styles pour les badges de type produit/service */
.product-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-type-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.product-type-badge:hover::before {
    left: 100%;
}

.product-type-badge.product {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.product-type-badge.product:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.product-type-badge.service {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.product-type-badge.service:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Styles pour les cartes de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    opacity: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.product-details {
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 0 8px rgba(107, 114, 128, 0.4);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.product-actions .btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive pour les cartes de produits */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-title {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .product-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .product-actions {
    justify-content: center;
}

/* Styles spécifiques pour les boutons d'actions des produits */
.product-actions .btn.btn-outline-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

.product-actions .btn.btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
}

.product-actions .btn.btn-outline-primary {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.product-actions .btn.btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #6366f1;
}

.product-actions .btn.btn-outline-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.product-actions .btn.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}
}

/* Styles pour la modale de paiement */
.payment-modal .modal-content {
    background: linear-gradient(135deg, var(--bg-card), #1a1a2e);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.payment-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0.8;
}

.payment-modal .modal-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    position: relative;
}

.payment-modal .modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-modal .modal-title::before {
    content: '💳';
    font-size: 1.8rem;
}

.payment-modal .btn-close {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.payment-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.payment-modal .modal-body {
    padding: 2rem;
    background: var(--bg-card);
}

.payment-modal .alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-modal .alert-info strong {
    color: #3b82f6;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.payment-modal .form-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.payment-modal .form-control,
.payment-modal .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-modal .form-control:focus,
.payment-modal .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.payment-modal .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.payment-modal .input-group-text {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #10b981;
    color: white;
    font-weight: 600;
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 1rem;
}

.payment-modal .input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.payment-modal .input-group .form-control:focus {
    border-right: none;
}

.payment-modal textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.payment-modal .modal-footer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.payment-modal .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-modal .btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border-color: #6b7280;
}

.payment-modal .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.payment-modal .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.payment-modal .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.payment-modal .btn-success:active {
    transform: translateY(0);
}

/* Animation d'entrée pour la modale */
.payment-modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.payment-modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Styles pour les informations de facture */
.payment-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.payment-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.payment-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-info-value.amount {
    color: #10b981;
}

.payment-info-value.remaining {
    color: #f59e0b;
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .payment-modal .modal-dialog {
        margin: 1rem;
    }
    
    .payment-modal .modal-body {
        padding: 1.5rem;
    }
    
    .payment-modal .modal-header,
    .payment-modal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .payment-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .payment-modal .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .payment-modal .modal-footer {
        flex-direction: column;
    }
}

/* Styles pour des icônes discrètes sans fond de couleur */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.action-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-buttons .btn .fas {
    font-size: 0.9rem;
}

/* Styles spécifiques pour les différents types de boutons d'actions */
.action-buttons .btn.btn-primary {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.action-buttons .btn.btn-primary:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
    color: #a5b4fc;
}

.action-buttons .btn.btn-info {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

.action-buttons .btn.btn-info:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.6);
    color: #67e8f9;
}

.action-buttons .btn.btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.4);
    color: #d1d5db;
}

.action-buttons .btn.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.6);
    color: #e5e7eb;
}

.action-buttons .btn.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.action-buttons .btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

/* Styles pour les boutons de changement de statut */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Styles pour harmoniser l'affichage du tableau avec le thème sombre */
.table {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.table thead th {
    background-color: #34495e;
    border-color: #34495e;
    color: #ecf0f1;
}

.table tbody tr {
    background-color: #2c3e50;
    border-color: #34495e;
}

.table tbody tr:hover {
    background-color: #34495e;
}

.table tfoot tr {
    background-color: #34495e;
    border-color: #34495e;
}

.table tfoot tr.table-active {
    background-color: #2980b9;
    border-color: #2980b9;
}

.table td,
.table th {
    border-color: #34495e;
    color: #ecf0f1;
}

.table tfoot td {
    color: #ecf0f1;
}

/* Styles spécifiques pour les lignes vides et le total */
.table tbody tr:nth-child(even) {
    background-color: #34495e;
}

.table tbody tr:nth-child(odd) {
    background-color: #2c3e50;
}

.table tfoot tr {
    background-color: #34495e !important;
}

.table tfoot tr.table-active {
    background-color: #2980b9 !important;
}

/* Styles pour s'assurer que tous les éléments du tableau sont lisibles */
.table-responsive .table {
    background-color: #2c3e50 !important;
}

.table-responsive .table td,
.table-responsive .table th {
    background-color: inherit !important;
    color: #ecf0f1 !important;
}

.table-responsive .table tbody tr {
    background-color: #2c3e50 !important;
}

.table-responsive .table tbody tr:nth-child(even) {
    background-color: #34495e !important;
}

.table-responsive .table tbody tr:nth-child(odd) {
    background-color: #2c3e50 !important;
}

.table-responsive .table tfoot tr {
    background-color: #34495e !important;
}

.table-responsive .table tfoot tr.table-active {
    background-color: #2980b9 !important;
}

/* Styles pour la progression des étapes */
.step-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.step-item .fas {
    font-size: 0.8rem;
    margin-right: 5px;
}

.step-item .step-label {
    margin-left: 5px;
}

.step-item.completed-step {
    color: #28a745; /* Green */
}

.step-item.current-step {
    color: #ffc107; /* Yellow */
    font-weight: bold;
}

.step-item.next-step {
    color: #007bff; /* Blue */
    font-weight: bold;
}

.step-item.future-step {
    color: #6c757d; /* Gray */
}

.step-item .badge {
    font-size: 0.75rem;
}

/* Style pour la boîte d'information de facture de rappel */
.reminder-info-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reminder-info-box:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.08));
    border-color: rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.reminder-info-box i {
    color: #0d6efd;
    font-size: 16px;
    margin-right: 8px;
}

/* Styles pour les cartes de devis dans le dashboard */
.recent-devis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.devis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.devis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.devis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.devis-card:hover::before {
    opacity: 1;
}

.devis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.devis-number a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.devis-number a:hover {
    color: var(--primary-color);
}

.devis-status {
    display: flex;
    align-items: center;
}

.devis-content {
    margin-bottom: 1rem;
}

.devis-client {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.devis-client i {
    color: var(--info-color);
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.devis-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.devis-date {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.devis-date i {
    margin-right: 0.5rem;
    color: var(--warning-color);
}

.devis-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.devis-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.devis-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Styles pour les tableaux de prospects dans le dashboard */
.dashboard-page .table {
    background: transparent;
    border: none;
}

.dashboard-page .table thead th {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-page .table tbody tr {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-page .table tbody tr:hover {
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.dashboard-page .table tbody td {
    padding: 0.75rem;
    color: var(--text-primary);
    border: none;
    vertical-align: middle;
}

.dashboard-page .table tbody td a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dashboard-page .table tbody td a:hover {
    color: var(--primary-color);
}

.dashboard-page .table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-page .table .badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.dashboard-page .table .badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #059669) !important;
}

.dashboard-page .table .badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706) !important;
}

.dashboard-page .table .badge.bg-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2) !important;
}

.dashboard-page .table .badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
}

.dashboard-page .table .badge.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569) !important;
}

/* Responsive pour les cartes de devis */
@media (max-width: 768px) {
    .recent-devis-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .devis-card {
        padding: 1rem;
    }
    
    .devis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .devis-actions {
        justify-content: center;
    }
    
    .devis-actions .btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Styles pour les actions rapides mises à jour */
.dashboard-page .card .d-grid .btn {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-page .card .d-grid .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-page .card .d-grid .btn:hover::before {
    left: 100%;
}

.dashboard-page .card .d-grid .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.dashboard-page .card .d-grid .btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

.dashboard-page .card .d-grid .btn.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-color: var(--success-color);
}

.dashboard-page .card .d-grid .btn.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
    border-color: var(--info-color);
}

.dashboard-page .card .d-grid .btn.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    border-color: var(--warning-color);
}

.dashboard-page .card .d-grid .btn.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    border-color: var(--secondary-color);
}

.dashboard-page .card .d-grid .btn.btn-dark {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-color: #374151;
}

/* Quick Actions Grid - Design amélioré */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.quick-action-btn span {
    font-size: 0.9rem;
}

/* Couleurs spécifiques pour les boutons d'action rapide */
.quick-action-btn.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.quick-action-btn.btn-success {
    background: linear-gradient(135deg, #198754, #157347);
}

.quick-action-btn.btn-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.quick-action-btn.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.quick-action-btn.btn-dark {
    background: linear-gradient(135deg, #212529, #1a1d20);
}

/* Stats Grid pour les statistiques avancées */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.stat-item .stat-icon.stat-success {
    background: linear-gradient(135deg, #198754, #157347);
}

.stat-item .stat-icon.stat-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
}

.stat-item .stat-icon.stat-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.stat-item .stat-icon.stat-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-item .stat-content {
    flex: 1;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive pour les actions rapides et stats */
@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .quick-action-btn i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .quick-action-btn span {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 1.3rem;
    }
}

/* Style pour la boîte d'information de facture de rappel */
.reminder-info-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reminder-info-box:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.08));
    border-color: rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.reminder-info-box i {
    color: #0d6efd;
    font-size: 16px;
    margin-right: 8px;
}

/* Styles pour les cartes de devis dans le dashboard */
.recent-devis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.devis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.devis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.devis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.devis-card:hover::before {
    opacity: 1;
}

.devis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.devis-number a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.devis-number a:hover {
    color: var(--primary-color);
}

.devis-status {
    display: flex;
    align-items: center;
}

.devis-content {
    margin-bottom: 1rem;
}

.devis-client {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.devis-client i {
    color: var(--info-color);
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.devis-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.devis-date {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.devis-date i {
    margin-right: 0.5rem;
    color: var(--warning-color);
}

.devis-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.devis-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.devis-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Styles pour les tableaux de prospects dans le dashboard */
.dashboard-page .table {
    background: transparent;
    border: none;
}

.dashboard-page .table thead th {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-page .table tbody tr {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-page .table tbody tr:hover {
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.dashboard-page .table tbody td {
    padding: 0.75rem;
    color: var(--text-primary);
    border: none;
    vertical-align: middle;
}

.dashboard-page .table tbody td a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dashboard-page .table tbody td a:hover {
    color: var(--primary-color);
}

.dashboard-page .table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-page .table .badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.dashboard-page .table .badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #059669) !important;
}

.dashboard-page .table .badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706) !important;
}

.dashboard-page .table .badge.bg-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2) !important;
}

.dashboard-page .table .badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
}

.dashboard-page .table .badge.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569) !important;
}

/* Responsive pour les cartes de devis */
@media (max-width: 768px) {
    .recent-devis-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .devis-card {
        padding: 1rem;
    }
    
    .devis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .devis-actions {
        justify-content: center;
    }
    
    .devis-actions .btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Styles pour les actions rapides mises à jour */
.dashboard-page .card .d-grid .btn {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-page .card .d-grid .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-page .card .d-grid .btn:hover::before {
    left: 100%;
}

.dashboard-page .card .d-grid .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.dashboard-page .card .d-grid .btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

.dashboard-page .card .d-grid .btn.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-color: var(--success-color);
}

.dashboard-page .card .d-grid .btn.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
    border-color: var(--info-color);
}

.dashboard-page .card .d-grid .btn.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    border-color: var(--warning-color);
}

.dashboard-page .card .d-grid .btn.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    border-color: var(--secondary-color);
}

.dashboard-page .card .d-grid .btn.btn-dark {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-color: #374151;
}

/* Quick Actions Grid - Design amélioré */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.quick-action-btn span {
    font-size: 0.9rem;
}

/* Couleurs spécifiques pour les boutons d'action rapide */
.quick-action-btn.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.quick-action-btn.btn-success {
    background: linear-gradient(135deg, #198754, #157347);
}

.quick-action-btn.btn-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.quick-action-btn.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.quick-action-btn.btn-dark {
    background: linear-gradient(135deg, #212529, #1a1d20);
}

/* Stats Grid pour les statistiques avancées */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.stat-item .stat-icon.stat-success {
    background: linear-gradient(135deg, #198754, #157347);
}

.stat-item .stat-icon.stat-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
}

.stat-item .stat-icon.stat-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.stat-item .stat-icon.stat-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-item .stat-content {
    flex: 1;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive pour les actions rapides et stats */
@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .quick-action-btn i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .quick-action-btn span {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 1.3rem;
    }
}

/* Style pour la boîte d'information de facture de rappel */
.reminder-info-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reminder-info-box:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.08));
    border-color: rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.reminder-info-box i {
    color: #0d6efd;
    font-size: 16px;
    margin-right: 8px;
}

/* Style pour les pages clients */
.clients-page a {
    color: var(--text-primary) !important;
}

.clients-page .table td,
.clients-page .table th,
.clients-page .card-body,
.clients-page .form-control {
    background-color: var(--bg-primary) !important;
}

/* Timeline des étapes de facture - Version discrète */
.timeline {
    position: relative;
}

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    text-align: center;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    border: 2px solid #e9ecef;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-marker.bg-light {
    background-color: #f8f9fa;
    color: #6c757d;
}

.timeline-marker .step-number {
    font-size: 1rem;
    font-weight: bold;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.timeline-line.completed {
    background-color: #28a745;
}

.timeline-content {
    max-width: 150px;
}

.timeline-title {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.timeline-description {
    font-size: 0.75rem;
}

.timeline-item.current .timeline-title {
    font-weight: bold;
}

.timeline-item.completed .timeline-marker {
    border-color: #28a745;
}

/* Correction du badge "Actuel" pour une meilleure lisibilité */
.badge-current {
    background-color: #007bff !important;
    color: white !important;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    /* Forcer la visibilité du texte */
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

.timeline-item.current .timeline-title .badge {
    background-color: #007bff !important;
    color: white !important;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Règle supplémentaire pour s'assurer que le badge "Actuel" est toujours lisible */
.timeline-item.current .timeline-title .badge-current,
.timeline-item.current .timeline-title .badge.badge-current {
    background-color: #007bff !important;
    color: white !important;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Correction des badges dans l'historique des changements */
.timeline-content-vertical .badge {
    color: white !important;
    font-weight: 600;
}

.timeline-content-vertical .badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.timeline-content-vertical .badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.timeline-content-vertical .badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.timeline-content-vertical .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.timeline-content-vertical .badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.timeline-content-vertical .badge.bg-primary {
    background-color: #007bff !important;
    color: white !important;
}

/* Timeline vertical pour l'historique */
.timeline-vertical {
    position: relative;
    padding-left: 2rem;
}

.timeline-item-vertical {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item-vertical:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    bottom: -1.5rem;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-marker-vertical {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.5rem;
}

.timeline-content-vertical {
    margin-left: 0;
}

/* Actions possibles - Version élégante et moderne */
.action-card {
    border: none;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.action-card:hover::before {
    opacity: 1;
}

.action-card .card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.action-card .fa-3x {
    margin-bottom: 1rem;
    font-size: 2.5rem !important;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.action-card:hover .fa-3x {
    transform: scale(1.1);
    color: var(--primary-color);
}

.action-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.action-card .card-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    flex-grow: 1;
}

.action-card .btn {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.action-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Grille responsive pour les actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Styles spécifiques pour chaque type d'action */
.action-card.action-edit .fa-3x {
    color: var(--primary-color);
}

.action-card.action-validate .fa-3x {
    color: var(--success-color);
}

.action-card.action-send .fa-3x {
    color: var(--info-color);
}

.action-card.action-mark_paid .fa-3x {
    color: var(--success-color);
}

.action-card.action-mark_partially_paid .fa-3x {
    color: var(--warning-color);
}

.action-card.action-cancel .fa-3x {
    color: var(--danger-color);
}

.action-card.action-return_to_draft .fa-3x {
    color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-card .card-body {
        padding: 1.25rem;
    }

    .action-card .fa-3x {
        font-size: 2rem !important;
        margin-bottom: 0.75rem;
    }

    .action-card .card-title {
        font-size: 0.95rem;
    }

    .action-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .action-card .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .action-card .card-body {
        padding: 1rem;
    }

    .action-card .fa-3x {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem;
    }

    .action-card .card-title {
        font-size: 0.9rem;
    }

    .action-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .action-card .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Animation d'entrée pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-card {
    animation: fadeInUp 0.6s ease-out;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }
.action-card:nth-child(5) { animation-delay: 0.5s; }
.action-card:nth-child(6) { animation-delay: 0.6s; }

/* Media queries pour la responsivité du cadre "Conforme Peppol" */
@media (max-width: 768px) {
    .hero-visual {
        margin-top: 0;
        padding-top: 2rem;
        order: -1; /* Place le cadre au-dessus du contenu sur mobile */
    }
    
    .hero-card {
        margin-top: 0;
        padding: 2rem 1.5rem;
        max-width: 100%;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .hero-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
    }
    
    .hero-card h3 {
        font-size: 1.2rem;
    }
}