/* ===== Global variables ===== */
:root {
  --sidebar-width: 280px;   /* largeur de la barre de navigation */
  --banner-height: 210px;   /* hauteur de la bannière */
  --main-color: #003366;    /* couleur principale */
}

/* ===== Reset & base ===== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #fdfdfd;
  height: 100%;
  scroll-behavior: smooth;
}

/* ===== Banner ===== */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--banner-height);
  background: linear-gradient(90deg, var(--main-color), #0055aa);
  color: white;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  box-sizing: border-box;
}

.banner .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin-bottom: 0.5em;
}

.banner .logos img {
  height: 70px;
  width: auto;
  border-radius: 4px;
  background: white;
  padding: 4px;
}

.banner .title-text h1 {
  margin: 0.2em 0 0;
  font-size: 1.9em;
}

.banner .title-text h2 {
  margin: 0;
  font-weight: normal;
  color: #cce6ff;
  font-size: 1.2em;
}

.banner .title-text p {
  margin: 0.4em 0 0;
  font-weight: 500;
}

/* ===== Sidebar (navigation) ===== */
#TOC {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100% - var(--banner-height));
  overflow-y: auto;
  background: #002244;
  color: #fff;
  padding: 1.5em 1em;
  box-sizing: border-box;
  border-right: 3px solid #004488;
  z-index: 900;
}

#TOC h2 {
  font-size: 1.1em;
  color: #fff;
  border-bottom: 1px solid #4477aa;
  padding-bottom: 0.3em;
  margin-top: 0;
}

#TOC ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TOC li {
  margin: 0.4em 0;
}

#TOC a {
  text-decoration: none;
  color: #e6e6e6;
  font-weight: 500;
  font-size: 0.95em;
  display: block;
}

#TOC a:hover {
  color: #66ccff;
}

/* ===== Main content ===== */
#content,
#main,
main,
div.main,
div.body,
div.document,
div#document,
article,
.section,
div#content-inner,
div.wrapper,
body > *:not(#TOC):not(.banner) {
  margin-left: calc(var(--sidebar-width) + 30px) !important;
  /* padding-top removed */
  box-sizing: border-box !important;
  max-width: 980px;
  margin-right: auto;
}

/* ===== Headings ===== */
h1, h2, h3 {
  color: #68c3e7;
  font-family: "Georgia", "Times New Roman", serif;
}

/* ===== Paragraphs (compact) ===== */
p {
  margin: 0.25em 0;
  line-height: 1.4;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}

thead {
  background: var(--main-color);
  color: white;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  text-align: left;
}

tr:nth-child(even) {
  background: #f8f9fa;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.8em auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  font-size: 0.85em;
  color: #777;
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
}

/*  */

h2::before {
  content: "";
  display: block;
  height: 220px; /* hauteur du header */
  margin-top: -220px; /* compense l'espace */
  visibility: hidden;
}

h1::before {
  content: "";
  display: block;
  height: 220px; /* hauteur du header */
  margin-top: -220px; /* compense l'espace */
  visibility: hidden;
}

.center {
  text-align: center;
  font-size: 4em;
}
img{
    width: 600px;
}

table {
  margin: auto;
  border-collapse: collapse;
}
td {
  text-align: center;
  vertical-align: middle;
  padding: 5px;
}
.end{
    height:800px
}
.jus{
    text-align: justify;
}