/* --------------------------------------------------------------------------
 * Front Page Styles
 * -------------------------------------------------------------------------- */

/* Typography & Utilities */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Hero Layout (Menu Sidebar + Slider) */
.hero-section {
    padding-top: var(--spacing-lg);
    margin-bottom: 1rem;
}

.hero-layout {
    display: flex;
    gap: 1.5rem;
    height: 500px;
}

/* Sidebar Menu */
.hero-sidebar {
    flex: 0 0 260px;
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-sidebar-header {
    background: var(--color-primary);
    color: #fff;
    padding: 15px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.hero-sidebar-header .header-icon {
    margin-right: 12px;
}

.hero-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-menu li {
    flex-grow: 1;
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.hero-menu li:last-child {
    border-bottom: none;
}

.hero-menu a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero-menu a::after {
    content: '\203A';
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hero-menu a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    padding-left: 25px;
}

.hero-menu a:hover::after {
    transform: translateX(3px);
    color: var(--color-primary);
}

.hero-menu .icon {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--color-primary);
}

/* Hero Slider */
.hero-slider {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(0 0 0 / 36%) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.slide-content {
    position: relative;
    z-index: 3;
    padding: 6rem;
    color: #fff;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: .5rem;
    line-height: 1;
    text-transform: none;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-controls button:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--color-accent);
}

@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column;
        height: auto;
    }

    .hero-sidebar {
        flex: none;
    }

    .hero-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 10px;
    }

    .hero-menu a {
        white-space: nowrap;
        padding: 0 15px;
    }

    .hero-slider {
        flex: none;
        width: 100%;
        height: 400px;
        min-height: 400px;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }
}

/* Features Banner Section */
.features-banner-section {
    padding: 0;
    margin-bottom: 3rem;
}

.features-banner-grid {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);

}

.feature-banner-item {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 10px 15px;
    border-right: 1px solid var(--color-border);
}

.feature-banner-item:last-child {
    border-right: none;
}

.feature-banner-item .feature-icon {
    margin-right: 15px;
    color: #000;
    flex-shrink: 0;
}

.feature-banner-item .feature-text h4 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.feature-banner-item .feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.2;
}

@media (max-width: 992px) {
    .features-banner-grid {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        scroll-behavior: smooth;
    }
    
    .features-banner-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .feature-banner-item {
        flex: 0 0 85%; /* Shows a bit of the next item to encourage scrolling */
        scroll-snap-align: center;
        border-right: 1px solid var(--color-border);
        border-bottom: none;
        padding: 20px;
    }

    .feature-banner-item:last-child {
        border-right: none;
    }
}

/* Home Product Sections (Nouveautés & Catégories) */
.home-product-section {
    padding: 0 0 4rem 0;
    background-color: var(--color-bg);
}

.home-product-section .section-header {
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.home-product-section .section-header h2.section-title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
}

.home-product-section .section-header .btn-voir-plus {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.home-product-section .section-header .btn-voir-plus:hover {
    opacity: 0.8;
}



/* Category Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Slider Specifics */
.product-slider-wrapper {
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
}

.product-slider-track-container {
    overflow: hidden;
}

.product-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide-item {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 10px;
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    outline: none;
}

.slider-btn:hover {
    background: var(--color-bg-alt);
}

.slider-btn.prev-btn {
    left: 0;
}

.slider-btn.next-btn {
    right: 0;
}

.product-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.product-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-slider-dots .dot.active {
    background: #1a365d;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slide-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Typography & Spacing Overrides for Mobile */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .home-product-section {
        padding: 0 0 2rem 0;
    }

    .slide-content {
        padding: 2rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .slide-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}