/* Hub Erreurs classiques */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-pieges .pieges-hub {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.page-pieges .pieges-hub__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}

.pieges-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.piege-card {
  position: relative;
  display: block;
  padding: 1rem 2.5rem 1rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.piege-card:hover {
  border-color: #ffb199;
  box-shadow: 0 6px 20px rgba(239, 74, 52, 0.15);
  transform: translateY(-1px);
}

.piege-card__tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.piege-card__tag--recherche {
  background: #eef2ff;
  color: #c93620;
}

.piege-card__tag--reseau {
  background: #ecfdf5;
  color: #047857;
}

.piege-card__title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: normal;
}

.piege-card__hint {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
}

.piege-card__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 700;
  color: #94a3b8;
}

.piege-card:hover .piege-card__arrow {
  color: #ef4a34;
}

.pieges-aside {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: rgba(248, 250, 252, 0.6);
}

.pieges-aside h2 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pieges-aside__link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ef4a34;
  text-decoration: none;
  line-height: 1.45;
}

.pieges-aside__link:hover {
  text-decoration: underline;
}

.pieges-aside__note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

html.theme-dark .page-pieges .pieges-hub__lead {
  color: #94a3b8;
}

html.theme-dark .piege-card {
  background: #1e293b;
  border-color: #334155;
}

html.theme-dark .piege-card:hover {
  border-color: #ff8a72;
  box-shadow: 0 6px 24px rgba(239, 74, 52, 0.2);
}

html.theme-dark .piege-card__title {
  color: #f1f5f9;
}

html.theme-dark .piege-card__hint {
  color: #94a3b8;
}

html.theme-dark .pieges-aside {
  background: rgba(30, 41, 59, 0.5);
  border-color: #475569;
}

html.theme-dark .pieges-aside__note {
  color: #94a3b8;
}
