/**
 * TechEssentials Pro - Home Page Styles
 * @author Adams (Fred) - CTO
 * @version 2.1
 * Compatible: Chrome, Firefox, Safari, Edge
 * 
 * ✅ CORRIGÉ : Suppression des styles du header (maintenant dans header.css)
 * ✅ Conserve : Hero, Stats, Products, Blog Carousel
 */

/* Reset & Base (uniquement pour la home) */
.home-page .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}
  

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 120px;  /* ✅ Ajusté pour le nouveau header de 120px */
    
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}


/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===================================
   FEATURED PRODUCTS SECTION
   =================================== */
.featured-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 15px;
}

.product-card:hover .product-image img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.featured {
    background: #4facfe;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4facfe;
}

.original-price {
    font-size: 1rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.discount {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-description {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: #4facfe;
    color: white;
}

.btn-primary:hover {
    background: #2196f3;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #4facfe;
    border: 2px solid #4facfe;
}

.btn-secondary:hover {
    background: #4facfe;
    color: white;
}

/* ===================================
   BLOG CAROUSEL SECTION
   =================================== */
.blog-carousel-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.blog-carousel {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
}

.blog-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: calc(20% - 1.2rem);
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.blog-card:hover {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
    height: 4rem;
    overflow: hidden;
}

.blog-card-cta {
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-card-link-wrapper:hover .blog-card-cta {
    color: #764ba2;
}



/* ===================================
   CAROUSEL NAVIGATION BUTTONS
   =================================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: #667eea;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #667eea;
    color: white;
    -webkit-transform: translateY(-50%) scale(1.1);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .blog-card-link-wrapper {
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 90px;  /* ✅ Ajusté pour mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-link-wrapper {
        min-width: calc(50% - 0.75rem);
    }

    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 75px;  /* ✅ Ajusté pour très petits écrans */
    }

    .blog-card-link-wrapper {
        min-width: 100%;
    }
}



