/* ============================================================================
   SERVICES NUMÉRIQUES - Funnel Styles
   ============================================================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-light: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-gradient: linear-gradient(90deg, #4f46e5, #8b5cf6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.digital-hero {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #f59e0b 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.digital-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(35deg);
    pointer-events: none;
}

.digital-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.2;
}

.digital-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

/* Services Grid */
.services-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--card-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service Specific Colors */
.service-card.google-sheets {
    --card-gradient: linear-gradient(90deg, #0F9D58, #4285F4);
}

.service-card.excel {
    --card-gradient: linear-gradient(90deg, #217346, #185C37);
}

.service-card.website {
    --card-gradient: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.service-card.pwa {
    --card-gradient: linear-gradient(90deg, #f59e0b, #f97316);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: white;
}

.google-sheets .service-icon {
    background: linear-gradient(135deg, #0F9D58, #4285F4);
}

.excel .service-icon {
    background: linear-gradient(135deg, #217346, #185C37);
}

.website .service-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.pwa .service-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    text-align: left;
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--success, #10b981);
    font-size: 16px;
}

/* Templates Section */
.templates-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.template-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.template-preview {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary, #4f46e5);
}

.template-content {
    padding: 20px;
}

.template-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.template-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.template-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 70, 229, 0.1);
    /* fallback if var missing */
    color: var(--primary-dark, #4338ca);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.template-price {
    font-weight: 700;
    color: var(--success, #10b981);
    font-size: 18px;
}

/* Process Section */
.process-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.process-step h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
}

.cta-buttons .btn-lg {
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-outline {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .digital-hero {
        padding: 60px 20px;
    }

    .digital-hero h1 {
        font-size: 32px;
    }

    .digital-hero p {
        font-size: 16px;
    }

    .hero-badges {
        flex-direction: row;
        /* Keep row but wrap */
        gap: 8px;
    }

    .hero-badge {
        width: calc(50% - 8px);
        /* 2 per row on mobile */
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }

    .services-section,
    .templates-section,
    .process-section,
    .cta-section {
        padding: 50px 20px;
    }

    .service-card {
        padding: 24px;
    }

    .cta-buttons .btn {
        width: 100%;
        min-width: unset;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}