/* ==========================================================================
   Page Contact (page-contact.php) — maquette design/Contact.dc.html
   ========================================================================== */

/* ---------- 01 Héros ---------- */
.te-contact-hero .te-hero-dark__intro { max-width: 560px; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.86); text-wrap: pretty; }
.te-contact-hero .te-actions { margin-top: 10px; }
.te-contact-intent {
	display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: var(--white); font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap;
	transition: background .25s, color .25s, border-color .25s;
}
.te-contact-intent:hover, .te-contact-intent:focus-visible { background: var(--brown); border-color: var(--brown); color: var(--ink); }
.te-contact-intent__arrow {
	flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--ink);
	display: flex; align-items: center; justify-content: center; transform: rotate(-45deg);
}

/* ---------- 02 Formulaire ---------- */
.te-contact { position: relative; z-index: 3; scroll-margin-top: 110px; }
.te-contact__card {
	display: grid; grid-template-columns: 400px minmax(0, 1fr); border-radius: 28px; overflow: hidden;
	background: var(--white); box-shadow: 0 50px 90px -40px rgba(26,23,22,.45);
}

/* Colonne sombre */
.te-contact__aside {
	position: relative; overflow: hidden; padding: 44px 38px; background: var(--ink); color: var(--white);
	display: flex; flex-direction: column; gap: 28px;
}
.te-contact__aside > * { position: relative; }
.te-contact__glow {
	position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(166,124,82,.45), rgba(166,124,82,0) 70%);
}
.te-contact__title { line-height: 1.15; color: var(--white); }
.te-contact__infos { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.te-contact__info { display: flex; align-items: center; gap: 14px; color: var(--white); }
.te-contact__info:hover { color: var(--brown-light); }
.te-contact__ico {
	flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--brown-light);
	display: flex; align-items: center; justify-content: center;
}
.te-contact__ico--fill { background: var(--brown); color: var(--ink); }
.te-contact__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.te-contact__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C9C0B8; }
.te-contact__txt strong { font-size: 17px; overflow-wrap: anywhere; }

.te-contact__place {
	margin-top: auto; height: 210px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: var(--ink-2);
}
.te-contact__place img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.te-contact__route {
	position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 14px; font-weight: 700;
	transition: background .25s;
}
.te-contact__route:hover { background: var(--brown); color: var(--ink); }
.te-contact__direct { font-size: 15px; color: #C9C0B8; }
.te-contact__direct a { font-weight: 700; color: var(--white); overflow-wrap: anywhere; }
.te-contact__direct a:hover { color: var(--brown-light); }

/* Colonne formulaire */
.te-contact__main { padding: 44px 44px 40px; min-width: 0; }
.te-contact__form { gap: 18px; }
.te-contact__form .te-fields { gap: 18px; }
.te-contact__form .te-field,
.te-contact__subjects legend {
	gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.te-contact__form .te-field abbr { letter-spacing: 0; }
.te-contact__form .te-field input,
.te-contact__form .te-field textarea {
	height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #FBF8F4;
	padding: 0 18px; font: 16px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.te-contact__form .te-field textarea { height: auto; min-height: 130px; padding: 14px 18px; }
.te-contact__form .te-field input:focus,
.te-contact__form .te-field textarea:focus { border-color: var(--brown); background: var(--white); box-shadow: 0 0 0 3px rgba(166,124,82,.25); }
.te-contact__form .te-field.has-error input,
.te-contact__form .te-field.has-error textarea { border-color: var(--red); }
.te-contact__form .te-field__error { letter-spacing: 0; text-transform: none; }

/* Sujet : boutons radio en pastilles */
.te-contact__subjects { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.te-contact__subjects legend { display: block; margin: 0 0 8px; padding: 0; }
.te-contact__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.te-contact__pill { position: relative; display: inline-flex; cursor: pointer; }
.te-contact__pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.te-contact__pill span {
	display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
	border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink);
	font: 600 14.5px/1.3 var(--font); transition: background .25s, color .25s, border-color .25s;
}
.te-contact__pill:hover span { border-color: var(--brown); }
.te-contact__pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.te-contact__pill input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }

.te-contact__form .te-check { align-items: center; color: var(--text); }
.te-contact__form .te-check input { accent-color: var(--brown); margin-top: 0; }
.te-contact__submit { height: 60px; font-size: 17px; }

/* Message de confirmation */
.te-contact__form .te-form__done,
.te-contact__form .te-form__status.is-ok {
	min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 32px; text-align: center; font-size: 17px; border-radius: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.te-contact__card { grid-template-columns: 340px minmax(0, 1fr); }
	.te-contact__aside { padding: 40px 30px; }
	.te-contact__main { padding: 40px 34px 36px; }
}

@media (max-width: 900px) {
	.te-contact__card { grid-template-columns: 1fr; border-radius: 22px; }
	.te-contact__place { height: 220px; }
	.te-contact__glow { right: -160px; bottom: auto; top: -160px; }
}

@media (max-width: 700px) {
	.te-contact-hero .te-hero-dark__intro { font-size: 17px; }
	.te-contact-intent { white-space: normal; }
	.te-contact__aside { padding: 32px 22px; gap: 24px; }
	.te-contact__main { padding: 30px 20px 28px; }
	.te-contact__txt strong { font-size: 16px; }
}

@media (max-width: 480px) {
	.te-contact-hero .te-actions .te-contact-intent { width: 100%; }
	.te-contact__card { border-radius: 18px; }
	.te-contact__pill span { min-height: 40px; padding: 9px 14px; font-size: 14px; }
}
