:root {
  --bg: #0b0b0d;
  --card-bg: rgba(22, 22, 26, 0.75);
  --accent: #ff2a4b;
  --accent-glow: rgba(255, 42, 75, 0.4);
  --gradient: linear-gradient(135deg, #ff2a4b 0%, #ff6b35 100%);
  --text: #ffffff;
  --text-muted: #9494a0;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: radial-gradient(circle at 50% -20%, rgba(255, 42, 75, 0.15), transparent 70%);
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 13, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Bannière Hero */
.hero {
  text-align: center;
  padding: 9rem 1.5rem 6rem;
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.3), var(--bg)),
              url('https://images.unsplash.com/photo-1513104890138-7c749659a591?w=1600&q=80') center/cover no-repeat;
  position: relative;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 5rem;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item h4 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--accent);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Conteneur principal */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

h2 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 3rem;
}

/* Filtres de catégorie */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Grille & Cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 42, 75, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text);
}

/* Boutons */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 42, 75, 0.6);
}

/* Formulaires */
.form {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 450px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form input {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

.form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  outline: none;
}

/* Alertes */
.alert {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid #4caf50;
  color: #81c784;
}

.alert-error {
  background: rgba(255, 42, 75, 0.15);
  border: 1px solid var(--accent);
  color: #ff8a80;
}

/* Barre Panier Flottante */
.cart-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 500px;
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid var(--accent);
  backdrop-filter: blur(16px);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-bar.hidden {
  opacity: 0;
  transform: translate(-50%, 100px);
  pointer-events: none;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-badge {
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.cart-price {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1;
  margin: 0;
}

/* Footer */
footer {
  background: rgba(11, 11, 13, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-desc {
  margin-top: 0.8rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credit a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-credit a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Responsive Mobile */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}