/* ========== STYLES GLOBAUX ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --accent-color:#10b981;
    --primary: #0B4F2E;
    --primary-light: #1A6F40;
    --primary-dark: #06351E;
    --secondary: #F4B81B;
    --secondary-light: #FFD966;
    --accent: #C52828;
    --accent-light: #E03A3A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
    --danger: #EF4444;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #0a5c35 0%, #1e8a4f 50%, #0b4f2e 100%);
    color: var(--gray-800);
}
.auth-page {
    background: url('/image/news.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ========== PAGE D'AUTHENTIFICATION ========== */
.auth-app-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.auth-app-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}
.auth-app-card:hover {
    transform: translateY(-15px);
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary);
}

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { background-color: rgba(255, 255, 255, 0.98); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); border-bottom: 3px solid var(--secondary); flex-wrap: wrap; gap: 1rem; }
.auth-header-logo { display: flex; align-items: center; gap: 15px; }
.auth-ministry-logo { height: 85px; width: auto; transition: var(--transition); }
.auth-ministry-logo:hover { transform: scale(1.05); }
.auth-header-title { flex: 1; text-align: center; }
.auth-header-title h1 { color: var(--primary); font-size: clamp(1.2rem,4vw,1.8rem); font-weight: 800; position: relative; display: inline-block; }
.auth-header-title h1::after { content: ''; position: absolute; bottom: -5px; left: 10%; width: 80%; height: 3px; background: linear-gradient(90deg, transparent, var(--secondary), transparent); }
.auth-header-title h2 { color: var(--accent); font-size: clamp(0.9rem,3vw,1.2rem); font-weight: 600; margin-top: 5px; }
.auth-main { flex: 1; display: flex; padding: 2rem 5%; max-width: 1400px; margin: 0 auto; width: 100%; gap: 2rem; }
.auth-left-panel { background: rgba(255,255,255,0.98); border-radius: 20px; padding: clamp(1.5rem,5vw,3rem); box-shadow: 0 20px 50px rgba(0,0,0,0.25); max-width: 500px; width: 100%; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.auth-illustration { max-width: 500%; width: 100%;; height: auto; max-height: 500px; border-radius: 15px;  transition: var(--transition); }
.auth-right-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 2rem; }
.auth-container { background: rgba(255,255,255,0.98); border-radius: 20px; padding: clamp(1.5rem,5vw,3rem); box-shadow: 0 20px 50px rgba(0,0,0,0.25); max-width: 500px; width: 100%; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.auth-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); }
.auth-title { color: #008836; font-family: 'Times New Roman', Times, Serif; margin-bottom: 2rem; text-align: center; font-size: clamp(1.5rem,5vw,2rem); font-weight: 800; padding-bottom: 1rem; position: relative; }
.auth-title::after { content: ''; position: absolute; bottom: 0; left: 25%; width: 50%; height: 3px; background: linear-gradient(90deg, transparent, var(--secondary), transparent); }
.auth-form-group { margin-bottom: 1.5rem; }
.auth-form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #008836 ; }
.auth-form-group label i { margin-right: 0.5rem; color: var(--secondary); }
.auth-form-control { width: 100%; padding: 1rem 1.25rem; border: 2px solid #ddd; border-radius: 10px; font-size: clamp(0.9rem,3vw,1rem); transition: all 0.3s; background: rgba(255,255,255,0.9); }
.auth-form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,79,46,0.2); outline: none; transform: translateY(-2px); }
.auth-password-strength { margin-top: 10px; height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.auth-strength-meter { height: 100%; width: 0; border-radius: 10px; transition: all 0.5s; }
.auth-btn { display: block; width: 100%; padding: 1.125rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border: none; border-radius: 10px; font-size: clamp(1rem,4vw,1.1rem); font-weight: 700; cursor: pointer; transition: all 0.4s; margin-top: 1.25rem; position: relative; overflow: hidden; z-index: 1; box-shadow: 0 8px 20px rgba(11,79,46,0.2); }
.auth-btn:hover { background: linear-gradient(135deg, #0a3d23, var(--primary)); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(11,79,46,0.4); }
.auth-forgot-password { text-align: center; margin-top: 1.5rem; }
.auth-forgot-password a { color: var(--accent); text-decoration: none; font-weight: 600; transition: var(--transition); }
.auth-forgot-password a:hover { color: var(--primary); text-decoration: underline; }
.auth-admin-info { margin-top: 2rem; padding: 1.25rem; background: rgba(11,79,46,0.08); border-radius: 12px; border-left: 5px solid var(--primary); font-size: 0.95rem; }
.auth-footer { background: rgba(0,0,0,0.85); color: white; padding: 2rem 5% 1rem; border-top: 3px solid var(--secondary); }
.auth-apps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 2rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.auth-app-card { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 2rem 1.5rem; text-align: center; transition: all 0.5s; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.auth-app-card:hover { transform: translateY(-10px) scale(1.03); background: rgba(255,255,255,0.15); border-color: var(--secondary); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.auth-app-icon { font-size: clamp(2rem,5vw,3rem); color: var(--secondary); margin-bottom: 1rem; transition: transform 0.3s; }
.auth-app-card:hover .auth-app-icon { transform: scale(1.2); color: var(--secondary-light); }
.auth-app-card h3 { font-size: clamp(1.1rem,3vw,1.3rem); margin-bottom: 0.75rem; color: var(--secondary); }
.auth-app-card p { font-size: clamp(0.85rem,2.5vw,0.95rem); color: rgba(255,255,255,0.8); }
.auth-copyright { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: clamp(0.8rem,2.5vw,0.9rem); color: #aaa; max-width: 1200px; margin: 0 auto; }
.auth-modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index:2000; align-items: center; justify-content: center; padding:1rem; }
.auth-modal-content { background: white; padding: clamp(1.5rem,5vw,2.5rem); border-radius: 20px; max-width: 500px; width:100%; max-height:90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.5); border-top:5px solid var(--primary); }
.auth-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:2px solid #eee; }
.auth-modal-title { color: var(--primary); font-size: clamp(1.3rem,4vw,1.8rem); font-weight:700; display: flex; align-items: center; gap:10px; }
.auth-close-btn { background: none; border:none; font-size:2rem; cursor:pointer; color:#777; transition: all 0.3s; width:40px; height:40px; display: flex; align-items: center; justify-content: center; border-radius:50%; }
.auth-close-btn:hover { color: var(--accent); background: rgba(0,0,0,0.05); transform: rotate(90deg); }

/* ========== STYLES DU TABLEAU DE BORD ADMIN ========== */
.loading-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(11,79,46,0.95); backdrop-filter: blur(5px); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; opacity:0; visibility:hidden; transition: all 0.3s; }
.loading-overlay.active { opacity:1; visibility:visible; }
.spinner { width:60px; height:60px; border:4px solid rgba(255,255,255,0.3); border-top-color: var(--secondary); border-radius:50%; animation: spin 1s linear infinite; margin-bottom:1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color:white; font-size:1.1rem; font-weight:500; }

.toast-container { position: fixed; bottom:2rem; right:2rem; z-index:9999; display: flex; flex-direction: column; gap:0.5rem; }
.toast { background: white; border-radius:12px; padding:1rem 1.5rem; box-shadow: var(--card-shadow); border-left:4px solid var(--primary); display: flex; align-items: center; gap:1rem; animation: slideIn 0.3s ease; max-width:400px; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

.admin-dashboard { min-height: 100vh; background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%); display: none; }
.admin-dashboard.active { display: block; }

.admin-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 0.75rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--secondary); position: fixed; top:0; left:0; right:0; z-index:1000; box-shadow:0 4px 20px rgba(0,0,0,0.1); }
.header-left { display: flex; align-items: center; gap:1rem; width:200px; }
.header-left img { height:85px; transition: var(--transition); }
.header-left img:hover { transform: rotate(5deg) scale(1.1); }
.hamburger-menu { display: none; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border: none; border-radius: 8px; width: 45px; height: 45px; font-size: 1.8rem; cursor: pointer; align-items: center; justify-content: center; margin-right: 1rem; box-shadow: 0 4px 8px rgba(11,79,46,0.3); transition: var(--transition); }
.hamburger-menu:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: scale(1.05); }
.header-center { flex:1; text-align: center; }
.header-center h1 { color: var(--primary); font-size:1.3rem; font-weight:600; margin-bottom:0.2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.05); }
.header-center p {  font-size:0.8rem; }
.header-right { display: flex; align-items: center; gap:1.5rem; width:200px; justify-content: flex-end; }
.user-info { display: flex; align-items: center; gap:0.75rem; cursor: pointer; padding:0.3rem 0.5rem; border-radius:8px; transition: var(--transition); }
.user-info:hover { background: var(--gray-100); }
.user-avatar { width:40px; height:40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius:50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size:1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.user-details { text-align: right; }
.user-name { font-weight:600; color: var(--gray-800); font-size:0.9rem; }
.user-role { color: var(--gray-500); font-size:0.75rem; }

/* Profil dropdown style amélioré */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1rem 0;
    border: 1px solid var(--gray-200);
    z-index: 1001;
    animation: fadeInDown 0.3s;
}
@keyframes fadeInDown {
    from { opacity:0; transform: translateY(-10px); }
    to { opacity:1; transform: translateY(0); }
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.profile-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}
.profile-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.95rem;
}
.profile-menu-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.profile-menu-item i {
    width: 20px;
    color: var(--primary);
}

.admin-wrapper { display: flex; min-height:100vh; padding-top:80px; }
.admin-sidebar { width:280px; background: var(--accent); border-right:1px solid var(--gray-200); padding:4rem 0; overflow-y: auto; position: fixed; left:0; top:80px; bottom:0; z-index:900; box-shadow: 2px 0 10px rgba(0,0,0,0.05); }
.admin-main-content { flex:1; padding:3.5rem; overflow-y: auto; margin-left:280px; width:calc(100% - 280px); }

/* Sidebar mobile */
.mobile-sidebar { display: none; position: fixed; top: 80px; left: 0; bottom: 0; width: 280px; background: white; border-right: 1px solid var(--gray-200); padding: 1.5rem 0; overflow-y: auto; z-index: 950; box-shadow: 4px 0 15px rgba(0,0,0,0.1); transform: translateX(-100%); transition: transform 0.3s ease; }
.mobile-sidebar.open { transform: translateX(0); }
.mobile-overlay { display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); z-index: 900; }
.mobile-overlay.active { display: block; }

.sidebar-section { margin-bottom:1.5rem; }
.sidebar-title { padding:0.5rem 1.5rem; color: var(--gray-500); font-size:0.75rem; text-transform: uppercase; letter-spacing:0.5px; font-weight:600; }
.sidebar-link { display: flex; align-items: center; padding:0.75rem 1.5rem; color: var(--gray-700); border-left:3px solid transparent; gap:1rem; font-weight:500; cursor: pointer; width:100%; text-align: left; background: none; border:none; font-size:0.95rem; transition: background-color 0.2s; }
.sidebar-link i { width:24px; color: var(--primary); font-size:1.2rem; }
.sidebar-link:hover { background: var(--gray-100); border-left-color: var(--primary); }
.sidebar-link.active { background: var(--gray-100); border-left-color: var(--secondary); color: var(--primary); font-weight:600; }

.gestion-item { display: flex; align-items: center; padding:0.5rem 1.5rem 0.5rem 3.5rem; color: var(--gray-700); gap:0.75rem; font-size:0.9rem; cursor: pointer; width:100%; text-align: left; background: none; border:none; border-left:3px solid transparent; transition: background-color 0.2s; }
.gestion-item:hover { background: var(--gray-100); border-left-color: var(--secondary); }
.gestion-item.active { background: var(--gray-100); border-left-color: var(--primary); font-weight:600; }

.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom:2rem; flex-wrap: wrap; gap:1rem; }
.content-title { font-size:1.8rem; font-weight:700; color: var(--primary); display: flex; align-items: center; gap:1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.05); }
.content-title i { color: var(--secondary); filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1)); }

/* ========== DASHBOARD CARDS ========== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.15);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}
.stat-content h3 {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}
.stat-content p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== FORMULAIRES ========== */
.card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.card:hover {
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.15);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.form-group label i {
    color: var(--secondary);
    font-size: 1.1rem;
}
.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    width: 100%;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(11,79,46,0.15);
    transform: translateY(-2px);
}
.form-control[readonly] {
    background-color: var(--gray-100);
    cursor: not-allowed;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B4F2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.btn-primary {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(11,79,46,0.2);
    text-decoration: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11,79,46,0.3);
}
.btn-secondary {
    padding: 0.875rem 2rem;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(244,184,27,0.2);
}
.btn-secondary:hover {
    background: #e6b01e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244,184,27,0.3);
}
.btn-outline {
    padding: 0.875rem 2rem;
    background: #e6b01e;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    transition: var(--transition);
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-danger {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(239,68,68,0.2);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, var(--danger));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239,68,68,0.3);
}

/* ========== LISTES ========== */
.table-container { background: white; border-radius:24px; padding:1.5rem; box-shadow: var(--card-shadow); border:1px solid var(--gray-200); overflow-x: auto; }
.data-table { width:100%; border-collapse: collapse; min-width: 800px; }
.data-table th { text-align: left; padding:1rem; background: var(--primary-light); color: var(--gray-100); font-weight:600; font-size:0.85rem; border-bottom:2px solid var(--secondary); }
.data-table td { padding:1rem; border-bottom:1px solid var(--gray-200); color: var(--gray-700); }
.data-table tr:hover td { background: var(--gray-100); }
.badge { padding:0.25rem 0.75rem; border-radius:100px; font-size:0.75rem; font-weight:600; display: inline-block; white-space: nowrap; }
.badge-primary { background: rgba(11,79,46,0.15); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }

/* Nouveaux statuts */
.status-nouveau { background: #e0f2fe; color: #0369a1; }
.status-en-cours { background: #fef9c3; color: #854d0e; }
.status-valide-equipe-technique { background: #bbf7d0; color: #166534; }
.status-valide-chef-scm { background: #c7d2fe; color: #3730a3; }
.status-valide-dircom { background: #fed7aa; color: #9a3412; }
.status-valide-cabinet { background: #d9f99d; color: #3f6212; }
.status-rejeté { background: #fee2e2; color: #b91c1c; }
.status-en-attente { background: #f1f5f9; color: #475569; }

.status-badge { padding:0.25rem 0.75rem; border-radius:100px; font-size:0.75rem; font-weight:600; display: inline-block; }

.action-group { display: flex; gap:0.5rem; flex-wrap: wrap; }
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--secondary);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 10px rgba(11,79,46,0.3);
}
.action-btnre {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btnre:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 10px rgba(11,79,46,0.3);
}
.action-btnhh {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--primary-light);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btnhh:hover {
    background: var(--primary-light);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 10px rgba(11,79,46,0.3);
}
.action-btndd {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--primary-light);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btndd:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 10px rgba(11,79,46,0.3);
}
.action-btn.examiner {
    background: var(--secondary);
    color: var(--primary);
}
.action-btn.examiner:hover {
    background: var(--primary);
    color: white;
}
.action-btn.delete {
    background-color: var(--danger);
    color: white;
}
.action-btn.delete:hover {
    background: var(--danger);
    color: white;
}
.password-visible { font-family: 'Courier New', monospace; background: var(--gray-100); padding:0.25rem 0.75rem; border-radius:20px; font-size:0.85rem; cursor: pointer; display: inline-block; transition: var(--transition); }
.password-visible:hover { background: var(--primary); color: white; }

/* Upload zones améliorées */
.upload-area-enhanced {
    border: 2px dashed var(--primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    background: var(--gray-100);
    margin: 1rem 0;
    cursor: pointer;
    transition: var(--transition);
}
.upload-area-enhanced:hover {
    background: var(--gray-200);
    border-color: var(--secondary);
    transform: scale(1.02);
}
.upload-area-enhanced i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}
.upload-area-enhanced.small {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.upload-area-enhanced.small i {
    font-size: 1.5rem;
    margin-bottom: 0;
}
.upload-formats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.format-badge {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}
.upload-limit {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Liste des fichiers avec style capture */
.file-list {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 1rem;
    background: white;
}
.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.file-list-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.file-list-header-left label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.file-list-header-left label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.file-list-header-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.file-list-header-right button {
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    padding: 0.25rem 1rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.file-list-header-right button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.file-item:hover {
    background: var(--gray-50);
}
.file-item:last-child {
    border-bottom: none;
}
.file-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.file-item i {
    font-size: 1.5rem;
    color: var(--primary);
}
.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.file-name {
    font-weight: 500;
    color: var(--gray-800);
}
.file-size {
    font-size: 0.75rem;
    color: var(--gray-500);
}
.file-total {
    margin-top: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* Style pour les champs de lien vidéo */
.video-link-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.video-link-input input {
    flex: 1;
    min-width: 200px;
}

.image-thumb { width:80px; height:80px; object-fit: cover; border-radius:8px; border:1px solid var(--gray-200); }

/* Modals */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); z-index:2000; align-items: center; justify-content: center; padding:1rem; }
.modal-content { background: white; border-radius:32px; max-width:600px; width:100%; max-height:90vh; overflow-y: auto; padding:2rem; box-shadow: var(--card-shadow); animation: zoomIn 0.3s; }
@keyframes zoomIn {
    from { opacity:0; transform: scale(0.9); }
    to { opacity:1; transform: scale(1); }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:2px solid var(--gray-200); }
.modal-title { color: var(--primary); font-size:1.3rem; font-weight:700; }
.close-btn { background: none; border:none; font-size:2rem; cursor: pointer; color: var(--gray-500); line-height:1; transition: var(--transition); }
.close-btn:hover { color: var(--danger); transform: rotate(90deg); }
.modal-footer { display: flex; justify-content: flex-end; gap:1rem; margin-top:1.5rem; padding-top:1rem; border-top:2px solid var(--gray-200); }

/* Page d'édition */
.edit-page { margin-bottom: 2rem; }
.assign-section { background: var(--gray-100); border-radius:16px; padding:1.5rem; margin:2rem 0; }
.assign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:1rem; }
.select-all-bar { background: var(--gray-200); padding:0.5rem 1rem; border-radius:8px; margin-bottom:1rem; display: flex; align-items: center; gap:1rem; }

/* Page d'examen */
.examine-section { margin-bottom: 1.5rem; }
.examine-detail-grid { grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--gray-50); padding: 1rem; border-radius: 12px; border:1px solid var(--gray-200); margin: 1rem; } 
.examine-files { display: flex; flex-direction: column; gap: 0.5rem; }
.examine-file-item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem; background: var(--gray-100); border-radius: 8px; transition: var(--transition); border:1px solid transparent; }
.examine-file-item:hover { background: var(--gray-200); border-color: var(--primary); transform: translateX(5px); }
.examine-file-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.examine-file-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.examine-file-actions button, .examine-file-actions a {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.examine-file-actions button:hover, .examine-file-actions a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}
.examine-actions { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.examine-historique { max-height: 300px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.5rem; background: var(--gray-50); }
.historique-item { padding: 0.5rem; border-bottom: 1px solid var(--gray-200); font-size: 0.85rem; }
.historique-item:last-child { border-bottom: none; }

/* Blocs de commentaires par rôle */
.role-block {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
}
.role-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.role-title i {
    color: var(--secondary);
}

/* Section assignation pour rejet */
.assign-block {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
}
.assign-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.assign-title i {
    color: var(--secondary);
}

/* Lecteur vidéo */
video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}
.status-retour {
    background: #ffedd5;
    color: #9a3412;
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245,158,11,0.3);
}
.file-separator {
    border-top: 2px dashed var(--secondary);
    margin: 1rem 0;
    padding: 0;
}

/* ========== HISTORIQUE – STYLE SIMPLE ========== */
.examine-historique {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.historique-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.historique-item:last-child {
    border-bottom: none;
}
.historique-action {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: block;
}
.historique-details {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}
.historique-detail-item {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.historique-detail-item strong {
    color: var(--gray-600);
    font-weight: 600;
}
.historique-detail-item a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}
.historique-detail-item a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}
.historique-footer {
    font-size: 0.85rem;
    color: var(--gray-500);
    border-top: 1px dashed var(--gray-300);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.historique-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.historique-user {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--primary);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .historique-item { padding: 1rem; }
    .historique-footer { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
@media screen and (max-width: 1200px) {
    .auth-main { gap: 1.5rem; }
}
@media screen and (max-width: 992px) {
    .admin-sidebar { display: none; }
    .hamburger-menu { display: flex; }
    .mobile-sidebar { display: block; }
    .admin-main-content { margin-left:0; width:100%; }
    .admin-header { padding:0.75rem 1rem; }
    .header-left { width:auto; }
    .header-right { width:auto; }
    .user-details { display: none; }
    .auth-main { flex-direction: column; }
    .auth-left-panel { padding-right:0; margin-bottom:2rem; }
    .auth-right-panel { padding-left:0; }
    .auth-illustration { max-width:70%; margin:0 auto; }
    /* Améliorations pour la sidebar mobile */
    .mobile-sidebar .sidebar-section { margin-bottom: 1rem; }
    .mobile-sidebar .sidebar-title { padding: 0.75rem 1.5rem; font-size: 0.85rem; background-color: var(--gray-100); border-bottom: 1px solid var(--gray-200); cursor: pointer; position: relative; user-select: none; }
    .mobile-sidebar .sidebar-title::after { content: '▼'; font-size: 0.7rem; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--primary); transition: transform 0.3s; }
    .mobile-sidebar .sidebar-title.active::after { transform: translateY(-50%) rotate(180deg); }
    .mobile-sidebar .gestion-item { display: flex !important; padding: 0.75rem 1.5rem 0.75rem 3rem; font-size: 0.9rem; border-left: 3px solid transparent; transition: all 0.2s; }
    .mobile-sidebar .gestion-item:hover { background-color: var(--gray-100); border-left-color: var(--secondary); }
    .mobile-sidebar .gestion-item.active { background-color: var(--gray-200); border-left-color: var(--primary); font-weight: 600; }
    .mobile-sidebar .gestion-item i { width: 20px; font-size: 1rem; color: var(--primary); }
    .mobile-sidebar .sidebar-section:not(:last-child) { margin-bottom: 1.5rem; }
    .mobile-overlay { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
    .hamburger-menu { width: 40px; height: 40px; font-size: 1.5rem; }
}
@media screen and (max-width: 768px) {
    .auth-header { flex-direction: column; text-align: center; }
    .auth-ministry-logo { height:50px; }
    .auth-header-title h1 { font-size:1.3rem; }
    .auth-apps-grid { grid-template-columns:1fr; }
    .examine-detail-grid { grid-template-columns:1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 576px) {
    .auth-main { padding:1.5rem 4%; }
    .auth-container { padding:1.5rem; }
    .video-link-input { flex-direction: column; align-items: stretch; }
    .video-link-input input { width:100%; }
    .modal-content { padding:1.5rem; }
    .card { padding: 1.5rem; }
}
@media screen and (max-width: 480px) {
    .auth-header-title h1 { font-size:1.1rem; }
    .admin-header { padding:0.4rem 0.5rem; }
    .header-center h1 { font-size:0.9rem; }
    .admin-main-content { padding:0.75rem; }
}

/* ========== STYLES SUPPLÉMENTAIRES POUR LARAVEL ========== */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.alert-success {
    background: rgba(16,185,129,0.15);
    border-left: 4px solid var(--success);
    color: var(--success);
}
.alert-error, .alert-danger {
    background: rgba(239,68,68,0.15);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}
.alert-warning {
    background: rgba(245,158,11,0.15);
    border-left: 4px solid var(--warning);
    color: var(--warning);
}
.alert-info {
    background: rgba(59,130,246,0.15);
    border-left: 4px solid var(--info);
    color: var(--info);
}
.invalid-feedback {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.is-invalid {
    border-color: var(--danger) !important;
}

/* ========== FILTRE ACTIF - DESIGN MODERNE ========== */
.filter-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
}
.filter-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    flex-wrap: wrap;
}
.filter-info i {
    font-size: 1.3rem;
    color: var(--primary);
    background: rgba(11, 79, 46, 0.1);
    padding: 6px;
    border-radius: 12px;
}
.filter-status-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(11, 79, 46, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.filter-clear i {
    font-size: 1rem;
    transition: transform 0.2s;
}
.filter-clear:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.2);
}
.filter-clear:hover i {
    transform: rotate(90deg);
}
@media screen and (max-width: 576px) {
    .filter-active-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .filter-info {
        justify-content: space-between;
    }
    .filter-clear {
        justify-content: center;
    }
}

/* ========== CARTE D'INFORMATION (CONDITION D'UTILISATION) ========== */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, #fef9e6 0%, #fff9ef 100%);
    border-left: 5px solid var(--warning);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-icon i {
    font-size: 3rem;
    color: var(--warning);
}
.info-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-content p h3 {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.4;
}
.info-content strong {
    color: var(--warning);
    font-weight: 700;
}
.info-card-light {
    background: #f8fafc;
    border-left-color: var(--primary);
}
.info-card-light .info-icon {
    background: rgba(11, 79, 46, 0.1);
}
.info-card-light .info-icon i {
    color: var(--primary);
}
.info-card-light .info-content p strong {
    color: var(--primary);
}
@media screen and (max-width: 576px) {
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
    .info-icon {
        width: 40px;
        height: 40px;
    }
    .info-icon i {
        font-size: 1.5rem;
    }
}

/* ========== TABLEAU DE BORD AMÉLIORÉ ========== */
.content-header {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}
.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.content-title i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}
.card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.card-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
    background: white !important;
}
.card-header h4, .card-header h3 {
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header h4 i, .card-header h3 i {
    color: var(--primary);
    font-size: 1.4rem;
}
.card-body {
    padding: 1.5rem;
}
.dashboard-stats {
    display: grid;
    gap: 4.5rem;
    margin-bottom: 0;
}
.dashboard-stats .stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    border-left: 6px solid #f59e0b;
}
.dashboard-stats .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px -12px rgba(11, 79, 46, 0.15);
}
.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color));
    color: white;
    font-size: 1.8rem;
    transition: transform 0.2s;
}
.stat-card:hover .stat-icon {
    transform: scale(1.05);
}
.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}
.stat-content p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
}
.stat-content .badge {
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: 500;
}
.badge {
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.7rem;
}
.status-nouveau { background: #e0f2fe; color: #0369a1; }
.status-en-cours { background: #fdeb21; color: #030303; }
.status-retour { background: #fc0000; color: #ffffff; }
.status-valide-equipe-technique { background: #dcfce7; color: #166534; }
.status-valide-chef-scm { background: #003cff; color: #ffffff; }
.status-valide-dircom { background: #31fa3b; color: #000000; }
.status-valide-cabinet { background: #3ac6fd; color: #0d0e0d; }
.info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(105deg, #fefce8 0%, #fff9ef 100%);
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    border-left: 6px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1e293b;
}
.info-content p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}
.info-content p strong {
    color: #f59e0b;
}
@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .stat-content p {
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    .card-header h4, .card-header h3 {
        font-size: 1.2rem;
    }
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .content-title {
        font-size: 1.4rem;
    }
    .card-body {
        padding: 1rem;
    }
    .dashboard-stats .stat-card {
        padding: 0.8rem;
    }
}

/* ========== MODALS PROFIL ET AIDE ========== */
.profile-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.profile-detail:last-child {
    border-bottom: none;
}
.profile-detail-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}
.profile-detail-info {
    flex: 1;
}
.profile-detail-info label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.1rem;
}
.profile-detail-info p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    margin: 0;
}
.help-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.help-section:last-child {
    border-bottom: none;
}
.help-section i {
    font-size: 1.6rem;
    color: var(--primary);
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 12px;
}
.help-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
}
.help-section p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}
.help-section a {
    color: var(--primary);
    text-decoration: none;
}
.help-section a:hover {
    text-decoration: underline;
}
.modal {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== SIDEBAR AMÉLIORÉE ========== */
.admin-sidebar {
    width: 280px;
    background-color:#fff;
    border-right: none;
    padding: 4rem 0 2rem 0;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    z-index: 900;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03), 1px 0 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.admin-sidebar::-webkit-scrollbar {
    width: 1px;
}
/* .admin-sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
} */
/* .admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
} */
.sidebar-section {
    margin-bottom: 2rem;
}
.sidebar-title {
    padding: 0.5rem 1.8rem;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: transparent;
    margin-bottom: 0.5rem;
}
.sidebar-titleHH {
    padding: 0.5rem 1.8rem;
    color: var(--gray-100);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 0 12px 12px 0;
    background: var(--primary-light);
    margin-bottom: 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 2rem 1.8rem;
    margin: 0.2rem 0;
    color: var(--gray-700);
    border-left: 3px solid transparent;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    border-radius: 0 12px 12px 0;
    position: relative;
}
.sidebar-link i {
    width: 24px;
    font-size: 2rem;
    color: var(--primary-light);
    transition: transform 0.2s;
}
.sidebar-link:hover {
    background: rgba(11, 79, 46, 0.06);
    border-left-color: var(--secondary);
    color: var(--primary);
}
.sidebar-link:hover i {
    transform: translateX(4px);
    color: var(--primary);
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(11, 79, 46, 0.08) 0%, rgba(11, 79, 46, 0.02) 100%);
    border-left-color: var(--secondary);
    color: var(--primary-dark);
    font-weight: 600;
}
.sidebar-link.active i {
    color: var(--primary);
}
.gestion-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.8rem 0.5rem 3.8rem;
    margin: 0.1rem 0;
    color: var(--gray-600);
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
}
.gestion-item i {
    width: 20px;
    font-size: 1.3rem;
    color: var(--primary-light);
}
.gestion-item:hover {
    background: rgba(11, 79, 46, 0.05);
    border-left-color: var(--secondary);
    color: var(--primary);
    transform: translateX(2px);
}
.gestion-item.active {
    background: rgba(11, 79, 46, 0.08);
    border-left-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}
.gestion-item.active i {
    color: var(--primary);
}
.sidebar-section .sidebar-title + .sidebar-title {
    margin-top: 0.75rem;
    padding-left: 1.8rem;
    font-size: 0.65rem;
    color: var(--gray-400);
}
.sidebar-section > div {
    margin-left: 0;
}
.sidebar-section .sidebar-title[style*="padding-left:1rem"] {
    padding-left: 1.8rem !important;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
}
@media screen and (max-width: 992px) {
    .admin-sidebar { display: none; }
    .mobile-sidebar { background: white; box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1); }
    .mobile-sidebar .sidebar-link, .mobile-sidebar .gestion-item { border-radius: 0; margin: 0; }
    .mobile-sidebar .sidebar-title .sidebar-titleHH { background: var(--gray-100); margin-bottom: 0; font-size: 1rem; }
}
.recap-member:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}
.recap-summary {
    background: var(--gray-50);
    border-left: 3px solid var(--secondary);
}
.stat-card-modern {
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.status-badge-link {
    text-decoration: none;
    display: block;
}
.status-badge-link .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}
.status-badge-link .badge:hover {
    filter: brightness(0.95);
    transform: translateX(3px);
}
.badge-primary {
    background: var(--primary);
    color: white;
}
.stat-card-modern {
    border: none;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}
.stat-card-modern .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.stat-card-modern .card-title i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-card-modern .badge.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    padding: 0.4rem 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(11, 79, 46, 0.2);
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* ========== STYLES SPÉCIFIQUES POUR LA PAGE RÉCAPITULATION (MODERNES) ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}
.stat-card-full {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(203, 213, 225, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.stat-card-full:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}
.stat-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.card-header-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.card-header-custom .stat-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 12px -6px rgba(11, 79, 46, 0.3);
}
.card-header-custom h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
    letter-spacing: -0.3px;
}
.total-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.75rem;
    vertical-align: middle;
}
.total-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0.5rem 0 0.75rem 0;
    line-height: 1;
}
.status-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}
.status-item {
    background: var(--gray-50);
    border-radius: 40px;
    padding: 0.35rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}
.status-item:hover {
    transform: scale(1.02);
    background: white;
    border-color: var(--primary-light);
}
.status-badge-sm {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    margin-right: 4px;
}
.status-count {
    font-weight: 700;
    color: var(--gray-800);
    background: white;
    padding: 0 0.3rem;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}
.team-table-wrapper {
    background: white;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.team-table th {
    background: var(--gray-100);
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
}
.team-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}
.team-table tr:last-child td {
    border-bottom: none;
}
.team-table tr:hover td {
    background: var(--gray-50);
}
.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gray-100);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.stat-link i {
    font-size: 1.1rem;
}
.stat-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(11, 79, 46, 0.2);
}
.user-avatar-mini {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
}
.user-name {
    font-weight: 600;
    color: var(--gray-800);
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title i {
    color: var(--secondary);
    font-size: 1.6rem;
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .team-table th, .team-table td {
        padding: 0.8rem;
    }
    .stat-link {
        padding: 0.2rem 0.7rem;
    }
}





















































/* ========== BARRE DE RECHERCHE MODERNE ========== */
.search-bar-modern {
    background: white;
    border-radius: 60px;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}
.search-bar-modern:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(11, 79, 46, 0.1);
}
.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-icon {
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: color 0.2s;
}
.search-bar-modern:focus-within .search-icon {
    color: var(--primary);
}
.search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
    color: var(--gray-700);
}
.search-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}
.search-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-search, .btn-clear {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}
.btn-search {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 5px rgba(11, 79, 46, 0.1);
}
.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(11, 79, 46, 0.2);
}
.btn-clear {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.btn-clear:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}
/* Version alternative pour fond sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .search-bar-modern {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
    .search-input {
        color: var(--gray-200);
    }
}
/* Responsive */
@media (max-width: 576px) {
    .search-bar-modern {
        border-radius: 24px;
        padding: 0.5rem;
    }
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .search-actions {
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
    .btn-search, .btn-clear {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}



c{
    background-size: cover;
    background-position: center;
    background-image: url(ff.png);
}




.media-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.media-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
}

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

.media-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.media-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
}

.media-total {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: var(--gray-800);
}

.media-link {
    margin-left: auto;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}






.media-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}


.card mt-4{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #f97316 , #3b82f6, #10b981);
    }



    /* ========== SIDEBAR PROFESSIONNELLE ET ATTRACTIVE ========== */
.admin-sidebar {
    /* background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%); */
    background-color: #0B4F2E;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(2px);
}

/* En-tête */
.sidebar-brand {
    border-radius: 12px 0 0 12px ;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    left: 3rem;
    background:  var(--accent-color);
    padding: 1.8rem 1.5rem 1.2rem 1.8rem;
    margin-bottom: 1rem;
    margin-left: 1.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-brand i {
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: #f97316;
}
.sidebar-brand span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}

/* Sections et titres */
.sidebar-section {
    margin-bottom: 1.8rem;
}
.sidebar-title {
    padding: 0 1.8rem 0.4rem 1.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
}

/* Liens principaux */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.5rem;
    margin: 0.2rem 1rem;
    border-radius: 14px;
    transition: all 0.2s ease;
    color: white;
    font-weight: 500;
    background: transparent;
}
.sidebar-link i {
    font-size: 2.25rem;
    width: 28px;
    color:white;
    transition: transform 0.2s;
}
.sidebar-link span {
    font-size: 0.95rem;
}
.sidebar-link:hover {
    background: rgba(11, 79, 46, 0.08);
    color: white;
    transform: translateX(5px);
}
.sidebar-link:hover i {
    color: white;
    transform: scale(1.05);
}
.sidebar-link.active {
    /* background: linear-gradient(90deg, rgba(11, 79, 46, 0.12), transparent); */
    background: var(--gray-200);
    color: var(--primary-dark);
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}
.sidebar-link.active i {
    color: #f97316;
}

/* Sous‑menus */
.submenu {
    margin-bottom: 1rem;
}
.submenu-title {
    padding: 0.3rem 1.8rem 0.3rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}
.gestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    margin: 0.1rem 1rem;
    border-radius: 12px;
    transition: all 0.2s;
    color: white;
    font-size: 2.9rem;
}
.gestion-item i {
    font-size: 1.2rem;
    width: 24px;
    color: #f97316;
}
.gestion-item span {
    font-size: 1.3rem;
}
.gestion-item:hover {
    background: rgba(11, 79, 46, 0.06);
    /* background: rgba(11, 79, 46, 0.08); */
    color:var(--primary); 
    transform: translateX(4px);
}
.gestion-item.active {
    /* background: rgba(11, 79, 46, 0.08); */
    background: var(--gray-200);
    color: var(--primary-dark);
    font-weight: 500;
    border-left: 2px solid var(--primary);
    
}
.gestion-item.active i {
    color: var(--primary);
}

/* Sidebar mobile */
.mobile-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
}
.mobile-sidebar .sidebar-brand {
    padding: 1rem 1.5rem;
}
.mobile-sidebar .sidebar-link,
.mobile-sidebar .gestion-item {
    width: auto;
    margin: 0.2rem 1rem;
}



/* Footer Sidebar */
.sidebar-footer{
    margin-top: auto;
    padding: 20px 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.sidebar-footer img{
    width: 100%;
    max-width: 180px;
    border-radius: 12px;
    opacity: 0.9;
    animation: floatImage 4s ease-in-out infinite;
}

.sidebar-footer p{
    margin-top: 10px;
    font-size: 13px;
    color: #bfc9d4;
    letter-spacing: 0.5px;
}

/* Animation légère */
@keyframes floatImage{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-5px);
    }
    100%{
        transform: translateY(0px);
    }
}
@media screen and (max-width: 992px) {
    .admin-sidebar { display: none; }
    .mobile-sidebar { background:#2f6e59; box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1); }
    .mobile-sidebar .sidebar-link, .mobile-sidebar .gestion-item { border-radius: 0; margin: 0; }
    .mobile-sidebar .sidebar-title .sidebar-titleHH { background: #2f6e59; margin-bottom: 0; font-size: 1rem; }
    .mobile-sidebar .sidebar-title {
        background: #2f6e59;
    }
    .gestion-item i {
    color: #f97316;
}
}
