/*
	Widget de chatbot — repris de _modele_web/mfb_2026 (assets/css/chatbot.css), recoloré pour
	consommer les variables du gabarit (css/cssmenu.css :root) au lieu de couleurs codées en
	dur. Se rebrande donc automatiquement avec le reste du site (jaune/bleu Maeva Hébergement).
*/

/* Bulle flottante */
#chatbot-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 130px;
	height: 130px;
	background: var(--fnd_inact);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	transition: transform 0.2s ease;
	z-index: 9999;
}

#chatbot-button:hover {
	transform: scale(1.10);
}

#chatbot-icon {
	width: 95%;
	height: 95%;
	object-fit: contain;
	pointer-events: none; /* l'image ne bloque pas le clic sur la bulle */
}

/* Fenêtre du chatbot */
#chatbot-window {
	position: fixed;
	bottom: 100px;
	right: 20px;
	width: 330px;
	max-width: calc(100vw - 40px);
	height: 420px;
	max-height: calc(100vh - 140px);
	background: var(--fnd_clair);
	border-radius: 10px;
	box-shadow: 0 0 15px rgba(0,0,0,0.25);
	display: none;
	flex-direction: column;
	z-index: 9999;
	overflow: hidden;
}

/* En-tête — pas de --fnd_pied sur ce site (contrairement à _modele_web/mfb_2026),
   on reprend --fnd_fonce (bleu) déjà utilisé pour le pied de page (mainlayout.css). */
#chatbot-header {
	font-family: "Montserrat", sans-serif;
	background: var(--fnd_rover);
	color: var(--txt_clair);
	padding: 12px;
	font-weight: bold;
	text-align: center;
}

/* Messages */
#chatbot-messages {
	font-family: "Montserrat", sans-serif;
	flex: 1;
	padding: 10px;
	overflow-y: auto;
	font-size: 15px;
	color: var(--txt_norma);
}

#chatbot-messages a {
	color: var(--txt_linka);
}

/* Champ de saisie */
#chatbot-input {
	font-family: "Montserrat", sans-serif;
	border: none;
	border-top: 1px solid #ddd;
	padding: 10px;
	width: 100%;
	font-size: 15px;
	box-sizing: border-box;
}

#chatbot-input:focus {
	outline: 2px solid var(--fnd_rover);
	outline-offset: -2px;
}
