/* CSS spécifique à la page Services */

/* Hero Section Services */
.hero-services {
    padding: 160px 0 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #0a0f1c 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23334155" fill-opacity="0.03"><polygon points="50,0 60,40 100,50 60,60 50,100 40,60 0,50 40,40"/></g></svg>');
    opacity: 0.6;
}

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

.hero-services .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-services .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Détaillés */
.services-detailed {
    padding: 100px 0;
    background: var(--background);
    display: block;
    visibility: visible;
}

.service-section {
    margin-bottom: 120px;
    position: relative;
}

.service-section:last-child {
    margin-bottom: 0;
}

/* Hero de Service */
.service-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-hero.reverse {
    grid-template-columns: 1fr auto;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Illustrations pour les services */
.service-illustration {
    width: 180px;
    height: 135px;
    background: var(--surface-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.service-illustration svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.service-icon-large svg {
    width: 60px;
    height: 60px;
    color: white;
}

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

.service-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Grille de Fonctionnalités */
.service-features {
    position: relative;
}

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

.feature-item {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
}

.feature-icon.ai {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.feature-icon.integration {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.feature-item:hover .feature-icon.ai {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.feature-item:hover .feature-icon.integration {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-icon.ai svg {
    color: var(--accent);
}

.feature-icon.integration svg {
    color: #22c55e;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Processus de Travail */
.work-process {
    padding: 100px 0;
    background: var(--surface);
}

.process-overview-illustration {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.process-overview-illustration svg {
    max-width: 100%;
    height: auto;
}

.work-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23334155" fill-opacity="0.02"><circle cx="40" cy="40" r="2"/></g></svg>');
    pointer-events: none;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.step-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 1rem;
    opacity: 0.3;
}

.process-step:last-child .step-line {
    display: none;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-deliverables {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-deliverables li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.step-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Technologies */
.technologies {
    padding: 100px 0;
    background: var(--background);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.tech-category {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.tech-category:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .service-hero.reverse {
        grid-template-columns: 1fr;
    }
    
    .service-icon-large {
        margin: 0 auto;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .step-indicator {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .step-line {
        width: 100px;
        height: 2px;
        margin-top: 0;
        margin-left: 1rem;
    }
    
    .process-step:last-child .step-indicator {
        justify-content: center;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .tech-category {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-services {
        padding: 140px 0 60px;
    }
    
    .service-section {
        margin-bottom: 80px;
    }
    
    .service-hero {
        padding: 1.5rem;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .service-icon-large svg {
        width: 40px;
        height: 40px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Animations avancées */
@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    animation: float-in 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.process-step {
    animation: float-in 0.6s ease-out;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }