/* HelpCenter — styles dediés au layout _LayoutHelpCenter */

.helpcenter-body {
	margin: 0;
	padding: 0;
	background: #f7f8fa;
	color: #333;
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.helpcenter-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Empeche l ombre/focus des boutons Bootstrap de deborder au-dessus du header sticky */
.helpcenter-admin-header .btn,
.helpcenter-admin-header .btn:focus,
.helpcenter-admin-header .btn:active {
	position: relative;
	z-index: 1;
}

.helpcenter-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.helpcenter-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 18px;
	color: #1f2937;
	text-decoration: none;
}

.helpcenter-logo:hover { color: #0d47a1; text-decoration: none; }
.helpcenter-logo .fa { color: #0d47a1; font-size: 22px; }

.helpcenter-searchbar {
	margin-left: auto;
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	overflow: hidden;
	width: 320px;
	background: #fff;
}

.helpcenter-searchbar input {
	border: 0;
	padding: 7px 10px;
	flex: 1;
	outline: none;
	font-size: 14px;
}

.helpcenter-searchbar button {
	border: 0;
	background: transparent;
	padding: 7px 12px;
	color: #6b7280;
	cursor: pointer;
}

.helpcenter-fullpage-btn {
	margin-left: 8px;
	color: #6b7280;
	font-size: 16px;
	padding: 6px 10px;
	border-radius: 4px;
	text-decoration: none;
}
.helpcenter-fullpage-btn:hover { background: #f3f4f6; color: #0d47a1; text-decoration: none; }

.helpcenter-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 20px;
}

.helpcenter-main h1 { margin-top: 0; }

.helpcenter-breadcrumb {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 12px;
}

.helpcenter-breadcrumb a { color: #0d47a1; text-decoration: none; }
.helpcenter-breadcrumb a:hover { text-decoration: underline; }

.helpcenter-admin-banner {
	background: #fffbea;
	border: 1px solid #fde68a;
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Catégories */
.helpcenter-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 16px 0 32px;
}

.helpcenter-cat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2937;
	transition: all 0.15s;
}

.helpcenter-cat-card:hover {
	border-color: #0d47a1;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	text-decoration: none;
	color: #0d47a1;
}

.helpcenter-cat-card .fa {
	color: #0d47a1;
	font-size: 20px;
}

/* Liste articles */
.helpcenter-article-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.helpcenter-article-list li {
	margin-bottom: 8px;
}

.helpcenter-article-list a {
	display: block;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2937;
	transition: border-color 0.15s;
}

.helpcenter-article-list a:hover {
	border-color: #0d47a1;
	text-decoration: none;
}

.helpcenter-article-list .helpcenter-article-resume {
	display: block;
	color: #6b7280;
	font-size: 13px;
	margin-top: 4px;
	font-weight: normal;
}

/* Article */
.helpcenter-article {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 24px 28px;
}

.helpcenter-article-content {
	margin-top: 16px;
	line-height: 1.6;
}

.helpcenter-article-content img { max-width: 100%; height: auto; }

.helpcenter-article-actions {
	margin-top: 8px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.helpcenter-article-tags {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.helpcenter-tag {
	display: inline-block;
	background: #eef2ff;
	color: #3730a3;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	margin-right: 6px;
}

/* Section "Pour cette page" : articles contextuels en avant */
.helpcenter-contextual {
	background: #eef6ff;
	border: 1px solid #bfdbfe;
	border-left: 4px solid #0d47a1;
	border-radius: 6px;
	padding: 14px 18px 8px;
	margin-bottom: 24px;
}
.helpcenter-contextual h2 {
	margin-top: 0;
	font-size: 18px;
	color: #0d47a1;
}
.helpcenter-contextual .fa { margin-right: 6px; }

/* Admin */
.helpcenter-admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.helpcenter-admin-filters { margin-bottom: 12px; }

.helpcenter-admin-table { background: #fff; }

.helpcenter-editor-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.helpcenter-editor-header h1 { margin: 0; flex: 1; font-size: 22px; }

.helpcenter-checklist {
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 8px 12px;
}

.helpcenter-checklist label {
	display: block;
	font-weight: normal;
	margin-bottom: 4px;
	cursor: pointer;
}

.helpcenter-editor-rules {
	margin-top: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 16px;
}

.helpcenter-editor-rules legend {
	font-size: 16px;
	font-weight: 600;
	padding: 0 8px;
	width: auto;
	border: 0;
	margin-bottom: 8px;
}

.helpcenter-editor-versions {
	margin-top: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 16px;
}
.helpcenter-editor-versions legend {
	font-size: 16px; font-weight: 600; padding: 0 8px; width: auto; border: 0; margin-bottom: 8px;
}
.helpcenter-editor-versions small { font-weight: normal; display: block; margin-top: 2px; }

.helpcenter-editor-actions {
	margin-top: 24px;
	display: flex;
	gap: 8px;
}

/* Bouton "?" dans le header principal OPTIVVIA */
.helpcenter-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	margin-right: 8px;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	transition: background 0.15s;
}
.helpcenter-header-button:hover,
.helpcenter-header-button:focus {
	background: rgba(255,255,255,0.15);
	color: #fff;
	text-decoration: none;
}

/* Modales custom du module HelpCenter (alert / confirm) */
.hc-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 10050;
}
.hc-modal.is-open { display: block; }
.hc-modal-box {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	max-width: 500px;
	width: 92%;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	overflow: hidden;
}
.hc-modal-header {
	background: #0d47a1;
	color: #fff;
	padding: 12px 16px;
}
.hc-modal-title { margin: 0; font-size: 16px; }
.hc-modal-body { padding: 16px; font-size: 14px; line-height: 1.5; }
.hc-modal-body ul { padding-left: 20px; margin: 8px 0; }
.hc-modal-footer {
	padding: 12px 16px;
	border-top: 1px solid #e5e7eb;
	text-align: right;
}
.hc-modal-footer .btn { margin-left: 6px; }
.hc-modal-success .hc-modal-header { background: #2e7d32; }
.hc-modal-error .hc-modal-header { background: #c62828; }

/* Popin iframe sur la page principale (helpcenter-modal.ts) */
.helpcenter-modal {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.55);
	z-index: 10000;
}

.helpcenter-modal.is-open { display: block; }

/* empeche le scroll de la page hote tant que la popin est ouverte */
body.helpcenter-modal-open { overflow: hidden; }

.helpcenter-modal-content {
	position: absolute;
	top: 5%; left: 5%; right: 5%; bottom: 5%;
	background: #fff;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	overflow: hidden;
}

.helpcenter-modal-close {
	position: absolute;
	top: 8px; right: 12px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	z-index: 2;
}

.helpcenter-modal iframe {
	flex: 1;
	border: 0;
	width: 100%;
	height: 100%;
}
