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

/* Bandeau diagonal "Annulé" (événement annulé) */
.event-hero-cancelled-bandeau {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-hero-cancelled-stripe {
    position: absolute;
    width: 180%;
    min-width: 180%;
    height: 28%;
    min-height: 120px;
    background: rgba(185, 28, 28, 0.65);
    transform: translate(-50%, -50%) rotate(-28deg);
    top: 50%;
    left: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.event-hero-cancelled-text {
    position: relative;
    z-index: 26;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-28deg);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.2);
}

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

/* 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.5rem 1rem 2rem 1rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Titre principal */
.event-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
}

/* 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;
}

/* Bloc d'info avec titre mis en avant (structure type carte) */
.event-hero-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(251, 176, 35, 0.9);
    text-align: left;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.event-hero-info-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.event-hero-info-block.event-hero-info-clickable:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-left-color: #fbb023;
}

.event-hero-info-item .event-hero-info-clickable {
    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-block .event-hero-info-icon {
    color: rgba(251, 176, 35, 0.95);
}

.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;
}

/* Titre de bloc mis en avant (dans .event-hero-info-block) */
.event-hero-info-block .event-hero-info-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(251, 176, 35, 0.98);
    margin-bottom: 0;
}

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

.event-hero-info-block .event-hero-info-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
}

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

.event-hero-actions-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.event-hero-action-group {
    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;
    width: 100%;
    min-width: 0;
    height: 56px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.event-hero-actions-secondary .event-hero-btn {
    padding: 0.9rem 1rem;
    font-size: 1rem;
}

/* Bouton de réservation PRINCIPAL - Couleur primaire de la charte */
.event-hero-btn-booking {
    background: linear-gradient(135deg, #fbb023, #e09e1f) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(251, 176, 35, 0.5), 0 0 40px rgba(251, 176, 35, 0.3) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    padding: 1.25rem 2.5rem !important;
    max-width: 360px;
}

.event-hero-btn-booking:hover {
    background: linear-gradient(135deg, #e09e1f, #c18a1b) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 25px rgba(251, 176, 35, 0.6), 0 0 50px rgba(251, 176, 35, 0.4) !important;
}

.event-hero-btn-booking:active {
    transform: translateY(-1px) scale(1.01) !important;
}

/* Icône SVG du bouton de réservation */
.event-hero-btn-booking svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Boutons secondaires (favoris et partage) */
.event-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    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.25);
    transform: translateY(-2px);
}

/* Styles généraux des SVG dans les boutons */
.event-hero-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.event-hero-btn-text {
    display: inline !important;
}

.event-hero-btn-secondary svg {
    margin-right: 0.5rem !important;
}

/* 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 (max-width: 639px) {
    .event-hero {
        padding-top: 0;
        padding-bottom: 2rem;
    }
    
    .event-hero-content {
        padding: 0.25rem 1rem 1.5rem 1rem;
    }
    
    /* Sur mobile, le bouton de réservation prend toute la largeur et est encore plus visible */
    .event-hero-btn-booking {
        width: 100%;
        font-size: 1.125rem !important;
        padding: 1rem 1.5rem !important;
        max-width: none !important;
    }

    .event-hero-btn {
        width: 100%;
        min-width: 0;
    }

    .event-hero-btn-secondary {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0.9rem 1rem !important;
        justify-content: center !important;
    }

    .event-hero-btn-text {
        display: inline !important;
    }

}

@media (min-width: 640px) {
    .event-hero-title {
        font-size: 3.5rem;
    }
    
    .event-hero-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .event-hero-action-group {
        width: 100%;
    }

    .event-hero-actions-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .event-hero-title {
        font-size: 4rem;
    }
    
    .event-hero {
        min-height: 60vh;
        padding-top: 1rem;
        padding-bottom: 5rem;
    }
    
    .event-hero-content {
        padding: 0.5rem 1rem 3rem 1rem;
    }
}

@media (min-width: 1024px) {
    .event-hero-title {
        font-size: 5rem;
    }
    
    .event-hero {
        min-height: 60vh;
        padding-top: 1.5rem;
        padding-bottom: 6rem;
    }
    
    .event-hero-content {
        padding: 1rem 2rem 4rem 2rem;
    }
}

/* 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-btn-booking:focus {
    outline: 3px solid rgba(255, 255, 255, 0.9) !important;
    outline-offset: 3px !important;
    box-shadow: 0 4px 20px rgba(251, 176, 35, 0.7), 0 0 40px rgba(251, 176, 35, 0.5) !important;
}

.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-secondary {
    background: rgba(255, 255, 255, 0.15) !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-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !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-secondary[data-is-favorited="true"] svg {
    color: #dc2626 !important;
}

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

/* Layout split universel : Affiche portrait à gauche, contenu à droite pour tous les événements */
.event-hero-cinema {
    min-height: auto;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: visible;
    z-index: 5;
}

.event-hero-cinema-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.event-hero-cinema-poster {
    position: relative;
    flex-shrink: 0;
}

.event-hero-cinema-poster-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

.event-hero-cinema-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: white;
    padding-top: 1rem;
}

.event-hero-cinema .event-hero-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.event-hero-cinema .event-hero-badges {
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.event-hero-cinema .event-hero-info {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
}

.event-hero-cinema .event-hero-info-item {
    justify-content: flex-start;
}

.event-hero-cinema .event-hero-info-block {
    min-width: 0;
}

.event-hero-cinema .event-hero-actions {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    max-width: 800px;
}

/* Responsive pour layout cinéma */
@media (max-width: 768px) {
    .event-hero-cinema-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .event-hero-cinema-poster {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .event-hero-cinema .event-hero-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .event-hero-cinema .event-hero-badges {
        justify-content: center;
    }
    
    .event-hero-cinema .event-hero-info {
        justify-content: center;
    }
    
    .event-hero-cinema .event-hero-info-item {
        justify-content: center;
    }
    
    .event-hero-cinema .event-hero-info-block {
        align-self: stretch;
    }

    .event-hero-cinema .event-hero-actions {
        align-items: center;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .event-hero-actions-secondary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
