* {
  box-sizing: border-box;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: #334155;
}
.site {
  max-width: 100%;
  margin: 0 auto;
}
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
  z-index: 100;
  box-shadow: 0 -2px 5px 0 #aaa;
}
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.titre {
  font-weight: bold;
  font-size: 1.6rem;
  color: #0d6efd;
  text-decoration: none;
}

.search,
.search-sidebar {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  width: 200px;
}
.layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: 70px;
  left: 0;
  width: 300px;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  height: calc(100vh - 70px);
  transition: transform 0.3s ease;
}
.sidebar-content {
  padding: 1.5rem;
}
.section-title {
  font-weight: bold;
  color: #64748b;
  margin: 1.5rem 0 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.table-container {
  max-width: 700px;
  margin: 10px auto;
  padding: 2rem;
}

.table-container h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.table-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-list li {
  list-style: none;
  margin: 1rem 0;
  display: block;
  background: white;
  color: #1e293b;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list li {
  margin: 0.25rem 0;
}
.nav-list a {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: #475569;
  transition: all 0.2s ease-in-out;
}
.nav-list a:hover {
  color: #0366cf;
  background: #e2e8f0;
}
.nav-list a.active{
  color: #0366cf;
  font-weight: 500;
  border-left: 3px solid #0366cf;
}
.gad li {
  list-style: none;
}
.content {
  max-width: 650px;
  margin: 0 40px;
  overflow-y: auto;
  height: auto;
  line-height: 1.6;
}
.content h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c6badff;
}
.content h2 {
  font-size: 1.8rem;
  color: #2c4a75ff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}
.content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
img {
  display: block;
  margin: 1rem auto;
  border: 2px solid #b5c6d6ff;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}
.imaggro {
  height: 45vh;
  margin: 1rem auto;
}
.imaggra {
  max-width: 100%;
  margin: 1rem auto;
}
.btn-menu {
  display: none;
  background: #b1b1b1ff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 6px;
}
.nav-list li {
  display: block;
}
.contenu {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 100%;
}
.sousch {
  position: fixed;
  top: 100px;
  right: 5%;
  width: 250px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}
.sousch ul {
  list-style: none;
  padding: 0;
}
.sousch li {
  margin: 8px 0;
}
.sousch a {
  text-decoration: none;
  color: #333;
  padding: 0 10px;
}
.sousch a:hover {
  color: #0366cf;
}
.sousch a.active {
  color: #0366cf;
  border-left: 2px solid #0366cf;
}
.chap3 {
  flex: 3;
  width: 100%;
}
[id]::before {
  content: "";
  display: block;
  height: 70px;
  margin-top: -70px;
}
.tableau {
  width: 100%;
  overflow-x: auto;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
  overflow-x: auto;
}
.param-table thead {
  background-color: #0366cf;
  color: white;
}
.param-table th,
.param-table td {
  border: 1px solid #ddd;
  padding: 3px 15px;
}
.param-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.code-container {
  overflow-x: auto;
  white-space: nowrap;
}
.code-container code {
  white-space: nowrap;
  display: inline-block;
  width: 100%;
  background-color: #f5f5f5;
  color: #e83e8c;
  padding: 6px 20px;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 1.1em;
}
strong {
  font-size: 1.1em;
}
.link-doc {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, text-decoration 0.3s;
  font-size: 1.1rem;
}
.link-doc:hover {
  color: #334155;
  text-decoration: underline;
}
pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 0 20px;
  overflow-x: auto;
  font-size: 14px;
}
code {
  font-family: Consolas, monospace;
}
.grey {
  background-color: #DDD;
  padding: 1px 4px;
  border-radius: 4px;
}
.language-json {
  color: #e6db74;
}
@media (max-width: 1400px) {
.header-content {
  padding: 0 2rem;
}
}
@media (max-width: 1317px) {
  .sousch {
    display: none;
  }
}
@media (max-width: 1175px) {
  .sidebar {
    width: 240px;
  }
}
@media screen and (max-width: 985px) {
  .btn-menu {
    display: inline-block;
  }
  .search {
    display: none;
  }
  .layout {
    margin-left: 0;
  }
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 300px;
    height: calc(100vh - 60px);
    transform: translateX(-100%);
    z-index: 99;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .imaggro {
    height: 45vh;
    margin: 1rem auto;
  }
  img {
    max-width: 100%;
    margin: 1rem auto;
  }
  .content,
  body.chapitre3 main {
    margin: 0 20px;
  }
}
@media (max-width: 544px) {
  .content {
    padding: 0.5rem;
  }
  .content h1 {
    font-size: 1.7rem;
  }
  .content h2 {
    font-size: 1.2rem;
  }
  .content p,
  strong,
  li,
  td,
  th {
    font-size: 0.9rem;
  }
  .code-container code {
    font-size: 0.9rem;
  }
  .nav-list a {
    font-size: 0.9rem;
  }
  .link-doc {
    font-size: 0.9rem;
  }
  img {
    margin: 1rem auto;
  }
  .imaggro {
    height: 35vh;
  }
  .imaggra {
    max-width: 80%;
  }
}
@media (max-width: 384px) {
  .content {
    padding: 0;
  }
  .content h1 {
    font-size: 1.4rem;
  }
  .content h2 {
    font-size: 1.2rem;
  }
  .code-container code {
    font-size: 0.7rem;
  }
  .content p,
  strong,
  a,
  li,
  td,
  th {
    font-size: 0.9rem;
  }
}
