/* The WP Contact Form — personnalisable via les variables ci-dessous dans le thème. */
/* Les règles du bouton sont renforcées (.twpcf.twpcf button) pour résister aux styles de boutons des thèmes. */
.twpcf {
	--twpcf-accent: #1a2a5e;
	--twpcf-accent-hover: #24387a;
	--twpcf-accent-ring: rgba(26, 42, 94, .18);
	--twpcf-border: #c5cddb;
	--twpcf-radius: 10px;
	--twpcf-error: #cc0000;
	--twpcf-success: #1e7b2c;
	position: relative;
	max-width: 640px;
	margin: 0 auto 1.5em;
	font-size: 16px;
}

.twpcf .twpcf__title {
	margin: 0 0 .75em;
	color: var(--twpcf-accent);
}

.twpcf .twpcf__field {
	margin: 0 0 1.1em;
}

.twpcf .twpcf__field label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
}

.twpcf .twpcf__req {
	color: var(--twpcf-error);
}

.twpcf .twpcf__field input,
.twpcf .twpcf__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: .7em .85em;
	border: 1px solid var(--twpcf-border);
	border-radius: var(--twpcf-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	transition: border-color .15s, box-shadow .15s;
}

.twpcf .twpcf__field textarea {
	min-height: 140px;
	resize: vertical;
}

.twpcf .twpcf__field input:focus,
.twpcf .twpcf__field textarea:focus {
	outline: none;
	border-color: var(--twpcf-accent);
	box-shadow: 0 0 0 3px var(--twpcf-accent-ring);
}

.twpcf .twpcf__field--invalid input,
.twpcf .twpcf__field--invalid textarea {
	border-color: var(--twpcf-error);
}

.twpcf .twpcf__error {
	display: block;
	min-height: 1em;
	margin-top: .3em;
	color: var(--twpcf-error);
	font-size: .875em;
}

.twpcf .twpcf__error:empty {
	display: none;
}

.twpcf.twpcf button.twpcf__button {
	display: inline-block;
	padding: .8em 2em;
	border: 1px solid var(--twpcf-accent);
	border-radius: 7px;
	background: var(--twpcf-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}

.twpcf.twpcf button.twpcf__button:hover,
.twpcf.twpcf button.twpcf__button:focus {
	background: var(--twpcf-accent-hover);
	border-color: var(--twpcf-accent-hover);
}

.twpcf.twpcf button.twpcf__button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--twpcf-accent-ring);
}

.twpcf.twpcf button.twpcf__button:disabled {
	opacity: .65;
	cursor: wait;
}

.twpcf .twpcf__notice {
	margin: 0 0 1em;
	padding: .85em 1em;
	border: 1px solid #e4e8f0;
	border-radius: var(--twpcf-radius);
	background: #f5f6fa;
}

.twpcf .twpcf__notice--success {
	color: var(--twpcf-success);
	background: #edf7ee;
	border-color: #b7dfbb;
}

.twpcf .twpcf__notice--error {
	color: var(--twpcf-error);
	background: #fdeeee;
	border-color: #f3c0c0;
}

.twpcf .twpcf__notice[hidden],
.twpcf__form[hidden] {
	display: none;
}

.twpcf__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.twpcf .twpcf__intro {
	margin: 0 0 1em;
	color: #555555;
}

/* Widget : affichage compact (barre latérale, pied de page). */
.twpcf.twpcf--compact {
	max-width: none;
	margin: 0;
	font-size: 15px;
}

.twpcf.twpcf--compact .twpcf__field {
	margin-bottom: .8em;
}

.twpcf.twpcf--compact .twpcf__field label {
	margin-bottom: .25em;
	font-size: .93em;
}

.twpcf.twpcf--compact .twpcf__field input,
.twpcf.twpcf--compact .twpcf__field textarea {
	padding: .55em .7em;
}

.twpcf.twpcf--compact .twpcf__field textarea {
	min-height: 90px;
}

.twpcf.twpcf.twpcf--compact button.twpcf__button {
	width: 100%;
	padding: .7em 1em;
}

.twpcf.twpcf--compact .twpcf__notice {
	padding: .7em .85em;
	font-size: .93em;
}
