/* === Centrage vertical du bloc profil === */
.profile-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

/* === Bloc principal profil === */
section.profile {
  background-color: #fdf2f8;
  max-width: 460px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 0;
}

/* === Bandeau image haut (optionnel) === */
.auth-header-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.auth-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: bannerZoomIn 0.6s ease-out;
}

/* === Titre et formulaire === */
section.profile h2,
section.profile form {
  padding: 1.5rem 2rem;
}

/* === Formulaires === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
label {
  font-weight: bold;
}
input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
input:focus {
  outline: 2px solid var(--color-primary, #ff7eb9);
}

/* === Bouton principal === */
button.btn {
  padding: 0.7rem 1.2rem;
  background-color: var(--color-primary, #ff7eb9);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
button.btn:hover {
  background-color: var(--color-primary-hover, #f74394);
  transform: scale(1.03);
}

/* === Photo de profil actuelle === */
.current-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
/* === Badge === */
.admin-badge {
  display: inline-block;
  background-color: #ffe8a1;
  color: #9c6f00;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  animation: fadeInBadge 0.5s ease-out;
}
/* === Animations === */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bannerZoomIn {
  from { transform: scale(1.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.shake {
  animation: shake 0.4s ease;
}



@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}