/* Bloc : formulaire de contact */

.ww-contact-form--boxed {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--ww-radius-lg);
}

.ww-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ww-space-4);
}

.ww-contact-form--stacked .ww-form__grid {
	grid-template-columns: minmax(0, 1fr);
}

.ww-form__field { margin: 0; }
.ww-form__field--full { grid-column: 1 / -1; }

.ww-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: var(--ww-space-3);
	font-weight: 400;
	font-size: var(--ww-text-sm);
}

.ww-form__consent input { margin-top: 0.25em; }

.ww-form__actions { margin: var(--ww-space-5) 0 0; }

.ww-form__required {
	margin: var(--ww-space-3) 0 0;
	font-size: var(--ww-text-xs);
	color: var(--ww-color-muted);
}

/* Champ piège : masqué pour les humains, visible pour les robots. */
.ww-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ww-form__notice {
	padding: var(--ww-space-4) var(--ww-space-5);
	border-radius: var(--ww-radius);
	border-left: 4px solid;
	font-weight: 600;
}

.ww-form__notice--success {
	background: color-mix(in srgb, var(--ww-color-accent) 30%, var(--ww-color-light));
	border-color: var(--ww-color-accent);
	color: var(--ww-color-dark);
}

.ww-form__notice--error {
	background: color-mix(in srgb, var(--ww-color-highlight) 22%, var(--ww-color-light));
	border-color: var(--ww-color-highlight);
	color: var(--ww-color-dark);
}

@media (max-width: 768px) {
	.ww-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Modèle épuré ------------------------------------------------------------ */

.ww-contact-form--compact {
	max-width: 500px;
	margin-inline: auto;
	text-align: center;
}

.ww-contact-form--compact .ww-section-head {
	margin-bottom: var(--ww-space-6);
}

.ww-contact-form--compact .ww-title {
	font-size: var(--ww-text-lg);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
}

.ww-form__icon {
	display: inline-flex;
	margin-bottom: var(--ww-space-4);
	color: var(--ww-color-primary);
}

.ww-form__icon .ww-icon {
	width: 3.25rem;
	height: 3.25rem;
}

.ww-contact-form--compact .ww-form__grid {
	gap: var(--ww-space-5);
}

.ww-contact-form--compact textarea {
	background: var(--ww-color-border);
	border: none;
	border-radius: var(--ww-radius-sm);
	padding: 16px 18px;
	resize: vertical;
}

/* Champ souligné, sans cadre. */
.ww-form__field--underline input {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--ww-color-muted);
	border-radius: 0;
	padding: 8px 4px;
	text-align: center;
}

.ww-form__field--underline input:focus {
	box-shadow: none;
	border-bottom-color: var(--ww-color-dark);
}

.ww-contact-form--compact .ww-form__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ww-space-5);
}

.ww-form__privacy-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 0;
	font-size: var(--ww-text-xs);
	color: inherit;
	cursor: pointer;
}

.ww-form__privacy-toggle:hover {
	color: var(--ww-color-link);
}

.ww-form__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
}

.ww-form__privacy {
	margin: var(--ww-space-4) 0 0;
	padding: 16px 18px;
	background: var(--ww-color-surface);
	border-radius: var(--ww-radius-sm);
	font-size: var(--ww-text-xs);
	line-height: 1.65;
	text-align: left;
}

.ww-contact-form--compact .ww-form__submit {
	background: var(--ww-color-border);
	color: var(--ww-color-dark);
	border-radius: 4px;
	padding: 9px 20px;
	font-size: var(--ww-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ww-form__phone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: var(--ww-space-6);
}

.ww-form__phone-label {
	font-size: var(--ww-text-sm);
}

.ww-form__phone-number {
	font-family: var(--ww-font-display);
	font-weight: 700;
	font-size: var(--ww-text-lg);
	color: inherit;
	text-decoration: none;
}

.ww-form__phone-number:hover {
	color: var(--ww-color-link);
}
