/* Import Google Fonts si besoin */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.agenda-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: fadeInUp 0.6s ease-out;
}

/* Zone principale */
.agenda-main {
    flex: 2;
    min-width: 280px;
    max-width: 650px;
}

.agenda-main h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-main h2 i {
    color: #dc2626;
    font-size: 1.8rem;
}

/* Sidebar */
.agenda-sidebar {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 250px;
    border: 1px solid rgba(255,255,255,0.8);
}

.agenda-sidebar h3 {
    margin-top: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.agenda-sidebar h3 i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Simple Calendar base custom */
.simcal-calendar-wrap {
    font-family: 'Inter', sans-serif !important;
    position: relative;
}

.simcal-calendar {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.simcal-calendar-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.simcal-calendar-head th {
    font-weight: 600;
    padding: 15px 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Style des cellules de jours */
.simcal-calendar td {
    transition: background-color 0.2s ease;
    position: relative;
}

.simcal-calendar td:hover {
    background-color: #f1f5f9;
}

/* Style des événements (liste / sidebar) */
.agenda-sidebar .simcal-event {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    position: relative;
}

.agenda-sidebar .simcal-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.agenda-sidebar .simcal-event-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 5px;
}

.agenda-sidebar .simcal-event-title i {
    color: #3b82f6;
    width: 16px;
}

.agenda-sidebar .simcal-event-start {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
}

.agenda-sidebar .simcal-event-start i {
    color: #10b981;
    width: 14px;
}

/* Masquer certains détails si tu veux un affichage épuré */
.agenda-sidebar .simcal-event-end,
.agenda-sidebar .simcal-event-details div:not(.simcal-event-title) {
    display: none !important;
}

/* Bouton Voir plus */
.view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

/* Bloc "Prochains événements" sur la home */
.home-next-events {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
}

.home-next-events h2 {
    font-weight: 600;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.home-next-events h2 i {
    color: #2563eb;
}

.home-next-events .simcal-event {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 4px solid #2563eb;
}

.home-next-events .simcal-event-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.home-next-events .simcal-event-title i {
    width: 16px;
    color: #2563eb;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .agenda-container {
        flex-direction: column;
    }

    .agenda-sidebar {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    .agenda-main h2 {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
