/* G6M comment form + smooth Turnstile chrome v496c */

.g6m-comment-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.g6m-comment-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	width: 100%;
}

.g6m-comment-form__actions--submit-only {
	justify-content: flex-end;
}

.g6m-comment-form__submit {
	margin: 0 !important;
	margin-left: auto !important;
	align-self: center;
	min-height: 2.5rem;
	padding: 0.55rem 1.35rem !important;
	border: 0;
	border-radius: 999px !important;
	background: linear-gradient(90deg, #8d38ff 0%, #ff0b8b 100%) !important;
	color: #fff !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 8px 18px rgba(141, 56, 255, 0.28) !important;
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
	cursor: pointer;
}

.g6m-comment-form__submit:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.1),
		0 10px 22px rgba(255, 11, 139, 0.28) !important;
}

.g6m-comment-form__submit:focus-visible {
	outline: 2px solid rgba(0, 215, 255, 0.7);
	outline-offset: 2px;
}

/*
 * Smooth captcha contour:
 * gradient lives on the outer shell (2px pad) + soft blurred glows.
 * Avoids 1px jagged rings and Cloudflare's harsh white edge.
 */
.g6m-comment-form .g6m-turnstile,
.g6m-turnstile {
	--g6m-ts-radius: 16px;
	display: block;
	width: fit-content;
	max-width: min(100%, 320px);
	margin: 0;
	padding: 2px;
	border-radius: var(--g6m-ts-radius);
	background: linear-gradient(
		120deg,
		#ff0b8b 0%,
		#8d38ff 34%,
		#00d7ff 68%,
		#ffc107 100%
	);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.04),
		0 0 14px rgba(255, 11, 139, 0.22),
		0 0 22px rgba(141, 56, 255, 0.16),
		0 0 28px rgba(0, 215, 255, 0.14),
		0 10px 24px rgba(0, 0, 0, 0.28);
	line-height: 0;
}

.g6m-turnstile .cf-turnstile {
	position: relative !important;
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 none transparent !important;
	border-radius: calc(var(--g6m-ts-radius) - 2px) !important;
	background: #15131d !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
	overflow: hidden !important;
	line-height: 0 !important;
}

.g6m-turnstile .cf-turnstile::before,
.g6m-turnstile .cf-turnstile::after {
	content: none !important;
	display: none !important;
}

.g6m-turnstile .cf-turnstile iframe,
.g6m-turnstile .cf-turnstile > div {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	border-radius: calc(var(--g6m-ts-radius) - 2px) !important;
	background: transparent !important;
	max-width: 100% !important;
}

@media (max-width: 560px) {
	.g6m-comment-form__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.g6m-comment-form__submit {
		width: 100%;
		max-width: 100%;
		margin-left: 0 !important;
	}

	/* G6M_TURNSTILE_MOBILE_V609 (17/08/2026)
	   Le widget Turnstile a une largeur FIXE de 300 px : il ne s'etire pas. En le
	   groupant avec le bouton (width:100%), le cadre degrade s'elargissait sans
	   lui et laissait une bande vide a droite. Mesure a 386 px de large : cadre
	   343 px pour un widget de 300 px. On garde le cadre au plus juste, centre. */
	.g6m-comment-form .g6m-turnstile {
		width: fit-content !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.g6m-comment-form .g6m-turnstile .cf-turnstile {
		width: 300px !important;
		max-width: 100% !important;
	}

	.g6m-comment-form__submit {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.g6m-comment-form__submit {
		transition: none !important;
	}
}


/* G6M_TURNSTILE_MOBILE_V609 — en dessous de 340 px, 300 px + marges deborde :
   on reduit l'echelle au lieu de laisser le cadre sortir de l'ecran. */
@media (max-width: 339px) {
	.g6m-comment-form .g6m-turnstile {
		transform: scale(calc((100vw - 44px) / 300));
		transform-origin: top center;
	}
}