/* ==========================================================================
   Site4 — page « Nous contacter » (maquette Figma node 129:3309)
   S'appuie sur projets.css (introduction, sur-titres). Remplace la feuille de style de Contact Form 7.
   ========================================================================== */

.page-contact {
	margin: 90.85px auto 128.8px;
}

.page-contact .breadcrumb ol {
	min-height: 19px;
	line-height: 19px;
}

.page-contact .breadcrumb img {
	width: 12px;
	height: 12px;
}

.pp-intro--contact {
	padding: 49px 0 44px;
}

.pp-intro--contact .pp-intro__title {
	padding-top: 16px;
}

.pp-intro--contact .pp-intro__aside {
	width: 309px;
	padding-bottom: 8px;
}

/* ---------- Grille : encadré + formulaire ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 405.2px) minmax(0, 633.8px);
	justify-content: space-between;
	align-items: start;
}

.contact-aside {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.contact-card {
	padding: 32px 29px 25px;
	border: 1px solid #dfe7f1;
	border-radius: 12px;
	background: #edf2f8;
}

.contact-card__title {
	padding-top: 15px;
	font-size: 25px;
	font-weight: 500;
	line-height: 33px;
	letter-spacing: -0.9px;
}

.contact-card__text {
	padding-top: 14px;
	font-size: 13px;
	line-height: 23px;
	color: var(--pp-muted);
}

.contact-card__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #d4deeb;
}

.contact-card__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid #cedbed;
	border-radius: 14px;
	background: linear-gradient(145deg, #fff 6.17%, #f5f8fc 93.83%);
	box-shadow: inset 0 1px 0 #fff, 0 3px 4px rgba(27, 76, 156, 0.03);
}

.contact-card__icon img {
	width: 22px;
	height: 22px;
}

.contact-card__item-title {
	padding-top: 3px;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
}

.contact-card__item-text {
	padding-top: 8px;
	font-size: 12px;
	line-height: 21px;
	color: var(--pp-muted);
}

.contact-card__note {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 30px;
	padding-top: 21px;
	border-top: 1px solid #d4deeb;
	font-size: 10px;
	line-height: 15px;
	color: var(--pp-muted);
}

.contact-card__note::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--pp-blue);
}

.contact-banner {
	position: relative;
	height: 200px;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #10223b;
}

.contact-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(8, 25, 47, 0.85), rgba(8, 25, 47, 0.15));
}

.contact-banner__text {
	position: absolute;
	z-index: 1;
	inset-inline-start: 27px;
	bottom: 23.45px;
	display: flex;
	flex-direction: column;
	color: #fff;
}

.contact-banner__eyebrow {
	font-size: 8px;
	font-weight: 700;
	line-height: 16.455px;
	letter-spacing: 1.2px;
	color: #ccdbf3;
}

.contact-banner__title {
	padding-top: 10px;
	font-size: 25px;
	font-weight: 500;
	line-height: 30px;
	letter-spacing: -0.8px;
}

/* ---------- Carte du formulaire ---------- */

.contact-form {
	padding: 33px 34px 22px;
	border: 1px solid #e7ebe8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(16, 34, 59, 0.02);
}

.contact-form__title {
	padding-top: 9px;
	font-size: 27.425px;
	font-weight: 500;
	line-height: 34.281px;
	letter-spacing: -1.0284px;
}

.contact-form__text {
	max-width: 370px;
	padding-top: 12px;
	font-size: 12px;
	line-height: 21px;
	color: var(--pp-muted);
}

.contact-form__privacy {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding-top: 13px;
	font-size: 9px;
	line-height: 13.5px;
	color: #929ba7;
}

.contact-form__privacy img {
	width: 12px;
	height: 12px;
}

/* ---------- Formulaire Contact Form 7 (balisage dans Contact > Formulaires) ---------- */

.cf-fields {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 29px;
}

.cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 17px;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.cf-label {
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: var(--pp-ink);
}

.cf .hidden-fields-container {
	display: none;
}

.cf .wpcf7-form-control-wrap {
	display: block;
}

.cf input[type="text"],
.cf input[type="email"],
.cf input[type="tel"],
.cf textarea {
	display: block;
	width: 100%;
	height: 46px;
	padding: 13px 12px;
	border: 1px solid var(--pp-line);
	border-radius: 6px;
	background: #fafbfc;
	font-size: 11px;
	line-height: 18px;
	color: var(--pp-ink);
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cf textarea {
	height: 125px;
	min-height: 125px;
	resize: vertical;
}

.cf input::placeholder,
.cf textarea::placeholder {
	color: #929ba7;
}

.cf input:focus,
.cf textarea:focus {
	border-color: var(--pp-blue);
	outline: 0;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(27, 76, 156, 0.1);
}

.cf .wpcf7-not-valid {
	border-color: #d1584c !important;
}

.cf .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 10px;
	line-height: 14px;
	color: #b4433a;
}

/* Case de consentement */
.cf-consent {
	padding-top: 21px;
}

.cf-consent .wpcf7-list-item {
	margin: 0;
}

.cf-consent label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 10px;
	line-height: 17px;
	color: var(--pp-muted);
	cursor: pointer;
}

.cf-consent input[type="checkbox"] {
	flex: none;
	width: 14px;
	height: 14px;
	margin: 2px 0 0;
	accent-color: var(--pp-blue);
}

.cf-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 25px;
}

.cf-required {
	font-size: 9px;
	line-height: 13.5px;
	color: #929ba7;
}

.cf-submit {
	display: inline-flex;
	align-items: center;
	gap: 25px;
	padding: 14px 21px;
	border: 0;
	border-radius: 30px;
	background: var(--pp-blue);
	font-size: 11px;
	font-weight: 500;
	line-height: 16.5px;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s;
}

.cf-submit::after {
	content: "";
	width: 16px;
	height: 16px;
	background: url("../img/contact/ico-send.svg") center / contain no-repeat;
}

.cf-submit:hover {
	background: var(--navy);
}

.cf.submitting .cf-submit {
	opacity: 0.6;
	cursor: progress;
}

.cf .wpcf7-spinner {
	display: none;
}

/* Message de retour de Contact Form 7 */
.cf .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--pp-line);
	border-radius: 6px;
	font-size: 12px;
	line-height: 18px;
}

.cf .wpcf7-response-output:empty {
	display: none;
}

.cf.sent .wpcf7-response-output {
	border-color: #c9e8d4;
	background: #edf8f1;
	color: #1f7a45;
}

.cf.invalid .wpcf7-response-output,
.cf.unaccepted .wpcf7-response-output,
.cf.failed .wpcf7-response-output,
.cf.spam .wpcf7-response-output {
	border-color: #f1d3cf;
	background: #fcf1ef;
	color: #b4433a;
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ==========================================================================
   Tablette / mobile
   ========================================================================== */

@media (max-width: 1023px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.contact-aside {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}

	.contact-banner {
		height: auto;
		min-height: 200px;
	}

	.pp-intro--contact .pp-intro__title {
	padding-top: 16px;
}

.pp-intro--contact .pp-intro__aside {
		width: auto;
	}
}

@media (max-width: 767px) {
	.page-contact {
		margin: 24px auto 48px;
	}

	.pp-intro--contact {
		padding: 32px 0;
	}

	.contact-aside {
		grid-template-columns: 1fr;
	}

	.contact-form {
		padding: 24px 18px 20px;
	}

	.cf-row {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.cf-footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.cf-submit {
		justify-content: center;
	}

	.contact-form__privacy {
		justify-content: center;
	}
}

/* ==========================================================================
   Animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.cf-submit::after {
		transition: transform 0.35s var(--ease-out);
	}

	.cf-submit:hover::after {
		transform: translate(3px, -3px);
	}

	.contact-banner img {
		transition: transform 0.9s var(--ease-out);
	}

	.contact-banner:hover img {
		transform: scale(1.05);
	}
}
