@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*!bar de recherche*/
.search-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem;
  margin: 2rem;
  width: 80%;
  border-radius: 8px;
  margin-inline: auto;
  gap: 1rem;
  align-items: end;

  .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    label {
      font-weight: 600;
      color: #444;
    }

    #cities,
    #collections-date {
      width: 100%;
      padding: 0.5rem;
      border-radius: 8px;
      border: 1px solid #ddd;
    }

    .form-group select:focus,
    .form-group input:focus {
      border-color: #97b181;
      box-shadow: 0 0 5px rgba(151, 177, 129, 0.4);
      outline: none;
    }
  }
}
button {
  background-color: #97b181; /* bleu */
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  min-width: 120px;
  max-height: 40px;
}

button:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
  background-color: #8ca873;
  box-sizing: border-box;
}

body {
  font-family: roboto, sans-serif;
  font-size: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .display-area {
      /* background-color: rgb(137, 183, 137); */
      border-radius: 1rem;
      padding: 1rem;
      text-align: center;

      .results {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .categories-display {
          display: flex;
          flex-direction: column;
          gap: 1rem;

          > ul {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;

            list-style: none;
            text-align: center;

            > li {
              padding: 1rem;
              width: 60vw;
              background: #fff;
              border-radius: 12px;
              border: 1px solid #e6e6e6;
              padding: 12px 14px;
              box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
              display: flex;
              flex-direction: column;
              align-items: center;
              max-width: 600px;
              >.category-icon{
                font-size: 40px;
              }
            }
          }
        }

        .total-display {
          display: flex;
          flex-direction: column;
          align-items: center;
          margin-bottom: 5rem;
        }
      }
    }
  }
}

header {
  height: 20vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../images/back-hero.jpeg);

  .logo {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.673);
    padding: 0.2rem;

    img {
      height: 80%;
      width: 80%;
    }
  }
}
.navBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: transparent;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  z-index: 100;
}
.navBar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 0.8rem;
  gap: 0.2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  &.current {
    color: #97b181;
  }
}
.navBar a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}
.navBar i {
  width: 22px;
  height: 22px;
}

#loading {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 20px 0;
}

.hidden {
  display: none;
}
