/* PORTFOLIO — charte minimale */

.pf-hero { text-align: center; padding: 3.5rem 0 1rem; }
.pf-hero .section-label { display: block; }
.pf-title {
  font-size: clamp(28px, 4.5vw, 46px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08;
  margin: 0.5rem 0 1rem;
}
.pf-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--text2); font-size: 16px; line-height: 1.7; font-weight: 300;
}

/* Barre de filtres */
.pf-filter {
  border: 1px solid var(--border); border-radius: var(--r3);
  padding: 1.5rem 1.75rem; margin: 2.5rem 0 2.5rem; background: var(--bg2);
}
.pf-filter-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1.1rem;
}
.pf-filter-head svg { width: 15px; height: 15px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip {
  font: inherit; font-size: 12.5px; line-height: 1;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text2);
  cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.pf-chip:hover { border-color: var(--border2); color: var(--text); }
.pf-chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Grille de cartes */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 4rem; }
.pf-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r3);
  padding: 1.5rem; background: var(--bg2);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}
.pf-card:hover {
  transform: translateY(-8px) scale(1.02); border-color: var(--border2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}
@media (prefers-reduced-motion: reduce) {
  .pf-card { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
  .pf-card:hover { transform: none; }
}
.pf-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.pf-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--bg3); color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.pf-card:hover .pf-ic { background: var(--text); color: var(--bg); }
.pf-ic svg { width: 20px; height: 20px; }
.pf-badge {
  font-size: 10px; font-family: 'DM Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3);
  padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap;
}
.pf-badge.current { color: var(--green); border-color: var(--green-bd); background: var(--green-bg); }
.pf-co { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; margin-bottom: 0.4rem; }
.pf-card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.6rem; }
.pf-desc { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 400; margin-bottom: 1.2rem; flex: 1; }
.pf-points { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.2rem; flex: 1; }
.pf-points li { position: relative; padding-left: 1.05rem; font-size: 14px; color: var(--text2); line-height: 1.6; font-weight: 400; }
.pf-points li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--text3); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags span { font-size: 11px; color: var(--text2); background: var(--bg3); border-radius: var(--r); padding: 3px 8px; }

.pf-empty { grid-column: 1 / -1; text-align: center; color: var(--text3); font-size: 14px; padding: 2rem 0; }

/* Nav rapide entre les deux sections (visibilité) */
.pf-quicknav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 1.75rem; }
.pf-qn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--text2);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg2); transition: color 0.15s, border-color 0.15s;
}
.pf-qn:hover { border-color: var(--border2); color: var(--text); }
.pf-qn b { color: var(--text3); font-weight: 500; }
.pf-qn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Bloc Open source distinct (panneau grisé + cartes blanches) */
.pf-os {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r3);
  padding: 2.75rem 2rem 3rem; margin: 1rem 0 4rem;
}
.pf-os .pf-grid--gh { padding: 2rem 0 0; }
.pf-os-mark { display: inline-grid; place-items: center; color: var(--text); margin-bottom: 0.6rem; }
.pf-os-mark svg { width: 26px; height: 26px; }

/* Section Open source / GitHub */
.pf-section-head { text-align: center; padding: 0; }
.pf-title--sm { font-size: clamp(22px, 3vw, 32px); margin: 0.75rem 0 0.75rem; }
.pf-grid--gh { padding-top: 2rem; }
.pf-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 1.1rem;
  font-family: 'DM Mono', monospace; font-size: 12.5px; font-weight: 500;
  color: var(--text); text-decoration: none; transition: gap 0.2s;
}
.pf-link svg { width: 14px; height: 14px; }
.pf-link:hover { gap: 10px; }

@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filter { padding: 1.25rem; }
}
