html{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans,
    Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
      scroll-behavior: smooth;
}

.content .inner h1[id],
.content .inner h2[id],
.content .inner h3[id] {
  scroll-margin-top: 80px;
}

header nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: black;
}


nav h1 {
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  margin-top: -3px;
}


nav img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

#search {
  background-color: rgba(0, 0, 0, .05);
  border-radius: .5rem;
  padding: 0.5rem 0.75rem;
  font-size: .875rem;
  border: none;
  width: 200px;
  outline: none;
  transition: box-shadow 0.2s ease-in-out;
}

#search:focus {
  box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.2);
}
body {
  margin: 0;
  position: relative;
}

#illustration {
  position: absolute;
  top: 0;
  right: 0;
  width: 140%;
  height: auto;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
  margin-top: -90px;
}
.layout {
  display: flex;
  margin-top: 64px;
}

a{
    text-decoration: none;
    color:rgb(122, 128, 141);
}
nav ul{
    list-style: none;
}

.sidebar-left .menu,
.sidebar-left .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  
  
}


.sidebar-left .has-sub .menu-item {
  display: flex;
  align-items: center;
  position: relative;
}


.sidebar-left .toggle-icon {
  flex: 0 0 auto;
  margin-right: 0.5rem;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}


.sidebar-left .menu-item a {
  flex: 1 1 auto;
  padding: 0.25rem 0.2rem;
  display: block;
}


.sidebar-left .has-sub .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.1s ease;
  margin-left: 1.75rem;
  padding-left: 0.25rem;
  border-left: 2px solid rgb(229,233,237);
}

.sidebar-left .has-sub.open > .submenu {
  max-height: 500px;  
}




.sidebar-left {
    position: fixed;
    top: 64px;
    bottom: 0;
    border-right: 1px solid #e2e8f0;
    width: 200px;
    margin-left: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    background: white;
}

.sidebar-left::-webkit-scrollbar {
  width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}



.sidebar-left .menu > li {
  margin-bottom: 0.5rem;
  margin-top: 10px;
}

.sidebar-left a {
  display: block;
  padding: 0.25rem 0.2rem;
  color: rgb(122,128,141);
  border-radius: 4px;
  text-decoration: none;
}

.sidebar-left a.active {
  background: rgb(240,247,255);
  color: rgb(18, 117, 232);
  padding-inline: 10px;
  font-weight: 500;
  width: 140px;
}

.sidebar-left .submenu {
  margin-left: 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgb(229,233,237);
}


.content {
  box-sizing: border-box;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: calc(200px + 20px);
  padding-right: calc(150px + 0px);
  margin-left: 20px;
}

.content .inner {
  max-width: 800px;
  margin: 0 auto;
}



.sidebar-right {
  position: fixed;
  top: 100px;
  right: -50px;
  width: 180px;
  bottom: 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-left: 1px solid rgba(229, 233, 237, 0.8); 
  font-size: 0.875rem;
  height: 80px;
}

.sidebar-right .toc > strong {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(148,163,184);
}

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

.sidebar-right .toc a {
    display: block;
    position: relative;
    padding-left: 0.5rem;
    margin-left: -1rem;
    border-left: none;   
    padding: 0.25rem 0.5rem;
    color: rgb(74,85,104);
    text-decoration: none;
  
}

.sidebar-right .toc a.active {
  color: rgb(13,92,223);
  font-weight: 600;
  border-left: 1px solid rgb(13,92,223);
  margin-left: -1.05rem;
}

article p, li{
    color:rgb(71,85,105);
}


.content pre code {
  font-size: 0.8rem;
  text-align: left;
  display: block;
  margin-left: 15px;
}
pre{
    border-radius: 7px;
    max-width: 700px;
}

.content pre code {
  line-height: 1.4;
}

.content pre {
  padding: 1rem 1.5rem 1rem 1rem;
}

.content .alert {
    max-width: 700px;
    position: relative;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    flex-wrap: wrap;   
}

.content .alert-body {
  flex: 1;
  min-width: 0;
}
.content .alert::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-top: 0.1rem;
}

.content .alert-info {
  background: #e8f4fd;
  border: 1px solid #b6e0fe;
  color: #055160;
}
.content .alert-info::before {
  content: "\f129";
  color: #0e7490;
}

.content .alert-success {
  background: #edf7ed;
  border: 1px solid #a3d9a5;
  color: #1e4620;
}
.content .alert-success::before {
  content: "\f058";
  color: #166534;
}

.content .alert-warning {
  background: #fff4e5;
  border: 1px solid #fea53b;
  color: #92400e;
}

.content .alert-warning::before {
  content: "\f071";
  color: #b45309;
}

.content .alert-error {
  background: #fdecea;
  border: 1px solid #f5c2c7;
  color: #842029;
}
.content .alert-error::before {
  content: "\f057";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.5rem;
  color: #842029;
}

.content code.inline {
  background-color: rgba(100, 100, 100, 0.1);
  color: #2c3e50;
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.content img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px; 
  transition: transform 0.3s ease;
}

.content img:hover {
  transform: scale(1.01);
}

.image-wrapper {
  position: relative;
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  width: fit-content;
}

.image-wrapper .bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 96%;
  filter: blur(25px) brightness(1.1);
  transform: scale(1.01);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  border-radius: 12px;
}

.image-wrapper img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


@media (max-width: 800px) {
  .sidebar-right{
    display: none;
  }
  .content{
    padding-right: calc(15px + 0px);
  }
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 6px;
  left: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

@media (min-width: 1660px) {
    .content{
        margin-left: -60px;
        padding-left: 0px;
        padding-right: calc(150px + 0px);
    }
}

@media (max-width: 550px) {
  .mobile-menu-btn {
    display: block;
  }
  .sidebar-left {
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin-left: 0;
    margin-top: -7px;
  }
  /* Quand on ajoute .open via JS, on remet la sidebar en place */
  .sidebar-left.open {
    transform: translateX(0) !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }
  .content {
    padding-left: 0px;
    margin-left: 6px;
  }
  #github{
    display: none;
  }
  #title{
    margin-left: 30px;
  }
  .content img {
  height: 250px;
}
#keyframes_img{
  height: 80px;
}
#timeline_img{
  height: 150px;
}

}
#search-container {
  position: relative;
  display: inline-block; /* ou flex selon ton layout */
}

/* Style du dropdown */
#search-results {
  position: absolute;
  top: calc(100% + 4px); /* juste en dessous de l’input */
  left: 0;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);      /* plus opaque */
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(-5px);
}

/* Affichage */
#search-results.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Liens */
#search-results a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#search-results a:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Scrollbar moderne et fine */
#search-results::-webkit-scrollbar {
  width: 6px;
}

#search-results::-webkit-scrollbar-track {
  background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Pour Firefox */
#search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
