﻿/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero Section */
.services-hero {
    background: linear-gradient(135deg, #1E5959 0%, #3B8C6E 100%);
    position: relative;
    overflow: hidden;
}

    .services-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.3;
    }

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

.page-title {
    animation: fadeInDown 1s ease-out;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.2rem;
}

/* Service Card Détaillée */
.service-detail-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    background: white;
    position: relative;
    overflow: hidden;
}

    .service-detail-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #89D99D 0%, #3B8C6E 100%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .service-detail-card:hover::before {
        transform: scaleX(1);
    }

    .service-detail-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    }

.service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.service-detail-card:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

/* Process Timeline */
.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

    .process-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .process-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .process-step:nth-child(3) {
        animation-delay: 0.3s;
    }

    .process-step:nth-child(4) {
        animation-delay: 0.4s;
    }

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(137, 217, 157, 0.4);
}

.process-step::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2rem);
    background: linear-gradient(180deg, #89D99D 0%, transparent 100%);
}

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

/* Technologies Badge */
.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(137, 217, 157, 0.1);
    border: 1px solid #89D99D;
    border-radius: 25px;
    color: #1E5959;
    font-weight: 600;
    margin: 0.3rem;
    transition: all 0.3s ease;
}

    .tech-badge:hover {
        background: #89D99D;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(137, 217, 157, 0.3);
    }

/* Pricing Card */
.pricing-feature {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .pricing-feature:last-child {
        border-bottom: none;
    }

    .pricing-feature i {
        color: #3B8C6E;
        font-size: 1.1rem;
    }

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    border-radius: 20px;
    padding: 3rem;
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

    .animate-on-scroll.animated {
        animation: fadeInUp 0.8s ease-out forwards;
    }

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .cta-box {
        padding: 2rem;
    }
}
