/* Placeholder badge page layout */
.badge-page {
  width: 92%;
  max-width: 900px;
  margin: 150px auto;
  padding: 24px;
  min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-page h2 { margin-bottom: 12px; }

.badge-card {
  width: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.badge-card p { margin: 0 0 8px; }
.badge-card p.muted { color: #5f6368; }

.badge-actions { margin-top: 14px; display: flex; gap: 10px; }

.btn-accent {
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.btn-accent:hover,
.btn-accent:focus { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline-accent {
  padding: 8px 14px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.btn-outline-accent:hover,
.btn-outline-accent:focus { color: #fff; background: var(--accent); }

@media (max-width: 560px) {
  .badge-page { width: 94%; padding: 18px; }
  .badge-card { padding: 14px; }
  .badge-actions { flex-wrap: wrap; }
}

/* .badge-page {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px 60px;
  color: var(--text);
  font-family: 'Open Sans', Arial, sans-serif;
}

.badge-page h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.badge-page>.badge-section {
  margin-top: 32px;
}

/* Sections */
.badge-section h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 24px 0 12px;
}

.badge-section .help {
  text-align: center;
  margin-bottom: 14px;
  color: #cdcdcd;
  font-size: 1rem;
}

/* Liste de badges */
.badge-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  align-items: start;
}

/* Badge item */
.badge-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 18px;
  background: #eaeaea;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.badge-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.badge-item.obtained {
  background: linear-gradient(180deg, #fff 0%, #f6f6f6 100%);
  border: 1px solid #ececec;
}

.badge-item.not-obtained {
  background: var(--muted);
  color: #fafafa;
}

.badge-item img,
.badge-item .badge-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  object-fit: contain;
}

.badge-item h4 {
  font-size: 1rem;
  margin: 6px 0 4px;
  font-weight: 700;
}

.badge-item p {
  font-size: 1rem;
  margin: 0;
  color: #555;
}

/* Modal */
.badge-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  background: rgba(0, 0, 0, 0.45);
}

.badge-modal.open {
  display: flex;
}

.badge-modal__content {
  position: relative;
  width: min(700px, 96%);
  padding: 32px 36px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.badge-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #111;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.badge-modal__title {
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 800;
}

.badge-modal__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 6px auto 18px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 204, 51, 0.15) 0%);
  border-radius: 12px;
}

.badge-modal__desc {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.45;
}

/* Media queries */
@media (min-width: 900px) {
  .badge-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 520px) {
  .badge-modal__content {
  padding: 22px;
  }

  .badge-item {
  padding: 14px;
  }
} 