/**
 * ZenVote - Design System Light Premium
 * Fond blanc, texte sombre, vert élégant
 * 
 * @package ZenVote
 * @version 6.0.0
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    /* Couleurs principales */
    --zen-white: #FFFFFF;
    --zen-gray-50: #F9FAFB;
    --zen-gray-100: #F3F4F6;
    --zen-gray-200: #E5E7EB;
    --zen-gray-300: #D1D5DB;
    --zen-gray-400: #9CA3AF;
    --zen-gray-500: #6B7280;
    --zen-gray-600: #4B5563;
    --zen-gray-700: #374151;
    --zen-gray-800: #1F2937;
    --zen-gray-900: #111827;
    
    --zen-green: #10B981;
    --zen-green-dark: #059669;
    --zen-green-light: #34D399;
    --zen-green-50: #ECFDF5;
    --zen-green-100: #D1FAE5;
    --zen-green-glow: rgba(16, 185, 129, 0.1);
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Rayons */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--zen-gray-800);
    background: var(--zen-gray-50);
    overflow-x: hidden;
    position: relative;
}

/* Fond avec gradient subtil et texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, var(--zen-white) 0%, var(--zen-gray-50) 100%),
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Amélioration de l'alignement et de l'espacement des sections */
section {
    position: relative;
    padding: 4rem 0 !important;
}

section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Titres de sections alignés comme zekin.me */
section .text-center h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--zen-gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

section .text-center .lead {
    font-size: 1.1rem;
    color: var(--zen-gray-600);
    margin-bottom: 3rem;
}

/* Grilles d'événements alignées proprement */
.row.g-4 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row.g-4 > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Cartes d'événements avec espacement cohérent */
.card {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-8px) !important;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--zen-gray-600);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--zen-gray-200);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--zen-gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zen-green);
    transition: var(--transition);
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: var(--zen-gray-600);
    font-weight: 500;
    font-size: 14px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.nav-link:hover {
    color: var(--zen-green);
    background: var(--zen-green-50);
}

/* Dropdown au survol */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.nav-item.dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    border: 1px solid var(--zen-gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: var(--zen-white);
    padding: 8px 0;
    min-width: 220px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--zen-gray-700);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--zen-green-50);
    color: var(--zen-green);
    padding-left: 24px;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid var(--zen-gray-200);
    height: 0;
}

/* Garder le menu ouvert quand on survole le menu */
.nav-item.dropdown .dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--zen-green);
    color: var(--zen-white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--zen-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: var(--zen-white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--zen-gray-700);
    border: 1.5px solid var(--zen-gray-300);
}

.btn-outline-primary:hover {
    background: var(--zen-green-50);
    border-color: var(--zen-green);
    color: var(--zen-green);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ============================================
   CARTES
   ============================================ */
.card {
    background: var(--zen-white);
    border: 1px solid var(--zen-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: var(--space-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--zen-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--zen-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    padding: var(--space-lg);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    background-color: #10B981 !important;
    color: white !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card-header * {
    color: white !important;
}

.card-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
    margin: 0;
}

.card-body {
    color: var(--zen-gray-600);
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-card {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    background-color: #10B981 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.stats-card * {
    color: white !important;
}

.stats-card .stats-label,
.stats-card .stats-number,
.stats-card .stats-icon svg,
.stats-card span,
.stats-card div,
.stats-card p {
    color: white !important;
    fill: white !important;
}

/* Forcer les styles inline à être blancs */
.stats-card [style*="color: #6b7280"],
.stats-card [style*="color:#6b7280"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

.stats-card::before {
    display: none;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.stats-icon {
    margin-bottom: 1rem !important;
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.stats-icon svg {
    stroke: white !important;
    fill: white !important;
    width: 24px !important;
    height: 24px !important;
    color: white !important;
}

.stats-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
    color: white !important;
    letter-spacing: -0.02em;
    color: white !important;
}

.stats-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white !important;
    margin-bottom: 0.5rem;
}

/* ============================================
   DASHBOARD
   ============================================ */

/* Top Header Bar (comme EasyHR) - ZÉRO espace en haut */
.dashboard-top-header {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem 1.5rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    .dashboard-top-header {
        padding: 1rem 2rem !important;
    }
}

.dashboard-search {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0.625rem 1rem !important;
    width: 300px !important;
    transition: all 0.2s !important;
}

.dashboard-search svg {
    color: #6b7280 !important;
    flex-shrink: 0 !important;
}

.dashboard-search:focus-within {
    background: #fff !important;
    border-color: var(--zen-green) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.dashboard-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    font-size: 14px !important;
    color: #111827 !important;
}

.dashboard-search-input::placeholder {
    color: #9ca3af !important;
}

.dashboard-date-range {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0.625rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-size: 14px !important;
    color: #111827 !important;
}

.dashboard-date-range:hover {
    border-color: var(--zen-green) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.dashboard-date-range svg:first-child {
    color: #6b7280 !important;
}

.dashboard-date-range svg:last-child {
    color: #9ca3af !important;
}

.dashboard-icon-btn {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #6b7280 !important;
}

.dashboard-icon-btn:hover {
    background: #f9fafb !important;
    color: #111827 !important;
}

.dashboard-notification-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
}

.dashboard-user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
}

.dashboard-user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--zen-green) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    position: relative !important;
    overflow: hidden !important;
}

.dashboard-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.dashboard-user-avatar:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
}

/* Dropdown menu pour le profil utilisateur */
.dashboard-user-profile .dropdown-menu {
    min-width: 200px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
}

.dashboard-user-profile .dropdown-item {
    padding: 0.5rem 0.75rem !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

.dashboard-user-profile .dropdown-item:hover {
    background: #f9fafb !important;
    color: var(--zen-green) !important;
}

.dashboard-user-profile .dropdown-header {
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.dashboard-page-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.25rem 0 !important;
    letter-spacing: -0.02em !important;
}

.dashboard-page-subtitle {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--zen-gray-200);
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--zen-gray-900);
    margin: 0 0 var(--space-xs) 0;
    letter-spacing: -0.03em;
    font-family: 'Poppins', sans-serif;
}

.dashboard-subtitle {
    font-size: 15px;
    color: var(--zen-gray-600);
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.dashboard-card {
    background: var(--zen-white);
    border: 1px solid var(--zen-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zen-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: var(--zen-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--zen-green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: var(--transition);
    position: relative;
}

.dashboard-card-icon svg {
    stroke: var(--zen-green);
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.dashboard-card:hover .dashboard-card-icon {
    background: var(--zen-green);
    transform: scale(1.1);
}

.dashboard-card:hover .dashboard-card-icon svg {
    stroke: var(--zen-white);
}

.dashboard-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zen-gray-500);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--zen-gray-900);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================
   TABLEAUX
   ============================================ */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--zen-gray-50);
    color: var(--zen-gray-600);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 2px solid var(--zen-gray-200);
    text-align: left;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--zen-gray-100);
}

.table tbody tr:hover {
    background: var(--zen-gray-50);
}

.table tbody td {
    padding: var(--space-md) var(--space-lg);
    color: var(--zen-gray-800);
    font-size: 14px;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--zen-gray-900);
    background: var(--zen-white);
    border: 1.5px solid var(--zen-gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--zen-green);
    box-shadow: 0 0 0 3px var(--zen-green-glow);
    background: var(--zen-white);
}

.form-control::placeholder {
    color: var(--zen-gray-400);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--zen-gray-700);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bg-success {
    background: var(--zen-green-50);
    color: var(--zen-green);
    border: 1px solid var(--zen-green-100);
}

.bg-warning {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.bg-secondary {
    background: var(--zen-gray-100);
    color: var(--zen-gray-600);
    border: 1px solid var(--zen-gray-200);
}

.bg-primary {
    background: var(--zen-green);
    color: var(--zen-white);
    border: 1px solid var(--zen-green);
}

/* ============================================
   ICÔNES SVG
   ============================================ */
.icon {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   FEATURE CARDS (Page d'accueil)
   ============================================ */
.feature-card {
    background: var(--zen-white);
    border: 1px solid var(--zen-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--zen-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--zen-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--zen-green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: var(--transition);
}

.feature-icon svg {
    stroke: var(--zen-green);
    width: 32px;
    height: 32px;
}

.feature-card:hover .feature-icon {
    background: var(--zen-green);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--zen-white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zen-gray-900);
    margin-bottom: var(--space-sm);
    font-family: 'Poppins', sans-serif;
}

.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--zen-gray-600);
}

/* ============================================
   UTILITAIRES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Override Bootstrap container pour pages avec sidebar - FORCER suppression des marges */
/* Optimisé pour ordinateur : paddings réduits */
body.has-sidebar .container,
body.has-sidebar main .container,
body.has-sidebar main .container.py-5,
body.has-sidebar main div.container {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
}

/* Sur écrans larges (> 1200px), padding légèrement augmenté */
@media (min-width: 1200px) {
    body.has-sidebar .container,
    body.has-sidebar main .container,
    body.has-sidebar main .container.py-5 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.py-5 {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Réduire le padding vertical sur les pages dashboard */
body.has-sidebar main .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 1200px) {
    body.has-sidebar main .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

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

.text-muted {
    color: var(--zen-gray-600) !important;
}

/* ============================================
   ANIMATIONS AVANCÉES (Inspirées landing pages modernes)
   ============================================ */

/* Animation fadeInUp avec délais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes d'animation de base */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.slide-in-up {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

/* Animations au scroll (s'appliquent quand visible) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-on-scroll.fade-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-up.animated {
    transform: translateY(0);
}

.animate-on-scroll.fade-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.fade-right {
    transform: translateX(40px);
}

.animate-on-scroll.fade-right.animated {
    transform: translateX(0);
}

.animate-on-scroll.fade-scale {
    transform: scale(0.9);
}

.animate-on-scroll.fade-scale.animated {
    transform: scale(1);
}

/* Animations avec délais */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Effets de hover améliorés */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.btn-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* Animation pour les statistiques/nombres */
.number-count {
    animation: fadeInUp 0.8s ease-out;
}

/* Animation de pulsation pour les éléments importants */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Animation flottante */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Effet shimmer pour les boutons CTA */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Animation de texte progressif */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: textSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Animation parallax légère */
.parallax-slow {
    transition: transform 0.3s ease-out;
}

/* Smooth transitions globales */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation pour les icônes */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: translateY(-4px) scale(1.1);
}

/* Effet de zoom sur hover pour les images */
.img-zoom {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Animation pour les sections qui apparaissent */
.section-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER AVEC FOND NOIR PUR
   ============================================ */
footer {
    background: #000000 !important;
    background-color: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

footer * {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer h5,
footer h6 {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer h5.text-green {
    color: var(--zen-green) !important;
}

footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: var(--zen-green) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-center {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer .text-center p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Force le fond noir sur toutes les pages publiques */
body:not(.has-sidebar) footer,
body footer:not([style*="display: none"]),
footer.public-footer {
    background: #000000 !important;
    background-color: #000000 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: auto !important;
}

/* Assurer que le footer s'affiche correctement */
footer.public-footer {
    min-height: auto !important;
    padding: 3rem 0 !important;
}

footer.public-footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

footer.public-footer .row {
    margin: 0 !important;
}

footer.public-footer .col-md-6,
footer.public-footer .col-md-3 {
    padding: 0 15px !important;
}

/* Assurer que le body a une structure flex pour pousser le footer en bas */
body:not(.has-sidebar) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

body:not(.has-sidebar) main {
    flex: 1 !important;
}

/* ============================================
   DASHBOARD AVANCÉ
   ============================================ */
.dashboard-card {
    transition: var(--transition);
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-4px);
}

.list-group-item {
    padding: var(--space-md) 0;
    transition: var(--transition);
}

.list-group-item:hover {
    background: var(--zen-gray-50);
    padding-left: var(--space-sm);
}

.table-hover tbody tr:hover {
    background: var(--zen-gray-50);
    cursor: pointer;
}

/* Graphiques */
.card canvas {
    max-height: 300px;
}

/* Badges améliorés */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Stats cards avec animations */
.stats-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    background-color: #10B981 !important;
    color: white !important;
}

.stats-card * {
    color: white !important;
}

.stats-card .stats-label,
.stats-card .stats-number {
    color: white !important;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stats-card:hover::after {
    left: 100%;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--zen-gray-200);
    overflow: hidden;
}

.progress-bar {
    background: var(--zen-green);
    transition: width 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 640px) {
        .dashboard-grid {
            grid-template-columns: 1fr;
        }
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .dashboard-header > div:last-child {
        width: 100%;
    }
    
    .dashboard-header .btn {
        flex: 1;
    }
    
    h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    
    .card canvas {
        max-height: 200px;
    }
}

/* ============================================
   SIDEBAR POUR PAGES PRIVÉES
   ============================================ */
body.has-sidebar {
    padding-left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar verte - RÈGLE ULTIME avec tous les sélecteurs possibles */
.sidebar,
body.has-sidebar .sidebar,
aside.sidebar,
body.has-sidebar aside.sidebar,
aside.sidebar.sidebar {
    position: fixed !important;
    top: var(--topbar-h, 0px) !important;
    left: 0 !important;
    width: var(--sidebar-w, 220px) !important;
    height: auto !important;
    min-height: calc(100vh - var(--topbar-h, 0px)) !important;
    background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
    background-color: #10B981 !important;
    background-image: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1) !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;    /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    margin: 0 !important;
    padding: 0 !important;
}

aside.sidebar::-webkit-scrollbar,
body.has-sidebar aside.sidebar::-webkit-scrollbar,
aside.sidebar.sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* Règle supplémentaire en fin de fichier pour garantir l'application */
body.has-sidebar aside.sidebar {
    background: #10B981 !important;
    background-image: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition);
}

.sidebar-brand:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.sidebar-brand-text {
    font-family: 'Poppins', sans-serif;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: visible;
    height: auto;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
    width: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0.25rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
    padding-left: 1.75rem;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.sidebar-link-highlight {
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border-left: none;
}

.sidebar-link-highlight:hover {
    background: rgba(255, 255, 255, 0.3);
    padding-left: 1.5rem;
}

.sidebar-link-danger {
    color: rgba(255, 200, 200, 0.9);
}

.sidebar-link-danger:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ffcccc;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.5rem;
    list-style: none;
}

/* Sidebar Admin - Styles spécifiques */
.sidebar-admin .sidebar-header {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    list-style: none;
}

.sidebar-section-title:first-child {
    margin-top: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contenu avec sidebar */
.main-content.with-sidebar {
    margin-left: var(--sidebar-w, 240px) !important;
    width: calc(100% - var(--sidebar-w, 240px)) !important;
    min-height: 90vh !important;
    padding: 10px !important;
}

/* Container dans les pages avec sidebar */
.main-content.with-sidebar .container,
body.has-sidebar main .container {
    max-width: 100% !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .main-content.with-sidebar .container,
    body.has-sidebar main .container {
        padding: 2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Ajuster les containers Bootstrap dans les pages avec sidebar */
body.has-sidebar .container-fluid,
body.has-sidebar .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

@media (min-width: 1200px) {
    body.has-sidebar .container-fluid,
    body.has-sidebar .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Forcer le positionnement pour éviter que le contenu soit caché */
body.has-sidebar {
    overflow-x: hidden;
    display: flex !important;
    flex-direction: row !important;
}

/* Sidebar fixe à gauche - CONSERVER le background vert */
/* Note: La définition principale de .sidebar est plus haut dans le fichier */

/* Main content doit commencer EXACTEMENT à 300px (280px sidebar + 20px espace) */

/* S'assurer que le top header n'ajoute pas d'espace */
body.has-sidebar main .dashboard-top-header {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Supprimer complètement l'espace entre sidebar et contenu */
/* Container dans main pour pages avec sidebar - FORCER les marges à 0 */
body.has-sidebar main .container,
body.has-sidebar main .container-fluid,
body.has-sidebar main .container.py-5,
body.has-sidebar main div.container,
body.has-sidebar main div.container-fluid {
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* FORCER le main à être exactement à 300px (280px sidebar + 20px espace) - DESKTOP UNIQUEMENT */
@media (min-width: 992px) {
    body.has-sidebar > main {
        background: #ffffff !important;
        background-color: #ffffff !important;
        margin-left: var(--sidebar-w, 240px) !important;
        margin-right: 0 !important;
        width: calc(100vw - var(--sidebar-w, 240px)) !important;
        max-width: calc(100vw - var(--sidebar-w, 240px)) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0 !important;
    }
}

/* S'assurer que le body n'ajoute pas de padding */
body.has-sidebar {
    padding-left: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
}

@media (min-width: 1200px) {
    body.has-sidebar main .container,
    body.has-sidebar main .container-fluid,
    body.has-sidebar main .container.py-5,
    body.has-sidebar main div.container,
    body.has-sidebar main div.container-fluid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Override Bootstrap container pour pages avec sidebar */
body.has-sidebar .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Supprimer toute marge automatique de Bootstrap */
body.has-sidebar main .container,
body.has-sidebar main .container-fluid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Container-fluid pour le top header */
body.has-sidebar .dashboard-top-header .container-fluid {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin: 0 !important;
    max-width: 100% !important;
}

@media (min-width: 1200px) {
    body.has-sidebar .dashboard-top-header .container-fluid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Overlay pour mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive - mobile et tablette */
@media (max-width: 991.98px) {
    .main-content.with-sidebar,
    body.has-sidebar main,
    body.has-sidebar > main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Scrollbar masquée pour sidebar */
.sidebar-nav::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
}

/* Masquage universel de la scrollbar sur la navigation sidebar */
nav.sidebar-nav {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
nav.sidebar-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge Chromium */
}

/* RÈGLE FINALE - GARANTIT LE BACKGROUND VERT DE LA SIDEBAR */
body.has-sidebar aside.sidebar {
    background: #10B981 !important;
    background-image: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
    background-color: #10B981 !important;
}

/* ============================================================
   CORRECTIF GLOBAL STRUCTURE MOBILE (ESPACE TOPBAR)
   ============================================================ */
:root {
    --topbar-h: 55px !important;
}

@media (max-width: 768px) {
    /* Aligner le contenu sous la barre de 55px */
    body .main-content {
        margin-top: 55px !important;
        padding-top: 0px !important;
    }

    /* Supprimer le vide interne des pages */
    body .cagnotte-create-wrapper,
    body .cagnotte-dashboard,
    body .dashboard-container {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    /* Ajustement titre mobile */
    .cagnotte-create-header h1 {
        font-size: 1.7rem !important;
    }
}

/* ============================================
   HARMONISATION GÉNÉRALE DU DESIGN
   Suppression des border-radius sur toutes les sections et blocs
   ============================================ */
section, article, main, aside,
.db-hero, .cagnotte-hero, .hero-section, .page-header, .retraits-hero, .stats-hero,
.kpi-card, .db-card, .stat-card, .chart-card-modern, .cagnotte-card, .event-card, .dashboard-card, .retrait-card, .form-card, .card,
.db-quick-actions, .cagnotte-list-container, .table-container, .table-responsive, .withdrawal-card, .filter-box, .summary-box, .box, .panel,
.db-section-title, .chart-card-header, .card-header, .section-header, .modal-content, .cagnotte-create-card,
div[class*="-card"], div[class*="-box"], div[class*="-container"] {
    border-radius: 0 !important;
}

/* ============================================
   HARMONISATION PAGES PUBLIQUES (HERO & POLICES COMPACTES)
   Inspiré du dashboard promoteur (lisible, élégant et compact)
   ============================================ */
body.public-page .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

body.public-page h1.display-4,
body.public-page .hero-section h1,
body.public-page .page-header h1 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
}

body.public-page p.lead,
body.public-page .hero-section p,
body.public-page .page-header p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    color: var(--zen-gray-600);
}

body.public-page h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

body.public-page h3 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

body.public-page .card-body {
    padding: 1.25rem !important;
}

/* ============================================
   HARMONISATION DASHBOARD & EVENTS (HERO & EN-TÊTES COMPACTS)
   ============================================ */
body.has-sidebar .page-header {
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

body.has-sidebar .page-header .page-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
}

body.has-sidebar .page-header .page-title,
body.has-sidebar .page-header h1 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.1rem !important;
}

body.has-sidebar .page-header .page-subtitle,
body.has-sidebar .page-header p {
    font-size: 0.82rem !important;
    margin-bottom: 0 !important;
}

body.has-sidebar .modern-stat-card {
    padding: 0.75rem 1rem !important;
}

body.has-sidebar .modern-stat-card .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
}

body.has-sidebar .modern-stat-card .stat-number {
    font-size: 1.25rem !important;
}

/* BOUTONS DASHBOARD PROFILE - PETITS ET VERTS/NOIRS */
.dashboard-content .btn, .dashboard-container .btn, .profile-container .btn, .btn {
    white-space: nowrap !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    height: auto !important;
    line-height: 1.5 !important;
}
.dashboard-content .btn-primary, .dashboard-content .btn-success, .dashboard-container .btn-primary, .dashboard-container .btn-success, .btn-success, .btn-primary {
    background-color: var(--zen-green) !important;
    border-color: var(--zen-green) !important;
    color: white !important;
}
.dashboard-content .btn-primary:hover, .dashboard-content .btn-success:hover, .dashboard-container .btn-primary:hover, .dashboard-container .btn-success:hover, .btn-success:hover, .btn-primary:hover {
    background-color: var(--zen-green-dark) !important;
    border-color: var(--zen-green-dark) !important;
    color: white !important;
}
