/* ============================================
   Help Section - Styles
   ============================================ */

/* Conteneur principal */
.help-app-container {
    width: 100%;
    height: 100vh;
    background-color: #F3F5FB;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* Wrapper principal */
.help-main-wrapper {
    display: flex;
    height: 100%;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0px 3px 6px rgba(223, 223, 223, 0.5);
    overflow: hidden;
}

/* ============================================
   Sidebar
   ============================================ */

.help-sidebar {
    width: 340px;
    min-width: 340px;
    background: #2A2E3F;
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.help-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 24px;
    box-sizing: border-box;
}

/* Logo */
.help-logo-section {
    margin-bottom: 8px;
}

.help-logo-link,
.help-logo-link:hover,
.help-logo-link:focus,
.help-logo-link:active,
.help-logo-link:visited {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    background: transparent !important;
}

.help-logo-image {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.help-logo-text {
    margin-left: 14px;
    display: flex;
    flex-direction: column;
}

.help-logo-subtitle {
    color: #DBDBDB;
    font-size: 8pt;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 2px;
}

/* Separateur */
.help-sidebar-divider {
    height: 1px;
    background: #3A4861;
    margin: 16px 0;
}

/* Titre du menu */
.help-menu-title {
    color: #DBDBDB;
    font-size: 9pt;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 12px;
}

/* Menu arborescent */
.help-menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.help-menu::-webkit-scrollbar {
    width: 4px;
}

.help-menu::-webkit-scrollbar-track {
    background: transparent;
}

.help-menu::-webkit-scrollbar-thumb {
    background: #3A4861;
    border-radius: 2px;
}

.help-menu::-webkit-scrollbar-thumb:hover {
    background: #4A5871;
}

.help-menu {
    scrollbar-width: thin;
    scrollbar-color: #3A4861 transparent;
}

/* Item de menu - Category (niveau 0) */
.help-menu-category {
    color: #FFFFFF;
    font-size: 10.5pt;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    padding: 8px 12px;
    margin-top: 6px;
}

.help-menu-category:first-child {
    margin-top: 0;
}

/* Item de menu - Part (niveau 1) */
.help-menu-part {
    padding: 6px 12px 6px 28px;
}

/* Item de menu - Subpart (niveau 2) */
.help-menu-subpart {
    padding: 5px 12px 5px 44px;
}

/* Item cliquable */
a.help-menu-item {
    display: block;
    color: #B0B8C8;
    font-size: 9.5pt;
    font-family: 'Segoe UI', sans-serif;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

a.help-menu-item:hover {
    background: #2A3851;
    color: #FFFFFF;
}

a.help-menu-item.active {
    background: #0277ED;
    color: #FFFFFF;
    font-weight: 500;
}

/* Item non cliquable (pas de contenu) */
span.help-menu-item-disabled {
    display: block;
    color: #5A6478;
    font-size: 9.5pt;
    font-family: 'Segoe UI', sans-serif;
    cursor: default;
}

/* Section du bas (bouton retour + langue) */
.help-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-back-button,
.help-back-button:hover,
.help-back-button:focus,
.help-back-button:active,
.help-back-button:visited {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none !important;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.help-back-button:hover {
    background: #2A3851 !important;
}

.help-back-icon {
    color: #FFFFFF;
    font-size: 18px;
    margin-right: 10px;
}

.help-back-text {
    color: #FFFFFF;
    font-size: 10pt;
    font-family: 'Segoe UI', sans-serif;
    transition: color 0.2s ease;
}

.help-back-button:hover .help-back-text {
    color: #0277ED !important;
}

/* Section selecteur de langue - mode sombre */
.help-language-section .language-btn {
    background: #2A2E3F;
    border-color: #676676;
}

.help-language-section .language-btn:hover {
    background: #2A3851;
    border-color: #0277ED;
}

.help-language-section .language-popup {
    background: #2A2E3F;
    border-color: #676676;
}

.help-language-section .flag-btn:hover {
    background: #3A4861;
}

.help-language-section .flag-btn.active {
    background: #0277ED;
}

/* ============================================
   Zone de contenu
   ============================================ */

.help-content-area {
    flex: 1;
    min-height: 0;
    padding: 40px 50px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
}

.help-content-area::-webkit-scrollbar {
    width: 6px;
}

.help-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.help-content-area::-webkit-scrollbar-thumb {
    background: #DBDBDB;
    border-radius: 3px;
}

.help-content-area::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

.help-content-area {
    scrollbar-width: thin;
    scrollbar-color: #DBDBDB transparent;
}

/* Contenu de l'aide */
.help-content {
    max-width: 800px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11pt;
    line-height: 1.7;
    color: #333333;
}

.help-content h1 {
    font-size: 22pt;
    font-weight: 700;
    color: #2A2E3F;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F3F5FB;
}

.help-content h2 {
    font-size: 16pt;
    font-weight: 600;
    color: #2A2E3F;
    margin-top: 32px;
    margin-bottom: 16px;
}

.help-content h3 {
    font-size: 13pt;
    font-weight: 600;
    color: #2A2E3F;
    margin-top: 24px;
    margin-bottom: 12px;
}

.help-content p {
    margin-bottom: 14px;
}

.help-content a {
    color: #0277ED;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.help-content a:hover {
    border-bottom-color: #0277ED;
}

.help-content strong {
    font-weight: 600;
    color: #2A2E3F;
}

.help-content .help-img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-content ul,
.help-content ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.help-content li {
    margin-bottom: 6px;
}

/* Selecteur de langue inline (dans le contenu) */
.help-lang-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.help-lang-btn {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 9pt;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    text-decoration: none !important;
    color: #707070;
    background: #F3F5FB;
    border: 1px solid #DBDBDB;
    transition: all 0.15s ease;
}

.help-lang-btn:hover {
    background: #E8EBF3;
    color: #333333;
}

.help-lang-btn.active {
    background: #0277ED;
    color: #FFFFFF;
    border-color: #0277ED;
}
