:root {
    --color-primary: #4361ee;
    --color-primary-dark: #3a56d4;
    --color-accent: #f59e0b;
    --color-bg-page: #f4f7fb;
    --color-card-bg: #ffffff;
    --color-text: #1a2c3e;
    --color-text-light: #5b6e8c;
    --color-border: #e2e8f0;
    --color-danger: #ef4444;
    --color-success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: var(--color-bg-page);
    font-family: system-ui, 'Segoe UI', sans-serif;
    padding: 0;
    min-height: 100vh;
}
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ========== AMÉLIORATIONS MODERNES ========== */
:root {
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --sidebar-width: 240px;
    --card-radius: 1rem;
    --transition-smooth: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Sidebar modernisée */
.sidebar {
    width: var(--sidebar-width) !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

/* Cartes plus compactes */
.event-card, .group-card, .invite-card {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}
.event-card:hover, .group-card:hover, .invite-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ajustement des espaces dans les listes */
.events-list, .groups-list, .invitations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Timeline hauteur dynamique */
.timeline-scroll-area {
    height: calc(100vh - 180px);
    max-height: none;
}