/**
 * Formulaire de contact Contact Form 7 (bloc « Hero — Contact »).
 * Valeurs exactes de la maquette Figma (node 619:4719), scopé .contact-cf7 :
 * titre 40, sous-titre 17, cases 20/libellés 16, champs h50 fond lavande
 * clair, consentement 16, bouton pilule violet centré (cercle jaune 40).
 */

/* CF7 (autop) insère des <br> entre les éléments du formulaire : aucun
   retour à la ligne légitime ici, on les neutralise. */
.contact-cf7 .wpcf7-form br {
	display: none;
}

.contact-cf7 h2 {
	margin: 0 0 20px;
	font-size: 40px;
	font-weight: 600;
	letter-spacing: -1.28px;
	line-height: 51.3px;
	color: #050c0b;
}

.contact-cf7 .cf7c-sub {
	margin: 0 0 30px;
	font-size: 17px;
	letter-spacing: -0.72px;
	line-height: 1.2;
	color: #757575;
}

.contact-cf7 .cf7c-heading {
	margin: 30px 0 18px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.38px;
	line-height: 22.8px;
	color: #050c0b;
}

/* --- Cases à cocher « Objet » : grille 2 colonnes ------------------------ */

.contact-cf7 .wpcf7-checkbox {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.contact-cf7 .wpcf7-list-item {
	margin: 0;
}

.contact-cf7 .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.38px;
	line-height: 22.8px;
	color: #181818;
	cursor: pointer;
}

.contact-cf7 input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background: #fff center / 12px no-repeat;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.contact-cf7 input[type="checkbox"]:checked {
	border-color: #322882;
	background-color: #322882;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Champs ------------------------------------------------------------- */

.contact-cf7 .cf7c-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

/* CF7 (autop) enveloppe les deux labels de la ligne dans un même <p> :
   on l'efface de la grille pour que les labels redeviennent les colonnes. */
.contact-cf7 .cf7c-row p {
	display: contents;
}

.contact-cf7 .cf7c-field {
	display: block;
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: -0.38px;
	line-height: 22.8px;
	color: #181818;
}

.contact-cf7 .cf7c-field .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.contact-cf7 input[type="text"],
.contact-cf7 input[type="email"],
.contact-cf7 textarea {
	width: 100%;
	height: 50px;
	padding: 12px 14px;
	border: 1px solid #d8d6ee;
	border-radius: 10px;
	background: rgba(240, 239, 248, 0.5);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.38px;
	line-height: 22.8px;
	color: #181818;
	outline: none;
	transition: border-color 0.15s;
}

.contact-cf7 input[type="text"]::placeholder,
.contact-cf7 input[type="email"]::placeholder,
.contact-cf7 textarea::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.contact-cf7 input[type="text"]:focus,
.contact-cf7 input[type="email"]:focus,
.contact-cf7 textarea:focus {
	border-color: #322882;
}

.contact-cf7 textarea {
	height: 140px;
	min-height: 140px;
	padding: 14px 16px;
	resize: vertical;
}

/* --- Consentement -------------------------------------------------------- */

.contact-cf7 .cf7c-consent {
	margin: 30px 0;
}

.contact-cf7 .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	letter-spacing: -0.38px;
	line-height: 22.8px;
	color: #181818;
	cursor: pointer;
}

.contact-cf7 .wpcf7-acceptance input[type="checkbox"] {
	margin-top: 1px;
}

.contact-cf7 .cf7c-consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Bouton pilule violet centré (cercle jaune 40, comme .btn-pill) ------- */

.contact-cf7 .cf7c-actions {
	margin: 0;
	text-align: center;
}

.contact-cf7 .cf7c-actions .wpcf7-submit {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 50px;
	padding: 9px 58px 10px 16px;
	background: #322882 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23fff000'/%3E%3Cpath d='M18.67 27.06l6.12-6.12H12v-1.88h12.79l-6.12-6.12h2.66l6.4 6.4v1.33l-6.4 6.4h-2.66' fill='%23050c0b'/%3E%3C/svg%3E") no-repeat right 2px center / 40px 40px;
	font: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 25.2px;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.contact-cf7 .cf7c-actions .wpcf7-submit:hover {
	background-color: #1f1852;
}

.contact-cf7 .wpcf7-spinner {
	margin: 0 0 0 10px;
}

/* --- Validation / réponses ----------------------------------------------- */

.contact-cf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #eb5046;
}

.contact-cf7 .wpcf7 form .wpcf7-response-output,
.contact-cf7 .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 11px 15px;
	border-radius: 10px;
	font-size: 13px;
}

/* --- Mobile --------------------------------------------------------------- */

/* Maquette mobile 838:5056 : titre 34, écart titre/sous-titre 6, champs
   empilés espacés de 16, bouton pilule pleine largeur (cercle à droite). */
@media (max-width: 767px) {
	.contact-cf7 h2 {
		margin-bottom: 6px;
		font-size: 34px;
		line-height: 51.3px;
		letter-spacing: -1.28px;
	}

	.contact-cf7 .wpcf7-checkbox,
	.contact-cf7 .cf7c-row {
		grid-template-columns: 1fr;
	}

	.contact-cf7 .cf7c-field {
		margin-bottom: 16px;
	}

	.contact-cf7 .cf7c-actions .wpcf7-submit {
		width: 100%;
		text-align: left;
	}
}
