.comments-container {
  max-width: 800px;
  margin: 0 auto;
}

.comment-card {
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.comment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-header {
  background: transparent;
  border-bottom: 1px solid #f0f2f5;
  padding: 15px 20px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.author-name {
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
}

.author-name:hover {
  text-decoration: underline;
}

.comment-date {
  font-size: 0.875rem;
  color: #65676b;
}

.comment-body {
  padding: 15px 20px;
  color: #333;
  line-height: 1.5;
}

.comment-footer {
  background: transparent;
  border-top: 1px solid #f0f2f5;
  padding: 10px 20px;
}

.btn-action {
  color: #65676b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 10px;
  border: none;
  background: transparent;
  transition: all 0.2s;
}

.btn-action:hover {
  background-color: #f0f2f5;
  color: #1877f2;
  border-radius: 4px;
}

.btn-action i {
  margin-right: 5px;
}

/* Réponses imbriquées */
.replies-container {
  margin-left: 3rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid #e0e0e0;
}

.reply-card {
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  margin-bottom: 15px;
}

.reply-form {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.reply-form.active {
  display: block;
}

/* Formulaire principal */
.main-form-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-control:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.25);
}

.btn-primary-custom {
  background-color: #1877f2;
  border-color: #1877f2;
  font-weight: 600;
}

.btn-primary-custom:hover {
  background-color: #166fe5;
  border-color: #166fe5;
}

.btn-secondary-custom {
  background-color: #e4e6eb;
  border-color: #e4e6eb;
  color: #333;
  font-weight: 600;
}

.btn-secondary-custom:hover {
  background-color: #d8dadf;
  border-color: #d8dadf;
  color: #333;
}

.no-comments {
  text-align: center;
  padding: 60px 20px;
  color: #65676b;
}

.no-comments i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 15px;
}

.loading-spinner {
  display: none;
  color: #1877f2;
}

.comment-content {
  white-space: pre-wrap;
}

/* Animation pour nouveaux commentaires */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-comment {
  animation: slideIn 0.3s ease-out;
}
