/*
Theme Name: Shoptimizer Child Theme
Template: shoptimizer
Version: 1.2.2
*/

/* Reset des styles pour la page d'accueil */
.home .site-content .col-full {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home .site-content .shoptimizer-archive {
    margin: 0 !important;
    padding: 0 !important;
}

.home .archive-header {
    display: none !important;
}

.home #content {
    padding-top: 0 !important;
}

/* Container principal */
.home-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-section h1 {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 36px;
    margin: 0;
}

.hero-section h2 {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    margin: 0;
}

.hero-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: #333333;
}

/* Intro Section */
.intro-section {
    text-align: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 18px;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-section h2 {
    font-size: 28px;
    text-align: center;
    margin: 40px 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.product-card {
    width: 100%;
    text-align: center;
}

.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.product-card a:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.product-card .price {
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}

/* Feature Blocks */
.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    gap: 40px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-block .content {
    flex: 1;
}

.feature-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-block p {
    font-size: 18px;
    margin-bottom: 20px;
}

.feature-block .image {
    flex: 1;
}

.feature-block .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-block .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.feature-block .button:hover {
    background-color: #333333;
}

/* Conclusion Section */
.conclusion-section {
    text-align: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.conclusion-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.conclusion-section p {
    font-size: 18px;
    line-height: 1.6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column !important;
        text-align: center;
    }

    .feature-block .content {
        order: 1;
    }

    .feature-block .image {
        order: 2;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .product-card h3 {
        font-size: 16px;
    }

    .product-card .price {
        font-size: 16px;
    }
}