body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }
  
/* Fixed header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* adjust height as needed */
  z-index: 1000;
  background-color: #f0f0f0;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
  
  #searchInput {
    padding: 10px;
    width: 70%;
    margin-right: 10px;
  }
  
  .search-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .search-icon {
    display: none;
  }

/* Fixed navbar under header */
.navbar {
  position: fixed;
  top: 80px; /* height of header */
  left: 0;
  width: 100%;
  height: 40px; /* adjust navbar height */
  z-index: 999;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 20px;
}

  .navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .navbar li {
    display: inline-block;
    margin-right: 20px;
  }
  
  .navbar li label {
    display: block;
    cursor: pointer;
    padding: 14px 20px;
  }
  
  .navbar li input[type="checkbox"] {
    margin-right: 10px;
  }

  .navbar li span {
    margin-left: 10px;
    font-weight: bold;
  }

  .navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .navbar li {
    display: inline-block;
    margin-right: 20px;
  }
  
  .checkbox-container {
    display: flex;
    align-items: center;
  }
  
  .checkbox-container label {
    margin-right: 10px;
  }
  

  .results_class {
    margin-top: 120px; /* décalage = hauteur header (80px) + navbar (40px) */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  #results img {
    /* width: 200px; */
    height: auto;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .card {
    position: relative;
    width: 200px;
    margin: 0 auto;
    display: inline-block;
    /* border: 1px solid #ccc; */
    padding: 10px;
    text-align: center;
  }

  .image-container {
    position: relative;
  }

  .logo-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;   /* réduit de 50px à 30px */
    height: auto;
  }
  
  .card img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(114, 108, 108, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-wrap: wrap;
    flex-direction: column;
  }

  /* .modal a button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  } */
  
  .modal img {
    max-width: 80%;
    max-height: 80%;

    display: block;
  }

  .modal h2 {
    text-align: center;
    margin-top: 20px;
  }

  .star-top {
    padding-left: 12px;
    color: burlywood;
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
  }

  .star-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px; /* Ajustez la taille de l'étoile si nécessaire */
    color: #fffa00;
    cursor: pointer;               /* ajout du pointeur */
    transition: transform 0.2s, color 0.2s;
  }

  .star-overlay:hover {
    transform: scale(1.2);         /* effet de grossissement */
    color: #ffd700;                /* légère variation de couleur */
  }
  
  /* Adaptation pour petits écrans */
  @media (max-width: 600px) {
  .search-button {
    padding: 5px 10px;
    font-size: 14px;
  }
  
  .search-text {
    display: none;
  }
  
  .search-icon {
    display: inline;
  }

}

/* Overlay sombre couvrant tout l’écran */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Contenu de la modale centré */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  z-index: 2001;
  padding: 20px 20px 40px;    /* espace autour pour le titre */
}

/* Bouton de fermeture */
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2003;              /* au‑dessus de tout */
}

/* Fond noir semi‑transparent */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Conteneur transparent centré */
.modal-content {
  position: relative;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;            /* pas de scroll interne */
}

/* Image toujours visible et centrée */
.modal-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: 0;
}

/* Boutons au‑dessus de l’image */
.modal-buttons {
  position: absolute;
  top: 50px;                  /* sous la croix */
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 2002;              /* juste en dessous de la croix */
}
.modal-buttons a {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Titre sous l’image, toujours lisible */
.modal-title {
  margin: 20px 0 0;           /* espace au‑dessous de l’image */
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6); /* fond pour lisibilité */
  border-radius: 3px;
  color: #fff;
  text-align: center;
  z-index: 2001;
}

.modal-note {
  margin-top: 8px;
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
  z-index: 2001;
}

.modal-star {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 1.5rem;
  color: #fffa00;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  z-index: 2003;
}
.modal-star:hover {
  transform: scale(1.2);
  color: #ffd700;
}