@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body { font-family: 'Poppins', sans-serif; scroll-behavior: smooth; overflow-x: hidden; }
.hero-gradient { background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%); }
.search-section { background: linear-gradient(135deg, #1B4F72 0%, #0F2027 100%); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.btn-primary { background: linear-gradient(to right, #2E86C1, #1B4F72); }
.btn-primary:hover { background: linear-gradient(to right, #1B4F72, #2E86C1); }
.brand-logo { filter: grayscale(100%); transition: filter 0.3s ease; }
.brand-logo:hover { filter: grayscale(0%); }

.filters-row { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; }
.flex-fill { flex: 1; min-width: 0; }

#accueil {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/header.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: auto;
}

.services { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: #fff; padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all 0.3s ease; border: 1px solid #e2e8f0; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.service-icon { width: 4rem; height: 4rem; background: linear-gradient(135deg, #2E86C1 0%, #1B4F72 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.service-icon i { font-size: 1.5rem; color: white; }
.service-title { font-size: 1.25rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; }
.service-description { color: #6b7280; line-height: 1.6; }

.mobile-menu { display: block; }
.mobile-menu.hidden { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.cart-badge { position: absolute; top: -8px; right: -8px; background: #ef4444; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.cart-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.cart-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; border-radius: 12px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; }
.cart-item { border-bottom: 1px solid #e5e7eb; padding: 1rem; }
.cart-item:last-child { border-bottom: none; }
.cart-empty { text-align: center; padding: 2rem; color: #6b7280; }

.holiday-banner {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s ease-out;
}

.holiday-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  animation: shimmer 20s linear infinite;
  pointer-events: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.holiday-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.holiday-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.holiday-text {
  flex: 1;
}

.holiday-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.holiday-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

.holiday-message strong {
  font-weight: 600;
  color: #fef3c7;
}

.holiday-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.holiday-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.holiday-banner.hidden {
  display: none;
}

@media (max-width: 768px) {
  .holiday-banner {
    padding: 1rem;
  }

  .holiday-content {
    gap: 1rem;
  }

  .holiday-icon {
    font-size: 1.8rem;
  }

  .holiday-title {
    font-size: 1.1rem;
  }

  .holiday-message {
    font-size: 0.85rem;
  }

  .holiday-message br {
    display: none;
  }
}

@media (max-width: 768px) {
  #accueil {
    min-height: 50vh;
  }

  footer img {
    height: 120px !important;
  }

  * {
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  [data-aos] {
    will-change: transform, opacity;
    transform: translateZ(0); 
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  [data-aos="fade-up"],
  [data-aos="fade-down"],
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translateZ(0);
  }

  [data-aos].aos-animate {
    transform: translateZ(0) !important;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  section {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  border-top: 3px solid #2E86C1;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.cookie-icon {
  font-size: 2.5rem;
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.cookie-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #d1d5db;
}

.cookie-link {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #93c5fd;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cookie-btn-refuse {
  background: transparent;
  color: white;
  border: 2px solid #6b7280;
}

.cookie-btn-refuse:hover {
  background: #374151;
  border-color: #9ca3af;
}

.cookie-btn-accept {
  background: linear-gradient(to right, #2E86C1, #1B4F72);
  color: white;
}

.cookie-btn-accept:hover {
  background: linear-gradient(to right, #1B4F72, #2E86C1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 134, 193, 0.4);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-text {
    min-width: unset;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-title {
    font-size: 1.1rem;
  }

  .cookie-description {
    font-size: 0.9rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.875rem;
  }
}

@media (min-width: 769px) {
  #accueil {
    min-height: 40vh; 
  }
}
