
/* Service */
.service-item2 {
    position: relative;
    text-align: center;
}

.service-item2 .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item2 .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item2:hover .service-img img {
    transform: scale(1);
}

.btn-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: #0e3f68;
}

.btn-square i{
    font-size: 2.5rem;
}

.service-item2 .service-text {
    background: #FFFFFF;
    width: 100%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item2:hover .service-text {
    background: rgba(14, 63, 104, .6);
    color: #fff;
}

.service-item2 .service-text h4{
    color: #0e3f68;
    font-weight: 600;
    text-transform: uppercase;
}

.service-item2 .service-text h4,
.service-item2 .service-text p {
    transition: .3;
}

.service-item2 .service-text p {
    padding-top: 5px;
    border-top: 2px dotted #0e3f68;
}

.service-item2:hover .service-text h4 {
    color: #fff;
}

.service-item2:hover .service-text p {
    color: #f7f7f7;
    border-top: 2px dotted #fff;
}

.service-item2:hover .service-text p .text-primary {
    color: #f7f7f7 !important;
}

.service-item2 .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item2:hover .service-text .btn-square {
    background: rgba(14, 63, 104,.95);
    color: #fff !important;
}

.service-item2:hover .service-text .btn-square img{
    /* Augmente la luminosité et contraste pour rendre l'image blanche */
    filter: brightness(100%) contrast(100%) grayscale(100%);
}

.service-item2 .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    background: rgba(14, 63, 104,255);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
    padding: .25rem .5rem;
}

.service-item2 .service-text .btn i{
    color: #fff !important;
    font-size: 1rem;
    margin-right: .25rem !important;
}

.service-item2:hover .service-text .btn {
    width: 112px;
    color: #fff !important;
}

.service-block {
    padding: 20px;
    margin-top: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 0 38px rgba(21, 40, 82, 0.07);
}
.service-block img {
    width: 100%;
    margin-top: -60px;
    border: 5px solid #fff;
}