/**
 * Styles pour le template Clubs Moderne avec Filtres
 * Version 2.3 - Compatible avec le système de filtres automatique
 */

.clubs-modern-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    padding: 20px 0;
    min-height: 100vh;
}

.clubs-modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.clubs-modern-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.clubs-modern-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clubs-modern-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Club Cards */
.club-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.club-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

/* Club Header */
.club-header {
    margin-bottom: 20px;
}

.club-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.club-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.badge-club {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-handi {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.badge-age {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.badge-niveau {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #2c3e50;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* Club Description */
.club-description {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Club Info */
.club-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a6c7d;
    font-size: 0.95rem;
    min-width: 200px;
}

.info-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.info-text {
    font-weight: 500;
}

/* Contact Buttons */
.club-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.contact-phone {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.contact-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.contact-email {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    color: white;
    text-decoration: none;
}

.contact-web {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #2c3e50;
}

.contact-web:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
    color: #2c3e50;
    text-decoration: none;
}

.contact-icon {
    font-size: 1.1rem;
}

.contact-text {
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: #5a6c7d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.no-results p {
    color: #8892a0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clubs-modern-header h1 {
        font-size: 2rem;
    }
    
    .clubs-modern-subtitle {
        font-size: 1rem;
    }
    
    .club-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .club-title {
        font-size: 1.25rem;
    }
    
    .club-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-item {
        min-width: auto;
    }
    
    .club-contact {
        flex-direction: column;
    }
    
    .contact-btn {
        justify-content: center;
        text-align: center;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .clubs-modern-container {
        padding: 0 15px;
    }
    
    .clubs-modern-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .club-card {
        padding: 15px;
    }
    
    .club-categories {
        gap: 6px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.club-card {
    animation: fadeInUp 0.6s ease forwards;
}

.club-card:nth-child(2) { animation-delay: 0.1s; }
.club-card:nth-child(3) { animation-delay: 0.2s; }
.club-card:nth-child(4) { animation-delay: 0.3s; }
.club-card:nth-child(5) { animation-delay: 0.4s; }
.club-card:nth-child(6) { animation-delay: 0.5s; }
.club-card:nth-child(7) { animation-delay: 0.6s; }
.club-card:nth-child(8) { animation-delay: 0.7s; }

/* Intégration avec le système de filtres automatique */
.wpticket-content-wrapper .clubs-modern-wrapper {
    background: transparent;
    padding: 0;
    min-height: auto;
}

.wpticket-content-wrapper .clubs-modern-container {
    max-width: none;
    padding: 0;
}

/* Amélioration de l'affichage avec filtres */
.wpticket-filterable-content {
    display: grid;
    gap: 25px;
}

/* États des éléments filtrés */
.wpticket-hidden {
    display: none !important;
}

/* Animations pour le filtrage */
.club-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                transform 0.3s ease;
}

/* Focus et accessibilité */
.contact-btn:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.category-badge:focus {
    outline: 2px solid rgba(102, 126, 234, 0.8);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .clubs-modern-wrapper {
        background: white !important;
    }
    
    .club-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 20px !important;
    }
    
    .contact-btn {
        background: white !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .clubs-modern-header {
        background: white !important;
        color: #333 !important;
        box-shadow: none !important;
    }
}