/* Styles globaux pour le corps du document */
body {
  font-family: 'LyonText-Regular', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Empêche le scroll horizontal global */
}

/* Conteneur principal pour centrer le contenu */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

/* Contenu principal */
.content {
  width: 100%;
  max-width: 1024px; /* Largeur maximale pour un affichage optimal */
  padding: 0 10px; /* Marge latérale par défaut */
  box-sizing: border-box; /* Inclut le padding dans la largeur */
}

/* Styles pour le texte et les éléments de bloc */
p, li, blockquote, pre, code, h1, h2, h3, h4, h5, h6 {
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  color: #2c3e50;
  font-size: 1.8em;
  line-height: 1.2em;
  margin: 0;
}

h2 {
  font-size: 1.5em;
  line-height: 1.1em;
  margin: 0;
}

h3 {
  font-size: 1.2em;
  line-height: 1.1em;
  margin: 0;
}

/* Barre de navigation */
.navbar {
  background-color: #f3f3f3;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 20px; /* Augmente le padding sur les côtés pour la barre de navigation */
  box-sizing: border-box;
}

/* Boîte d'exercice */
.exercise-box {
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 10px; 
  background-color: #f0f8ff;
  position: relative;
  text-align: left;
  width: calc(100% - 20px); 
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transition: transform 0.3s ease; /* Ajout de la transition pour l'animation */
}

.exercise-box::-webkit-scrollbar {
  display: none;
}

/* Suppression de l'animation précédente et ajout d'un effet de zoom */
.exercise-box:hover {
  transform: scale(1.05); /* Élargissement de 5% */
  transform-origin: center; /* Zoom depuis le centre */
}

.exercise-box h3 {
  color: #3498db;
  margin-top: 0;
  text-align: left;
}

.exercise-box::before {
  content: "";
  font-size: 1.5em;
  position: absolute;
  top: 15px;
  right: 15px;
}

/* Styles pour les détails (corrigé) */
.exercise-box details {
  width: 100%; 
  box-sizing: border-box; 
}

.exercise-box details summary {
  cursor: pointer;
  color: #F3F;
  font-weight: bold;
  margin-top: 10px;
  text-align: left;
  font-size: 0.9em;
}

.exercise-box details[open] summary {
  color: #e74c3c;
}

.exercise-box details summary:hover {
  text-decoration: underline;
}

.exercise-box details[open] {
  background-color: #F3F3F3;
  padding: 10px;
  border: 1px solid #F8F8F8;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  text-align: left;
  font-size: 0.9em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: auto; 
  overflow-y: hidden; 
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

.exercise-box details[open]::-webkit-scrollbar {
  display: none; 
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Formules mathématiques */
.MathJax_Display, .katex-display {
  white-space: nowrap; 
}

/* Ajustements pour les écrans plus petits */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  
  .MathJax_Display, .katex-display {
    font-size: 80%;
  }
  
  .exercise-box {
    margin: 10px 5px; 
    width: calc(100% - 10px);
  }
}

/* Pour les écrans très étroits */
@media screen and (max-width: 53)
















