/*@media only screen and (min-width: 1920px) {*/
/*    .container-xl, .container-lg, .container-md, .container-sm, .container {*/
/*        max-width: 1880px;*/
/*    }*/

/*    .wiki-article div.toc, .wiki-article div.article-list {*/
/*        max-width: 100%;*/
/*    }*/

/*    .form-vertical .wiki-control textarea, .form-horizontal .wiki-control textarea#id_content {*/
/*        height: 1470px;*/
/*        font-size: 20px;*/
/*    }*/

/*    .wiki-label.col-lg-2 {*/
/*        max-width: 150px;*/
/*    }*/

/*    #wiki-edit-sidebar {*/
/*        max-width: 800px;*/
/*        right: -470px;*/
/*    }*/

/*    #div_id_content {*/
/*        width: 3200px;*/
/*    }*/
/*}*/

/*@media only screen and (min-width: 3800px) {*/
/*    .container-xl, .container-lg, .container-md, .container-sm, .container {*/
/*        max-width: 3800px;*/
/*    }*/

/*    body {*/
/*        font-size: 2em;*/
/*    }*/

/*    .wiki-article div.toc, .wiki-article div.article-list {*/
/*        max-width: 100%;*/
/*    }*/

/*}*/
/*@media only screen and (max-width: 1920px) {*/
/*    .container-xl, .container-lg, .container-md, .container-sm, .container {*/
/*        max-width: 1160px;*/
/*    }*/

/*    .form-vertical .wiki-control textarea, .form-horizontal .wiki-control textarea#id_content {*/
/*        height: 400px;*/
/*    }*/
/*}*/

.wiki-label.col-lg-2 {
    max-width: 150px;
}

@media only screen and (min-width: 1920px) {
    .container {
        max-width: 1920px;
    }

    #wiki-edit-sidebar {
        max-width: 400px;
        right: -240px;
    }

    .form-vertical .wiki-control textarea, .form-horizontal .wiki-control textarea {
        height: 530px;
    }

    #article_edit_form {
        width: 1600px;
    }
}

@media only screen and (min-width: 3840px) {
    .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1880px;
    }

    .wiki-article div.toc, .wiki-article div.article-list {
        max-width: 100%;
    }

    .form-vertical .wiki-control textarea, .form-horizontal .wiki-control textarea#id_content {
        height: 1470px;
        font-size: 30px;
    }

    #wiki-edit-sidebar {
        max-width: 800px;
        right: -470px;
    }

    #article_edit_form {
        width: 3200px;
    }

    .container {
        max-width: 3840px;
    }

    body {
        font-size: 1.5em;
    }

}

/*TITRES*/
div.wiki-article h1,
div.wiki-article h2,
div.wiki-article h3,
div.wiki-article h4,
div.wiki-article h5,
div.wiki-article h6 {
    font-weight: bold;
    font-style: italic;
    color: darkred;
    line-height: 85px;
    padding-top: 45px;
}

.wiki-article h1 {
    border-bottom: 10px solid #6c757d !important;
    font-size: 4.5rem;
}

.wiki-article h2 {
    border-bottom: 8px solid #6c757d !important;
    font-size: 4rem;
    padding-left: 40px;
    border-bottom-width: 8px;
}

.wiki-article h3 {
    border-bottom: 6px solid #6c757d !important;
    font-size: 3.5rem;
    padding-left: 80px;
    border-bottom-width: 6px;
}

.wiki-article h4 {
    border-bottom: 4px solid #6c757d !important;
    font-size: 3rem;
    padding-left: 120px;
    border-bottom-width: 4px;
}

.wiki-article h5 {
    border-bottom: 2px solid #6c757d !important;
    font-size: 2.5rem;
    padding-left: 160px;
    border-bottom-width: 2px;
}

.wiki-article h6 {
    border-bottom: 1px solid #6c757d !important;
    font-size: 2rem;
    padding-left: 200px;
    border-bottom-width: 1px;
}

/*BUTTON COPY /PAST*/
div.codehilite pre {
    position: relative;
    max-width: 70%;
}

div.codehilite pre button.btn-copy {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    margin: 5px;
    padding: 5px;
    background-color: #1b365d;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

div.codehilite pre button.btn-copy span::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f0c5";
}

div.codehilite pre button.btn-copy:hover {
    background-color: #3c6382;
}

div.codehilite pre button.btn-copy:active {
    background-color: darkred;
}

/*MENU FLOTTANT*/
.toc-wrapper {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

.toc-button {
    /*position: absolute;*/
    top: 50%;
    right: -80px;
    margin-top: -20px;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.toc-menu {
    position: absolute;
    display: none;
    top: 50%;
    left: -700px;
    transform: translateY(-50%);
    width: 700px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}


.toc-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-menu ul li {
    padding: 10px;
    font-size: 0.9em;
}

.toc-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.toc-menu ul li a:hover {
    color: #f00;
}
.toc-menu a.active {
  color: red;
  font-weight: bold;
}



/*RETURN TO TOP*/
#scrollBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 3px;
  cursor: pointer;
}
