/* Page de modification de profil */
.modif-profile-page {
  max-width: var(--container);
  margin: 150px auto 80px;
  padding: 24px;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(14, 14, 14, 0.06);
  font-family: 'Open Sans', Arial, sans-serif;
}

.modif-profile-page h1,
.modif-profile-page h2 {
  margin-bottom: 28px;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}

/* Formulaire */
form.modif-form,
form {
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.input-panel {
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--color-light-old, #f5f2e8);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-size: 0.9375rem;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #999;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(251, 69, 14, 0.08);
}

.legacy-input-panel {
  margin-bottom: 6px;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 6px;
}

textarea {
  min-height: 140px;
  line-height: 1.6;
  resize: vertical;
}

/* Avatar */
.avatar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.avatar-preview {
  display: inline-block;
  width: 120px;
  height: 120px;
  background: #eee;
  border: 6px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contrôles de fichier */
.file-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-label {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

/* Bannière */
.banner-preview {
  width: 100%;
  height: 140px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

.note {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Bouton de sauvegarde */
.save-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-save {
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-save:hover {
  box-shadow: 0 8px 22px rgba(251, 69, 14, 0.18);
  transform: translateY(-2px);
}

/* Ligne de formulaire */
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* Media queries */
@media (max-width: 760px) {
  .avatar-preview {
  width: 96px;
  height: 96px;
  }

  .form-row {
  flex-direction: column;
  }
}