@media only screen and (max-width: 500px) {
    main {
        min-height: 0px;
    }

    #box-fiche {
        width: 100% !important;
        margin-bottom: 10px;
        background-color: rgba(255, 255, 255, 0.2);
        position: initial;
    }

    .register-box {
        display: none;
    }

    #conteneur-fiche {
        width: 95%;
        margin-top: 0;
        padding: 50px 0 10px 0;
        margin-bottom: 0;
    }

    .div-connectes input {
        width: 65%;
        font-size: small;
    }

    #bouton-valid {
        width: 250px !important;
    }

    #imageSwame {
        z-index: 1;
    }
}

@media only screen and (min-width: 501px) and (max-width: 900px) {
    .register-box {
        height: 100% !important;
        object-fit: cover;
        object-position: left;
    }

    main {
        height: 200vh;
    }

    #box-fiche {
        width: 75% !important;
    }

    #bouton-valider {
        width: 45% !important;
    }
}