:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --text-color: #212529;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;

    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --topbar-height: 70px;
    --transition-speed: 0.3s;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    --table-bg: var(--bg-card);
    --table-stripe-bg: var(--bg-body);
    --table-hover-bg: var(--bg-hover);
    --table-border: var(--border-color);
    --table-header-bg: var(--bg-body);
    --table-header-color: var(--text-secondary);
    --table-text-color: var(--text-secondary);
    --table-text-primary: var(--text-primary);

    --btnMenu-color: #000000;

    --primary-dark: #1a1a1a;
    --primary-black: #000000;
    --primary-white: #ffffff;
    --primary-gray-100: #f7f7f7;
    --primary-gray-200: #e8e8e8;
    --primary-gray-300: #d4d4d4;
    --primary-gray-400: #a0a0a0;
    --primary-gray-500: #6b6b6b;
    --primary-gray-600: #4a4a4a;
    --primary-gray-700: #2d2d2d;
    --primary-gray-800: #1f1f1f;
    --primary-gray-900: #0f0f0f;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #f8fafc;
    --secondary-color: #cbd5e1;

    --text-color: #e2e8f0;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --bg-color: #0f172a;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --card-bg: #1e293b;
    --bg-hover: #334155;

    --border-color: #334155;

    --sidebar-bg: #020617;
    --sidebar-hover: #1e293b;

    --table-bg: var(--bg-card);
    --table-stripe-bg: #162033;
    --table-hover-bg: var(--bg-hover);
    --table-border: var(--border-color);
    --table-header-bg: #172554;
    --table-header-color: var(--text-primary);
    --table-text-color: var(--text-secondary);
    --table-text-primary: var(--text-primary);

    --btnMenu-color: #ffffff;

    /* Palette */
    --primary-dark: #f8fafc;
    --primary-black: #ffffff;
    --primary-white: #0f172a;

    --primary-gray-100: #1e293b;
    --primary-gray-200: #273449;
    --primary-gray-300: #334155;
    --primary-gray-400: #475569;
    --primary-gray-500: #64748b;
    --primary-gray-600: #94a3b8;
    --primary-gray-700: #cbd5e1;
    --primary-gray-800: #e2e8f0;
    --primary-gray-900: #f8fafc;

    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #2b2b2b 0%, #000000 100%);
    --gradient-success: linear-gradient(135deg, #047857 0%, #10b981 100%);
    --gradient-info: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.6);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--primary-white);
    color: var(--primary-gray-800);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
           NAVBAR AMÉLIORÉE
           ============================================ */
.navbar-custom {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-custom.scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-white) !important;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-custom .navbar-brand i {
    color: #0d6efd;
    margin-right: 10px;
    font-size: 28px;
}

.navbar-custom .navbar-brand span {
    color: #0d6efd;
}

/* Navigation Links */
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px !important;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-custom .nav-link.active {
    color: var(--primary-white) !important;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-custom .nav-link i {
    margin-right: 6px;
}

/* Mega Dropdown */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-width: 700px;
    margin-top: 10px;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.mega-dropdown .dropdown-menu .mega-title {
    color: #0d6efd;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.mega-dropdown .dropdown-menu .mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 14px;
}

.mega-dropdown .dropdown-menu .mega-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-white);
    transform: translateX(5px);
}

.mega-dropdown .dropdown-menu .mega-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #0d6efd;
    font-size: 16px;
    flex-shrink: 0;
}

.mega-dropdown .dropdown-menu .mega-item .desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Boutons */
.navbar-custom .btn-login {
    background: var(--primary-white);
    color: var(--primary-black) !important;
    border-radius: 50px;
    padding: 8px 24px !important;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.navbar-custom .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    background: #0d6efd;
    border-color: #0d6efd;
    color: var(--primary-black) !important;
}

.navbar-custom .btn-register {
    background: transparent;
    color: var(--primary-white) !important;
    border-radius: 50px;
    padding: 8px 24px !important;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-custom .btn-register:hover {
    background: var(--primary-white);
    color: var(--primary-black) !important;
    transform: translateY(-2px);
    border-color: var(--primary-white);
}

/* ============================================
           HERO
           ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(255, 193, 7, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(255, 193, 7, 0.03) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

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

.hero-content h1 {
    font-weight: 900;
    font-size: 52px;
    margin-bottom: 20px;
    color: var(--primary-white);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, #0d6efd 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-content .btn-hero {
    background: #0d6efd;
    color: var(--primary-white);
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-content .btn-hero:hover {
    background: transparent;
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.25);
}

.hero-content .btn-hero-outline {
    background: transparent;
    color: var(--primary-white);
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-content .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-white);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .number {
    font-size: 28px;
    font-weight: 700;
    color: #0d6efd;
}

.hero-stats .stat .label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ============================================
           FEATURES
           ============================================ */
.section-features {
    padding: 80px 0;
    background: var(--primary-white);
}

.section-features .section-title {
    font-weight: 800;
    font-size: 38px;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.section-features .section-title .highlight {
    color: #0d6efd;
}

.section-features .section-subtitle {
    color: var(--primary-gray-500);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.feature-card {
    background: var(--primary-white);
    border: 1px solid var(--primary-gray-200);
    border-radius: 16px;
    padding: 30px 25px;
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #0d6efd;
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--primary-black);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: #0d6efd;
    color: var(--primary-white);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--primary-gray-500);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
           VIDEOS SECTION
           ============================================ */
.section-videos {
    padding: 80px 0;
    background: var(--primary-gray-100);
}

.video-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--primary-gray-200);
    transition: var(--transition);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--primary-black);
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card .video-info {
    padding: 20px;
}

.video-card .video-info h6 {
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.video-card .video-info p {
    color: var(--primary-gray-500);
    font-size: 13px;
    margin-bottom: 0;
}

/* ============================================
           CONTACT
           ============================================ */
.section-contact {
    padding: 80px 0;
    background: var(--primary-white);
}

.contact-form .form-control {
    border-radius: 12px;
    border: 2px solid var(--primary-gray-200);
    padding: 12px 18px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

.contact-form .btn-submit {
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-form .btn-submit:hover {
    background: #0d6efd;
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--primary-gray-100);
}

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

.contact-info-item .icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-black);
}

.contact-info-item .icon i {
    color: #0d6efd;
}

/* ============================================
           CTA
           ============================================ */
.section-cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.section-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(255, 193, 7, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

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

.section-cta h2 {
    color: var(--primary-white);
    font-weight: 800;
    font-size: 40px;
    margin-bottom: 15px;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.section-cta .btn-cta {
    background: #0d6efd;
    color: var(--primary-white);
    border-radius: 50px;
    padding: 16px 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-cta .btn-cta:hover {
    background: transparent;
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.25);
}

/* ============================================
           FOOTER
           ============================================ */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 50px 0 30px;
}

.footer .brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-white);
}

.footer .brand i {
    color: #0d6efd;
    margin-right: 10px;
}

.footer .brand span {
    color: #0d6efd;
}

.footer .brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 5px;
}

.footer h6 {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .social-links a:hover {
    background: #0d6efd;
    color: var(--primary-black);
    transform: translateY(-3px);
    border-color: #0d6efd;
}

.footer .contact-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer .contact-info i {
    width: 20px;
    color: #0d6efd;
}

.footer .divider {
    border-color: rgba(255, 255, 255, 0.05);
    margin: 25px 0;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    text-align: center;
}

.footer .copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a:hover {
    color: #0d6efd;
}

/* ============================================
           BACK TO TOP
           ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #0d6efd;
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background: #fde90dd9;
    color: var(--primary-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stats .stat .number {
        font-size: 22px;
    }

    .mega-dropdown .dropdown-menu {
        min-width: 100%;
        left: 0 !important;
        transform: none !important;
        border-radius: 12px;
        margin-top: 5px;
    }

    .section-features .section-title {
        font-size: 32px;
    }

    .section-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-custom .navbar-nav {
        padding-top: 15px;
    }

    .navbar-custom .nav-link {
        padding: 10px 0 !important;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .btn-hero,
    .hero-content .btn-hero-outline {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .hero-content .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .section-features {
        padding: 60px 0;
    }

    .section-features .section-title {
        font-size: 26px;
    }

    .section-cta {
        padding: 60px 0;
    }

    .section-cta h2 {
        font-size: 26px;
    }

    .section-videos {
        padding: 60px 0;
    }

    .section-contact {
        padding: 60px 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer .text-md-right {
        text-align: left !important;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .feature-card {
        padding: 20px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .navbar-custom .navbar-brand {
        font-size: 18px;
    }

    .navbar-custom .navbar-brand i {
        font-size: 22px;
    }
}

.hero-image .floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.hero-image .floating-badge:nth-child(2) {
    top: 20px;
    right: -20px;
    animation-delay: 0.5s;
}

.hero-image .floating-badge:nth-child(3) {
    bottom: 30px;
    left: -20px;
    animation-delay: 1s;
}

.hero-image .floating-badge i {
    font-size: 24px;
    color: var(--primary-white);
}

.hero-image .floating-badge .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.hero-image .floating-badge .value {
    color: var(--primary-white);
    font-weight: 700;
    font-size: 16px;
}

[data-theme="dark"] #sidebar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: var(--sidebar-width);
    height: 100vh;
    color: rgb(255, 255, 255);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    background: black;
    transition: 0.3s;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333333;

    --light-bg: #1a1a1a;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --text-color: #e2e8f0;
    --card-bg: #2d3748;
    --card-border: #4a5568;
    --muted-color: #94a3b8;
    --muted-hover: #cbd5e1;

    --gradient-primary: linear-gradient(135deg, #4c51bf 0%, #6b46c0 100%);
    --gradient-success: linear-gradient(135deg, #0f766e 0%, #16a34a 100%);
    --gradient-info: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-warning: linear-gradient(135deg, #c2410c 0%, #dc2626 100%);

    --table-bg: #1a1a2e;
    --table-stripe-bg: #15152a;
    --table-hover-bg: rgba(255, 255, 255, 0.04);
    --table-border: #2a2a42;
    --table-header-bg: #15152a;
    --table-header-color: #94a3b8;
    --table-text-color: #94a3b8;
    --table-text-primary: #e2e8f0;

    --btnMenu-color: #ffffff;
}

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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        sans-serif;
    background-color: var(--light-bg);
    /* color: var(--text-color, #333); */
    overflow-x: hidden;
    transition: background-color var(--transition-speed);
}
/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle input {
    display: none;
}

.theme-slider {
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-slider .theme-icon {
    font-size: 12px;
    color: #888;
    transition: all 0.3s ease;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.theme-toggle input:checked + .theme-slider {
    background: #2d2d2d;
}

.theme-toggle input:checked + .theme-slider .theme-icon {
    left: 24px;
    background: #2d2d2d;
    color: #ffd700;
}

.theme-slider .sun {
    opacity: 1;
}

.theme-slider .moon {
    opacity: 0;
}

.theme-toggle input:checked + .theme-slider .sun {
    opacity: 0;
}

.theme-toggle input:checked + .theme-slider .moon {
    opacity: 1;
}

//===============================
//
//
//===============================
[data-theme="dark"] .search-input {
    background: #4a5568;
    border-color: #718096;
    color: var(--text-color);
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9fafb;
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .notification-item:hover {
    background: #374151;
}

.notification-item.unread {
    background: rgba(26, 58, 143, 0.05);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(26, 58, 143, 0.2);
}

[data-theme="dark"] .text-muted:hover {
    color: #ef4444;
}

[data-theme="dark"] .text-muted {
    color: #fff;
}

.notification-time {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Fullscreen */
:fullscreen #content {
    margin-left: 0 !important;
}

:-webkit-full-screen #content {
    margin-left: 0 !important;
}

:-moz-full-screen #content {
    margin-left: 0 !important;
}

/* Breadcrumb Styles */
.breadcrumb-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .breadcrumb-nav {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

.breadcrumb-nav .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #60a5fa;
}

.breadcrumb-item a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #93c5fd;
}

.breadcrumb-item.active {
    color: #6b7280;
    font-weight: 500;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #d1d5db;
}

.breadcrumb-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav .container-fluid {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* =========================== */
/* FORM CONTROLS - DARK THEME */
/* =========================== */

[data-theme="dark"] .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control:focus {
    background-color: #4b5563;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-control[readonly] {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #9ca3af;
}

/* Input groups */
[data-theme="dark"] .input-group-text {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
}

[data-theme="dark"] .input-group .form-control {
    border-color: #6b7280;
}

[data-theme="dark"] .input-group .form-control:focus {
    border-color: #60a5fa;
    z-index: 3;
}

/* Select */
[data-theme="dark"] .form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

[data-theme="dark"] .form-select:focus {
    background-color: #4b5563;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-select option {
    background-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .form-select option:checked {
    background-color: #1e40af;
    color: white;
}

[data-theme="dark"] .form-select option:hover {
    background-color: #4b5563;
}

/* Textarea */
[data-theme="dark"] textarea.form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] textarea.form-control:focus {
    background-color: #4b5563;
    border-color: #60a5fa;
    color: #f9fafb;
}

/* Checkboxes et Radio buttons */
[data-theme="dark"] .form-check-input {
    background-color: #374151;
    border-color: #6b7280;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .form-check-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-check-label {
    color: #e5e7eb;
}

/* Range */
[data-theme="dark"] .form-range::-webkit-slider-thumb {
    background-color: #3b82f6;
}

[data-theme="dark"] .form-range::-moz-range-thumb {
    background-color: #3b82f6;
}

[data-theme="dark"] .form-range::-webkit-slider-runnable-track {
    background-color: #4b5563;
}

[data-theme="dark"] .form-range::-moz-range-track {
    background-color: #4b5563;
}

/* File input */
[data-theme="dark"] .form-control[type="file"] {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control[type="file"]::file-selector-button {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
    border-right: 1px solid #6b7280;
}

[data-theme="dark"] .form-control[type="file"]::file-selector-button:hover {
    background-color: #6b7280;
    color: #f9fafb;
}

/* Validation states */
[data-theme="dark"] .form-control.is-valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .form-control.is-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .form-control.is-invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .valid-feedback {
    color: #10b981;
}

[data-theme="dark"] .invalid-feedback {
    color: #ef4444;
}

/* Summernote editor en dark mode */
[data-theme="dark"] .note-editor.note-frame {
    border-color: #4b5563;
    background-color: #374151;
}

[data-theme="dark"] .note-editor.note-frame .note-toolbar {
    background-color: #4b5563;
    border-bottom-color: #6b7280;
}

[data-theme="dark"] .note-editor.note-frame .note-statusbar {
    background-color: #4b5563;
    border-top-color: #6b7280;
}

[data-theme="dark"] .note-editor.note-frame .note-editable {
    background-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .note-editor.note-frame .note-btn {
    background-color: #6b7280;
    border-color: #9ca3af;
    color: #e5e7eb;
}

[data-theme="dark"] .note-editor.note-frame .note-btn:hover {
    background-color: #9ca3af;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="dark"] .note-editor.note-frame .note-dropdown-menu {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .note-editor.note-frame .note-dropdown-item {
    color: #e5e7eb;
}

[data-theme="dark"] .note-editor.note-frame .note-dropdown-item:hover {
    background-color: #6b7280;
    color: #f9fafb;
}

/* DataTables en dark mode */
[data-theme="dark"] .dataTables_wrapper .dataTables_length,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter,
[data-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-theme="dark"] .dataTables_wrapper .dataTables_processing,
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate {
    color: #e5e7eb !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e5e7eb !important;
    background-color: #4b5563 !important;
    border-color: #6b7280 !important;
}

[data-theme="dark"]
    .dataTables_wrapper
    .dataTables_paginate
    .paginate_button.current,
[data-theme="dark"]
    .dataTables_wrapper
    .dataTables_paginate
    .paginate_button.current:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

[data-theme="dark"]
    .dataTables_wrapper
    .dataTables_paginate
    .paginate_button:hover {
    background-color: #6b7280 !important;
    border-color: #9ca3af !important;
    color: #f9fafb !important;
}

[data-theme="dark"] .dataTables_wrapper table.dataTable {
    color: #e5e7eb;
    border-color: #4b5563;
}

[data-theme="dark"] .dataTables_wrapper table.dataTable thead th,
[data-theme="dark"] .dataTables_wrapper table.dataTable thead td {
    border-color: #4b5563;
    background-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .dataTables_wrapper table.dataTable tbody tr {
    background-color: #374151;
}

[data-theme="dark"] .dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: #4b5563 !important;
}

[data-theme="dark"] .dataTables_wrapper table.dataTable tbody td {
    border-color: #4b5563;
}

/* Labels et form text */
[data-theme="dark"] .form-label {
    color: #e5e7eb;
}

[data-theme="dark"] .form-text {
    color: #9ca3af;
}

/* Card forms */
[data-theme="dark"] .card .form-control,
[data-theme="dark"] .dashboard-card .form-control {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}

[data-theme="dark"] .card .form-control:focus,
[data-theme="dark"] .dashboard-card .form-control:focus {
    background-color: #6b7280;
    border-color: #60a5fa;
    color: #f9fafb;
}

/* Search box dans la topbar */
[data-theme="dark"] .search-box .search-input {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}

[data-theme="dark"] .search-box .search-input:focus {
    background-color: #6b7280;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .search-box .search-icon {
    color: #9ca3af;
}

/* Custom selects avec icÃ´nes */
[data-theme="dark"] .custom-select-with-icon {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .custom-select-with-icon .dropdown-toggle {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .custom-select-with-icon .dropdown-menu {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .custom-select-with-icon .dropdown-item {
    color: #e5e7eb;
}

[data-theme="dark"] .custom-select-with-icon .dropdown-item:hover {
    background-color: #6b7280;
    color: #f9fafb;
}

/* Champs de date et heure */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="week"] {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="dark"]
    input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

/* Champs de couleur */
[data-theme="dark"] input[type="color"] {
    background-color: #374151;
    border-color: #4b5563;
}

/* Toggle switches */
[data-theme="dark"] .form-switch .form-check-input {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .form-switch .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Input groups avec prepend/append */
[data-theme="dark"] .input-group-prepend .input-group-text,
[data-theme="dark"] .input-group-append .input-group-text {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
}

/* Champs de recherche dans les tables */
[data-theme="dark"] .dataTables_filter input[type="search"] {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

/* Champs de sÃ©lection dans les tables */
[data-theme="dark"] .dataTables_length select {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

/* Formulaire de filtrage dans le breadcrumb */
[data-theme="dark"] .breadcrumb-nav .form-control,
[data-theme="dark"] .breadcrumb-nav .form-select {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}

[data-theme="dark"] .breadcrumb-nav .form-control:focus,
[data-theme="dark"] .breadcrumb-nav .form-select:focus {
    background-color: #6b7280;
    border-color: #60a5fa;
    color: #f9fafb;
}

/* ====================== */
/* DROPDOWNS - DARK THEME */
/* ====================== */

[data-theme="dark"] .dropdown-menu {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .dropdown-item.active,
[data-theme="dark"] .dropdown-item:active {
    background-color: #3b82f6;
    color: white;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #4b5563;
}

[data-theme="dark"] .dropdown-header {
    color: #9ca3af;
}

[data-theme="dark"] .dropdown-toggle {
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-toggle:hover {
    color: #f9fafb;
}

/* Dropdown dans la topbar */
[data-theme="dark"] .topbar .dropdown-menu {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .topbar .dropdown-item {
    color: #d1d5db;
}

[data-theme="dark"] .topbar .dropdown-item:hover {
    background-color: #6b7280;
    color: white;
}

/* Notifications dropdown */
[data-theme="dark"] .notification-dropdown {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #6b7280;
    color: #d1d5db;
}

[data-theme="dark"] .notification-item:hover {
    background-color: #6b7280;
}

[data-theme="dark"] .notification-item.unread {
    background-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .notification-time {
    color: #9ca3af;
}

/* Language dropdown */
[data-theme="dark"] .language-dropdown {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .language-dropdown .dropdown-item.active {
    background-color: #3b82f6;
}

/* User menu dropdown */
[data-theme="dark"] .user-menu .dropdown-menu {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .user-menu .dropdown-item.text-danger {
    color: #f87171;
}

[data-theme="dark"] .user-menu .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

[data-theme="dark"] .dropdown-item i {
    color: #9ca3af;
}

[data-theme="dark"] .dropdown-item:hover i {
    color: white;
}

/* ========================= */
/* LIST GROUPS - DARK THEME */
/* ========================= */

[data-theme="dark"] .list-group {
    background-color: transparent;
}

[data-theme="dark"] .list-group-item {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .list-group-item.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

[data-theme="dark"] .list-group-item.disabled,
[data-theme="dark"] .list-group-item:disabled {
    background-color: #4b5563;
    color: #9ca3af;
}

[data-theme="dark"] .list-group-item-action {
    color: #d1d5db;
}

[data-theme="dark"] .list-group-item-action:hover,
[data-theme="dark"] .list-group-item-action:focus {
    background-color: #4b5563;
    color: white;
}

[data-theme="dark"] .list-group-item-action.active {
    background-color: #3b82f6;
    color: white;
}

/* List group flush */
[data-theme="dark"] .list-group-flush .list-group-item {
    border-color: #4b5563;
}

[data-theme="dark"] .list-group-flush .list-group-item:first-child {
    border-top-color: #4b5563;
}

[data-theme="dark"] .list-group-flush .list-group-item:last-child {
    border-bottom-color: #4b5563;
}

/* List group dans les cards */
[data-theme="dark"] .card .list-group-item {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}

[data-theme="dark"] .card .list-group-item:hover {
    background-color: #6b7280;
    color: white;
}

[data-theme="dark"] .dashboard-card .list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

[data-theme="dark"] .dashboard-card .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badges dans les list groups */
[data-theme="dark"] .list-group-item .badge {
    background-color: #6b7280;
    color: white;
}

[data-theme="dark"] .list-group-item.active .badge {
    background-color: white;
    color: #3b82f6;
}

/* Avec icÃ´nes */
[data-theme="dark"] .list-group-item i {
    color: #9ca3af;
}

[data-theme="dark"] .list-group-item:hover i,
[data-theme="dark"] .list-group-item.active i {
    color: white;
}

/* ============================================
   DARK MODE - CARDS, HEADERS & FOOTERS
   ============================================ */

[data-theme="dark"] .card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

[data-theme="dark"] .card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

[data-theme="dark"] .card-footer {
    background-color: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

[data-theme="dark"] .card-title {
    color: #f3f4f6;
}

[data-theme="dark"] .card-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] .card-text {
    color: #d1d5db;
}

/* Cartes avec gradient (conserver le gradient mais adapter les couleurs) */
[data-theme="dark"] .bg-gradient-primary {
    background: linear-gradient(135deg, #4c51bf 0%, #6b46c0 100%);
}

[data-theme="dark"] .bg-gradient-success {
    background: linear-gradient(135deg, #0f766e 0%, #16a34a 100%);
}

[data-theme="dark"] .bg-gradient-info {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

[data-theme="dark"] .bg-gradient-warning {
    background: linear-gradient(135deg, #c2410c 0%, #dc2626 100%);
}

/* Cartes de statistiques en mode sombre */
[data-theme="dark"] .stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stats-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .stats-number {
    color: white;
}
[data-theme="dark"] .package-card .display-4 {
    font-size: 2.5rem;
    color: #ffffff;
}

[data-theme="dark"] h4.mb-0 {
    color: var(--text-color);
}
[data-theme="dark"] .stat-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat-label {
    color: #9ca3af;
}

[data-theme="dark"] .stat-value {
    color: #f3f4f6;
}

[data-theme="dark"] .stat-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cartes de profil */
[data-theme="dark"] .img-thumbnail {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .border-end {
    border-right-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .border-top {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Alertes dans les cartes en mode sombre */
[data-theme="dark"] .alert {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Badges dans les cartes */
[data-theme="dark"] .badge {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .badge.bg-success {
    background-color: #16a34a !important;
}

[data-theme="dark"] .badge.bg-danger {
    background-color: #dc2626 !important;
}

[data-theme="dark"] .badge.bg-warning {
    background-color: #d97706 !important;
    color: #111827;
}

[data-theme="dark"] .badge.bg-info {
    background-color: #0891b2 !important;
}

[data-theme="dark"] .badge.bg-primary {
    background-color: #2563eb !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: #4b5563 !important;
}

/* Boutons dans les cartes en mode sombre */
[data-theme="dark"] .btn-outline-secondary {
    color: #9ca3af;
    border-color: #4b5563;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #4b5563;
    color: #f3f4f6;
}

/* List groups dans les cartes */
[data-theme="dark"] .list-group-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .list-group-item-action {
    color: #e5e7eb;
}

[data-theme="dark"] .list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

/* Cards dans les modals en mode sombre */
[data-theme="dark"] .modal .card {
    background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal .card-header {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Animation pour les cartes en mode sombre */
[data-theme="dark"] .card {
    transition: all 0.3s ease;
}

[data-theme="dark"] .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Cartes avec bordures spécifiques */
[data-theme="dark"] .card.border-primary {
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .card.border-success {
    border-color: #10b981 !important;
}

[data-theme="dark"] .card.border-danger {
    border-color: #ef4444 !important;
}

[data-theme="dark"] .card.border-warning {
    border-color: #f59e0b !important;
}

[data-theme="dark"] .card.border-info {
    border-color: #06b6d4 !important;
}

/* Tables dans les cartes */
[data-theme="dark"] .card .table {
    color: #e5e7eb;
}

[data-theme="dark"] .card .table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

[data-theme="dark"] .card .table tbody td {
    border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .card .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .bg-white {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ===========================
   MODAL - DARK MODE
=========================== */

[data-theme="dark"] .modal-content {
    background-color: #111827;
    /* gray-900 */
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-title,
[data-theme="dark"] .modal-header h5 {
    color: #f9fafb;
}

/* Inputs */
[data-theme="dark"] .modal .form-control,
[data-theme="dark"] .modal .form-select {
    background-color: #020617;
    /* gray-950 */
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

[data-theme="dark"] .modal .form-control::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .modal .form-control:focus,
[data-theme="dark"] .modal .form-select:focus {
    background-color: #020617;
    border-color: #2563eb;
    box-shadow: none;
}

/* Labels */
[data-theme="dark"] .modal label {
    color: #d1d5db;
}

/* Close button */
[data-theme="dark"] .modal .btn-close {
    filter: invert(1);
}

/* Image preview border */
[data-theme="dark"] .modal img {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Buttons secondary */
[data-theme="dark"] .modal .btn-secondary {
    background-color: #1f2933;
    border-color: #374151;
    color: #e5e7eb;
}

/* SweetAlert Dark (bonus) */
[data-theme="dark"] .swal2-popup {
    background-color: #111827;
    color: #e5e7eb;
}

/* ============================================================
   DARK THEME - TABLEAUX ET COMPOSANTS
   ============================================================ */

/* Tableaux - style général */
[data-theme="dark"] .table {
    color: #e5e7eb;
    border-color: #4b5563;
}

[data-theme="dark"] .table thead th {
    border-bottom-color: #4b5563;
    color: #9ca3af;
    font-weight: 600;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-top-color: #4b5563;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: #374151;
    color: #f3f4f6;
}

/* Table-light (en-tête) */
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light th,
[data-theme="dark"] thead.table-light,
[data-theme="dark"] .table thead.table-light {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .table-light th {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-bottom-color: #374151 !important;
}

/* Table-dark pour les en-têtes alternatifs */
[data-theme="dark"] .table-dark {
    background-color: #111827;
    color: #f3f4f6;
}

/* Lignes de tableau avec statuts */
[data-theme="dark"] .table-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .table-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #fcd34d !important;
}

[data-theme="dark"] .table-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #6ee7b7 !important;
}

[data-theme="dark"] .table-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .table-primary {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .table-secondary {
    background-color: rgba(75, 85, 99, 0.2) !important;
    color: #9ca3af !important;
}

/* Badges dans les tableaux */
[data-theme="dark"] .badge {
    font-weight: 500;
}

[data-theme="dark"] .badge.bg-light {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .badge.bg-dark {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] .badge.bg-danger {
    background-color: #dc2626 !important;
    color: white !important;
}

[data-theme="dark"] .badge.bg-warning {
    background-color: #f59e0b !important;
    color: #1f2937 !important;
}

[data-theme="dark"] .badge.bg-success {
    background-color: #10b981 !important;
    color: white !important;
}

[data-theme="dark"] .badge.bg-info {
    background-color: #3b82f6 !important;
    color: white !important;
}

[data-theme="dark"] .badge.bg-primary {
    background-color: #2563eb !important;
    color: white !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: #4b5563 !important;
    color: #e5e7eb !important;
}

/* Cards dans le thème sombre */
[data-theme="dark"] .card {
    background-color: #1f2937;
    border-color: #374151;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-header {
    background-color: #1f2937;
    border-bottom-color: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .card-footer {
    background-color: #1f2937;
    border-top-color: #374151;
}

[data-theme="dark"] .card.bg-light {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Alertes */
[data-theme="dark"] .alert {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #93c5fd;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fcd34d;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

/* Buttons */
[data-theme="dark"] .btn-light {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .btn-light:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #9ca3af;
    border-color: #4b5563;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #4b5563;
    color: #f3f4f6;
    border-color: #6b7280;
}

/* Input groups */
[data-theme="dark"] .input-group-text {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #4b5563;
    border-color: #60a5fa;
    color: #f3f4f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .form-check-input {
    background-color: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Modals */
[data-theme="dark"] .modal-content {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #374151;
}

[data-theme="dark"] .modal-title {
    color: #f3f4f6;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Pagination */
[data-theme="dark"] .pagination .page-link {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .pagination .page-link:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #2d3748;
    border-color: #374151;
    color: #6b7280;
}

/* Dropdowns */
[data-theme="dark"] .dropdown-menu {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #374151;
}

[data-theme="dark"] .dropdown-header {
    color: #9ca3af;
}

/* Codes et pre */
[data-theme="dark"] code {
    background-color: #374151;
    color: #fbbf24;
    padding: 2px 4px;
    border-radius: 4px;
}

[data-theme="dark"] pre {
    background-color: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

/* Statistiques cards */
[data-theme="dark"] .card.stat-card {
    background-color: #1f2937;
}

[data-theme="dark"] .stat-label {
    color: #9ca3af;
}

[data-theme="dark"] .stat-value {
    color: #f3f4f6;
}

[data-theme="dark"] .bg-primary-light {
    background-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .bg-success-light {
    background-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .bg-warning-light {
    background-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .bg-info-light {
    background-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .bg-danger-light {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Tooltips */
[data-theme="dark"] .tooltip-inner {
    background-color: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1f2937;
}

/* Progress bars */
[data-theme="dark"] .progress {
    background-color: #374151;
}

[data-theme="dark"] .progress-bar {
    background-color: #3b82f6;
}

/* Nav tabs */
[data-theme="dark"] .nav-tabs {
    border-bottom-color: #374151;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #9ca3af;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #1f2937;
    border-color: #374151 #374151 #1f2937;
    color: #3b82f6;
}

/* List groups */
[data-theme="dark"] .list-group-item {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: #374151;
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb-nav {
    background-color: #1f2937;
    border-bottom-color: #374151;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #60a5fa;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #9ca3af;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

/* ============================================
   SELECT2 - DARK MODE
   ============================================ */

/* Container principal */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
[data-theme="dark"] .select2-container--default .select2-selection {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

/* Champ de sélection */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__rendered,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #e2e8f0;
    line-height: calc(1.5em + 0.75rem + 2px);
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__placeholder,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #94a3b8;
}

/* Flèche du select */
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__arrow
    b,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #94a3b8 transparent transparent transparent;
}

[data-theme="dark"]
    .select2-container--bootstrap-5.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b,
[data-theme="dark"]
    .select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: transparent transparent #94a3b8 transparent;
}

/* Multiple select */
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple,
[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__choice,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__choice__remove,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #94a3b8;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__choice__remove:hover,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #ef4444;
}

/* Dropdown */
[data-theme="dark"] .select2-dropdown {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .select2-results__option {
    color: #e2e8f0;
    background-color: #1e293b;
}

[data-theme="dark"] .select2-results__option--highlighted {
    background-color: #334155;
    color: #ffffff;
}

[data-theme="dark"] .select2-results__option[aria-selected="true"] {
    background-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .select2-results__option--selected {
    background-color: #2563eb;
    color: #ffffff;
}

/* Search input dans le dropdown */
[data-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Placeholder dans le dropdown */
[data-theme="dark"] .select2-search__field::placeholder {
    color: #64748b;
}

/* Loading indicator */
[data-theme="dark"]
    .select2-container
    .select2-selection--single
    .select2-selection__clear {
    color: #94a3b8;
}

[data-theme="dark"]
    .select2-container
    .select2-selection--single
    .select2-selection__clear:hover {
    color: #ef4444;
}

/* Disabled state */
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--single.select2-container--disabled,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--single.select2-container--disabled {
    background-color: #334155;
    opacity: 0.6;
}

/* Focus state */
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--single:focus,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--single:focus,
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple:focus,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Tags input (pour select2 avec tags) */
[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice {
    background-color: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice
    .select2-selection__choice__remove,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice
    .select2-selection__choice__remove {
    color: #94a3b8;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice
    .select2-selection__choice__remove:hover,
[data-theme="dark"]
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice
    .select2-selection__choice__remove:hover {
    color: #ef4444;
}

/* Select2 avec thème Bootstrap 5 (spécifique) */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-selection__rendered {
    color: #e2e8f0;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #e2e8f0;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-results__option--highlighted {
    background-color: #334155;
    color: #ffffff;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-results__option[aria-selected="true"] {
    background-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-search__field {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"]
    .select2-container--bootstrap-5
    .select2-search__field:focus {
    border-color: #3b82f6;
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Scrollbar personnalisée pour le dropdown */
[data-theme="dark"] .select2-results__options::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] .select2-results__options::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

[data-theme="dark"] .select2-search__field {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

[data-theme="dark"] .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

[data-theme="dark"] .chip {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 20px;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: black;
}

/*
*
*====================================================
*
*====================================================
*
*/

/*
*
*====================================
*
*====================================
*
*/
/* Utiliser les variables pour les gradients */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-info {
    background: var(--gradient-info);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

/* Correction pour les Ã©lÃ©ments text-muted dans le thÃ¨me sombre */
[data-theme="dark"] .text-muted {
    color: var(--muted-color) !important;
}

[data-theme="dark"] .text-muted:hover {
    color: var(--muted-hover) !important;
}

/* SpÃ©cifique pour la sidebar */
[data-theme="dark"] #sidebar .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] #sidebar .text-muted:hover {
    color: #e5e7eb !important;
}

/* Pour les badges dans le dropdown utilisateur */
[data-theme="dark"] .user-menu .text-muted {
    color: #9ca3af !important;
}

/* Pour le texte dans la topbar */
[data-theme="dark"] .topbar-center .text-muted {
    color: #9ca3af !important;
}

/* Pour les notifications */
[data-theme="dark"] .notification-time {
    color: #9ca3af !important;
}

/* Pour les Ã©lÃ©ments de formulaire */
[data-theme="dark"] .form-text.text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .breadcrumb-item {
    color: var(--muted-color) !important;
}

/*
*
*===========================================
* Admin Panel CSS
*===========================================
*
*/

/* =====================================================
   GLOBAL DARK MODE
===================================================== */

[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-color);
}

/* Titres */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

/* Texte */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] small,
[data-theme="dark"] label,
[data-theme="dark"] strong,
[data-theme="dark"] li,
[data-theme="dark"] dt,
[data-theme="dark"] dd {
    color: var(--text-secondary);
}

/* Liens */
[data-theme="dark"] a {
    color: #60a5fa;
}

[data-theme="dark"] a:hover {
    color: #93c5fd;
}

/* =====================================================
   BOOTSTRAP - CARD
===================================================== */

[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .card-header {
    background-color: #1f2937;
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card-footer {
    background-color: #1f2937;
    border-top-color: var(--border-color);
}

/* =====================================================
   TABLE
===================================================== */

[data-theme="dark"] .table {
    color: var(--table-text-color);
}

[data-theme="dark"] .table thead th {
    background: var(--table-header-bg);
    color: var(--table-header-color);
    border-color: var(--table-border);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: var(--table-border);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background: var(--table-stripe-bg);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background: var(--table-hover-bg);
}

/* =====================================================
   FORM
===================================================== */

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
    background: #1f2937;
    border-color: #374151;
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea:focus {
    background: #273449;
    color: var(--text-primary);
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

/* =====================================================
   INPUT GROUP
===================================================== */

[data-theme="dark"] .input-group-text {
    background: #1f2937;
    color: var(--text-primary);
    border-color: #374151;
}

/* =====================================================
   DROPDOWN
===================================================== */

[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: #334155;
    color: #fff;
}

[data-theme="dark"] .dropdown-divider {
    border-color: #334155;
}

/* =====================================================
   MODAL
===================================================== */

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

/* =====================================================
   LIST GROUP
===================================================== */

[data-theme="dark"] .list-group-item {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* =====================================================
   ACCORDION
===================================================== */

[data-theme="dark"] .accordion-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background: #1f2937;
    color: var(--text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: #273449;
    color: #fff;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

/* =====================================================
   NAVIGATION
===================================================== */

[data-theme="dark"] .navbar,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .pagination .page-link {
    background: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .page-link:hover {
    background: var(--bg-hover);
}

/* =====================================================
   ALERT
===================================================== */

[data-theme="dark"] .alert {
    border: none;
}

/* =====================================================
   HR
===================================================== */

[data-theme="dark"] hr {
    border-color: var(--border-color);
}

/* =====================================================
   TEXT UTILITIES
===================================================== */

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bg-white {
    background: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light {
    background: #1f2937 !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .footer {
    background: #020617;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer h1,
[data-theme="dark"] .footer h2,
[data-theme="dark"] .footer h3,
[data-theme="dark"] .footer h4,
[data-theme="dark"] .footer h5,
[data-theme="dark"] .footer h6 {
    color: var(--text-primary);
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer span,
[data-theme="dark"] .footer li,
[data-theme="dark"] .footer small {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer a {
    color: #93c5fd;
    transition: color 0.3s ease;
}

[data-theme="dark"] .footer a:hover {
    color: #ffffff;
}

[data-theme="dark"] .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    background: #020617;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .section-cta {
    padding: 80px 0;
    background: #020617;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* =====================================================
   BOOTSTRAP BUTTONS - DARK MODE
===================================================== */

/* Bouton principal */
[data-theme="dark"] .btn-primary {
    background: #000;
    border-color: #000;
    color: #fff;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}

/* Bouton secondaire */
[data-theme="dark"] .btn-secondary {
    background: #374151;
    border-color: #374151;
    color: #fff;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

/* Succès */
[data-theme="dark"] .btn-success {
    background: #15803d;
    border-color: #15803d;
}

[data-theme="dark"] .btn-success:hover {
    background: #166534;
    border-color: #166534;
}

/* Danger */
[data-theme="dark"] .btn-danger {
    background: #b91c1c;
    border-color: #b91c1c;
}

[data-theme="dark"] .btn-danger:hover {
    background: #991b1b;
    border-color: #991b1b;
}

/* Warning */
[data-theme="dark"] .btn-warning {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

[data-theme="dark"] .btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

/* Info */
[data-theme="dark"] .btn-info {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

[data-theme="dark"] .btn-info:hover {
    background: #0369a1;
    border-color: #0369a1;
}

/* Light */
[data-theme="dark"] .btn-light {
    background: #374151;
    border-color: #4b5563;
    color: #f8fafc;
}

[data-theme="dark"] .btn-light:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* Dark */
[data-theme="dark"] .btn-dark {
    background: #000;
    border-color: #111;
    color: #fff;
}

[data-theme="dark"] .btn-dark:hover {
    background: #1a1a1a;
}

/* Outline */
[data-theme="dark"] .btn-outline-primary {
    color: #fff;
    border-color: #475569;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-success,
[data-theme="dark"] .btn-outline-danger,
[data-theme="dark"] .btn-outline-warning,
[data-theme="dark"] .btn-outline-info,
[data-theme="dark"] .btn-outline-dark,
[data-theme="dark"] .btn-outline-light {
    color: #e5e7eb;
    border-color: #475569;
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-success:hover,
[data-theme="dark"] .btn-outline-danger:hover,
[data-theme="dark"] .btn-outline-warning:hover,
[data-theme="dark"] .btn-outline-info:hover,
[data-theme="dark"] .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-light:hover {
    background: #374151;
    border-color: #374151;
    color: #fff;
}

/* Désactivé */
[data-theme="dark"] .btn:disabled,
[data-theme="dark"] .btn.disabled {
    opacity: 0.6;
}

/* =====================================================
   TYPOGRAPHIE - DARK MODE
===================================================== */

/* Corps de la page */
[data-theme="dark"] body {
    color: var(--text-color);
}

/* Titres */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Texte courant */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] small,
[data-theme="dark"] label,
[data-theme="dark"] strong,
[data-theme="dark"] em,
[data-theme="dark"] b,
[data-theme="dark"] i,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] dt,
[data-theme="dark"] dd {
    color: var(--text-color);
}

/* Liens */
[data-theme="dark"] a {
    color: #93c5fd;
    transition: color 0.2s ease;
}

[data-theme="dark"] a:hover {
    color: #ffffff;
}

/* =====================================================
   BOOTSTRAP TEXT UTILITIES
===================================================== */

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-body {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-black {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-white {
    color: #ffffff !important;
}

/* =====================================================
   BOOTSTRAP BACKGROUNDS
===================================================== */

[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
    color: var(--text-primary);
}

/* =====================================================
   SÉLECTION DU TEXTE
===================================================== */

[data-theme="dark"] ::selection {
    background: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .table-secondary {
    --bs-table-color: #000;
    --bs-table-bg: #e2e3e5;
    --bs-table-border-color: #cbccce;
    --bs-table-striped-bg: #d7d8da;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #cbccce;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #d1d2d4;
    --bs-table-hover-color: #000;
    background: #2563eb;
    color: #ffffff;
    border-color: var(--bs-table-border-color);
}

[data-theme="dark"] .stats-card .stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .package-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .package-details h1,
[data-theme="dark"] .package-details h2,
[data-theme="dark"] .package-details h3,
[data-theme="dark"] .package-details h4,
[data-theme="dark"] .package-details h5,
[data-theme="dark"] .package-details h6 {
    color: var(--text-primary);
}

[data-theme="dark"] .package-details p,
[data-theme="dark"] .package-details span,
[data-theme="dark"] .package-details small,
[data-theme="dark"] .package-details li {
    color: var(--text-secondary);
}

[data-theme="dark"] .package-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

[data-theme="dark"] .package-icon:hover {
    background: var(--card-bg);
    color: #ffffff;
    border-color: #475569;
    transform: scale(1.05);
}

[data-theme="dark"] .navbar-custom .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}
/* Footer styles améliorés */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 50px 0 30px;
}

.footer .brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-white);
}

.footer .brand i {
    color: #0d6efd;
    margin-right: 10px;
}

.footer .brand span {
    color: #0d6efd;
}

.footer .brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 5px;
}

.footer h6 {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer h6 i {
    color: #0d6efd;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer ul li a i {
    font-size: 12px;
    width: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.footer ul li a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.footer ul li a:hover i {
    color: #0d6efd;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.footer .social-links a:hover {
    background: #0d6efd;
    color: var(--primary-black);
    transform: translateY(-3px);
    border-color: #0d6efd;
}

.footer .contact-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer .contact-info li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.footer .contact-info i {
    width: 20px;
    color: #0d6efd;
    margin-top: 2px;
}

.footer .badge {
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .badge i {
    color: #0d6efd;
}

.footer .divider {
    border-color: rgba(255, 255, 255, 0.05);
    margin: 25px 0;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.footer .copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer .copyright a:hover {
    color: #0d6efd;
}

.footer .copyright .fa-heart {
    color: #ff6b6b;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer .text-muted:hover {
    color: #0d6efd !important;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    .footer .text-md-end {
        text-align: left !important;
        margin-top: 15px;
    }
    .footer .d-flex.gap-3 {
        justify-content: flex-start !important;
    }
}
