/* =====================
   Profil utilisateur – Corporate discret
   ===================== */
.user-profile {
  max-width: 640px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
}

/* Placeholder photo de profil */
.user-profile-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 2px solid var(--gris);
  flex-shrink: 0;
}


/* Header profil */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Photo */
.user-profile-picture {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gris);
  background: var(--gris);
}

.user-profile-picture-wrapper img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gris);
  display: block;
}


/* Infos utilisateur */
.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bleu-fonce);
  margin-bottom: 0.3rem;
}

/* Lien modifier – discret */
.profile-edit {
  font-size: 0.9rem;
  color: var(--bleu);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-edit:hover {
  color: var(--vert);
  border-bottom-color: var(--vert);
}

.profile-submissions {
  display: block;       /* force le lien à passer à la ligne */
  margin-top: 8px;      /* espace entre Modifier le profil et Mes soumissions */
  padding: 8px 16px;
  background-color: #005fcc;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  width: max-content;   /* largeur adaptée au texte */
}

.profile-submissions:hover {
  background-color: #0047a3;
}



/* Responsive */
@media (max-width: 767px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info h2 {
    font-size: 1.3rem;
  }
}
