﻿/* ══════════════════════════════════════════
   EventsCast — Accueil (v5 Premium Chic)
   ══════════════════════════════════════════ */

/* ============================================
   HERO — Cinematic Premium
   ============================================ */
.ec-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0e27;
    padding: 100px 0 60px;
}

/* Animated gradient background */
.ec-hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0a0e27 0%,
        #1a1f4e 20%,
        #0d3868 40%,
        #1a6fb5 60%,
        #38b6ff 80%,
        #6C5CE7 100%
    );
    background-size: 400% 400%;
    animation: heroGradientShift 12s ease infinite;
    z-index: 0;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
}

/* Subtle grid overlay */
.ec-hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    animation: gridPan 20s linear infinite;
}

@keyframes gridPan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Light glow overlay */
.ec-hero::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -30%;
    left: -10%;
    background:
        radial-gradient(ellipse 50% 50% at 30% 20%, rgba(56, 182, 255, .25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 80%, rgba(108, 92, 231, .20) 0%, transparent 70%),
        radial-gradient(ellipse 30% 30% at 80% 10%, rgba(255, 215, 0, .08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Decorative orbs */
.ec-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.ec-hero-shape {
    position: absolute;
    border-radius: 50%;
}

.ec-hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 182, 255, .12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: orbFloat1 18s ease-in-out infinite;
}

.ec-hero-shape-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(108, 92, 231, .15) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation: orbFloat2 22s ease-in-out infinite;
}

.ec-hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, .08) 0%, transparent 70%);
    top: 40%;
    left: 55%;
    animation: orbFloat3 15s ease-in-out infinite;
}

.ec-hero-shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 182, 255, .10) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: orbFloat1 20s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(.92); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 35px) scale(1.05); }
    66% { transform: translate(30px, -15px) scale(.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(20px, -20px) scale(1.1) rotate(10deg); }
}

/* Floating particles */
.ec-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ec-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, .4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.ec-particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; width: 3px; height: 3px; }
.ec-particle:nth-child(2) { left: 25%; top: 70%; animation-duration: 12s; animation-delay: 1s; width: 5px; height: 5px; opacity: .6; }
.ec-particle:nth-child(3) { left: 65%; top: 30%; animation-duration: 10s; animation-delay: 2s; }
.ec-particle:nth-child(4) { left: 80%; top: 60%; animation-duration: 9s; animation-delay: .5s; width: 6px; height: 6px; opacity: .3; }
.ec-particle:nth-child(5) { left: 45%; top: 85%; animation-duration: 11s; animation-delay: 3s; width: 3px; height: 3px; }
.ec-particle:nth-child(6) { left: 90%; top: 15%; animation-duration: 14s; animation-delay: 1.5s; width: 4px; height: 4px; opacity: .5; }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px) scale(0); opacity: 0; }
}

/* ============================================
   HERO CONTENT
   ============================================ */
.ec-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 760px;
    padding: 20px 20px;
}

/* Stagger entrance animations */
.ec-hero-anim-1 { animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) .2s both; }
.ec-hero-anim-2 { animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) .4s both; }
.ec-hero-anim-3 { animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) .6s both; }
.ec-hero-anim-4 { animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) .8s both; }
.ec-hero-anim-5 { animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) 1s both; }

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

/* Badge */
.ec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--ec-radius-full);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .15);
    position: relative;
    overflow: hidden;
    animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) .1s both;
}

.ec-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, .6);
    animation: badgeDotPulse 2s ease-in-out infinite;
}

@keyframes badgeDotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, .6); }
    50% { box-shadow: 0 0 16px rgba(0, 255, 136, .9), 0 0 30px rgba(0, 255, 136, .3); }
}

.ec-hero-badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Title */
.ec-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.03em;
}

.ec-hero-title-line {
    display: block;
}

.ec-hero-title .ec-highlight {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #38b6ff 0%, #FFD700 50%, #38b6ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.ec-hero-title .ec-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -6px;
    right: -6px;
    height: 12px;
    background: linear-gradient(90deg, rgba(56, 182, 255, .4), rgba(255, 215, 0, .3));
    border-radius: 6px;
    z-index: -1;
    filter: blur(2px);
    animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { opacity: .6; transform: scaleX(.9); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Subtitle */
.ec-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO CTA BUTTONS
   ============================================ */
.ec-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.ec-hero-btn-primary {
    position: relative;
    background: #fff;
    color: var(--ec-primary-dark);
    font-weight: 700;
    padding: 12px 28px;
    font-size: .92rem;
    border-radius: var(--ec-radius-full);
    box-shadow: 0 4px 20px rgba(255, 255, 255, .2);
    overflow: hidden;
    z-index: 1;
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
}

.ec-hero-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 255, 255, .3);
    color: var(--ec-primary-dark);
}

.ec-hero-btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(56, 182, 255, .5), rgba(108, 92, 231, .5), rgba(255, 215, 0, .5));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: btnGlowRotate 4s ease infinite;
    filter: blur(8px);
    opacity: .6;
}

@keyframes btnGlowRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ec-hero-btn-glass {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 28px;
    font-size: .92rem;
    font-weight: 600;
    border-radius: var(--ec-radius-full);
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
}

.ec-hero-btn-glass:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, .1);
}

/* ============================================
   HERO STATS — Compact Inline Row
   ============================================ */
.ec-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 6px 8px;
}

.ec-hero-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: background .3s ease;
    position: relative;
}

.ec-hero-stat-card:hover {
    background: rgba(255, 255, 255, .08);
}

/* Divider between stats */
.ec-hero-stat-card + .ec-hero-stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, .12);
}

.ec-hero-stat-card--live .ec-hero-stat-icon {
    color: var(--ec-live);
}

.ec-hero-stat-card--live .ec-hero-stat-value {
    color: var(--ec-live);
}

.ec-hero-stat-icon {
    font-size: .85rem;
    color: rgba(56, 182, 255, .7);
    flex-shrink: 0;
}

.ec-hero-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ec-hero-stat-label {
    font-size: .7rem;
    color: rgba(255, 255, 255, .45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================
   SCROLL INDICATOR — Mouse animation
   ============================================ */
.ec-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    cursor: pointer;
    animation: heroFadeUp 1s cubic-bezier(.16, 1, .3, 1) 1.5s both;
}

.ec-hero-scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
    position: relative;
    transition: border-color .3s ease;
}

.ec-hero-scroll:hover .ec-hero-scroll-mouse {
    border-color: rgba(255, 255, 255, .6);
}

.ec-hero-scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, .6);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.ec-hero-scroll-text {
    font-size: .7rem;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
}

/* --- Upcoming Events section --- */
.ec-upcoming-section {
    background: var(--ec-bg);
    position: relative;
}

/* Live now banner */
.ec-live-banner {
    background: linear-gradient(135deg, rgba(255, 59, 92, .08) 0%, rgba(255, 59, 92, .04) 100%);
    border: 1px solid rgba(255, 59, 92, .15);
    padding: 18px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ec-live-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 92, .05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.ec-live-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.ec-live-banner-text {
    color: var(--ec-live);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-live-banner .ec-btn-white {
    padding: 8px 20px;
    font-size: .85rem;
}

/* --- Grid variants --- */
.ec-grid-1-featured {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* Card countdown */
.ec-card-countdown {
    font-size: .82rem;
    color: var(--ec-primary);
    font-weight: 600;
    padding-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ec-hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .ec-hero {
        min-height: 65vh;
        padding: 90px 0 50px;
    }

    .ec-hero-title {
        font-size: 2.1rem;
    }

    .ec-hero-subtitle {
        font-size: .95rem;
    }

    .ec-hero-stats {
        flex-direction: column;
        padding: 6px;
        border-radius: 12px;
    }

    .ec-hero-stat-card {
        padding: 8px 18px;
    }

    .ec-hero-stat-card + .ec-hero-stat-card::after {
        top: 0;
        left: 15%;
        width: 70%;
        height: 1px;
    }

    .ec-hero-stat-value {
        font-size: 1.2rem;
    }

    .ec-hero-scroll {
        bottom: 16px;
    }

    .ec-hero-shape-1 { width: 350px; height: 350px; }
    .ec-hero-shape-2 { width: 280px; height: 280px; }
    .ec-hero-shape-3,
    .ec-hero-shape-4 { display: none; }

    .ec-hero-particles { display: none; }
    .ec-hero-grid-overlay { display: none; }
}

@media (max-width: 480px) {
    .ec-hero {
        min-height: 60vh;
        padding: 80px 0 40px;
    }

    .ec-hero-title {
        font-size: 1.75rem;
    }

    .ec-hero-badge {
        font-size: .78rem;
        padding: 7px 14px;
    }

    .ec-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .ec-hero-btn-primary,
    .ec-hero-btn-glass {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .ec-hero-stat-card {
        padding: 6px 14px;
    }

    .ec-hero-stat-value {
        font-size: 1.1rem;
    }

    .ec-hero-scroll { display: none; }
}