 :root {
            --primary-blue: #0066cc;
            --secondary-blue: #0052a3;
            --accent-gold: #d4af37;
            --light-bg: #f8fafc;
            --dark-text: #1e293b;
            --gray-text: #64748b;
            --success-green: #10b981;
            --danger-red: #ef4444;
            --border-radius: 12px;
            --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }
        /* ==================== VARIABLES CSS ==================== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e3f2fd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --sidebar-width: 250px;
    --header-height: 60px;
    --transition: all 0.3s ease;
}

/* ==================== GLOBAL STYLES ==================== */
html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
    font-size: 14px;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==================== HEADER / NAVBAR ==================== */
.main-header {
    height: var(--header-height);
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: var(--transition);
    z-index: 1030;
}

/* --- C'EST CETTE PARTIE QUI STYLISE TON registrationHeaderAlert --- */
.status-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: slideDown 0.4s ease-out;
    font-weight: 500;
}

.date-range {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 4px;
}
/* ---------------------------------------------------------------- */

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    object-fit: cover;
    transition: var(--transition);
}

/* ==================== SIDEBAR ==================== */
.main-sidebar {
    background-color: var(--white) !important;
    border-right: 1px solid var(--border-color);
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
}

/* ==================== CARDS & TABLES ==================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.table thead th {
    background-color: var(--light-gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== ANIMATIONS (LE POINT CLIGNOTANT) ==================== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767px) {
    .status-pill {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--dark-text);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        /* ===== NAVBAR PROFESSIONNELLE ===== */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }
        
        .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--primary-blue) !important;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .navbar-brand img {
            transition: var(--transition);
        }
        
        .navbar-brand:hover img {
            transform: scale(1.05);
        }
        
        /* ===== BADGE STATUT ANIMÉ ===== */
        .status-badge {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
            animation: pulse 2s infinite;
        }
        
        .status-badge.closed {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); }
            50% { box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4); }
            100% { box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); }
        }
        
        /* ===== BOUTONS ===== */
        .btn-primary-custom {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            padding: 0.75rem 2rem;
            border-radius: var(--border-radius);
            border: none;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
        }
        
        .btn-primary-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
            color: white;
        }
        
        .btn-outline-custom {
            border: 2px solid var(--primary-blue);
            color: var(--primary-blue);
            padding: 0.75rem 2rem;
            border-radius: var(--border-radius);
            font-weight: 600;
            transition: var(--transition);
            background: transparent;
        }
        
        .btn-outline-custom:hover {
            background: var(--primary-blue);
            color: white;
            transform: translateY(-2px);
        }
        
        /* ===== HERO SECTION ===== */
        .hero-section {
            padding: 8rem 0 12rem;
            background: linear-gradient(135deg, 
                rgba(0, 102, 204, 0.95) 0%, 
                rgba(0, 82, 163, 0.95) 100%),
            url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: white;
            clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
            pointer-events: none;
        }
        
        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            opacity: 0.9;
            margin-bottom: 2.5rem;
        }
        
        .hero-image {
            border-radius: var(--border-radius);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            transform: perspective(1000px) rotateY(-10deg);
            transition: var(--transition);
            border: 4px solid rgba(255, 255, 255, 0.1);
        }
        
        .hero-image:hover {
            transform: perspective(1000px) rotateY(0deg);
        }
        
        /* ===== STATS SECTION ===== */
        .stats-section {
            margin-top: -100px;
            position: relative;
            z-index: 10;
        }
        
        .stat-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 2.5rem 2rem;
            box-shadow: var(--box-shadow);
            border-top: 4px solid var(--primary-blue);
            transition: var(--transition);
            text-align: center;
            height: 100%;
        }
        
        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .stat-icon {
            width: 70px;
            height: 70px;
            background: rgba(0, 102, 204, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: var(--primary-blue);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--dark-text);
            margin-bottom: 0.5rem;
        }
        
        /* ===== CATEGORIES SECTION ===== */
        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--dark-text);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--primary-blue);
            border-radius: 2px;
        }
        
        .section-subtitle {
            color: var(--gray-text);
            font-size: 1.1rem;
            max-width: 600px;
        }
        
        .category-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 2.5rem 2rem;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .category-icon {
            width: 80px;
            height: 80px;
            background: rgba(0, 102, 204, 0.1);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2.5rem;
            color: var(--primary-blue);
        }
        
        /* ===== PROCESS SECTION ===== */
        .process-section {
            background: var(--light-bg);
            position: relative;
        }
        
        .process-step {
            position: relative;
            padding-left: 3rem;
        }
        
        .process-step::before {
            content: attr(data-step);
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            background: var(--primary-blue);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
        }
        
        /* ===== COMMANDEMENT SECTION ===== */
        .commandant-section {
            background: white;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
            position: relative;
        }
        
        .commandant-image {
            height: 100%;
            min-height: 400px;
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem;
        }
        
        .commandant-image img {
            width: 100%;
            max-width: 300px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            border: 8px solid rgba(255, 255, 255, 0.2);
        }
        
        .quote-icon {
            font-size: 3rem;
            color: var(--primary-blue);
            opacity: 0.2;
            margin-bottom: 1rem;
        }
        
        /* ===== FOOTER ===== */
        .footer {
            background: var(--dark-text);
            color: white;
            padding: 4rem 0 2rem;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: white;
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }
        
        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .social-icon:hover {
            background: var(--primary-blue);
            transform: translateY(-3px);
        }
        
        .copyright {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2rem;
            margin-top: 3rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }
        
        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-section {
                padding: 6rem 0 10rem;
                clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
            }
            
            .stats-section {
                margin-top: -50px;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .navbar-nav {
                background: white;
                padding: 1rem;
                border-radius: var(--border-radius);
                box-shadow: var(--box-shadow);
                margin-top: 1rem;
            }

            
        }
        

        /* ===== LOADING STATES ===== */
        .btn.disabled {
            opacity: 0.6;
            cursor: pointer;
            transform: none !important;
            pointer-events: auto !important;
        }
        
        /* ===== CUSTOM UTILITIES ===== */
        .text-gradient {
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .badge-custom {
            background: var(--accent-gold);
            color: white;
            padding: 0.25rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }