/* Style général */
body {
  margin: 0;
  padding: 2rem;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  color: #202124;
}

header p {
  color: #5f6368;
  font-size: 1rem;
}

/* Mode selector */
#mode-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#mode-selector button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mode-selector button:hover {
  background-color: #155ec0;
}

/* Zone dynamique */
#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 600px) {
  #mode-selector {
    flex-direction: column;
    align-items: center;
  }

  #mode-selector button {
    width: 90%;
  }
}
/* Filtres (Niveau + Thème) */
#filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

#filters label {
  font-size: 1rem;
  color: #333;
}

#filters select {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

#filters select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 5px rgba(26, 115, 232, 0.5);
  outline: none;
}

@media (max-width: 600px) {
  #filters {
    flex-direction: column;
  }
}
.time-bar {
  width: 100%;
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.time-fill {
  height: 100%;
  width: 100%;
  background-color: #1a73e8;
  transition: width 1s linear;
}
/* Zone de recherche */
#lesson-search {
  padding: 0.5rem;
  width: 100%;
  margin: 1rem 0;
  font-size: 1rem;
}

/* Liste des leçons */
.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-list li {
  margin-bottom: 1rem;
}

.lesson-list button {
  background: white;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.lesson-list button:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.6);
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: #1a73e8;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #155ec0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

button:active {
  background-color: #0c47a1;
}

button.close {
  background: none;
  color: #555;
  font-size: 1.5rem;
  border: none;
  padding: 0;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.lesson-btn {
color:#1a73e8;
}
.lesson-btn:hover {
color:#fff;
}

#next-lesson-btn {
  margin-top: 2rem;
  width: 100%;
}

.answers{
	margin-bottom :2rem;}