/* ========================================
   SGI - Styles Page d'Accueil
   Sections produits avec carrousels
   ======================================== */

/* ========================================
   RÈGLES GLOBALES - TEXTE
   ======================================== */

/* Supprimer le text-transform capitalize sur tous les éléments */
.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6,
.section p,
.section a,
.section span,
.product_title,
.product_title a,
.heading_s1 h2,
.heading_s1 p,
.btn-view-more {
    text-transform: none !important;
}

/* ========================================
   SECTIONS - STRUCTURE GÉNÉRALE
   ======================================== */

.section {
    padding: 50px 0;
}

.section.small_pt {
    padding-top: 30px;
}

.section.pb_70 {
    padding-bottom: 50px;
}

/* Backgrounds alternés */
.section.bg_white {
    background-color: #ffffff;
}

.section.bg_light_gray {
    background-color: #f8f9fa;
}

.section.bg_light_blue {
    background-color: #f0f8ff;
}

.section.bg_light_green {
    background-color: #f0fff4;
}

.section.bg_light_yellow {
    background-color: #fffef0;
}

/* ========================================
   EN-TÊTE DE SECTION
   ======================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-header .heading_s1 {
    margin-bottom: 0;
    text-align: left;
    flex-grow: 1;
}

.section-header .heading_s1 h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 5px;
    text-transform: none !important;
}

.section-header .heading_s1 p {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 0;
    text-transform: none !important;
}

.section-header .btn-view-more {
    background: #FF6B35;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-header .btn-view-more:hover {
    background: #E85A2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.section-header .btn-view-more i {
    font-size: 16px;
}

/* Responsive en-tête */
@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-header .btn-view-more {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CARROUSEL OWL - NAVIGATION
   ======================================== */

.product_slider.owl-carousel {
    position: relative;
}

/* Flèches de navigation */
.product_slider.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px);
    left: -50px;
    right: -50px;
    pointer-events: none;
    margin: 0 !important;
}

.product_slider.owl-carousel .owl-nav button.owl-prev,
.product_slider.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1F2937 !important;
    transition: all 0.3s ease;
    pointer-events: all;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product_slider.owl-carousel .owl-nav button.owl-prev:hover,
.product_slider.owl-carousel .owl-nav button.owl-next:hover {
    background: rgba(255, 107, 53, 0.95) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.product_slider.owl-carousel .owl-nav button.owl-prev {
    left: 0;
}

.product_slider.owl-carousel .owl-nav button.owl-next {
    right: 0;
}

.product_slider.owl-carousel .owl-nav button span {
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
}

/* Forcer l'affichage des flèches */
.product_slider.owl-carousel .owl-nav button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product_slider.owl-carousel .owl-nav button.disabled:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #1F2937 !important;
    transform: none;
}

/* Responsive navigation */
@media (max-width: 991px) {
    .product_slider.owl-carousel .owl-nav {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .product_slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .product_slider .owl-nav button.owl-prev {
        left: 5px;
    }
    
    .product_slider .owl-nav button.owl-next {
        right: 5px;
    }
}

@media (max-width: 767px) {
    .product_slider .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .product_slider .owl-nav button.owl-prev {
        left: 5px;
    }
    
    .product_slider .owl-nav button.owl-next {
        right: 5px;
    }
}

/* ========================================
   PRODUITS - AFFICHAGE
   ======================================== */

.product {
    margin-bottom: 0;
}

.product_info {
    padding: 12px 12px 10px 12px !important;
}

/* Titre produit */
.product_info .product_title {
    margin-bottom: 6px !important;
}

.product_info .product_title h6 {
    margin-bottom: 6px !important;
}

.product_info .product_title a {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 44px;
    text-transform: none !important;
}

.product_info .product_title a:hover {
    color: #FF6B35;
}

/* Prix produit */
.product_price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}

.product_price .price {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B35;
}

.product_price del {
    font-size: 16px;
    color: #9CA3AF;
    font-weight: 400;
}

.product_price .on_sale {
    margin-left: auto;
}

.product_price .on_sale span {
    background: #EF4444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* Badge promo */
.pr_flash {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr_flash.bg-danger {
    background: #EF4444;
}

.pr_flash.bg-success {
    background: #10B981;
}

.pr_flash.bg-info {
    background: #3B82F6;
}

/* ========================================
   SECTION PROMO - STYLE SPÉCIAL
   ======================================== */

.section.promo-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.section.promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section.promo-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section.promo-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   BANNIÈRES PROMOTIONNELLES
   ======================================== */

.single_banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.single_banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.single_banner img {
    width: 100%;
    height: auto;
    display: block;
}

.single_banner_info {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 2;
}

.single_banner_info h5 {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 10px;
    font-weight: 500;
}

.single_banner_info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single_banner_info .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive bannières */
@media (max-width: 767px) {
    .single_banner_info {
        left: 20px;
    }
    
    .single_banner_info h3 {
        font-size: 24px;
    }
    
    .single_banner_info h5 {
        font-size: 14px;
    }
}

/* ========================================
   ESPACEMENT SECTIONS
   ======================================== */

.section + .section {
    margin-top: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.section-header,
.product_slider {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE GÉNÉRAL
   ======================================== */

@media (max-width: 991px) {
    .section {
        padding: 40px 0;
    }
    
    .section-header .heading_s1 h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header .heading_s1 h2 {
        font-size: 22px;
    }
    
    .section-header .heading_s1 p {
        font-size: 14px;
    }
}

/* ========================================
   CONTAINER CARROUSEL
   ======================================== */

.carousel-container {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .carousel-container {
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .carousel-container {
        padding: 0 10px;
    }
}

/* Container large pour sections */
.section .container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 1600px) {
    .section .container-wide {
        max-width: 1600px;
    }
}

/* ========================================
   AMÉLIORATION VISUELLE PRODUITS
   ======================================== */

.product {
    background: white;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.product:hover {
    border-color: #FF6B35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BOUTON CTA SECTION
   ======================================== */

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.section-cta .btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: none;
}

/* ========================================
   COULEURS TAMISÉES BACKGROUNDS
   ======================================== */

.bg-soft-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.bg-soft-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.bg-soft-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

.bg-soft-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.bg-soft-pink {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.bg-soft-gray {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}
