body {
  margin: 0;
  font-family: sans-serif;
  background-color: #1f1b3a; /* violet bleuté spatial */
  color: white;
}


  
  /* Pour le  Menu mobile */
  .nav__toggle,
  .nav__close {
    display: inline-flex;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
  }
  
  .nav__toggle img,
  .nav__close img {
    width: 2rem;
    height: auto;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgb(47, 35, 114);
    backdrop-filter: blur(16px);
    width: 80%;
    height: 100%;
    padding: 8rem 3.5rem 3.5rem;
    transition: right 0.4s;
    z-index: 1000;
    display: flex;
    flex-direction: column; 
  }
  
  .show-menu {
    right: 0;
  }
  
  .nav__list {
    display: flex;
    flex-direction: column; 
    list-style: none;
  }
  
  .nav__link {
    color: white;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.4s;
  }
  
  .nav__link:hover {
    color: #a084ff;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  /* Desktop version */
  @media screen and (min-width: 768px) {
    .nav__menu {
      position: static;
      width: auto;
      height: auto;
      background-color: transparent;
      backdrop-filter: none;
      padding: 0;
      display: flex;
      flex-direction: row; 
      justify-content: center; 
    }
  
    .nav__list {
      flex-direction: row; 
      column-gap: 2rem;
    }
  
    .nav__toggle,
    .nav__close {
      display: none;
    }
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    margin-top: 100px;
    margin-left: 30px;
  }
  
  
  
  /* Carte de mes astres */
  .catalogue-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  
  .carte-astre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(6px);
    color: white;
  }
  
  .carte-astre:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }

  .carte-astre:focus {
  box-shadow: 0 0 0 3px #eace8f;
  background-color: rgba(255, 255, 255, 0.07);
  outline: none;
}

  

  .image-astre {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  

  .contenu-astre {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  

  .titre-astre {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
  }
  
  /* Description */
  .description-astre {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: justify;
    margin: 0;
    color: #dcdcdc;
  }
  

  .details-astre {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
  }
  
  .details-astre strong {
    color: #ffffff;
  }
  
  
  
  
  
  

  /* footer */
.footer {
  background-color: #3e01429c;
  color: #f1f1f1;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: 70px;
}


.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  color: #aaa;
}

  /* filtre et barre de recherche */
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
  }
 
  .wrapper {
    width: 95%;
    margin: 0 auto;
  }
  #search-container {
    margin: 1em 0;
  }
  #search-container input {
    background-color: transparent;
    width: 40%;
    border-bottom: 2px solid #ffffff;
    padding: 1em 0.3em;
    color: white;
  }
  #search-container input:focus {
    border-bottom-color: #6759ff;
  }
  #search-container button {
    padding: 1em 2em;
    margin-left: 1em;
    background-color: #6759ff;
    color: #ffffff;
    border-radius: 5px;
    margin-top: 0.5em;
  }
  .button-value {
    border: 2px solid #6759ff;
    padding: 1em 2.2em;
    border-radius: 3em;
    background-color: transparent;
    color: #6759ff;
    cursor: pointer;
  }


  
  .active {
    background-color: #6759ff;
    color: #ffffff;
  }
  #products {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 1.5em;
    padding: 2em 0;
  }
  .card {
    background-color: #ffffff;
    max-width: 18em;
    margin-top: 1em;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 1em 2em 2.5em rgba(1, 2, 68, 0.08);
  }
  .image-container {
    text-align: center;
  }
  img {
    max-width: 100%;
    object-fit: contain;
    height: 15em;
  }
  .container {
    padding-top: 1em;
    color: #ffffff;
  }
  .container h5 {
    font-weight: 500;
  }
  .hide {
    display: none;
  }
  @media screen and (max-width: 720px) {
    img {
      max-width: 100%;
      object-fit: contain;
      height: 10em;
    }
    .card {
      max-width: 10em;
      margin-top: 1em;
    }
    #products {
      grid-template-columns: auto auto;
      grid-column-gap: 1em;
    }
  }

/* bouton ajouter */
  .bouton-ajout-container {
    text-align: center;
    margin: 40px 0;
  }
  
  .bouton-ajout {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1e1e2f; /* fond sombre spatial */
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #00bfff;
  }
  
  .bouton-ajout:hover {
    background-color: #00bfff;
    color: #1e1e2f;
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
  }
  
  
.button-value.active {
  background-color: #222;
  color: #fff;
}
