/* À placer en haut de ton services.css */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');



.services-title {
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 34px;
}

/* Section */
.services-section {
    padding: 64px 0 48px;
    background: #f9fafb;
    font-family: 'Urbanist', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .services-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Respect accessibilité : réduire les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .services-section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.services-section .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.services-title {
    font-size: 34px;
    font-weight: 700;
    color: #155e75; /* vert-bleu profond assorti au reste du site */
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
    padding: 0 24px;
}
    .services-title::before,
    .services-title::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 60px;
        height: 1.6px;
        background-color: rgba(0, 0, 0, 0.15);
        transform: translateY(-50%);
    }

    .services-title::before {
        left: -70px;
    }

    .services-title::after {
        right: -70px;
    }
.services-subtitle {
    margin: 0;
    font-size: 18px;
    color: #5d6b86;
}
.services-subtitle {
    margin-top: 16px;
    font-size: 17px;
    color: #5d6b86;
}

/* --- Effet subtil d’apparition --- */
.services-title span {
    background: linear-gradient(90deg, #155e75, #1f6f93, #2592b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textFade 1s ease forwards;
}

@keyframes textFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(6, 24, 44, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0; /* l'image prend toute la largeur, on gère les paddings dans le contenu  */
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden; /* pour arrondis corrects avec l'image */
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(6, 24, 44, 0.12);
    }

/* Media (remplace l'icône) */
.service-media {
    display: block;
    width: 100%;
    aspect-ratio: 16/9; /* ratio constant et responsive */
    background: #f2f4f8;
    overflow: hidden;
}

    .service-media img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* cadrage propre */
        display: block;
    }

/* Contenu texte de la carte */
.service-title,
.service-text,
.service-link {
    padding-left: 26px;
    padding-right: 26px;
}

.service-title {
    margin: 18px 0 8px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
}

.service-text {
    margin: 0 0 14px;
    font-size: 16px;
    color: #5d6b86;
}

/* Lien */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #2b6cff;
    text-decoration: none;
    transition: gap .15s ease, color .15s ease;
    padding-bottom: 22px; /* espace de fin de carte */
}

    .service-link:hover {
        color: #1f57d6;
        gap: 8px;
    }

/* Nettoyage des anciennes classes icône si présentes (compat) */
.service-icon {
    display: none;
}
