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

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

.services-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 30px 100px;
    color: var(--apple-gray);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
}
.services-hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--apple-gray);
}


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

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.six-card {
    background: linear-gradient(135deg, #4facfe 0%, #0072ff 100%);
    color: white;
}

.six-card .service-card h2 {
    color: white;

}

.six-card .service-card p {
    color: rgba(255, 255, 255, 0.9);
}

.six-card .download-link {
    background: white;
    color: #4facfe;
}

.six-card .learn-more {
    color: white;
}

.ryley-card {
    /* Dégradé Rouge Foncé pour Ryley */
    background: linear-gradient(135deg, #8E0E00 0%, #1F1C18 100%);
    color: white;
}

.ryley-card .service-card h2 {
    color: white;

}

.ryley-card .service-card p {
    color: rgba(255, 255, 255, 0.9);
}

.ryley-card .download-link {
    background: white;
    color: #8E0E00;
    /* Texte rouge pour rappeler le fond */
}

.ryley-card .learn-more {
    color: white;
}

.copilote-card {
    background: linear-gradient(135deg, #0066cc 0%, #8a2be2 100%);
}

.copilote-card {
    background: linear-gradient(135deg, #0066cc 0%, #8a2be2 100%);
    color: white;
}

.copilote-card .service-card h2 {
    color: white;

}

.copilote-card .service-card p {
    color: rgba(255, 255, 255, 0.9);
}

.copilote-card .download-link {
    background: white;
    color: #8a2be2;
    /* Texte violet pour rappeler le fond */
}

.copilote-card .learn-more {
    color: white;
}

.service-icon {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

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

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: left;
}

.service-card p {
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: left;
    flex: 1;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    align-self: flex-end;
    margin-left: auto;
}

.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: 80px 20px 60px;
        align-items: center;
        text-align: center;
    }

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

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

    .service-card {
        flex-direction: column;
        text-align: center;
        height: auto;
        min-height: 450px;
    }

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

    .service-content {
        text-align: center;
    }

    .service-card h2,
    .service-card p {
        text-align: center;
    }

    .service-links {
        align-items: center;
        align-self: center;
        margin-left: 0;
        margin-top: auto;
        padding-top: 20px;
    }
}

@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; }
/* Section Composants */
.components-section {
    padding: 80px 30px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.components-section h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--apple-gray);
}

.section-subtitle {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 60px;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.component-card {
    background: white;
    border-radius: 18px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
}

.component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.component-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

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

.component-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--apple-text);
}

.component-card p {
    font-size: 16px;
    color: #86868b;
    line-height: 1.6;
    margin: 0;
}

/* Animation décalée pour les composants */
.components-grid .component-card:nth-child(1) { animation-delay: 0.7s; }
.components-grid .component-card:nth-child(2) { animation-delay: 0.8s; }
.components-grid .component-card:nth-child(3) { animation-delay: 0.9s; }

@media (max-width: 768px) {
    .components-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .components-section {
        padding: 60px 20px;
    }

    .components-section h2 {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }
}