/* =========================================================================
   Page portfolio : s'appuie sur styles.css, ne change rien au reste du site
   ========================================================================= */

.brand { color: inherit; }
.pf-head { padding: 84px 0 56px; border-top: 0; background-color: var(--background); }
.pf-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}
.pf-back:hover { color: var(--primary); }
.pf-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; }
.pf-head h1 .mint { color: var(--primary); }
.pf-lead { margin-top: 22px; max-width: 58ch; color: var(--muted-foreground); font-size: 1.05rem; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pf-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 3%);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pf-filter span { font-size: 0.8rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.pf-filter:hover { color: var(--foreground); border-color: oklch(0.83 0.16 165 / 45%); }
.pf-filter.is-on { background-color: var(--primary); border-color: var(--primary); color: var(--primary-foreground); font-weight: 600; }

.pf-section { padding: 80px 0; }
.pf-grid { row-gap: 40px; }

.pf-grid .work-shot { position: relative; aspect-ratio: 16 / 10; }
.pf-grid .work-shot.has-img { background-color: var(--surface-deep); }
.pf-grid .work-shot.contain img { object-fit: contain; background-color: #fff; }
.pf-grid .work-shot img { transition: transform 0.8s var(--ease); }
.pf-grid .work:hover .work-shot img { transform: scale(1.03); }

.pf-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid oklch(0.83 0.16 165 / 40%);
  background-color: oklch(0.15 0.014 240 / 82%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Schéma des étapes pour les automatisations sans capture d'écran */
.pf-grid .work-shot.flow {
  aspect-ratio: auto;
  min-height: 198px;
  border-style: solid;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 56px 20px 24px;
  background:
    radial-gradient(420px 220px at 50% 0%, oklch(0.83 0.16 165 / 12%), transparent 70%),
    var(--surface-deep);
}
.flow .node {
  width: 100%;
  max-width: 280px;
  padding: 0.5rem 0.9rem;
  border: 1px solid oklch(0.83 0.16 165 / 30%);
  border-radius: 10px;
  background-color: oklch(1 0 0 / 4%);
  color: var(--foreground);
  font-size: 0.86rem;
  line-height: 1.25;
}
.flow .arr {
  width: 1px;
  height: 12px;
  background: linear-gradient(to bottom, oklch(0.83 0.16 165 / 70%), oklch(0.83 0.16 165 / 20%));
}

.pf-grid .work .chips { margin-top: 14px; }
.pf-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pf-cta { text-align: center; }
.pf-cta .section-lead { margin-left: auto; margin-right: auto; }
.pf-foot-link { text-decoration: underline; text-underline-offset: 3px; }
.pf-foot-link:hover { color: var(--primary); }

@media (max-width: 820px) {
  .pf-head { padding: 56px 0 40px; }
  .pf-section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-grid .work-shot img { transition: none; }
  .pf-grid .work:hover .work-shot img { transform: none; }
}
