/****** Reset *****/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}

/****** Fin du reset ******/


/***** Style général de la page *****/
body {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: 70%;
    height: auto;
    background-color: #f1f1f1;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.69);
}

/***** Fin du style général de la page *****/


/***** Titre *****/
h1 {
    text-align: center;
    margin: 16px 0;
    font-size: 30px;
    text-transform: uppercase;
    color: #333333;
}

/***** Fin du titre *****/


/***** Début du formulaire *****/
form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form label {
    color: #333333;
    margin-bottom: 16px;
}

form input {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    outline: none;
    padding: 16px;
    font-size: 16px;
}

.info {
    color: #ff0000;
    font-weight: bold;
    margin-top: 16px;
}

form button {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    color: #f1f1f1;
    background-color: #333333;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    margin: 16px 0;
    cursor: pointer;
    transition: background-image 0.3s ease-in-out;
}

form button:hover {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/***** Fin du formulaire ******/


/***** QR code *****/
.qrCode-result {
    width: 100%;
    height: 0;
    margin: 0 auto;
    padding: 16px;
    transition: height 0.3s ease-in-out 0.3s;
}

.qrCode-result.active {
    height: 250px;
}

.qrCode-result img {
    display: block;
    height: 100%;
    width: auto;
    margin: 0 auto;
}

footer {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

span {
    text-align: center;
}

/***** Fin du QR code *****/


/***** Media Queries *****/
@media screen and (max-width: 595px) {
    h1 {
        font-size: 20px;
    }

    form label,
    form input,
    form button,
    .info {
        font-size: 14px;
    }

    .info {
        text-align: center;
    }
}

@media screen and (max-width: 425px) {
    form label {
        text-align: center;
    }

    .qrCode-result img {
        width: 100%;
    }
}

/***** Fin des Media Queries *****/