body{
    max-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(28deg, rgba(116,84,137,1) 26%, rgba(46,157,176,1) 78%);
}

.asterisque
{
    margin: 0;
    color: red;
}

.popup
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: rgba(3, 3, 3, 0.116);
    backdrop-filter: blur( 5px );
    -webkit-backdrop-filter: blur( 5px );
}

.show
{
    display: flex;
}

.popup .popup-container
{
    position: relative;
    width: 600px;
    /* height: 400px; */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px 1px rgb(104, 104, 104);
}

.popup-container .boutons
{
    display: inline-flex;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.container{
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 6px;
    padding: 30px;
    max-height: 85svh;
    margin: 50px 15px 0 15px;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    overflow: auto;
}
.container header{
    position: relative;
    font-size: 25px;
    font-weight: 600;
    color: #333;
}
.container header::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 27px;
    border-radius: 8px;
    background-color: var(--vert-bleu);
}
.container form{
    position: relative;
    margin-top: 16px;
    min-height: 490px;
    background-color: #fff;
    /* overflow: hidden; */
}
.container form .form{
    /* position: absolute; */
    background-color: #fff;
    transition: 0.3s ease;
}
.container form .form.second{
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}
form.secActive .form.second{
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
form.secActive .form.first{
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}
.container form .title{
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
    margin: 6px 0;
    color: #333;
}
.container form .fields{
    display: grid;
    /* align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
form .fields .input-field{
    display: flex;
    /* width: calc(100% / 3 - 15px); */
    flex-direction: column;
    margin: 4px 0;
}
.input-field label{
    font-size: 15px;
    font-weight: 500;
    color: #2e2e2e;
}

.input-field select
{
    background-color: transparent;
}

.input-field input, select{
    min-width: 200px;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field input :focus,
.input-field select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
}
.input-field select,
.input-field input[type="date"]{
    color: #707070;
}
.input-field input[type="date"]:valid{
    color: #333;
}
.container form button, .backBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin: 25px 0;
    background-color: var(--vert-bleu);
    transition: all 0.3s linear;
    cursor: pointer;
    /* position: absolute;
    bottom: 0; */
}
.container form .btnText{
    font-size: 14px;
    font-weight: 400;
}
form button:hover{
    background-color: var(--vert-bleu);
}
form button i,
form .backBtn i{
    margin: 0 6px;
}

.identique {
    display: none;
    color: red;
    width: 110%;
    margin: 0;
}

.identique.active {
    display: block;
}

.input-field input.active-mdp {
    border: 1px red solid;
    background-color: rgba(255, 0, 0, 0.09);
}

.input-field input.good-mdp {
    border: 1px rgb(50, 204, 50) solid;
}

.error
{
    display: none;
    background-color: rgb(255, 197, 197);
    color: red;
    padding: 10px;
    border-radius: 10px;
    width: calc(100% - 20px);
}

.active
{
    display: block;
}

#continue {
    background-color: rgba(46, 157, 176, 0.65);
    cursor: not-allowed;
}

#continue.active {
    background-color: var(--vert-bleu);
    cursor: pointer;
}

@media (max-width: 800px) {
    .container form{
        overflow-y: scroll;
        height: 90%;
        min-height: 300px;
    }
    .container form::-webkit-scrollbar{
       display: none;
    }
    .container form .fields {
        grid-template-columns: 1fr 1fr;
    }
    /* form .fields .input-field{
        width: calc(100% / 2 - 15px);
    } */
}

@media (max-width: 570px) {
    form .fields .input-field{
        width: 100%;
    }
    .container
    {
        margin-top: 80px;
        margin-bottom: 20px;
        height: 85svh;
        padding-bottom: 20px;
        overflow-y: auto;
    }

    .container form .fields {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-height: 700px) {
    .container 
    {
        max-height: 77svh;
    }
}

@media only screen and (max-width: 600px) {
    .popup .popup-container
    {
        width: 350px;
    }
}
@media (max-width: 375px)
{
    form .fields .input-field{
        width: 93%;
    }
    .container
    {
        margin-top: 60px;
    }
}

@media (max-width: 320px)
{
    /* body{
        height: 568px;
    } */
    .container{
        margin-top: 40px;
        margin-bottom: 40px;
        height: calc(100% - 80px);
        overflow: scroll;
    }

    .heure
    {
        flex-direction: column;
    }

    form .fields .input-field{
        width: 75%;
    }
}