body.forum-page .forum-maintenance-bar {
  padding: 10px 16px;
  background: #fff4cf;
  color: #5f4813;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
}

body.forum-page .forum-board-header {
  background: #122330;
  border-bottom: 2px solid #e8bc52;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}

body.forum-page .forum-board-inner {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.forum-page .forum-board-top {
  width: min(1280px, calc(100% - 64px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.forum-page .forum-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

body.forum-page .forum-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0f1720;
  background: #e8bc52;
  border: 1px solid #d4a843;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

body.forum-page .forum-brand-text strong {
  display: block;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

body.forum-page .forum-brand-text span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.58);
  font-size: 0.74rem;
  font-weight: 600;
}

body.forum-page .forum-search-form {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.09);
}

body.forum-page .forum-search-form:focus-within {
  border-color: rgba(232,188,82,0.55);
  background: rgba(255,255,255,0.12);
}

body.forum-page .forum-search-form input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

body.forum-page .forum-search-form input::placeholder {
  color: rgba(255,255,255,0.52);
}

body.forum-page .forum-search-form button {
  height: 38px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding: 0 12px;
  color: #0f1720;
  background: #e8bc52;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

body.forum-page .forum-search-preview {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  border: 1px solid rgba(27,47,62,0.12);
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9,22,31,0.22);
}

body.forum-page .forum-search-preview.is-visible {
  display: block;
}

body.forum-page .forum-search-preview::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 28px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(27,47,62,0.12);
  border-top: 1px solid rgba(27,47,62,0.12);
  background: #fff;
}

body.forum-page .forum-search-preview a,
body.forum-page .forum-search-empty {
  display: block;
  border-radius: 8px;
  padding: 10px;
  color: #263640;
  text-decoration: none;
}

body.forum-page .forum-search-preview a:hover {
  background: #f3f6f8;
}

body.forum-page .forum-search-preview strong,
body.forum-page .forum-search-preview span {
  display: block;
}

body.forum-page .forum-search-preview strong {
  color: #172833;
  font-size: 0.88rem;
  font-weight: 950;
}

body.forum-page .forum-search-preview span,
body.forum-page .forum-search-empty {
  margin-top: 3px;
  color: #65737e;
  font-size: 0.76rem;
  font-weight: 800;
}

body.forum-page .forum-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

body.forum-page .forum-return,
body.forum-page .forum-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,0.10);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

body.forum-page .forum-return:hover,
body.forum-page .forum-auth-link:hover {
  background: rgba(255,255,255,0.18);
}

body.forum-page .forum-icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body.forum-page .forum-icon-link:hover {
  background: rgba(255,255,255,0.16);
  text-decoration: none;
  transform: translateY(-1px);
}

body.forum-page .forum-message-link {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}

body.forum-page .forum-message-link .forum-mp-icon {
  font-size: 18px;
  line-height: 1;
  display: block;
  color: rgba(255,255,255,0.92);
}

body.forum-page .forum-message-link:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
}

body.forum-page .forum-message-link:hover .forum-mp-icon {
  color: #fff;
}

body.forum-page .forum-auth-link.primary {
  border-color: #d4a843;
  color: #0f1720;
  background: #e8bc52;
}

body.forum-page .forum-auth-link.primary:hover {
  border-color: #c99a38;
  background: #f0c85f;
  color: #0f1720;
}

body.forum-page .forum-user-menu {
  position: relative;
}

body.forum-page .forum-user-menu summary {
  list-style: none;
}

body.forum-page .forum-user-menu summary::-webkit-details-marker {
  display: none;
}

body.forum-page .forum-user-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  padding: 0;
  color: #162633;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

body.forum-page .forum-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.forum-page .forum-user-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #e8bc52;
  font-size: 0.95rem;
  font-weight: 750;
}

body.forum-page .forum-icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

body.forum-page .forum-icon-link:hover,
body.forum-page .forum-icon-link.is-active {
  border-color: rgba(240, 200, 95, 0.55);
  background: rgba(240, 200, 95, 0.16);
  color: #fff;
}

body.forum-page .forum-notify {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid #162b3a;
  border-radius: 999px;
  padding: 0 5px;
  color: #162633;
  background: #f0c85f;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 950;
}

body.forum-page .forum-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 210px;
  border: 1px solid rgba(27,47,62,0.12);
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9,22,31,0.22);
}

body.forum-page .forum-user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(27,47,62,0.12);
  border-top: 1px solid rgba(27,47,62,0.12);
  background: #fff;
}

body.forum-page .forum-user-dropdown-head {
  padding: 9px 10px 10px;
  border-bottom: 1px solid #e4eaf0;
}

body.forum-page .forum-user-dropdown-head strong,
body.forum-page .forum-user-dropdown-head span {
  display: block;
}

body.forum-page .forum-user-dropdown-head strong {
  color: #172833;
  font-size: 0.9rem;
}

body.forum-page .forum-user-dropdown-head span {
  margin-top: 2px;
  color: #65737e;
  font-size: 0.74rem;
  font-weight: 800;
}

body.forum-page .forum-user-dropdown a {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: #263640;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

body.forum-page .forum-user-dropdown a:hover {
  background: #f3f6f8;
}

body.forum-page .forum-tabs {
  width: min(1280px, calc(100% - 64px));
  min-height: 54px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

body.forum-page .forum-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  color: rgba(255,255,255,0.82);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

body.forum-page .forum-tabs a:hover,
body.forum-page .forum-tabs a.active {
  color: #162633;
  background: #f0c85f;
}

@media (max-width: 720px) {
  body.forum-page .forum-board-top {
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  body.forum-page .forum-header-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }

  body.forum-page .forum-search-form {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.forum-page .forum-tabs {
    width: min(1280px, calc(100% - 32px));
  }
}

/* Shared header lock: keeps the forum header identical on pages with older inline CSS. */
html body.forum-page .forum-board-header {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #162b3a !important;
  border-bottom: 3px solid #f0c85f !important;
  box-sizing: border-box !important;
}

html body.forum-page .forum-board-inner {
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.forum-page .forum-board-top {
  width: min(1280px, calc(100% - 64px)) !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

html body.forum-page .forum-search-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.09) !important;
  overflow: hidden !important;
}

html body.forum-page .forum-search-form input {
  min-width: 0 !important;
  flex: 1 !important;
  width: auto !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 12px !important;
  color: #fff !important;
  background: transparent !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  outline: none !important;
}

html body.forum-page .forum-search-form input::placeholder {
  color: rgba(255,255,255,0.52) !important;
}

html body.forum-page .forum-search-form button {
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-left: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0 !important;
  padding: 0 12px !important;
  color: #162633 !important;
  background: #f0c85f !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
}

html body.forum-page .forum-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
}

html body.forum-page .forum-return,
html body.forum-page .forum-auth-link {
  min-height: 38px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  color: #fff !important;
  background: rgba(255,255,255,0.10) !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
}

html body.forum-page .forum-icon-link {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

html body.forum-page .forum-message-link {
  border-color: rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.08) !important;
}

html body.forum-page .forum-message-link .forum-mp-icon {
  color: rgba(255,255,255,0.92) !important;
}

html body.forum-page .forum-auth-link.primary {
  border-color: #f0c85f !important;
  color: #162633 !important;
  background: #f0c85f !important;
}

html body.forum-page .forum-auth-link.primary:hover {
  border-color: #ffd873 !important;
  color: #162633 !important;
  background: #ffd873 !important;
}

html body.forum-page .forum-tabs {
  width: min(1280px, calc(100% - 64px)) !important;
  min-height: 54px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html body.forum-page .forum-tabs a {
  min-height: 38px !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  color: rgba(255,255,255,0.82) !important;
  background: transparent !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
}

html body.forum-page .forum-tabs a:hover,
html body.forum-page .forum-tabs a.active {
  color: #162633 !important;
  background: #f0c85f !important;
}

/* Comme .forum-tabs a.active : même géométrie, pas de bordure sombre (évite l’effet « autre bouton ») */
html body.forum-page a.salon-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: none !important;
  box-sizing: border-box !important;
  color: #162633 !important;
  background: #f0c85f !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

html body.forum-page a.salon-new:hover {
  color: #162633 !important;
  background: #f0c85f !important;
}

html body.forum-page a.salon-new:focus-visible {
  outline: 2px solid #162633 !important;
  outline-offset: 2px !important;
}

@media (max-width: 720px) {
  html body.forum-page .forum-board-top {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
    padding: 16px 0 !important;
  }

  html body.forum-page .forum-search-form {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
  }
}
