
/* ****  css slider   *****************************************************************/
.slider{
    width: 100vw;
    height: 105vh;
    position: relative;
    overflow: hidden;
    background-color: #4a9c80;
    z-index: 3;

    margin-top: -15px;
    border-top: 0px solid var(--gris);

    /* border-bottom: 2px solid #4a9c80; */
}
.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    /* transition: .5s; */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slider .list .item.active {
    opacity: 1;
    transform: scale(1.02);
}

.slider .list .item:not(.active) {
    opacity: 0;
    transform: scale(0.95);
}

.slider .list .item img {
    width: 150px;
    height: 200px;
    position: absolute;
    bottom: 50px;
    left: 60%;
    border-radius: 20px;
}

.slider .list .item.active img {
    animation: showImage 0.3s linear 1 forwards;
}

@keyframes showImage {
    to {
        width: 100%;
        height: 100%;
        object-fit: cover;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(60deg,rgba(0, 42, 82, 0.6), rgba(0, 16, 34, 0.6), rgba(1, 25, 53, 0.8), rgba(0, 17, 36, 0.6));
    opacity: 0.999;
}

.slider .list .item .wrapper {
    position: relative;
    margin: auto;
    width: 1300px;
    top: 45%;
    z-index: 1;
    box-sizing: border-box;

}

.slider .list .item .content{
    position: absolute;
    left: 75px;
    right: 33px;
    top: 45%;
    z-index: 1;
    box-sizing: border-box;
    text-shadow: 0 5px 10px #0004;
}

.slider .list .item .content h2 {
    font-size: 50px;
    font-weight: 800;
    margin: 0;
    width: 55%;
    line-height: 45px;
    margin-bottom: 30px;
    color: #fff;
    /* text-transform: uppercase; */
}

.slider .list .item .content p {
    font-size: 24px;
    max-width: 520px;
    color: #fff;
    line-height: 30px;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}




.slider .list .item.active p,
.slider .list .item.active h2 {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s .7s ease-in-out 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active h2 {
    animation-delay: 1.1s;
}

.slider .list .item.active p {
    animation-duration: 1.3s;
}


.slider .item .title_btns {
   position: relative;
   opacity: 0;
   transition: ease all 0.3s;
   display: flex;
   margin-top: 5px;
}
.slider .item.active .title_btns {
    position: relative;
    opacity: 1;
}

.slider .item .title_btns button {
    position: relative;
    border: none;
    outline: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 3px;
    color: var(--blanc);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    margin-right: 10px;
    cursor: pointer;
    /* Add animation for hover state */
    animation: buttonAnimation 0.5s ease-in-out;

}

.slider .item .title_btns button:nth-child(1) {
    background-color: var(--gris);
}
.slider .item .title_btns button:nth-child(1) span {
    color: #eaeaea;
    font-size: 10px;
    border: 0.5px solid #eaeaea;
    padding: 0px 3px;
}
.slider .item .title_btns button:nth-child(1) span.search_icon {
    margin-right: 5px;
    border: 0px solid rgba(196, 196, 196, 0.0);
    font-size: 13px;
}

.slider .item .title_btns a {
    position: relative;
    text-decoration: none;
}
.slider .item .title_btns button:nth-child(2),
.slider .item .title_btns a button {
    background-image: linear-gradient(to right, var(--blanc), var(--blanc));
    border: 0px solid var(--gris-clair);
    color: var(--gris);
}
.slider .item .title_btns button:hover,
.slider .item .title_btns button:nth-child(2):hover{
    background-color: #4a9c80 !important;
    background-image: linear-gradient(to right, #4a9c80, #4a9c80);
    border-color: #4a9c80;
    color: #4a9c80;
    /* Add a subtle scale-up effect on hover */
    transform: scale(1.01);
    color: var(--blanc);
}
.slider .item .title_btns button span.chevron-right{
    font-size: 12px;
    margin: 0;
    margin-left: 5px;
    margin-bottom: -0px;
}


/* Keyframes for button animation */
@keyframes buttonAnimation {
    0% {
        transform: scale(0.60);
        opacity: 0.1;
    }
    20% {
        transform: scale(0.60);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Optional: Animation for button appearance */
@keyframes fadeInButtons {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider .item.active .title_btns {
    animation: fadeInButtons 0.5s ease-out;
}



@media screen and (max-width: 1400px) {

    .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 85%;
    }
     .slider .list .item .content h2 {
        width: 90%;
        line-height: 45px;
        margin-bottom: 15px;
    }



}


@media screen and (max-width: 1200px) {

    .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 85%;
    }
     .slider .list .item .content h2 {
        width: 75%;
        line-height: 40px;
        margin-bottom: 15px;
        font-size: 40px;
    }

}
@media screen and (max-width: 1024px) {
    .slider .list .item .content{
        position: absolute;
        left: 1px;
        right: 0px;
        top: 20%;
    }

    .slider .list .item .content h2 {
        width: 80%;
        line-height: 60px;
        margin-bottom: 15px;
    }
}
@media screen and (max-width: 992px) {
    .slider{
        height: 105vh;
        z-index: 3;

        margin-top: -5px;
        border-top: 0px solid var(--gris);
    }
     .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 100% !important;
        top: 25%;
        left: 10%;
        right: 10% !important;
        padding: 0;
    }

    .slider .list .item .content h2 {
        font-size: 40px;
        font-weight: 900;
        margin: 0;
        width: 80%;
        margin-bottom: 10px;
        line-height: 40px;
    }
    .slider .list .item .content p {
        font-size: 16px;
        max-width: 70%;
        color: #fff;
        line-height: 20px;
    }
    .slider .item .title_btns{
        position: relative;
        width: 100% !important;
        margin-right: 0 !important;
        height: auto;
    }
    .slider .item .title_btns button {
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 500;
        margin-right: 10px;
    }
    .thumbnail {
        justify-content: flex-end;
        margin-top: 105px !important;
    }
    .arrows {
        top: 10%;
        display: none;
    }
}
@media screen and (max-width: 678px) {
    .slider{
    width: 100vw;
    height: 95vh;
}
    .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 90%;
        top: 30%;
    }
    .slider .list .item .content h2 {
        font-size: 30px;
        font-weight: 800;
        margin: 0;
        width: 75%;
        line-height: 33px;
        margin-bottom: 15px;
    }
    .slider .item .title_btns {
        position: relative;
        opacity: 0;
        transition: ease all 0.3s;
        width: 100% !important;
        margin-top: 20px;
    }
    .slider .item .title_btns button {
        padding: 6px 8px;
        font-size: 11px;
        font-weight: normal;
        margin-right: 0px;
    }
        .thumbnail {
        justify-content: flex-end;
        margin-top: 105px !important;
        bottom: 18%;
        right: 5%;
    }


}
@media screen and (max-width: 540px) {
    .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 99%;
        top: 40%;

    }
    .slider .item .title_btns button span{
        font-size: 12px;
        margin: 0;
        margin-left: 5px;
        margin-bottom: -0px;
        margin: 1px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
    }

    .thumbnail {
        justify-content: flex-end;
        margin-top: 5px !important;

        border: 1px solid red;
    }

}
@media screen and (max-width: 390px) {

    .slider .item .title_btns button span{
        font-size: 12px;
        margin: 0;
        margin-left: 5px;
        margin-bottom: -0px;
        margin: 1px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
    }

    .slider .item .title_btns button:nth-child(1) span.search_icon {
        margin-right: 1px;
        border: 0px solid rgba(196, 196, 196, 0.0);
        font-size: 11px;
    }


    .slider .item .title_btns button span.chevron-right{
        font-size: 11px;
        margin-left: 1px;
    }
}


@media screen and (min-width: 1720px) {
    .slider {
        height: 95vh;
    }
}

.typing-block {
    display: inline-block;
    vertical-align: bottom;
}

/* Pour masquer le texte initial avant l'animation */
.item:not(.active) .typing-block {
    visibility: hidden;
}
