/**
 * "Sondage" — vote form (shortcode/sidebar) and launch popup styling.
 * Reuses the theme's .btn/.btn-primary classes for the submit button.
 */
.ae-poll {
	max-width: 480px;
}

.ae-poll-title {
	margin-bottom: 12px;
}

.ae-poll-question-block {
	margin-bottom: 20px;
}

.ae-poll-question-label {
	font-weight: 700;
	margin-bottom: 8px;
}

.ae-poll-answer-text {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border, #e2e2e2);
	border-radius: var(--radius-sm, 8px);
	font-family: inherit;
	resize: vertical;
}

.ae-poll-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.ae-poll-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--color-border, #e2e2e2);
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
}

.ae-poll-option:hover {
	border-color: var(--color-primary, #1B5F6F);
}

.ae-poll-message {
	margin-top: 12px;
}

.ae-poll-message.is-error {
	color: #a00;
}

.ae-poll-message.is-success {
	color: #1a7a1a;
}

/* Launch popup: same overlay pattern as the "Boîte à idées" popup. */
.ae-poll-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(17, 24, 39, 0.6);
}

.ae-poll-popup-overlay[hidden] {
	display: none;
}

.ae-poll-popup {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	background-color: #fff;
	border-radius: var(--radius-md, 12px);
	padding: 40px 32px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ae-poll-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.ae-poll-popup-close:hover,
.ae-poll-popup-close:focus-visible {
	background-color: #f1f1f1;
	outline: none;
}

body.ae-poll-popup-open {
	overflow: hidden;
}
