/* Turkish Esthetic — formulaire de diagnostic */
.te-diag {
	--te-ink: #10222E;
	--te-text: #3A4A55;
	--te-muted: #5B6A74;
	--te-line: #DDE2E5;
	--te-sand: #F4F1EC;
	--te-gold: #7D5F32;
	--te-green: #0E7A43;
	--te-green-dark: #0A6236;
	max-width: 640px;
	margin: 0 auto;
	padding: 28px 22px 32px;
	background: #fff;
	border: 1px solid var(--te-line);
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(16, 34, 46, .08);
	font-family: Manrope, system-ui, -apple-system, sans-serif;
	color: var(--te-ink);
	line-height: 1.5;
	box-sizing: border-box;
}
.te-diag *, .te-diag *::before, .te-diag *::after { box-sizing: border-box; }

.te-diag__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.te-diag__back {
	flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--te-line);
	background: #fff; color: var(--te-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.te-diag__back:disabled { opacity: .35; cursor: default; }
.te-diag__progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.te-diag__count { font-size: 13px; font-weight: 700; color: var(--te-muted); letter-spacing: .02em; }
.te-diag__bar { height: 6px; border-radius: 999px; background: var(--te-sand); overflow: hidden; }
.te-diag__bar > span { display: block; height: 100%; background: var(--te-gold); border-radius: 999px; transition: width .3s ease; }

.te-diag__title { margin: 0 0 6px; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--te-ink); letter-spacing: -.01em; outline: none; text-transform: none; }
.te-diag__hint { margin: 0 0 20px; color: var(--te-text); font-size: 15px; }
.te-diag__small { margin: 18px 0 0; color: var(--te-muted); font-size: 13px; }

.te-diag__options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.te-diag__options--art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) {
	.te-diag__options--art { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.te-diag__opt {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 18px;
	border: 1.5px solid var(--te-line); border-radius: 16px; background: #fff; color: var(--te-ink);
	font: 700 16px/1.3 Manrope, system-ui, sans-serif; text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0;
	transition: border-color .15s, background-color .15s, transform .1s;
}
.te-diag__opt:hover { border-color: #B9C2C8; background: #FAFAF8; color: var(--te-ink); }
.te-diag__opt:active { transform: scale(.99); }
.te-diag__opt.is-on { border-color: var(--te-ink); background: var(--te-sand); box-shadow: inset 0 0 0 1px var(--te-ink); }
.te-diag__opt:focus-visible, .te-diag__back:focus-visible, .te-diag__next:focus-visible { outline: 3px solid #B08A52; outline-offset: 2px; }
.te-diag__options--art .te-diag__opt { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 8px; font-size: 13px; min-height: 120px; }
.te-diag__art { display: inline-flex; line-height: 0; }

.te-diag__opt--check .te-diag__box {
	flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #9AA6AE; background: #fff; position: relative;
}
.te-diag__opt--check.is-on .te-diag__box { background: var(--te-ink); border-color: var(--te-ink); }
.te-diag__opt--check.is-on .te-diag__box::after {
	content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

.te-diag__next {
	margin-top: 20px; width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--te-ink); color: #fff;
	font: 800 16px/1 Manrope, system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	cursor: pointer; text-decoration: none; padding: 0 24px; text-transform: none; letter-spacing: 0;
}
.te-diag__next:hover { background: #1C3646; color: #fff; }
.te-diag__next:disabled { opacity: .45; cursor: not-allowed; }
.te-diag__next--wa { background: var(--te-green); }
.te-diag__next--wa:hover { background: var(--te-green-dark); color: #fff; }

.te-diag__form { display: flex; flex-direction: column; gap: 16px; }
.te-diag__field { display: flex; flex-direction: column; gap: 6px; }
.te-diag__field label { font-size: 14px; font-weight: 700; color: var(--te-ink); }
.te-diag input[type="text"], .te-diag input[type="tel"], .te-diag input[type="email"], .te-diag select {
	width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--te-line); border-radius: 14px; background: #fff;
	font: 600 16px/1.3 Manrope, system-ui, sans-serif; color: var(--te-ink); box-shadow: none; margin: 0;
}
.te-diag input:focus, .te-diag select:focus { outline: none; border-color: var(--te-ink); box-shadow: 0 0 0 3px rgba(16, 34, 46, .12); }
.te-diag__tel { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; }
.te-diag__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--te-text); line-height: 1.45; }
.te-diag__consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--te-ink); }
.te-diag__consent a { color: var(--te-ink); text-decoration: underline; }
.te-diag__error { margin: 0; min-height: 0; color: #B42318; font-size: 14px; font-weight: 700; }
.te-diag__error:empty { display: none; }
.te-diag__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.te-diag__done { width: 56px; height: 56px; border-radius: 999px; background: var(--te-green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.te-diag__photos { margin: 0 0 6px; padding: 16px 16px 16px 36px; background: var(--te-sand); border-radius: 16px; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }

@media (max-width: 480px) {
	.te-diag { padding: 22px 16px 24px; border-radius: 20px; }
	.te-diag__title { font-size: 21px; }
}

/* Priorité sur les styles de boutons du thème */
.te-diag button.te-diag__next, .te-diag a.te-diag__next {
	background: var(--te-ink) !important; color: #fff !important; font: 800 16px/1 Manrope, system-ui, sans-serif !important;
	text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; border-radius: 999px !important;
	min-height: 56px !important; padding: 0 24px !important; box-shadow: none !important;
}
.te-diag button.te-diag__next--wa, .te-diag a.te-diag__next--wa { background: var(--te-green) !important; }
.te-diag button.te-diag__next--wa:hover, .te-diag a.te-diag__next--wa:hover { background: var(--te-green-dark) !important; }
.te-diag button.te-diag__opt { text-transform: none !important; letter-spacing: 0 !important; font-family: Manrope, system-ui, sans-serif !important; color: var(--te-ink) !important; }
.te-diag button.te-diag__back { background: #fff !important; color: var(--te-ink) !important; padding: 0 !important; min-height: 0 !important; }
.te-diag .te-diag__next .te-diag__art svg { stroke: currentColor; }
