:root {
    --apple-gray: #f5f5f7;
    --apple-text: #1d1d1f;
    --apple-blue: #0071e3;
}

.services-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.services-hero {
    text-align: center;
    padding: 120px 0;
    color: var(--apple-gray);
}
.services-hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--apple-gray);
}


.hero-subtitle {
    font-size: 24px;
    color: #86868b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
}

.service-card:hover {
    transform: scale(1.02);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--apple-text);
}

.service-card p {
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.download-link, .learn-more {
    width: 200px;
    text-align: center;
    padding: 12px 20px;
}

.download-link {
    background: var(--apple-blue);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.learn-more {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-hero {
        padding: 60px 20px;
    }

    .services-hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation décalée pour chaque carte */
.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

/* Animation optionnelle pour le titre et sous-titre */
.services-hero h1,
.services-hero .hero-subtitle {
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
}

.services-hero h1 { animation-delay: 0.1s; }
.services-hero .hero-subtitle { animation-delay: 0.2s; }
