/* Styles pour le hero de la page de détail d'événement */

/* Hero principal */
.event-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image de fond */
.event-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay sombre */
.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Contenu du hero */
.event-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80%;
}

/* Titre principal */
.event-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* Badges */
.event-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.event-hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.event-hero-badge svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Informations essentielles */
.event-hero-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-hero-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.event-hero-info-clickable {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: -0.5rem;
}

.event-hero-info-clickable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    backdrop-filter: blur(5px);
}

.event-hero-info-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.event-hero-info-content {
    text-align: left;
}

.event-hero-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.event-hero-info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

/* Actions principales */
.event-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

.event-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-width: 200px;
    height: 56px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.event-hero-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}




.event-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.event-hero-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Indicateur de scroll */
.event-hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    animation: bounce 2s infinite;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.event-hero-scroll:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(-2px);
}

.event-hero-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .event-hero-title {
        font-size: 3.5rem;
    }
    
    .event-hero-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event-hero-actions {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
    }
    
    .event-hero-btn {
        min-width: 180px;
        flex: 1;
        max-width: 250px;
    }
}

@media (min-width: 768px) {
    .event-hero-title {
        font-size: 4rem;
    }
    
    .event-hero {
        min-height: 60vh;
    }
}

@media (min-width: 1024px) {
    .event-hero-title {
        font-size: 5rem;
    }
    
    .event-hero {
        min-height: 60vh;
    }
}

/* Améliorations pour les écrans très larges */
@media (min-width: 1280px) {
    .event-hero-title {
        font-size: 6rem;
    }
}

/* Mode sombre et préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .event-hero-title,
    .event-hero-badge,
    .event-hero-info-item,
    .event-hero-actions {
        animation: none;
    }
    
    .event-hero-scroll {
        animation: none;
    }
    
    .event-hero-btn:hover {
        transform: none;
    }
}

/* Amélioration de l'accessibilité */
.event-hero-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.event-hero-badge:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Fallback pour les navigateurs sans support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .event-hero-badge,
    .event-hero-btn-secondary {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Classe pour forcer le re-rendu des styles */
.force-rerender {
    transform: translateZ(0);
}

/* Styles spécifiques pour les boutons favoris du hero */
.event-hero .favorite-btn.event-hero-btn-primary {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.event-hero .favorite-btn.event-hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

/* Seul le cœur devient rouge quand sélectionné */
.event-hero .favorite-btn.event-hero-btn-primary[data-is-favorited="true"] svg {
    color: #dc2626 !important;
}

.event-hero .favorite-btn.event-hero-btn-primary[data-is-favorited="false"] svg {
    color: white !important;
}
