/* === STYLES POUR LES HORAIRES === */

/* En-tête de page */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 202, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(72, 219, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Container des horaires */
.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Cartes de ministère */
.ministry-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ministry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.ministry-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.ministry-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ministry-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.ministry-icon i {
    font-size: 1.5rem;
    color: white;
}

.ministry-info {
    flex: 1;
}

.ministry-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.event-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-icon i {
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.ministry-header[aria-expanded="true"] .toggle-icon i {
    transform: rotate(180deg);
}

/* Contenu du ministère */
.ministry-content {
    padding: 0 2rem 2rem;
    transition: all 0.3s ease-out;
}

.ministry-content.collapsing {
    transition: height 0.35s ease;
}

.ministry-content.show {
    display: block;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Items d'événement */
.event-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateX(8px);
}

.event-date-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-date-badge .month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.event-details {
    flex: 1;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #feca57;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.event-time i {
    font-size: 1rem;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.meta-item.location .meta-label {
    color: #feca57;
}

.meta-item.location .meta-value {
    color: white;
    font-weight: 600;
}

/* États vides */
.no-events {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.no-events p {
    font-size: 1.1rem;
    margin: 0;
}

.no-ministry {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-ministry i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.no-ministry h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-ministry p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .ministry-header {
        padding: 1.5rem;
        flex-wrap: wrap;
    }
    
    .ministry-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
    
    .ministry-icon i {
        font-size: 1.25rem;
    }
    
    .ministry-name {
        font-size: 1.25rem;
    }
    
    .event-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .event-date-badge {
        align-self: flex-start;
        min-width: 70px;
    }
    
    .event-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .ministry-content {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .ministry-header {
        padding: 1rem;
    }
    
    .ministry-content {
        padding: 0 1rem 1rem;
    }
    
    .event-item {
        padding: 1rem;
    }
    
    .event-date-badge .day {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ministry-card {
    animation: fadeInUp 0.6s ease-out;
}

.ministry-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ministry-card:nth-child(3) {
    animation-delay: 0.2s;
}

.ministry-card:nth-child(4) {
    animation-delay: 0.3s;
}

.event-item {
    animation: fadeInUp 0.4s ease-out;
}

.event-item:nth-child(2) {
    animation-delay: 0.05s;
}

.event-item:nth-child(3) {
    animation-delay: 0.1s;
}

.event-item:nth-child(4) {
    animation-delay: 0.15s;
}
