.page-title {
  margin: 2rem 0 0.5rem;
}

.page-sub {
  color: #3a003a;
  opacity: 0.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* GRILLE CATÉGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(255,62,110,0.18);
}

.cat-icon {
  font-size: 2.5rem;
}

.cat-label {
  font-family: var(--font-bitcount);
  font-size: 2rem;
  paint-order: stroke fill;
  line-height: 1;
}

.cat-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #3a003a;
  opacity: 0.7;
}

/* GRILLE PROJETS (pages sous-catégories) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c5);
  -webkit-text-stroke: 0.3px #004d6e;
  paint-order: stroke fill;
}

.project-status {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

.project-status.wip {
  background: rgba(255,234,0,0.3);
  border: 2px solid var(--c3);
  color: #6a4a00;
}

.project-status.done {
  background: rgba(100,214,112,0.3);
  border: 2px solid var(--c4);
  color: #1a4a00;
}

.project-card h3 {
  margin-top: 0.1rem;
}

.project-card p {
  font-size: 0.92rem;
  flex: 1;
}

.project-footer {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.tech-pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid var(--c1);
  border-radius: 12px;
  color: #3a003a;
}

.dl-btn {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

.back-link {
  display: inline-block;
  margin: 1.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c2);
  -webkit-text-stroke: 0.5px #8b001e;
  paint-order: stroke fill;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}
