/* ===== WIDGET PROFIL SIMPLE ET ÉPURÉ ===== */
.profile-widget {
  width: 300px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 120px;
  right: -100%;
  transition: all 0.4s ease;
  z-index: 1000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-widget.active {
  right: 20px;
}

/* ===== HEADER PROFIL ===== */
.profile-header {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.premium-status {
  background: #ff8c00;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

.standard-status {
  color: #666;
  font-size: 14px;
}

.premium-status span {
  color: #003;
  font-size: calc(0.5rem + 0.9vw);
}

/* ===== IMAGE DE PROFIL ===== */
.profile-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

#profil {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  transition: all 0.3s ease;
}

#profil:hover {
  border-color: #007bff;
}

.premium-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.premium-badge img {
  width: 35px;
  height: 35px;
}

/* ===== BOUTON PRINCIPAL MON COMPTE ===== */
.btn-account {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #007bff;
}

.btn-account:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ===== BOUTON UPGRADE ===== */
.btn-upgrade {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: #007bff;
  text-decoration: none;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-upgrade:hover {
  background: #007bff;
  color: white;
}

/* ===== SECTION ÉDITION ===== */
.profile-edit {
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.edit-label {
  display: block;
  color: #e74c3c;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

#profile_pic {
  width: 100%;
  padding: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

#profile_pic:focus {
  outline: none;
  border-color: #007bff;
}

.btn-update {
  width: 100%;
  padding: 10px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-update:hover {
  background: #0056b3;
}

/* ===== BOUTON DÉCONNEXION ===== */
.btn-logout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #c82333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .profile-widget {
    width: 280px;
    right: -110%;
    padding: 15px;
  }

  .profile-widget.active {
    right: 10px;
  }

  #profil {
    width: 100px;
    height: 100px;
  }

  .premium-badge {
    width: 30px;
    height: 30px;
    bottom: 0;
    right: 0;
  }

  .premium-badge img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .profile-widget {
    width: 260px;
    right: -120%;
  }

  .profile-widget.active {
    right: 5px;
  }
}

@media (max-width: 320px) {
  .profile-widget {
    width: 240px;
    right: -130%;
  }
}
