/* ─── Work page — nav avec filtres intégrés ──────────── */

/* La nav sur la page work est toujours transparente, collée au premier visuel */
#nav {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* Filtres centrés dans la nav */
#nav .filter-tabs {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#nav .filter-btn {
  font-size: 12px;
  letter-spacing: .13em;
  position: relative;
  padding-bottom: 3px;
  color: rgba(255,255,255,.55);
}
#nav .filter-btn:hover  { color: rgba(255,255,255,.9); }
#nav .filter-btn.active { color: #fff; }

/* Coins à la place du trait */
#nav .filter-btn.active::after { display: none; }

.filter-btn { position: relative; }

.filter-btn .fc {
  position: absolute;
  width: 5px;
  height: 5px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.fc-tl { top: -3px;    left: -4px;  border-top: 1px solid rgba(255,255,255,.7); border-left:  1px solid rgba(255,255,255,.7); }
.fc-tr { top: -3px;    right: -4px; border-top: 1px solid rgba(255,255,255,.7); border-right: 1px solid rgba(255,255,255,.7); }
.fc-bl { bottom: -3px; left: -4px;  border-bottom: 1px solid rgba(255,255,255,.7); border-left:  1px solid rgba(255,255,255,.7); }
.fc-br { bottom: -3px; right: -4px; border-bottom: 1px solid rgba(255,255,255,.7); border-right: 1px solid rgba(255,255,255,.7); }

.filter-btn.active .fc,
.filter-btn:hover .fc { opacity: 1; }

/* ─── Alternating project layout ─────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 80px;
  padding-top: 0; /* la nav flotte par-dessus */
}

/* Large item — cinematic crop */
.projects-list .project-item.large::before { padding-bottom: 52%; }

/* Large: title always visible */
.projects-list .project-item.large .project-overlay {
  opacity: 1;
  padding: 32px 40px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 48%);
}
.projects-list .project-item.large:hover .project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
}
.projects-list .project-item.large .project-overlay-title {
  font-size: 30px;
  transform: none;
}
.projects-list .project-item.large .project-overlay-meta {
  transform: none;
  opacity: .65;
}

/* Row of 3 small */
.projects-row-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ─── Footer on work page ────────────────────────────── */
.work-footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
}
.work-footer span, .work-footer a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.work-footer a:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .work-page-header { padding: 100px 24px 40px; }
  .projects-row-small { grid-template-columns: repeat(2, 1fr); }
  .projects-list .project-item.large .project-overlay { padding: 24px; }
  .projects-list .project-item.large .project-overlay-title { font-size: 22px; }
}

@media (max-width: 540px) {
  .projects-row-small { grid-template-columns: 1fr; }
  .work-page-header .filter-tabs { gap: 20px; flex-wrap: wrap; }
  .projects-list .project-item.large .project-overlay-title { font-size: 18px; }
}
