/* COULEURS */

:root {
  --base: #422219;
  --wood: #8d6946;
  --light-wood: #d0a67e;
  --yellow: #d0a67e;
  --green: #7e8347;
}

/* COULEURS */

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

* {
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Quicksand, sans-serif;
  background-color: black;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--base);
}

#global-content {
  position: fixed;
  height: 100%;
  width: 100%;
}

#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -10;
  width: 100%;
  opacity: 100%;
}

#barriers {
  background-image: url(images/barriers.png);
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 100%;
  bottom: 0;
  animation: popIn 1s ease-in-out;
}

@keyframes popIn {
  from {
    transform: translateY(200px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
  }
}

#night-video {
  height: 120%;
}

#presentation-elements {
  width: 100%;
  height: 100%;
  position: relative;
  animation: popIn 1.2s ease-in-out;
}

#main-character {
  position: absolute;
  width: 50%;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

#info-pannel {
  position: absolute;
  height: 100%;
  width: 50%;
  bottom: 0;
  left: 40%;
  transform: translateX(-50%);
}

#pannel {
  position: absolute;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  box-sizing: border-box;
}

#pannel-text {
  position: absolute;
  height: 20%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

#poster-position {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  bottom: 15%;
  left: 8%;
}

#projects {
  height: 70%;
  transition: all 0.3s ease-in-out;
  rotate: 5deg;
}

#travel {
  height: 70%;
  transition: all 0.3s ease-in-out;
  rotate: -5deg;
}

#projects:hover {
  transform: rotate(-5deg) scale(1.05);
}

#travel:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Responsive Accueil */

@media (max-width: 780px) {
  #global-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
  }

  #main-character {
    display: none;
  }

  #info-pannel {
    width: 100%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  #pannel {
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    box-sizing: border-box;
  }

  #poster-position {
    position: absolute;
    width: 90%;
    display: flex;
    justify-content: center;
    bottom: 25%;
    left: 17%;
  }

  #projects-link {
    height: 50%;
    transition: all 0.3s ease-in-out;
    rotate: 5deg;
    box-sizing: border-box;
  }

  #travel-link {
    height: 50%;
    transition: all 0.3s ease-in-out;
    transform: rotate(-5deg) translateY(-20%);
  }

  #projects {
    width: 60%;
  }

  #travel {
    width: 60%;
  }

  #pannel-text {
    position: absolute;
    height: auto;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    width: 60%;
    min-width: 60%;
  }
}

@media (max-width: 450px) {
  #poster-position {
    position: absolute;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    left: 0%;
    flex-direction: column;
    align-items: center;
    bottom: -20px;
  }

  #projects {
    width: 100%;
  }

  #travel {
    width: 100%;
  }

  #projects-link {
    rotate: -5deg;
    margin-left: 7%;
  }

  #travel-link {
    rotate: 10deg;
  }
}

/* Page Projets */

#navbar {
  position: absolute;
  top: 0;
  width: auto;
  height: auto;
  background-image: url(images/woodTexture.png);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 20;
  box-sizing: border-box;
  padding: 20px;

  border-bottom: 5px solid var(--base);
  border-left: 5px solid var(--base);
  border-right: 5px solid var(--base);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  flex-wrap: wrap;
  animation: slideDown 1s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-element {
  text-decoration: none;
  color: var(--base);
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

#selection-contener {
  width: 70%;
  max-width: 800px;
  background-image: url(images/woodTexture.png);
  background-size: cover;

  display: flex;
  gap: 20px;
  justify-content: space-evenly;
  align-items: center;

  padding: 20px;
  border: 5px solid var(--base);
  border-radius: 20px;
  flex-direction: column;
  animation: popIn 1.3s ease-in-out;
  align-self: center;
  margin-top: 12%;
}

#selection-buttons {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.selection-button {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
}

.selection-picture {
  width: 100%;
  max-width: 250px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.selection-picture:hover {
  transform: scale(1.05);
}

#main-character-projects {
  position: absolute;
  width: 40%;
  right: 0;
  pointer-events: none;
  z-index: 10;
  bottom: 0;
  animation: popIn 1.4s ease-in-out;
}

#selection-title {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--base);
}

#hanging-lights {
  background-image: url(images/hanginglights.gif);
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 100%;
  bottom: 0;
}

#selection-title2 {
  display: none;
}

/* Responsive Projets */

@media (max-width: 700px) {
  #selection-contener {
    flex-direction: column;
    margin-top: 200px;
  }

  #main-character-projects {
    display: none;
  }

  #selection-title2 {
    display: inline;
  }

  #selection-title {
    display: none;
  }
}

/* Page Dessins */

#selection-contener-drawings {
  width: 90%;
  max-width: 800px;
  background-image: url(images/woodTexture.png);
  background-size: cover;

  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;

  padding: 20px;
  border: 5px solid var(--base);
  border-radius: 20px;

  margin: 150px auto;
}

#drawings-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  background-image: url(images/woodTextureLarge.png);
  background-size: cover;
  border-top: 5px solid var(--base);
  padding: 20px 0;
}

.drawing {
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 250px;
  border: 3px solid var(--base);
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

.drawing:hover {
  transform: scale(1.05);
}

#drawings-banner {
  background-image: url(images/background.png);
  width: 100%;
  height: 300px;
  margin-top: 25px;
  border-top: 4px solid var(--base);
  border-bottom: 4px solid var(--base);
  position: relative;
}

#banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

#banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--base);
  font-size: 3em;
  pointer-events: none;
  font-weight: 900;
}

/* Image plein écran */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid var(--base);
  border-radius: 20px;
}

/* Responsive Dessins */

@media (max-width: 600px) {
  #selection-contener-drawings {
    width: 95%;
    padding: 15px;
    margin: 130px auto;
  }

  #drawings-content {
    width: 100%;
    padding: 15px 0;
    gap: 10px;
  }

  .drawing {
    max-width: 90%;
    max-height: none;
    width: auto;
    height: auto;
    margin: 10px;
  }

  #drawings-banner {
    height: 200px;
  }

  #banner-title {
    font-size: 2em;
  }
}

/* Page animations */

.animation {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 3px solid var(--base);
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  object-fit: contain;
}

.animation2 {
  height: 100%;
  max-height: 230px;
  border: 3px solid var(--base);
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  object-fit: contain;
}

.animation:hover {
  transform: scale(1.05);
}

#animations-banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 25px;
  border-top: 4px solid var(--base);
  border-bottom: 4px solid var(--base);
  background-image: url(images/background.png);
  background-size: cover;
  background-position: center;
  position: relative;
}

#animations-banner-video {
  width: 100%;
  max-width: 800px;

  border: 4px solid var(--base);
  border-radius: 10px;
  object-fit: contain;
}

#animations-banner-title {
  color: var(--base);
  font-size: clamp(1.5rem, 5vw, 3em);
  font-weight: 900;
  margin-bottom: 20px;
  text-align: center;
}

#animations-character {
  position: absolute;
  width: 30%;
  right: 0;
  pointer-events: none;
  z-index: 10;
  bottom: 0;
}

.animations-title {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--base);
}

.animations-contener {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive Animations */

@media (max-width: 600px) {
  .animation {
    max-width: 90%;
    width: auto;
    height: auto;
    margin: 10px 0;
  }

  #animations-character {
    display: none;
  }

  .animation2 {
    height: 100%;
    max-height: auto;
    border: 3px solid var(--base);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
  }
}
