
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #CCB1AB;
}

.image-header {
    width: 100%;
    height: auto;
}

.input-container {
    width: 60%;
    position: relative;
    margin-left: 20%;
    margin-top: 20px;
  }
  
  .icon {
    position: absolute;
    right: 10px;
    top: calc(50% + 5px);
    transform: translateY(calc(-50% - 5px));
  }
  
  #searchInput{
    width: 100%;
    height: 40px;
    padding: 10px;
    transition: .2s linear;
    border: 2.5px solid black;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 4px 4px;
  }
  
  #searchInput:focus {
    outline: none;
    border: 0.5px solid black;
    box-shadow: -5px -5px 0px black;
  }
  
  .input-container:hover > .icon {
    animation: anim 1s linear infinite;
  }
  
  @keyframes anim {
    0%,
    100% {
      transform: translateY(calc(-50% - 5px)) scale(1);
    }
  
    50% {
      transform: translateY(calc(-50% - 5px)) scale(1.1);
    }
  }

.box-container {
    width: 80%;
    margin-left:10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.box {
    width: 25vw;
    height:auto;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #3a3939;
    background-color: #BEBAB3;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 5px 5px rgb(75, 75, 75);
    transform:translateY(-0.2em);
    transition:transform 0.1s ease;
    display:flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
}

.box:hover{
    transform: translate(-5px, -10px);
    box-shadow: 10px 15px rgb(75, 75, 75);
}

.box:active{
    box-shadow: 0px 0px black;
    transform: translate(3px, 3px);
}

.photo{
    width: 90%;
    border-radius: 10px;
}

button{
    background-color: #CCB1AB;
    border-style: none;
}

h1{
    margin:10px;
}

p{
    width: 100%;
    margin:0px;
    font-size: medium;
}

#resultat {
    position: absolute; /* Positionne le bloc par rapport à son parent le plus proche positionné */
    max-height: 30vh; /* Limite la hauteur du bloc à 200px */
    overflow-y: auto; /* Ajoute une barre de défilement verticale si le contenu dépasse la hauteur */
    border: 1px solid #ccc; /* Ajoute une bordure pour une meilleure visibilité */
    background-color: #4B516B; /* Assure que le fond est blanc */
    width: 100%; /* S'étend sur toute la largeur de son parent */
    box-sizing: border-box; /* Inclut la bordure et le padding dans la largeur et la hauteur */
    z-index: 10; /* Assure qu'il est au-dessus des autres éléments */
    display: none; /* Cache le bloc par défaut */
    border-bottom-left-radius: 10px; /* Arrondi le coin inférieur gauche */
    border-bottom-right-radius: 10px; /* Arrondi le coin inférieur droit */
    color:white;

}

.categorie{
    color:grey;
}

#boutton-retour{
    position: absolute; 
    margin-right:90%;
    margin-top:10px;
    background-color: black;
    border: 1px solid #000;
}

  #boutton-contact {
    --font-color: #323232;
    --bg-color: #fff;
    --main-color: #323232;
    width: 35%;
    height: 35px;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    background-color: var(--bg-color);
    box-shadow: 4px 4px var(--main-color);
    font-size: 17px;
    font-weight: 600;
    color: var(--font-color);
    cursor: pointer;
    margin:5%;
    margin-bottom: 20px;
  }

  
  #boutton-contact:hover {
    box-shadow: 0px 0px var(--main-color);
    transform: translate(3px, 3px);
  }

#logo-retour{
  height:4vh;
}
@media (max-width: 768px) { /* Applique les styles ci-dessous aux écrans de 768px de large ou moins */
  p{
      font-size: small;
  }
  .box {
    width: 80vw;
    height:auto;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #3a3939;
    background-color: #BEBAB3;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 5px 5px rgb(75, 75, 75);
    transform:translateY(-0.2em);
    transition:transform 0.1s ease;
    display:flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
}

}

