/**
 * Page « Contact » : reprise fidèle de la maquette validée (ordinateur et smartphone).
 *
 * @package ReveNomades
 */


/* ================= Contact : écrire ici, ou depuis sa propre messagerie ================= */

.ct {
	position: relative;
	padding: clamp(140px,12vw,180px) 0 clamp(90px,9vw,140px);
	min-height: 72vh;
}

.ct .wrap-wide > .blk.inl {
	margin: 0 0 24px;
}

.ct-grid {
	display: grid;
	grid-template-columns: minmax(0,7fr) minmax(0,4fr);
	grid-template-areas: "head side" "form side";
	column-gap: clamp(32px,6vw,120px);
	row-gap: clamp(26px,3vw,40px);
	align-items: start;
	max-width: 1500px;
}

.ct-head {
	grid-area: head;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(14px,1.6vw,22px);
	min-width: 0;
}

.ct-k {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--kick);
}

.ct-k::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
}

.ct-title {
	margin: 0;
	font-size: clamp(60px,8.6vw,150px);
	line-height: .82;
}

.ct-lead {
	margin: 0;
	max-width: 54ch;
	font-size: clamp(14px,1.15vw,17px);
	line-height: 1.75;
}


/* le formulaire */

.ct-body {
	grid-area: form;
	min-width: 0;
}

.ct-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ct-row2 {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 20px;
}

.ct-f {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.ct-f > .mono {
	color: var(--fg2);
}

.ct-f input,
.ct-f textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 0;
	background: color-mix(in srgb,var(--fg) 4%,transparent);
	color: var(--fg);
	padding: 14px 16px;
	font-family: var(--f-text);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .25s,background .25s;
}

.ct-f input::placeholder,
.ct-f textarea::placeholder {
	color: var(--fg2);
	opacity: .8;
}

.ct-f input:focus,
.ct-f textarea:focus {
	outline: none;
	border-color: var(--fg);
	background: color-mix(in srgb,var(--fg) 7%,transparent);
}

.ct-f textarea {
	resize: vertical;
	min-height: 180px;
}

.ct-subj {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ct-subj legend {
	padding: 0;
	margin: 0 0 10px;
	color: var(--fg2);
}

.ct-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ct-chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition: background .25s,color .25s,border-color .25s;
}

.ct-chip:hover {
	border-color: var(--fg);
}

.ct-chip.on {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.ct-err {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--fg);
	font-size: 13px;
	line-height: 1.6;
}

.ct-err i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
}

.ct-send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

.ct-note {
	margin: 0;
	color: var(--fg2);
	font-size: 12px;
	line-height: 1.6;
}

.ct-done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: clamp(22px,2.4vw,34px) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.ct-done-t {
	margin: 0;
	font-family: var(--f-sub);
	font-weight: 600;
	font-size: clamp(20px,1.8vw,26px);
	line-height: 1.35;
	max-width: 38ch;
}


/* nos coordonnées : l’adresse e-mail bien visible, l’adresse postale, les réseaux */

.ct-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ct-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(18px,1.8vw,26px) 0;
	border-top: 1px solid var(--line);
}

.ct-card:last-child {
	border-bottom: 1px solid var(--line);
}

.ct-mail {
	font-family: var(--f-sub);
	font-weight: 600;
	letter-spacing: .01em;
	font-size: clamp(20px,1.8vw,28px);
	line-height: 1.2;
	color: var(--fg);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	overflow-wrap: anywhere;
	transition: border-color .3s;
}

.ct-mail:hover {
	border-bottom-color: currentcolor;
}

.ct-lab {
	color: var(--fg2);
}

.ct-post {
	margin: 0;
	font-style: normal;
	font-family: var(--f-sub);
	font-weight: 600;
	letter-spacing: .01em;
	font-size: clamp(18px,1.5vw,22px);
	line-height: 1.4;
}

.ct-soc {
	display: flex;
	gap: 6px;
	margin-left: -10px;
}

.ct-soc a {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--fg);
	transition: color .3s,transform .3s;
}

.ct-soc a:hover {
	color: var(--kick);
	transform: translateY(-2px);
}




/* ---------- Petits écrans ---------- */


@media (max-width: 899px) {
	.ct {
		padding-top: clamp(116px,30vw,150px);
	}

	.ct-grid {
		grid-template-columns: minmax(0,1fr);
		grid-template-areas: "head" "side" "form";
	}
}


@media (max-width: 640px) {
	.ct-title {
		font-size: clamp(52px,16vw,88px);
	}

	.ct-row2 {
		grid-template-columns: minmax(0,1fr);
	}

	.ct-chip {
		min-height: 36px;
		padding: 0 13px;
	}

	.ct-send .btn {
		width: 100%;
	}

	.ct-mail {
		font-size: 19px;
	}
}

/* Champ piège (anti-robots) : invisible pour les visiteurs et les lecteurs d’écran. */
.ct-piege {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Demande de participation : l’événement concerné, au-dessus du formulaire. */
.ct-evt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--verm);
}

.ct-evt .mono {
	color: var(--fg2);
}

.ct-evt strong {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 18px;
	line-height: 1.1;
}

.ct-rgpd {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--fg2);
}

.ct-form[aria-busy="true"] .btn {
	opacity: .6;
	pointer-events: none;
}

.ct-form[hidden],
.ct-err[hidden],
.ct-done[hidden] {
	display: none !important;
}
