/* ========================================
   SERVICES SECTION
   ======================================== */

#services {
    background: var(--bs-white);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

#services > * {
    position: relative;
    z-index: 1;
}

/* Titre section */
#services h2 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

#services .lead {
    color: var(--bs-gray-600);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Cards de services */
.service-card {
    background: var(--bs-white);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(var(--bs-primary-rgb), 0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

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

/* Icônes de services */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--bs-primary);
    transition: color 0.4s ease;
}

.service-card:hover .service-icon i {
    color: var(--bs-white);
}

/* Titres et contenus */
.service-card h4 {
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: var(--bs-primary);
}

.service-card p {
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Animation d'apparition */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    #services h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #services .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 991px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
}