/* =========================================
   HOMEPAGE PRESTASHOP AI - OLD CHARTER (BLUE/TEAL/GOLD)
   Matched to HTML Templates in _includes/home-content/
   ========================================= */

/* --- SCOPED VARIABLES --- */
:root {
    /* Legacy Palette */
    --color-primary-blue: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary-teal: #0d9488;
    --color-accent-gold: #d4af37;
    --color-bg-dark: #0f172a;
    /* Slate 900 */
    --color-bg-darker: #020617;
    /* Slate 950 */
    --color-bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 alpha */
    --color-text-white: #f8fafc;
    --color-text-gray: #cbd5e1;

    /* Layout */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* --- COMMON LAYOUT --- */
.section-creator {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.container-creator {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section-header-creator {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-creator,
.homepage-creator .section-title-creator {
    font-size: 2.5rem;
    color: var(--color-text-white) !important;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-intro-text {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* BUTTONS */
.btn-creator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-creator-primary {
    background: var(--color-primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-creator-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-creator-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
}

.btn-creator-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary-blue);
    color: white;
}

.btn-creator-outline-large {
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    font-weight: 700;
    border-radius: 8px;
    background: transparent;
}

.btn-creator-outline-large:hover {
    background: white;
    color: var(--color-bg-dark);
    border-color: white;
    transform: translateY(-2px);
}


/* --- HERO SECTION --- */
.hero-prestashop-ai {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--color-text-white);
    overflow: hidden;
}

/* Decoration */
.hero-prestashop-ai::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        /* Image on top mobile */
        margin: 0 auto;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title-main {
    background: linear-gradient(to right, #ffffff, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary-teal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-cta {
        justify-content: center;
    }
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: var(--color-primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.hero-photo-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .hero-photo-wrapper {
        width: 300px;
        height: 300px;
    }
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- VALUE PROPOSITION --- */
.value-proposition {
    background: #0f172a;
}

.value-proposition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: 2rem;
}

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

@media (max-width: 576px) {
    .value-proposition-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--color-secondary-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.value-card-icon,
.homepage-creator .value-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1) !important;
    /* Gold tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent-gold) !important;
    /* Gold Icon */
    margin-bottom: 1.5rem;
}

.value-card-icon i,
.homepage-creator .value-card-icon i {
    color: var(--color-accent-gold) !important;
}

.value-card-title {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card-description {
    color: #e2e8f0;
    /* Brighter text */
    line-height: 1.6;
    font-size: 1rem;
}


/* --- CORE PROJECT --- */
.core-project {
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.core-project-card {
    background: var(--color-bg-darker);
    /* Darker card */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .core-project-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

.core-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    /* Gold tint */
    color: var(--color-accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.core-project-title {
    font-size: 2.5rem;
    color: var(--color-text-white);
    margin-bottom: 1rem;
}

.core-project-tagline {
    font-size: 1.25rem;
    color: var(--color-text-white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.core-project-description {
    color: var(--color-text-gray);
    margin-bottom: 2rem;
}

.core-project-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.core-project-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-gray);
}

.core-project-benefits li i {
    color: var(--color-secondary-teal);
    /* Teal Check */
}

/* Visual placeholder code */
.core-project-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-project-icon-wrapper {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--color-text-white);
    position: relative;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
}

/* --- ECOSYSTEM --- */
.ecosystem-section,
.section-creator.ecosystem-section {
    background: #0f172a !important;
    position: relative;
}

/* Remove inherited light gradients from .homepage-creator .section-creator */
.ecosystem-section::before,
.section-creator.ecosystem-section::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Ensure title is white within this section */
.ecosystem-section .section-title-creator,
.section-creator.ecosystem-section .section-title-creator {
    color: var(--color-text-white) !important;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: 2rem;
}

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

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

.ecosystem-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.ecosystem-card:hover {
    background: var(--color-bg-darker);
    border-color: var(--color-accent-gold);
    /* Gold Border on Hover */
    transform: translateY(-5px);
}

.ecosystem-card-icon,
.homepage-creator .ecosystem-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1) !important;
    /* Gold tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold) !important;
    /* Gold Icon */
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.ecosystem-card-icon i,
.homepage-creator .ecosystem-card-icon i,
.ecosystem-card-arrow i,
.homepage-creator .ecosystem-card-arrow i {
    color: var(--color-accent-gold) !important;
}

.ecosystem-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.ecosystem-card-description {
    color: #e2e8f0;
    /* Brighter text */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ecosystem-card-arrow {
    align-self: flex-start;
    color: var(--color-accent-gold);
    /* Gold Arrow */
    transition: transform 0.3s ease;
}

.ecosystem-card:hover .ecosystem-card-arrow {
    transform: translateX(5px);
}


/* --- BLOG FEATURED --- */
.blog-featured {
    background: #1e293b;
}

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

.blog-featured-card {
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.blog-featured-card:hover {
    border-color: var(--color-accent-gold);
    transform: translateY(-5px);
}

.blog-featured-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.05);
}

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

.blog-featured-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-featured-title a {
    color: var(--color-text-white);
    text-decoration: none;
}

.blog-featured-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-featured-meta i {
    color: var(--color-accent-gold) !important;
    opacity: 0.9;
}

.blog-featured-excerpt {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-badge {
    background: rgba(13, 148, 136, 0.15);
    /* Teal */
    color: var(--color-secondary-teal);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.blog-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-blue);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
}

.section-cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Styled "Voir tous les articles" button - specifically for blog footer */
.btn-blog-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-blog-footer:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}


/* --- ABOUT SHORT --- */
.about-short {
    background: #0f172a;
}

.about-short-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-short-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.about-short-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.about-short-text {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}


/* --- CTA FINAL (Redesigned) --- */
.cta-final {
    padding: 6rem 0;
    position: relative;
    background: #020617;
}

.cta-final-card {
    background: #1e293b;
    /* Dark Slate instead of gradient */
    border: 1px solid var(--color-accent-gold);
    /* Gold Border */
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    /* Subtle Gold Glow */
}

/* Background pattern correction */
.cta-final-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 50%);
    pointer-events: none;
}

.cta-final-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    color: white;
}

.cta-final-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: var(--color-accent-gold);
    /* Gold Primary Action */
    color: #0f172a;
    /* Dark text for readability on gold */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    background: #fbbf24;
    /* Lighter Gold */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}