/*
 * E2IT - page Contact. Prefixe ct-.
 *
 * Heros, corps qui remonte sur le heros (formulaire + colonne), et habillage
 * du formulaire Fluent Forms « Contact » aux proportions du dossier. Les
 * regles du formulaire passent par .ct-form .fluentform, avec :not(#e2it)
 * quand il faut l emporter sur la feuille de Fluent Forms.
 */

/* ==================================================================
   Heros
   ================================================================== */
.ct-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.ct-hero__fond {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ct-hero__fond img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ct-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(7, 28, 62, .96) 0%, rgba(11, 46, 94, .88) 55%, rgba(11, 46, 94, .7) 100%);
}

/* Sous l en-tete (88 px) ; 150 px en bas : le formulaire remonte dessus. */
.ct-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: calc(88px + 64px) 40px 150px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 40px;
	align-items: end;
}

.ct-hero__texte {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ct-hero .ct-hero__titre:not(#e2it) {
	margin: 0;
	font-size: clamp(42px, 5vw, 66px);
	line-height: .98;
	letter-spacing: -.036em;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

.ct-hero__titre em {
	font-style: italic;
	color: var(--e2it-glacier);
}

.ct-hero__intro {
	margin: 0;
	max-width: 500px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--e2it-bleu-clair);
}

/* Carte d appel */
.ct-appel {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border-radius: 14px;
	background: rgba(7, 28, 62, .7);
	border: 1px solid rgba(169, 196, 229, .3);
	color: var(--e2it-blanc);
	text-decoration: none;
	transition: border-color .24s ease;
}

@media (hover: hover) {
	.ct-appel:hover {
		border-color: var(--e2it-blanc);
		color: var(--e2it-blanc);
	}
}

.ct-appel__photo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--e2it-bleu-profond);
}

.ct-appel__photo--initiales {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: 500 15px/1 var(--e2it-police-mono);
	letter-spacing: .08em;
	color: var(--e2it-glacier);
	border: 1px solid rgba(169, 196, 229, .4);
}

.ct-appel__qui {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ct-appel__nom {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 20px;
	line-height: 1.2;
}

.ct-appel__fonction {
	font-size: 14px;
	color: var(--e2it-glacier);
}

.ct-appel__tel {
	font: 500 20px/1 var(--e2it-police-mono);
	letter-spacing: .04em;
	white-space: nowrap;
}

/* ==================================================================
   Corps : formulaire + colonne, qui remontent sur le heros
   ================================================================== */
.ct-corps {
	position: relative;
	z-index: 3;
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: -100px auto 0;
	padding: 0 40px 88px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.ct-form {
	flex: 2 1 560px;
	min-width: 0;
	background: var(--e2it-blanc);
	border: 1px solid var(--e2it-bordure);
	border-radius: 16px;
	box-shadow: 0 24px 56px rgba(7, 28, 62, .14);
	padding: 36px;
	box-sizing: border-box;
}

.ct-infos {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ==================================================================
   Formulaire Fluent Forms
   ================================================================== */
.ct-form .fluentform fieldset:not(#e2it) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

.ct-form .fluentform .ff-el-group:not(#e2it) {
	margin: 0;
	grid-column: 1 / -1;
}

.ct-form .fluentform .ff-el-group.ct-demi:not(#e2it) {
	grid-column: auto;
}

.ct-form .fluentform .ff_screen_reader_title {
	grid-column: 1 / -1;
}

/* Legendes d etape en mono. */
.ct-legende {
	margin: 6px 0 -4px;
	font: 500 11px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.ct-form .fluentform .ff-el-group:first-child .ct-legende {
	margin-top: 0;
}

/* Libelles des champs. */
.ct-form .fluentform .ff-el-input--label label:not(#e2it) {
	font-family: var(--e2it-police);
	font-size: 14px;
	font-weight: 600;
	color: var(--e2it-texte);
}

.ct-form .fluentform .ff-el-input--label:not(#e2it) {
	margin-bottom: 7px;
}

.ct-form .fluentform .ff-el-is-required.asterisk-right label::after {
	color: var(--e2it-bleu-profond);
}

/* Champs : 16 px (pas de zoom sur iOS), fond gris, focus bleu. */
.ct-form .fluentform .ff-el-form-control:not(#e2it) {
	font: 16px/1.55 var(--e2it-police);
	padding: 13px 16px;
	border: 1.5px solid var(--e2it-bordure);
	border-radius: 8px;
	background: var(--e2it-fond-gris);
	color: var(--e2it-texte);
	box-shadow: none;
	transition: border-color .2s ease, background-color .2s ease;
}

.ct-form .fluentform textarea.ff-el-form-control:not(#e2it) {
	min-height: 150px;
	resize: vertical;
}

.ct-form .fluentform .ff-el-form-control:focus:not(#e2it) {
	border-color: var(--e2it-accent);
	background: var(--e2it-blanc);
	outline: none;
}

.ct-form .fluentform .ff-el-form-control::placeholder {
	color: #8A93A2;
}

/* ---- 01 Tuiles de demande ---- */
.ct-form .fluentform .ct-types .ff-el-input--label,
.ct-form .fluentform .ct-sites .ff-el-input--label {
	/* Le libelle reste lu, la legende d etape le montre deja. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.ct-form .fluentform .ct-types .ff-el-input--content:not(#e2it) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}

.ct-form .fluentform .ct-types .ff-el-form-check:not(#e2it),
.ct-form .fluentform .ct-sites .ff-el-form-check:not(#e2it) {
	margin: 0;
	padding: 0;
}

.ct-form .fluentform :is(.ct-types, .ct-sites) input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ct-form .fluentform .ct-types .ff-el-form-check-label:not(#e2it) {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 14px 16px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1.5px solid var(--e2it-bordure);
	background: var(--e2it-blanc);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.ct-form .fluentform .ct-types .ff-el-form-check-label > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	font-size: 15px;
	color: var(--e2it-marine);
}

.ct-type__sous {
	font-weight: 400;
	font-size: 13px;
	line-height: 1.35;
	color: var(--e2it-texte-secondaire);
}

@media (hover: hover) {
	.ct-form .fluentform .ct-types .ff-el-form-check-label:hover {
		border-color: var(--e2it-marine);
	}
}

.ct-form .fluentform .ct-types .ff-el-form-check-label:has(input:checked):not(#e2it) {
	background: var(--e2it-marine);
	border-color: var(--e2it-marine);
}

.ct-form .fluentform .ct-types .ff-el-form-check-label:has(input:checked) > span {
	color: var(--e2it-blanc);
}

.ct-form .fluentform .ct-types .ff-el-form-check-label:has(input:checked) .ct-type__sous {
	color: var(--e2it-bleu-clair);
}

.ct-form .fluentform :is(.ct-types, .ct-sites) .ff-el-form-check-label:has(input:focus-visible) {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 2px;
}

/* ---- Pastilles de site ---- */
.ct-form .fluentform .ct-sites .ff-el-input--content:not(#e2it) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ct-form .fluentform .ct-sites .ff-el-input--content::before {
	content: "Votre site :";
	margin-right: 4px;
	font-size: 14px;
	color: var(--e2it-texte-secondaire);
}

.ct-form .fluentform .ct-sites .ff-el-form-check-label:not(#e2it) {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: var(--e2it-rayon-pilule);
	border: 1.5px solid var(--e2it-bordure);
	background: var(--e2it-blanc);
	color: var(--e2it-texte-secondaire);
	font-size: 14px;
	cursor: pointer;
}

.ct-form .fluentform .ct-sites .ff-el-form-check-label:has(input:checked):not(#e2it) {
	background: var(--e2it-bleu-pale);
	border-color: var(--e2it-marine);
	color: var(--e2it-marine);
	font-weight: 600;
}

/* ---- Encart depannage ---- */
.ct-urgence {
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--e2it-bleu-pale);
	border-left: 3px solid var(--e2it-accent);
	font-size: 15px;
	line-height: 1.5;
	color: var(--e2it-texte);
}

.ct-urgence a {
	font-family: var(--e2it-police-mono);
	font-weight: 500;
	color: var(--e2it-bleu-profond);
	white-space: nowrap;
}

/* ---- Consentement ---- */
.ct-form .fluentform .ct-rgpd .ff-el-form-check-label:not(#e2it) {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.55;
	color: var(--e2it-texte-secondaire);
}

.ct-form .fluentform .ct-rgpd input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--e2it-marine);
}

.ct-form .fluentform .ct-rgpd a {
	color: var(--e2it-bleu-profond);
	text-decoration: underline;
}

/* ---- Pied du formulaire : texte a gauche, bouton a droite ---- */
.ct-form .fluentform .ct-envoi-texte:not(#e2it) {
	grid-column: 1;
	align-self: center;
	padding-top: 22px;
	border-top: 1px solid var(--e2it-bordure);
}

.ct-form .fluentform .ct-envoi-bouton:not(#e2it) {
	grid-column: 2;
	padding-top: 22px;
	border-top: 1px solid var(--e2it-bordure);
	text-align: right;
}

.ct-envoi__texte {
	margin: 0;
	font-size: 14px;
	color: var(--e2it-texte-secondaire);
}

.ct-form .fluentform .ff-btn-submit:not(#e2it) {
	min-height: 52px;
	padding: 0 30px;
	font-size: 16px;
}

/* Erreurs de validation. */
.ct-form .fluentform .error.text-danger {
	margin-top: 6px;
	font-size: 13px;
	color: #B42318;
}

.ct-form .fluentform .ff-el-is-error .ff-el-form-control:not(#e2it) {
	border-color: #B42318;
}

/* ---- Apres envoi ---- */
.ct-merci {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 12px 0;
}

.ct-merci strong {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 30px;
	letter-spacing: -.02em;
	color: var(--e2it-marine);
}

.ct-merci p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--e2it-texte-secondaire);
}

.ct-merci__coche {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--e2it-marine);
}

.ct-merci__coche::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 14px;
	width: 10px;
	height: 18px;
	border: solid var(--e2it-blanc);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.ct-form .ff-message-success:not(#e2it) {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none;
}

/* ==================================================================
   Colonne d informations
   ================================================================== */
.ct-carte {
	background: var(--e2it-blanc);
	border: 1px solid var(--e2it-bordure);
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ct-carte:first-child {
	box-shadow: 0 24px 56px rgba(7, 28, 62, .1);
}

.ct-mono {
	margin: 0;
	font: 500 11px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.ct-etapes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ct-etapes li {
	display: flex;
	gap: 14px;
}

.ct-etapes li > span {
	width: 30px;
	height: 30px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--e2it-bleu-pale);
	color: var(--e2it-marine);
	font: 500 11px/1 var(--e2it-police-mono);
}

.ct-etapes li:first-child > span {
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.ct-etapes p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--e2it-texte-secondaire);
}

.ct-etapes strong {
	color: var(--e2it-texte);
}

.ct-carte--siege {
	padding: 0;
	overflow: hidden;
	background: var(--e2it-fond-gris);
	gap: 0;
}

.ct-carte--siege > div {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ct-plan:not(#e2it) {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	background: var(--e2it-bleu-pale);
}

.ct-carte address,
.ct-horaires {
	margin: 0;
	font-style: normal;
	font-size: 15px;
	line-height: 1.55;
	color: var(--e2it-texte);
}

.ct-liens {
	margin: 0;
	padding-top: 4px;
	display: flex;
	gap: 8px 18px;
	flex-wrap: wrap;
}

.ct-liens a {
	font-weight: 600;
	font-size: 14px;
	color: var(--e2it-bleu-profond);
	text-decoration: none;
}

.ct-liens a:hover {
	text-decoration: underline;
}

.ct-liens a:first-child::after {
	content: " →";
}

.ct-emploi {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	color: var(--e2it-texte);
	text-decoration: none;
	font-size: 15px;
	transition: border-color .2s ease;
}

.ct-emploi__fleche::after {
	content: "→";
	color: var(--e2it-bleu-profond);
}

@media (hover: hover) {
	.ct-emploi:hover {
		border-color: var(--e2it-marine);
		color: var(--e2it-texte);
	}
}

/* ==================================================================
   Mobile
   ================================================================== */
@media (max-width: 767px) {
	.ct-hero__inner {
		padding: calc(92px + 32px) 20px 120px;
		gap: 28px;
	}

	.ct-hero__intro {
		font-size: 16px;
	}

	.ct-appel {
		grid-template-columns: 48px minmax(0, 1fr);
		row-gap: 6px;
		padding: 18px;
	}

	.ct-appel__photo {
		width: 48px;
		height: 48px;
		grid-row: span 2;
	}

	.ct-appel__tel {
		font-size: 18px;
	}

	.ct-corps {
		padding: 0 16px 56px;
		margin-top: -80px;
	}

	.ct-form {
		padding: 24px 20px;
	}

	.ct-form .fluentform fieldset:not(#e2it) {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-form .fluentform :is(.ct-envoi-texte, .ct-envoi-bouton):not(#e2it) {
		grid-column: 1;
	}

	.ct-form .fluentform .ct-envoi-bouton:not(#e2it) {
		padding-top: 0;
		border-top: 0;
	}

	.ct-form .fluentform .ff-btn-submit:not(#e2it) {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-appel,
	.ct-emploi,
	.ct-form .fluentform .ct-types .ff-el-form-check-label,
	.ct-form .fluentform .ff-el-form-control {
		transition: none;
	}
}
