/* ===== ANIMATIONS AU SCROLL ===== */

/* Animation du titre - zoom + fade in */
@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animation des cartes - slide + fade from bottom */
@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== STYLES DE BASE ===== */

.services-container {
    background-color: #ffffff;
    max-width: 100%;
    padding: 40px 0;
}

.services-title {
    text-align: center;
    font-size: 44px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 60px;
    color: #000;
    background-color: white;
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    background-color: white;
    margin: 0 auto;
}

.service-card {
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    background: none;
    align-items: center;
    justify-content: center;
    /* Ã‰tat initial - invisible */
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

/* Quand la section devient visible */
.services-container.visible .services-title {
    animation: titleAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.services-container.visible .service-card {
    animation: cardSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.services-container.visible .service-card[data-delay="0"] {
    animation-delay: 0.1s;
}

.services-container.visible .service-card[data-delay="1"] {
    animation-delay: 0.2s;
}

.services-container.visible .service-card[data-delay="2"] {
    animation-delay: 0.3s;
}

.services-container.visible .service-card[data-delay="3"] {
    animation-delay: 0.4s;
}

.services-container.visible .service-card[data-delay="4"] {
    animation-delay: 0.5s;
}

.services-container.visible .service-card[data-delay="5"] {
    animation-delay: 0.6s;
}

/* ===== HOVER EFFECT ===== */

.service-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* ===== AUTRES STYLES ===== */

.service-icon {
    margin-bottom: 25px;
    height: 120px;
    display: flex;
    background: none;
    align-items: center;
    justify-content: center;
}

img {
    background: none;
    background-color: none;
}

.service-icon img {
    max-width: 120px;
    max-height: 120px;
    background: none;
    object-fit: contain;
}

.service-name {
    font-size: 22px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 15px;
    background: none;
    color: #000;
}

.service-description {
    font-size: 16px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    background: none;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Couleurs des cartes */
.card-blue {
    background-color: #E0EFFF;
}

.card-orange {
    background-color: #FFF4E9;
}

.card-purple {
    background-color: #F8F1FF;
}

.card-green {
    background-color: #F0FFE3;
}

.card-gray {
    background-color: #F3F3F3;
}

.card-lightblue {
    background-color: #E8FBFC;
}

/* ===== RESPONSIVE ===== */

/* Responsive Tablette */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .services-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .services-container {
        padding: 20px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .service-icon {
        height: 100px;
        margin-bottom: 20px;
    }
    
    .service-icon img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .service-name {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
    
    /* Animation plus rapide sur mobile */
    .services-container.visible .service-card {
        animation-duration: 0.5s;
    }
    
    .services-container.visible .services-title {
        animation-duration: 0.6s;
    }
}