#page {
    overflow:visible !important;
}

/* 
* BLOG POST COMPONENTS
*/
.single-post-txt
{
    line-height:1.5;
}
.single-post-txt .txt-code
{
    text-align: justify;
    margin-left:3%;
    margin-right:3%;
}
/* Titles and paragraphs */
.single-post-txt h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

.single-post-txt h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.single-post-txt h4 {
    font-weight: 600;
    font-size: 1.10rem;
    margin-top: 20px;
    margin-bottom: 20px;
}


.single-post-txt h5 {
    font-weight: 400;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.single-post-txt h2,
.single-post-txt h3, 
.single-post-txt h4,
.single-post-txt h5,
.single-post-txt h6 {
    scroll-margin-top: 90px; /* adapte selon la hauteur de ta nav fixe */
}


.single-post-txt p {
    text-align: justify;
    font-size:0.95rem;
}

/* <ol> elements */
.single-post-txt ol {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    line-height:1.4;
    counter-reset: list-counter;
}

.single-post-txt ol li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 2.7rem;
    padding-top:0.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.single-post-txt ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: #333;
}

/* <ul> elements */
.single-post-txt ul {
    padding-left: 0;
    margin: 1.5rem 2rem;
    counter-reset: list-counter;
}

.single-post-txt ul.simple-list.long-list p {
    margin-left: 00px;
}

/* code blocks with figure */
.single-post-txt pre {
    background-color: inherit;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 1.5rem 0; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}  
.single-post-txt code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

.single-post-txt figure {
    margin: 2rem 0;
    text-align: center;
}

.single-post-txt pre + figure {
    text-align: center;
}

/* images with figure and captions */
.single-post-txt img {
    text-align: center;        
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post-txt figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
} 

.hljs-ln td {
    padding: 0px 5px !important;
}

/* blockquote */ 
/* .single-post-txt blockquote p {
    font-size: 1.5rem;
    line-height: 1.45;
    margin-bottom: 40px;
} */

.single-post-txt blockquote {
    /* background-color: #1a1a1a; */
    border-left: 4px solid #333D4D; /* barre verticale grise */
    padding: 0rem 1.5rem;
    /* margin: 1rem 0; */
    line-height: 1.5;
}

.single-post-txt blockquote p {
    margin-bottom: 0px;
}

.single-post-txt table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  font-size: 0.8rem;
  color: #333;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-post-txt th,
.single-post-txt td {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.single-post-txt th {
  background-color: #f7f7f7;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-post-txt tr:last-child td {
  border-bottom: none;
}

.single-post-txt tr:hover {
  background-color: #fafafa;
  transition: background 0.2s ease-in-out;
}

/* 
* BLOG POST META COMPONENTES
*
* Table of content
*/
.toc {
    font-weight: 500;
}

.toc a.active {
    /* font-weight: bold; */
    color: #D45220;
    border-left: 2px solid #f2c4ad;
    padding-left: 5px;
}

.toc h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

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

.toc-list li {
    margin: 8px 0;
    font-size: 0.87rem;
    line-height: 1.2;
}

.toc-list a {
    text-decoration: none;
    color: inherit;
    font-size: 0.95em;
}

.toc-list a:hover {
    color: #007BFF;
}

.toc-list li ul li {
    margin-bottom: 5px;
}

.toc-list a.active {
    color: #D45220;
    border-left: 2px solid #f2c4ad;
    padding-left: 5px;
    font-weight: 500;
}

.toc-list ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-left: 20px;
    opacity: 0;
    transition-delay: 0.1s;
}

.toc-list ul.expanded {
    max-height: 1000px;
    opacity: 1;
    transition-delay: 0s;
}


/* Responsive behavior */
/* @media screen and (max-width: 768px) {
    .toc {
        font-size: 0.9em;
    }

    .toc-list li {
        margin: 5px 0;
    }

    .toc a {
        padding-left: 3px;
    }

    .toc-toggle {
        font-size: 0.8em;
    }

    .toc-list ul {
            max-height: none !important;
            overflow: visible;
        }
    }
}
 */

 @media screen and (max-width: 991px) {
    .toc-list ul {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
    }
}

/* 
* BLOG POST META COMPONENTES
*
* Post tags and meta components
*/

.blog-post-image-main,
.blog-post-image,
.blog-post-image-side {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 15px; /* si besoin seulement sur la .main */
}

/* Hauteurs explicites */
.blog-post-image-main { height: 400px; }
.blog-post-image      { height: 300px; }
.blog-post-image-side { height: 260px; }

.blog-post-image img,
.blog-post-image-main img,
.blog-post-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* remplit et rogne */
  object-position: center;  /* coupe depuis le centre (haut/bas égaux) */
  display: block;
}
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #444;
    margin-top: 0.5rem;
}

.blog-post-meta-tag {
    background-color: #fbe8e1;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.6rem;
    color: #D45220;
    transition: background-color 0.2s ease;
}

.blog-post-meta a {
    color: inherit;
    text-decoration: none;
}

.blog-post-meta-tag:hover {
    background-color: #f2c4ad;
}

.blog-post-meta a:hover {
    text-decoration: none;
    color: #D45220!important;
}

.meta-separator {
    margin: 0 0.25rem;
    color: #bbb;
}

.blog-post-meta-duration {
    font-weight: 500;
    color: #1f2937;
}

.blog-btns-group .btn {
    margin-right: 5px;
    margin-top: 15px;
}


.blog-btns-group .tag:hover, 
.blog-btns-group .tag.active {
    color: #fff!important;
    border-color: #db5521!important;
    background-color: #db5521!important;
}


/* 
* BLOG POST META COMPONENTES
*
* Post author information
*/
.post-author-txt {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.90rem;
    line-height: 1.6;
}

.post-author-txt .dates-line {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 0.25rem;
}  

.blog-post-sticky-wrapper {
    position: sticky;
    top: 100px;
}


/* 
* BLOG POST META COMPONENTES
*
* Top progress bar
*/
#progress-bar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #db5521;
    z-index: 100;
    transition: width 0.2s ease-out;
    opacity: 0; /* invisible au départ */
}

#header-sentinel {
    height: 1px;
}

.accordion-block {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.accordion-title {
    font-size: 18px;
    font-weight: 600;
    padding: 0px 20px;
    cursor: pointer;
    position: relative;
}

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    /* transition: transform 0.3s ease; */
}

.accordion-block.active .accordion-title::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.3s ease, padding 0.3s ease; */
    background-color: #fff;
    padding: 0 20px;
}

.accordion-block.active .accordion-content {
    padding: 0px 20px;
    max-height: 1500px; /* Ajuste selon ton besoin */
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #db5521;;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#backToTop:hover {
    background-color: #db5521;
}

/* Cacher sur mobile */
@media (max-width: 768px) {
    #backToTop {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: 0px!important;
    }
}

/* Advisory severity */
.badge-severity-critical {
    background-color:#1B2D47;
    font-size: 1em;
    color: white!important;
}

.badge-severity-high {
    background-color: #d66031;
    font-size: 1em;
    color: white!important;
}

.badge-severity-medium {
    background-color:#f2b738;
    font-size: 1em;
    color: white!important;
}

.badge-severity-low {
    background-color:#00B050;
    font-size: 1em;
    color: white!important;
}