.open-sans-normal {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.open-sans-300 {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.open-sans-600 {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
/* ===== Conteneur principal — largeur colonne centrale 697px ===== */
.forum table { width: 100%; max-width: 697px; border-collapse: collapse; margin: 0 auto; }
.forum th, .forum td { border: 1px solid #ddd; padding: 10px; text-align: left; vertical-align: top; }
.forum th { background-color: #f2f2f2; font-weight: bold; }
.forum a { color: #0066cc; text-decoration: none; word-wrap: break-word; max-width: 100%; }
.forum a:hover { text-decoration: underline; }
.forum blockquote {
    border: 1px solid #ccc;
    border-left: 5px solid #ccc;
    padding: 8px 10px;
    margin: 8px 0;
    background: #fff;
    border-radius: 9px;
    color: #6e6e6e;
}
.forum blockquote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: .9em;
    color: #555;
    margin-bottom: 6px;
}
.forum blockquote cite a {
    color: #0066cc;
    text-decoration: none;
}
.forum blockquote cite a:hover { text-decoration: underline; }
.quote-goto {
    font-size: 1.1em;
    margin-left: 4px;
    vertical-align: middle;
}
.forum cite { display: block; font-style: italic; color: #555; margin-bottom: 5px; }
.forum pre { background: #f4f4f4; padding: 10px; border: 1px solid #ddd; overflow-x: auto; }
.forum img { max-width: 100%; height: auto; }
.forum ul { list-style-type: disc; margin-left: 20px; padding-left: 20px; }
.forum li { margin-bottom: 5px; }
.forum header { width: 100%; max-width: 697px; margin: 0 auto; }

.forumlist { width: 100%; max-width: 697px; margin: 0 auto; }
.forum-row {
  margin-bottom: 20px;
  background: #fefefe;
  border: 1px solid #ddd;
}
.forum-name {
	background: #efefef;
	padding: 10px;
	border-bottom: 1px solid #ddd;
}
.forum-title {
  color: #204972;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
}
.forum-title:hover { text-decoration: underline; }
.forum-desc { padding: 10px; color: #555; font-size: 14px; }
.forum-stats { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.stat {
  padding: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.stat-label { padding: 4px 2px; color: #999; font-size: 12px; font-weight: 600; }
.stat-value { padding: 4px; background-color: #97bf0d; font-size: 14px; color:#fff; font-weight: 600; }

.forum-last {
	padding: 10px;
}
.forum-last .last-thread-info { font-weight: 600; margin-bottom: 6px; color: #333; }
.forum-last .last-threads { list-style: none; margin: 0 0 10px 0; padding: 0; }
.forum-last .last-threads li { margin: 2px 0; position: relative; padding-left: 24px; font-size: .9em}
.forum-last .last-threads li::before {
    content: "\203A"; /* &#8250; */
    position: absolute; left: 8px; top: 0; line-height: 1.2;
    font-size: 1.1em; color: #888;
}
.forum-last .last-thread { color:#c42027; text-decoration: none; }
.forum-last .last-thread:hover { text-decoration: underline; }
.last-meta { color: #555; font-size: .92em; }
.no-last { color: #999; }
.forum .btn-forum {
    display: inline-block;
    margin: 0 0 10px 10px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
	font-size: .85em;
    font-weight: 600;
	background-color: #4399ce;
    border-radius: 5px;
}

.forum .btn-forum:hover {
	text-decoration: none;
    transform: translateY(-2px);
}
#newThreadButton {
	display: inline-block;
	margin-bottom: 15px;
	padding: 8px 14px;
	background-color: #0066cc;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
}
#newThreadButton:hover {
	background-color: #004999;
}
#markAllRead {
	display: inline-block;
	margin-bottom: 10px;
	padding: 8px 14px;
	background: #ddd;
	border-radius: 5px;
	text-decoration: none;
	color: #000;
}
#markAllRead:hover {
	background: #ccc;
}

.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 15px;
  color: #555;
}
.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #333;
  font-weight: bold;
}
.threadtitle_unread {font-weight: bold;}
.pagelinks { display:block; padding: 4px 0 4px 0}
.pagelinks .page-link {background-color:#f2f2f2;border-radius:3px;border: solid 1px #ddd;padding:2px 6px;margin-right:3px; font-size: 0.8em;color:#c42027;font-weight:normal;}
.pagelinks .ellipsis {margin: 0 3px; color: #666;}

.posts { margin: 0 auto; width: 100%; max-width: 697px; box-sizing: border-box; }
.post { margin-bottom: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; box-sizing: border-box; max-width: 100%; overflow: hidden; }
.post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.pseudo-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: .85em;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.pseudo-name {
    font-weight: 700;
    font-size: .95em;
}
.post-date {
    color: #888;
    font-size: .85em;
    font-weight: normal;
}
.post-content { font-size: 14px; line-height: 1.6em; overflow-wrap: break-word; word-break: break-word; overflow: hidden; }
/* Indentation calculée sur 697px : ~20px et ~40px sans risque de débord */
.reply-level-1 { margin-left: 20px; max-width: calc(100% - 20px); }
.reply-level-2 { margin-left: 40px; max-width: calc(100% - 40px); }
.sticky {background-color: #f7faff;}
.forum .pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 15px 0; justify-content: center }
.forum .pagination .page, .pagination .page-btn, .pagination .current, .pagination .ellipsis {
	padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 12px; line-height: normal; font-weight: bold;
}
.forum .pagination .current { background: #c42027; color: #fff; border-color: #c42027; }
.forum .pagination .disabled { opacity: 0.5; pointer-events: none; }
.highlight-target { animation: flash 2s ease-in-out 1; outline: 2px solid #ff9800; }
@keyframes flash { 0%{background:#fff3cd;} 100%{background:#f9f9f9;} }

.reply-box {
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}
.reply-title {
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #333;
}
/* Toolbar */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.forum .btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.forum .btn:hover { background: #f2f2f2; }
.forum .btn-ghost { background: transparent; }
.forum .btn-primary {
  background: #0066cc;
  border-color: #0066cc;
  color: #fff;
}
.forum .btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}
/* Zone d'édition */
.editor-wrap textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px;
  border-radius: 6px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  line-height: 1.4;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.muted { color: #666; font-size: .9em; }
.right-actions { display: flex; gap: 8px; }
/* Prévisualisation */
.preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}
.hidden { display: none; }
.post-actions{display:flex;gap:.4rem;margin-top:.5rem}
.btn-mini{font-size:.85em;line-height:1;border:1px solid #ddd;border-radius:4px;background:#fff;padding:.25rem .45rem;cursor:pointer}
.btn-mini:hover{background:#f2f2f2}
.editing .reply-title::after{content:" (édition)";font-weight:400}
.edited-note{margin-top:.35rem;font-size:.85em;color:#777}
/* ====== Responsive ====== */
@media (max-width: 520px) {
  .forum-name { padding: 5px; }
  .forum-title { font-size: 18px; }
  .forum-desc { font-size: .8em; }
  .last-meta { font-size: .9em; }
  .forum-last .last-thread-info { font-size: .8em; }

  /* Stats sous forme de “mini-cards” sur une ligne, puis wrap si besoin */
  .stats { padding: 5px 10px 5px 10px; }
  .stat-label { font-size: .8em; }
  .stat-value { font-size: .8em; }
}
@media screen and (max-width: 768px) {
  .editor-wrap textarea { min-height: 130px; font-size: .98rem; }
  .form-meta { flex-direction: column; align-items: stretch; }
  .right-actions { justify-content: flex-end; }
  .forum table { display: block; overflow-x: auto; }
  .forum td { padding: 8px; font-size: 0.9em; }
  .forum h1 { font-size: 1.5em; }
  .post { padding: 8px; }
  .reply-level-1 { margin-left: 10px; max-width: calc(100% - 10px); }
  .reply-level-2 { margin-left: 20px; max-width: calc(100% - 20px); }
}
@media screen and (max-width: 480px) {
  .editor-toolbar { gap: 4px; }
  .forum .btn { padding: 6px 8px; font-size: .95rem; }
  .editor-wrap textarea { min-height: 120px; }
  .right-actions { flex-wrap: wrap; }
  .forum blockquote { padding-left: 8px; margin: 5px 0; }
  .forum pre { font-size: 0.8em; }
  .forum th, .forum td { padding: 5px; font-size: 0.85em; }
  .forum a { font-size: 0.9em; }
  .post { padding: 5px; }
  .post-header { font-size: 0.9em; }
  .post-content { font-size: 0.9em; }
}
