/**
 * Styles du quiz public PSO Académie.
 * Palette : orange #FF9900 + beige #FFF1DD (validés par Marvin 2026-04-28).
 */

:root {
	--psoa-orange: #FF9900;
	--psoa-orange-dark: #E68A00;
	--psoa-beige: #FFF1DD;
	--psoa-text: #1F2937;
	--psoa-muted: #6B7280;
	--psoa-border: #E5E7EB;
	--psoa-bg: #FAFAFA;
	--psoa-error: #DC2626;
	--psoa-success: #16A34A;
	--psoa-radius: 12px;
}

.psoa-quiz {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: var(--psoa-text);
	line-height: 1.55;
}

/* Force hidden : certains thèmes WP overridden l'attribut HTML5 [hidden] avec
   display: block sur les <section>. On verrouille avec !important + classe. */
.psoa-quiz .psoa-screen[hidden],
.psoa-quiz .psoa-hidden { display: none !important; }

.psoa-screen { animation: psoa-fade .25s ease-out; }
@keyframes psoa-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.psoa-card {
	background: #fff;
	border: 1px solid var(--psoa-border);
	border-radius: var(--psoa-radius);
	padding: 32px;
	box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.psoa-card-thanks { text-align: center; background: var(--psoa-beige); border-color: var(--psoa-orange); }

.psoa-title { font-size: 1.6rem; margin: 0 0 12px; font-weight: 700; }
.psoa-lead { color: var(--psoa-muted); margin: 0 0 20px; }

.psoa-bullets { list-style: none; padding: 0; margin: 24px 0; }
.psoa-bullets li { padding: 8px 0; color: var(--psoa-text); }

/* === Progress === */
.psoa-progress { margin-bottom: 16px; }
.psoa-progress-bar {
	height: 6px;
	background: var(--psoa-beige);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}
.psoa-progress-fill {
	display: block;
	height: 100%;
	background: var(--psoa-orange);
	transition: width .3s ease;
}
.psoa-progress-text {
	font-size: .85rem;
	color: var(--psoa-muted);
	margin: 0;
	text-align: right;
}

/* === Question === */
.psoa-dimension {
	display: inline-block;
	background: var(--psoa-beige);
	color: var(--psoa-orange-dark);
	padding: 4px 12px;
	border-radius: 99px;
	font-size: .8rem;
	font-weight: 600;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.psoa-question { font-size: 1.25rem; margin: 0 0 24px; line-height: 1.4; }

.psoa-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.psoa-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid var(--psoa-border);
	border-radius: var(--psoa-radius);
	background: #fff;
	cursor: pointer;
	transition: all .15s ease;
	text-align: left;
	font: inherit;
	color: inherit;
	width: 100%;
}
.psoa-choice:hover { border-color: var(--psoa-orange); background: var(--psoa-beige); }
.psoa-choice[aria-checked="true"] {
	border-color: var(--psoa-orange);
	background: var(--psoa-beige);
	box-shadow: 0 0 0 3px rgba(255,153,0,.15);
}
.psoa-choice-bullet {
	width: 20px; height: 20px;
	border-radius: 50%;
	border: 2px solid var(--psoa-border);
	flex-shrink: 0;
	position: relative;
}
.psoa-choice[aria-checked="true"] .psoa-choice-bullet {
	border-color: var(--psoa-orange);
	background: var(--psoa-orange);
}
.psoa-choice[aria-checked="true"] .psoa-choice-bullet::after {
	content: "";
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 8px; height: 8px;
	background: #fff;
	border-radius: 50%;
}

/* === Actions === */
.psoa-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.psoa-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--psoa-radius);
	border: 2px solid transparent;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
	transition: all .15s ease;
	font-family: inherit;
}
.psoa-btn-primary {
	background: var(--psoa-orange);
	color: #fff;
}
.psoa-btn-primary:hover { background: var(--psoa-orange-dark); }
.psoa-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.psoa-btn-ghost {
	background: transparent;
	border-color: var(--psoa-border);
	color: var(--psoa-muted);
}
.psoa-btn-ghost:hover { border-color: var(--psoa-muted); color: var(--psoa-text); }
.psoa-btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.psoa-btn-lg { padding: 16px 32px; font-size: 1.1rem; width: 100%; }

/* === Form === */
.psoa-form { display: flex; flex-direction: column; gap: 16px; }
.psoa-field { display: flex; flex-direction: column; gap: 6px; }
.psoa-field label { font-weight: 600; font-size: .9rem; }
.psoa-field input,
.psoa-field select {
	padding: 12px 14px;
	border: 2px solid var(--psoa-border);
	border-radius: var(--psoa-radius);
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color .15s ease;
}
.psoa-field input:focus,
.psoa-field select:focus { outline: none; border-color: var(--psoa-orange); }

.psoa-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.psoa-rgpd { font-size: .8rem; color: var(--psoa-muted); margin: 8px 0 0; }
.psoa-error {
	color: var(--psoa-error);
	font-size: .9rem;
	margin: 8px 0 0;
	padding: 8px 12px;
	background: #FEF2F2;
	border-radius: 8px;
}

/* === Thanks === */
.psoa-check {
	width: 64px; height: 64px;
	margin: 0 auto 16px;
	background: var(--psoa-orange);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
}

@media (max-width: 600px) {
	.psoa-card { padding: 20px; }
	.psoa-title { font-size: 1.35rem; }
	.psoa-question { font-size: 1.1rem; }
	.psoa-actions { flex-direction: column-reverse; }
	.psoa-btn { width: 100%; }
}
