/* GastrHôtel Baromètre — questionnaire public (mobile d'abord). */

.ghb {
	--ghb-green: #1c4b42;
	--ghb-green-dark: #143730;
	--ghb-lime: #b4e717;
	--ghb-ink: #1d2725;
	--ghb-muted: #56635f;
	--ghb-line: #cfd8d5;
	--ghb-soft: #f3f6f5;
	--ghb-error: #b3261e;
	--ghb-radius: 10px;

	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px;
	color: var(--ghb-ink);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.5;
	text-align: left;
}

.ghb *,
.ghb *::before,
.ghb *::after {
	box-sizing: border-box;
}

.ghb [hidden] {
	display: none !important;
}

.ghb a {
	color: var(--ghb-green);
	text-decoration: underline;
}

.ghb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Introduction */
.ghb-intro__facts {
	list-style: none;
	margin: 16px 0;
	padding: 14px 16px;
	background: var(--ghb-soft);
	border-radius: var(--ghb-radius);
}

.ghb-intro__facts li {
	margin: 0;
	padding: 3px 0;
}

.ghb-intro__privacy,
.ghb-done__small {
	font-size: 15px;
	color: var(--ghb-muted);
}

/* Progression */
.ghb-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0 -16px 20px;
	padding: 10px 16px 12px;
	background: #fff;
	border-bottom: 1px solid var(--ghb-line);
}

.ghb-progress__label {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	margin: 0 0 8px;
	font-size: 15px;
}

.ghb-progress__step {
	font-weight: 700;
	color: var(--ghb-green);
}

.ghb-progress__title {
	color: var(--ghb-muted);
}

.ghb-progress__track {
	height: 8px;
	background: #e3e9e7;
	border-radius: 4px;
	overflow: hidden;
}

.ghb-progress__bar {
	height: 100%;
	width: 10%;
	background: var(--ghb-green);
	border-radius: 4px;
	transition: width 0.25s ease;
}

/* Étapes et questions */
.ghb-step__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ghb-green);
	outline: none;
}

.ghb-step__intro {
	margin: 0 0 22px;
	color: var(--ghb-muted);
}

.ghb-q {
	min-width: 0;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

.ghb-q__label {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.ghb-q__code {
	display: none;
}

.ghb-q__req {
	color: var(--ghb-error);
}

.ghb-q__opt {
	font-weight: 400;
	color: var(--ghb-muted);
}

.ghb-q__hint {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--ghb-muted);
}

.ghb-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

/* Grandes zones tactiles : toute la ligne est cliquable. */
.ghb-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	background: #fff;
	border: 1.5px solid var(--ghb-line);
	border-radius: var(--ghb-radius);
	cursor: pointer;
	font-weight: 400;
}

.ghb-opt input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ghb-green);
}

.ghb-opt:has(input:checked) {
	border-color: var(--ghb-green);
	background: #eef5f2;
	box-shadow: inset 0 0 0 1px var(--ghb-green);
}

.ghb-opt:has(input:focus-visible) {
	outline: 3px solid var(--ghb-lime);
	outline-offset: 2px;
}

.ghb-opt:has(input:disabled) {
	opacity: 0.5;
	cursor: not-allowed;
}

.ghb-select,
.ghb-textarea {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	color: var(--ghb-ink);
	background: #fff;
	border: 1.5px solid var(--ghb-line);
	border-radius: var(--ghb-radius);
	font: inherit;
	font-size: 17px; /* ≥ 16px : évite le zoom automatique sur iOS. */
}

.ghb-select:focus-visible,
.ghb-textarea:focus-visible,
.ghb-btn:focus-visible {
	outline: 3px solid var(--ghb-lime);
	outline-offset: 2px;
	border-color: var(--ghb-green);
}

.ghb-q__counter {
	margin: 4px 0 0;
	font-size: 14px;
	text-align: right;
	color: var(--ghb-muted);
}

.ghb-q__error {
	margin: 8px 0 0;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ghb-error);
	background: #fdecea;
	border-left: 4px solid var(--ghb-error);
	border-radius: 4px;
}

.ghb-q--invalid .ghb-opt,
.ghb-q--invalid .ghb-select,
.ghb-q--invalid .ghb-textarea {
	border-color: var(--ghb-error);
}

.ghb-required-note {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--ghb-muted);
}

/* Précision de l'option « Autre » */
.ghb-other {
	margin: -2px 0 4px;
	padding: 0 0 0 14px;
	border-left: 3px solid var(--ghb-green);
}

.ghb-other__label {
	display: block;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

/* Coordonnées facultatives (fin du questionnaire) */
.ghb-contact {
	min-width: 0;
	margin: 0 0 24px;
	padding: 20px 0 0;
	border: 0;
	border-top: 1px solid var(--ghb-line);
}

.ghb-field__hint {
	margin: -8px 0 14px;
	font-size: 14px;
	color: var(--ghb-muted);
}

.ghb-contact__fields {
	margin-top: 12px;
	padding: 16px;
	background: var(--ghb-soft);
	border-radius: var(--ghb-radius);
}

.ghb-field {
	margin: 0 0 14px;
}

.ghb-field__label {
	display: block;
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
}

.ghb-input {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	color: var(--ghb-ink);
	background: #fff;
	border: 1.5px solid var(--ghb-line);
	border-radius: var(--ghb-radius);
	font: inherit;
	font-size: 17px; /* ≥ 16px : évite le zoom automatique sur iOS. */
}

.ghb-input:focus-visible {
	outline: 3px solid var(--ghb-lime);
	outline-offset: 2px;
	border-color: var(--ghb-green);
}

.ghb-field--invalid .ghb-input {
	border-color: var(--ghb-error);
}

.ghb-contact__note {
	margin: 0;
	font-size: 14px;
	color: var(--ghb-muted);
}

/* Messages */
.ghb-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--ghb-radius);
	font-size: 15px;
}

.ghb-notice p {
	margin: 0;
}

.ghb-notice--info {
	background: var(--ghb-soft);
	border: 1px solid var(--ghb-line);
}

.ghb-notice--warn,
.ghb-form__status {
	background: #fdecea;
	border: 1px solid #f1b9b4;
	color: #7a1a14;
}

.ghb-form__status {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var(--ghb-radius);
	font-weight: 600;
}

/* Champ piège anti-robots : hors écran, jamais visible. */
.ghb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Boutons */
.ghb-nav {
	display: flex;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--ghb-line);
}

.ghb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid var(--ghb-green);
	border-radius: var(--ghb-radius);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.ghb .ghb-btn--primary {
	flex: 1 1 auto;
	color: #fff !important;
	background: var(--ghb-green) !important;
	border-color: var(--ghb-green) !important;
}

.ghb .ghb-btn--primary:hover {
	background: var(--ghb-green-dark) !important;
}

/* « Précédent » : blanc sur vert, imposé pour ne pas dépendre des styles de bouton du thème. */
.ghb .ghb-btn--ghost,
.ghb .ghb-btn--ghost:hover,
.ghb .ghb-btn--ghost:focus {
	color: #fff !important;
	background: var(--ghb-green) !important;
	border-color: var(--ghb-green) !important;
}

.ghb .ghb-btn--ghost:hover {
	background: var(--ghb-green-dark) !important;
}

.ghb-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.ghb-intro .ghb-btn {
	width: 100%;
}

/* Confirmation */
.ghb-done {
	padding: 24px 20px;
	background: var(--ghb-soft);
	border-radius: var(--ghb-radius);
	border-left: 6px solid var(--ghb-lime);
}

.ghb-done__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ghb-green);
	outline: none;
}

.ghb-done__copy {
	font-weight: 600;
}

@media (min-width: 600px) {
	.ghb {
		padding: 24px;
	}

	.ghb-progress {
		margin: 0 0 24px;
		padding: 12px 0 14px;
	}

	.ghb-intro .ghb-btn {
		width: auto;
	}

	.ghb-nav {
		justify-content: space-between;
	}

	.ghb-btn--primary {
		flex: 0 0 auto;
		min-width: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghb-progress__bar {
		transition: none;
	}
}
