/* ============================================
   LOGICIEL AUTO-ÉCOLE - STYLES CSS
   ============================================ */

:root {
    /* Couleurs Premium */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --warning-dark: #d97706;
    --success-color: #10b981;
    --info-color: #06b6d4;
    
    /* Couleurs Neutres Premium */
    --dark-color: #0f172a;
    --dark-light: #1e293b;
    --light-color: #f8fafc;
    --light-dark: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Ombres Premium */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    
    /* Dégradés Premium */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #f1f5f9 50%,
        #e2e8f0 100%);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   SIDEBAR NAVIGATION PREMIUM (GAUCHE)
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 300px;
    background: linear-gradient(180deg, 
        #0a0f1a 0%, 
        #0f172a 25%,
        #1e293b 50%, 
        #334155 100%);
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.4),
                2px 0 12px rgba(0, 0, 0, 0.3),
                inset -1px 0 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: hidden;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 100vh;
}

.sidebar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
    width: 0px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Header Premium */
.sidebar-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.1) 50%,
        transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .sidebar-header {
        padding: 1.25rem 1.25rem;
        gap: 1rem;
        background: linear-gradient(180deg, 
            rgba(102, 126, 234, 0.2) 0%, 
            rgba(118, 75, 162, 0.15) 50%,
            transparent 100%);
    }
}

.sidebar-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 50%, 
        transparent 100%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.sidebar-toggle i {
    font-size: 1.2rem;
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.sidebar-brand:hover {
    transform: translateX(4px);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.sidebar-brand:hover .brand-icon::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-icon i {
    font-size: 1.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.sidebar-brand:hover .brand-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(147, 51, 234, 0.5) 100%);
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e7ff 30%,
        #c7d2fe 60%,
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .brand-text {
        font-size: 1.1rem;
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Sidebar Navigation Premium */
.sidebar-nav {
    flex: 1;
    padding: 2rem 1rem;
    overflow-y: hidden;
    overflow-x: hidden;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 0.75rem;
    min-height: 64px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
    .sidebar-link {
        margin-bottom: 0.5rem;
        padding: 1.15rem 1.25rem;
        border-radius: 14px;
        min-height: 60px;
        font-size: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 1) 0%, 
        rgba(118, 75, 162, 1) 100%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.7),
                0 0 8px rgba(118, 75, 162, 0.5);
}

.sidebar-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    z-index: 0;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    height: 70%;
}

.sidebar-link:hover::after {
    left: 100%;
}

.sidebar-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 100%);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3), 
        rgba(147, 51, 234, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.sidebar-text {
    flex: 1;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: white;
}

@media (max-width: 1024px) {
    .sidebar-link:hover {
        transform: translateX(4px) scale(1.01);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35),
                    0 3px 10px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
}

.sidebar-link:hover .sidebar-icon {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.6) 0%, 
        rgba(118, 75, 162, 0.5) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sidebar-link:hover .sidebar-icon::before {
    opacity: 1;
}

.sidebar-link:hover .sidebar-icon i {
    transform: scale(1.2) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.7));
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.35) 0%, 
        rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: white;
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .sidebar-link.active {
        transform: translateX(3px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4),
                    0 3px 10px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }
}

.sidebar-link.active .sidebar-icon {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.6) 0%, 
        rgba(147, 51, 234, 0.6) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.sidebar-link.active .sidebar-icon::before {
    opacity: 1;
}

.sidebar-link.active .sidebar-icon i {
    color: white;
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.6));
    transform: scale(1.1);
}

/* Sidebar User et Logout dans le Header */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-user::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.sidebar-user:hover::before {
    left: 100%;
}

.sidebar-user:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.4) 0%, 
        rgba(147, 51, 234, 0.4) 100%);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-user:hover .user-avatar {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.user-avatar i {
    font-size: 1.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.sidebar-user:hover .user-avatar i {
    transform: scale(1.1);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.sidebar-logout {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.25) 0%, 
        rgba(220, 38, 38, 0.25) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.sidebar-logout::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.5), 
        rgba(220, 38, 38, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-logout:hover::before {
    width: 100%;
    height: 100%;
}

.sidebar-logout:hover::after {
    opacity: 1;
}

.sidebar-logout:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.4) 0%, 
        rgba(220, 38, 38, 0.4) 100%);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sidebar-logout i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-logout:hover i {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.6));
}

/* Menu Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Wrapper */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        transparent 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link i {
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-link:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(147, 51, 234, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link:hover i {
    transform: scale(1.25) translateY(-2px);
    color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.nav-link span {
    white-space: nowrap;
    position: relative;
    z-index: 1;
    letter-spacing: 0.2px;
}

/* Active Link Premium */
.nav-link.active {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(147, 51, 234, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 1) 50%, 
        transparent 100%);
}

.nav-link.active i {
    color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.5));
}

/* User Section Premium */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.nav-user::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.user-info:hover::before {
    left: 100%;
}

.user-info:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-info i {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.user-info:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
}

.btn-logout {
    color: white;
    text-decoration: none;
    padding: 0;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-logout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-logout:hover::before {
    width: 100%;
    height: 100%;
}

.btn-logout:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.35) 0%, 
        rgba(220, 38, 38, 0.35) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-3px) rotate(15deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-logout i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-logout:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.5));
}

/* Responsive Design */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5),
                    4px 0 20px rgba(0, 0, 0, 0.4);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-header .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Cards responsive */
    .card {
        margin-bottom: 1rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        width: 100%;
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    /* Stats cards */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Tables responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Wrapper pour les tables */
    .card-body > table,
    .card > table {
        display: block;
        overflow-x: auto;
    }
    
    /* Forms responsive */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        width: 100%;
    }
    
    /* Admin cards grid */
    .admin-grid,
    .workflow-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Buttons responsive */
    .page-header .btn,
    .form-actions .btn,
    .card-header .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Forms filters responsive */
    .filters-form,
    .search-form {
        flex-direction: column;
    }
    
    .filters-form > *,
    .search-form > * {
        width: 100%;
    }
    
    /* Form row responsive */
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar-link {
        padding: 1rem 1rem;
        font-size: 0.95rem;
        min-height: 56px;
    }
    
    .sidebar-icon {
        width: 44px;
        height: 44px;
    }
    
    .sidebar-icon i {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 1rem 0.75rem;
        padding-top: 4.5rem;
    }
    
    .sidebar-header {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .sidebar-header-right {
        gap: 0.5rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    /* Page header mobile */
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    /* Cards mobile */
    .card {
        padding: 1rem;
    }
    
    .card-header h2,
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    /* Tables mobile - scroll horizontal */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    /* Forms mobile */
    .form-row {
        flex-direction: column;
    }
    
    /* Admin cards mobile */
    .admin-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .admin-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .admin-card h3 {
        font-size: 1.3rem;
    }
    
    /* Workflow cards mobile */
    .workflow-card {
        padding: 1.5rem;
    }
    
    /* Stats grid mobile */
    .row[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar-header {
        padding: 1rem 0.75rem;
        gap: 0.75rem;
    }
    
    .sidebar-header-right {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-link {
        padding: 0.875rem 0.875rem;
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    
    .sidebar-icon {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-icon i {
        font-size: 1.2rem;
    }
    
    .sidebar-user {
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-avatar i {
        font-size: 1.1rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-role {
        font-size: 0.65rem;
    }
    
    .sidebar-logout {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-logout i {
        font-size: 0.9rem;
    }
    
    .sidebar-toggle {
        width: 32px;
        height: 32px;
    }
    
    /* Page header extra small */
    .page-header h1 {
        font-size: 1.2rem;
    }
    
    /* Cards extra small */
    .card {
        padding: 0.75rem;
    }
    
    /* Buttons extra small */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Tables extra small */
    table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    
    table th,
    table td {
        padding: 0.4rem;
    }
    
    /* Admin cards extra small */
    .admin-card {
        padding: 1rem;
    }
    
    .admin-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .admin-card h3 {
        font-size: 1.1rem;
    }
    
    .admin-card p {
        font-size: 0.9rem;
    }
}

/* ============================================
   LAYOUT
   ============================================ */

/* Main Content avec Sidebar */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    margin-left: 300px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
    width: calc(100% - 300px);
    max-width: calc(100vw - 300px);
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Colonnes - Mobile First (par défaut 100% sur mobile) */
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12 {
    width: 100%;
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
}

/* Desktop - 768px et plus */
@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 calc(25% - 1.5rem);
        min-width: calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
    
    .col-md-4 {
        flex: 0 0 calc(33.333% - 1.33rem);
        min-width: calc(33.333% - 1.33rem);
        max-width: calc(33.333% - 1.33rem);
    }
    
    .col-md-6 {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .col-md-8 {
        flex: 0 0 calc(66.666% - 0.67rem);
        min-width: calc(66.666% - 0.67rem);
        max-width: calc(66.666% - 0.67rem);
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   CARDS PREMIUM
   ============================================ */

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card > .info-table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

.card > .table {
    width: 100%;
    max-width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card h2 {
    margin-bottom: 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid transparent;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.page-header h1 i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.3));
}

/* ============================================
   BUTTONS PREMIUM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn:hover i {
    transform: scale(1.15) translateY(-2px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4),
                0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.35);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4),
                0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-success {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.75rem;
}

.btn-icon {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-icon i {
    font-size: 1.1rem;
}

/* ============================================
   FORMS PREMIUM
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

small.text-muted {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

.filters-form {
    margin-bottom: 1rem;
}

/* ============================================
   TABLES PREMIUM
   ============================================ */

.table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 1.5rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    table-layout: fixed;
    box-sizing: border-box;
}

.table th:first-child,
.table td:first-child {
    width: 12%;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 12%;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 12%;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 18%;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 10%;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 12%;
}

.table th:nth-child(7),
.table td:nth-child(7) {
    width: 10%;
}

.table th:last-child,
.table td:last-child {
    width: 14%;
    text-align: left;
}

/* Tableau des échelons - largeurs spécifiques */
.table-echelons th:nth-child(1),
.table-echelons td:nth-child(1) {
    width: 8%;
}

.table-echelons th:nth-child(2),
.table-echelons td:nth-child(2) {
    width: 20%;
}

.table-echelons th:nth-child(3),
.table-echelons td:nth-child(3) {
    width: 12%;
}

.table-echelons th:nth-child(4),
.table-echelons td:nth-child(4) {
    width: 12%;
}

.table-echelons th:nth-child(5),
.table-echelons td:nth-child(5) {
    width: 12%;
}

.table-echelons th:nth-child(6),
.table-echelons td:nth-child(6) {
    width: 12%;
}

.table-echelons th:nth-child(7),
.table-echelons td:nth-child(7) {
    width: 12%;
    text-align: left;
}

.table thead {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 100%);
    border-bottom: 2px solid var(--border-light);
}

.table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    vertical-align: middle;
    white-space: nowrap;
    box-sizing: border-box;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 1;
}

.table th:hover::after {
    width: 100%;
}

.table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.2s ease;
    vertical-align: middle;
    box-sizing: border-box;
}

.table tbody tr {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(255, 255, 255, 1) 100%);
}

.table tbody tr:hover td {
    color: var(--dark-color);
}

.table tbody tr:hover td:first-child {
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    padding-left: calc(1.5rem - 4px);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .actions {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    text-align: left;
    padding-top: 0.25rem;
}

.table td.actions {
    text-align: left;
    padding-top: 1.375rem;
}

.table .actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.table .actions a:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: var(--shadow-md);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.total-row {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(147, 51, 234, 0.08) 100%);
    font-weight: 700;
    border-top: 2px solid var(--border-light);
}

.total-row td {
    padding: 1.5rem 1.5rem;
    font-size: 1.05rem;
    color: var(--dark-color);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    margin: 0;
    vertical-align: middle;
}

.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge:hover::before {
    opacity: 1;
}

.badge i {
    font-size: 0.75rem;
}

.badge-planifie {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-confirme {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-termine {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

.badge-annule {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-actif {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-suspendu {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-paye {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-en_attente {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: currentColor;
    opacity: 0.3;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.alert-success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(5, 150, 105, 0.1) 100%);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.alert-success i {
    color: var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.alert-error i {
    color: var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.15) 0%, 
        rgba(217, 119, 6, 0.1) 100%);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.alert-warning i {
    color: var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.15) 0%, 
        rgba(8, 145, 178, 0.1) 100%);
    color: #164e63;
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.alert-info i {
    color: var(--info-color);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   DASHBOARD
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md),
                0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-icon.blue {
    background: var(--gradient-primary);
}

.stat-icon.green {
    background: var(--gradient-secondary);
}

.stat-icon.orange {
    background: var(--gradient-warning);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
}

.stat-icon.red {
    background: var(--gradient-danger);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.stats-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(255, 255, 255, 1) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(255, 255, 255, 1) 100%);
}

.stat-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.moniteurs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.moniteur-stat {
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
}

.moniteur-stat h4 {
    margin-bottom: 0.5rem;
}

.moniteur-stat p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* ============================================
   INFO TABLE
   ============================================ */

.info-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    box-sizing: border-box;
}

.info-table th {
    width: auto;
    min-width: 120px;
    max-width: 200px;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    white-space: nowrap;
    box-sizing: border-box;
}

.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
    box-sizing: border-box;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   LOGIN
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
}

.login-form {
    margin-top: 1.5rem;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.login-footer small {
    color: var(--text-muted);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: width 0.3s;
}

/* ============================================
   CALENDAR
   ============================================ */

/* ============================================
   CALENDRIER FULLCALENDAR
   ============================================ */

#calendar {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

.fc {
    max-width: 100%;
}

.fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc-button {
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.fc-button-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
}

.fc-button-primary:hover {
    background: var(--gradient-primary) !important;
    opacity: 0.9;
}

.fc-daygrid-day {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: rgba(59, 130, 246, 0.05) !important;
}

.fc-timegrid-slot {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-timegrid-slot:hover {
    background-color: rgba(59, 130, 246, 0.05) !important;
}

.fc-event {
    border-radius: 6px !important;
    padding: 2px 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md) !important;
}

.fc-day-today {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

#calendar {
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 100%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 50%, 
        transparent 100%);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .main-content {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-4,
    .col-md-8 {
        width: 100%;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* ============================================
   WORKFLOW SOUSCRIPTION
   ============================================ */

.workflow-container {
    padding: 2rem 0;
}

.workflow-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.workflow-intro h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.workflow-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.workflow-card:hover::before {
    transform: scaleX(1);
}

.workflow-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-card:hover .workflow-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.workflow-icon.rapid {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.workflow-icon.echelon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.workflow-icon.formule {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.workflow-icon.complet {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.workflow-icon.custom {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.workflow-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.workflow-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.workflow-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.85rem;
}

.workflow-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.workflow-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.workflow-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.workflow-card:hover .workflow-arrow {
    transform: translateX(4px);
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border-light);
    margin: 0 1rem;
}

/* Styles pour les cartes de configuration */
.config-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.config-card {
    padding: 1.5rem;
    min-height: auto;
}

.config-card .workflow-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.config-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.config-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.config-card .workflow-features {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.config-card .feature-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.workflow-icon.api {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.workflow-icon.security {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.workflow-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.workflow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.workflow-btn i {
    font-size: 1rem;
}

/* Styles pour les modals de configuration */
.config-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.config-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.config-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 20px 20px 0 0;
}

.config-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-modal-header h2 i {
    color: var(--primary-color);
}

.config-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.config-modal-body {
    padding: 2rem;
}

.config-modal-body .form-group {
    margin-bottom: 1.5rem;
}

.config-modal-body .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .workflow-intro h2 {
        font-size: 1.5rem;
    }
    
    .workflow-card {
        padding: 1.5rem;
    }
    
    .config-card {
        padding: 1.25rem;
    }
    
    .config-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .config-modal-header,
    .config-modal-body {
        padding: 1.25rem;
    }
    
    .workflow-steps {
        flex-wrap: wrap;
    }
    
    .step-line {
        width: 40px;
    }
}

/* ============================================
   ESPACE ADMINISTRATION
   ============================================ */

.sidebar-user.admin-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-user.admin-link:hover {
    transform: translateY(-2px);
}

.user-avatar.admin-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.user-avatar.admin-badge i {
    color: white;
}

.admin-intro {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-intro-text {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.admin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.admin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.admin-card:hover::after {
    opacity: 1;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.25),
                0 8px 16px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.admin-card:hover::before {
    transform: scaleX(1);
}

.admin-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.admin-card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.admin-card:hover .admin-card-icon::before {
    animation: shine 0.6s ease;
}

.admin-card:hover .admin-card-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.admin-card-icon.config {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-card-icon.offres {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-card-icon.espaces {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-card-icon.users {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.admin-card-icon.comptabilite {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-card-icon.ants {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-card-icon.cegid {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.admin-card-icon.logs {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.admin-card-icon.sauvegardes {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.admin-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.admin-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.admin-card:hover .feature-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.feature-badge i {
    font-size: 0.8rem;
}

.admin-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.1);
    margin-top: auto;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.admin-card-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                0 2px 8px rgba(59, 130, 246, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.admin-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.admin-card-btn:hover::before {
    left: 100%;
}

.admin-card-btn:hover {
    transform: translateX(6px) scale(1.08);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5),
                0 4px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.admin-card-btn:active {
    transform: translateX(4px) scale(1.05);
}

.admin-card:hover .admin-card-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

