/* Style général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e2f;
    color: #eaeaea;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur principal */
.container {
    text-align: center;
    background: #2a2a3b;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    width: 800px;
}

/* Titres */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1em;
    color: #ffffff;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Label pour l'upload */
.upload-label {
    display: inline-block;
    margin-bottom: 1em;
    padding: 0.8em 1.5em;
    background-color: #0059d6;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.upload-label:hover {
    background-color: #0077ff;
}

.upload-label input {
    display: none;
}

/* Bouton d'envoi */
button {
    background-color: #34c759;
    color: white;
    border: none;
    padding: 0.8em 2em;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 1em;
}

button:hover {
    background-color: #28a745;
}

/* Résultat JSON */
#result-container {
    margin-top: 2em;
}

#result {
    margin-top: 1em;
    font-size: 0.9rem;
    color: #eaeaea;
    background: #333344;
    padding: 1em;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Images générées */
#images-container {
    margin-top: 2em;
}

.image-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.image-group img {
    border: 2px solid #444455;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

/* Centrer les titres d'images */
h3 {
    color: #eaeaea;
    font-size: 1rem;
    margin-bottom: 0.5em;
}

/* Liens dans les résultats */
a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #63b8ff;
}
