body {
  background-image: url(images_site/fond.png);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  header {
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
  }
  
.artgorithme {
    justify-content: center;
    display: flex;
    color: #f71b1b;
    font-size: 1.5em;
    font-family: "Revalia", sans-serif;
    
    font-style: normal;
    animation: h1BorderBlink 2s infinite;
    width: 410px;
    height: 60px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    align-items: center;
}

@keyframes h1BorderBlink {
    0% {
        box-shadow: 0 0 15px yellow,
                    inset 0 0 10px yellow;
        border: 2px solid yellow;
    }
    50% {
        box-shadow: 0 0 5px rgb(204, 0, 255),
                    inset 0 0 3px rgb(204, 0, 255);
        border: 1px solid rgb(204, 0, 255);
    }
    100% {
        box-shadow: 0 0 15px yellow,
                    inset 0 0 10px yellow;
        border: 2px solid yellow;
    }
}

  .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    margin-top: -40px;
    
  }
  
  .menu li {
    margin: 0;
  }
  
  .menu a {
    text-decoration: none;
    color: #6e0202;
    padding: 5px 10px;
    font-size: 1em;
    font-family: "Revalia", sans-serif
  }
  
  .menu {
    background-image: url(images/fond.png);
    border-radius: 10px;
    transition: 0.3s;
  }
  
  .galerie {
    font-family: "Revalia", sans-serif;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    margin: auto;
    width: 90%;
    box-sizing: border-box;
  }
  
  .image-wrapper img {
    width: 90%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    filter: brightness(1.1);
  
  }
  
  /* Lightbox */
  #lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  #lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 10px 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 1s ease, opacity 1s ease;
    transform: scale(1);
    
    cursor: pointer;
  }
  .recherche {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
        }
.recherche input {
    padding: 10px 20px;
    width: 26%;
    max-width: 500px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgb(0, 0, 0);
}

.recherche select {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #000;
    margin-left: 10px;
  }
  
  @media screen and (max-width: 768px) {
.galerie {
  grid-template-columns: repeat(2, 1fr);
}  

.image-wrapper img {
  width: 100%;
}

.menu {
  flex-direction: column;
}
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
  }

  .image-wrapper img {
    animation: fadeIn 0.5s ease-in-out;
  }

  #pagination {
    text-align: center;
    margin: 30px auto;
  }
  
  #pagination button {
    padding: 10px 15px;
    margin: 0 10px;
    border-radius: 10px;
    background-color: rgb(143, 137, 137);
    border: 1px solid black;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
  }
  
  #pagination button:hover {
    background-color: lightsteelblue;
  }
  
  #pagination button:disabled {
    opacity: 0.9;
    cursor: not-allowed;
  }
  
  #page-numbers {
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 10px;
    color: white;
  }
  
#page-numbers button {
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: rgb(88, 84, 84);
  border: 1px solid #000;
  font-weight: bold;
  cursor: pointer;
}

#page-numbers button:hover {
  background-color: #222;
  color: rgb(255, 0, 0);
}

#page-numbers button:disabled {
  background-color: black;
  color: rgb(255, 0, 0);
  cursor: default;
  font-weight: bold;
  
}


  @media screen and (max-width: 1024px) {
    .galerie {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media screen and (max-width: 768px) {
    .galerie {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .menu {
      flex-direction: column;
      align-items: center;
    }
  
    .image-wrapper img {
      width: 100%;
    }
  
    .recherche {
            flex-direction: column;
      align-items: center;
    }
  
    .recherche input,
    .recherche select {
      width: 80%;
      margin-bottom: 42px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .galerie {
      grid-template-columns: 1fr;
    }
  
    .image-wrapper img {
      width: 100%;
    }
  
    #pagination button {
      width: 100px;
      margin: 5px;
    }
  }
  
  .carousel {
    overflow: hidden;
  width: 100%;
    margin: 40px auto;
    width: 750px;
    padding: 30px 30px;
    background-color: #000;
    margin-bottom: 42px;
    
    
    border-radius: 5px;
    box-shadow: 20px 35px 35px rgba(0, 0, 0, 0.5);
}

   

.image-container img {
    width: 200px;
    height: 270px;
    margin-right: 20px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #a5b1c2;
    cursor: pointer;
}

.image-container {
  display: flex;
  width: max-content;
  will-change: transform;
}




.social-nav {
  margin-top: 2em;
  text-align: center;
}

.social-nav a {
  display: inline-block;
  margin: 0 1em;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-nav img {
  width: 45px;   /* adapte selon ton design */
  height: 45px;
  object-fit: contain;
  filter:  brightness(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
}

.social-nav a:hover img {
  filter: drop-shadow(0 0 5px #00ffff);
  transform: scale(1.3);
}
