/* ==========================================================================
   Page Services : hero clair (photo) + section des 3 services
   Fichier charge en simple <link> statique (pas de build), voir base.html.twig
   Reutilise les variables et boutons definis pour l'accueil (voir accueil.css)
   ========================================================================== */

/* ---------- Hero Services ---------- */

.hero-services-page {
    position: relative;
    overflow: hidden;
    background: #eef4fb;
}

@media (min-width: 992px) {
    .hero-services-page {
        min-height: 480px;
        padding-top: 12rem;
        padding-bottom: 6rem;
    }

    .hero-services-page-bg {
        position: absolute;
        inset: 0;
        background-image: url('/images/hero-services.jpg');
        background-size: cover;
        background-position: right center;
        z-index: 0;
    }

    .hero-services-page-scrim {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(100deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 32%, rgba(255, 255, 255, .35) 58%, transparent 74%);
        pointer-events: none;
    }

    .hero-services-page-container {
        position: relative;
        z-index: 2;
    }

    .hero-services-page-copy {
        max-width: 620px;
    }
}

.hero-services-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .14em;
}

.hero-services-page-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--primary);
}

.hero-services-page-title {
    margin: 1.1rem 0 1.4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    color: var(--dark);
}

.hero-services-page-title span {
    display: block;
    background-image: linear-gradient(100deg, #1a63e8 10%, #16c4ea 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-services-page-lead {
    max-width: 480px;
    color: #4b5768;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.hero-services-page-actions {
    margin-top: 1.9rem;
}

@media (max-width: 991.98px) {
    .hero-services-page {
        display: flex;
        flex-direction: column;
        padding: 6.5rem 0 2.5rem;
    }

    .hero-services-page-bg {
        order: 2;
        margin-top: 2rem;
        height: 220px;
        background-image: url('/images/hero-services.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 14px;
    }

    .hero-services-page-scrim {
        display: none;
    }

    .hero-services-page-container {
        order: 1;
    }

    .hero-services-page-copy {
        text-align: center;
        margin: 0 auto;
    }

    .hero-services-page-eyebrow {
        justify-content: center;
    }

    .hero-services-page-lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-services-page-actions {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-services-page-actions .btn-hero-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Section "Nos services" (3 cartes) ---------- */

.services-grid-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background: #f8fafd;
}

.services-grid-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .1), rgba(37, 99, 235, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.services-grid-shape--left {
    left: -180px;
    top: -120px;
}

.services-grid-shape--right {
    right: -180px;
    bottom: -140px;
}

.services-grid-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-grid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .14em;
}

.services-grid-eyebrow-line {
    width: 26px;
    height: 2px;
    background: var(--primary);
}

.services-grid-title {
    margin: .9rem 0 0;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    color: var(--dark);
}

.services-grid-title span {
    background-image: linear-gradient(100deg, #1a63e8 10%, #16c4ea 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-grid-row {
    position: relative;
    z-index: 1;
}

.service-card-h {
    display: flex;
    flex-direction: row;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(15, 23, 42, .08));
    overflow: hidden;
    transition: box-shadow .25s ease;
}

.service-card-h:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
}

.service-card-h-media {
    flex: 0 0 35%;
    background: #eaf1fd;
    overflow: hidden;
}

.service-card-h-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.55);
}

.service-card-h-body {
    flex: 1 1 auto;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-card-h-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
}

.service-card-h-icon svg {
    width: 22px;
    height: 22px;
}

.service-card-h-body h3 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: .5rem;
}

.service-card-h-body p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card-h-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
}

.service-card-h-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    transition: transform .2s ease;
}

.service-card-h-arrow svg {
    width: 16px;
    height: 16px;
}

.service-card-h-link:hover .service-card-h-arrow {
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .service-card-h {
        flex-direction: column;
    }

    .service-card-h-media {
        flex: 0 0 auto;
        height: 180px;
    }
}
