/* Encadrement exclusif de l'administrateur : sobre, lisible et adapté à toute forme d'avatar. */
.avatar-frame.frame-admin {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 3px solid #ffd978;
  background: linear-gradient(135deg, #49273a, #1e354b);
  box-shadow: 0 0 0 2px #762f43, 0 0 13px rgba(255, 107, 123, .62), 0 0 25px rgba(255, 205, 113, .35);
}

.avatar-frame.frame-admin::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 2px solid rgba(255, 224, 142, .9);
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(103, 44, 64, .9), 0 0 14px rgba(255, 183, 82, .72);
  animation: admin-frame-glow 2.6s ease-in-out infinite alternate;
}

.avatar-frame.frame-admin::after {
  content: "✦";
  position: absolute;
  z-index: 2;
  right: -11px;
  bottom: -11px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #ffe9a9;
  border-radius: 50%;
  color: #fff4c9;
  background: #8f3c4c;
  font-size: .68rem;
  text-shadow: 0 0 6px #fff2ab;
  box-shadow: 0 0 10px #ffbb5f;
  animation: admin-seal-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes admin-frame-glow {
  to { opacity: .55; box-shadow: 0 0 0 2px rgba(103, 44, 64, .72), 0 0 22px rgba(255, 183, 82, .95); }
}

@keyframes admin-seal-pulse { to { transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .avatar-frame.frame-admin::before,
  .avatar-frame.frame-admin::after { animation: none; }
}
