/*=================================
    Slider Hero - Corrections
    Fix pour le slider Swiper
==================================*/

/* ===== HERO WRAPPER ===== */
.th-hero-wrapper.hero-1 {
    position: relative;
    min-height: 100vh;
    overflow: hidden !important;
}

/* ===== SWIPER SLIDER ===== */
.hero-slider-1 {
    width: 100%;
    height: 100vh;
}

.hero-slider-1 .swiper-wrapper {
    height: 100vh;
}

.hero-slider-1 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* ===== HERO INNER ===== */
.hero-inner {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== HERO BACKGROUND ===== */
.th-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.th-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(128, 0, 128, 0.85) 0%, 
        rgba(75, 0, 130, 0.75) 50%,
        rgba(128, 0, 128, 0.85) 100%
    );
    z-index: 1;
}

.th-hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== HERO CONTENT ===== */
.hero-style1 {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 90%;
}

.hero-style1 .sub-title.style1 {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white, #ffffff);
    opacity: 0.95;
    max-width: 700px;
}

.hero-style1 .hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white, #ffffff);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-style1 .hero-big {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-style1 .hero-big_text {
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    text-transform: uppercase;
}

.hero-style1 .btn-group {
    margin-top: 25px;
}

/* ===== SLIDER ARROWS ===== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--purple-primary, #800080);
    border: 2px solid var(--white, #ffffff);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-arrow:hover {
    background: var(--purple-primary, #800080);
    color: var(--white, #ffffff);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.slider-prev {
    left: 30px;
}

.slider-arrow.slider-next {
    right: 30px;
}

/* ===== RESPONSIVE ===== */

/* Tablettes */
@media (max-width: 991px) {
    .hero-style1 {
        max-width: 95%;
    }
    
    .hero-style1 .hero-title {
        font-size: 36px;
    }
    
    .hero-style1 .hero-big_text {
        font-size: 80px;
    }
    
    .hero-style1 .sub-title.style1 {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow.slider-prev {
        left: 15px;
    }
    
    .slider-arrow.slider-next {
        right: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-slider-1,
    .hero-slider-1 .swiper-wrapper,
    .hero-slider-1 .swiper-slide,
    .hero-inner {
        height: 80vh;
    }
    
    .th-hero-wrapper.hero-1 {
        min-height: 80vh;
    }
    
    .hero-style1 {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-style1 .hero-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-style1 .hero-big_text {
        font-size: 50px;
    }
    
    .hero-style1 .sub-title.style1 {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-style1 .btn-group {
        margin-top: 18px;
    }
    
    .hero-style1 .btn-group .th-btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-arrow.slider-prev {
        left: 10px;
    }
    
    .slider-arrow.slider-next {
        right: 10px;
    }
}

/* Très petit écran */
@media (max-width: 480px) {
    .hero-slider-1,
    .hero-slider-1 .swiper-wrapper,
    .hero-slider-1 .swiper-slide,
    .hero-inner {
        height: 75vh;
    }
    
    .hero-style1 .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-style1 .hero-big {
        display: none; /* Masquer sur très petit écran */
    }
    
    .hero-style1 .sub-title.style1 {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .hero-style1 .btn-group .th-btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ===== ANIMATION SWIPER ===== */
.swiper-slide-active .hero-title,
.swiper-slide-active .sub-title,
.swiper-slide-active .btn-group {
    animation: fadeInUp 0.8s ease forwards;
}

.swiper-slide-active .hero-title {
    animation-delay: 0.3s;
}

.swiper-slide-active .sub-title {
    animation-delay: 0.1s;
}

.swiper-slide-active .btn-group {
    animation-delay: 0.5s;
}

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

/* ===== SWIPER PAGINATION (si utilisée) ===== */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--white, #ffffff);
    width: 30px;
    border-radius: 6px;
}

/* ===== CURSOR COMPATIBILITY ===== */
.hero-slider-1 .slider-arrow {
    cursor: pointer;
    pointer-events: all;
}

/* ===== Z-INDEX FIX ===== */
.th-hero-wrapper {
    position: relative;
    z-index: 1;
}

.hero-slider-1 {
    position: relative;
    z-index: 2;
}

.slider-arrow {
    z-index: 100 !important;
}
