/*
 * File: services.css
 * Author: Killian Filâtre
 * Description: Styles pour la section Services
 */

/* Section Services */
#services-section {
    background: #f8f9fa;
    padding: 80px 0;
}

#services-section .page-header-wrapper {
    margin-bottom: 60px;
}

#services-section .subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    font-weight: 300;
}

/* Fix pour l'alignement des colonnes */
#services-section .row {
    display: flex;
    flex-wrap: wrap;
}

#services-section .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Service Box */
.service-box {
    background: #fff;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #7FB2F0, #4E7AC7);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7FB2F0 0%, #4E7AC7 100%);
    color: #fff;
    font-size: 36px;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    transition: all 0.4s ease;
    position: relative;
}

.service-box:hover .service-icon {
    transform: rotateY(360deg);
    box-shadow: 0 10px 30px rgba(78, 122, 199, 0.4);
}

.service-icon i {
    display: block;
}

/* Service Content */
.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
}

.service-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    text-align: justify;
}

/* Responsive */
@media (max-width: 991px) {
    #services-section {
        padding: 60px 0;
    }

    .service-box {
        padding: 35px 25px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .service-content h3 {
        font-size: 18px;
    }

    .service-content p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    #services-section {
        padding: 50px 0;
    }

    #services-section .page-header-wrapper {
        margin-bottom: 40px;
    }

    #services-section .subtitle {
        font-size: 16px;
    }

    .service-box {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .service-box {
        padding: 30px 20px;
    }

    .service-content p {
        text-align: left;
    }
}

/* Animation pour les services au scroll */
.service-box.wow {
    visibility: hidden;
}

.service-box.wow.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
