* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

header h1 a {
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
  position: relative;
}

header a {
  margin-right: 24px;
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

header a:hover {
  color: #e63946;
  text-decoration: underline;
}

header nav a.active {
  color: #e63946;
  font-weight: 700;
  text-decoration: underline;
}

main {
  padding: 60px 0;
  min-height: 70vh;
}

h2 {
  margin-bottom: 32px;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding: 20px 0;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e63946;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(230, 57, 70, 0.3);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

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

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.product-card p {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 20px;
}

.product-card button {
  background: #000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.product-card button:hover {
  background: #e63946;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.4);
}

.product-card button:active {
  transform: translateY(0);
}

#cart-section {
  display: block;
  padding: 60px 0;
  min-height: 60vh;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item button {
  background: #e63946;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-item button:hover {
  background: #d62828;
  transform: scale(1.05);
}

.cart-total {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
}

.cart-total p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000;
}

#cart-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

#checkout-btn {
  margin-top: 24px;
  background: #000;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

#checkout-btn:hover {
  background: #e63946;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.4);
}

/* Hero section (page d'accueil) */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content p {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 32px;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background: #000;
  color: white;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e63946;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  main {
    padding: 40px 0;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}
