/* public/css/comments.css — Section commentaires des articles de blog */

.comments-section {
  margin-top: 40px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  border: 1.5px solid #aaa;
}

.comments-title {
  font-family: "ComicNeue", cursive, sans-serif;
  color: #96490a;
  font-size: 1.2em;
  margin: 0 0 12px;
  text-align: center;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #ccc;
}

.comment-form-row input,
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  border: 1.5px solid #aaa;
  padding: 6px 10px;
  font-family: "ComicNeue", cursive, sans-serif;
  font-size: 0.9em;
  text-align: left;
  background: #fff;
}

.comment-form textarea {
  resize: vertical;
  min-height: 60px;
}

.comment-toolbar {
  position: relative;
  z-index: 5;
}

.sticker-toggle-btn {
  background: #ffec8b;
  color: #3c240c;
  border: 1.5px solid #aaa;
  border-radius: 0;
  padding: 5px 14px;
  font-family: "ComicNeue", cursive, sans-serif;
  font-weight: bold;
  font-size: 0.82em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sticker-toggle-btn img {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
}

.sticker-toggle-btn:hover {
  background: #ffcb05;
}

.sticker-picker {
  position: relative;
  z-index: 5;
  background: #fff9e6;
  border: 2px dashed #fcd451;
  padding: 8px;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.sticker-picker-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid #ddd;
  background: #fff;
  padding: 2px;
  transition: all 0.15s;
}

.sticker-picker-item.is-emoji {
  background: transparent;
  border-color: transparent;
}

.sticker-picker-item:hover {
  border-color: #fcd451;
  background: #fef3c7;
}

.sticker-picker-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sticker-picker-item .sticker-emoji {
  font-size: 22px;
  line-height: 1;
}

.sticker-picker-empty {
  color: #999;
  font-size: 0.8em;
  padding: 6px;
  text-align: center;
  width: 100%;
}

.comment-body img.sticker-inline {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  display: inline;
  margin: 0 1px;
}

.comment-body .sticker-inline-emoji {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.1em;
}

.comment-char-counter {
  text-align: right;
  font-size: 0.8em;
  color: #999;
}

.comment-char-counter.danger {
  color: #e53935;
  font-weight: bold;
}

.comment-form-error {
  color: #b91c1c;
  font-size: 0.85em;
  background: #fdecea;
  border: 1.5px solid #e53935;
  border-radius: 0;
  padding: 6px 10px;
}

.hcaptcha-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.comment-form-actions {
  display: flex;
  justify-content: center;
}

.comment-form-actions .share-button {
  min-width: 180px;
  padding: 7px 20px;
  text-align: center;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comments-empty {
  color: #999;
  font-style: italic;
  text-align: center;
}

.comment-item {
  background: #fff;
  border-radius: 0;
  padding: 8px 12px;
  border: 1.5px solid #aaa;
  text-align: left;
}

.comment-item.comment-reply {
  margin-left: 32px;
  background: #fff8f2;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.comment-author {
  font-family: "ComicNeue", cursive, sans-serif;
  font-weight: bold;
  font-size: 0.92em;
  color: #96490a;
}

.comment-date {
  font-size: 0.72em;
  color: #aaa;
}

.comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  color: #444;
  font-size: 0.92em;
  line-height: 1.35;
}

.comment-reply-btn {
  margin-top: 6px;
  padding: 3px 14px;
  font-size: 0.76em;
}
