/******************************/
/*********** Général***********/
/******************************/
html {
  --bg-color: var(--CONFIG-bg-color, #FFFCEB);
  --footer-text-color: var(--CONFIG-footer-text-color, #fff);
  --bg-img-footer: var(--CONFIG-bg-img-footer);
  --accent: #156D7E;
  --accent-light: rgba(21, 109, 126, 0.08);
  --title-color: #02132B;
  --text-color: #3a4555;
  --text-muted: #6b7684;
  --border-color: rgba(21, 109, 126, 0.15);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body,
html {
  font-size: 16px;
  height: 100%;
}

body {
  width: 100%;
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 100%;
  color: var(--text-color);
  line-height: 1.7;
}

a {
  color: var(--footer-text-color, #fff);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
}

/*******************************/
/****** Layout principal *******/
/*******************************/
.content {
  width: 100%;
}

.bodyContent {
  max-width: 860px;
  padding: 0 24px 60px;
  margin: 0 auto;
}

/*******************************/
/*********** Header ************/
/*******************************/
.page-header {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 48px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.arrowBlack {
  width: 20px;
  height: 20px;
}

.app-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.2;
  margin-bottom: 12px;
}

.update-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/*******************************/
/******* Contenu document ******/
/*******************************/
.doc-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 14px;
  line-height: 1.4;
}

.section-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: var(--accent-light);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.doc-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--title-color);
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.doc-section h3:first-of-type {
  margin-top: 8px;
}

.doc-section p {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.75;
  margin-bottom: 10px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul {
  margin: 10px 0;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-section ul li {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.doc-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.5;
}

/******************************/
/*********** Footer ***********/
/******************************/
footer {
  background-image: var(--bg-img-footer, linear-gradient(to right, #156D7E, #156D7E));
  color: var(--footer-text-color, #fff);
  padding: 1.15rem 1.875rem;
  margin-top: 0;
}

footer ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 1050px;
  width: 100%;
  margin: 0 auto;
}

footer li {
  font-size: clamp(0.6875rem, 0.558rem + 0.5525vw, 1rem);
}

/*************************************/
/*********** Media Queries ***********/
/*************************************/
@media screen and (max-width: 700px) {
  .bodyContent {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 24px 0 36px;
    margin-bottom: 32px;
  }

  .doc-section {
    padding: 24px 0;
  }

  footer ul {
    display: grid;
    text-align: center;
  }
}
