/* Sondages (fil + MP) — carte de vote + modale de création. Chargé par communaute.html et chat.html. */
.feed-poll { margin-top: 8px; background: #F4F1FB; border-radius: 14px; padding: 12px; }
.feed-poll-q { font-size: 14px; font-weight: 800; color: #1C1B1F; margin-bottom: 8px; }
.feed-poll-q i { color: #6750A4; margin-right: 6px; }
.feed-poll-opts { display: flex; flex-direction: column; gap: 7px; }
.feed-poll-opt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 12px; border: none; border-radius: 10px; background: #fff; font-family: inherit; font-size: 13px; color: #1C1B1F; text-align: left; cursor: pointer; overflow: hidden; }
.feed-poll-opt.locked { cursor: default; }
.feed-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(103, 80, 164, 0.14); border-radius: 10px; transition: width 0.35s ease; }
.feed-poll-opt.mine .feed-poll-bar { background: rgba(103, 80, 164, 0.30); }
.feed-poll-lbl { position: relative; z-index: 1; flex: 1; font-weight: 600; }
.feed-poll-opt.mine .feed-poll-lbl { font-weight: 800; }
.feed-poll-lbl i { color: #6750A4; margin-right: 4px; }
.feed-poll-pct { position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: #605a70; }
.feed-poll-total { margin-top: 8px; font-size: 11px; color: #8a8698; }
/* La carte de sondage en DM occupe toute la largeur de la bulle. */
.msg.msg-poll { max-width: 82%; background: transparent; padding: 0; }

/* Modale de création d'un sondage */
.poll-ov { position: fixed; inset: 0; background: rgba(20, 12, 40, 0.55); z-index: 3200; display: flex; align-items: flex-end; justify-content: center; }
.poll-sheet { width: 100%; max-width: 640px; background: #fff; border-radius: 18px 18px 0 0; padding: 16px; max-height: 82vh; overflow-y: auto; }
.poll-sheet-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 12px; color: #1C1B1F; }
.poll-close { background: none; border: none; font-size: 26px; line-height: 1; color: #75727e; cursor: pointer; }
.poll-q, .poll-opt-in { width: 100%; border: 1px solid #E0DAF0; border-radius: 12px; padding: 11px 12px; font-size: 14px; font-family: inherit; outline: none; background: #fff; color: #1C1B1F; }
.poll-q:focus, .poll-opt-in:focus { border-color: #6750A4; }
.poll-lbl { font-weight: 700; font-size: 13px; margin: 14px 0 6px; color: #1C1B1F; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt-row { display: flex; align-items: center; gap: 8px; }
.poll-opt-rm { background: none; border: none; font-size: 22px; line-height: 1; color: #999; cursor: pointer; padding: 0 4px; }
.poll-add { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; color: #6750A4; font-weight: 800; font-size: 13px; font-family: inherit; cursor: pointer; padding: 10px 0; }
.poll-create { width: 100%; margin-top: 14px; background: #6750A4; color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer; }

@media (prefers-color-scheme: dark) {
  .feed-poll { background: #241E33; }
  .feed-poll-q, .feed-poll-lbl { color: #ECE9F5; }
  .feed-poll-opt { background: #2E2740; color: #ECE9F5; }
  .feed-poll-pct { color: #B8B2C8; }
  .poll-sheet { background: #1F1B2A; }
  .poll-sheet-head, .poll-lbl { color: #ECE9F5; }
  .poll-q, .poll-opt-in { background: #2A2438; color: #ECE9F5; border-color: #3A3450; }
}
