/* Posts enrichis : sondages, fichiers joints, vidéos intégrées, @mentions */
.mention { color: #203A7C; font-weight: 600; background: rgba(32, 58, 124, .08); padding: 0 4px; border-radius: 6px; cursor: pointer; }
.mention:hover { background: rgba(32, 58, 124, .16); }
.comment-edited { color: #9CA3AF; font-size: 12px; }

.vid-embed { position: relative; margin: 12px 0 4px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111827 center / cover; cursor: pointer; }
.vid-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #203A7C; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 0; cursor: pointer; }
.vid-prov { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 24, 39, .7); color: #fff; font: 600 11px/1 Inter, sans-serif; text-transform: capitalize; }
.comment .vid-embed { max-width: 420px; border-radius: 12px; }

.poll { margin: 12px 0 4px; display: grid; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; text-align: left; font: 500 15px/1.3 Inter, sans-serif; color: #22202B; cursor: pointer; transition: border-color .15s; }
.poll-opt:hover { border-color: #203A7C; }
.poll-opt.mine { border-color: #203A7C; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(32, 58, 124, .1); transition: width .5s cubic-bezier(.16, 1, .3, 1); }
.poll-opt.mine .poll-bar { background: rgba(32, 58, 124, .18); }
.poll-check { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b8bdc7; display: grid; place-items: center; color: #fff; }
.poll-opt.mine .poll-check { background: #203A7C; border-color: #203A7C; }
.poll-text { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.poll-pct { position: relative; font-weight: 700; color: #203A7C; }
.poll-pct small { font-weight: 500; color: #9CA3AF; margin-left: 4px; }
.poll-foot { font-size: 13px; color: #6B7280; padding-left: 2px; }

.post-files { display: grid; gap: 8px; margin: 12px 0 4px; }
.post-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 12px; background: #F8F9FC; color: #22202B; text-decoration: none; }
.post-file:hover { border-color: #203A7C; }
.pf-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #eaeefa; color: #203A7C; display: grid; place-items: center; }
.pf-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-meta b { font: 600 14.5px/1.3 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-meta small { color: #6B7280; font-size: 12.5px; }

/* Composer */
.cm-files { display: grid; gap: 8px; margin: 10px 0 0; }
.cm-files:empty { display: none; }
.cm-file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #E5E7EB; border-radius: 12px; font-size: 14px; }
.cm-file b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-file small { color: #9CA3AF; }
.cm-file button { width: 26px; height: 26px; border-radius: 50%; color: #6B7280; font-size: 18px; line-height: 1; }
.cm-file button:hover { background: #F3F4F6; }
.cm-poll { margin: 12px 0 0; padding: 14px; border: 1px solid #E5E7EB; border-radius: 14px; background: #F8F9FC; display: grid; gap: 8px; }
.cm-poll[hidden] { display: none; }
.cmp-head { display: flex; justify-content: space-between; align-items: center; }
.cmp-head b { font: 600 14px Inter, sans-serif; }
.cmp-del { font-size: 13px; color: #B42318; font-weight: 600; }
.cmp-row { display: flex; gap: 8px; }
.cmp-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 10px; font: 400 15px Inter, sans-serif; background: #fff; }
.cmp-row input:focus { outline: none; border-color: #203A7C; }
.cmp-row button { width: 36px; border-radius: 10px; color: #6B7280; font-size: 18px; }
.cmp-add { justify-self: start; font: 600 13.5px Inter, sans-serif; color: #203A7C; padding: 4px 2px; }
.cmp-multi { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #4B5563; }
.cm-tool.on { color: #203A7C; background: rgba(32, 58, 124, .1); }

/* Liste de suggestion des @mentions */
.mention-pop { position: fixed; z-index: 100002; width: 260px; max-height: 280px; overflow: auto; padding: 6px; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .2); }
.mention-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; font: 500 14px Inter, sans-serif; }
.mention-pop button.on, .mention-pop button:hover { background: #F3F5FB; }
.mention-pop b { display: block; font-weight: 600; }
.mention-pop small { color: #6B7280; }
.mp-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #203A7C center / cover; color: #fff; display: grid; place-items: center; font: 700 12px/1 Inter, sans-serif; }
