
/*===================== SECTION FIRST OF WEBSITE ===========================*/

.section-first{
    width: 100vw;
    height: 100vh;
    /* margin-top: -50px; */
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.section-first .list .item{
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    /* border-radius: 5px; */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 10;
    transition: 1s;
}
.section-first .list .item::before {
    position: absolute;
    content: '';
    /* background: linear-gradient(#0101016e 42%, #0000003b); */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* border-radius: 20px; */
    z-index: 20;
    transition: all .5s ease-in-out;
}
.section-first .list .item::before {
    transition: all .5s ease-in-out;
    background: linear-gradient(#0101016e 42%, #0000003b);
}
.section-first .list .item.active::before {
    background: linear-gradient(#0101016e 42%, #0000003b);
    transition: all .5s ease-in-out;
}

.section-first .list .item:nth-child(1),
.section-first .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.section-first .list .item:nth-child(3){
    left: 67%;
}

.section-first .list .item:nth-child(4){
    left: calc(67% + 200px);
}

.section-first .list .item:nth-child(5){
    left: calc(67% + 400px);
}

.section-first .list .item:nth-child(6){
    left: calc(67% + 600px);
}

.section-first .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}

.list .item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #fff;
    display: none;
    z-index: 30;
    gap: 2vw;
}

.list .item:nth-child(2) .content{
    display: flex;
    flex-direction: column;
}

.content .title{

    display: block;
    font-size: var(--h1-size);
    font-weight: 700;
    font-family: var(--font-marcellus);
    color: white;
    line-height: 5.36458vw;
    /* letter-spacing: 0.26em; */
    /* -webkit-text-stroke: 4px var(--color-secundary); */
    -webkit-text-stroke: 5px var(--color-white);
    text-transform: uppercase;
    /* color: var(--color-secundary); */
    
    width: 70vw;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    /* margin-left: 5px; */
    /* font-size: var(--h6-size); */
    font-size: 1.54vw;
    opacity: 0;
    width: 50vw ;
    line-height: 2.5vw;
    color: white;
    font-weight: 500;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content a.btn-action {
    padding: 1vw 2vw;
    border: none;
    cursor: pointer;
    font-size: var(--h6-size);
    border: 2px solid #fff;
    text-align: center;
    background: white;
    color: var(--color-secundary);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #fff;
    border-radius: 5px;
    transition: 0.3s;
    width: fit-content;
    
    animation: animate 1s ease-in-out .9s 1 forwards;
}

.content a.btn-action:hover{
    background-color: var(--color-secundary);
    color: #fff;
    border-color:  var(--color-secundary);
}


@keyframes animate {
    
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* next prev arrows */

.arrows{
    position: absolute;
    top: 14vw;
    /* right: 8vw; */
    right: 4vw;
    z-index: 20;
    width: auto;
    max-width: 30%;
    display: flex;
    gap: 2vw;
    align-items: center;
}

.arrows button{
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
    background-color: var(--color-secundary);
    color: #fff;
    border: none;
    outline: none;
    font-size: 1.42vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    border: 1px solid white;
    cursor: pointer;
}

.arrows button:hover{
    border: 1px solid white;
    background: #fff;
    color: #000;
}


/* time running */
.carousel .timeRunning{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: var(--color-primary);
    left: 0;
    top: 0;
    
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    
    from{width: 0%;}
    to{width: 100%;}

}

/*===================== SECTION TWO OF WEBSITE ===========================*/

section.list-images {
    padding: 4vw 5vw;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1vw;
}

section.list-images .one-img {
    display: flex;
    position: relative;
    flex-direction: column;
    border-radius: 15px;
    /* width: auto; */
}
section.list-images .one-img figure {
    width: 21vw;
    height: 15vw;
    position: relative;
    overflow: hidden;
    transition: all .5s ease-in-out;
}
section.list-images .one-img figure::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 15px;
    height: 100%;
    opacity: 1;
    transition: all .5s ease-in-out;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

section.list-images .one-img figure img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    transition: all .5s ease-in-out;
}
section.list-images .one-img:hover figure {
    transform: scale(1.05); /* L'image grandit légèrement */
    transition: all .5s ease-in-out;
}

section.list-images .one-img .details {
    position: absolute;
    bottom: 0;
    margin-bottom: 1.5vw;
    padding: 0 .8vw;
    color: white;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
section.list-images .one-img .details .left {
    display: flex;
    flex-direction: column;
    gap: .8vw;
}
section.list-images .one-img .details .name {
    font-size: var(--p-size);
    font-family: var(--font-name);
    font-weight: bold;
}

section.list-images .one-img .details .icon-chevron {
    font-size: 1vw;
    opacity: 0;
    transform: translateY(-2vw);
    transition: all .5s ease-in-out;
}
section.list-images .one-img:hover .details .icon-chevron {
    opacity: 1;
    transform: translateY(0);
    transition: all .5s ease-in-out;
}

@media (max-width:768px) {
    
    .arrows {
        top: initial;
        bottom: 10vw;
        right: 0;
        left: 0;
        z-index: 20;
        width: 100%;
        max-width: -webkit-fill-available;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2vw;
    }
    .arrows button {
        width: 14vw;
        height: 14vw;
        font-size: 4.42vw;
    }
    .list .item .content {
        top: 40%;
        left: 7vw;
        transform: translateY(-50%);
        width: 396px;
    }
    .content .title {
        display: block;
        font-size: 8vw;
        font-family: var(--font-marcellus);
        color: white;
        line-height: 13.36458vw;
        -webkit-text-stroke: 1px var(--color-white);
        text-transform: uppercase;
        width: 70vw;
    }
    .content .des {
        display: none;
    }

    section.list-images {
        /* display: none; */
        padding: 7vw 5vw;
        gap: 7vw;
    }   
    section.list-images .one-img {
        width: 100%;
    }   
    section.list-images .one-img figure {
        width: 100%;
        height: 48vw;
    }   
    section.list-images .one-img .details {
        position: absolute;
        bottom: 0;
        margin-bottom: 1.5vw;
        padding: 3vw 3.8vw;
    }   
    section.list-images .one-img .details .left {
        gap: 1.8vw;
    }   
    section.list-images .one-img .details .name {
        font-size: 23px;
        font-weight: 300;
    }   
    section.list-images .one-img .details .town {
        font-size: 12px;
    }   
    section.list-images .one-img .details .icon-chevron {
        font-size: 7vw;
    }   

}
