/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #1e3c60, #013a5d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Conteneur principal */
.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* Titres */
h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Champs d'entrée */
.input-fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    font-size: 16px;
    border: 2px solid #00aaff;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}

input::placeholder {
    color: #ccffff;
    opacity: 0.8;
}

button {
    background-color: #00aaff;
    color: #003366;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0077cc;
}

/* Conteneur QR Code */
#qr-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 200px;
}

.qr-item {
    margin: 10px;
    display: inline-block;
}

/* Barre de chargement */
#loading-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#loading-bar {
    width: 80%;
    max-width: 500px;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background-color: #3f8bb0;
    border-radius: 10px;
    animation: loading 3s linear forwards;
}

#loading-text {
    margin-top: 10px;
    font-size: 16px;
    color: #0a39b3;
}

/* Animation de la barre de chargement */
@keyframes loading {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
