h2{
    padding: 70px 0px 0px 150px;
    margin-bottom: 40px;
}

main{
    display: flex;
}

main form{
    width: 20%;
}

main .card-container{
    border-left: #8C4848 2px solid;

    width: 80%;
    padding: 60px 40px 40px 40px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

main .card{
    margin: 15px;
}

.card-header{
    width: 288px;
    height: 95px;
    padding: 15px;

    border-radius: 52px 52px 0px 0px;
    background: #4B1414;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: all 0.1s ease-in-out;
}

.card-header:hover{
    border: 3px solid white;

    /* box-shadow: inset 0px 0px 10px 4px white ; */
}

main h4{
    color: white;
    text-align: center;
    font-size: 25px;

    transition: all 0.1s ease-in-out;
    transform: scale(1);
}

.card-header:hover h4{
    transform: scale(1.05);
}

.card-info{
    width: 288px;
    height: 256px;
    padding: 20px 25px 20px 25px;

    border-radius: 0px 0px 50px 50px;
    background: #8C4848;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card-info > div{
    display: flex;
}

.left{
    text-align: end;
    margin-right: 9px;
}

.right{
    text-align: start;
    margin-left: 9px;
    font-weight: bold;
}

main p, main a {
    color: white;

    max-height: 75px;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
}

.btn{
    padding: 10px 30px 10px 30px;
    width: fit-content;

    border-radius: 33px;
    border: 2px solid white;
    background: none;

    color: white;

    /* transform: scale(1); */
    transition: all 0.2s ease-in-out;
}

.btn:hover{
    border: 2px solid white;
    background: white;

    color: #8C4848;

    /* transform: scale(1.1); */
}

/* -------------------- */
/* ------- FORM ------- */
/* -------------------- */
main form > div{
    height: 500px;
    padding: 0px 30px 0px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

main label, main #text{
    margin-bottom: 10px;
}

#minPrice::placeholder, #maxPrice::placeholder, #minDuration::placeholder, #maxDuration::placeholder{
    color: rgb(0, 0, 0);
}

main input, main select{
    width: 100%;
    padding: 5px 20px 5px 20px;

    border-radius: 20px;
    border: 2px solid black;
    background: none;
}

#minPrice, #maxPrice, #minDuration, #maxDuration{
    width: 46%;
}

#submit{
    padding: 5px 20px 5px 20px;

    border-radius: 20px;
    border: 2px solid black;
    background: none; 

    transition: all 0.2s ease-in-out;
}

#submit:hover{
    background: black;
    color: white;
}

/* RECHERCHER */
main form > div > div:nth-child(1){
    display: flex;
    align-items: center;

    position: absolute;
    left: 30%;
}

main form > div > div:nth-child(1) label{
    margin-right: 20px;
}

main form > div > div:nth-child(1) input{
    width: 600px;
}


/* TYPE */
main form > div > div:nth-child(2){
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 38px;
}

/* main form > div > div:nth-child(2) label{
    align-self: flex-start;
} */

/* PRIX */

main form > div > div:nth-child(3){
    display: flex;
    flex-direction: column;
    align-items: center;
}

main form > div > div:nth-child(3) input{
    align-self: flex-end;
}

main form > div > div:nth-child(4) input{
    position: relative;
    bottom: 100%;
}

/* DUREE */

main form > div > div:nth-child(5){
    display: flex;
    flex-direction: column;
    align-items: center;
}

main form > div > div:nth-child(5) input{
    align-self: flex-end;
}

main form > div > div:nth-child(6) input{
    position: relative;
    bottom: 100%;
}

/* PAGE */

main form > div > div:nth-child(7){
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 38px;
}

/* ----------------------------------------------- */
/* RESPONSIVE */
/* ----------------------------------------------- */

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

    h2 {
        padding: 70px 0px 70px 0px;
        text-align: center;
    }

    main h4{
        font-size: 50px;
    }

    main p{
        max-height: 68px;
    }

    main{
        flex-direction: column;
    }

    main form{
        width: 100%;
    }

    main form > div {
        height: min-content;
    }

    main form > div > div:nth-child(1) {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        left: 0;
    }

    main form > div > div:nth-child(4) input, main form > div > div:nth-child(6) input {
        position: relative;
        top: -76.4px;
    }

    main form > div > div:nth-child(1), main form > div > div:nth-child(2), main form > div > div:nth-child(7) {
        margin-bottom: 76px;
    }

    main .card-container {
        width: 100%;
    }

    .card-header {
        width: 576px;
        height: 192px;
        padding: 30px;
        border-radius: 104px 104px 0px 0px;
    }

    .card-info {
        width: 576px;
        height: 512px;
        padding: 40px 50px 40px 50px;
        border-radius: 0px 0px 100px 100px;
    }

    .btn{
        border: 4px solid white;
        padding: 0px 30px 0px 30px;
    }

    .btn:hover{
        border: 4px solid white;
    }
}
