/* Pix'Up Questionnaire : style façon Typeform. Toutes les classes sont préfixées .pxq- */

.pxq-root {
	--pxq-primary: var(--wp--preset--color--primary, #4f46e5);
	--pxq-on-primary: #fff;
	--pxq-text: var(--wp--preset--color--contrast, #111827);
	--pxq-bg: var(--wp--preset--color--base, #fff);
	--pxq-muted: #6b7280;
	--pxq-line: rgba(17, 24, 39, 0.18);
	--pxq-tint: rgba(79, 70, 229, 0.08);
	--pxq-danger: #b42318;
	--pxq-radius: 12px;
	--pxq-font: var(--wp--preset--font-family--body, inherit);
	--pxq-font-heading: var(--wp--preset--font-family--heading, var(--pxq-font));

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	font-family: var(--pxq-font);
	color: var(--pxq-text);
	overflow-wrap: anywhere;
}

@supports (color: color-mix(in srgb, red 10%, transparent)) {
	.pxq-root {
		--pxq-muted: color-mix(in srgb, var(--pxq-text) 62%, transparent);
		--pxq-line: color-mix(in srgb, var(--pxq-text) 20%, transparent);
		--pxq-tint: color-mix(in srgb, var(--pxq-primary) 9%, transparent);
	}
}

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

.pxq-root [hidden] {
	display: none !important;
}

/* Mise en page : fondue dans la page (pas de cadre), photo à droite sur grand écran */
.pxq-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	width: 100%;
	min-height: min(78vh, 680px);
	padding-block: clamp(1rem, 3vw, 2.5rem);
}

/* Le gabarit de page est étroit : sur grand écran le formulaire déborde jusqu'à 72rem, centré.
   Sélecteur renforcé + !important : la mise en page « constrained » de WordPress impose ses marges en !important. */
@media (min-width: 900px) {
	div.pxq-root.pxq-root {
		--pxq-wide: min(72rem, 100vw - 4rem);
		width: var(--pxq-wide);
		max-width: none;
		margin-left: calc(50% - var(--pxq-wide) / 2) !important;
		margin-right: calc(50% - var(--pxq-wide) / 2) !important;
	}
}

.pxq-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

@media (min-width: 900px) {
	.pxq-card {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
		align-items: center;
	}
}

/* Icônes */
.pxq-icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
}

.pxq-icon-tile {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 14px;
	background: var(--pxq-tint);
	color: var(--pxq-primary);
}

.pxq-icon-tile .pxq-icon {
	width: 1.4rem;
	height: 1.4rem;
}

/* Photo d'ambiance */
.pxq-visual {
	position: relative;
	display: none;
	margin: 0;
}

.pxq-visual::before {
	content: "";
	position: absolute;
	inset: 8% -6% -5% 10%;
	border-radius: 32px;
	background: var(--pxq-tint);
	transform: rotate(3deg);
	z-index: 0;
}

.pxq-visual-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	background: var(--pxq-bg);
	box-shadow: 0 24px 60px -28px rgba(17, 24, 39, 0.45);
}

.pxq-visual-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.05);
	transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.pxq-visual-img.pxq-visual-on {
	opacity: 1;
	transform: none;
}

.pxq-visual-caption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: calc(100% - 2rem);
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #111827;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 6px 20px -8px rgba(17, 24, 39, 0.35);
	backdrop-filter: blur(6px);
}

.pxq-visual-caption .pxq-icon {
	color: var(--pxq-primary);
}

.pxq-visual-caption:empty {
	display: none;
}

@media (min-width: 900px) {
	.pxq-visual {
		display: block;
		position: sticky;
		top: 6rem;
	}
}

/* Petit écran : la photo n'apparaît qu'à l'accueil et à la fin, en bandeau */
@media (max-width: 899px) {
	.pxq-is-intro .pxq-visual,
	.pxq-is-done .pxq-visual {
		display: block;
		order: -1;
	}

	.pxq-visual::before {
		display: none;
	}

	.pxq-visual-frame {
		aspect-ratio: 16 / 10;
		border-radius: 20px;
	}

	.pxq-visual-caption {
		display: none;
	}
}

.pxq-card-state {
	justify-content: center;
	padding: clamp(1.25rem, 5vw, 3rem);
	min-height: 0;
}

.pxq-loading,
.pxq-noscript {
	margin: 0;
	padding: 1.5rem 0;
	color: var(--pxq-muted);
}

/* Progression */
.pxq-progress {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--pxq-tint);
}

.pxq-is-intro .pxq-bar,
.pxq-is-done .pxq-bar {
	display: none;
}

.pxq-progress-bar {
	--pxq-progress: 0;
	height: 100%;
	background: var(--pxq-primary);
	transform-origin: left center;
	transform: scaleX(var(--pxq-progress));
	border-radius: inherit;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pxq-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 2.75rem;
	max-width: 40rem;
}

.pxq-back {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 8px;
	padding: 0.5rem 0.25rem;
	min-height: 44px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--pxq-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.pxq-back[hidden] + .pxq-progress {
	margin-left: 0;
}

.pxq-back:hover {
	color: var(--pxq-primary);
}

.pxq-counter {
	font-size: 0.875rem;
	color: var(--pxq-muted);
	font-variant-numeric: tabular-nums;
}

/* Scène : tous les écrans occupent la même cellule pour fondre l'un dans l'autre */
.pxq-stage {
	display: grid;
	flex: 1;
	padding: 1rem 0 clamp(1rem, 3vw, 2rem);
	align-items: center;
	overflow: clip;
	overflow-clip-margin: 1rem;
}

.pxq-screen {
	grid-area: 1 / 1;
	width: 100%;
	max-width: 40rem;
	margin: 0;
	padding: 6px;
	min-width: 0;
}

/* L'écran suivant n'apparaît qu'une fois le précédent effacé : jamais deux questions superposées */
.pxq-in-next {
	animation: pxq-in-next 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.pxq-in-back {
	animation: pxq-in-back 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.pxq-out-next {
	animation: pxq-out-next 0.18s ease-in both;
	pointer-events: none;
}

.pxq-out-back {
	animation: pxq-out-back 0.18s ease-in both;
	pointer-events: none;
}

.pxq-shake {
	animation: pxq-shake 0.32s ease;
}

@keyframes pxq-in-next {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: none; }
}

@keyframes pxq-in-back {
	from { opacity: 0; transform: translateY(-28px); }
	to { opacity: 1; transform: none; }
}

@keyframes pxq-out-next {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(-28px); }
}

@keyframes pxq-out-back {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(28px); }
}

@keyframes pxq-shake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

/* Textes */
.pxq-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1.25rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: var(--pxq-tint);
	color: var(--pxq-primary);
	font-size: 0.875rem;
	font-weight: 600;
}

.pxq-head {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
}

.pxq-head-icon {
	align-items: center;
	gap: 0.85rem;
}

.pxq-num {
	flex: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--pxq-primary);
}

.pxq-title {
	margin: 0;
	font-family: var(--pxq-font-heading);
	font-size: clamp(1.45rem, 1rem + 2.4vw, 2.1rem);
	line-height: 1.2;
	font-weight: 700;
	color: var(--pxq-text);
}

.pxq-title:focus {
	outline: none;
}

.pxq-help,
.pxq-lead {
	margin: 0.6rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--pxq-muted);
	white-space: pre-line;
}

.pxq-lead {
	margin-top: 1rem;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
}

.pxq-optional {
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	color: var(--pxq-muted);
}

.pxq-screen > .pxq-head + .pxq-options,
.pxq-screen > .pxq-head + .pxq-input,
.pxq-screen > .pxq-head + .pxq-textarea,
.pxq-screen > .pxq-head + .pxq-fields,
.pxq-screen > .pxq-head + .pxq-consent,
.pxq-screen > .pxq-head + .pxq-scale {
	margin-top: 1.5rem;
}

.pxq-help ~ .pxq-options,
.pxq-help ~ .pxq-input,
.pxq-help ~ .pxq-textarea,
.pxq-help ~ .pxq-fields,
.pxq-help ~ .pxq-consent,
.pxq-help ~ .pxq-scale,
.pxq-optional ~ .pxq-options,
.pxq-optional ~ .pxq-input,
.pxq-optional ~ .pxq-textarea,
.pxq-optional ~ .pxq-scale {
	margin-top: 1.5rem;
}

.pxq-optional ~ .pxq-help {
	margin-top: 0.25rem;
}

/* Accessibilité : contrôle natif masqué mais focusable */
.pxq-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Boîtes de choix */
.pxq-options {
	display: grid;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.pxq-option,
.pxq-scale-item,
.pxq-consent {
	position: relative;
	display: block;
	cursor: pointer;
}

.pxq-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.7rem 0.95rem;
	background: var(--pxq-bg);
	border: 1.5px solid var(--pxq-line);
	border-radius: var(--pxq-radius);
	font-size: 1.0625rem;
	line-height: 1.35;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pxq-option:hover .pxq-box,
.pxq-scale-item:hover .pxq-box,
.pxq-consent:hover .pxq-box {
	border-color: var(--pxq-primary);
	background: var(--pxq-tint);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -14px rgba(17, 24, 39, 0.45);
}

/* Choix du métier : cartes avec icône */
.pxq-options-cards {
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 0.75rem;
}

.pxq-options-cards .pxq-box {
	min-height: 4.75rem;
	padding: 0.85rem 1rem;
	font-size: 1rem;
}

.pxq-options-cards .pxq-key {
	order: 3;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.75rem;
}

.pxq-options-cards .pxq-tick {
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
}

.pxq-options-cards .pxq-sr:checked + .pxq-box .pxq-key {
	display: none;
}

.pxq-sr:checked + .pxq-box .pxq-icon-tile {
	background: var(--pxq-primary);
	color: var(--pxq-on-primary);
}

.pxq-option:active .pxq-box {
	transform: scale(0.99);
}

.pxq-key {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1.5px solid var(--pxq-line);
	border-radius: 6px;
	background: var(--pxq-bg);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--pxq-muted);
}

.pxq-option-text {
	flex: 1;
	min-width: 0;
}

.pxq-tick {
	flex: none;
	opacity: 0;
	font-weight: 700;
	color: var(--pxq-primary);
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.pxq-sr:checked + .pxq-box {
	border-color: var(--pxq-primary);
	background: var(--pxq-tint);
	box-shadow: inset 0 0 0 1px var(--pxq-primary);
}

.pxq-sr:checked + .pxq-box .pxq-key {
	background: var(--pxq-primary);
	border-color: var(--pxq-primary);
	color: var(--pxq-on-primary);
}

.pxq-sr:checked + .pxq-box .pxq-tick {
	opacity: 1;
	transform: none;
}

/* Champ « Autre… » */
.pxq-other {
	margin: -0.1rem 0 0.1rem 2.5rem;
}

/* Échelle */
.pxq-scale {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(2.75rem, 1fr));
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.pxq-scale-box {
	justify-content: center;
	padding: 0.65rem 0;
	font-weight: 700;
}

.pxq-scale-labels {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.6rem;
	font-size: 0.875rem;
	color: var(--pxq-muted);
}

/* Champs texte */
.pxq-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.6rem 0.1rem;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--pxq-line);
	border-radius: 0;
	font: inherit;
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--pxq-text);
	transition: border-color 0.15s ease;
}

.pxq-input-big,
.pxq-textarea {
	font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem);
}

.pxq-textarea {
	min-height: 7rem;
	resize: vertical;
}

.pxq-input::placeholder {
	color: var(--pxq-muted);
	opacity: 0.7;
}

.pxq-input:focus {
	outline: none;
	border-bottom-color: var(--pxq-primary);
}

.pxq-input:focus-visible {
	outline: 3px solid var(--pxq-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

.pxq-input[aria-invalid="true"] {
	border-bottom-color: var(--pxq-danger);
}

.pxq-subhint {
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	color: var(--pxq-muted);
}

.pxq-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.pxq-field-main {
	grid-column: 1 / -1;
}

.pxq-label {
	display: block;
	margin-bottom: 0.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pxq-muted);
}

.pxq-field .pxq-input {
	font-size: 1.05rem;
}

/* Pot de miel : hors écran, jamais atteignable au clavier */
.pxq-hp-wrap {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pxq-hp {
	width: 1px;
	height: 1px;
}

/* Consentement */
.pxq-consent .pxq-box {
	align-items: flex-start;
}

.pxq-box-check {
	flex: none;
	width: 2.25rem;
	min-height: 2.25rem;
	padding: 0;
	justify-content: center;
	background: var(--pxq-bg);
}

.pxq-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.pxq-consent-text {
	flex: 1;
	font-size: 0.975rem;
	line-height: 1.5;
	white-space: pre-line;
}

/* Erreurs */
.pxq-error {
	min-height: 1.4rem;
	margin: 1rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--pxq-danger);
}

/* Actions */
.pxq-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 0.75rem;
}

.pxq-lead + .pxq-actions {
	margin-top: 1.75rem;
}

.pxq-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.6rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--pxq-radius);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	gap: 0.5rem;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.pxq-btn .pxq-icon {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.15s ease;
}

.pxq-btn-primary:hover .pxq-icon {
	transform: translateX(2px);
}

.pxq-btn-primary {
	background: var(--pxq-primary);
	color: var(--pxq-on-primary);
}

.pxq-btn-primary:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -12px var(--pxq-primary);
}

.pxq-btn-primary:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.pxq-btn-big {
	min-height: 52px;
	padding: 0.75rem 1.9rem;
	font-size: 1.15rem;
}

.pxq-hint {
	font-size: 0.8125rem;
	color: var(--pxq-muted);
}

/* Fin */
.pxq-done-icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--pxq-primary);
	color: var(--pxq-on-primary);
	font-size: 1.75rem;
	font-weight: 700;
	box-shadow: 0 0 0 10px var(--pxq-tint);
	animation: pxq-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pxq-pop {
	from { transform: scale(0.4); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* Focus clavier visible partout */
.pxq-root :focus-visible {
	outline: 3px solid var(--pxq-primary);
	outline-offset: 2px;
}

.pxq-root .pxq-title:focus-visible {
	outline: none;
}

.pxq-sr:focus-visible + .pxq-box {
	outline: 3px solid var(--pxq-primary);
	outline-offset: 2px;
}

.pxq-sr:focus-visible {
	outline: none;
}

/* Écrans tactiles : pas d'indication clavier */
@media (hover: none) {
	.pxq-hint,
	.pxq-subhint {
		display: none;
	}

	.pxq-key {
		display: none;
	}
}

/* Petits écrans (360 px) */
@media (max-width: 540px) {
	.pxq-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.pxq-card {
		min-height: 0;
		gap: 1.25rem;
	}

	.pxq-options-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.pxq-options-cards .pxq-box {
		min-height: 3.75rem;
	}

	.pxq-other {
		margin-left: 0;
	}

	.pxq-actions .pxq-btn-primary {
		flex: 1 1 100%;
	}

	.pxq-scale {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Mouvement réduit : plus aucune animation */
@media (prefers-reduced-motion: reduce) {
	.pxq-root *,
	.pxq-root *::before,
	.pxq-root *::after {
		animation: none !important;
		transition: none !important;
	}
}
/* Rendez-vous Rendly qui vient d'être pris (1.2.0) */
div.pxq-root.pxq-root .pxq-booked{margin:0 0 18px;padding:14px 16px;border-radius:14px;background:color-mix(in srgb,var(--wp--preset--color--primary,#005cff) 9%,transparent);border-left:4px solid var(--wp--preset--color--primary,#005cff);font-size:.95rem;line-height:1.5}

/* ---------- 1.3.0 (BUGOO #290–#299) ---------- */

/* Mots clés des réponses en gras ; le thème surligne <strong>/<b> : on neutralise */
.pxq-root .pxq-em {
	font-weight: 700;
	background: none;
	text-decoration: none;
	color: inherit;
	padding: 0;
	box-shadow: none;
}

/* Cartes du métier : interligne plus serré */
.pxq-options-cards .pxq-option-text {
	line-height: 1.22;
}

/* « Autre activité » : le champ se remplit sur la carte, sur toute la largeur de la grille */
.pxq-options-cards .pxq-inline-field {
	grid-column: 1 / -1;
	margin: 0;
}

/* Case de consentement : coche centrée dans la case */
.pxq-consent .pxq-box.pxq-box-check {
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	min-height: 0;
}

.pxq-box-check .pxq-tick {
	display: grid;
	place-items: center;
	line-height: 0;
}

.pxq-box-check .pxq-tick .pxq-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

/* Barre de progression : même hauteur d'une question à l'autre, et collée sous le menu au défilement */
.pxq-bar {
	position: sticky;
	top: var(--pxq-sticky-top, 6.5rem);
	z-index: 3;
	background: var(--pxq-bg);
	padding-block: 0.6rem;
}

@media (min-width: 900px) {
	.pxq-root:not(.pxq-is-intro):not(.pxq-is-done) .pxq-card {
		align-items: start;
	}
}

@media (max-width: 899px) {
	.pxq-bar {
		top: var(--pxq-sticky-top-sm, 5rem);
	}
}

/* Photo de côté : lent mouvement de caméra (zoom + glissé), sens alterné à chaque photo */
@keyframes pxq-drift {
	from { transform: scale(1.03) translate3d(0, 0, 0); }
	to { transform: scale(1.14) translate3d(-3%, -2.5%, 0); }
}

@keyframes pxq-drift-alt {
	from { transform: scale(1.14) translate3d(3%, -2%, 0); }
	to { transform: scale(1.03) translate3d(0, 1.5%, 0); }
}

.pxq-visual-img.pxq-visual-on {
	animation: pxq-drift 16s ease-in-out infinite alternate;
}

.pxq-visual-img.pxq-visual-on:nth-child(even) {
	animation-name: pxq-drift-alt;
}

@keyframes pxq-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.pxq-visual-caption {
	animation: pxq-float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.pxq-visual-img.pxq-visual-on,
	.pxq-visual-caption {
		animation: none;
	}
}

/* ---------- 1.4.0 (#304 style du site, #305 paillettes) ---------- */

/* Titre de section au-dessus de la question */
.pxq-section {
	margin-bottom: 0.9rem;
}

/* Choix avec vignette d'exemple : grille de cartes, capture en haut */
.pxq-options-gallery {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
	gap: 0.85rem;
}

.pxq-options-gallery .pxq-box {
	position: relative;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.55rem 0.6rem;
	height: 100%;
	padding: 0.5rem 0.5rem 0.75rem;
}

.pxq-thumb {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: calc(var(--pxq-radius) - 4px);
	background: var(--pxq-tint);
	box-shadow: inset 0 0 0 1px var(--pxq-line);
}

.pxq-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s cubic-bezier(.2, .7, .3, 1);
}

.pxq-option:hover .pxq-thumb img,
.pxq-sr:focus-visible + .pxq-box .pxq-thumb img {
	transform: scale(1.05);
}

.pxq-options-gallery .pxq-key {
	margin-left: 0.25rem;
}

.pxq-options-gallery .pxq-option-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 1rem;
	line-height: 1.25;
}

.pxq-option-hint {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--pxq-muted);
}

/* Coche posée sur la vignette */
.pxq-options-gallery .pxq-thumb ~ .pxq-tick {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 999px;
	background: var(--pxq-primary);
	color: var(--pxq-on-primary);
	box-shadow: 0 6px 16px -6px rgba(0, 16, 43, 0.55);
}

.pxq-options-gallery .pxq-option-wide,
.pxq-options-gallery .pxq-other {
	grid-column: 1 / -1;
}

.pxq-options-gallery .pxq-option-wide .pxq-box {
	align-items: center;
	padding: 0.7rem 0.95rem;
}

.pxq-options-gallery .pxq-other {
	margin: 0;
}

@media (max-width: 480px) {
	.pxq-options-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem;
	}

	.pxq-options-gallery .pxq-option-hint {
		display: none;
	}
}

/* Paillettes : calque fixe, sans clic, au-dessus de la page */
.pxq-sparks {
	position: fixed;
	inset: 0;
	z-index: 99999;
	overflow: hidden;
	pointer-events: none;
}

.pxq-spark {
	position: absolute;
	display: block;
	transform: translate(-50%, -50%);
	will-change: transform, opacity;
}

.pxq-spark-dot {
	border-radius: 999px;
	background: var(--pxq-spark);
}

.pxq-spark-ring {
	border-radius: 999px;
	border: 2px solid var(--pxq-spark);
}

.pxq-spark-star {
	background: var(--pxq-spark);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	transform: translate(-50%, -50%) scale(1.4);
}

/* Petit rebond de la réponse choisie et du bouton OK */
@keyframes pxq-pop {
	0% { transform: scale(1); }
	35% { transform: scale(0.96); }
	70% { transform: scale(1.03); }
	100% { transform: scale(1); }
}

.pxq-root .pxq-pop {
	animation: pxq-pop 0.42s cubic-bezier(.3, .7, .4, 1.4);
}

.pxq-sr:checked + .pxq-box.pxq-pop .pxq-tick {
	animation: pxq-pop 0.42s cubic-bezier(.3, .7, .4, 1.4) 0.05s;
}

@media (prefers-reduced-motion: reduce) {
	.pxq-thumb img {
		transition: none;
	}

	.pxq-option:hover .pxq-thumb img {
		transform: none;
	}

	.pxq-sparks {
		display: none;
	}
}

/* Choix sur plusieurs colonnes (config `columns`) : 1 colonne sur petit écran */
@media (min-width: 640px) {
	.pxq-options.pxq-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pxq-options.pxq-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pxq-options.pxq-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pxq-options[class*="pxq-cols-"] .pxq-other { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
	.pxq-options.pxq-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Étape pleine page (config `layout: wide`) : sans photo, la question prend toute la largeur */
@media (min-width: 900px) {
	.pxq-root.pxq-is-wide .pxq-card { grid-template-columns: minmax(0, 1fr); }
}

.pxq-root.pxq-is-wide .pxq-visual { display: none; }
.pxq-root.pxq-is-wide .pxq-screen,
.pxq-root.pxq-is-wide .pxq-bar { max-width: none; }

/* Accord en petit sous les champs du contact (1.7.0) */
.pxq-fields + .pxq-consent-small {
	margin-top: 1.25rem;
	gap: 0.6rem;
}
.pxq-consent.pxq-consent-small .pxq-box.pxq-box-check {
	width: 1.35rem;
	height: 1.35rem;
	min-height: 0;
	border-radius: 0.35rem;
}
.pxq-consent-small .pxq-tick svg {
	width: 0.85rem;
	height: 0.85rem;
}
.pxq-consent-small .pxq-consent-text {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--pxq-muted, #6b7280);
}
.pxq-consent-small:hover .pxq-box {
	transform: none;
	box-shadow: none;
}
.pxq-consent-small input[aria-invalid="true"] + .pxq-box {
	border-color: #dc2626;
}
