
/* ****  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(25, 91, 164, 0.999), rgba(25, 91, 164, 0.9), rgba(25, 91, 164, 0.8), rgba(25, 91, 164, 0.9)); */
    background-image: linear-gradient(70deg, rgb(3, 6, 11),rgb(10, 132, 79));
    opacity: 0.75;
}

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

}

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

.slider .list .item .content h2 {
    font-size: 80px;
    font-weight: 900;
    margin: 0;
    width: 750px;
    line-height: 75px;
    margin-bottom: 15px;
    color: #fff;
    /* text-transform: uppercase; */
}

.slider .list .item .content p {
    font-size: 16px;
    max-width: 450px;
    color: #fff
}

.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;
}





.arrows {
    position: absolute;
    top: 45%;
    /* border: 1px solid red; */
    right: 5%;
    left: 5%;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    /* display: none; */
    /* opacity: 0; */
}

.arrows button {
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: x-large;
    color: #eee;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    margin: 4px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0.55;
}
.arrows button i{
    font-size: 11px;
}

.arrows button:hover {
     background-color: rgba(188, 188, 188, 0.8);
    transform: scale(1.1);
    opacity: 0.8;
    color: var(--blanc);
}
.thumbnail {
    position: absolute;
    bottom: 27%;
    right: 205px;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.thumbnail .item {
    width: 50px;
    height: 45px;
    filter: brightness(0.8);
    transition: transform 0.3s, filter 0.3s;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
}

.thumbnail .item.active {
    filter: brightness(1.2);
    transform: scale(1.2);
    border: 1px solid var(--gris);
}

.thumbnail .item:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .item .content {
    position: absolute;
    inset: auto 10px 10px 10px;
    font-size: 0;
    opacity: 0;
}




@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;
    }
    .thumbnail {
        position: absolute;
        bottom: 35%;
        right: 10%;
        width: max-content;
        z-index: 100;
        display: flex;
        gap: 7px;
    }

    .thumbnail .item {
        width: 40px;
        height: 35px;
        filter: brightness(0.7);
    }

}
@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);

        /* border-bottom: 2px solid #4a9c80; */
    }
     .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 85%;
        top: 25%;
        padding: 0;
    }

    .slider .list .item .content h2 {
        font-size: 60px;
        font-weight: 900;
        margin: 0;
        width: 100%;
        margin-bottom: 10px;
    }
    .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 .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 90%;
        top: 30%;
    }
    .slider .list .item .content h2 {
        font-size: 45px;
        font-weight: 700;
        margin: 0;
        width: 100%;
        line-height: 50px;
        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: 486px) {
    .slider .list .item .wrapper {
        position: relative;
        margin: auto;
        width: 90%;
        top: 25%;

    }
    .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;
}