body {
  margin: 0;
  padding: 0;

.new-post textarea,
.comments textarea {
  width: 100%;
  min-height: 60px;
  margin: 8px 0;
}

button {
  padding: 8px 16px;
  cursor: pointer;
}

.post {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.meta {
  font-size: 0.9em;
  color: #555;
}

.comment {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-body p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}


.identity-box {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}

.avatar-sm {
  width: 28px;
  height: 28px;
}


/* Avatar */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #e5e5e5;
  background: #f4f4f4;
}

.avatar--small {
  width: 30px;
  height: 30px;
}

.post-header,
.comment-header {
  display: flex;
  align-items: center;
}

textarea {
    background-color: silver; /* couleur de base */
}

textarea:focus {
    background-color: silver; /* reste argent */
}

/* =========================
   Réactions (messages et commentaires)
   ========================= */
.comment-reactions,
.post-reactions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.comment-reactions button,
.post-reactions button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gpge-panel);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: background-color 0.2s;
}

.comment-reactions button:hover,
.post-reactions button:hover {
  background-color: #09184a; /* foncé au survol */
}

.comment-reactions button span.count,
.post-reactions button span.count {
  margin-left: 4px;
  font-weight: bold;
}

/* Petits ajustements pour les commentaires */
.comment .comment-reactions button {
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 16px;
}

/* Optionnel : réagir active */
.comment-reactions button,
.post-reactions button {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.comment-reactions button.active,
.post-reactions button.active {
  transform: scale(1.05);
}

/* Adaptation responsive */
@media (max-width: 600px) {
  .comment-reactions,
  .post-reactions {
    gap: 4px;
    flex-wrap: wrap;
  }

  .comment-reactions button,
  .post-reactions button {
    font-size: 14px;
    padding: 2px 6px;
  }
}

.comment-reactions button.active,
.post-reactions button.active {
  background-color: #09184a;
  box-shadow: inset 0 0 0 2px #fff;
}

.post-actions button,
.comment-actions button {
  display: inline-block;
  background: transparent;
  border: none;
  color: #0B2265;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-right: 10px;
}

.post-actions button:hover,
.comment-actions button:hover {
  text-decoration: underline;
}
