
/* ****  css slider   *****************************************************************/
.slider{
    width: 100vw;
    height: 110vh;
    position: relative;
    overflow: hidden;
    background-color: var(--bleu);
    z-index: 3;

    margin-top: -50px;
    border-top: 0px solid var(--orange);

    border-bottom: 4px solid var(--bleu-clair);
}
.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, var(--bleu-clair), var(--bleu-clair), rgb(96, 66, 124));
    opacity: 0.7;
}

.slider .list .item .wrapper {
    position: relative;
    margin: auto;
    width: 1080px;
    top: 35%;
    z-index: 1;
    box-sizing: border-box;
    text-shadow: 0 5px 10px #0004;
}

.slider .list .item .content{
    position: absolute;
    left: 1px;
    right: 20px;
    top: 25%;
    z-index: 1;
    box-sizing: border-box;
    text-shadow: 0 5px 10px #0004;
}

.slider .list .item .content h2 {
    font-size: 33px;
    font-weight: 900;
    margin: 0;
    width: 700px;
    line-height: 50px;
    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: 25px;
}
.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(--orange);
}
.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: var(--bleu) !important;
    background-image: linear-gradient(to right, var(--bleu), var(--bleu));
    border-color: var(--bleu);
    color: var(--bleu);
    /* 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: 75%;
    right: 17%;
    z-index: 100;

    display: flex;
    display: none;
    opacity: 0;
}

.arrows button {
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 33px;
    height: 33px;
    border-radius: 5px;
    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;
}
.arrows button i{
    font-size: 12px;
}

.arrows button:hover {
    background-color: #eee;
    color: black;
    transform: scale(1.1);
}
.thumbnail {
    position: absolute;
    bottom: 35%;
    right: 240px;
    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(--orange);
}

.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: 678px) {
    .thumbnail {
        justify-content: start;
    }

    .slider .list .item .content h2 {
        font-size: 60px;
    }

    .arrows {
        top: 10%;
    }
}

@media screen and (min-width: 1720px) {
    .slider {
        height: 85vh;
    }
}