.hecf-form-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 860px;
	margin: 1.25rem 0;
	font-family: inherit;
	color: #17324d;
}

.hecf-form-container *,
.hecf-form-container *::before,
.hecf-form-container *::after {
	box-sizing: inherit;
}

.hecf-form-container .hecf-form-shell {
	background: #ffffff;
	border: 1px solid #d9e2ec;
	border-radius: 18px;
	padding: 1.5rem;
	box-shadow: 0 12px 34px rgba(23, 50, 77, 0.08);
}

.hecf-form-container .hecf-form-header {
	margin-bottom: 1.25rem;
}

.hecf-form-container .hecf-form-title {
	margin: 0 0 0.4rem;
	font-size: 1.55rem;
	line-height: 1.2;
	font-weight: 700;
	color: #0f3152;
}

.hecf-form-container .hecf-form-intro {
	margin: 0;
	font-size: 0.92rem;
	color: #5d7288;
}

.hecf-form-container .hecf-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	align-items: start;
}

.hecf-form-container .hecf-form-message,
.hecf-form-container .hecf-form-empty {
	grid-column: 1 / -1;
	border-radius: 12px;
	padding: 0.9rem 1rem;
	margin: 0 0 1rem;
}

.hecf-form-container .hecf-form-message--success {
	background: #ecfdf3;
	border: 1px solid #abdcbc;
	color: #14532d;
}

.hecf-form-container .hecf-form-message--error {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	color: #9f1239;
}

.hecf-form-container .hecf-form-empty {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	color: #475569;
}

.hecf-form-container .hecf-form-row {
	display: contents;
}

.hecf-form-container .hecf-form-field,
.hecf-form-container .hecf-captcha-wrap,
.hecf-form-container .hecf-recaptcha-wrap {
	min-width: 0;
}

.hecf-form-container .hecf-form-field--full,
.hecf-form-container .hecf-captcha-wrap,
.hecf-form-container .hecf-recaptcha-wrap,
.hecf-form-container .hecf-button--submit,
.hecf-form-container .hecf-form-field[data-hecf-type="textarea"],
.hecf-form-container .hecf-form-field[data-hecf-id="message"] {
	grid-column: 1 / -1;
}

.hecf-form-container .hecf-form-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.45rem;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	color: #12324f;
}

.hecf-form-container .hecf-required-mark {
	color: #cf3a48;
	font-weight: 700;
}

.hecf-form-container .hecf-form-control {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.9rem 1rem;
	border: 1px solid #cfd9e3;
	border-radius: 12px;
	background: #ffffff;
	color: #17324d;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.45;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hecf-form-container .hecf-form-control::placeholder {
	color: #8294a8;
	opacity: 1;
}

.hecf-form-container .hecf-form-textarea {
	min-height: 9rem;
	resize: vertical;
}

.hecf-form-container .hecf-form-control:hover {
	border-color: #b9c7d6;
}

.hecf-form-container .hecf-form-control:focus {
	outline: none;
	border-color: #1f6fb2;
	box-shadow: 0 0 0 4px rgba(31, 111, 178, 0.14);
}

.hecf-form-container .hecf-form-control[disabled] {
	background: #f8fafc;
	color: #94a3b8;
	cursor: not-allowed;
}

.hecf-form-container .hecf-form-field-error {
	margin: 0.45rem 0 0;
	font-size: 0.82rem;
	line-height: 1.35;
	color: #b42318;
}

.hecf-form-container .hecf-form-help {
	margin: 0.5rem 0 0;
	font-size: 0.82rem;
	color: #64748b;
}

.hecf-form-container .hecf-captcha-box,
.hecf-form-container .hecf-recaptcha-box {
	padding: 1rem;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #f8fbff;
}

.hecf-form-container .hecf-captcha-image-wrap {
	margin-bottom: 0.85rem;
}

.hecf-form-container .hecf-captcha-image {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid #d9e2ec;
	border-radius: 12px;
	background: #ffffff;
}

.hecf-form-container .hecf-captcha-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 0.85rem;
}

.hecf-form-container .hecf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	border: 1px solid #1f6fb2;
	border-radius: 12px;
	background: #1f6fb2;
	color: #ffffff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hecf-form-container .hecf-button:hover,
.hecf-form-container .hecf-button:focus {
	background: #155a93;
	border-color: #155a93;
	box-shadow: 0 10px 24px rgba(31, 111, 178, 0.16);
}

.hecf-form-container .hecf-button:focus {
	outline: none;
}

.hecf-form-container .hecf-button:active {
	transform: translateY(1px);
}

.hecf-form-container .hecf-button--secondary {
	background: #ffffff;
	color: #1f6fb2;
}

.hecf-form-container .hecf-button--secondary:hover,
.hecf-form-container .hecf-button--secondary:focus {
	background: #eef6fd;
	color: #155a93;
}

.hecf-form-container .hecf-button--submit {
	margin-top: 0.25rem;
	width: 100%;
}

.hecf-form-container .hecf-button[disabled],
.hecf-form-container .hecf-button[aria-disabled="true"] {
	opacity: 0.65;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 782px) {
	.hecf-form-container .hecf-form-shell {
		padding: 1.25rem;
	}
}

@media (max-width: 640px) {
	.hecf-form-container .hecf-form {
		grid-template-columns: 1fr;
		gap: 0.95rem;
	}

	.hecf-form-container .hecf-form-field,
	.hecf-form-container .hecf-captcha-wrap,
	.hecf-form-container .hecf-recaptcha-wrap,
	.hecf-form-container .hecf-button--submit {
		grid-column: 1 / -1;
	}

	.hecf-form-container .hecf-form-title {
		font-size: 1.4rem;
	}

	.hecf-form-container .hecf-captcha-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hecf-form-container .hecf-captcha-actions .hecf-button {
		width: 100%;
	}
}


/* Correctifs de sécurité/accessibilité v1.3.1. */
.hecf-form-container .hecf-honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hecf-form-container .hecf-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hecf-form-container .hecf-form-field[hidden],
.hecf-form-container .hecf-captcha-prompt[hidden],
.hecf-form-container .hecf-form-field-error[hidden] {
	display: none !important;
}

.hecf-form-container .hecf-form-required {
	color: #cf3a48;
	font-weight: 700;
}

.hecf-form-container .hecf-captcha,
.hecf-form-container .hecf-recaptcha {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding: 1rem;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #f8fbff;
}

.hecf-form-container .hecf-captcha {
	display: grid;
	gap: 0.7rem;
}

.hecf-form-container .hecf-captcha-visual {
	display: flex;
	align-items: center;
	min-height: 86px;
	padding: 0.35rem;
	border-radius: 12px;
	background: #fff;
}

.hecf-form-container .hecf-captcha-image {
	display: block;
	width: min(230px, 100%);
	height: auto;
	border: 1px solid #cbd7e3;
	border-radius: 9px;
	background: #fff;
}

.hecf-form-container .hecf-captcha-answer {
	max-width: 230px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
}

.hecf-form-container .hecf-recaptcha {
	display: grid;
	gap: 0.5rem;
	overflow-x: auto;
}


/* Consentement et information reCAPTCHA — v1.5.2. */
.hecf-form-container .hecf-consent {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding: 1rem;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #f8fbff;
}

.hecf-form-container .hecf-consent-option {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-top: 0.8rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #17324d;
	cursor: pointer;
}

.hecf-form-container .hecf-consent-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.15rem 0 0;
	accent-color: #1f6fb2;
}

.hecf-form-container .hecf-consent-option a,
.hecf-form-container .hecf-recaptcha-notice a {
	color: #155a93;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.hecf-form-container .hecf-recaptcha-notice {
	display: grid;
	gap: 0.3rem;
	padding: 0.85rem 1rem;
	border: 1px solid #c9d9e8;
	border-radius: 10px;
	background: #ffffff;
	color: #334e68;
	font-size: 0.78rem;
	line-height: 1.45;
}

.hecf-form-container .hecf-recaptcha-notice strong {
	color: #12324f;
}

@media (max-width: 640px) {
	.hecf-form-container .hecf-consent,
	.hecf-form-container .hecf-recaptcha {
		grid-column: 1 / -1;
	}
}
