body {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  opacity: 0;
}

/*******************/
/***** HEADER ******/
/*******************/
header {
  min-height: 40vh;
  background: var(--cguBg);
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url(../img/balls_bg.png);
  background-size: 30% 300%;
  background-position: center 0%;
  animation: movingOnce 60s linear infinite normal;
  transition: 0.2s ease-in-out;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background: var(--cguSection);
}
.section_cgu_container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20% 0 10%;
}
.cgu_sidebar {
  position: sticky;
  top: 100px;
  height: 100%;
  width: 20%;
}
.cgu_sidebar ul {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  gap: 10px;
}
.cgu_sidebar ul li {
  list-style: none;
}
.cgu_sidebar ul li a {
  text-decoration: none;
  color: var(--white);
  font-size: max(1.5rem, 2rem);
  color: var(--clay);
  font-family: var(--text);
  font-weight: 500;
  transition: 0.2s ease-in-out;
}
.cgu_sidebar ul li a:hover {
  color: var(--white);
}

.section_cgu {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 85%;
  background: var(--cguSection);
  box-shadow: 0 0 7px #000;
  padding: 2vw 5vh;
  margin-top: -235px;
}
/* .Section cgu div {
  scroll-behavior: smooth;
} */

.section_cgu h1 {
  text-align: center;
  font-family: var(--title);
  font-size: calc(2vmin + 3rem);
  color: var(--concretFull);
  padding: 2vh 0 5vh 0;
}

.section_cgu h3 {
  font-family: var(--title);
  font-size: clamp(1.5rem, 3.5rem, 4.5rem);
  color: var(--concretFull);
  margin: 2.5rem 0;
}

.section_cgu h4 {
  font-family: var(--sub_title);
  font-weight: 700;
  color: var(--clay);
  font-size: clamp(1.5rem, 2.5rem, 3.2rem);
  margin: 2rem 0;
}

.section_cgu p {
  font-family: var(--text);
  font-size: clamp(1.5rem, 1.5vw, 2rem);
  line-height: 30px;
  font-weight: 600;
  color: #7f7a74;
  text-align: justify;
}

/**********************/
/** Bouton scroll up **/
/**********************/
.scroll-to-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 4%;
  bottom: 7%;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 2px;
  opacity: 0;
  box-shadow: -1px 1px 7px #111;
  transition: 0.3s ease-in-out;
  cursor: pointer;
  z-index: 1000;
}

.scroll-to-top:hover {
  box-shadow: 0 0 7px var(--white), 0 0 15px var(--clay);
}

.topArrowImg {
  width: 25px;
}
.arrow-visible {
  animation: movingButton 3s ease-in-out infinite;
  background-image: linear-gradient(
    to right,
    var(--black),
    var(--clay),
    var(--black)
  );
  background-size: 200% 100%;
  transition: 0.3s ease-out;
  opacity: 1;
}

/*****************/
/****** BAR ******/
/*****************/
.progress_bar_container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-49%, 0);
  width: 83.5vw;
  height: 70px;
  padding: 8px 2px 0 2px;
  background: var(--trans);
  /* box-shadow: 8px 8px 15px #c5c5c5; */
  border-radius: 5px;
  z-index: 1000;
}
.bar_container {
  position: relative;
  width: 100%;
  height: 100%;
}

.bar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  top: 65px;
  width: 0;
  height: 30px;
  background-image: linear-gradient(to right, var(--trans), var(--clay));
  border-radius: 2px;
  transition: width 0.25s ease-in-out;
}
.percentage {
  position: absolute;
  top: 20%;
  right: 15px;
  color: var(--white);
  z-index: 1001;
  font-size: 1.5rem;
  user-select: none;
}

footer p {
  text-align: center;
  padding: 2% 0;
  font-size: 1.6rem;
  font-family: var(--text);
  color: var(--white);
}

@media screen and (max-width: 1830px) {
  .progress_bar_container {
    max-width: 77%;
  }
}

@media screen and (max-width: 1227px) {
  main {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background: rgb(15, 15, 15);
    padding: 5% 5vw;
  }
  .cgu_sidebar {
    display: none;
  }
  .section_cgu_container {
    padding: 0;
  }
  .section_cgu {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;

    padding: 2vw 2vh;
  }
  .progress_bar_container {
    top: 7.5%;
    left: 50%;
    transform: translate(-49%, -5%);
    width: 83.5vw;
  }
}
