/* Styles pour la section Services */

.services-section {
    background: linear-gradient(135deg, #121824 0%, #0d1526 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    /* Séparateur supérieur pour démarquer de la section précédente */
    border-top: 4px solid;
    border-image: linear-gradient(90deg, transparent, rgba(110, 159, 255, 0.7), rgba(156, 110, 255, 0.7), rgba(255, 110, 159, 0.7), rgba(110, 255, 177, 0.7), rgba(255, 222, 89, 0.7), transparent) 1;
    /* Séparateur inférieur pour démarquer de la section suivante */
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, transparent, rgba(255, 222, 89, 0.7), rgba(110, 255, 177, 0.7), rgba(255, 110, 159, 0.7), rgba(156, 110, 255, 0.7), rgba(110, 159, 255, 0.7), transparent) 1;
    /* Effet de profondeur pour démarquer la section */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) inset, 0 -15px 35px rgba(0, 0, 0, 0.8) inset;
    z-index: 1;
}

/* Amélioration de la lisibilité des textes dans la section services */
.services-section .lead.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 3px rgba(110, 159, 255, 0.2);
    letter-spacing: 0.01em;
}

/* Effet de vague subtil en arrière-plan */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(110, 159, 255, 0.05) 0%, rgba(110, 159, 255, 0) 70%);
    z-index: 0;
}

/* Styles pour les cartes de services */
.service-card {
    background: rgba(30, 40, 70, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 159, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(110, 159, 255, 0.1) !important;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 159, 255, 0.05) 0%, rgba(156, 110, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(110, 159, 255, 0.4) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(110, 159, 255, 0.2) !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(110, 159, 255, 0.1) 0%, rgba(156, 110, 255, 0.1) 100%);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(110, 159, 255, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-container {
    background: linear-gradient(135deg, rgba(110, 159, 255, 0.2) 0%, rgba(156, 110, 255, 0.2) 100%);
    transform: scale(1.05);
}

.service-card:hover .service-icon-container::after {
    opacity: 1;
    animation: pulse 2s infinite;
}

.service-card .text-primary {
    background: linear-gradient(135deg, #6e9fff 0%, #9c6eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(110, 159, 255, 0.3));
    transition: all 0.3s ease;
}

/* Amélioration des couleurs de texte dans la section services */
.services-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.service-card .card-text {
    color: var(--text-muted, rgba(224, 224, 224, 0.9));
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card:hover .card-text {
    color: var(--text-light, rgba(255, 255, 255, 1));
}

.service-card .card-title {
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card:hover .card-title {
    background: linear-gradient(135deg, #6e9fff 0%, #9c6eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(110, 159, 255, 0.3);
}

.service-card:hover .text-primary {
    filter: drop-shadow(0 0 5px rgba(110, 159, 255, 0.5));
}

/* Animation de pulsation pour le contour de l'icône */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .services-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .service-icon-container {
        width: 70px;
        height: 70px;
    }
    
    .service-card .card-text {
        font-size: 0.9rem;
    }
}