/**
 * Ka'Com - formulaire des ressources gratuites.
 * Reprend les variables du design system (design-system-4.css).
 */

.kc-ressource {
	margin-top: 28px;
}

.kc-ressource__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 520px;
}

.kc-ressource__ligne {
	display: flex;
	gap: 16px;
}

.kc-ressource__ligne .kc-ressource__champ {
	flex: 1 1 0;
	min-width: 0;
}

.kc-ressource__champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kc-ressource__champ > span {
	font-size: 14px;
	font-weight: 600;
	color: #6B3A1F;
	letter-spacing: 0.01em;
}

.kc-ressource__champ input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	font-size: 16px;
	font-family: inherit;
	color: #3D2314;
	background: #ffffff;
	border: 1px solid #E8D5C4;
	border-radius: 10px;
	transition: border-color 0.15s ease;
}

/* Kadence ajoute par defaut un halo au survol et au clic : on le retire,
   seule la couleur de la bordure change. */
.kc-ressource__champ input,
.kc-ressource__champ input:hover,
.kc-ressource__champ input:focus,
.kc-ressource__champ input:focus-visible,
.kc-ressource__champ input:active,
.kc-ressource__rgpd input:hover,
.kc-ressource__rgpd input:focus,
.kc-ressource__rgpd input:focus-visible {
	box-shadow: none;
	outline: none;
}

.kc-ressource__champ input:hover {
	border-color: #D9C0AB;
}

.kc-ressource__champ input:focus {
	border-color: #A0704A;
}

.kc-ressource__rgpd {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #6B3A1F;
	cursor: pointer;
}

.kc-ressource__rgpd input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	accent-color: #A0704A;
}

.kc-ressource__form .wp-block-buttons {
	margin-top: 4px;
}

.kc-ressource__form .wp-block-button__link {
	cursor: pointer;
	border: 0;
	font-family: inherit;
}

/* Champ piege a robots : invisible, mais jamais display:none
   (certains robots ignorent les champs masques ainsi). */
.kc-ressource__piege {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.kc-ressource__ok {
	max-width: 520px;
	padding: 24px 26px;
	background: #F0E6DC;
	border-left: 4px solid #A0704A;
	border-radius: 12px;
	color: #3D2314;
}

.kc-ressource__ok-titre {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 19px;
	color: #3D2314;
}

.kc-ressource__ok p:last-child {
	margin: 0;
	line-height: 1.6;
	color: #6B3A1F;
}

.kc-ressource__erreur {
	margin: 0;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #8a2f1c;
	background: #fbeae6;
	border-radius: 10px;
}

.kc-ressource__erreur a {
	color: #8a2f1c;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.kc-ressource__ligne {
		flex-direction: column;
		gap: 16px;
	}
}
