/* Flux : page /flux du site sous son bandeau (lots BN1 à BN3 : lecture des forums connectés). Couleurs en variables, thème clair compris. */
.fx, .fx-notif {
	--fx-bg: #061325;
	--fx-card: rgba(255, 255, 255, .04);
	--fx-card-unread: rgba(56, 152, 236, .1);
	--fx-line: rgba(147, 169, 194, .18);
	--fx-text: #e8f0f8;
	--fx-muted: #93a9c2;
	--fx-brand: #1d74c4;
	--fx-brand-soft: rgba(56, 152, 236, .16);
	--fx-unread: #f0a43a;
	--fx-mod: #f0c36a;
	--fx-mod-bg: rgba(240, 195, 106, .1);
	--fx-solved: #5fcf8f;
	--fx-solved-bg: rgba(95, 207, 143, .12);
	color: var(--fx-text);
}

.fx { min-height: 60vh; padding: 32px 20px 64px; }

html[data-theme=light] .fx, html[data-theme=light] .fx-notif {
	--fx-bg: #f3f7fb;
	--fx-card: #ffffff;
	--fx-card-unread: #eaf3fc;
	--fx-line: #d5e0ea;
	--fx-text: #12263b;
	--fx-muted: #4f6780;
	--fx-brand: #1565a8;
	--fx-brand-soft: #e3effa;
	--fx-unread: #b5650d;
	--fx-mod: #8a5a00;
	--fx-solved: #1d7a45;
	--fx-solved-bg: #e3f5ea;
	--fx-mod-bg: #fff6e0;
}

.fx * { box-sizing: border-box; }
.fx button, .fx input, .fx select, .fx textarea { font: inherit; color: inherit; }
.fx button { cursor: pointer; }
.fx a { color: inherit; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fx-wrap { max-width: 72rem; margin: 0 auto; }

.fx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.fx-sub { flex: 1 1 200px; margin: 0; color: var(--fx-muted); font-size: 14px; }
.fx-search { flex: 0 1 320px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); color: var(--fx-muted); }
.fx-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--fx-text); }

.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-card); color: var(--fx-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.fx .fx-btn-primary { min-height: 44px; border-color: var(--fx-brand); background: var(--fx-brand); color: #fff; }
.fx-btn-small { min-height: 32px; padding: 0 10px; font-size: 13px; background: transparent; }
.fx-link { padding: 0; border: 0; background: none; color: var(--fx-muted); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fx-body { display: flex; flex-wrap: wrap; gap: 28px; }
.fx-side { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.fx-tabs, .fx-forums { display: flex; flex-direction: column; gap: 2px; }
.fx-side-title { margin: 20px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); }
.fx-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--fx-muted); font-size: 15px; font-weight: 600; text-align: left; }
.fx-nav[aria-pressed="true"] { background: var(--fx-brand-soft); color: var(--fx-text); }
.fx-nav .fx-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-nav .fx-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--fx-brand); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.fx-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fx-forum-select { display: none; }
.fx-side-manage { align-self: flex-start; margin: 12px 0 0 12px; }
.fx-row-side { display: flex; align-items: center; gap: 10px; }
.fx-row .fx-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }

.fx-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fx-bar h2 { margin: 0; font-size: 20px; }
.fx-empty { padding: 40px 24px; border: 1px dashed var(--fx-line); border-radius: 14px; text-align: center; color: var(--fx-muted); }

.fx-item { display: flex; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); text-align: left; }
.fx-item.is-unread { background: var(--fx-card-unread); }
.fx-item:hover { border-color: var(--fx-brand); }
.fx-avatar { width: 40px; height: 40px; flex: none; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.fx-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--fx-muted); }
.fx-meta strong { color: var(--fx-text); }
.fx-kind { font-weight: 700; }
.fx-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--fx-unread); }
.fx-title { font-size: 16px; font-weight: 700; color: var(--fx-text); }
.fx-excerpt { margin: 0; color: var(--fx-muted); font-size: 14px; line-height: 1.5; }

.fx-back { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--fx-muted); font-size: 14px; font-weight: 600; }
.fx-topic-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fx-topic-head h2 { margin: 2px 0 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.fx-crumb { font-size: 13px; color: var(--fx-muted); }
.fx-status { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--fx-mod-bg); color: var(--fx-mod); font-size: 12px; font-weight: 700; vertical-align: middle; }

.fx-mod { position: relative; }
.fx-mod > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--fx-mod); border-radius: 10px; background: var(--fx-mod-bg); color: var(--fx-mod); font-size: 14px; font-weight: 700; cursor: pointer; }
.fx-mod > summary::-webkit-details-marker { display: none; }
.fx-mod-menu { position: absolute; right: 0; top: 46px; z-index: 5; width: 230px; padding: 6px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-bg); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.fx-mod-menu button, .fx-mod-menu label { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; text-align: left; }
.fx-mod-menu button:hover { background: var(--fx-brand-soft); }
.fx-mod-menu select { flex: 1; min-width: 0; padding: 4px; border: 1px solid var(--fx-line); border-radius: 6px; background: var(--fx-card); }
.fx-mod-menu small { padding: 6px 10px 2px; color: var(--fx-muted); font-size: 12px; }

.fx-post { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); }
.fx-post.is-removed { opacity: .5; }
.fx-post-text { margin: 6px 0 0; line-height: 1.6; white-space: pre-line; }
.fx-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.fx-react { min-height: 30px; padding: 0 10px; border: 1px solid var(--fx-line); border-radius: 999px; background: transparent; font-size: 13px; }
.fx-react[aria-pressed="true"] { border-color: var(--fx-brand); background: var(--fx-brand-soft); }
.fx-post-foot .fx-spacer { flex: 1; }

.fx-editor { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); }
.fx-editor h3 { margin: 0; font-size: 16px; }
.fx-editor label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fx-editor input[type="text"], .fx-editor input[type="password"], .fx-editor select, .fx-editor textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-bg); color: var(--fx-text); }
.fx-editor textarea { min-height: 130px; resize: vertical; }
.fx-editor-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fx-muted); }
.fx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.fx-section { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); }
.fx-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); text-align: left; }
.fx-row small { color: var(--fx-muted); font-size: 13px; }

@media (max-width: 860px) {
	.fx { padding: 20px 16px 48px; }
	.fx-search { flex: 1 1 100%; order: 3; }
	.fx-body { gap: 14px; }
	.fx-side { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
	.fx-side { min-width: 0; }
	.fx-tabs { flex-direction: row; gap: 6px; overflow-x: auto; flex: 1 1 100%; min-width: 0; max-width: 100%; padding-bottom: 2px; }
	.fx-tabs .fx-nav { flex: none; width: auto; min-height: 36px; border: 1px solid var(--fx-line); border-radius: 999px; font-size: 14px; }
	.fx-side-title, .fx-forums { display: none; }
	.fx-side-manage { margin: 0; }
	.fx-forum-select { display: block; flex: 1 1 100%; }
	.fx-forum-select select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-card); }
	.fx-two { grid-template-columns: minmax(0, 1fr); }
}

/* Éditeur du forum (même barre que les forums, BBCodes système et du forum) */
.fx-ed { position: relative; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-bg); }
.fx-ed:focus-within { border-color: var(--fx-brand); }
.fx-tb { display: flex; flex-wrap: wrap; gap: 5px 6px; padding: 6px; border-bottom: 1px solid var(--fx-line); }
.fx-tb-group { display: inline-flex; align-items: center; gap: 1px; padding: 1px; border-radius: 6px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-tb-dd { position: relative; display: inline-flex; }
.fx .fx-tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 28px; min-width: 28px; padding: 0 5px; border: 0; border-radius: 5px; background: none; font-size: 12px; }
.fx-tb-btn.is-text { padding: 0 7px; font-weight: 600; }
.fx-tb-btn img { width: 16px; height: 16px; display: block; }
.fx-tb-btn:hover, .fx-tb-btn[aria-expanded="true"] { background: var(--fx-brand-soft); }
.fx-tb-caret { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; opacity: .6; }
.fx-tb-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 170px; max-width: min(290px, calc(100vw - 32px)); padding: 4px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-bg); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.fx-tb-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; font-size: 13px; text-align: left; }
.fx-tb-item:hover { background: var(--fx-brand-soft); }
.fx-tb-item img { width: 16px; height: 16px; }
.fx-tb-head { padding: 4px 8px 2px; color: var(--fx-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fx-tb-swatches { display: grid; grid-template-columns: repeat(8, 20px); gap: 4px; padding: 6px; }
.fx-tb-swatches button { width: 20px; height: 20px; padding: 0; border: 1px solid var(--fx-line); border-radius: 4px; }
.fx-tb-form { display: grid; gap: 6px; min-width: 240px; padding: 6px; font-size: 13px; }
.fx-tb-form input { width: 100%; padding: 6px 8px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-card); }
.fx-tb-form small { color: var(--fx-muted); }
.fx-tb-form .fx-btn { justify-self: end; }
.fx .fx-ed textarea { display: block; width: 100%; min-height: 150px; padding: 12px; border: 0; border-radius: 0; background: transparent; color: var(--fx-text); resize: vertical; line-height: 1.55; }
.fx .fx-ed textarea:focus { outline: none; }
.fx-ed-status { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 12px; border-top: 1px solid var(--fx-line); color: var(--fx-muted); font-size: 12px; }
.fx-ed-draft { margin-left: auto; }
.fx-preview { margin: 0 12px 12px; padding: 12px; border: 1px dashed var(--fx-line); border-radius: 10px; line-height: 1.6; }
.fx-mention-list { position: absolute; left: 12px; bottom: 40px; z-index: 20; display: flex; flex-direction: column; min-width: 160px; padding: 4px; border: 1px solid var(--fx-line); border-radius: 10px; background: var(--fx-bg); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.fx-mention-list button { padding: 6px 10px; border: 0; border-radius: 6px; background: none; text-align: left; }
.fx-mention-list button:hover { background: var(--fx-brand-soft); }
.fx-smileys { display: flex; flex-wrap: wrap; gap: 2px; }
.fx-smileys button { padding: 2px 4px; border: 0; border-radius: 6px; background: none; font-size: 18px; line-height: 1.2; }
.fx-smileys button:hover { background: var(--fx-brand-soft); }
.fx-ed-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-ed-tab { min-height: 32px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; }
.fx-ed-tab[aria-pressed="true"] { border-color: var(--fx-brand); background: var(--fx-brand-soft); }
.fx-ed-pane { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--fx-line); border-radius: 10px; }
.fx-ed-actions { display: flex; gap: 8px; margin-left: auto; }
.fx-editor .fx-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.fx-editor .fx-check select { width: auto; padding: 4px 8px; }
.fx .fx-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fx .fx-field input, .fx .fx-field select, .fx .fx-field textarea, .fx-panel input[type="text"], .fx-panel select { width: 100%; padding: 8px 10px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-bg); color: var(--fx-text); font-weight: 400; }
.fx-hint { margin: 0; color: var(--fx-muted); font-size: 13px; }
.fx-files { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fx-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }

/* Rendu BBCode des messages */
.fx-post-text { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.fx-post-text blockquote, .fx-preview blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--fx-brand); border-radius: 6px; background: var(--fx-brand-soft); }
.fx-post-text cite, .fx-preview cite { display: block; font-size: 12px; font-style: normal; font-weight: 700; color: var(--fx-muted); }
.fx-post-text code, .fx-preview code { padding: 1px 4px; border-radius: 4px; background: var(--fx-brand-soft); }
.fx-post-text a, .fx-preview a { color: var(--fx-brand); }
html:not([data-theme=light]) .fx-post-text a { color: #7cc0ff; }
.fx-mention { font-weight: 700; color: var(--fx-brand); }
html:not([data-theme=light]) .fx-mention { color: #7cc0ff; }
.fx-bbbox { display: block; margin: 6px 0; padding: 8px 12px; border: 1px dashed var(--fx-line); border-radius: 8px; }
.fx-bbbox b { display: block; font-size: 12px; color: var(--fx-muted); }
.fx-bbbox-mod { border-style: solid; border-color: var(--fx-mod); background: var(--fx-mod-bg); }
.fx-bbimg { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--fx-brand-soft); font-size: 13px; }

/* Modération */
.fx-mod-menu small { padding: 8px 10px 2px; color: var(--fx-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fx-mod-menu .fx-mod-note { padding: 8px 10px; border-top: 1px solid var(--fx-line); margin-top: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.fx-mod-menu .fx-danger { color: #e5534b; }
html[data-theme=light] .fx-mod-menu .fx-danger { color: #b42318; }
.fx-mod-menu { width: 260px; }
.fx-panel-host:empty { display: none; }
.fx-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--fx-mod); border-radius: 12px; background: var(--fx-mod-bg); }
.fx-panel.is-danger { border-color: #e5534b; background: rgba(229, 83, 75, .1); }
.fx-panel .fx-field, .fx-panel .fx-check { display: flex; gap: 6px; font-size: 13px; }
.fx-panel .fx-field { flex-direction: column; }
.fx-panel .fx-check { align-items: center; }
.fx-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fx .fx-btn-go { border-color: var(--fx-brand); background: var(--fx-brand); color: #fff; }
.fx .fx-btn-danger { border-color: #c4372f; background: #c4372f; color: #fff; }
.fx-post.is-reported { border-color: #e5534b; }
.fx-post.is-waiting { border-style: dashed; border-color: var(--fx-mod); }
.fx-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: rgba(229, 83, 75, .12); font-size: 13px; font-weight: 600; }
.fx-flag span { flex: 1 1 180px; }
.fx-flag.is-waiting { background: var(--fx-mod-bg); color: var(--fx-mod); }
.fx-pick { width: 18px; height: 18px; margin-top: 12px; flex: none; }
.fx-edited { margin: 6px 0 0; color: var(--fx-muted); font-size: 12px; font-style: italic; }
.fx-selbar { position: sticky; bottom: 12px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--fx-mod); border-radius: 12px; background: var(--fx-bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.fx-selbar strong { margin-right: auto; font-size: 14px; }
.fx-count-mod { background: var(--fx-unread); }
.fx-zero { color: var(--fx-muted); font-size: 13px; }
.fx-row .fx-name i { color: var(--fx-muted); }
.fx-row-sub { margin-left: 24px; width: calc(100% - 24px); padding: 8px 14px; font-size: 13px; }
.fx-journal { padding: 10px 14px; border: 1px solid var(--fx-line); border-radius: 12px; font-size: 13px; }
.fx-journal summary { cursor: pointer; font-weight: 600; }
.fx-journal p { margin: 6px 0 0; color: var(--fx-muted); }
html:not([data-theme=light]) .fx-tb-btn img, html:not([data-theme=light]) .fx-tb-item img { filter: invert(.88); }
@media (max-width: 860px) {
	.fx-row-sub { margin-left: 12px; width: calc(100% - 12px); }
	.fx-mod-menu { width: min(260px, calc(100vw - 48px)); }
}
.fx .fx-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 1px solid var(--fx-line); border-radius: 8px; background: transparent; color: var(--fx-muted); font-size: 14px; }
.fx .fx-icon-btn:hover { border-color: var(--fx-brand); background: var(--fx-brand-soft); color: var(--fx-text); }
.fx-flag .fx-btn i { margin-right: 2px; }

/* Premier non lu, pages d'un long sujet, meilleure réponse, niveaux. */
.fx-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-pager .fx-btn { margin-left: auto; }
.fx .fx-page { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid var(--fx-line); border-radius: 8px; background: transparent; color: var(--fx-text); font-size: 14px; }
.fx .fx-page[aria-current="page"] { border-color: var(--fx-brand); background: var(--fx-brand); color: #fff; font-weight: 700; }
.fx-unread-sep { display: flex; align-items: center; gap: 10px; color: var(--fx-unread); font-size: 13px; font-weight: 700; }
.fx-unread-sep::before, .fx-unread-sep::after { content: ""; flex: 1; height: 1px; background: var(--fx-unread); opacity: .5; }
.fx-solved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border: 1px solid var(--fx-solved); border-radius: 12px; background: var(--fx-solved-bg); font-size: 14px; }
.fx-solved strong { color: var(--fx-solved); }
.fx .fx-status-solved, .fx-status-solved { background: var(--fx-solved-bg); color: var(--fx-solved); }
.fx-post.is-solved { border-color: var(--fx-solved); box-shadow: inset 3px 0 0 var(--fx-solved); }
.fx .fx-icon-btn.is-on { border-color: var(--fx-solved); background: var(--fx-solved-bg); color: var(--fx-solved); }
.fx-level { display: inline-flex; padding: 1px 7px; border: 1px solid var(--fx-line); border-radius: 999px; color: var(--fx-muted); font-size: 12px; font-weight: 600; cursor: help; }
.fx-level.is-high { border-color: var(--fx-mod); color: var(--fx-mod); }

/* Messages privés, sur le modèle de phpBB. */
.fx-pm-account { max-width: 100%; padding: 6px 10px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-bg); color: var(--fx-text); }
.fx-pm-folders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-pm-folders .fx-btn-primary { margin-left: auto; }
.fx .fx-pm-folder { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 999px; background: transparent; color: var(--fx-text); font-size: 14px; }
.fx .fx-pm-folder[aria-pressed="true"] { border-color: var(--fx-brand); background: var(--fx-brand-soft); font-weight: 700; }
.fx-count.is-quiet { background: transparent; color: var(--fx-muted); }
.fx-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--fx-brand-soft); font-size: 14px; }
.fx-pm-tools { position: static; border-color: var(--fx-line); box-shadow: none; background: var(--fx-card); }
.fx-pm-tools select { padding: 5px 8px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-bg); color: var(--fx-text); }
.fx-pm-all { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 14px; font-weight: 600; }
.fx-pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); }
.fx-pm-row.is-unread { background: var(--fx-card-unread); }
.fx-pm-row input, .fx-pm-all input { width: 18px; height: 18px; flex: none; accent-color: var(--fx-brand); }
.fx .fx-pm-open, .fx .fx-pm-history { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.fx .fx-pm-history { flex: none; width: 100%; padding: 12px 16px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); }
.fx-pm-read { flex-direction: column; gap: 10px; }
.fx-pm-subject { margin: 0; font-size: 18px; }
.fx-pm-meta { display: grid; gap: 4px; font-size: 14px; }
.fx-pm-meta div { display: flex; gap: 10px; }
.fx-pm-meta span { width: 60px; flex: none; color: var(--fx-muted); }
.fx-pm-recipients { display: flex; flex-direction: column; gap: 8px; }
.fx-field-label { font-size: 14px; font-weight: 600; }
.fx-pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-brand-soft); font-size: 14px; }
.fx-chip small { color: var(--fx-muted); font-weight: 700; }
.fx-chip .fx-icon-btn { width: 26px; height: 24px; border: 0; font-size: 12px; }
.fx-muted { color: var(--fx-muted); }
.fx-editor .fx-pm-add { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-editor .fx-pm-add select { width: auto; }
.fx-editor .fx-pm-add input { flex: 1; width: auto; min-width: 0; }

/* Fonctions de phpBB : type de sujet, règles, sondage, pièces jointes, signature, brouillons, messages privés. */
.fx-type { gap: 5px; align-items: center; background: var(--fx-brand-soft); color: var(--fx-text); }
.fx-type i { font-size: 11px; }
.fx-rules { padding: 10px 14px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-card); font-size: 14px; }
.fx-rules summary { cursor: pointer; font-weight: 700; }
.fx-rules p { margin: 8px 0 0; color: var(--fx-muted); line-height: 1.5; }
.fx-note.is-wait { background: var(--fx-mod-bg); color: var(--fx-mod); font-weight: 600; }
.fx-poll { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; padding: 14px; border: 1px solid var(--fx-line); border-radius: 12px; background: var(--fx-bg); }
.fx-poll-q { font-size: 15px; }
.fx-poll-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; }
.fx-poll-opt input { width: 18px; height: 18px; accent-color: var(--fx-brand); }
.fx-poll-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.fx-poll-row.is-mine { font-weight: 700; }
.fx-poll-bar { display: block; height: 8px; border-radius: 999px; background: var(--fx-line); overflow: hidden; }
.fx-poll-bar span { display: block; height: 100%; border-radius: 999px; background: var(--fx-brand); }
.fx-poll-n { color: var(--fx-muted); font-size: 13px; white-space: nowrap; }
.fx-poll-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fx-files-view { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fx-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--fx-line); border-radius: 10px; text-decoration: none; }
.fx-file:hover { border-color: var(--fx-brand); }
.fx-file-thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 8px; background: var(--fx-brand-soft); font-size: 11px; font-weight: 800; color: var(--fx-muted); }
.fx-file-thumb.is-image { background: linear-gradient(135deg, #3f7f6a, #1d74c4); color: #fff; }
.fx-file-info { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.fx-file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-file-info small { color: var(--fx-muted); }
.fx-sig { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--fx-line); font-size: 13px; color: var(--fx-muted); }
.fx-sig summary { cursor: pointer; width: max-content; }
.fx-sig p { margin: 6px 0 0; }
.fx-ed-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-editor .fx-ed-icon { flex-direction: row; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--fx-line); border-radius: 8px; font-weight: 400; cursor: pointer; }
.fx-ed-icon input { width: auto; }
.fx-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.fx-draft span { flex: 1 1 200px; min-width: 0; }
.fx .fx-btn.is-on { border-color: var(--fx-brand); background: var(--fx-brand-soft); }
.fx-pm-manage { display: flex; flex-direction: column; gap: 8px; }
.fx-pm-folder-row { display: flex; gap: 8px; }
.fx-pm-folder-row input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-bg); color: var(--fx-text); }
.fx-pm-meter { display: grid; grid-template-columns: auto minmax(80px, 1fr); align-items: center; gap: 10px; font-size: 13px; color: var(--fx-muted); }
.fx-pm-meter.is-full .fx-poll-bar span { background: var(--fx-unread); }
.fx-pm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx .fx-chip-add { min-height: 30px; padding: 0 10px; border: 1px dashed var(--fx-line); border-radius: 999px; background: transparent; font-size: 13px; }
.fx .fx-chip-add:hover { border-color: var(--fx-brand); background: var(--fx-brand-soft); }
.fx-pm-flag { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-pm-flag small { color: var(--fx-muted); }
@media (max-width: 560px) {
	.fx-poll-row { grid-template-columns: minmax(0, 1fr) auto; }
	.fx-poll-row .fx-poll-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Téléphones et tablettes : en-tête compact, onglets défilants, messages sur toute la largeur. */
.fx-pm-bar { align-items: center; }
.fx-pm-bar h2 { margin-right: auto; }
.fx-pm-bar .fx-pm-account { order: 3; }
@media (max-width: 860px) {
	.fx-head { gap: 10px; margin-bottom: 16px; }
	.fx-head .fx-btn-primary { min-height: 40px; }
	.fx-tabs { scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
	.fx-tabs::-webkit-scrollbar { display: none; }
	.fx-tabs .fx-nav { scroll-snap-align: start; }
	.fx-forum-select { flex: 1 1 0; min-width: 0; }
	.fx-side-manage { flex: none; min-height: 42px; }
	.fx-pm-folders { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
	.fx-pm-folders::-webkit-scrollbar { display: none; }
	.fx-pm-folder { flex: none; }
	.fx-pm-bar .fx-pm-account { flex: 1 1 100%; }
}
@media (max-width: 560px) {
	.fx { padding-top: 16px; }
	.fx-sub { flex-basis: 0; font-size: 13px; }
	.fx-side-manage .fx-lbl { display: none; }
	.fx-side-manage { width: 42px; padding: 0; }
	.fx-bar h2 { font-size: 18px; }
	.fx-item { gap: 10px; padding: 12px; }
	.fx-avatar { width: 32px; height: 32px; font-size: 14px; }
	.fx-meta { font-size: 12px; }
	.fx-topic-head h2 { font-size: 21px; }
	.fx-topic-head .fx-mod { width: 100%; }
	.fx-mod-menu { left: 0; right: auto; }
	.fx-post { gap: 10px; padding: 12px; }
	.fx-post-foot .fx-spacer { flex: 1 1 100%; height: 0; }
	.fx-post-foot .fx-spacer + * { margin-left: auto; }
	.fx .fx-icon-btn { width: 36px; height: 34px; }
	.fx-solved, .fx-flag { font-size: 13px; }
	.fx-pager .fx-btn { margin-left: 0; }
	.fx-editor { padding: 12px; }
	.fx-tb { gap: 4px; }
	.fx-pm-tools { gap: 6px; padding: 8px 10px; }
	.fx-pm-tools .fx-btn .fx-lbl { display: none; }
	.fx-pm-tools .fx-btn { width: 38px; padding: 0; }
	.fx-pm-tools select { flex: 1 1 0; min-width: 0; min-height: 32px; }
	.fx-pm-all { flex: 1 1 100%; }
	.fx-pm-row { gap: 10px; padding: 12px; }
	.fx-pm-new .fx-lbl { display: none; }
	.fx-pm-new { width: 44px; padding: 0; }
	.fx-pm-meta span { width: 48px; }
}

/* Messages rendus par le forum (HTML nettoyé par la passerelle), états de chargement, listes du forum. */
.fx-post-text p { margin: 0 0 .6em; }
.fx-post-text img { max-width: 100%; height: auto; vertical-align: middle; }
.fx-post-text img.smilies { max-height: 28px; }
.fx-post-text pre { max-width: 100%; overflow-x: auto; margin: 6px 0; padding: 10px 12px; border-radius: 8px; background: var(--fx-brand-soft); white-space: pre; }
.fx-post-text .codebox > p { margin: 0; font-size: 12px; font-weight: 700; color: var(--fx-muted); }
.fx-post-text .codebox > p a { display: none; }
.fx-post-text ul, .fx-post-text ol { margin: 4px 0; padding-left: 1.5em; }
.fx-post-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.fx-post-text td, .fx-post-text th { padding: 4px 8px; border: 1px solid var(--fx-line); }
.fx-post-text .inline-attachment { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--fx-brand-soft); font-size: 13px; }
.fx-post .fx-avatar { background: var(--fx-brand); }
.fx-post-subject { margin: 2px 0 0; font-size: 14px; color: var(--fx-muted); }
.fx-loading { padding: 32px 0; color: var(--fx-muted); text-align: center; }
.fx-error { padding: 16px; border: 1px solid #e5534b; border-radius: 12px; background: rgba(229, 83, 75, .1); font-size: 14px; }
.fx-state { max-width: 40rem; margin: 0 auto; padding: 24px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); }
.fx-state p { margin: 0; line-height: 1.6; }
.fx-state .fx-btn { margin-top: 16px; }
.fx-cat { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); }
.fx-row.is-unread { background: var(--fx-card-unread); }
.fx-row:hover { border-color: var(--fx-brand); }
.fx-row .fx-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.fx-row .fx-row-main strong { overflow-wrap: anywhere; }
.fx-row .fx-row-side { color: var(--fx-muted); font-size: 13px; }
.fx-more { align-self: center; margin-top: 6px; }
.fx-open { margin-left: auto; }
.fx-poll-closed { color: var(--fx-muted); font-size: 13px; }
.fx a.fx-page { display: inline-grid; place-items: center; line-height: 30px; text-decoration: none; }
.fx-reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.fx span.fx-react { display: inline-flex; align-items: center; }
.fx-editor .fx-error, .fx-poll .fx-error { margin: 0; }
.fx-editor-end > span { flex: 1 1 200px; }
.fx .fx-tb-btn { color: var(--fx-text); }
.fx-pm-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pm-boxes a[aria-current="page"] { border-color: var(--fx-brand); background: var(--fx-brand-soft); }

/* Réglages du Flux (lot BN6) */
.fx-topic-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.fx-mute[aria-pressed="true"] { border-color: var(--fx-mod); color: var(--fx-mod); }
.fx-prefs-group { margin: 0 0 16px; padding: 14px 16px 16px; border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-card); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fx-prefs-group legend { padding: 0 6px; font-size: 15px; font-weight: 700; }
.fx-prefs-group > .fx-btn { align-self: flex-start; margin-top: 4px; }
.fx-check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.fx-check input { width: 18px; height: 18px; flex: none; accent-color: var(--fx-brand); }
.fx-check span { min-width: 0; overflow-wrap: anywhere; }
.fx-prefs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; font-size: 14px; }
.fx-prefs-row a { overflow-wrap: anywhere; }
.fx-install { display: flex; flex-direction: column; gap: 8px; }
.fx-install .fx-btn { align-self: flex-start; }
.fx-prefs-status:empty { display: none; }
