@font-face {
  font-family: DiatypeMED;
  src: url("../fonts/ABCDiatypeEdu-Medium.woff2");
}
@font-face {
  font-family: DiatypeBOLD;
  src: url("../fonts/ABCDiatypeEdu-Bold.woff2");
}
* {
  box-sizing: border-box;
  font-family: DiatypeMED;
  color: brown;
}
body {
  height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: inherit;
  font-size: inherit;
  cursor: default;
}

ul ul {
  padding-inline-start: 20px;
}

.hoverable,
.escape {
  transition: all 0.1s ease-in-out;
}

.hoverable:hover,
.escape:hover,
.aboutFS:hover {
  transform: rotate(3deg);
}
.selected-proj {
  color: rgb(226, 196, 196);
}

#ensemble-screen {
  position: relative;
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

.sidebar-menu {
  position: relative;
  display: flex;
  height: fit-content;
  min-width: 271px;
  box-sizing: border-box;
}

#menu {
  width: fit-content;
  font-family: DiatypeMED;
  padding: 19px;
  margin: 5rem 0 0 1rem;
  background-color: #fffffc;
  line-height: 1.2;
  cursor: pointer;
}

.proj-btn {
  width: fit-content;
}

.toggle_menu {
  display: none;
  margin-top: 5.5rem;
  margin-left: 1rem;
}

.arrow_menu {
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  background-color: #fffffc;
  border: solid brown 1px;
}

#name {
  position: absolute;
  top: 0;
  font-size: 2rem;
  padding: 1rem 1rem 1rem 2.1rem;
  font-family: DiatypeBOLD;
  width: 100%;
  background-color: #fffffc;
  border-bottom: solid brown 1px;
  z-index: 2;
}
.wrapper {
  width: 100%;
}
.rightside {
  padding: 6.2rem 1.5rem 4rem 1rem;
  width: 100%;
  /* max-width: 936px; */
  overflow: scroll;
  scroll-behavior: smooth;
}

.rightside::-webkit-scrollbar {
  display: none;
}

.img-par-defaut {
  display: flex;
  height: 100%;
  max-height: 720px;
  width: 100%;
  object-fit: contain;
  padding: 5em 15% 4em 10%;
  box-sizing: border-box;
  overflow: hidden;
  transition: height 0.5s ease-in-out;
}

.ctn-about {
  position: absolute;
  transform: rotate(20deg);
  z-index: 4;
  right: 3rem;
  top: 8rem;
}

.about,
.aboutFS {
  cursor: pointer;
  padding: 0.5rem 1rem;
  background-color: #fffffc;
  border: solid brown 1px;
}

.about {
  opacity: 0;
}

.about-visible {
  opacity: 1;
}

.aboutFS {
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 12;
}

.icon,
.lang-menu-FS {
  background-color: #fffffc;
  border: solid brown 1px;
}

#ctn-gallery {
  width: 100%;
  display: flex;
  justify-content: left;
  margin-left: calc(-10rem + 20%);
}

.gallery {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
}
.gallery .image {
  padding: 0.5rem;
  height: 9rem;
  width: fit-content;
}

.gallery .image:not(:nth-child(1)) {
  max-width: 300px;
}
.gallery .image:nth-child(1) {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 34rem;
  margin-top: -0.5rem;
}

.gallery .image img {
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery .image img:nth-child(1) {
  width: 100%;
  height: 100%;
}
.gallery .image img:hover {
  opacity: 0.5;
}

.preview-box {
  position: fixed;
  display: flex;
  align-items: center;
  top: 0;
  transform: scale(0.9);
  background: #fffffc;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: all 0.3s ease;
  box-sizing: border-box;
  z-index: 5;
}

.container-info-FS {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 11;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.info-FS-visible {
  opacity: 1;
}

.preview-box .details {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 10px;
  justify-content: space-between;
  z-index: 6;
}
.preview-box .details .title {
  display: flex;
  text-shadow: #fffffc 0 0 3px;
}

.preview-box .details .title,
.details .icon {
  padding: 0.5rem 1rem;
}

.details .title p:nth-child(2) {
  margin-left: 1px;
}

#details-droite {
  display: flex;
  justify-content: space-between;
  width: 17rem;
  min-width: 15rem;
  gap: 1rem;
}

.details .icon {
  font-size: 20px;
  cursor: pointer;
}
.preview-box .image-box {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.image-box img {
  padding: 1%;
  box-sizing: border-box;
}
.slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-family: DiatypeMED;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  text-shadow: #fffffc 0 0 3px;
}
.slide.prev {
  left: 0px;
}
.slide.next {
  right: 0px;
}
.image-box img {
  max-width: 100%;
  max-height: 100dvh;
}
.shadow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: brown(0, 0, 0, 0.45);
}

/* FOOTER */

footer {
  position: absolute;
  display: flex;
  bottom: 0;
  width: 100%;
}
#nav-footer,
#grp-act-info-lang {
  display: flex;
  flex-wrap: nowrap;
}

#nav-footer {
  border-top: solid brown 1px;
  background-color: #fffffc;
  padding: 19px;
  justify-content: space-between;
  box-sizing: border-box;
}

#grp-act-info-lang {
  min-width: 240px;
  justify-content: space-between;
}
#grp-act-info-lang li {
  cursor: pointer;
}
#credits {
  font-size: 0.5em;
  line-height: 2;
  flex-wrap: nowrap;
}

.lang-menu {
  display: flex;
  font-family: DiatypeBOLD;
  font-size: 0.8em;
  line-height: 1.5;
}

#lang {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  justify-content: end;
  font-size: 0.5rem;
  font-family: DiatypeBOLD;
}

.FR,
.EN,
.FR-FS,
.EN-FS {
  cursor: pointer;
  padding: 0;
}

.FR:hover,
.EN:hover {
  transform: rotate(10deg);
}

/* FULLSCREEN */

.lang-menu-FS {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 1;
}

.sidebar-menu-visible {
  transform: translateX(16.3rem);
}

@media (max-width: 1000px) {
  .sidebar-menu {
    position: absolute;
    left: -16.7rem;
    z-index: 5;
  }
  #menu {
    box-sizing: border-box;
    border: solid brown 1px;
    margin-top: 5.5rem;
  }
  .toggle_menu {
    display: block;
    margin-top: 5.5rem;
    margin-left: 1rem;
  }
  .rightside {
    padding: 5.5rem 0.5rem 4rem;
  }

  .img-par-defaut {
    padding: 0 0.5rem;
  }

  #ctn-gallery {
    justify-content: center;
    margin-left: inherit;
  }

  .ctn-about {
    right: 2.6rem;
  }
}

@media (max-width: 600px) {
  .gallery .image {
    width: 100%;
    height: auto;
    padding: 4px;
  }

  .gallery .image:nth-child(1) {
    height: auto;
  }

  #grp-act-info-lang {
    min-width: 210px;
    justify-content: space-between;
  }
  .img-par-defaut {
    padding: 0 0.5rem;
  }

  .gallery .image:not(:nth-child(1)) {
    max-width: 100%;
  }
}
