/* Style pour le template Event List avec accordéon */

.events-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header de la page */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.page-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.95;
}

/* Section des filtres */
.filters-section {
    margin-bottom: 40px;
}

.filters-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.filters-container h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Groupes de filtres accordéon */
.filter-group {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.filter-group.active .filter-group-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.accordion-toggle {
    transition: transform 0.3s ease;
}

.filter-group.active .accordion-toggle {
    transform: rotate(180deg);
}

.filter-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.filter-group.active .filter-group-content {
    max-height: 300px;
}

.filter-group-inner {
    padding: 20px;
}

/* Badges de filtres */
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-badge {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
}

.filter-badge:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.filter-badge.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Barre de recherche */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Bouton reset */
.reset-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Conteneur des événements */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Carte d'événement */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Image de l'événement */
.event-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4em;
    color: rgba(255,255,255,0.8);
}

.event-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: #667eea;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Contenu de l'événement */
.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-header {
    margin-bottom: 15px;
}

.event-header h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.3em;
}

.event-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.event-status-badge.status-available {
    background: #10b981;
    color: white;
}

.event-status-badge.status-limited {
    background: #f59e0b;
    color: white;
}

.event-status-badge.status-full {
    background: #ef4444;
    color: white;
}

/* Informations de l'événement */
.event-info {
    flex: 1;
    margin-bottom: 20px;
}

.event-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.95em;
}

.detail-item i {
    color: #667eea;
    width: 20px;
}

/* Footer de l'événement */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-label {
    color: #64748b;
    font-size: 0.9em;
}

.price-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.price-badge.free {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
}

/* Boutons d'action */
.event-actions {
    display: flex;
    gap: 10px;
}

.btn-info,
.btn-book {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
}

.btn-info {
    background: #f1f5f9;
    color: #475569;
}

.btn-info:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-book {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.event-tag {
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    font-size: 0.85em;
    color: #64748b;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results.hidden {
    display: none;
}

.no-results i {
    font-size: 4em;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #475569;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .event-actions {
        justify-content: stretch;
    }
    
    .btn-info,
    .btn-book {
        flex: 1;
        justify-content: center;
    }
}