body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: url('/image/Eclipse_FA1.jpg') no-repeat center center fixed;
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Variables permettant de positionner la description du staff */
:root {
  --staff-desc-height: auto;   /* hauteur de la boîte */
  --staff-desc-left: initial;  /* position à gauche  */
  --staff-desc-right: -425px; /* position à droite */
  --staff-desc-bottom: -100px;/* distance depuis le bas */
  --staff-desc-position: relative; /* type de positionnement */
}

h1 {
  text-align: center;
  color: #fff;
}

nav {
  text-align: center;
  margin-bottom: 20px;
}

.btn-primary {
  display: block;
  margin: 0 auto 30px auto;
  padding: 10px 20px;
  background-color: #ff0202;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #c30000;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product {
  background: rgba(82, 78, 78, 0.9);
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  text-align: center;
}

.product img {
  width: 100%;
  border-radius: 10px;
}

.product button {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  background: #ff0202;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.product button:hover {
  background: #555;
}

/* 🔲 Conteneur du bouton panier */
.cart-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

/* 🔘 Bouton icône du panier */
#cart-button {
  background-color: #ff0202;
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

/* 🛍️ Contenu du panier caché par défaut */
.cart-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background-color: #1e1e2f;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 15px;
  min-width: 250px;
  color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.cart-dropdown {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 50px;
  left: 0;
  background-color: #1e1e2f;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 15px;
  min-width: 250px;
  color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.cart-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.remove-item {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 16px;
}

.clear-cart {
  margin-top: 10px;
  background-color: #ff0202;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}



/* CATÉGORIE STAFF */

body {
  font-family: Arial, sans-serif;
  background: url('/image/Eclipse_FA1.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  color: white;
  margin: 30px 0 10px;
}

#category-menu {
  text-align: center;
  margin-top: 20px;
}

#category-menu a button {
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  background: #ff0202;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#category-menu a button:hover {
  background: #b60000;
}

.staff-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.staff-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  width: 220px;
  text-align: center;
  color: rgb(255, 255, 255);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.staff-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(252, 0, 0, 0.5);
  object-fit: cover;
  margin-bottom: 15px;
}

.staff-name {
  font-size: 1.2em;
  font-weight: bold;
}

.staff-role {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Rôle personnalisé */
.staff-role.fondateur { color: #000000; }
.staff-role.admin { color: #000000; }
.staff-role.modo { color: #000000; }
.staff-role.dev { color: #000000; }

/* Empêche le panier de bloquer le menu */
nav#category-menu {
  position: relative;
  z-index: 10;
}

/* Panier flottant en bas à droite avec un z-index inférieur */
.cart-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5; /* Doit être < 10 pour ne pas bloquer les liens du menu */
}

.staff-description {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  width: 1000px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  padding: 40px;
  height: var(--staff-desc-height);
  position: var(--staff-desc-position, relative);
  left: var(--staff-desc-left);
  right: var(--staff-desc-right);
  bottom: var(--staff-desc-bottom);
}

/* Style de la dropdown du panier */
.cart-dropdown {
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: absolute;
  bottom: 40px;
  right: 0;
}
.cart-dropdown {
  background-color: #2b2933;
  color: white;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: absolute;
  bottom: 60px;
  right: 0;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.cart-header {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  background-color: #ff00b8;
  padding: 10px;
  border-radius: 8px;
}

.cart-empty {
  color: #b9b9b9;
  margin-bottom: 10px;
}

.cart-user {
  background-color: #c547ff;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.cart-total {
  border-top: 2px solid #444;
  margin-top: 20px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total span {
  font-size: 16px;
  color: #ff00b8;
}

.cart-total strong {
  font-size: 20px;
  color: white;
}

.pay-button {
  background: linear-gradient(90deg, #ff00b8, #a100ff);
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
}
/* Header */
header {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
}

.login-button {
  background-color: #ff0202;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Menu */
#category-menu {
  text-align: center;
  margin-bottom: 20px;
}

#category-menu a button {
  margin: 0 10px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background-color: #ff0000;
  color: rgb(255, 253, 253);
  font-weight: bold;
  cursor: pointer;
}

/* Panier */
.cart-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

#cart-button {
  font-size: 24px;
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-dropdown {
  background-color: #2b2933;
  color: white;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: absolute;
  bottom: 60px;
  right: 0;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
  display: none;
}

.cart-header {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0); /* transparence ajustée ici */
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.cart-empty {
  color: #b9b9b9;
  margin-bottom: 10px;
}

.cart-user {
  background-color: #ff0000;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.cart-total {
  border-top: 2px solid #444;
  margin-top: 20px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total span {
  font-size: 16px;
  color: #ff0000;
}

.cart-total strong {
  font-size: 20px;
  color: white;
}

.pay-button {
  background: linear-gradient(90deg, #ff0000, #ff0000);
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
}

.cart-dropdown {
  display: none;
  position: absolute;
  right: 20px;
  top: 50px;
  background: #2e2e2e;
  padding: 20px;
  border-radius: 10px;
  color: white;
  min-width: 250px;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.cart-dropdown.visible {
  display: block;
}

/* Centrer le conteneur des produits */
#product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centre horizontalement */
  align-items: flex-start; /* tu peux aussi mettre center */
  gap: 20px;
  padding: 20px;
}

/* Style des cartes produits */
.product-card {
  background-color: rgba(0, 0, 0, 0.6); /* ou ta couleur */
  color: white;
  border-radius: 10px;
  padding: 20px;
  width: 200px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Bouton panier */
.product-card button {
  background-color: rgb(255, 0, 0);
  border: none;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}




/*NE PAS TOUCHER */
#category-menu {
  position: relative;
  z-index: 10;
}
.cart-toggle {
  z-index: 5;
}