/* Styles pour la page des sponsors */

/* Bouton de retour */
.back-button {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.back-button:hover {
    color: white;
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

/* Styles pour les cartes de sponsors */
.grid > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Styles pour les cartes de sponsors */
.sponsor-card {
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Contenu du sponsor */
.sponsor-content {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Bouton sponsor */
.sponsor-button {
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sponsor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sponsor-button:hover::before {
    left: 100%;
}

/* Indicateurs de tier */
.tier-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-platinum {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

.tier-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    border: 1px solid #d97706;
}

.tier-silver {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #f9fafb;
    border: 1px solid #4b5563;
}

/* Réduction */
.discount-badge {
    position: relative;
    overflow: hidden;
}

.discount-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    animation: discountGlow 2s infinite;
}

@keyframes discountGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sponsor-content {
        min-height: 150px;
        padding: 1rem;
    }
    
    .sponsor-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Animations d'entrée */
.sponsor-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Délai d'animation pour chaque carte */
.sponsor-card:nth-child(1) { animation-delay: 0.1s; }
.sponsor-card:nth-child(2) { animation-delay: 0.2s; }
.sponsor-card:nth-child(3) { animation-delay: 0.3s; }
.sponsor-card:nth-child(4) { animation-delay: 0.4s; }
.sponsor-card:nth-child(5) { animation-delay: 0.5s; }
.sponsor-card:nth-child(6) { animation-delay: 0.6s; }

/* Styles pour les logos des sponsors */
.sponsor-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 50%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.sponsor-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Conteneur du logo */
.sponsor-card .w-16.h-16 {
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Fallback avec initiales */
.sponsor-card .w-12.h-12 {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Style pour les liens externes */
.sponsor-button[target="_blank"]::after {
    content: '↗';
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sponsor-button[target="_blank"]:hover::after {
    opacity: 1;
}
