body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    margin: 0!important;
    padding: 0;
}

header {
    background-color: #009688!important;
    color: white;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 0px;
}

nav ul li a {
    color: white!important;
    text-decoration: none;
}

.intro {
    text-align: center;
    padding: 50px 20px;
}

button {
    background-color: #008577!important;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #00796b!important;
}
.button-container {
    display: flex; /* Use flexbox to layout the buttons */
    justify-content: space-between; /* This will space the buttons equally */
    align-items: center; /* Aligns the buttons vertically */
    flex-wrap: wrap; /* Allows buttons to wrap to the next line on small screens */
    gap: 10px; /* Optional: if you want some space between the buttons */
    margin-left : 10px;
    margin-right : 10px;


}
a.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #008577!important;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

a.btn:hover {
    background-color: #00796b;
}
.button-container {
    text-align: center;
    margin-top: 20px; /* Ajoutez une marge en haut si nécessaire */
}

footer {
    background-color: #00796b!important;
    color: white!important;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.form-group {
    margin-bottom: 20px; /* Espacement entre les champs */
}

button {
    width: 50%; /* Ajustez selon la largeur désirée */
    margin: 20px auto; /* Centre le bouton sous les champs du formulaire */
}
.form-group textarea {
    width: 90%; /* S'applique à toutes les zones de texte dans un .form-group si vous préférez */
    display: block;
    margin: 0 auto;
    padding: 10px;
}
main {
    width: 80%;
    margin: 0 auto; /* Centre la section principale */
    max-width: 1200px; /* Optionnel : ajustez selon le maximum souhaité */
}

.create-exercise {
    text-align: center; /* Centre le texte dans cette section */
    padding: 20px;
}

.create-exercise h2 {
    margin: 0 auto; /* Centre le titre */
    padding-bottom: 20px; /* Ajoute un peu d'espace sous le titre */
}

.create-exercise form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto; /* Centre le formulaire sur la page */
}
.help-section {
    width: 95%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optionnel : ajoute un peu d'ombre pour du relief */
    margin-bottom: 20px; /* Espacement entre les sections, si nécessaire */
    margin-left : 15px;
}
.modal {
  display: none; /* Cachez la modale par défaut */
  position: fixed; /* Reste fixée pendant le défilement */
  z-index: 1; /* S'assure qu'elle est au-dessus des autres éléments */
  left: 0;
  top: 0;
  width: 100%; /* Pleine largeur */
  height: 100%; /* Pleine hauteur */
  overflow: auto; /* Active le défilement si nécessaire */
  background-color: rgb(0,0,0,0.4); /* Couleur de fond semi-transparente */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% du haut et centré horizontalement */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Vous pouvez ajuster cette largeur selon vos besoins */
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
}

.image-container img {
    width: 80%;
    display: block;
    margin: 0 auto;
    padding-top:30px;
}
.contact-page {
    background-color: #091624; /* Remplacez cette valeur par le code couleur exact extrait de l'image */
}

.api-response {
    padding: 20px;
    margin: 20px auto; /* Centrer dans la vue */
    max-width: 90%; /* Limiter la largeur pour les grands écrans */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff; /* Fond blanc pour la cohérence */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
    font-size: 1rem; /* Taille de police adaptative */
    line-height: 1.6;
    color: #333;
    text-align: left;
    overflow-wrap: break-word; /* Empêche le débordement de texte */
}
.api-responseOld * {
    all: revert;
}


/* Améliorations pour l'affichage sur iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .api-response, .exercise {
        font-size: 1.125rem; /* Augmente la taille de la police pour les iPads */
    }
}
/* CSS pour les dispositifs avec une largeur inférieure à 768px (comme les téléphones) */
@media (max-width: 768px) {
  .image-container img {
    width: 100%; /* L'image prend toute la largeur de l'écran sur les petits appareils */
    height: auto; /* Maintient le ratio de l'image */
  }
}

/* CSS pour les dispositifs avec une largeur entre 768px et 1024px (comme les tablettes) */
@media (min-width: 768px) and (max-width: 1024px) {
  .image-container img {
    width: 80%; /* L'image prend 80% de la largeur de l'écran sur les tablettes */
    height: auto;
  }
}

/* CSS pour les dispositifs avec une largeur supérieure à 1024px (comme les ordinateurs de bureau) */
@media (min-width: 1024px) {
  .image-container img {
    width: 50%; /* L'image prend 50% de la largeur de l'écran sur les grands appareils */
    height: auto;
  }
}
/* CSS for devices with a width less than 768px (like phones) */
@media (max-width: 768px) {
    nav ul li {
        margin-right: 10px; /* Reduce space between menu items */
        font-size: 14px; /* Reduce font size */
    }

    nav ul li a {
        padding: 5px; /* Reduce padding */
    }

    .btn {
        padding: 8px 10px; /* Adjust padding for buttons */
        font-size: 14px; /* Adjust font size */
    }

    footer p {
        font-size: 14px; /* Reduce font size for footer text */
        margin: 5px 0; /* Adjust margin for footer paragraphs */
    }

    .footer {
        padding: 8px; /* Adjust padding to ensure everything fits */
    }
    
    /* Adjustments for header logo to ensure it fits on small screens */
    header h1 {
        font-size: 1.5em; /* Reduce font size */
        margin-block-start: 0.5em; /* Adjust margin */
        margin-block-end: 0.5em; /* Adjust margin */
    }
}

/* CSS for the 'Suivant' button to make sure it's styled correctly */
a.btn {
    color: #fff; /* Ensuring the color is white */
    /* Add any other styles that are not being applied */
}

.progress-container {
  width: 100%;
  background-color: #eee;
  padding: 3px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 20px;
  background-color: #009688;
  width: 0%;
  border-radius: 5px;
  transition: width 0.4s ease-in-out;
}

