/* Composer un sujet dans la communauté choisie, sans modifier les autres pages. */
.m-community .cp-workspace{min-width:0;padding-top:0;max-width:none;--cp-paper:#0e1012;--cp-surface:#181c1f;--cp-line:#30363b;--cp-muted:#98a3ab;--cp-text:#e0e5e9}
.m-community .cp-workspace [hidden]{display:none!important}
.m-community .cp-workspace>.cp-heading{max-width:900px;margin:0 auto;padding:28px 32px 0}
.m-community .cp-heading h1{font-size:24px;font-weight:650;letter-spacing:-.45px;line-height:1.3;margin:0 0 6px}
.m-community .cp-compose{width:100%;max-width:900px;min-width:0;margin:0 auto;padding:20px 32px 45px;background:var(--cp-paper);color:var(--cp-text)}
.m-community .cp-workspace .fc-sr,.m-community .cp-workspace .cp-honeypot{position:absolute!important;width:1px!important;height:1px!important;max-width:1px;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%);white-space:nowrap;padding:0!important;margin:-1px!important;border:0!important}
.m-community .cp-community-picker{min-width:0;margin:0 0 22px}
.m-community .cp-community-fallback label{display:block;font-size:13px;font-weight:600;margin:0 0 9px}
.m-community .cp-community-fallback input{display:block;width:100%;max-width:430px;min-height:44px;padding:10px 13px;border:1px solid var(--cp-line);border-radius:9px;background:var(--cp-surface);color:var(--cp-text);font:inherit;font-size:14px}
.m-community .cp-community-trigger{display:flex;align-items:center;gap:11px;max-width:100%;min-width:min(100%,300px);min-height:65px;padding:11px 14px;border:1px solid var(--cp-line);border-radius:12px;background:var(--cp-surface);color:var(--cp-text);text-align:left;cursor:pointer;transition:background .16s,border-color .16s}
.m-community .cp-community-trigger:hover{background:#22282d;border-color:#59646d}
.m-community .cp-community-mark,.m-community .cp-community-option-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;overflow:hidden;background:#2c3237;border-radius:50%;color:#b9c3ca;font-size:22px;font-weight:600}
.m-community .cp-community-mark img,.m-community .cp-community-option-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.m-community .cp-community-trigger-copy{display:grid;gap:4px;min-width:0;flex:1}
.m-community .cp-community-trigger-copy strong{font-size:13px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.m-community .cp-community-trigger-copy small{font-size:11px;line-height:1.4;color:var(--cp-muted)}
.m-community .cp-community-trigger>.f-icon{height:17px;width:17px;flex:none;color:var(--cp-muted);margin-left:8px}
.m-community .cp-community-choice-status{color:var(--cp-muted);font-size:12px;line-height:1.5;margin:8px 0 0;max-width:500px}
.m-community .cp-community-choice-status:empty{display:none}
.m-community .cp-title{margin:20px 0;min-width:0}
.m-community .cp-title>input{display:block;width:100%;max-width:100%;border:0;border-bottom:1px solid var(--cp-line);border-radius:0;background:transparent;color:var(--cp-text);padding:13px 1px 16px;min-height:58px;font:450 24px/1.4 var(--tnf-font,'Reddit Sans','Segoe UI',sans-serif);letter-spacing:-.35px;box-shadow:none}
.m-community .cp-title>input::placeholder{color:#8d979f;opacity:1}
.m-community .cp-title>input:focus{border-bottom-color:#bac4cc;outline:0;box-shadow:0 1px 0 #bac4cc}
.m-community .cp-tag-help{font-size:12px;line-height:1.7;color:var(--cp-muted);margin:9px 0 18px}
.m-community .cp-compose .fc-composer{background:var(--cp-paper);border-color:var(--cp-line);box-shadow:none;border-radius:11px;margin:20px 0 0}
.m-community .cp-compose .fc-composer:focus-within{border-color:#77848e}
.m-community .cp-compose .fc-composer-topic .fc-input-wrap>textarea{min-height:150px;max-height:70vh;font-size:14px;padding:15px 42px 13px 15px;color:var(--cp-text);background:transparent}
.m-community .cp-compose .fc-composer-topic .fc-input-wrap>textarea::placeholder{color:var(--cp-muted)}
.m-community .cp-compose .fc-bottom{padding:8px 10px 10px}.m-community .cp-compose .fc-submit{min-width:78px}.m-community .cp-compose .fc-status{font-size:11px}
.m-community .cp-workspace>.f-notice{max-width:836px;margin:18px auto;font-size:12px;line-height:1.7;padding:12px 14px;border:1px solid #80526a;border-radius:8px;background:#33232c;color:#e2bacb}

/* Le dialogue natif assure le piégeage du focus et conserve le formulaire intact. */
.m-community .cp-community-dialog:not([open]){display:none!important}
.m-community .cp-community-dialog{position:fixed;inset:0;width:min(540px,calc(100% - 32px));max-width:540px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #394147;border-radius:16px;background:#15191c;color:#e0e5e9;box-shadow:0 24px 90px #0008;font-family:var(--tnf-font,'Reddit Sans','Segoe UI',sans-serif);--cp-muted:#a0aab1;--cp-text:#e0e5e9;--cp-line:#343c42;--cp-surface:#20262b}
.m-community .cp-community-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}
.m-community .cp-community-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 22px 17px;border-bottom:1px solid var(--cp-line);margin:0}
.m-community .cp-community-dialog-heading>div{min-width:0}.m-community .cp-community-dialog-heading>div>span{display:block;font-size:9px;letter-spacing:1px;font-weight:650;color:var(--cp-muted);line-height:1.4;margin:0 0 7px}
.m-community .cp-community-dialog-heading h2{font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.4px;margin:0;color:var(--cp-text)}
.m-community .cp-community-close{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:9px;border:0;border-radius:50%;background:#2a3136;color:var(--cp-text);cursor:pointer}
.m-community .cp-community-close .f-icon{width:18px;height:18px}.m-community .cp-community-close:hover{background:#394249}
.m-community .cp-community-dialog-body{padding:16px 22px 18px;min-width:0}.m-community .cp-community-dialog-body>p:first-child{font-size:12px;color:var(--cp-muted);line-height:1.65;margin:0 0 15px}
.m-community .cp-community-search{position:relative;margin:0 0 12px}.m-community .cp-community-search>.f-icon{position:absolute;left:13px;top:13px;height:18px;width:18px;pointer-events:none;color:var(--cp-muted)}
.m-community .cp-community-search>input{display:block;width:100%;min-width:0;min-height:45px;margin:0;padding:10px 13px 10px 40px;border:1px solid var(--cp-line);border-radius:9px;background:#0e1215;color:var(--cp-text);font:400 14px/1.5 var(--tnf-font,'Reddit Sans','Segoe UI',sans-serif)}
.m-community .cp-community-search>input::placeholder{color:#8d99a2;opacity:1}.m-community .cp-community-search>input[aria-busy=true]{border-color:#75828b}
.m-community .cp-community-options{max-height:min(342px,43vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#58636b transparent;margin-inline:-7px;padding:2px 7px}
.m-community .cp-community-option{display:flex;align-items:center;gap:11px;min-height:66px;padding:11px 10px;margin:2px -3px;border:1px solid transparent;border-radius:9px;cursor:pointer;color:var(--cp-text)}
.m-community .cp-community-option:hover{background:#242c31}.m-community .cp-community-option[aria-selected=true]{background:#283138;border-color:#53616c}
.m-community .cp-community-option-copy{display:grid;gap:3px;min-width:0;flex:1}.m-community .cp-community-option-copy strong{font-size:13px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.m-community .cp-community-option-copy small{font-size:11px;color:var(--cp-muted);line-height:1.4}
.m-community .cp-community-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#afb9c0;line-height:1.5;overflow-wrap:anywhere}
.m-community .cp-community-search-status{color:var(--cp-muted);font-size:11px;line-height:1.6;margin:12px 0 0;min-height:18px}
.m-community .cp-community-create{display:flex;align-items:center;gap:11px;width:100%;padding:12px 10px;margin:12px 0 0;border:1px dashed #5f6c75;border-radius:10px;background:#20292f;color:var(--cp-text);text-align:left;cursor:pointer}
.m-community .cp-community-create:hover{background:#2b363e;border-color:#9aabb7}.m-community .cp-community-create-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#35434d;color:#e2eaf0;font-size:24px;line-height:1}
.m-community .cp-community-create>span:last-child{display:grid;gap:5px;min-width:0}.m-community .cp-community-create strong{font-size:13px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.m-community .cp-community-create small{font-size:11px;color:var(--cp-muted);line-height:1.5}
.m-community .cp-community-retry{font:inherit;font-size:12px;min-height:38px;border:1px solid #65747e;border-radius:8px;background:transparent;color:var(--cp-text);padding:8px 12px;margin:10px 0 0;cursor:pointer}
.m-community .cp-community-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;border-top:1px solid var(--cp-line);background:#191f23}
.m-community .cp-community-dialog-footer>span{font-size:11px;line-height:1.5;color:var(--cp-muted)}
.m-community .cp-community-cancel{min-height:38px;padding:8px 15px;border:1px solid #4a5862;border-radius:20px;background:#2a333a;color:var(--cp-text);font:600 12px/1.4 var(--tnf-font,'Reddit Sans','Segoe UI',sans-serif);cursor:pointer}
.m-community .cp-community-cancel:hover{background:#3b4852}
.m-community .cp-community-picker button:focus-visible,.m-community .cp-community-picker input:focus-visible{outline:2px solid #b6c5d0;outline-offset:3px}

:root[data-theme=light] .m-community .cp-workspace{--cp-paper:#fff;--cp-surface:#f3f5f6;--cp-line:#d2d8dc;--cp-muted:#677781;--cp-text:#25343e}
:root[data-theme=light] .m-community .cp-community-trigger:hover{background:#e8edf0;border-color:#99a9b5}:root[data-theme=light] .m-community .cp-community-mark{background:#e0e6ea;color:#596d7c}
:root[data-theme=light] .m-community .cp-community-dialog{background:#fff;border-color:#bfcad1;color:#25343e;--cp-surface:#f0f3f5;--cp-line:#d7dfe4;--cp-muted:#647580;--cp-text:#25343e;box-shadow:0 24px 90px #1a2c3844}
:root[data-theme=light] .m-community .cp-community-dialog::backdrop{background:#14212c66}:root[data-theme=light] .m-community .cp-community-close,:root[data-theme=light] .m-community .cp-community-option-mark{background:#e8edf0;color:#526a7b}:root[data-theme=light] .m-community .cp-community-close:hover{background:#d9e2e8}
:root[data-theme=light] .m-community .cp-community-search>input{background:#f7f9fa}:root[data-theme=light] .m-community .cp-community-option:hover{background:#f0f4f6}:root[data-theme=light] .m-community .cp-community-option[aria-selected=true]{background:#e8f0f5;border-color:#a6bbc9}:root[data-theme=light] .m-community .cp-community-option-description{color:#5c6e7b}
:root[data-theme=light] .m-community .cp-community-create{background:#f0f5f8;border-color:#9db0be}:root[data-theme=light] .m-community .cp-community-create:hover{background:#e2edf4}:root[data-theme=light] .m-community .cp-community-create-mark{background:#d9e7f0;color:#466377}:root[data-theme=light] .m-community .cp-community-dialog-footer{background:#f5f7f8}:root[data-theme=light] .m-community .cp-community-cancel{background:#e5edf2;border-color:#b7c9d5}:root[data-theme=light] .m-community .cp-community-cancel:hover{background:#d7e4ed}:root[data-theme=light] .m-community .cp-community-picker button:focus-visible,:root[data-theme=light] .m-community .cp-community-picker input:focus-visible{outline-color:#526e82}
@media(max-width:900px){.m-community .cp-workspace>.cp-heading{padding:23px 4px 0;max-width:780px}.m-community .cp-compose{padding:18px 4px 35px;max-width:780px}.m-community .cp-workspace>.f-notice{margin-inline:4px}}
@media(max-width:650px){.m-community .cp-workspace>.cp-heading{padding:18px 1px 0}.m-community .cp-heading h1{font-size:23px}.m-community .cp-compose{padding:17px 1px 30px}.m-community .cp-community-trigger{width:100%;min-height:62px;padding:10px 12px}.m-community .cp-community-picker{margin-bottom:17px}.m-community .cp-title>input{font-size:23px;min-height:55px;padding-block:11px 14px}.m-community .cp-compose .fc-composer-topic .fc-input-wrap>textarea{font-size:16px;line-height:1.6;min-height:145px;padding:13px 39px 12px 13px}.m-community .cp-compose .fc-bottom{padding:7px 8px 9px}.m-community .cp-compose .fc-submit{min-width:72px}.m-community .cp-community-fallback input,.m-community .cp-community-search>input{font-size:16px}.m-community .cp-community-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.m-community .cp-community-dialog-heading{padding:17px 16px 15px}.m-community .cp-community-dialog-heading h2{font-size:20px}.m-community .cp-community-dialog-heading>div>span{font-size:8px;letter-spacing:.7px}.m-community .cp-community-dialog-body{padding:14px 16px 16px}.m-community .cp-community-options{max-height:39vh}.m-community .cp-community-dialog-footer{padding:12px 16px}.m-community .cp-community-close{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.m-community .cp-workspace *{scroll-behavior:auto!important;transition:none!important}}
