/* ===========================================================================
 * Page contact unifiée — maquette Figma « Besoin d'aide V2 » (2026)
 * Tokens : #130090 navy / #ff6e00 orange / #f1f2ff lavande / #e5e6ff bordure
 *          #44404c texte / #989898 placeholder / #7c7c7c mention
 * =========================================================================== */

.mksc {
	width: 100%;
	padding: 48px 24px;
	background: linear-gradient(180deg, #f1f2ff 0%, #fff 100%);
	color: #44404c;
	font-size: 14px;
	line-height: 1.2;
}

.mksc *,
.mksc *::before,
.mksc *::after {
	box-sizing: border-box;
}

.mksc__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	max-width: 1080px;
	margin: 0 auto;
}

/* --- Assistant ---------------------------------------------------------- */
.mksc__assistant {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	width: 100%;
}

.mksc__assistant-icon {
	display: block;
	width: 64px;
	height: 64px;
	margin-bottom: -12px;
}

.mksc__assistant-title {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 8px;
	margin: 0;
	color: #130090;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

/* titre mobile court (≤767px) : « Une réponse à chaque question » */
.mksc__assistant-mobile {
	display: none;
}

/* le thème pose « h1 span { font-size: 16px; font-weight: 400 } » */
.mksc__assistant-title span {
	font-size: inherit;
	font-weight: inherit;
}

.mksc__assistant-title .mksc__assistant-brand {
	font-weight: 600;
	background: linear-gradient(67deg, #ff6e00 46%, #f00 116%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* avertissement IA sous le titre : masqué, la mention RGPD du chatbot
   (mkscb__rgpd) porte désormais l'information */
.mksc__disclaimer {
	display: none;
	margin: -12px 0 0;
	padding: 8px 16px;
	border-radius: 50px;
	background: #efefef;
	color: #989898;
	font-size: 12px;
	font-style: italic;
	line-height: 1.3;
	text-align: center;
}

.mksc__ask {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 860px;
	min-height: 156px;
	padding: 20px;
	margin: 0;
	/* bordure en dégradé (maquette) : navy à gauche, orange au centre, lavande à droite */
	border: 2px solid transparent;
	border-radius: 16px;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, #130090 0%, #ff6e00 50%, #e5e6ff 100%) border-box;
}

.mksc__ask-input {
	flex: 1;
	min-height: 96px;
	padding: 0;
	border: 0;
	background: none;
	color: #44404c;
	font-size: 14px;
	line-height: 1.4;
	resize: none;
	outline: none;
	box-shadow: none;
}

.mksc__ask-input::placeholder {
	color: #989898;
	opacity: 1;
}

.mksc__ask-send {
	align-self: flex-end;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #130090;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease;
}

.mksc__ask-send .material-symbols-outlined {
	font-size: 16px;
}

.mksc__ask-send:hover {
	background: #ff6e00;
}

.mksc__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.mksc__chip {
	padding: 8px 16px;
	border: 1px solid #130090;
	border-radius: 50px;
	background: transparent;
	color: #130090;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

.mksc__chip:hover {
	background: #130090;
	color: #fff;
}

/* --- Cartes ------------------------------------------------------------- */
.mksc__cards {
	display: grid;
	/* « Contacter un conseiller » (1er dans le DOM) à gauche, mis en avant ;
	   la documentation technique sur la colonne fixe de droite */
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 20px;
	align-items: start;
	width: 100%;
}

.mksc__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 12px;
	border: 1px solid #e5e6ff;
	border-radius: 8px;
	background: #fff;
}

.mksc__card--form {
	align-self: stretch;
	/* maquette Figma (node 155:6294) : carte blanche, la mise en avant vient
	   de la barre des modes en #f1f2ff (.mksc__modes) */
	/* ancre #contact-form (accès direct par URL) : une fois la page défilée,
	   seuls le bandeau promo (40px) et le menu compact (72px) restent fixés */
	scroll-margin-top: 128px;
}

.mksc__card-title {
	margin: 0;
	color: #130090;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

/* Contenus populaires */
.mksc__help {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mksc__help-group {
	margin: 0;
	padding: 8px;
	border-radius: 10px;
	background: #f1f2ff;
	color: #130090;
	font-size: 14px;
	font-weight: 500;
}

.mksc__help-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0 0 0 8px;
	list-style: none;
}

.mksc__help-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	color: #44404c;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}

.mksc__help-link .material-symbols-outlined {
	flex: none;
	font-size: 20px;
	color: #130090;
}

a.mksc__help-link:hover {
	color: #130090;
}

/* seul le libellé est souligné, pas le chevron */
a.mksc__help-link:hover span:first-child {
	text-decoration: underline;
}

/* Bouton orange plein */
.mksc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	margin-top: auto;
	padding: 8px 16px;
	border: 0;
	border-radius: 19px;
	background: #ff6e00;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s ease;
}

.mksc__btn .material-symbols-outlined {
	font-size: 16px;
}

.mksc__btn:hover {
	background: #130090;
}

.mksc__btn[disabled] {
	opacity: .6;
	cursor: wait;
}

/* Formulaire */
.mksc__form {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
}

.mksc__form.is-sent {
	display: none;
}

.mksc__modes {
	display: flex;
	gap: 6px;
	padding: 8px;
	border-radius: 10px;
	background: #f1f2ff;
}

.mksc__mode {
	flex: 1;
	margin: 0;
	cursor: pointer;
}

.mksc__mode input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mksc__mode-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #130090;
	font-size: 14px;
	line-height: 1.2;
}

.mksc__mode-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mksc__mode-label .material-symbols-outlined {
	font-size: 14px;
}

.mksc__mode-label small {
	color: #44404c;
	font-size: 10px;
}

.mksc__mode-check {
	font-size: 20px;
	color: #1fa86b;
	visibility: hidden;
}

.mksc__mode input:checked + .mksc__mode-box {
	border-color: #e5e6ff;
	background: #fff;
}

.mksc__mode input:checked + .mksc__mode-box .mksc__mode-check {
	visibility: visible;
}

.mksc__mode input:focus-visible + .mksc__mode-box {
	outline: 2px solid #130090;
	outline-offset: 1px;
}

.mksc__row {
	display: flex;
	gap: 12px;
}

.mksc__row > * {
	flex: 1 1 0;
	min-width: 0;
}

.mksc__input {
	display: block;
	width: 100%;
	padding: 12px;
	border: 1px solid #e5e6ff;
	border-radius: 6px;
	background: #fff;
	color: #44404c;
	font-size: 14px;
	line-height: 1;
	box-shadow: none;
}

.mksc__input::placeholder {
	color: #44404c;
	opacity: 1;
}

.mksc__input:focus {
	border-color: #130090;
	outline: none;
}

.mksc__textarea {
	flex: 1;
	min-height: 156px;
	line-height: 1.4;
	resize: vertical;
}

.mksc__textarea::placeholder {
	color: #989898;
}

.mksc__customer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	/* s'étire à la hauteur du champ voisin (Tel) dans la rangée flex */
	min-height: 38px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #e5e6ff;
	border-radius: 6px;
}

.mksc__customer legend {
	float: left;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	color: #44404c;
	font-size: 14px;
	line-height: 1;
}

.mksc__customer label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 0 12px;
	color: #130090;
	font-size: 14px;
	cursor: pointer;
}

.mksc__customer label:first-of-type {
	margin-left: auto;
}

.mksc__customer input,
.mksc__rgpd input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #130090;
}

.mksc__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mksc__rgpd {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	color: #7c7c7c;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
}

.mksc__rgpd input {
	flex: none;
	margin-top: 1px;
}

.mksc__feedback {
	display: none;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.mksc__feedback.is-visible {
	display: block;
}

.mksc__feedback.is-success {
	background: #e8f7ef;
	color: #146c43;
}

.mksc__feedback.is-error {
	background: #fff0d3;
	color: #b3450b;
}

.mksc__feedback ul {
	margin: 0;
	padding-left: 18px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
	.mksc {
		padding: 24px;
	}

	.mksc__inner {
		gap: 48px;
	}

	.mksc__assistant {
		gap: 24px;
	}

	.mksc__assistant-icon {
		width: 48px;
		height: 48px;
		margin-bottom: 0;
	}

	.mksc__assistant-title {
		flex-direction: column;
		gap: 6px;
		font-size: 1.25rem;
	}

	.mksc__ask {
		min-height: 100px;
	}

	.mksc__ask-input {
		min-height: 60px;
	}

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

	.mksc__textarea {
		min-height: 81px;
	}
}

/* mobile : titre court « Une réponse à chaque question », icône à gauche */
@media (max-width: 767px) {
	.mksc__assistant-desktop {
		display: none;
	}

	.mksc__assistant-mobile {
		display: inline;
	}

	.mksc__assistant {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 24px 12px;
	}

	/* tout le reste de la section garde sa pleine largeur */
	.mksc__assistant > * {
		width: 100%;
	}

	.mksc__assistant-icon {
		width: 48px;
	}

	/* iOS zoome au focus d'un champ de moins de 16px : on s'aligne dessus */
	.mksc__ask-input,
	.mksc__input {
		font-size: 16px;
	}

	/* le titre reste sur la ligne de l'icône, son texte se replie dedans
	   (line-height : le thème impose 1.5 en !important sur les h1 mobiles) */
	.mksc__assistant-title {
		flex: 1 1 0;
		justify-content: flex-start;
		width: auto;
		min-width: 0;
		line-height: 1.2 !important;
		text-align: left;
	}
}

@media (max-width: 575px) {
	.mksc__modes {
		flex-direction: column;
	}

	.mksc__row {
		flex-direction: column;
	}
}

/* Crisp n'a pas sa place sur la page contact (doublon avec l'assistant) :
   filet au cas où son script serait chargé malgré le déréférencement */
.crisp-client {
	display: none !important;
}

/* Suggestion mailcheck sous le champ email (« Vouliez-vous dire … ? ») :
   discrète au blur, bloquante à l'envoi avec le bouton « garder » */
.mksc__mailcheck {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: -4px 0 0;
	padding: 8px 12px;
	border: 1px solid #ffe2c4;
	border-radius: 10px;
	background: #fff6ea;
	color: #b34a00;
	font-size: 14px;
	line-height: 1.35;
}

.mksc__mailcheck-fix {
	padding: 0;
	border: 0;
	background: none;
	color: #130090;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.mksc__mailcheck-fix:hover {
	color: #ff6e00;
}

.mksc__mailcheck-keep {
	padding: 3px 10px;
	border: 1px solid #b34a00;
	border-radius: 48px;
	background: none;
	color: #b34a00;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.mksc__mailcheck-keep:hover {
	background: #b34a00;
	color: #fff;
}
