/* Style de base pour le corps */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

/* Page d'accueil */
#home-page {
  text-align: center;
}

#home-page h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

#home-page p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 40px;
}

/* Menu principal - Bannières de matières */
#menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.subject-banner {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.subject-banner:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.subject-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Liste des chapitres - Bannières */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 20px auto;
}

.chapter-banner {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.chapter-banner:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.chapter-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Titre de la matière */
.subject-title {
  font-size: 2.5em;
  text-align: center;
  margin: 20px 0;
}

/* Titre du chapitre */
.chapter-title {
  font-size: 2.5em;
  text-align: center;
  margin: 20px 0;
}

/* Contenu du chapitre */
.chapter-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
}

.chapter-text h3 {
  color: #333;
  margin-top: 30px;
}

.chapter-text p {
  color: #555;
  margin-bottom: 15px;
}

/* Bouton retour */
.back-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #45a049;
}

/* Cacher les contenus par défaut */
.subject-content,
.chapter-content {
  display: none;
}