/* calendar-styles.css - Styles pour le calendrier */

.calendar-section {
    padding: 4rem 5%;
    background: var(--light);
    min-height: 70vh;
}

.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Filtres ────────────────────────────────────────────────────────────── */
.filter-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* ── Vue Calendrier ─────────────────────────────────────────────────────── */
.calendar-view {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 100%;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    padding: 0.8rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem;
}

.calendar-day:hover {
    background: var(--light);
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.has-event {
    border: 2px solid var(--primary);
}

.calendar-day-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.event-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.3rem;
}

.calendar-day.today .event-dot {
    background: white;
}

/* ── Timeline événements ────────────────────────────────────────────────── */
.events-timeline {
    margin-top: 3rem;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-card-title {
    font-family: 'Righteous', cursive;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.event-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.type-reunion { background: #1565c0; }
.type-repas { background: #f57c00; }
.type-sortie { background: #388e3c; }
.type-course { background: #d32f2f; }
.type-ag { background: #7b1fa2; }
.type-autre { background: #616161; }

.event-card-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.event-card-location {
    color: var(--gray);
    font-size: 0.9rem;
}

.event-card-description {
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.6;
}

/* ── Modale ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: #eee;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-close:hover { background: #ddd; }

.modal-event-title {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-event-info {
    margin: 1.5rem 0;
}

.modal-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.modal-info-icon {
    font-size: 1.5rem;
    width: 30px;
}

.modal-info-text {
    flex: 1;
}

.modal-info-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.modal-info-value {
    font-weight: 600;
    color: var(--dark);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .calendar-section {
        padding: 2rem 2%;
    }
    
    .calendar-view {
        padding: 1rem;
        overflow: hidden;
    }
    
    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-header h2 {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .calendar-grid {
        gap: 0.2rem;
        width: 100%;
    }
    
    .calendar-day {
        font-size: 0.75rem;
        padding: 0.2rem;
        min-width: 0;
    }
    
    .calendar-day-number {
        font-size: 0.9rem;
    }
    
    .calendar-day-header {
        font-size: 0.65rem;
        padding: 0.4rem 0.1rem;
    }
    
    .event-dot {
        width: 3px;
        height: 3px;
    }
    
    .filter-container {
        gap: 0.4rem;
        padding: 0 2%;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .event-card-header {
        flex-direction: column;
    }
    
    .event-type-badge {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-view {
        padding: 0.8rem;
    }
    
    .calendar-grid {
        gap: 0.15rem;
    }
    
    .calendar-day {
        font-size: 0.7rem;
        padding: 0.15rem;
    }
    
    .calendar-day-number {
        font-size: 0.85rem;
    }
    
    .calendar-day-header {
        font-size: 0.6rem;
        padding: 0.3rem 0;
    }
}