/* Contact : colonne coordonnées + formulaire maison (classes d4y-* reprises de l'ancien plugin). */

/* --- Base du formulaire (reprise de la feuille de l'ancien plugin « Digi4you Contact ») --- */
.d4y-form-container { max-width: 600px; margin: 2rem auto; padding: 2.5rem; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.d4y-field { margin-bottom: 1.5rem; }
.d4y-field label { display: block; font-weight: 600; margin-bottom: .5rem; color: #2c3e50; font-size: .95rem; }
.d4y-field input, .d4y-field textarea { width: 100%; padding: .8rem 1rem; border: 2px solid #edf2f7; border-radius: 10px; font-size: 1rem; transition: border-color .3s ease, box-shadow .3s ease; box-sizing: border-box; }
.d4y-field input:focus, .d4y-field textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.d4y-field [aria-invalid="true"] { border-color: #c53030; }
.d4y-privacy-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.d4y-privacy-check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; cursor: pointer; }
.d4y-privacy-check label { font-size: .85rem; color: #4a5568; line-height: 1.5; }
.d4y-privacy-check a { color: #2563eb; text-decoration: underline; font-weight: 500; }
#d4y-btn { width: 100%; padding: 1rem; background: #2563eb; border: none; border-radius: 10px; color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background .3s ease, transform .3s ease, box-shadow .3s ease; margin-top: 1rem; }
#d4y-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37, 99, 235, .2); }
#d4y-btn:disabled { background: #cbd5e0; cursor: not-allowed; transform: none; }
#d4y-msg { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; font-weight: 500; text-align: center; }
#d4y-msg.success { background: #f0fff4; color: #285e3e; border: 1px solid #c6f6d5; }
#d4y-msg.error { background: #fff5f5; color: #9b2c2c; border: 1px solid #fed7d7; }
.cf-turnstile { margin-bottom: 1.5rem; }
.d4y-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact {
	/* le bloc remonte sous le bandeau, comme dans la maquette d'origine */
	margin: -6em 0;
	padding: 100px 0;
}
.contact__inner {
	display: flex;
	width: min(1180px, 100% - 20px);
	margin: 0 auto 90px;
}
.contact__infos {
	flex: 0 0 28%;
	box-sizing: border-box;
	padding-right: 90px;
}
.contact__form { display: flow-root; flex: 1 1 0; min-width: 0; }

.contact__title {
	margin: 0 0 20px;
	font-size: 20px;
	line-height: 1;
}
.contact__list { margin: 0 0 20px; padding: 0; list-style: none; }
.contact__list li { margin: 0 0 5px; }
.contact__list li:last-child { margin-bottom: 0; }
.contact__sep {
	box-sizing: content-box; /* trait de 1 px dessiné dans la zone de contenu */
	height: 1px;
	margin: 0 0 20px;
	padding: 10px 0;
	border: 0;
	background: var(--c-border) content-box;
}
.contact__bank p { margin: 0 0 14.4px; }
.contact__bank { margin-bottom: -10px; }

.contact__accent {
	display: block;
	width: 150px;
	height: 16px;
	background: linear-gradient(var(--c-accent), var(--c-accent)) 20px 7px / 130px 2px no-repeat;
}

/* Habillage du formulaire : champs droits, Public Sans, bouton en capitales (rendu d'origine) */
.contact .d4y-field label,
.contact .d4y-privacy-check label {
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 700;
	line-height: 1;
	color: var(--c-primary);
}
.contact .d4y-privacy-check label { line-height: 1.5; }
.contact .d4y-field input,
.contact .d4y-field textarea {
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: 1.5;
	color: var(--c-primary);
	border: 1px solid var(--c-border);
	border-radius: 0;
}
.contact .d4y-field input { padding: 8px 16px; }
.contact .d4y-privacy-check input { margin: 3px 0 0; }
.contact #d4y-btn {
	font-family: var(--font);
	line-height: 26.4px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

/* Couleurs du formulaire (réglage d'origine) */
.contact #d4y-btn { background: #2563eb; color: #fff; }
.contact #d4y-btn:hover { background: #1d4ed8; }
.contact .d4y-privacy-check a { color: #2563eb; }
.contact .d4y-field input:focus,
.contact .d4y-field textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

@media (max-width: 1024px) {
	.contact { margin: -6em 0; padding: 80px 0; }
	.contact__inner { width: calc(100% - 40px); margin-bottom: 90px; }
	.contact__infos { flex-basis: 33%; padding-right: 30px; }
	.contact__form { padding-left: 30px; }
	.contact__title { font-size: 19px; }
}
@media (max-width: 767px) {
	.contact { padding: 50px 0; }
	.contact__inner { display: block; width: calc(100% - 20px); margin: 0 5px 90px 15px; }
	.contact__infos { padding-right: 0; margin-bottom: 66px; }
	.contact__form { padding-left: 0; }
	.contact__title { font-size: 18px; }
}
