﻿/* services.css — spécifique services */

/* Cartes services */
.service-card {
    height: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 28px rgba(2,6,23,.06);
    overflow: hidden;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .service-card .card-body {
        padding: 26px;
    }

    .service-card:hover,
    .service-card:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(2,6,23,.10);
    }

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(116,81,56,.15);
    color: var(--moka-copper);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 14px;
}

.service-card h3 {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.service-card p {
    color: #475569;
}

.service-card ul {
    color: #475569;
    padding-left: 1.05rem;
    margin-bottom: 0;
}

.service-card li {
    margin-bottom: .35rem;
}

/* CTA bloc */
.cta {
    background: linear-gradient(180deg,var(--moka-navy),var(--moka-navy-2));
    color: #fff;
    border-radius: calc(var(--radius-xl) + 6px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,.12);
    padding: 42px;
}

    .cta p {
        color: rgba(255,255,255,.82);
        margin-bottom: 0;
    }

/* Partenaires */
.partner-wrap {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(2,6,23,.05);
    height: 110px;
}

/* ✅ Important: empêcher tout débordement */
.partner-logo {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Hover premium (si tu utilises feature-card aussi sur services) */
.services .feature-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .services .feature-card:hover,
    .services .feature-card:focus-within {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px rgba(2,6,23,.14);
    }

/* =========================
   MOBILE OPTIMISATION
   ========================= */
@media (max-width: 768px) {

    /* Services: plus de respiration */
    .service-card .card-body {
        padding: 20px;
    }

    /* CTA: moins “massif” */
    .cta {
        padding: 28px;
        text-align: center;
    }

        .cta .btn {
            width: 100%;
        }

    /* Partenaires: éviter les logos coupés */
    .partner-wrap {
        height: 120px; /* un peu plus haut */
        padding: 16px;
    }

    .partner-logo {
        max-height: 56px; /* légèrement réduit pour être sûr */
    }
}

/* Très petit mobile : encore plus safe */
@media (max-width: 420px) {
    .partner-wrap {
        height: 132px;
        padding: 14px;
    }

    .partner-logo {
        max-height: 52px;
    }
}
@media (max-width: 575.98px) {
    #partners .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}