/* =====================================================
   HMD-SOLUTION - SERVICES
   Fichier : styleservice.css
   ===================================================== */

.hmd-services {
    width: 100%;
    padding: 70px 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.hmd-services-container {
    width: 86%;
    
    margin: 0 auto;
}


/* =========================
   TITRE
   ========================= */

.hmd-services-title {
    margin: 0 0 50px 0;
    color: #142f52;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
}


/* =========================
   GRID
   ========================= */

.hmd-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* =========================
   CARD
   ========================= */

.hmd-service-card {
    background: #ffffff;
    overflow: hidden;
    transition: all 0.35s ease;
}


/* =========================
   IMAGE
   ========================= */

.hmd-service-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #f3f5f8;
}

.hmd-service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}


/* Zoom image */

.hmd-service-card:hover .hmd-service-image img {
    transform: scale(1.05);
}


/* =========================
   CONTENT
   ========================= */

.hmd-service-content {
    padding: 18px 0 30px 0;
}

.hmd-service-content h3 {
    margin: 0 0 15px 0;
    color: #102e51;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
}

.hmd-service-content p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   BUTTON
   ========================= */

.hmd-service-btn {
    display: inline-block;
    padding: 11px 22px;
    background: #0b63ce;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hmd-service-btn:hover {
    background: #102e51;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* =========================
   CARD HOVER
   ========================= */

.hmd-service-card:hover {
    transform: translateY(-5px);
}


/* =========================
   TABLETTE
   ========================= */

@media (max-width: 991px) {

    .hmd-services {
        padding: 55px 0;
    }

    .hmd-services-container {
        width: 90%;
    }

    .hmd-services-title {
        font-size: 40px;
        margin-bottom: 35px;
    }

    .hmd-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .hmd-service-image {
        height: 380px;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .hmd-services {
        padding: 40px 0;
    }

    .hmd-services-container {
        width: 90%;
    }

    .hmd-services-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .hmd-services-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hmd-service-image {
        height: 360px;
    }

    .hmd-service-content h3 {
        font-size: 23px;
    }

    .hmd-service-content p {
        font-size: 15px;
    }

}


/* =========================
   PETIT MOBILE
   ========================= */

@media (max-width: 400px) {

    .hmd-service-image {
        height: 300px;
    }

    .hmd-services-title {
        font-size: 30px;
    }

}