@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    
    background-color: #f0f2f5;
    color: #3b4a54;
    line-height: 1.5;
}


h1,h2,h3,h4,h5,h6 {
    font-family: "Source Sans 3", sans-serif;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
}


h1,h2,h3,h4,h5,h6 {
    font-family: "Roboto", sans-serif;
}


/* Sidebar */
.sidebar {
    width: 320px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
}

.logo {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.logo a {
    text-decoration: none;
}


.logo img {
    height: 40px;
    float: left;
}

.logo h1 {
    font-size: 20px;
    color: #8352A5;
    font-weight: 600;
    margin-left: 45px;
    margin-top: 5px;
}

.search-container {
    padding: 15px 10px 15px 10px;
    border-bottom: 1px solid #e0e0e0;
}


.search-container-2 {
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #e0e0e0;
}


.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #E5D8EF;
    border-radius: 20px;
    font-size: 14px;
    background-color: #fcfafd;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8696a0;
}

/* Styles pour le menu déroulant dans la sidebar */
.dropdown-container {
    padding: 0;
}

.dropdown {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown:last-child {
    border-bottom: none;
}

.dropdown-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.dropdown-header:hover {
    background-color: #f5f5f5;
}

.dropdown-header h2 {
    font-size: 15px;
    color: #3b4a54;
    display: flex;
    align-items: center;
    margin: 0;
}

.dropdown-header h2 i {
    margin-right: 10px;
    color: #8352A5;
    font-size: 16px;
    background-color: rgba(131, 82, 165, 0.1);
    padding: 10px;
    border-radius: 20px;
}

.dropdown-header .arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: #8696a0;
}

.dropdown.active .dropdown-header .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
}

.dropdown.active .dropdown-content {
    max-height: 1000px;
}

.sub-dropdown {
    border-top: 1px solid #f0f0f0;
}

.sub-dropdown-header {
    padding: 10px 15px 10px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.sub-dropdown-header:hover {
    background-color: #f0f0f0;
}

.sub-dropdown-header h3 {
    font-size: 14px;
    color: #3b4a54;
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 500;
}

.sub-dropdown-header h3 i {
    margin-right: 8px;
    color: #667781;
    background-color: #fefefe;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
}



.sub-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f5f5f5;
}

.sub-dropdown.active .sub-dropdown-content {
    max-height: 800px;
}

.nested-dropdown {
    border-top: 1px solid #e8e8e8;
}

.nested-dropdown-header {
    padding: 8px 15px 8px 45px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.nested-dropdown-header:hover {
    background-color: #ebebeb;
}

.nested-dropdown-header h4 {
    font-size: 13px;
    color: #3b4a54;
    font-weight: normal;
    display: flex;
    align-items: center;
    margin: 0;
}

.nested-dropdown-header h4 i {
    margin-right: 6px;
    color: #8696a0;
    font-size: 12px;
}

.nested-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nested-dropdown.active .nested-dropdown-content {
    max-height: 500px;
}

.article-list {
    padding: 5px 5px 10px 30px;
}

.article-list ul {
    list-style-type: none;
}

.article-list li {
    padding: 1px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: color 0.2s;
    padding: 8px 8px;
}

.article-list a.selected,
.article-list a:hover {
    background-color: #E5D8EF;
    border-radius: 8px;
    text-decoration: none;
}

.article-list a i {
    margin-right: 8px;
    color: #8696a0;
    font-size: 11px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 30px 0px 0px 0px;
    background-color: #fff;
    min-height: 100vh;
}

.help-header {
    display: flex;
    margin-bottom: 30px;
}

.help-header h2 {
    font-size: 26px;
    width: 80%;
    margin-bottom: 10px;
    color: #3b4a54;
}

.help-header p {
    color: #8696a0;
    font-size: 16px;
}



.ticket-header {
    margin-bottom: 20px;
}

.ticket-header h2 {
    font-size: 26px;
    width: 80%;
    color: #3b4a54;
}

.ticket-header p {
    color: #8696a0;
    font-size: 16px;
}



.home-header {
    margin-bottom: 30px;
}

.home-header h2 {
    font-size: 30px;
    width: 100%;
    margin-bottom: 10px;
    color: #3b4a54;
}

.home-header p {
    color: #8696a0;
    font-size: 16px;
}

.popular-topics {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3b4a54;
    font-weight: 600;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topic-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #8352A5;
}

.topic-card p {
    font-size: 14px;
    color: #667781;
}

.help-reply {
    background-color:#f1f1f1;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 15px 0px 40px 0px ;
    text-align: center;
}

.help-reply h3{
    color: #000;
}


.btn-primary {
    cursor: pointer;
    display: inline-block;
    background-color: #8352A5;
    color: white;
    padding: 10px 35px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-primary i {
    font-size: 16px;
    padding-right: 5px;
}

.btn-primary:hover {
    background-color: #BB9FD1;
}

.btn-outline-primary {
    cursor: pointer;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border: 1px solid #eee;
}


.btn-outline-primary:hover {
    background-color:#f0f0f0;
}

.btn-secondary {
    cursor: pointer;
    display: inline-block;
    background-color: #E5D8EF;
    color: #333;
    padding: 10px 35px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-secondary i {
    font-size: 18px;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}


.help-repy-buttons {
    margin: 10px 0;
}
.help-categories {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category {
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}


.category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #3b4a54;
}

.category-links {
    list-style: none;
}

.category-links li {
    margin-bottom: 10px;
}

.category-links a {
    color:#8352A5;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.category-links a:hover {
    text-decoration: underline;
}

.category-links a i:hover {
    text-decoration: none !important;
}

.category-links i {
    margin-right: 10px;
    color: #8696a0;
    background-color: rgba(131, 82, 165, 0.1);
    padding: 7px;
    border-radius: 20px;
}

.contact-support {
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.contact-support h3 {
    margin-bottom: 15px;
    color: #3b4a54;
}

.contact-support p {
    margin-bottom: 20px;
    color: #667781;
}

.contact-btn {
    display: inline-block;
    background-color: #8352A5;
    color: white;
    padding: 12px 25px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #BB9FD1;
}

.home-content {
    padding: 0px 30px 30px 40px;
}


.article-content {
    padding: 0px 30px 30px 70px;
}

.tabs {
    background-color: #FFF;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 15px 25px;
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    flex: 1;
    text-align: center;
    list-style-type: none;
}


.tab li i {
   font-size: 20px;
}

.tab.active {
    background-color: white;
    border-bottom: 4px solid #8352A5;
    color: #8352A5;
}


.tab:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.1);
}

.tab-content {
    margin: 30px 0;
    padding: 10px 30px 20px 30px;
    display: none;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h2 {
    color: #3b4a54;
    margin-bottom: 15px;
    font-size: 22px;
}

.tab-content img {
    vertical-align: middle !important; 
}

.tab-content ol,
.tab-content ul {
    margin-left: 40px !important; 
}

.tab-content p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6em;
    color: #555;
}

.steps {
    margin: 20px 0;
}

.step {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-number {
    background-color: #667781;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.copy-section {
    background-color: #f6f1fc;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #8352A5;
}

.copy-section h3 {
    color: #3b4a54;
    margin-bottom: 10px;
}

.copy-box {
    display: flex;
    margin-top: 10px;
}

.copy-text {
    flex: 1;
    padding: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: monospace;
    font-size: 14px;
}

.copy-btn {
    background-color:#e0e0e0;
    color: #333;
    font-size: 14px;
    border: none;
    padding: 10px 15px !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    height: 40px;
}



.copy-btn:hover {
    background-color: #E5D8EF;
}

.copy-btn.copied {
    background-color: #4CAF50;
}


/* Styles pour les modals */


.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.modal-footer button{
   border: none;
   font-size: 16px;
}


/* Styles pour le textarea */
#improvementText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

/* Styles pour le formulaire */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group input{
    height: 40px;
}

.form-group textarea{
    height: 100px;
}


.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Messages */
.success-message, .error-message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item i {
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

.autocomplete-item .item-text {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.autocomplete-item .item-category {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.autocomplete-highlight {
    background-color: #fff3cd;
    font-weight: bold;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}


.item-similarity {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.item-similarity.exact-match {
    background: #d4edda;
    color: #155724;
}

.autocomplete-highlight {
    background-color: #fff3cd;
    font-weight: bold;
    border-radius: 2px;
}

footer {
    border-top:1px solid #f5f5f5;
    background-color: #f9f9f9;
    color: #777;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    font-size: 14px;
}

.footer-text a {
    color: #8352A5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #5dade2;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-trigger {
    cursor: pointer;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    margin-bottom: 10px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #8352A5;
    color: white;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .dropdown-header {
        padding: 10px 15px;
    }

    .sub-dropdown-header {
        padding: 8px 15px 8px 25px;
    }

    .nested-dropdown-header {
        padding: 6px 15px 6px 35px;
    }

    .article-list {
        padding: 5px 15px 8px 5px;
    }
    

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .language-selector {
        margin-top: 20px;
    }
    
}


@media (max-width: 600px) {
    .article-content {
        padding: 0px 30px 30px 30px;
    }
    .help-header  {
        display: inline-block;
    }


    .help-header h2 {
        font-size: 22px;
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        padding: 12px;
    }

    .copy-box {
        flex-direction: column;
    }

    .copy-text {
        border-radius: 4px 4px 0 0;
    }

    .copy-btn {
        border-radius: 0 0 4px 4px;
        padding: 10px;
    }
}






/* Styles pour les modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    margin: 10px 0;
    font-weight: bold;
}



.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.modal-footer button{
   border: none;
   font-size: 16px;
}


/* Styles pour le textarea */
#improvementText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

/* Styles pour le formulaire */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group input{
    height: 40px;
}

.form-group textarea{
    height: 100px;
}


.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#helpdeskchat-form input {
    border-radius: 10px !important;
    padding: 14px !important;  
}


#helpdeskchat-form textarea {
    border-radius: 10px !important;
    padding: 14px !important;  
}

#helpdeskchat-form select {
    border-radius: 10px !important;
    width: 100%;
    border: 1px solid #ddd;
    padding: 14px !important;  
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Messages */
.success-message, .error-message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item i {
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

.autocomplete-item .item-text {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.autocomplete-item .item-category {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.autocomplete-highlight {
    background-color: #fff3cd;
    font-weight: bold;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}


.item-similarity {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.item-similarity.exact-match {
    background: #d4edda;
    color: #155724;
}

.autocomplete-highlight {
    background-color: #fff3cd;
    font-weight: bold;
    border-radius: 2px;
}

footer {
    border-top:1px solid #f5f5f5;
    background-color: #f9f9f9;
    color: #777;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    font-size: 14px;
}

.footer-text a {
    color: #8352A5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #5dade2;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-trigger {
    cursor: pointer;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    margin-bottom: 10px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #8352A5;
    color: white;
}

/* Style pour le spinner */
.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Désactivation du bouton pendant l'envoi */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .dropdown-header {
        padding: 10px 15px;
    }

    .sub-dropdown-header {
        padding: 8px 15px 8px 25px;
    }

    .nested-dropdown-header {
        padding: 6px 15px 6px 35px;
    }

    .article-list {
        padding: 5px 15px 8px 5px;
    }
    

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .language-selector {
        margin-top: 20px;
    }
    
    .ticket-badge {
        display: none
    }
    
}


@media (max-width: 600px) {
    .article-content {
        padding: 0px 30px 30px 30px;
    }
    .help-header  {
        display: inline-block;
    }


    .help-header h2 {
        font-size: 22px;
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        padding: 12px;
    }

    .copy-box {
        flex-direction: column;
    }

    .copy-text {
        border-radius: 4px 4px 0 0;
    }

    .copy-btn {
        border-radius: 0 0 4px 4px;
        padding: 10px;
    }
}




.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
}

.step-indicator:before {
    content: '';
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    border: 2px solid #e9ecef;
    font-size: 14px;
}

.step.active .step-circle {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    max-width: 80px;
    word-wrap: break-word;
}

.step.active .step-label {
    color: #007bff;
    font-weight: bold;
}

.step-content {
    display: none;
    padding: 20px 0;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-content-wrapper {
    padding-right: 10px;
}

.step-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.step-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.step-content-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.step-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.verification-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.verification-option {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verification-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.verification-option.active {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.verification-option i {
    color: #6c757d;
    margin-bottom: 10px;
}

.verification-option.active i {
    color: #007bff;
}

.verification-form {
    display: none;
}

.verification-form.active {
    display: block;
}

.verification-form input {
    border-radius: 10px;
    padding: 14px;  
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.resend-otp {
    text-align: center;
    margin-bottom: 20px;
}

.countdown {
    font-weight: bold;
}

.priority-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.priority-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.priority-btn:hover {
    border-color: #6c757d;
}

.priority-btn.active {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.priority-btn i {
    margin-right: 5px;
}

.priority-btn[data-priority="low"] i {
    color: #28a745;
}

.priority-btn[data-priority="medium"] i {
    color: #ffc107;
}

.priority-btn[data-priority="high"] i {
    color: #dc3545;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.preview-container {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.preview-info {
    flex: 1;
}

.error-message {
    padding: 10px 15px;
    border-radius: 5px;
    animation: fadeIn 0.3s ease;
}

.success-message {
    padding: 10px 15px;
    border-radius: 5px;
    animation: fadeIn 0.3s ease;
}

.helpdesk-intro {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styles pour les éléments collants */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
}

.sticky-bottom {
    position: -webkit-sticky;
    position: sticky;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .step-indicator {
        padding: 10px 0;
    }
    
    .step-indicator:before {
        top: 23px;
        left: 10%;
        right: 10%;
    }
    
    .step-circle {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
        max-width: 60px;
    }
    
    .verification-options {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap; 
        gap: 10px;
    }

    /* Ensure the child elements take up roughly half the space */
    .verification-options > * {
        flex: 1 1 calc(50% - 10px); 
    }
    
    .priority-buttons {
        flex-direction: column;
    }
    
    .preview-container {
        flex-direction: column;
        text-align: center;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .step-content-wrapper {
        max-height: 50vh;
    }
}

@media (max-height: 700px) {
    .step-content-wrapper {
        max-height: 45vh;
    }
}

@media (max-height: 600px) {
    .step-content-wrapper {
        max-height: 40vh;
    }
    
    .step-content {
        padding: 10px 0;
    }
    
    .helpdesk-intro {
        margin-bottom: 15px;
    }
    
    .helpdesk-intro i {
        font-size: 2em;
    }
    
    .helpdesk-intro h4 {
        font-size: 1.2em;
    }
}