/* ============================================================
 * PALPIAUTO — Page contact / demande de devis vers WhatsApp
 * v1.0.0 — 2026-10-02 — responsive page contact (ID 2144)
 * ============================================================ */

/* ---------- Mise en page : deux colonnes qui s'empilent ---------- */
.page-id-2144 .elementor-container,
.page-id-2144 .e-con {
	max-width: 1220px;
}

.page-id-2144 .wpcf7-form .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -10px;
	margin-right: -10px;
}

.page-id-2144 .wpcf7-form .row > div {
	padding-left: 10px;
	padding-right: 10px;
}

/* ---------- Champs : hauteur tactile + focus visible ---------- */
.page-id-2144 .wpcf7-form input[type="text"],
.page-id-2144 .wpcf7-form input[type="email"],
.page-id-2144 .wpcf7-form input[type="tel"],
.page-id-2144 .wpcf7-form select,
.page-id-2144 .wpcf7-form textarea {
	width: 100%;
	min-height: 52px;
	border: 1px solid #d8dee6;
	border-radius: 12px;
	background: #fff;
	padding: 12px 14px;
	font-size: 16px; /* anti-zoom iOS */
	line-height: 1.4;
	color: #1f2937;
	box-shadow: none;
}

.page-id-2144 .wpcf7-form textarea {
	min-height: 150px;
	resize: vertical;
}

.page-id-2144 .wpcf7-form input:focus,
.page-id-2144 .wpcf7-form select:focus,
.page-id-2144 .wpcf7-form textarea:focus {
	outline: 2px solid #166534;
	outline-offset: 1px;
	border-color: #166534;
}

.page-id-2144 .wpcf7-form label {
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 6px;
	display: inline-block;
}

.page-id-2144 .wpcf7-form .wpcf7-not-valid {
	border-color: #dc2626 !important;
	background: #fef2f2;
}

.page-id-2144 .wpcf7-form .wpcf7-not-valid-tip {
	color: #b91c1c;
	font-size: 13px;
	margin-top: 6px;
	display: block;
}

/* Champ "Autre" + honeypot */
.palpi-other-wrap {
	display: none;
}

.palpi-other-wrap.is-visible {
	display: block;
	animation: palpiFade .25s ease;
}

/* Champ "Autre" + honeypot */
.palpi-other-wrap {
	display: none;
}

.palpi-other-wrap.is-visible {
	display: block;
	animation: palpiFade .25s ease;
}

.palpi-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

@keyframes palpiFade {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Boutons d'envoi ---------- */
.page-id-2144 .wpcf7-form input[type="submit"],
.page-id-2144 .wpcf7-form button[type="submit"] {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 14px;
	background: #15803d;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	padding: 14px 20px;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	box-shadow: 0 8px 22px rgba(21, 128, 61, .28);
}

.page-id-2144 .wpcf7-form input[type="submit"]:hover,
.page-id-2144 .wpcf7-form button[type="submit"]:hover {
	background: #166534;
	transform: translateY(-1px);
}

.page-id-2144 .wpcf7-form input[type="submit"]:disabled {
	opacity: .65;
	cursor: wait;
	transform: none;
}

.palpi-wa-transfer {
	margin-top: 14px;
	border: 2px dashed #15803d;
	border-radius: 14px;
	background: #f0fdf4;
	padding: 14px;
}

.palpi-wa-transfer p {
	margin: 0 0 10px;
	font-size: 14px;
	color: #14532d;
}

.palpi-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	border-radius: 999px;
	background: #22c55e;
	color: #fff !important;
	font-weight: 800;
	font-size: 16px;
	text-decoration: none !important;
	padding: 12px 18px;
	box-shadow: 0 10px 24px rgba(34, 197, 94, .35);
	transition: transform .12s ease, background .12s ease;
}

.palpi-wa-btn:hover {
	background: #16a34a;
	transform: translateY(-1px);
}

.palpi-wa-btn svg {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	fill: currentColor;
}

.palpi-wa-opened {
	margin-top: 10px;
	font-size: 13px;
	color: #15803d;
	display: none;
}

.palpi-wa-opened.is-visible {
	display: block;
}

/* ---------- Réponses CF7 ---------- */
.page-id-2144 .wpcf7-response-output {
	border-radius: 12px;
	font-size: 15px;
	padding: 14px 16px;
	margin: 18px 0 0;
}

/* ---------- Desktop : vrai 2 colonnes ---------- */
@media (min-width: 992px) {
	.page-id-2144 .wpcf7-form .row > .col-lg-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.page-id-2144 .wpcf7-form .row > .col-lg-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.page-id-2144 .wpcf7-form input[type="submit"],
	.page-id-2144 .wpcf7-form button[type="submit"] {
		width: auto;
		min-width: 320px;
	}
}

/* ---------- Tablette / mobile : tout s'empile proprement ---------- */
@media (max-width: 991.98px) {
	.page-id-2144 .wpcf7-form .row > div {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Cartes d'infos Elementor : marges + texte lisibles */
	.page-id-2144 .elementor-widget-partdo-contact-icon-box,
	.page-id-2144 .elementor-widget-partdo-address-box {
		margin-bottom: 12px;
	}

	/* La bannière produit sous le formulaire reste lisible */
	.page-id-2144 .elementor-widget-partdo-banner-box .banner-desc,
	.page-id-2144 .elementor-widget-partdo-banner-box .banner-description {
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* ---------- Petits téléphones ---------- */
@media (max-width: 480px) {
	.page-id-2144 .wpcf7-form .row {
		margin-left: -6px;
		margin-right: -6px;
	}

	.page-id-2144 .wpcf7-form .row > div {
		padding-left: 6px;
		padding-right: 6px;
		margin-bottom: 14px !important;
	}

	.palpi-wa-btn {
		font-size: 15px;
	}
}

/* ---------- Accessibilité : réduit les animations si demandé ---------- */
@media (prefers-reduced-motion: reduce) {
	.page-id-2144 .wpcf7-form input[type="submit"],
	.palpi-wa-btn {
		transition: none;
	}
}


