/**
 * Questionnaires adaptatifs — styles front.
 * Responsive, accessibles, neutres (s'intègrent au thème).
 */

.hs-q {
	max-width: 680px;
	margin: 0 auto;
	padding: 1rem 0;
	line-height: 1.5;
}

.hs-q-notice {
	padding: .75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	border: 1px solid transparent;
}
.hs-q-error { background: #fdecea; border-color: #f5c6cb; color: #842029; }
.hs-q-success { background: #e8f5e9; border-color: #c3e6cb; color: #155724; }
.hs-q-info { background: #eef4fb; border-color: #cfe0f5; color: #0b4a75; }

.hs-q-intro { margin-bottom: 1.25rem; }

.hs-q-progress {
	height: 8px;
	background: rgba(0,0,0,.08);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: .4rem;
}
.hs-q-progress-bar {
	height: 100%;
	background: #4a7bd0;
	transition: width .3s ease;
}
.hs-q-step {
	font-size: .85rem;
	opacity: .7;
	margin: 0 0 1.25rem;
}

.hs-q-section-title { margin: 0 0 .25rem; }
.hs-q-section-desc { opacity: .8; margin: 0 0 1.25rem; }

.hs-q-field {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0,0,0,.06);
}
.hs-q-field:last-of-type { border-bottom: 0; }
.hs-q-hidden { display: none !important; }

.hs-q-label {
	display: block;
	font-weight: 600;
	margin-bottom: .5rem;
}
.hs-q-req { color: #c0392b; margin-left: .15rem; }
.hs-q-help { font-size: .85rem; opacity: .7; margin: 0 0 .6rem; }
.hs-q-info {
	font-weight: 600;
	padding: .75rem 1rem;
	background: rgba(74,123,208,.08);
	border-radius: 8px;
}

.hs-q-choices { display: flex; flex-direction: column; gap: .5rem; }
.hs-q-opt {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem .8rem;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.hs-q-opt:hover { border-color: #4a7bd0; }
.hs-q-opt input { margin: 0; }

.hs-q input[type="text"],
.hs-q input[type="number"],
.hs-q input[type="date"],
.hs-q input[type="time"],
.hs-q select,
.hs-q textarea {
	width: 100%;
	max-width: 100%;
	padding: .6rem .7rem;
	border: 1px solid rgba(0,0,0,.2);
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.hs-q-range { display: flex; align-items: center; gap: 1rem; }
.hs-q-range input[type="range"] { flex: 1; }
.hs-q-range-val {
	min-width: 2.5rem;
	text-align: center;
	font-weight: 700;
	font-size: 1.2rem;
	color: #4a7bd0;
}

.hs-q-matrix-wrap { overflow-x: auto; }
.hs-q-matrix { width: 100%; border-collapse: collapse; }
.hs-q-matrix th, .hs-q-matrix td { padding: .5rem; text-align: center; border: 1px solid rgba(0,0,0,.1); }
.hs-q-matrix th[scope="row"] { text-align: left; }

.hs-q-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}
.hs-q-nav .hs-q-btn:only-child { margin-left: auto; }

.hs-q-btn {
	display: inline-block;
	padding: .75rem 1.5rem;
	background: #4a7bd0;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, opacity .15s;
}
.hs-q-btn:hover { background: #3a68b8; color: #fff; }
.hs-q-btn.ghost { background: transparent; color: #4a7bd0; border: 1px solid #4a7bd0; }
.hs-q-btn.ghost:hover { background: rgba(74,123,208,.1); }
.hs-q-btn[disabled] { opacity: .6; cursor: default; }

.hs-q-confirmation { text-align: center; }
.hs-q-check {
	width: 64px; height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 2rem;
	line-height: 64px;
}
.hs-q-seance-card {
	display: flex;
	gap: 1rem;
	text-align: left;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 12px;
	padding: 1rem;
	margin: 1.5rem 0;
	align-items: center;
}
.hs-q-seance-thumb img { width: 120px; height: auto; border-radius: 8px; display: block; }
.hs-q-seance-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6; margin: 0 0 .25rem; }
.hs-q-seance-body h3 { margin: 0 0 .4rem; }
.hs-q-secondary { margin-top: 1.5rem; }
.hs-q-active-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* Section « Mon parcours » intégrée au tableau de bord */
.hs-parcours .hs-q { max-width: 100%; margin: 0; padding: .25rem 0; }
.hs-q-idle { opacity: .85; margin: 0 0 1rem; }
.hs-parcours form { margin: 0; }

/* Orientation post-découverte */
.hs-q-orientation { max-width: 100%; margin: 0; padding: 0; }
.hs-q-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.hs-q-program-card { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.hs-q-program-card h4 { margin: 0 0 .4rem; }
.hs-q-program-card p { flex: 1; opacity: .8; }
.hs-q-program-card .hs-q-btn { margin-top: .6rem; text-align: center; }

@media (max-width: 520px) {
	.hs-q-seance-card { flex-direction: column; text-align: center; }
	.hs-q-seance-thumb img { width: 100%; }
	.hs-q-nav { flex-direction: column-reverse; }
	.hs-q-nav .hs-q-btn { width: 100%; }
}

