/*
 * Sondages : code court [el_sondage] (includes/sondages-affichage.php).
 * Carte blanche à liseré violet, couleurs et graisses de la charte (variables du thème enfant).
 */
.el-sondage{margin:24px 0;padding:clamp(20px,3vw,32px);border:1px solid var(--filet);border-top:4px solid var(--violet);border-radius:16px;background:var(--blanc);color:var(--bleu-nuit)}
.el-sondage-surtitre{margin:0 0 6px;font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:var(--violet)}
body.oceanwp-theme .el-sondage .el-sondage-titre{margin:0 0 16px;font-size:clamp(19px,1.8vw,22px);font-weight:800;line-height:1.3;color:var(--bleu-nuit)}
.el-sondage-question{margin:0 0 20px;padding:0;border:0}
.el-sondage-question legend{margin:0 0 8px;padding:0;font-size:16px;font-weight:600;line-height:1.5}
.el-sondage-choix{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:0 0 4px;padding:10px 14px;border:1px solid var(--filet);border-radius:12px;font-size:16px;line-height:1.5;cursor:pointer}
.el-sondage-choix:hover{border-color:var(--violet)}
.el-sondage-choix input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--violet)}
.el-sondage-choix:has(input:checked){border-color:var(--violet);background:color-mix(in srgb,var(--violet) 6%,var(--blanc))}
.el-sondage-choix:has(input:focus-visible){outline:3px solid var(--violet);outline-offset:2px}
.el-sondage textarea{width:100%;padding:10px 14px;border:1px solid var(--filet);border-radius:12px;font-family:var(--el-font);font-size:16px;line-height:1.6;color:var(--bleu-nuit)}
.el-sondage textarea:focus-visible{outline:3px solid var(--violet);outline-offset:1px;border-color:var(--violet)}
.el-sondage-aide,.el-sondage-note{margin:4px 0 12px;font-size:14px;line-height:1.6}
.el-sondage-message{margin:0 0 16px;padding:12px 16px;border-left:4px solid var(--violet);border-radius:8px;background:var(--ivoire);font-size:15px;line-height:1.6}
.el-sondage-message--erreur{border-left-color:var(--magenta)}
.el-sondage-message--ok{border-left-color:var(--turquoise)}
body.oceanwp-theme .el-sondage .el-sondage-bouton{display:inline-flex;align-items:center;min-height:48px;padding:10px 22px;border:2px solid var(--violet);border-radius:12px;background:var(--violet);font-family:var(--el-font);font-size:15px;font-weight:600;line-height:1.3;color:var(--blanc);text-decoration:none;cursor:pointer}
body.oceanwp-theme .el-sondage .el-sondage-bouton:hover{border-color:var(--bleu-nuit);background:var(--bleu-nuit);color:var(--blanc)}
body.oceanwp-theme .el-sondage .el-sondage-bouton:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
/* Résultats : pourcentage écrit, barre décorative */
.el-sondage-total{margin:0 0 12px;font-size:14px;font-weight:600}
.el-sondage-q{margin:16px 0 8px;font-weight:600}
.el-sondage-barres{margin:0;padding:0;list-style:none}
.el-sondage-barres li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:0 0 10px;font-size:15px;line-height:1.5}
.el-sondage-pct{font-weight:600}
.el-sondage-barre{grid-column:1/-1;height:10px;border-radius:5px;background:color-mix(in srgb,var(--bleu-nuit) 8%,var(--blanc));overflow:hidden}
.el-sondage-barre span{display:block;height:100%;border-radius:5px;background:var(--violet)}
