@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Mono:wght@400;600&display=swap');

:root {
    --primary-color: #d0d0d0; /* Gris clair neutre */
    --secondary-color: #1c1c1c; /* Gris sombre */
    --background-dark: #121212; /* Fond sombre */
    --input-bg: #1a1a1a;
    --shadow-color: rgba(0,0,0,0.4);
    --blur-bg: rgba(20,20,20,0.6);
    --hover-color: #333;
    --danger-color: #e74c3c;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-dark);
  margin: 0;
  padding: 0;
  color: #e5e5e5;
}

/* --- Header --- */
header {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 2px;
}

header .logo {
  max-height: 50px;
  margin-right: 12px;
  filter: drop-shadow(0 0 2px #ceced4) drop-shadow(0 0 5px #4274ff);
}

/* --- Products grid --- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.product {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  width: 150px;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.product img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.product h3 {
  font-size: 0.9rem;
  margin: 0;
  color: #f5f5f5;
}

/* Badge */
.badge {
  position: absolute;
  background: #e0e0e0;
  color: #000;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  top: 8px;
  left: 8px;
}

/* --- Modal --- */
#modal {
  text-align: center;
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#modal .modal-content {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

#modal h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f1f1;
}

select, button {
  margin-top: 8px;
  padding: 8px 12px;
  font-family: inherit;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
}

select {
  background: #222;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

button {
  background: #e0e0e0;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #cfcfcf;
}

/* --- Cart --- */
.cart {
  max-width: 90%;
  margin: 25px auto;
  padding: 15px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cart h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #f1f1f1;
  text-align: center;
  font-weight: 600;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.cart-item button {
  background-color: #c0392b;
  color: white;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 5px;
}

.cart-item button:hover {
  background-color: #922b21;
}

/* --- Bottom controls --- */
.bottom-controls {
  display: flex;
  align-items: start;
  justify-content: left;
  gap: 8px;
  margin-top: 12px;
}

.label-text {
  font-size: 0.8rem;
  color: #bbb;
}

/* --- Tags (inchangés sauf styles déjà présents) --- */
.tag {
  position: absolute;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 6px;
  top: 10px;
  left: 10px;
  z-index: 10;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.tag.new {
  background: linear-gradient(145deg, #e03030, #910707);
}

.tag.hot {
  background: linear-gradient(145deg, #fc782c, #d34504);
}

.tag.best {
  background: linear-gradient(145deg, #3f51b5, #1a237e);
}

.tag.none {
  background: linear-gradient(145deg, #9e9e9e, #616161);
}

option {
  background-color: #222;
  color: #fff;
}
