/* ===== Style général ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

header {
  background-color: #004080;
  color: white;
  padding: 1.5em;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

nav li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em;
  transition: background 0.3s ease;
}

nav li a:hover {
  background-color: #0055aa;
  border-radius: 5px;
}

/* ===== Section d’introduction ===== */
.intro {
  padding: 2em;
  text-align: center;
  background-color: #e8f1ff;
}

.cta-button {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 0.7em 1.3em;
  margin-top: 1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #0055aa;
}

/* ===== Accès par niveau ===== */
.levels {
  padding: 2em;
  background-color: #f0f8ff;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.card {
  background-color: white;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* ===== Boutique pédagogique ===== */
.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  padding: 2em;
  background-color: #eef6f9;
}

.item {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.item img {
  max-width: 100%;
  border-radius: 6px;
}

.price {
  font-weight: bold;
  color: #007700;
  margin: 0.5em 0;
}

.buy-button {
  display: inline-block;
  background-color: #004080;
  color: white;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  margin-top: 0.5em;
  transition: background 0.3s ease;
}

.buy-button:hover {
  background-color: #0055aa;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  padding: 2em;
}

.course-box {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-box h3 {
  color: #004080;
}

.course-box ul {
  padding-left: 1.2em;
}

.course-box a {
  color: #0077cc;
  text-decoration: none;
}

.course-box a:hover {
  text-decoration: underline;
}
.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  padding: 2em;
}

.exercise-box {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.exercise-box h3 {
  color: #004080;
}

.exercise-box ul {
  padding-left: 1.2em;
}

.exercise-box a {
  color: #0077cc;
  text-decoration: none;
}

.exercise-box a:hover {
  text-decoration: underline;
}
.login-box, .resources-box, .suggestions-box {
  background-color: #ffffff;
  margin: 2em;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

input, textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 0.8em;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0055aa;
}
/* ===== Espace Élève ===== */

.login-box, .resources-box, .suggestions-box {
  background-color: #ffffff;
  padding: 2em;
  margin: 2em auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.07);
}

.login-box h2,
.resources-box h2,
.suggestions-box h2 {
  color: #004080;
  margin-bottom: 1em;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

label {
  font-weight: bold;
  margin-bottom: 0.3em;
}

input[type="text"],
input[type="password"],
textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background-color: #f9fcff;
}

button {
  background-color: #004080;
  color: white;
  padding: 0.8em;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0055aa;
}

.resources-box ul {
  list-style: none;
  padding-left: 0;
}

.resources-box li {
  background-color: #e8f1ff;
  padding: 0.8em 1em;
  margin: 0.5em 0;
  border-radius: 8px;
}

.resources-box a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}

.resources-box a:hover {
  text-decoration: underline;
}

textarea {
  resize: vertical;
}

.suggestions-box p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* ===== Pied de page ===== */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  margin-top: 2em;
}

/* ===== Responsive mobile ===== */
@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .produit-container {
    flex-direction: column;
    align-items: center;
  }
}
