/* Styles de base */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    max-width: 700px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Titres */
h1, h2 {
    color: #333;
}

/* Formulaire */
form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="number"],
select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

button {
    background-color: #28a745;
    color: #fff;
    padding: 15px 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

/* Résultats */
#result {
    margin-top: 30px;
    text-align: left;
}

#result ul {
    list-style-type: disc;
    margin-left: 20px;
}

.hidden {
    display: none;
}

/* Styles pour le point d'interrogation */
#bmi-info-icon {
    display: inline-block;
    background-color: #ddd;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
    margin-left: 5px;
}

#bmi-info-icon:hover {
    background-color: #ccc;
}

/* Styles pour le modal */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    max-width: 500px;
    position: relative;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modal-close:hover,
#modal-close:focus {
    color: #000;
}

/* Styles pour la section des explications */
.explanations {
    margin-top: 50px;
    text-align: left;
}

.explanations h2 {
    color: #333;
    margin-bottom: 20px;
}

.explanations .equation {
    margin-bottom: 30px;
}

.explanations .equation h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.explanations .equation p {
    color: #555;
    line-height: 1.6;
}

.explanations .equation ul {
    list-style-type: disc;
    margin-left: 20px;
}

.explanations .equation em {
    font-style: italic;
    color: #000;
}