/* Styles pour la page d'archive de l'agenda */

.sd-events-archive {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #3498db;
}

.archive-title {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.archive-description {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

article.event-card,
.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 30px 20px;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
}

.event-date-badge {
    position: relative;
    top: auto;
    left: auto;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    min-width: 120px;
    margin-bottom: 25px;
}

.event-date-badge .event-day {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .event-month {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    font-weight: 600;
}

.event-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.event-title {
    font-size: 24px;
    margin: 0 0 20px 0;
    line-height: 1.4;
    font-weight: 600;
    width: 100%;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #3498db;
}

.event-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 15px;
    width: 100%;
    text-align: center;
}

.event-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 0;
    border-top: none;
    width: 100%;
}

.read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-events h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover,
.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Media Queries */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sd-events-archive {
        padding: 30px 15px;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .event-card {
        padding: 25px 18px;
    }
    
    .event-content {
        padding: 0;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .pagination .nav-links {
        gap: 8px;
    }
    
    .pagination a,
    .pagination .current {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .archive-title {
        font-size: 28px;
    }
    
    .events-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .sd-events-archive {
        padding: 20px 10px;
    }
    
    .archive-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    .archive-description {
        font-size: 14px;
    }
    
    .event-card {
        padding: 25px 15px;
    }
    
    .event-date-badge {
        padding: 15px 20px;
        min-width: 100px;
        margin-bottom: 20px;
    }
    
    .event-date-badge .event-day {
        font-size: 36px;
    }
    
    .event-date-badge .event-month {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .event-content {
        padding: 0;
    }
    
    .event-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .event-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .read-more-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

