/* user.css */

/* Reset basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Corps */
body {
  background: #121212;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px;
}

/* Conteneur générique pour formulaires */
.form-container {
  width: 100%;
  max-width: 400px;
  background: #1e1e2f;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  text-align: center;
}
.form-container h1,
.form-container h2 {
  color: #00ffc3;
  margin-bottom: 20px;
}

/* Inputs & Textarea */
.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #2a2a3b;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1em;
}
.form-container textarea {
  min-height: 100px;
  resize: vertical;
}

/* Boutons forms */
.form-container button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #00ffc3;
  color: #121212;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
}
.form-container button:hover {
  background: #00cfa1;
}

/* Liens back */
.back-link {
  display: block;
  margin-top: 12px;
  color: #00ffc3;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* Message d’erreur */
.error {
  color: #ff4d4f;
  margin-bottom: 12px;
}

/* Profil */
.profile-card {
  width: 100%;
  max-width: 400px;
  background: #1e1e2f;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 30px;
}
.profile-card h2 {
  color: #00ffc3;
  margin-bottom: 15px;
}

/* Messages */
.msg-container {
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
}
.msg-card {
  background: #2a2a3b;
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}
.msg-card em {
  margin-bottom: 8px;
  word-wrap: break-word;
}
.msg-date {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 6px;
}
.msg-card .btn-del {
  align-self: flex-end;
  background: #ff4d4f;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  text-decoration: none;
  transition: background .3s;
}
.msg-card .btn-del:hover {
  background: #d9363e;
}

/* User actions (logout, retour) */
.user-actions {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  width: 100%;
  margin-top: 20px;
}
.user-actions a {
  background: #ff4d4f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .3s;
}
.user-actions a:hover {
  background: #d9363e;
}

/* Liste des utilisateurs */
ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

ul li {
  background: #2a2a3b;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  color: #eee;
  font-size: 0.95em;
  transition: background .3s;
  word-wrap: break-word;
}

ul li:hover {
  background: #3a3a4b;
}
