.mb-help-home {
	/* Charte du site : fond blanc, accents bleus (logo/icônes/bordures/bannières),
	   boutons roses. Deux nuances de bleu sont utilisées : la nuance claire
	   (--mb-blue) sert uniquement de fond/bordure décoratifs, jamais de couleur de
	   texte — un texte blanc ou bleu clair sur fond clair serait illisible. Toute
	   couleur portant du texte (onglet actif, liens, icônes signifiantes) utilise
	   la nuance foncée (--mb-blue-dark) ou une couleur neutre foncée, afin de
	   garantir un contraste suffisant (WCAG AA) sur fond blanc.
	*/
	--mb-blue: #76c3fc;
	--mb-blue-dark: #1d6fa5;
	--mb-pink: #fc769c;
	--mb-pink-dark: #e14d78;
	--mb-pink-text: #5c0a24;
	--mb-green: #1a7f37;
	--mb-gray-text: #3c434a;
	--mb-gray-meta: #646970;
	--mb-border: #d9ecfb;
	--mb-bg: #ffffff;
	font-size: 15px;
	color: #1d2327;
	background: var(--mb-bg);
}
.mb-help-home * { box-sizing: border-box; }

.mb-help-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--mb-blue); padding-bottom: 12px; }
.mb-help-tab-btn {
	position: relative;
	background: #f6f7f7;
	border: 1px solid var(--mb-border);
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	color: #3c434a;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mb-help-tab-btn:hover { background: #eaf5ff; }
/* Onglet actif : fond bleu clair + texte foncé (et non blanc) pour rester lisible. */
.mb-help-tab-btn.is-active { background: var(--mb-blue); border-color: var(--mb-blue); color: #123a56; }
.mb-help-tab-count {
	display: inline-block;
	margin-left: 6px;
	background: #b3261e;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	padding: 1px 7px;
	font-weight: 700;
}

.mb-help-panel[hidden] { display: none; }
.mb-help-empty { color: #50575e; font-style: italic; }

/* ---------- Intro page Aide ---------- */
.mb-help-intro p { color: var(--mb-gray-text); margin: 0 0 12px; }
.mb-help-aide-list { list-style: disc; margin: 0 0 28px 20px; padding: 0; color: #1d2327; }
.mb-help-aide-list li { margin-bottom: 8px; }
.mb-help-kb-title { margin: 4px 0 16px; font-size: 17px; border-bottom: 2px solid var(--mb-blue); padding-bottom: 8px; }

.mb-help-goto-link { color: var(--mb-blue-dark); font-weight: 600; text-decoration: underline; }
.mb-help-goto-link:hover { color: #123a56; }

/* ---------- Boutons génériques ---------- */
.mb-help-btn {
	display: inline-block;
	background: #f0f0f1;
	border: 1px solid var(--mb-pink);
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}
.mb-help-btn:hover { background: #fdeaf0; }
/* Bouton principal rose : texte foncé (et non blanc) pour un contraste suffisant. */
.mb-help-btn-primary { background: var(--mb-pink); border-color: var(--mb-pink); color: var(--mb-pink-text); }
.mb-help-btn-primary:hover { background: var(--mb-pink-dark); border-color: var(--mb-pink-dark); color: var(--mb-pink-text); }

/* ---------- Base de connaissances ---------- */
.mb-help-wiki-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	align-items: start;
}
.mb-help-wiki-col {
	background: #fff;
	border: 1px solid var(--mb-border);
	border-radius: 10px;
	padding: 18px;
}
.mb-help-wiki-col-title { margin: 0 0 14px; font-size: 16px; color: #1d2327; border-bottom: 2px solid var(--mb-blue); padding-bottom: 8px; }
.mb-help-wiki-item { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--mb-border); }
.mb-help-wiki-item:last-child { border-bottom: none; margin-bottom: 0; }
.mb-help-wiki-item-title { margin: 0 0 6px; font-size: 15px; color: #1d2327; }
.mb-help-wiki-excerpt p { margin: 0 0 8px; color: var(--mb-gray-text); }
.mb-help-wiki-blur {
	filter: blur(3.5px);
	user-select: none;
	color: #50575e;
	margin: 0 0 10px;
	transition: filter .2s ease;
}
.mb-help-wiki-teaser-wrap.is-open .mb-help-wiki-blur { display: none; }
.mb-help-btn-readmore, .mb-help-btn-showless { font-size: 13px; padding: 6px 12px; }
.mb-help-wiki-full { margin-top: 10px; color: #1d2327; }
.mb-help-wiki-full p:first-child { margin-top: 0; }

/* ---------- FAQ ---------- */
.mb-help-faq-group { margin-bottom: 22px; }
.mb-help-faq-group-title { font-size: 16px; margin: 0 0 10px; color: var(--mb-blue-dark); }
.mb-help-faq-item { border: 1px solid var(--mb-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.mb-help-faq-question {
	width: 100%;
	text-align: left;
	background: #fff;
	border: none;
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	color: #1d2327;
}
.mb-help-faq-question:hover { background: #f5fafe; }
.mb-help-faq-caret { transition: transform .15s ease; font-size: 20px; line-height: 1; color: var(--mb-blue-dark); }
.mb-help-faq-item.is-open .mb-help-faq-caret { transform: rotate(45deg); }
.mb-help-faq-answer { padding: 0 16px 16px; color: var(--mb-gray-text); }
.mb-help-faq-answer[hidden] { display: none; }

/* ---------- Support / Tickets ---------- */
.mb-help-tickets-guest { text-align: center; padding: 40px 20px; background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; }
.mb-help-tickets-guest p { color: var(--mb-gray-text); }
.mb-help-tickets-intro { color: var(--mb-gray-text); margin-bottom: 20px; }

.mb-help-tickets-summary { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.mb-help-summary-box { flex: 1; min-width: 130px; background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; padding: 16px; text-align: center; }
.mb-help-summary-box strong { display: block; font-size: 26px; color: var(--mb-blue-dark); }
.mb-help-summary-box span { font-size: 12.5px; color: var(--mb-gray-meta); text-transform: uppercase; }

.mb-help-form { background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; padding: 20px; margin-bottom: 26px; }
.mb-help-form p { margin: 0 0 14px; }
.mb-help-form label { display: block; font-weight: 600; margin-bottom: 6px; color: #1d2327; }
.mb-help-form input[type=text], .mb-help-form input[type=email], .mb-help-form select, .mb-help-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--mb-border);
	border-radius: 6px;
	font-size: 14px;
	color: #1d2327;
	background: #fff;
}
.mb-help-form-msg { margin-left: 10px; font-size: 13px; color: var(--mb-gray-text); }

.mb-help-ticket-row { background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.mb-help-ticket-row.has-unread { border-color: var(--mb-green); }
.mb-help-ticket-summary {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	padding: 14px 16px;
	cursor: pointer;
	text-align: left;
	flex-wrap: wrap;
	color: #1d2327;
}
.mb-help-ticket-title { font-weight: 600; flex: 1; min-width: 140px; color: #1d2327; }
.mb-help-ticket-status { font-size: 12.5px; color: var(--mb-gray-meta); }
.mb-help-ticket-date { font-size: 12.5px; color: var(--mb-gray-meta); }
.mb-help-new-badge { background: var(--mb-green); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }

.mb-help-ticket-detail { padding: 0 16px 16px; border-top: 1px solid var(--mb-border); }
.mb-help-ticket-detail[hidden] { display: none; }
.mb-help-thread { margin: 14px 0; }
.mb-help-msg { border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; max-width: 85%; color: #1d2327; }
.mb-help-msg-user { background: #f0f6fc; margin-right: auto; }
.mb-help-msg-staff { background: #eaf7ec; margin-left: auto; }
.mb-help-msg-meta { font-size: 11.5px; color: var(--mb-gray-meta); margin-bottom: 4px; font-weight: 600; }
.mb-help-msg-content { color: #1d2327; }
.mb-help-msg-content p:last-child { margin-bottom: 0; }
.mb-help-reply-form textarea { width: 100%; border: 1px solid var(--mb-border); border-radius: 6px; padding: 10px; margin-bottom: 8px; color: #1d2327; }

/* ---------- Statut ---------- */
.mb-help-status-intro { color: var(--mb-gray-text); margin-bottom: 16px; }
.mb-help-status-list { background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; padding: 8px 16px; }
.mb-help-status-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--mb-border); flex-wrap: wrap; }
.mb-help-status-item:last-child { border-bottom: none; }
.mb-help-status-name { font-weight: 600; flex: 1; min-width: 140px; color: #1d2327; }
/* Le nom du type de statut reste en texte neutre : sa couleur (paramétrable par
   l'administrateur) n'est appliquée qu'au point ci-avant, jamais au texte, afin
   de ne jamais dépendre d'un contraste texte/fond non garanti. */
.mb-help-status-term { font-size: 13px; font-weight: 600; color: var(--mb-gray-meta); }
.mb-help-status-date { font-size: 12.5px; color: var(--mb-gray-meta); }

/* ---------- Contact ---------- */
.mb-help-contact-intro { color: var(--mb-gray-text); margin-bottom: 16px; }
.mb-help-note {
	background: #eaf5ff;
	border-left: 4px solid var(--mb-blue-dark);
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 22px;
	color: #1d2327;
}
.mb-help-contact { background: #fff; border: 1px solid var(--mb-border); border-radius: 10px; padding: 20px; }

/* ---------- Badge global (réponse en attente) ---------- */
.mb-help-badge-block {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--mb-green);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.mb-help-badge-block:hover { opacity: .9; color: #fff; }
.mb-help-badge-icon svg { display: block; }

/* ---------- Points de couleur (indicateurs décoratifs, pas de texte dessus) ---------- */
.mb-help-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.mb-help-tabs { gap: 6px; }
	.mb-help-tab-btn { padding: 8px 12px; font-size: 13.5px; }
	.mb-help-wiki-grid { grid-template-columns: 1fr; }
	.mb-help-msg { max-width: 100%; }
}
