/* ========================================
   HOME PAGE - index.php
   Design moderne et professionnel
   ======================================== */

/* -------------- HERO (homepage overrides) -------------- */
#hero {
    max-height: 800px;
    background-image: url('/assets/img/banner/home.jpg');
    height: 70vh;
}

#hero .overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 40px;
    background: #a049cc;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(160, 73, 204, 0.4);
    letter-spacing: 0.3px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(160, 73, 204, 0.6);
    background: #a049cc;
}

/* -------------- CAROUSEL SECTION -------------- */
/* Base carousel styles are in carousel.css */

.cta-link {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 32px;
    background: #a049cc;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(160, 73, 204, 0.3);
}

.cta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(160, 73, 204, 0.5);
    background: #a049cc;
}

.cta-link.cta-outline {
    background: transparent;
    border: 2px solid #a049cc;
    color: #a049cc;
    box-shadow: none;
}

.cta-link.cta-outline:hover {
    background: #a049cc;
    color: #fff;
    border-color: #a049cc;
}

.cta-link.cta-white {
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #fff;
}

.cta-link.cta-white:hover {
    background: transparent;
    color: #fff;
}

/* -------------- PRESENTATION SECTION -------------- */
.section-presentation {
    background-color: #fafbfc;
    padding: 70px 20px;
    text-align: center;
}

.section-advantages {
    background-color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.home-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* -------------- FEATURED MODELS -------------- */
.section-featured {
    background-color: #f0f2f5;
    padding: 70px 20px;
    text-align: center;
}

.section-description {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.featured-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    width: 100%;
}

#featured-models {
    background-color: transparent;
    background-image: radial-gradient(#00000010 1px, transparent 1px);
    background-size: 24px 24px;
}

/* -------------- INFO BLOCKS -------------- */
#info-blocks {
    padding: 70px 20px;
}

.info-blocks-back {
    width: 100%;
    background-color: #1a1a2e;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

#info-blocks .blocks-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-block {
    background: #fff;
    padding: 36px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info-block h3 {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a2e;
}

.info-block p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.info-block .cta-link {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* -------------- RESPONSIVE -------------- */

/* Laptop */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    #info-blocks .blocks-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    #hero {
        height: 50vh;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #info-blocks .blocks-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .section-presentation,
    .section-advantages,
    .section-featured {
        padding: 40px 15px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #hero {
        height: 45vh;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .carousel-section {
        padding: 30px 0;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section-text {
        font-size: 0.88rem;
    }

    .section-description {
        font-size: 0.88rem;
    }

    .cta-link {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .info-block {
        padding: 24px 20px;
    }

    .carousel-card {
        margin: 0;
        width: 45%;
    }

    .carousel-card img {
        width: 100%;
        height: 150px;
    }

    .carousel-track .carousel-card {
        width: 280px;
        margin: 0 15px;
    }

    .carousel-track .carousel-card img {
        width: 100%;
        height: 250px;
    }
}
