html, body {
    height: 100%;
  }

body {
    display: flex;
    flex-direction: column;
  }

main {
    flex: 1;
  }

.img-just-rounded {
    border-radius: 10px;
  }

.article-hero {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
  }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Ajustez l'opacité selon l'effet désiré */
    z-index: 1;
  }

.hero-body {
    position: relative; /* Pour que le contenu soit positionné au-dessus de l'overlay */
    z-index: 2;
  }

.hoverable {
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;        /* Prépare le navigateur à optimiser la transformation */
    backface-visibility: hidden;
  }

.hoverable:hover {
    transform: scale(1.04); /* Légère augmentation de la taille */
  }

.menu-fixe {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  }

.menu-list a.is-active {
    background-color: #515050 !important; /* Background color for active elements */
  }

.menu-list a {
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
  }

.menu-list a:hover {
    background-color: #f5f5f5;
    padding-left: calc(var(--left-padding, 0rem) + 0.5rem) !important;
  }

/* Style for different heading levels */
.menu-list a[style*="padding-left: 0rem"] {
    font-weight: 600;
  }

.menu-list a[style*="padding-left: 1rem"] {
    font-weight: 500;
  }

.menu-list a[style*="padding-left: 2rem"] {
    font-weight: 400;
    font-size: 0.9em;
  }

/* Code syntax highlighting enhancements */
pre[class*="language-"] {
    border-radius: 6px;
    margin: 1.5em 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }

code[class*="language-"] {
    font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    line-height: 1.4;
  }

/* Improve readability of inline code */
:not(pre) > code {
    background-color: rgba(79, 89, 99, 0.2);
    color: #e3e3e3;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
  }
