/* CSS minimal, mobile-first — pas de framework (tech-spec, Task 10). */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.5;
}

.page {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.25rem;
}

h1 {
  font-size: 1.25rem;
}

.card-text {
  font-size: 1.15rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.rating-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

button,
.button {
  display: block;
  width: 100%;
  min-height: 3rem; /* zone de tap suffisante */
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #2b2b2b;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem;
}

button:disabled {
  opacity: 0.5;
}

.rating-again {
  background: #b3261e;
}

.rating-hard {
  background: #a15c00;
}

.rating-good {
  background: #2e6e34;
}

.rating-easy {
  background: #1f6fb2;
}

.errorlist {
  color: #b3261e;
  list-style: none;
  padding: 0;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
