/* ========================================
   SECTION SERVICES
   ======================================== */

.services-home {
}

/* .services-home .h1 {
    color: var(--color4);
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 2.5);
    text-align: center;
    margin: 0 0 1.5em;
    font-weight: normal;
} */

.liste-services {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1em 0 4em;
    border-radius: var(--border-radius);
    z-index: 11;
    overflow: hidden;
}

.services-home .container {
    position: relative;
    width: 100%;
}

/* ========================================
   CARTES SERVICES
   ======================================== */

.img-service {
    position: relative;
    display: block;
    height: 55vh;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.img-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(var(--color4_rgb), 0.85) 0%,
        rgba(var(--color4_rgb), 0.4) 40%,
        transparent 70%
    );
    transition: all 0.4s ease;
    z-index: 1;
}

.img-service:hover::before {
    background: linear-gradient(
        to top,
        rgba(var(--color4_rgb), 0.9) 0%,
        rgba(var(--color4_rgb), 0.5) 50%,
        rgba(var(--color4_rgb), 0.2) 80%
    );
}

.img-service::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color1), var(--color2));
    transition: width 0.4s ease;
    z-index: 3;
}

.img-service:hover::after {
    width: 100%;
}

.img-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(var(--color4_rgb), 0.2);
}

/* ========================================
   TITRES ET CONTENU
   ======================================== */

.img-service .title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2em 1.5em 1.2em;
    transition: all 0.4s ease;
    text-align: left;
    background: transparent;
    z-index: 2;
}

.img-service:hover .title {
    padding-bottom: 1.8em;
}

.img-service .title h3 {
    max-width: 85%;
    min-height: 2em;
    margin: 0 0 0.5em 0;
    padding: 0;
    color: var(--color0);
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 2);
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.img-service:hover .title h3 {
    transform: translate3d(0, -3px, 0);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.img-service .title .seeMore {
    display: inline-block;
    padding: 0.5em 1.2em 0.5em;
    margin-top: 0.5em;
    color: var(--color0);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 0.95);
    font-weight: 500;
    background: rgba(var(--color4_rgb), 0.3);
    border: 1px solid rgba(var(--color0_rgb), 0.3);
    border-radius: calc(var(--border-radius) * 2);
    /* backdrop-filter: blur(5px); */
    text-shadow: 0 1px 3px rgba(var(--color5_rgb), 0.4);
    transition: all 0.3s ease;
    opacity: 1;
}

.img-service:hover .title .seeMore {
    color: var(--color0);
    background: var(--color1);
    border-color: var(--color1);
    text-shadow: none;
    opacity: 1;
    transform: translateX(5px);
}

/* ========================================
   BOUTONS DE NAVIGATION SWIPER
   ======================================== */

.btns-swiper-services {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    z-index: 11;
}

.btns-swiper-services .swiper-button-prev,
.btns-swiper-services .swiper-button-next {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    color: var(--color0);
    font-size: calc(var(--taille_font) * 1.2);
    background: var(--color1);
    border-radius: var(--border-radius);
    border: 3px solid var(--color0);
    box-shadow: 0 4px 12px rgba(var(--color4_rgb), 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btns-swiper-services .swiper-button-prev {left: -10px;}
.btns-swiper-services .swiper-button-next {left: 10px;}

.btns-swiper-services .swiper-button-prev::after,
.btns-swiper-services .swiper-button-next::after {
    content: none;
}

.btns-swiper-services .swiper-button-prev:hover,
.btns-swiper-services .swiper-button-next:hover {
    background: var(--color0);
    border:1px solid var(--color1);
    box-shadow: 0 6px 20px rgba(var(--color1_rgb), 0.25);
    transform: translateY(-2px);
}

.btns-swiper-services .swiper-button-prev:hover i,
.btns-swiper-services .swiper-button-next:hover i {
    color: var(--color1);
}

.btns-swiper-services .swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   BOUTON "VOIR TOUS LES SERVICES"
   ======================================== */

a.show-all-service {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 180px;
    height: auto;
    padding: 1em 2em;
    margin: 2em auto 0;
    color: var(--color0);
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.1);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    background: var(--color1);
    border: 2px solid var(--color1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(var(--color1_rgb), 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

a.show-all-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

a.show-all-service:hover::before {
    left: 100%;
}

a.show-all-service:hover {
    background: var(--color0);
    color: var(--color1);
    border-color: var(--color1);
    box-shadow: 0 6px 25px rgba(var(--color1_rgb), 0.3);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1024px) {
    .img-service {
        height: 50vh;
        min-height: 350px;
    }

    .img-service .title h3 {
        font-size: calc(var(--taille_font) * 1.8);
        max-width: 90%;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .services-home {
        padding: 2em 2%;
    }

    .services-home .h1 {
        font-size: calc(var(--taille_font) * 2);
        margin-bottom: 1em;
    }

    .liste-services {
        padding: 0.5em 0 3em;
    }

    .img-service {
        height: 45vh;
        min-height: 320px;
    }

    .img-service .title {
        padding: 1.5em 1.2em 1em;
    }

    .img-service .title h3 {
        font-size: calc(var(--taille_font) * 1.6);
        max-width: 95%;
        min-height: auto;
    }

    .img-service .title .seeMore {
        font-size: calc(var(--taille_font) * 0.9);
        padding: 0.4em 1em 0.15em;
    }

    .btns-swiper-services {
        bottom: 8%;
    }

    .btns-swiper-services .swiper-button-prev,
    .btns-swiper-services .swiper-button-next {
        width: 2.5em;
        height: 2.5em;
        font-size: var(--taille_font);
    }
}

@media (max-width: 480px) {
    .img-service {
        height: 40vh;
        min-height: 280px;
    }

    .img-service .title h3 {
        font-size: calc(var(--taille_font) * 1.4);
    }

    a.show-all-service {
        min-width: 160px;
        padding: 0.8em 1.5em;
        font-size: var(--taille_font);
    }
}