@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@1,700&display=swap');

body {
  height: 100vh;
  margin: auto;
  width: 100%;
  background-color: #f1f1f1;
  line-height: 1.8;
  font-weight: 400;
  font-family: 'Ubuntu', sans-serif;
}

/* Dark mode styles */
.dark-mode .parallax #wave1 {
  fill: #494949;
}

.dark-mode .parallax #wave2 {
  fill: rgba(255, 255, 255, 0.5);
}

.dark-mode .parallax #wave3 {
  fill: #d8d8d8;
}

.dark-mode .parallax #wave4 {
  fill: #a09e9e;
}

.dark-mode .parallax {
  opacity: 0.3;
}

.dark-mode .info hr {
  color: white;
}

.dark-mode #horizontal-line,
.dark-mode #vertical-line {
  stroke: rgb(238, 232, 232);
}

.parallax #wave1 {
  fill: #d8d8d8;
}

.parallax #wave2 {
  fill: rgba(255, 255, 255, 0.5);
}

.parallax #wave3 {
  fill: #d8d8d8;
}

.parallax #wave4 {
  fill: #fff;
}

.dark-mode .reseaux a {
  background-color: #222 !important;
}

.dark-mode #darkModeButton img {
  filter: invert(80%);
}

.dark-mode img {
  filter: invert(80%);
}

.dark-mode a {
  color: #e0e0e0 !important;
}

.top-right {
  position: absolute;
  right: 0;
  color: blue !important;
}

.bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  color: blue !important;
}

#horizontal-line,
#vertical-line {
  stroke: #585858;
}

.text-center {
  display: flex;
  justify-content: center;
  width: 70%;
  height: 100vh;
  flex-direction: column;
  margin: auto;
}

.text-center h1 {
  font-size: 650%;
  margin: 10px 0 60px 0;
  display: flex;
}

.text-center h1 a {
  position: relative;
  color: black;
  text-decoration: none;
  -webkit-text-stroke: 2px white;
}

.nom {
  display: flex;
  justify-content: end;
  z-index: 9;
  flex-wrap: wrap;
  width: 28%;
  position: relative;
}

.nom h3 {
  margin: 0;
}

.nom p {
  margin: 5px 0 auto;
  text-align: right;
}

.info {
  width: 110%;
  display: flex;
  justify-content: end;
}

.info hr {
  margin: 0;
  margin-left: 0px;
  margin-left: 20px;
  z-index: 9;
  color: gray;
}

.waves {
  position: absolute;
  width: 100%;
  opacity: 0.5;
  margin-bottom: -7px;
  min-height: 113px;
  max-height: 570px;
  bottom: 7px;
}

.dark-mode {
  background-color: #222;
  color: #fff;
}

.dark-mode-image {
  filter: invert(1);
}

.reseaux {
  width: 2%;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 18%;
  right: 0%;
  margin-right: 30px;
}

.reseaux a {
  cursor: pointer;
  margin-bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reseaux a img {
  width: 70%;
}

.reseaux a + a {
  margin-top: 10px;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
}

.work h1 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  font-size: 60px;
}

.work ul {
  width: 80%;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  margin: auto;
}

.work ul li {
  text-decoration: none !important;
  list-style: none;
  margin-bottom: 40px;
  font-size: 60px;
}

.text-center h1 a:hover {
  -webkit-text-stroke: 2px black;
  color: transparent;
}

/* about */
.main-about {
  width: 100%;
  height: 100%;
  display: flex;
}

.main-about h1 {
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 60px;
  margin: 20px 0;
}

.about {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}

.square-book {
  width: 60%;
  background-color: blue;
  height: 90%;
  display: flex;
}

.left-square-book {
  width: 50%;
  background-color: red;
}

.right-square-book {
  width: 50%;
  background-color: green;
}

.waves-about {
  position: absolute;
  z-index: auto;
  width: 100%;
  opacity: 0.5;
  margin-bottom: -7px;
  min-height: 113px;
  max-height: 570px;
  bottom: 7px;
}

.div-about-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 10%;
}

.nav-about {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

nav .link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 7%;
  margin-right: 0px;
  left: 0;
  cursor: pointer;
  z-index: 99;
}

nav .link::before {
  content: '';
  position: absolute;
  width: inherit;
  height: inherit;
  background-image: linear-gradient(to right, transparent, 25%, rgba(70, 69, 69, 0.808));
  border-radius: 0 50% 50% 0;
  transform: scale(2);
  z-index: -2;
}

nav .link::after {
  content: '';
  position: absolute;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background-color: rgba(230, 230, 230, 0.808);
  border-radius: 0 50% 50% 0;
  transform: scale(2);
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

nav .link:hover::after {
  opacity: 0.9;
}

nav ul.submenu {
  position: absolute;
  top: 5%;
  right: 9em;
  transform: rotate(102deg);
}

nav ul.submenu li {
  --item: 1;
  position: absolute;
  width: 120px;
  height: 25px;
  transform: rotate(calc(-170deg / 5 * var(--item))) translateX(-175px);
  transform-origin: left center;
  display: flex;
  justify-content: end;
  align-items: center;
  transition:transform .7s , opacity .2s;
}
nav > input:checked ~ ul li{
  transform: rotate(calc(-170deg / 5 * var(--item))) translateX(0);

} 
nav ul.submenu li a {
  text-decoration: none;
  list-style: none;
}


nav ul.submenu li a i {
  font-size: 20px;
  border-radius: 50%;
  background-color: #575353;
  color: white;
  border: 2px solid transparent;
  padding: 5px;
}

nav ul li a:hover i{
  background-color: transparent;
  border-color: rgb(255, 0, 0);
}

nav ul li a span{
  position:absolute;
}



nav ul li:nth-child(2) {
  --item: 2;
}

nav ul li:nth-child(3) {
  --item: 3;
}

nav ul li:nth-child(4) {
  --item: 4;
}


nav .link .close,
nav input:checked ~ label .menu{
  display: none;
}
nav input:checked ~ label .close{
  display: block;
}

.submenu li a i {
  filter: invert(100%);
}