:root {
    /* Couleurs principales - Thème moderne gradient */
    --primary-color: #6366f1; /* Indigo moderne */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899; /* Rose vibrant */
    --secondary-dark: #db2777;
    --accent-color: #f59e0b; /* Ambre */
    
    /* Backgrounds */
    --dark-bg: #0f172a; /* Slate 900 */
    --dark-bg-secondary: #1e293b; /* Slate 800 */
    --dark-bg-card: #334155; /* Slate 700 */
    --dark-bg-hover: #475569; /* Slate 600 */
    
    /* Texte */
    --text-light: #f1f5f9; /* Slate 100 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-dark: #1e293b;
    
    /* Bordures */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Status colors */
    --success-color: #10b981; /* Emerald */
    --warning-color: #f59e0b; /* Amber */
    --danger-color: #ef4444; /* Red */
    --info-color: #06b6d4; /* Cyan */
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg) !important;
    color: var(--text-light) !important;
    overflow-x: hidden;
}

/* RÈGLE ABSOLUE : TOUS LES TEXTES EN CLAIR */
* {
    color: var(--text-light) !important;
}

/* Force tous les textes à être clairs par défaut */
h1, h2, h3, h4, h5, h6, p, span, div, a, label, li, td, th, strong, em, i:not(.fas):not(.fab):not(.far) {
    color: var(--text-light) !important;
}

/* Boutons - Toujours avec texte clair */
.btn {
    color: #ffffff !important;
}

.btn * {
    color: #ffffff !important;
}

.btn-light {
    background: rgba(51, 65, 85, 0.5) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
}

.btn-light:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
}

.btn-light * {
    color: #ffffff !important;
}

/* Liens dans les boutons */
a.btn, a.btn *, button.btn, button.btn * {
    color: #ffffff !important;
}

/* Badge - Toujours lisible */
.badge {
    color: #ffffff !important;
}

.badge * {
    color: #ffffff !important;
}

.badge.bg-secondary {
    background: rgba(71, 85, 105, 0.8) !important;
    color: #ffffff !important;
}

/* Sauf pour les textes muted */
.text-muted {
    color: var(--text-muted) !important;
}

/* Textes de couleur spécifiques */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

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

.text-white {
    color: #ffffff !important;
}

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

/* Liens */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Correction des textes Bootstrap */
.fw-bold, .fw-semibold {
    color: var(--text-light) !important;
}

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

/* Textes dans les cards */
.card-title {
    color: var(--text-light) !important;
}

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

/* Textes dans les tableaux */
thead th {
    color: var(--text-light) !important;
}

tbody td {
    color: var(--text-light) !important;
}

/* Navbar Styling - Moderne et élégant */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

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

/* Boutons - Design moderne avec gradients */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Flash Messages */
.flash-message-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
}

/* Hero Section - Design ultra moderne */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, 
                rgba(15, 23, 42, 0.98) 0%, 
                rgba(30, 41, 59, 0.95) 50%,
                rgba(51, 65, 85, 0.92) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.15), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 60px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
                var(--primary-light) 0%, 
                var(--primary-color) 50%, 
                var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Service Card - Design moderne avec glassmorphism */
.service-card {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.05) 0%, 
                rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3), 
                0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.service-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.service-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-card-img img {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.4));
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.service-card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--text-light), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.price-tag {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.price-tag small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Section - Design élégant */
.feature-box {
    text-align: center;
    padding: 2.5rem;
    background: rgba(51, 65, 85, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.1) 0%, 
                rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

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

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5), var(--shadow-glow);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(184, 134, 11, 0.1));
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark-bg-secondary) !important;
    border-top: 1px solid var(--border-color);
}

.footer h5, .footer h6 {
    color: var(--text-light);
    font-weight: 600;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #b81d24);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.6);
}

/* Form Styling - Design moderne */
.form-control, .form-select {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-light);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(51, 65, 85, 0.7);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 
                0 4px 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

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

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-check-input {
    background-color: rgba(51, 65, 85, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Card - Design moderne avec glassmorphism */
.card {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.1);
}

.card-header {
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.1) 0%, 
                rgba(236, 72, 153, 0.1) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Cartes avec bordure colorée */
.card.border-primary {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.card.border-success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.card.border-info {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.card.border-warning {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

/* Card avec gradient background */
.bg-gradient {
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table */
.table {
    color: var(--text-light);
}

.table thead th {
    border-color: var(--border-color);
    background: var(--dark-bg-secondary);
    font-weight: 600;
}

.table tbody tr {
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--dark-bg-secondary);
}

/* Badge */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Modal - Design moderne */
.modal-content {
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-light) !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom-color: rgba(99, 102, 241, 0.2);
    color: var(--text-light) !important;
}

.modal-title {
    color: var(--text-light) !important;
}

.modal-body {
    color: var(--text-light) !important;
}

.modal-body p, .modal-body div, .modal-body span {
    color: var(--text-light) !important;
}

.modal-footer {
    border-top-color: rgba(99, 102, 241, 0.2);
}

.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Dropdown - Design moderne */
.dropdown-menu {
    background: rgba(51, 65, 85, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light) !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color) !important;
}

.dropdown-divider {
    border-top-color: rgba(99, 102, 241, 0.2);
    margin: 0.5rem 0;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid var(--border-color);
    border-top-color: var(--primary-color);
}

/* Alert - Design moderne */
.alert {
    border-radius: 15px;
    border: 1px solid transparent;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.alert-info {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}

/* Badge modernisé */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 25px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

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

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

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

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

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

.bg-secondary {
    background: linear-gradient(135deg, var(--dark-bg-card), var(--dark-bg-hover)) !important;
}

/* Table moderne */
.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table thead th {
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.1), 
                rgba(236, 72, 153, 0.1));
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    background: rgba(51, 65, 85, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.border-primary {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Scroll personnalisé */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Corrections globales pour la lisibilité - SANS FOND BLANC */
.list-group-item {
    background: rgba(51, 65, 85, 0.5) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: var(--text-light) !important;
}

.list-group-item:hover {
    background: rgba(99, 102, 241, 0.2) !important;
}

/* Tous les éléments Bootstrap - Fond sombre obligatoire */
.bg-white, .bg-white * {
    background: rgba(30, 41, 59, 0.5) !important;
    color: #ffffff !important;
}

.bg-light, .bg-light * {
    background: rgba(51, 65, 85, 0.5) !important;
    color: #ffffff !important;
}

/* Formulaires - Toujours fond sombre */
input, select, textarea {
    background: rgba(51, 65, 85, 0.5) !important;
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

input::placeholder, select::placeholder, textarea::placeholder {
    color: rgba(148, 163, 184, 0.7) !important;
}

/* Tables - Toujours fond sombre */
table, table * {
    background: transparent !important;
    color: #ffffff !important;
}

thead, thead * {
    color: #ffffff !important;
}

tbody tr {
    background: rgba(51, 65, 85, 0.3) !important;
}

tbody tr:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Cards - Toujours fond sombre */
.card, .card * {
    color: #ffffff !important;
}

.card-header, .card-body, .card-footer {
    color: #ffffff !important;
}

/* Modals - Fond sombre */
.modal-content, .modal-content * {
    background: rgba(30, 41, 59, 0.98) !important;
    color: #ffffff !important;
}

/* Dropdowns - Fond sombre */
.dropdown-menu, .dropdown-menu * {
    background: rgba(51, 65, 85, 0.95) !important;
    color: #ffffff !important;
}

.dropdown-item {
    color: #ffffff !important;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

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

.breadcrumb-item.active {
    color: var(--text-light) !important;
}

.breadcrumb-item a {
    color: var(--primary-light) !important;
}

/* Pagination */
.page-link {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-light) !important;
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light) !important;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

/* Accordions */
.accordion-button {
    background: rgba(51, 65, 85, 0.5);
    color: var(--text-light) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light) !important;
}

.accordion-body {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-light) !important;
}

/* Nav tabs */
.nav-tabs {
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.nav-tabs .nav-link {
    color: var(--text-muted) !important;
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-light) !important;
    border-color: rgba(99, 102, 241, 0.2);
}

.nav-tabs .nav-link.active {
    color: var(--primary-light) !important;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Progress bars */
.progress {
    background: rgba(51, 65, 85, 0.5);
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
