/* ═══════════════════════ Le portrait (ARCHITECTURE.md § 17) ═══════════════════════
   La photo dans un cadre rond de papier, le cachet de cire en médaillon. Préfixe .pt- */

.pt {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--pt-size, 46px);
  height: var(--pt-size, 46px);
  line-height: 0;
  vertical-align: middle;
}
.pt__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--relief);
  box-shadow: var(--emboss-sm), inset 0 0 0 2px var(--milk);
}
.pt__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) sepia(.06);
  transition: filter var(--mid) var(--ease), opacity var(--mid) var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
/* Au repos, la photo pâlit comme le cachet : la seule couleur vive reste ce qui est vivant. */
.pt.is-resting .pt__img { filter: grayscale(.5) saturate(.8) sepia(.12); opacity: .86; }
.pt__wax {
  position: absolute;
  right: -16%;
  bottom: -14%;
  line-height: 0;
  filter: drop-shadow(1px 2px 2px rgba(var(--shadow-rgb), .28));
}

/* ─── Profil : la grande photo et ses boutons ─── */
.pt-edit {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 6px;
}
.pt-edit__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.pt-edit__actions .btn { min-height: 44px; }
.pt-edit.is-busy .pt { opacity: .6; transition: opacity var(--mid) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .pt__img { transition: none; }
}
