
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Dosis", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  background-color: #141414;

}
h1 {
  display: flex;
  justify-content: center;
  color: white;
}
.enfant{
  padding: 10px;
  display: flex;
  flex-wrap:wrap;  
  gap: 6px;
  justify-content: center;
  }
  
  body {
    margin: 0;
  }

  
  .bigbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1600px;
    margin: 100px 0;
    gap: 35px;
  }
  
  .carte {
      width: 400px;
      min-width: 400px;
      border-radius: 8px;
      position: relative;
      cursor: pointer;
      border: solid 2px white;
      transition: transform 0.3s ease;
  }
  .carte .image-box{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  
  }
  .carte .image-box img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: 50% 90%;
    transition: 0.5s ease-in-out;
  }
  .carte::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s ease-in-out;
  } 
  .texte {
   opacity: 0;
  transition: 0.4s ease-in-out;
  }
  .carte:hover .texte {
      opacity: 1;
  }
  
  .carte:hover img {
      filter: grayscale(1) brightness(0.4);
  }
  .carte:hover::after{
      opacity: 1;
      inset: 20px;
  }
  .content {
      width: 80%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: white;
  }
  
  @media (width < 1219px) {
      .bigbox {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  
  @media (width < 860px) {
    .bigbox {
      grid-template-columns: 1fr;
    }
  }
.carte:hover{
  transform: scale(1.05);
}

.search-container {
  display: flex;
  justify-content:center;
  align-items: center;
  gap: 2rem;
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 350px;
}
.search-box input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  outline: none;
}
.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.search-box button img {
  width: 24px;
  height: 24px;
}
.search-box input::placeholder {
  color: #999;
  font-style: italic;
}
.search-box input:focus {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.submit{
color: white;
background-color: black;
}
@media (max-width: 400px) {
  .search-box input {
      padding: 12px 16px;
      font-size: 0.9rem;
  }
  .search-box button img {
      width: 20px;
      height: 20px;
  }
}
a {
  color: rgb(255, 255, 255);
}

/* Styles pour les boutons de tri */
.sort-buttons {
  margin: 20px 0;
  text-align: center;
}

.sort-buttons button {
  border: none;
  color: rgb(11, 11, 11);
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition-duration: 0.4s;
  border-radius: 5px;
  background-color: #EBE4E2  ;
}

.sort-buttons button:hover {
  background-color: white;
  color: black;
  border: 2px solid #4CAF50;
}
  footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
  }
  
  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    flex: 1;
  }
  
  .footer-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .footer-section p {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .footer-section ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 5px;
  }
  
  .footer-section ul li a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-section ul li a:hover {
    text-decoration: underline;
  }
  a:hover {
    color: blue;
  }