/* Style de base pour le corps de la page */
body {
  font-family: "Roboto Mono", monospace;
  background: linear-gradient(135deg, #1a1a1d, #2d2d2d);
  color: #e6e6e6;
  margin: 0;
  padding: 0;
}

/* Style pour l'en-tête */
.header {
  background-color: #4a4a4a;
  color: #f44336;
  padding: 20px;
  text-align: center;
  border-bottom: 4px solid #2d2d2d;
}

/* Style pour les liens */
a {
  text-decoration: none;
  color: inherit;
}

/* Style pour la barre de navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4a4a4a;
  padding: 10px;
  border-bottom: 2px solid #2d2d2d;
}

/* Style pour les sections de la navigation */
.nav-left,
.nav-center {
  display: flex;
  align-items: center;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

/* Style pour le message de bienvenue */
.welcome-message {
  color: white;
  margin-right: 10px;
  font-size: 16px;
}

/* Style pour les liens de navigation */
.nav-link {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: bold;
}

/* Style pour le conteneur principal */
.container {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #2d2d2d;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Style pour le titre des publications */
.posts-title {
  background-color: #4a4a4a;
  color: #f44336;
  padding: 10px;
  text-align: center;
  border-radius: 8px 8px 0 0;
  margin: -20px -20px 20px -20px;
}

/* Style pour les titres */
h2 {
  border-bottom: 2px solid #f05454;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Style pour chaque publication */
.post {
  border-bottom: 1px solid #3d3d3d;
  padding: 1rem 0;
}

/* Style pour l'en-tête des publications */
.post-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

/* Style pour les liens dans les titres des publications */
.post-header h3 a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.3s;
}

.post-header h3 a:hover {
  color: #f05454;
}

/* Style pour les informations de l'utilisateur */
.post-user {
  display: flex;
  align-items: center;
}

/* Style pour l'image de profil */
.profile-picture {
  float: left;
  margin-right: 10px;
  max-width: 100px;
  height: auto;
  border-radius: 50%;
}

/* Style pour les métadonnées des publications */
.post-meta {
  display: flex;
  flex-direction: column;
}

/* Style pour le nom d'utilisateur */
.username {
  font-weight: bold;
  margin-left: 10px;
}

/* Style pour les liens du nom d'utilisateur */
.username-link {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: bold;
}

/* Style pour le temps écoulé */
.time-ago {
  font-style: italic;
  color: grey;
  margin-left: 10px;
}

/* Style pour le contenu des publications */
.post-content {
  margin: 1rem 0;
}

.post-content p {
  margin: 0.5rem 0;
}

/* Style pour le pied de page des publications */
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Style pour les boutons de like et de réponse */
.like-button,
.reply-button {
  background-color: #4a4a4a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.like-button {
  background-color: #f44336;
}

/* Style pour le pied de page */
footer {
  background-color: #4a4a4a;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 4px solid #2d2d2d;
}

/* Style pour les boutons */
button {
  background-color: #f05454;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 0.5rem 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #d64545;
}

/* Style pour les formulaires */
form {
  margin: 1rem 0;
}

form label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  background-color: #2d2d2d;
  color: #e6e6e6;
  transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="file"]:focus,
form textarea:focus {
  border-color: #f05454;
}

/* Style pour les commentaires */
.comment {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3d3d3d;
  margin-left: 20px;
}

/* Style pour le formulaire de réponse */
.reply-form {
  margin-top: 1rem;
}

.reply-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  background-color: #2d2d2d;
  color: #e6e6e6;
  transition: border-color 0.3s;
}

.reply-form button {
  background-color: #f05454;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 0.5rem 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reply-form button:hover {
  background-color: #d64545;
}

/* Style pour le bouton de modification */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  font-size: 16px;
  color: white;
  background-color: #f05454;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #d64545;
}

/* Style pour les messages envoyés et reçus */
.sent {
  text-align: right;
  background-color: #d1e7dd;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

.received {
  text-align: left;
  background-color: #f8d7da;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

/* Style pour les messages d'erreur */
.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 5px;
}

/* Style pour les éléments de sélection multiples */
select[multiple] {
  width: 100%;
  height: auto;
  min-height: 100px;
}
