/*** 
=============================================
    Modern Hero Slider CSS
=============================================
***/

.modern-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
    z-index: 1;
}

.modern-hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.modern-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Amélioration de la qualité d'image */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prévenir le flou lors du zoom */
    transform: translateZ(0);
    will-change: transform;
    /* Chargement progressif */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 89, 217, 0.65) 0%, rgba(11, 89, 217, 0.45) 100%);
    z-index: 2;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content .auto-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    z-index: 11;
}

.content-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.modern-hero-slider .sub-title {
    position: relative;
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.modern-hero-slider .sub-title h3 {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-hero-slider .big-title {
    position: relative;
    display: block;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.modern-hero-slider .big-title h2 {
    color: #ffffff;
    font-size: 72px;
    line-height: 1.2em;
    font-weight: 800;
    text-transform: none;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.modern-hero-slider .text {
    position: relative;
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.modern-hero-slider .text p {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.6em;
    font-weight: 400;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Navigation Buttons */
.modern-hero-swiper .swiper-button-next,
.modern-hero-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-hero-swiper:hover .swiper-button-next,
.modern-hero-swiper:hover .swiper-button-prev {
    opacity: 1;
}

.modern-hero-swiper .swiper-button-next:hover,
.modern-hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.modern-hero-swiper .swiper-button-next::after,
.modern-hero-swiper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: 700;
}

.modern-hero-swiper .swiper-button-prev {
    left: 30px;
}

.modern-hero-swiper .swiper-button-next {
    right: 30px;
}

/* Pagination */
.modern-hero-swiper .swiper-pagination {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.modern-hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modern-hero-swiper .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 40px;
    border-radius: 6px;
    border-color: #ffffff;
}

/* Contact Info Box - Utilise le style existant de banner-section.css */
.modern-hero-slider .slider-contact-info-box {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 15;
    pointer-events: none;
}

.modern-hero-slider .slider-contact-info {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modern-hero-slider .big-title h2 {
        font-size: 60px;
    }
}

@media (max-width: 991px) {
    .modern-hero-slider {
        min-height: 600px;
        max-height: 700px;
    }
    
    .modern-hero-slider .big-title h2 {
        font-size: 48px;
    }
    
    .modern-hero-slider .text p {
        font-size: 18px;
    }
    
    .modern-hero-swiper .swiper-button-next,
    .modern-hero-swiper .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
    
    .modern-hero-swiper .swiper-button-prev {
        left: 15px;
    }
    
    .modern-hero-swiper .swiper-button-next {
        right: 15px;
    }
}

@media (max-width: 767px) {
    .modern-hero-slider {
        min-height: 500px;
        max-height: 600px;
    }
    
    .modern-hero-slider .big-title h2 {
        font-size: 36px;
        line-height: 1.3em;
    }
    
    .modern-hero-slider .sub-title h3 {
        font-size: 16px;
        padding: 6px 15px;
    }
    
    .modern-hero-slider .text p {
        font-size: 16px;
    }
    
    .modern-hero-swiper .swiper-button-next,
    .modern-hero-swiper .swiper-button-prev {
        display: none;
    }
    
    .modern-hero-swiper .swiper-pagination {
        bottom: 20px;
    }
}

/* Amélioration de la qualité d'image sur les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Transition fluide entre les slides */
.modern-hero-swiper .swiper-slide {
    transition: opacity 0.6s ease;
}

.modern-hero-swiper .swiper-slide-active {
    opacity: 1;
}

.modern-hero-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
}

