/* Profil du membre. Écrit mobile d'abord : la base vise le téléphone, les
   écrans larges reçoivent ensuite les ajustements dans la requête min-width. */

.profile-trigger {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease;
}
.profile-trigger:hover { background: rgba(255, 255, 255, .06); }
.profile-trigger:focus-visible { outline: 2px solid rgba(255, 103, 111, .9); outline-offset: 3px; }
.profile-trigger .profile-avatar { flex: 0 0 auto; }

.profile-modal { width: min(520px, calc(100% - 20px)); }
.profile-modal-shell { background: radial-gradient(circle at 96% 0, rgba(229, 9, 20, .08), transparent 30%), #12141a; }

.profile-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.profile-identity-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d, var(--red));
  font-size: .95rem;
  font-weight: 900;
}
.profile-identity-copy { min-width: 0; display: grid; gap: 4px; }
.profile-identity-copy strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity-copy small { color: var(--muted-2); font-size: .63rem; }

.profile-password-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
}
.profile-section-head { margin-bottom: 13px; }
.profile-section-head h3 { margin: 0; font-size: .82rem; }
.profile-section-head p { margin: 4px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }

.profile-password-grid { display: grid; gap: 12px; }
/* Cibles tactiles confortables : la base de l'app descend à 38px sur mobile. */
.profile-password-grid input, .profile-modal-shell > .field input { min-height: 44px; }

.profile-password-note {
  margin: 13px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(245, 196, 81, .55);
  color: var(--muted-2);
  font-size: .59rem;
  line-height: 1.5;
}

@media (min-width: 561px) {
  .profile-password-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-password-grid > .field:first-child { grid-column: 1 / -1; }
  .profile-password-grid input, .profile-modal-shell > .field input { min-height: 40px; }
  .profile-identity { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .profile-identity-avatar { width: 52px; height: 52px; font-size: 1.05rem; }
}
