/**
 * Page Contact — mise en page + formulaire moderne (shell éditorial).
 */

/* ——— Grille page (alignée expertises / à propos) ——— */
.ed-page-contact__body .ed-shell-body__inner {
	padding-top: clamp(72px, 9vh, 104px);
}

.ed-page-contact__grid .ed-shell-body__main {
	max-width: none;
}

.ed-page-contact__columns {
	display: grid;
	gap: clamp(40px, 5vw, 56px);
}

@media (min-width: 1024px) {
	.ed-page-contact__columns {
		grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
		gap: clamp(64px, 7vw, 96px);
		align-items: start;
	}
}

/* ——— Colonne direct ——— */
.ed-contact-aside__lead {
	margin: 0 0 clamp(28px, 4vw, 40px);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.65;
	color: rgba(28, 26, 24, 0.68);
	max-width: 32ch;
}

.ed-contact-channel {
	padding: 22px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ed-contact-channel--whatsapp {
	border-bottom: none;
	padding-bottom: 12px;
}

.ed-contact-channel--address {
	padding-bottom: 22px;
}

.ed-contact-channel--google {
	border-bottom: none;
	padding-bottom: 12px;
}

.ed-contact-aside__response {
	margin: clamp(24px, 3vw, 32px) 0 0;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 14px;
	line-height: 1.55;
	color: var(--o3w-vert, #2f4a3e);
}

.ed-contact-aside__muted,
.ed-contact-aside__call {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(28, 26, 24, 0.55);
}

.ed-contact-aside__call {
	color: rgba(28, 26, 24, 0.62);
}

.ed-contact-aside__notes {
	margin-top: 4px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.ed-contact-aside {
	font-style: normal;
}

.ed-contact-channel__address {
	margin: 0;
	font-family: var(--o3w-font-display);
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--o3w-ink, #1c1a18);
}

.ed-contact-channel:first-of-type {
	padding-top: 0;
}

.ed-contact-channel__label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--o3w-font-heading);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(28, 26, 24, 0.42);
}

.ed-contact-channel__link {
	font-family: var(--o3w-font-display);
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-decoration: none;
	color: var(--o3w-ink, #1c1a18);
	transition: color 0.35s var(--o3w-ease, ease);
}

.ed-contact-channel__link:hover {
	color: var(--o3w-vert, #2f4a3e);
}

.ed-contact-channel__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(28, 26, 24, 0.52);
	max-width: 34ch;
}

.ed-wa-link__inner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ed-icon--whatsapp {
	flex-shrink: 0;
	color: var(--o3w-vert, #2f4a3e);
	opacity: 0.85;
	transition: opacity 0.35s var(--o3w-ease, ease), color 0.35s var(--o3w-ease, ease);
}

.ed-contact-channel__link:hover .ed-icon--whatsapp {
	color: var(--o3w-vert-deep, #243d32);
	opacity: 1;
}

.ed-contact-channel__link--address {
	font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.ed-contact-channel__link--google {
	font-size: clamp(1rem, 1.35vw, 1.15rem);
}

/* ——— Panneau formulaire ——— */
.ed-contact-panel {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 20px 56px rgba(28, 26, 24, 0.05);
	padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
}

.ed-contact-panel__head {
	margin-bottom: clamp(28px, 3.5vw, 36px);
}

.ed-contact-panel__title {
	margin: 0 0 10px;
	font-family: var(--o3w-font-display);
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--o3w-ink, #1c1a18);
}

.ed-contact-panel__intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(28, 26, 24, 0.55);
	max-width: 48ch;
}

/* ——— Ajax : alertes + remerciement ——— */
.ed-contact-form-wrap {
	position: relative;
}

.ed-contact-form__alerts:not(:empty) {
	margin-bottom: 24px;
}

.ed-contact-form[hidden] {
	display: none;
}

.ed-contact-success {
	padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px);
	border: 1px solid rgba(47, 74, 62, 0.22);
	background: rgba(47, 74, 62, 0.05);
	text-align: left;
}

.ed-contact-success__title {
	margin: 0 0 12px;
	font-family: var(--o3w-font-display);
	font-size: clamp(1.35rem, 2vw, 1.6rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--o3w-ink, #1c1a18);
}

.ed-contact-success__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(28, 26, 24, 0.68);
	max-width: 42ch;
}

/* ——— Notices ——— */
.ed-page-contact .o3w-notice,
.ed-page-contact .ed-contact-notice {
	margin: 0 0 28px;
	padding: 14px 18px;
	border: 1px solid rgba(47, 74, 62, 0.25);
	border-radius: var(--o3w-radius, 2px);
	background: rgba(47, 74, 62, 0.06);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	font-weight: 400;
}

.ed-page-contact .o3w-notice--error,
.ed-page-contact .ed-contact-notice--error {
	border-color: rgba(160, 48, 48, 0.25);
	background: rgba(160, 48, 48, 0.06);
}

.ed-page-contact .o3w-notice p,
.ed-page-contact .ed-contact-notice p {
	margin: 0;
}

/* ——— Formulaire ——— */
.ed-contact-form {
	position: relative;
}

.ed-cf-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ed-cf-trap input {
	opacity: 0;
	pointer-events: none;
}

.ed-cf-section {
	margin: 0 0 clamp(32px, 4vw, 40px);
	padding: 0;
	border: 0;
	min-width: 0;
}

.ed-cf-section:last-of-type {
	margin-bottom: clamp(24px, 3vw, 32px);
}

.ed-cf-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ed-cf-section__legend {
	margin: 0;
	padding: 0;
	font-family: var(--o3w-font-heading);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(28, 26, 24, 0.5);
}

.ed-cf-section__num {
	margin-right: 0.35em;
	color: var(--o3w-vert, #2f4a3e);
}

.ed-cf-section__tag {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(28, 26, 24, 0.38);
}

.ed-cf-grid {
	display: grid;
	gap: 22px 28px;
}

.ed-cf-grid--2 {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.ed-cf-grid--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.ed-cf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.ed-cf-field--full {
	grid-column: 1 / -1;
}

.ed-cf-label {
	font-family: var(--o3w-font-heading);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(28, 26, 24, 0.72);
}

.ed-cf-req {
	color: var(--o3w-vert, #2f4a3e);
	font-weight: 600;
}

.ed-cf-hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(28, 26, 24, 0.48);
}

.ed-cf-field input,
.ed-cf-field textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 12px 0;
	border: none;
	border-bottom: 1px solid rgba(28, 26, 24, 0.16);
	border-radius: 0 !important;
	background: transparent;
	font-family: var(--o3w-font-body);
	font-size: 16px;
	line-height: 1.4;
	color: var(--o3w-ink, #1c1a18);
	transition: border-color 0.3s var(--o3w-ease, ease), box-shadow 0.3s var(--o3w-ease, ease);
	-webkit-appearance: none;
	appearance: none;
}

.ed-cf-field textarea {
	min-height: 140px;
	padding-top: 14px;
	resize: vertical;
}

.ed-cf-field input::placeholder,
.ed-cf-field textarea::placeholder {
	color: rgba(28, 26, 24, 0.32);
}

.ed-cf-field input:hover,
.ed-cf-field textarea:hover {
	border-bottom-color: rgba(28, 26, 24, 0.28);
}

.ed-cf-field input:focus,
.ed-cf-field textarea:focus {
	outline: none;
	border-bottom-color: transparent;
	box-shadow: inset 0 -2px 0 var(--o3w-vert, #2f4a3e);
}

.ed-cf-select {
	position: relative;
	display: block;
	width: 100%;
	border-bottom: 1px solid rgba(28, 26, 24, 0.16);
	transition: border-color 0.3s var(--o3w-ease, ease), box-shadow 0.3s var(--o3w-ease, ease);
}

.ed-cf-select::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	z-index: 1;
	width: 10px;
	height: 6px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%235c5854' stroke-width='1.25' stroke-linecap='round' d='M1 1 5 5 9 1'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.ed-cf-select:hover {
	border-bottom-color: rgba(28, 26, 24, 0.28);
}

.ed-cf-field:not(.is-invalid) .ed-cf-select:focus-within {
	border-bottom-color: transparent;
	box-shadow: inset 0 -2px 0 var(--o3w-vert, #2f4a3e);
}

.ed-cf-field.is-invalid .ed-cf-select {
	border-bottom-color: transparent;
	box-shadow: inset 0 -2px 0 #a03030;
}

.ed-cf-select select {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 22px 12px 0;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	font-family: var(--o3w-font-body);
	font-size: 16px;
	line-height: 1.4;
	color: var(--o3w-ink, #1c1a18);
	cursor: pointer;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.ed-cf-select select:focus {
	outline: none;
}

.ed-cf-select select::-ms-expand {
	display: none;
}

/* Zone de saisie — barre d’outils + éditeur */
.ed-cf-compose {
	position: relative;
	isolation: isolate;
	border: 1px solid rgba(28, 26, 24, 0.1);
	background: var(--o3w-paper, #f6f3ee);
	transition: border-color 0.3s var(--o3w-ease, ease);
}

.ed-cf-compose:focus-within {
	border-color: rgba(47, 74, 62, 0.45);
}

/* Extensions navigateur (Grammarly, etc.) — ne pas polluer la barre d’outils */
.ed-cf-compose grammarly-extension,
.ed-cf-compose grammarly-desktop-integration,
.ed-cf-compose [data-grammarly-part],
.ed-cf-compose .gr_-editor-card,
.ed-cf-compose .gr_-btn {
	display: none !important;
}

.ed-cf-toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.55);
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.ed-cf-toolbar > :not(.ed-cf-tool):not(.ed-cf-toolbar__sep) {
	display: none !important;
}

.ed-cf-toolbar__sep {
	flex-shrink: 0;
	width: 1px;
	height: 18px;
	margin: 0 6px;
	background: rgba(28, 26, 24, 0.12);
}

.ed-cf-tool--history {
	min-width: 34px;
	width: 34px;
	height: 32px;
	padding: 0;
}

.ed-cf-tool--history .ed-cf-tool__icon {
	display: block;
	color: rgba(28, 26, 24, 0.72);
}

.ed-cf-tool--history:hover .ed-cf-tool__icon {
	color: var(--o3w-vert-deep, #243d32);
}

/* Validation champs */
.ed-cf-field {
	position: relative;
}

.ed-cf-field-error {
	display: none;
	margin: 0;
	padding: 8px 12px;
	font-family: var(--o3w-font-body);
	font-size: 13px;
	line-height: 1.45;
	color: #6b2424;
	background: #faf5f5;
	border: 1px solid rgba(160, 48, 48, 0.22);
	border-radius: var(--o3w-radius, 2px);
	box-shadow: 0 6px 16px rgba(28, 26, 24, 0.06);
}

.ed-cf-field.is-invalid .ed-cf-field-error {
	display: block;
}

.ed-cf-field.is-invalid input,
.ed-cf-field.is-invalid textarea {
	border-bottom-color: transparent;
	box-shadow: inset 0 -2px 0 #a03030;
}

.ed-cf-field.is-invalid .ed-cf-compose {
	border-color: rgba(160, 48, 48, 0.45);
	box-shadow: 0 0 0 1px rgba(160, 48, 48, 0.2);
}

.ed-cf-footer.is-invalid .ed-cf-consent {
	outline: 2px solid rgba(160, 48, 48, 0.35);
	outline-offset: 4px;
	border-radius: 2px;
}

.ed-cf-compose .ed-cf-toolbar .ed-cf-tool {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	margin: 0;
	padding: 0 10px;
	border: none !important;
	border-radius: 2px;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--o3w-font-heading);
	font-size: 13px;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.02em;
	line-height: 1;
	color: rgba(28, 26, 24, 0.55);
	cursor: pointer;
	transition:
		background 0.25s var(--o3w-ease, ease),
		color 0.25s var(--o3w-ease, ease);
}

.ed-cf-compose .ed-cf-toolbar .ed-cf-tool:hover {
	background: rgba(47, 74, 62, 0.08) !important;
	color: var(--o3w-vert-deep, #243d32);
}

.ed-cf-compose .ed-cf-toolbar .ed-cf-tool:focus-visible {
	outline: 2px solid var(--o3w-vert, #2f4a3e);
	outline-offset: 1px;
}

.ed-cf-editor {
	min-height: 160px;
	padding: 16px 18px 20px;
	font-family: var(--o3w-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--o3w-ink, #1c1a18);
	outline: none;
}

.ed-cf-editor:empty::before {
	content: attr(data-placeholder);
	color: rgba(28, 26, 24, 0.32);
	pointer-events: none;
}

.ed-cf-editor.is-invalid {
	box-shadow: inset 0 0 0 1px rgba(160, 48, 48, 0.35);
}

.ed-cf-editor strong,
.ed-cf-editor b {
	font-weight: 600;
}

.ed-cf-editor em,
.ed-cf-editor i {
	font-style: italic;
}

.ed-cf-editor-fallback {
	display: none !important;
}

/* Chips — mode de contact */
.ed-cf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ed-cf-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ed-cf-chip input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.ed-cf-chip__text {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid rgba(28, 26, 24, 0.12);
	border-radius: 999px;
	font-family: var(--o3w-font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(28, 26, 24, 0.72);
	background: var(--o3w-paper, #f6f3ee);
	transition:
		border-color 0.3s var(--o3w-ease, ease),
		background 0.3s var(--o3w-ease, ease),
		color 0.3s var(--o3w-ease, ease);
}

.ed-cf-chip:hover .ed-cf-chip__text {
	border-color: rgba(47, 74, 62, 0.35);
	color: var(--o3w-ink, #1c1a18);
}

.ed-cf-chip input:focus-visible + .ed-cf-chip__text {
	outline: 2px solid var(--o3w-vert, #2f4a3e);
	outline-offset: 2px;
}

.ed-cf-chip input:checked + .ed-cf-chip__text {
	border-color: var(--o3w-vert, #2f4a3e);
	background: rgba(47, 74, 62, 0.08);
	color: var(--o3w-vert-deep, #243d32);
}

/* Consentement + envoi */
.ed-cf-footer {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ed-cf-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	cursor: pointer;
}

.ed-cf-consent input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--o3w-vert, #2f4a3e);
}

.ed-cf-consent__text {
	font-size: 13px;
	line-height: 1.55;
	color: rgba(28, 26, 24, 0.58);
}

.ed-cf-consent__text a {
	color: var(--o3w-vert, #2f4a3e);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ed-contact-form .ed-cf-footer button.ed-footer__contact-cta:disabled {
	opacity: 0.55;
	cursor: wait;
	transform: none;
}

@media (max-width: 1023px) {
	.ed-page-contact__body .ed-shell-body__inner {
		padding-inline: var(--ed-shell-pad-x, 48px);
	}

	.ed-page-contact__grid {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.ed-page-contact__grid .ed-shell-body__label {
		margin-bottom: 0;
	}
}

@media (max-width: 639px) {
	.ed-contact-panel {
		padding: 24px 20px;
	}

	.ed-cf-chips {
		gap: 8px;
	}

	.ed-cf-chip__text {
		padding: 9px 14px;
		font-size: 12px;
	}
}
