/* ===== WRAPPER ===== */
.wmq-quiz-wrapper {
  width: 100%;
}

/* ===== GRID ===== */
.wmq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .wmq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wmq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== CARD ===== */
.wmq-card {
  text-decoration: none;
  display: block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wmq-card-inner {
  background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.7));
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.wmq-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.wmq-card:hover .wmq-card-inner {
  border-color: rgba(96,165,250,0.4);
}

/* ===== ICON ===== */
.wmq-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(37,99,235,0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wmq-icon img {
  font-size : 28px;
}

.wmq-card:hover .wmq-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ===== TITLE ===== */
.wmq-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

/* ===== DESCRIPTION ===== */
.wmq-description {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===== COUNT ===== */
.wmq-count {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  font-weight: 600;
  color: #60a5fa;
}

/* ===== PAGINATION ===== */
.wmq-pagination {
  margin-top: 40px;
  text-align: center;
}

.wmq-page-link {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wmq-page-link:hover {
  background: rgba(96,165,250,0.2);
  color: #fff;
}

.wmq-page-link.current {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
}

.btn-secondary-link {
    display: flex;
    justify-content: center;
    margin-top: 60px; /* espace important avec les cartes */
    text-decoration: none;
}