@import url(reset.css);

html,
body {
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #4a1507;
}

.container {
  width: 70%;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.header__title {
  font-family: "Inspiration", cursive;
  font-size: 3rem;
  font-weight: 500;
  color: #fff;
}

.nav {
  background-color: #440b02;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.nav__list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.nav__item {
  padding: 1rem 2rem;
}

.nav__link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.active {
  color: #d03001;
}

.nav__link:hover {
  color: #d03001;
}

.nav__item:not(:last-child) {
  border-right: 1px solid rgb(105, 91, 11);
}

.main {
  background-color: #78a999;
  min-height: 800px;
}

.banner {
  width: 230px;
}

.main__presentation {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0 1rem 1rem;
  gap: 2rem;
}

.presentation__content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 160px;
}

.presentation__title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
}

.text__presentation {
  color: #fff;
  font-weight: bold;
  padding-right: 1rem;
}

.main__content {
  display: flex;
  position: relative;
  min-height: 620px;
  overflow: hidden;
  /* z-index: 0; */
}

.main__aside {
  width: calc(240px + 2rem);
  display: flex;
  justify-content: center;
  background-color: #78a999;
  /* z-index: 0; */
}

.nav__content {
  padding-top: 1rem;
  background-color: #78a999;
}

.nav__content__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  /* padding: 1rem; */
}

.nav__content__item {
  width: 135px;
  padding: 0 1rem 0.5rem 0;
  border-bottom: 2px solid #fff;
}

.nav__content__link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.peinture__title {
  color: #4d6569;
  font-size: 2rem;
  font-weight: bold;
}

.peinture__picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.card {
  height: 250px;
  position: relative;
}

.card__legend {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #000;
  color: #fff;
  width: calc(100% - (2 * 1rem));
  padding: 0.5rem 1rem;
  text-align: center;
}

.peinture__content {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer {
  padding-top: 3rem;
}

.copyright {
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding-bottom: 0.5rem;
}

.icone__burger {
  font-size: 2rem;
  border: 2px solid #fff;
  border-radius: 0.25rem;
  padding: 0.25rem;
  color: #fff;
  cursor: pointer;
  display: none;
}

.toggle {
  height: 320px !important;
}

.peinture {
  width: 78%;
  background-color: #ddd9c6;
  padding: 1rem 2rem 2rem 2rem;
  overflow: hidden;
}

.block__peinture {
  width: 100%;
  /* position: absolute;
  top: -1000px; */
}

.animationBounce {
  animation: bounce forwards 1s;
}

.icone__close,
.icone__next,
.icone__previous {
  position: fixed;
  font-size: 3rem;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
}

.icone__close {
  top: 1rem;
  right: 1rem;
}

.icone__previous {
  left: 3rem;
  top: calc(50vh - (50px / 2));
  padding: 0 2rem;
}

.icone__next {
  right: 3rem;
  top: calc(50vh - (50px / 2));
  padding: 0 2rem;
}

.lightbox {
  opacity: 0;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  user-select: none;
  /* filter: blur(3px); */
  background-color: rgb(165, 165, 165, 0.8);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.picture__lightbox {
  position: relative;
  border: 5px solid #fff; 
}

.animationFadeInScale{
	animation: fadeInScale 0.5s ease-in-out;
}

.fadeIn {
  animation: fadeIn forwards 0.5s ease-in-out;
}

.fadeOut {
  animation: fadeOut forwards 0.5s ease-in-out;
}

@keyframes fadeInScale {
  0% { transform: scale(0.2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bounce {
  0% {
    transform: translateY(-1000px);
  }
  20% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(100px);
  }
  60% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(70px);
  }
  100% {
    transform: translateY(0);
  }
}

@media screen and (max-width: 1024px) {
  .container {
    width: 85%;
  }

  .peinture__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner {
    width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 95%;
  }

  .banner {
    display: none;
  }

  .main__content {
    flex-direction: column;
  }

  .main__aside {
    width: 100%;
  }

  .nav__content {
    width: 100%;
    padding: 0 1rem 2rem 1rem;
  }

  .nav__content__item {
    width: calc(100% - 1rem);
  }

  .peinture {
    width: calc(100% - 4rem);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__item {
    border-right: 0 !important;
  }

  .icone__burger {
    display: inline-block;
  }

  .nav {
    transition: all 0.5s;
    height: 0;
    overflow: hidden;
    padding: 0;
  }

  .icone__previous {
    left: 0.5rem;
  }
  
  .icone__next {
    right: 0.5rem;
  }

  .picture__lightbox{
    width: 90%;
  }
}
