/* ==========================================================
   Chat public "réponses préremplies + escalade courriel"
   (2026-09-04, demande de Félix) -- widget flottant, site entier.
   z-index élevé (200) : le plus haut existant sur le site est 60
   (.mp-topbar), le widget doit rester au-dessus de tout.
   ========================================================== */

.lmp-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 200;
	font-family: var(--font-body, 'Quicksand', sans-serif);
}

/* Bulle d'invitation "Avez-vous des questions ?" -- dialogue simple (pas le
   nuage SVG du hero, .bubble--thought, volontairement plus discret ici,
   voir chat-widget.js) : fondu + léger déplacement vers le haut au lieu du
   rebond élastique du hero. */
.lmp-chat__callout {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 195px;
	background: var(--lmp-blanc);
	border: 1px solid var(--lmp-lavande-clair);
	border-radius: 16px 16px 4px 16px;
	box-shadow: 0 12px 28px -14px rgba(61, 43, 31, 0.5);
	padding: 12px 30px 12px 14px;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.lmp-chat__callout.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Petite pointe façon bulle de dialogue, dirigée vers la bulle Pistache
   juste en dessous -- même principe que le coin pointu de .bubble (thème),
   plus simple qu'un vrai triangle CSS séparé. */
.lmp-chat__callout::after {
	content: '';
	position: absolute;
	right: 18px;
	bottom: -6px;
	width: 12px;
	height: 12px;
	background: var(--lmp-blanc);
	border-right: 1px solid var(--lmp-lavande-clair);
	border-bottom: 1px solid var(--lmp-lavande-clair);
	transform: rotate(45deg);
}

.lmp-chat__callout-body {
	cursor: pointer;
}

.lmp-chat__callout-body p {
	margin: 0;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--lmp-text-light);
	line-height: 1.4;
}

.lmp-chat__callout-signature {
	display: block;
	margin-top: 4px;
	font-size: 0.75rem;
	color: var(--lmp-lavande);
	font-weight: 600;
}

.lmp-chat__callout-close {
	position: absolute;
	top: 4px;
	right: 6px;
	border: none;
	background: transparent;
	color: var(--lmp-text-light);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.lmp-chat.is-open .lmp-chat__callout {
	display: none;
}

.lmp-chat__launcher {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	padding: 0;
	border: 3px solid var(--lmp-blanc);
	background: var(--lmp-rose-light);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(61, 43, 31, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

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

.lmp-chat__launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(61, 43, 31, 0.32);
}

.lmp-chat.is-open .lmp-chat__launcher {
	display: none;
}

.lmp-chat__panel {
	display: none;
	position: absolute;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: calc(100vw - 40px);
	max-height: min(520px, calc(100vh - 100px));
	background: var(--lmp-blanc);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(61, 43, 31, 0.2);
	overflow: hidden;
	flex-direction: column;
}

.lmp-chat.is-open .lmp-chat__panel {
	display: flex;
}

.lmp-chat__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px 10px 10px;
	background: var(--lmp-lavande);
	color: var(--lmp-blanc);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

.lmp-chat__header-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lmp-chat__header-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--lmp-blanc);
	flex-shrink: 0;
}

.lmp-chat__close {
	border: none;
	background: transparent;
	color: var(--lmp-blanc);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.lmp-chat__body {
	padding: 16px 18px 18px;
	overflow-y: auto;
}

.lmp-chat__intro {
	font-size: 0.88rem;
	color: var(--lmp-text-light);
	margin: 0 0 12px;
	line-height: 1.5;
}

.lmp-chat__encouragement {
	font-size: 0.8rem;
	color: var(--lmp-text-light);
	margin: 10px 0 0;
	line-height: 1.5;
	text-align: center;
}

.lmp-chat__menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.lmp-chat__menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1.5px solid var(--lmp-creme-dark);
	background: var(--lmp-blanc-casse);
	color: var(--lmp-brun);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lmp-chat__menu-item:hover {
	border-color: var(--lmp-lavande-clair);
	background: var(--lmp-rose-light);
}

.lmp-chat__menu-emoji {
	font-size: 1.05rem;
}

.lmp-chat__topic-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--lmp-brun);
	margin: 0 0 10px;
}

.lmp-chat__topic-body {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--lmp-brun);
}

.lmp-chat__topic-body p {
	margin: 0 0 10px;
}

.lmp-chat__topic-body a {
	color: var(--lmp-lavande-aa);
	font-weight: 600;
}

.lmp-chat__hint {
	font-size: 0.8rem;
	color: var(--lmp-text-light);
	margin: 4px 0 12px;
}

.lmp-chat__actions {
	display: flex;
	gap: 8px;
}

.lmp-chat__btn {
	flex: 1;
	padding: 10px 14px;
	border-radius: 999px;
	border: none;
	background: var(--lmp-lavande);
	color: var(--lmp-blanc);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.lmp-chat__btn:hover {
	background: var(--lmp-lavande-aa);
}

.lmp-chat__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.lmp-chat__btn--secondary {
	background: var(--lmp-blanc-casse);
	color: var(--lmp-brun);
	border: 1.5px solid var(--lmp-creme-dark);
}

.lmp-chat__btn--secondary:hover {
	background: var(--lmp-creme-dark);
}

.lmp-chat__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lmp-chat__form input[type="text"],
.lmp-chat__form input[type="email"],
.lmp-chat__form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1.5px solid var(--lmp-creme-dark);
	font-family: inherit;
	font-size: 0.88rem;
	color: var(--lmp-brun);
	resize: vertical;
}

.lmp-chat__form input:focus,
.lmp-chat__form textarea:focus {
	outline: none;
	border-color: var(--lmp-lavande-clair);
}

/* Piège à robots -- jamais visible pour un humain, retiré du flux de
   tabulation, mais toujours dans le DOM/le formulaire pour qu'un bot
   générique (qui remplit tous les champs sans regarder le CSS) le remplisse. */
.lmp-chat__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.lmp-chat__error {
	color: #B3261E;
	font-size: 0.8rem;
	margin: 0;
}

@media (max-width: 480px) {
	.lmp-chat {
		right: 12px;
		bottom: 12px;
	}

	.lmp-chat__panel {
		width: calc(100vw - 24px);
	}
}
