/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3rem;
    /*========== Colors ==========*/
    --hue-color: 206;
    --black-color: #ffe6f2;
    --black-color-alt: #eaeafd;
    --black-color-alt2: #fff;
    --title-color: #4477d1;
    --text-color: #000;
    --text-color-light: #27a819;
    --white-color: #fd94c5;
    --body-color: #fff;
    --container-color: #eaeafd;
    --text-gradient: linear-gradient(90deg, #fd94c5, #8db5fd);
    --scroll-thumb-color: hsl(var(--hue-color), 4%, 16%);
    --scroll-thumb-color-alt: hsl(var(--hue-color), 4%, 20%);
    /*========== Font and typography ==========*/
    --body-font: "Jost", sans-serif;
    --biggest-font-size: 5rem;
    --bigger-font-size: 3.5rem;
    --big-font-size: 2.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --text-line-height: 2rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    /*========== Margenes Bottom ==========*/
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 7.5rem;
        --bigger-font-size: 4.5rem;
        --big-font-size: 4rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3 {
    color: var(--title-color);
}

h3 span {
    font-size: 1.3em;
    color: #fd94c5;
    font-weight: bolder;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button,
input {
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: var(--bigger-font-size);
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.section__title-gradient {
    background: var(--text-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/*=============== LAYOUT ===============*/
.main {
    overflow: hidden;
}

.container5 {
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
}

/*=============== HOME ===============*/
.home__img {
    width: 250px;
    position: absolute;
    top: -10rem;
    right: 1.5rem;
    z-index: -10;
}

.home__data {
    padding-top: 5rem;
}

.home__header {
    position: relative;
}

.home__title {
    position: absolute;
    top: -4rem;
    line-height: 6rem;
    font-size: var(--biggest-font-size);
    background: var(--text-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
}

.home__subtitle {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-2-5);
    padding-top: 15px;
}

.home__title-description {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.home__description {
    margin-bottom: var(--mb-2-5);
    line-height: var(--text-line-height);
    font-size: 18px;
    text-align: justify;
}

.home__price {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-left: var(--mb-0-75);
}

/*=============== BUTTONS ===============*/
.button,
.button2 {
    display: inline-block;
    background-color: var(--black-color-alt2);
    color: var(--white-color);
    padding: 1rem 1.25rem;
    border-radius: .5rem;
    transition: .3s;
    border: 2px solid var(--black-color);
}

.button:hover {
    background-color: var(--black-color);
}

.button2:hover {
    background-color: var(--black-color);
    border: 2px solid #fff;
}

.button__icon,
.button2__icon {
    font-size: 1.2rem;
}

.button--flex,
.button2--flex {
    display: inline-flex;
    align-items: center;
    column-gap: .75rem;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.testimonial {
    height: auto;
   
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 50px;
}

.testimonial h2 {
    font-size: 50px;
}
.swiper-wrapper {
    margin-bottom: 30px !important;
}
.testimonial__swiper {
    padding-bottom: 7rem;
}

.testimonial__card {
    width: 400px !important;
    background-color: #fff;
    box-shadow: 0 4px 0px rgba(0, 0, 0, .1);
    border-radius: 1.5rem;
    height: 560px !important;
    transition: transform .4s, box-shadow .4s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin: 26px 0;
}

.card {
    width: 100%;
    background-image: url(https://27091425.fs1.hubspotusercontent-eu1.net/hubfs/27091425/Site%20web%20-%20VIVALTIS/Images/Page%20offre/fond_card.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    border-radius: 0 0 25px 25px;
}

.titretesti {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 20px;
}

.titretesti .testioffre {
    color: #fdc1dd;
   margin-bottom: 0 !important;
}

.titretesti h2 {
    color: #4477d1;
    font-size: 30px;
   margin-bottom: 0 !important;
}

.titretesti .prix span {
    color: #fd94c5;
    font-size: 25px;
    font-weight: 800;
}

.titretesti .prix s {
    color: #000000;
    text-decoration: line-through;
    /* assure la barre */
    text-decoration-color: rgb(230, 5, 5);
    text-decoration-thickness: 2px;
    /* (optionnel) épaisseur */
}

.titretesti .prix {
    color: #000;
    padding: 3px 0 10px 0;
   margin-bottom: 0 !important;
}

.titretesti .info {
    text-align: justify;
    color: #dadada;
   margin-bottom: 0 !important;
}

.lien {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    bottom: 0;
}

.lien:hover {
    background-color: #fff;
}

.lien a {
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    background-color: #8db5fd;
    border-top: 1px solid #8db5fd;
    transition: all 0.3s ease-in-out;
}

.lien a:hover {
    color: #8db5fd;
    background-color: #fff;
}

.card img {
    height: 250px;
}

.swiper-slide-active {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    z-index: 10;
}

/* Swiper controls */
.testimonial .swiper-pagination-bullets {
    bottom: 4rem !important;
}

.testimonial .swiper-pagination-bullet {
    background-color: #fdc1dd;
    transition: opacity .4s;
}

.testimonial .swiper-button-prev {
    left: calc(50% - 3rem)  margin-bottom: 0 !important;;
}

.testimonial .swiper-button-next {
    right: calc(50% - 3rem)  margin-bottom: 0 !important;;
}

.testimonial .swiper-button-prev::after,
.testimonial .swiper-button-next::after {
    content: "";
}

.testimonial :is(.swiper-button-prev, .swiper-button-next) {
    top: initial;
    bottom: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #fdc1dd;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
}

/*=============== BREAKPOINTS RESPONSIVE ===============*/

/* Très petits écrans (max 340px) */
@media screen and (max-width: 340px) {
    .container5 {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .section__title {
        font-size: var(--big-font-size);
    }

    .home__title {
        top: -4rem;
        font-size: var(--bigger-font-size);
    }

    .home__data {
        padding-top: 1rem;
    }

    .home__description {
        font-size: 16px;
    }

    .testimonial__card {
        width: 320px !important;
        /* harmonisé */
    }

    .testimonial__title {
        font-size: 1.25rem;
    }
}

/* Petits écrans (max 576px) */
@media screen and (max-width: 576px) {
    .home__img {
        width: 200px;
        top: -8rem;
        opacity: 0.5;
    }

    .titretesti h2 {
        font-size: 27px;
    }

    .titretesti .info {
        font-size: 14px;
    }
}

/* Moyens écrans (min 576px et +) */
@media screen and (min-width: 576px) {
    .home__container5 {
        grid-template-columns: 0.8fr 1fr;
    }

    .home__data {
        padding-top: 2rem;
    }

    .home__img {
        top: -9rem;
        left: 0;
        opacity: 1;
    }
}

/* Tablettes (max 768px) */
@media screen and (max-width: 768px) {
    .testimonial {
        margin-top: 0;
        height: auto;
        padding: 3rem 0;
    }

    .testimonial h2 {
        font-size: 26px;
    }

    .testimonial__card {
        width: 350px !important;
    }
}

/* Tablettes paysage (min 767px) */
@media screen and (min-width: 767px) {
    body {
        margin: 0;
    }

    .section {
        padding: 6rem 0 2rem;
    }

    .home__container5 {
        position: relative;
        grid-template-columns: repeat(2, 1fr);
    }

    .home__img {
        top: -14rem;
        left: 4rem;
    }

    .home__data {
        padding-top: 8rem;
    }
}

/* Desktop (min 1024px) */
@media screen and (min-width: 1024px) {
    .container5 {
        margin-left: auto;
        margin-right: auto;
    }

    .home__img {
        width: 300px;
        top: -17rem;
    }

    .home__title {
        top: -5rem;
    }

    .home__description {
        padding-right: 3rem;
    }
}

/* Grand desktop (min 1150px) */
@media screen and (min-width: 1150px) {
    .testimonial__swiper {
        max-width: 1110px;
    }

    .testimonial__card {
        width: 400px !important;
        border-radius: 2rem;
    }
}