/**
 * SGI LEASE & GO - Hero Section
 * Section hero moderne avec slider + produits vedettes
 */

/* HERO SECTION CONTAINER */
section.hero-section {
    background: #f5f5f5 !important;
    padding: 20px 0 0 !important;
    margin: 0 !important;
}

section.hero-section .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 20px !important;
}

/* MAIN SLIDER */
section.hero-section .hero-slider {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    /*ckground: #1a2332 !important;*/
}

section.hero-section .hero-slider .carousel {
    width: 100%;
}

section.hero-section .hero-slider .carousel-inner {
    width: 100%;
}

section.hero-section .hero-slider .carousel-item {
    width: 100%;
}

/* Carousel Fade Effect - Bootstrap 4 compatible */
section.hero-section .hero-slider .carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: .6s;
    transition-property: opacity;
}

section.hero-section .hero-slider .carousel-fade .carousel-item.active,
section.hero-section .hero-slider .carousel-fade .carousel-item-next.carousel-item-left,
section.hero-section .hero-slider .carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

section.hero-section .hero-slider .carousel-fade .active.carousel-item-left,
section.hero-section .hero-slider .carousel-fade .active.carousel-item-right {
    opacity: 0;
}

section.hero-section .hero-slider .carousel-fade .carousel-item-next,
section.hero-section .hero-slider .carousel-fade .carousel-item-prev,
section.hero-section .hero-slider .carousel-fade .carousel-item.active,
section.hero-section .hero-slider .carousel-fade .active.carousel-item-left,
section.hero-section .hero-slider .carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

section.hero-section .hero-slider .carousel-item img {
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    border-radius: 0 0 12px 12px;
}

.hero-slide-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.hero-slide-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FF6B35;
    color: #fff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 15px;
}

.hero-slider .carousel-control-next {
    right: 15px;
}

.hero-slider .carousel-control-prev i,
.hero-slider .carousel-control-next i {
    font-size: 20px;
    color: #333;
}

.hero-slider .carousel-indicators {
    bottom: 15px;
    margin: 0;
    padding: 0;
}

.hero-slider .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
    cursor: pointer;
}

.hero-slider .carousel-indicators li.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* FEATURED PRODUCTS */
.hero-featured {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    position: relative;
    z-index: 5;
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF6B35;
}

.featured-title i {
    color: #FF6B35;
}

.featured-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 10;
}

.featured-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.featured-product-card:hover {
    background: #eef1f5;
    transform: translateX(5px);
}

.featured-product-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.featured-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.featured-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
}

.featured-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #FF6B35;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s;
}

.featured-view-all:hover {
    background: #e55a2b;
    color: #fff;
}

/* FEATURES BAR */
section.features-bar {
    background: #fff;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

section.features-bar .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

section.features-bar .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

section.features-bar .feature-item:last-child {
    border-right: none;
}

section.features-bar .feature-item i {
    font-size: 32px;
    color: #FF6B35;
    flex-shrink: 0;
}

section.features-bar .feature-text {
    display: flex;
    flex-direction: column;
}

section.features-bar .feature-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

section.features-bar .feature-text span {
    font-size: 12px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    section.hero-section .hero-grid {
        grid-template-columns: 1fr 280px !important;
    }
    
    section.hero-section .hero-slider .carousel-item img {
        max-height: 380px !important;
    }
}

@media (max-width: 991px) {
    section.hero-section .hero-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-featured {
        display: none;
    }
    
    section.hero-section .hero-slider .carousel-item img {
        max-height: 350px !important;
    }
    
    section.features-bar .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section.features-bar .feature-item:nth-child(2) {
        border-right: none;
    }
    
    section.features-bar .feature-item:nth-child(3),
    section.features-bar .feature-item:nth-child(4) {
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    section.hero-section {
        padding: 10px 0 0 !important;
    }
    
    section.hero-section .hero-slider {
        border-radius: 8px !important;
    }
    
    section.hero-section .hero-slider .carousel-item img {
        max-height: none !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    
    section.features-bar .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    section.features-bar .feature-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 5px;
        margin-bottom: 0;
        justify-content: flex-start;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    section.features-bar .feature-item i {
        margin-bottom: 5px;
        font-size: 24px;
    }
    
    section.features-bar .feature-item .feature-text {
        text-align: center;
    }
    
    section.features-bar .feature-item .feature-text strong {
        font-size: 12px;
        display: block;
    }
    
    section.features-bar .feature-item .feature-text span {
        font-size: 10px;
    }
    
    section.features-bar .feature-item:nth-child(3),
    section.features-bar .feature-item:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    section.hero-section {
        padding: 8px 0 0 !important;
    }
    
    section.hero-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    section.hero-section .hero-slider .carousel-item img {
        max-height: none !important;
        height: auto !important;
        border-radius: 6px !important;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    
    .hero-slider .carousel-control-prev i,
    .hero-slider .carousel-control-next i {
        font-size: 14px;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 8px;
    }
    
    .hero-slider .carousel-indicators li {
        width: 8px;
        height: 8px;
    }
    
    .hero-slider .carousel-indicators li.active {
        width: 20px;
    }
}
