@import url(/css/reset.css);

@font-face {
  font-family: 'inspirationregular';
  src: url('inspiration-regular-webfont.woff2') format('woff2'),
       url('inspiration-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

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;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

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

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

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

.nav__item {
  padding: 1rem 2rem;
}

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


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

.nav__link__hidden{
  display: none;
}

.nav__link.active {
  color: red !important; /* Change la couleur en rouge */
  font-weight: bold !important; /* (Optionnel) Rend le texte plus visible */
}



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

.banner {
  width: 230px;
}

.main__presentation {
  display: flex;
  align-items: center;
  padding: 1rem 0.25rem 1rem 1rem;
  gap: 2rem;
}

.presentation__content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-self: stretch;
}

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

.presentation__text {
  color: #fff;
  font-weight: bold;
}

.galery {
  display: flex;
}

.galery__nav {
  width: calc(230px + 2rem);
}

.galery__nav__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

.galery__nav__item {
  width: 140px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fff;
  margin-left: 1rem;

}

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

.peinture {
  background-color: rgb(221, 217, 198);
  width: calc(100% - (230px + 2rem));
  padding: 1rem 2rem 2rem 2rem;
  overflow: hidden;
  
}


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

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

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

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

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

.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 !important;
}

.animationBounce{
  animation: bounce forwards 1s; 
  /* forwards pour que l'animation reste en position à la fin */
}


.colorRed{
  background-color: red;
}

.hidden{
  display: none;
}

.showList{
  display: block;
}



/* Lightbox container */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
}

.lightbox.visible {
  visibility: visible;
  opacity: 1;
}

/* Lightbox content */
.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Lightbox buttons */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
}

.lightbox__close {
  top: 10px;
  right: 10px;
}

.lightbox__prev {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}



@keyframes bounce {
0%{
  transform: translateY(-1000px);
}

20%{
  transform: translateY(0);

}

40%{
  transform: translateY(60px);

}

60%{
  transform: translateY(0);

}

80%{
  transform: translateY(30px);

}

100%{
  transform: translateY(0);

}




}



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

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

    .nav__item{
        padding: 1rem;
    }

  
}

@media screen and (max-width: 768px) {
  .header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }



    .container{
        width: 95%;
    }

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

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

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

    .banner{
        display: none;
    }

    .galery{
        flex-direction: column;
    }

    .galery__nav{
        width: 100%;
    }

    .galery__nav__list{
        align-items: flex-start;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .galery__nav__item{
        width: 100%;
    }

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

    .icone__burger{
        display: inline-block !important;
        margin-bottom: 2rem;
        justify-self: center;
        align-self: center;
    }
}


