/* ==========================================================================
   VNS Vote Électronique — Styles frontend
   ========================================================================== */

.vns-vote-wrap {
	max-width: 680px;
	margin: 2rem auto;
	font-family: inherit;
}

.vns-scrutin-title {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Boîtes d'état
   -------------------------------------------------------------------------- */
.vns-box {
	padding: 1.25rem 1.5rem;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fafafa;
	margin-bottom: 1.5rem;
}

.vns-error {
	border-color: #c0392b;
	background: #fdf0ef;
	color: #c0392b;
}

.vns-success {
	border-color: #27ae60;
	background: #eafaf1;
	color: #1e8449;
}

/* --------------------------------------------------------------------------
   Étapes (step)
   -------------------------------------------------------------------------- */
.vns-step {
	display: none;
}

.vns-step--active {
	display: block;
}

.vns-step-counter {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vns-point-title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Réponses (radio buttons)
   -------------------------------------------------------------------------- */
.vns-reponses {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.vns-reponse-item {
	margin-bottom: 0.6rem;
}

.vns-reponse-item label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	font-size: 1rem;
}

.vns-reponse-item label:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.vns-reponse-item input[type="radio"] {
	accent-color: #2271b1;
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

.vns-reponse-item input[type="radio"]:checked + span,
.vns-reponse-item label:has(input[type="radio"]:checked) {
	border-color: #2271b1;
	background: #e8f0fb;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Navigation (boutons)
   -------------------------------------------------------------------------- */
.vns-step-nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.vns-btn {
	display: inline-block;
	padding: 0.65rem 1.4rem;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.vns-btn--prev {
	background: #f0f0f0;
	color: #333;
}

.vns-btn--prev:hover {
	background: #ddd;
}

.vns-btn--next {
	background: #2271b1;
	color: #fff;
	margin-left: auto;
}

.vns-btn--next:hover {
	background: #135e96;
}

.vns-btn--submit {
	background: #1d8348;
	color: #fff;
	margin-left: auto;
}

.vns-btn--submit:hover {
	background: #145a32;
}

/* --------------------------------------------------------------------------
   Barre de progression
   -------------------------------------------------------------------------- */
.vns-progress-bar {
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.vns-progress-bar__fill {
	height: 100%;
	background: #2271b1;
	transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   Message d'erreur de validation
   -------------------------------------------------------------------------- */
.vns-validation-msg {
	color: #c0392b;
	font-size: 0.9rem;
	margin-top: 0.5rem;
	display: none;
}
