.container {
    font-family: Arial, sans-serif;
    max-width: 70%;
    margin: 0 auto;
}

.controls {
    margin-bottom: 20px;
}

.inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* Augmenter l'espace entre les champs d'entrée */
    margin-bottom: 20px;
}

.input-group {
    margin: 10px 0;
    position: relative;
    padding: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    /* Mettre en gras les étiquettes */
    color: #333;
    /* Couleur du texte */
}

.input-group input[type="number"] {
    width: 100%;
    /* Prendre toute la largeur disponible */
    padding: 10px;
    /* Espacement interne pour un meilleur confort */
    border: 2px solid #007BFF;
    /* Bordure colorée */
    border-radius: 5px;
    /* Coins arrondis */
    font-size: 16px;
    /* Taille de police confortable */
    transition: border-color 0.3s ease;
    /* Transition pour un effet doux au survol */
}

.input-group input[type="number"]:focus {
    border-color: #0056b3;
    /* Couleur de la bordure au focus */
    outline: none;
    /* Supprimer le contour par défaut */
}

.input-group::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    /* S'étendre sur toute la largeur du champ */
    height: 2px;
}


/* Styles de ligne pour les inputs */
.style-solid::after {
    border-bottom: 3px solid #333;
}

.style-solidbis::after {
    border-bottom: 3px solid #0e26af;
}

.style-dashed::after {
    border-bottom: 3px dashed #333;
}

.style-dotted::after {
    border-bottom: 3px dotted #333;
}

.style-double::after {
    border-bottom: 4px double #333;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="number"] {
    width: 120px;
    padding: 5px;
}

.schema-container {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    background: #f5f5f5;
}

#schema {
    max-width: 50%;
    height: auto;
}

.result {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Augmenter l'espace entre l'icône et le texte */
}

.radio-option input[type="radio"] {
    appearance: none;
    /* Supprimer le style par défaut du bouton radio */
    width: 20px;
    /* Largeur personnalisée */
    height: 20px;
    /* Hauteur personnalisée */
    border: 2px solid #007BFF;
    /* Couleur de la bordure */
    border-radius: 50%;
    /* Forme circulaire */
    outline: none;
    /* Supprimer le contour par défaut */
    cursor: pointer;
    /* Changer le curseur au survol */
    position: relative;
    /* Positionner pour les styles internes */
}

.radio-option input[type="radio"]:checked {
    background-color: #007BFF;
    /* Couleur de fond lorsque sélectionné */
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    /* Ajuster la position du point intérieur */
    left: 4px;
    /* Ajuster la position du point intérieur */
    width: 12px;
    /* Taille du point intérieur */
    height: 12px;
    /* Taille du point intérieur */
    border-radius: 50%;
    /* Forme circulaire pour le point intérieur */
    background-color: white;
    /* Couleur du point intérieur */
}

label {
    font-weight: bold;
    /* Mettre en gras les étiquettes pour plus de visibilité */
}


/* Légende */
.legend {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-line {
    width: 30px;
    height: 2px;
}

.explanation {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow-x: auto;
}

.mathlong {
    overflow-x: auto;
}

@media (max-width: 768px) {
    #schema {
        max-width: 100%;
        height: auto;
    }

    .container {
        font-family: Arial, sans-serif;
        max-width: 95%;
        margin: 0 auto;
    }

    .schema-container {
        padding: 2px;
        margin: 2px 0;
    }
}