/* Disposition générale et typographie */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Titre */
h1 {
    margin-bottom: 20px;
    text-align: center;
}

/* Conteneur de saisie */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 90%;
    margin-bottom: 20px;
}

/* Sélection des IA */
#ai-selection {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

/* Conteneur principal en deux colonnes */
.content-container {
    display: flex;
    width: 90%;
    gap: 20px;
    align-items: flex-start;
}

/* Colonne de réponses (affichage côte à côte) */
.responses {
    flex: 1;
    display: flex;
    gap: 20px;
}

.response {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.response pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Colonne des paramètres avancés */
#advanced-settings {
    width: 400px; /* largeur augmentée pour afficher tous les éléments sur une seule ligne */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Pour chaque ligne de paramètre */
.slider-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;  /* Pas de retour à la ligne */
    margin: 10px 0;
}

/* Le label (contenant la checkbox et le texte) */
.slider-container label,
.slider-container .checkbox-label {
    white-space: nowrap;  /* afficher sur une seule ligne */
    margin-right: 10px;
    flex: 0 0 auto;  /* largeur fixe, taille selon le contenu */
}

/* La jauge (input range ou number) prend l'espace disponible */
.slider-container input[type="range"],
.slider-container input[type="number"] {
    flex: 1 1 auto;
    margin-right: 10px;
}

/* La valeur affichée ne se tronque pas */
.slider-container span {
    flex: 0 0 auto;
    white-space: nowrap;
}



/* Apparence des champs désactivés */
input:disabled {
    background-color: #eee;
}

/* Boutons et textarea */
textarea, input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    width: 300px;
    height: 100px;
    resize: both;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Loader placé sous le bouton, visible uniquement pendant le chargement */
.loader {
    display: none;
    margin-top: 10px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
