/*=================================
    Hero Effects CSS WeAreBrand Style
==================================*/

/* ===== HERO GRADIENT OVERLAY ===== */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(128, 0, 128, 0.8), 
        rgba(75, 0, 130, 0.6),
        rgba(138, 43, 226, 0.8)
    );
    background-size: 400% 400%;
    z-index: 1;
    pointer-events: none;
    will-change: background-position;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* ===== LIGHT RAYS ===== */
.light-ray {
    position: absolute;
    width: 2px;
    height: 200%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%
    );
    pointer-events: none;
    will-change: transform, opacity;
}

/* ===== HERO PARTICLES ===== */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: white;
    will-change: transform, opacity;
}

/* ===== HERO SPOTLIGHT ===== */
.hero-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.1) 0%, 
        transparent 70%
    );
    pointer-events: none;
    mix-blend-mode: overlay;
    will-change: transform;
}

/* ===== BUTTON GLOW ===== */
.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(255,255,255,0.3) 0%, 
        transparent 70%
    );
    opacity: 0;
    pointer-events: none;
    border-radius: 50px;
    will-change: transform, opacity;
}

/* ===== HERO BORDER GLOW ===== */
.hero-border-glow {
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    pointer-events: none;
    z-index: 3;
    transition: border-color 2s ease;
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    will-change: opacity;
}

.scroll-hint-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.scroll-hint-arrow i {
    font-size: 14px;
}

/* ===== TITLE UNDERLINE ===== */
.title-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        white, 
        transparent
    );
    border-radius: 2px;
    will-change: width;
}

/* ===== HERO WRAPPER ENHANCED ===== */
.th-hero-wrapper {
    position: relative;
    isolation: isolate;
}

.hero-inner {
    position: relative;
    isolation: isolate;
}

/* ===== SWIPER SLIDE SCALE ===== */
.swiper-slide {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.6s ease;
    will-change: transform, opacity;
}

.swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.9);
    opacity: 0.5;
}

/* ===== HERO OVERLAY EFFECTS ===== */
.th-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* ===== CONTENT LAYERING ===== */
.hero-style1 {
    position: relative;
    z-index: 10;
    will-change: filter, opacity;
}

/* ===== TEXT GLOW ANIMATION ===== */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255,255,255,0.2),
            0 0 20px rgba(255,255,255,0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255,255,255,0.4),
            0 0 40px rgba(255,255,255,0.2),
            0 0 60px rgba(255,255,255,0.1);
    }
}

.hero-title,
.hero-big_text {
    animation: textGlow 3s ease-in-out infinite;
}

/* ===== BUTTON ENHANCED ===== */
.th-btn {
    position: relative;
    overflow: visible !important;
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 1199px) {
    .hero-border-glow {
        inset: 10px;
    }
    
    .scroll-hint {
        bottom: 30px;
    }
}

@media (max-width: 991px) {
    /* Simplifier les effets sur tablette */
    .light-ray,
    .hero-particles,
    .hero-spotlight,
    .noise-overlay {
        display: none;
    }
    
    .hero-gradient-overlay {
        background-size: 200% 200%;
    }
}

@media (max-width: 767px) {
    /* Désactiver effets complexes sur mobile */
    .hero-border-glow {
        display: none;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .swiper-slide:not(.swiper-slide-active) {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-gradient-overlay,
    .light-ray,
    .particle,
    .button-glow,
    .hero-border-glow {
        animation: none !important;
        transition: none !important;
    }
    
    .scroll-hint-arrow {
        animation: none !important;
    }
}

/* ===== Z-INDEX HIERARCHY ===== */
.th-hero-bg {
    z-index: 0;
}

.th-hero-bg::after {
    z-index: 1;
}

.hero-gradient-overlay {
    z-index: 1;
}

.noise-overlay {
    z-index: 2;
}

.light-ray {
    z-index: 1;
}

.hero-particles {
    z-index: 1;
}

.hero-spotlight {
    z-index: 2;
}

.hero-border-glow {
    z-index: 3;
}

.hero-style1 {
    z-index: 10;
}

.scroll-hint {
    z-index: 10;
}

/* ===== FALLBACK ===== */
.no-js .hero-gradient-overlay,
.no-js .light-ray,
.no-js .hero-particles {
    display: none;
}
