/* sam quiz : design v2 (charge en dernier) */

:root {
  --muted: #596070;
  --shadow: 0 1px 3px rgba(31, 36, 48, 0.06), 0 10px 28px rgba(79, 70, 229, 0.1);
}

:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 2px;
}

.field input:focus-visible {
  outline: none;
}

#topbar h1 {
  letter-spacing: 0.01em;
}

.category-title {
  font-size: 0.78rem;
}

.subject-card {
  border-radius: 18px;
}

.subject-count {
  background: #e8ebff;
}

@media (hover: hover) {
  .subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(31, 36, 48, 0.06), 0 14px 32px rgba(79, 70, 229, 0.16);
  }
}

.fab {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  animation: popIn 0.5s ease 0.3s both, pulse 2.6s ease-in-out 1s 3;
}

.btn {
  min-height: 48px;
}

.modal-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.empty {
  font-size: 1rem;
  line-height: 1.6;
}

/* robot flottant plus petit et plus discret */
.chat-fab {
  width: 56px;
  height: 56px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.chat-fab svg {
  width: 38px;
  height: 38px;
}

#app {
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}
