/* La carte suit les couleurs et les deux polices du thème Champimo. */
.champimo-poll {
  margin: 2rem 0; padding: clamp(1.25rem, 4vw, 2rem);
  border: 2px dashed var(--lilac-dark, #c8b6f4); border-radius: 20px 16px 22px 15px;
  background: var(--paper, #fffdf7); color: var(--text, #493e49);
  font-family: "Pimpimfont", system-ui, sans-serif;
}
.champimo-poll .champimo-poll__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.champimo-poll .champimo-poll__label { color: var(--purple-deep, #65469f); font-size: var(--t-petit, 1.15rem); }
.champimo-poll .champimo-poll__star { color: var(--purple, #8568cf); font-size: 2rem; line-height: 1; }
.champimo-poll h2.champimo-poll__question { margin: 0 0 1.25rem; padding: 0; color: var(--purple-ink, #4b325f); font: var(--t-h2, clamp(1.85rem, 3.2vw, 2.4rem))/1.25 "BBB ReadMe", system-ui, sans-serif; text-transform: none; }
.champimo-poll .champimo-poll__status { margin: .5rem 0 1.25rem; font-size: var(--t-base, 1.25rem); line-height: 1.5; }
.champimo-poll .champimo-poll__status:empty { display: none; }
.champimo-poll .champimo-poll__status.is-error { color: #8a2438; }
.champimo-poll form, .champimo-poll fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.champimo-poll .champimo-poll__choice { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .8rem 1rem; margin: .65rem 0; border: 1px solid var(--lilac-dark, #c8b6f4); border-radius: 12px; background: #fff; color: var(--text, #493e49); font-size: var(--t-content, 1.5rem); line-height: 1.4; cursor: pointer; }
.champimo-poll .champimo-poll__choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--purple-deep, #65469f); }
.champimo-poll .champimo-poll__choice:has(input:checked) { background: var(--lilac, #e3d9ff); border-color: var(--purple-deep, #65469f); }
.champimo-poll .champimo-poll__choice:hover { border-color: var(--purple-deep, #65469f); }
.champimo-poll .champimo-poll__choice span { overflow-wrap: anywhere; }
.champimo-poll .champimo-poll__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.champimo-poll .champimo-poll__actions button { min-height: 46px; padding: .7rem 1.75rem; border: 0; border-radius: 18px; background: var(--purple-btn, #7e5ec6); color: #fff; box-shadow: 0 3px 0 var(--purple-deep, #65469f); font: var(--t-base, 1.25rem)/1.4 "BBB ReadMe", system-ui, sans-serif; cursor: pointer; }
.champimo-poll .champimo-poll__actions button:hover { background: var(--purple-deep, #65469f); }
.champimo-poll :is(input,button,a):focus-visible { outline: 3px solid var(--purple-deep, #65469f); outline-offset: 4px; }
.champimo-poll h2:focus { outline: none; }
.champimo-poll fieldset:disabled { opacity: .7; }
.champimo-poll fieldset:disabled label, .champimo-poll fieldset:disabled button { cursor: default; }
.champimo-poll ul.champimo-poll__results { display: grid; gap: 1.15rem; padding: 0; margin: 1.25rem 0; list-style: none; }
.champimo-poll .champimo-poll__results li { margin: 0; padding: 0; list-style: none; }
.champimo-poll .champimo-poll__result-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--t-content, 1.5rem); }
.champimo-poll .champimo-poll__result-heading > span { overflow-wrap: anywhere; }
.champimo-poll .champimo-poll__result-heading strong { flex-shrink: 0; color: var(--purple-ink, #4b325f); }
.champimo-poll .champimo-poll__result-heading small { display: inline-block; margin-left: .4rem; padding: .15rem .4rem; background: var(--mint, #cfe8d2); color: #315b3b; border-radius: 5px; font-size: var(--t-mini, 1.05rem); }
.champimo-poll .champimo-poll__track { height: 12px; margin: .45rem 0 .15rem; border-radius: 8px; overflow: hidden; background: var(--lilac, #e3d9ff); }
.champimo-poll .champimo-poll__track > span { display: block; height: 100%; background: var(--purple, #8568cf); border-radius: inherit; }
.champimo-poll .champimo-poll__votes { font-size: var(--t-petit, 1.15rem); }
.champimo-poll .champimo-poll__total { margin: 1.25rem 0 0; font-size: var(--t-petit, 1.15rem); }
.champimo-poll--locked a { color: var(--purple-deep, #65469f); text-underline-offset: 4px; }

/* Les champs de l'éditeur gardent les composants natifs de WordPress. */
.champimo-poll-editor { padding: 24px; border: 2px dashed #c8b6f4; border-radius: 16px; background: #fffdf7; color: #493e49; font-family: system-ui, sans-serif; }
.champimo-poll-editor__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: #4b325f; font-size: 18px; }
.champimo-poll-editor__heading > span { color: #8568cf; font-size: 26px; }
.champimo-poll-editor .components-base-control { width: 100%; margin-bottom: 16px; }
.champimo-poll-editor__choice { display: flex; align-items: center; gap: 8px; }
.champimo-poll-editor__choice > .components-base-control { flex: 1; }
.champimo-poll-editor__settings { display: grid; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3d9ff; }
.champimo-poll-editor__settings .components-base-control { margin-bottom: 0; }
.champimo-poll-editor__help { margin: 0; font-size: 12px; color: #64616a; }
.champimo-poll-editor__stats { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e3d9ff; font-size: 13px; }
.champimo-poll-editor__stats-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.champimo-poll-editor__stats ul { list-style: none; margin: 12px 0 0; padding: 0; }
.champimo-poll-editor__stats li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.champimo-poll-editor .components-notice { margin: 0 0 16px; }
@media (max-width: 480px) { .champimo-poll .champimo-poll__actions { align-items: flex-start; flex-direction: column; gap: .75rem; } .champimo-poll .champimo-poll__actions button { width: 100%; } }
