/* O'LOCAL RECYCLERIE - Design inspiré du logo */
/* Couleurs principales : Jaune vif (#FFD700), Rouge (#DC2626), Noir, Blanc */

:root {
  --yellow-bright: #FFD700;
  --yellow-light: #FFF9C4;
  --red-primary: #DC2626;
  --red-dark: #B91C1C;
  --black: #000000;
  --white: #FFFFFF;
  --gray-dark: #1F2937;
  --gray-light: #F3F4F6;
}

/* Styles de base */
body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background-color: var(--yellow-light);
}

/* Logo et header */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-star {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-star svg {
  width: 100%;
  height: 100%;
  fill: var(--red-primary);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-banner {
  background-color: var(--black);
  color: var(--white);
  padding: 4px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 4px;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, var(--yellow-bright) 0%, #FFC107 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--red-primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.slogan {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow-bright);
  margin-top: 8px;
}

/* Boutons */
.btn-primary {
  background-color: var(--red-primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: var(--yellow-bright);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 10px 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--black);
  color: var(--yellow-bright);
}

/* Cards produits */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--red-primary);
}

.product-card .price {
  color: var(--red-primary);
  font-weight: 900;
  font-size: 1.5rem;
}

/* Badges */
.badge-stock {
  background-color: var(--red-primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stock.out-of-stock {
  background-color: var(--gray-dark);
}

.badge-category {
  background-color: var(--yellow-bright);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Filtres */
.filter-section {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--black);
}

.filter-section input,
.filter-section select {
  border: 2px solid var(--black);
  border-radius: 4px;
}

.filter-section input:focus,
.filter-section select:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
  color: var(--white);
  border-top: 4px solid var(--red-primary);
}

/* Illustrations décoratives */
.decorative-icon {
  width: 40px;
  height: 40px;
  opacity: 0.3;
  margin: 8px;
}

/* Dark mode adjustments */
.dark {
  background-color: var(--gray-dark);
  color: var(--white);
}

.dark .product-card {
  background-color: #374151;
  color: var(--white);
}

.dark .filter-section {
  background-color: #374151;
  border-color: var(--white);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  .slogan {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
}

/* Utilitaires */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Cookie banner */
.cookie-banner {
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--red-primary);
}
