/* ===== COLOR PALETTE =====
Primary: #0b57a4 (dark tech blue)
Accent: #00d1ff (cyan)
Background: #0f1724 (dark) / #ffffff (light theme alternative)
Text: #e6eef6 (light) / #0f172a (dark)
*/

/* ===== FONT USAGE =====
Primary: Inter (sans-serif, modern)
Secondary: Poppins (headings, bold)
*/

/* ===== UTILITY CLASSES =====
.btn-primary: CTA buttons with glow
.btn-secondary: Secondary actions
.container: Max-width wrapper
.grid: Flex/grid layouts
*/

/* ===== RESPONSIVE BREAKPOINTS =====
Mobile: < 768px
Tablet: 768px - 1024px
Desktop: > 1024px
*/

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f1724, #1e293b);
  color: #e6eef6;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  color: #00d1ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HEADER ===== */
.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 209, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1rem;
  max-width: 100%;
  width: 100%;
}

/* Make nav a positioning context for its absolute children (mobile dropdown) */
.nav {
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00d1ff;
  text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  border-radius: 50%;
  border: 2px solid #00d1ff;
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
  transition: box-shadow 0.3s ease;
}

.logo img:hover {
  box-shadow: 0 0 25px rgba(0, 209, 255, 0.8);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.nav-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-list a:hover::before {
  left: 100%;
}

.nav-list a:hover {
  background: rgba(0, 209, 255, 0.1);
  color: #00d1ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

.nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-list a:hover .nav-icon {
  transform: scale(1.1);
}

.cart-btn {
  background: linear-gradient(135deg, #0b57a4, #00d1ff);
  border: none;
  color: #e6eef6;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

.cart-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 209, 255, 0.5);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: #ffffff;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ===== HAMBURGER MENU — MODERN DESIGN ===== */
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b57a4, #00d1ff);
    border: 2px solid rgba(0, 209, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    padding: 0.65rem;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-left: auto;
  }

  .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
  }

  .hamburger:hover::before {
    left: 100%;
  }

  .hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 209, 255, 0.6);
    border-color: #00d1ff;
  }

  .hamburger:active {
    transform: scale(0.95);
  }

  .hamburger svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
  }

  /* Cacher la navigation desktop sur mobile */
  .header .nav > .nav-list {
    display: none !important;
  }

  /* Overlay de fond semi-transparent */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
  }

  /* Card du menu mobile - CENTRÉ À L'ÉCRAN */
  #nav-list {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #0b57a4, #1e3a8a);
    color: white;
    border-radius: 24px;
    padding: 3rem 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(0, 209, 255, 0.4);
    border: 2px solid rgba(0, 209, 255, 0.3);
    z-index: 999 !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }

  body.menu-open #nav-list,
  #nav-list.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto;
  }

  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid rgba(255, 71, 87, 0.5);
    color: #ffffff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .mobile-menu-close:hover {
    background: rgba(255, 71, 87, 0.4);
    border-color: #ff4757;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
  }

  #nav-list li {
    width: 100%;
    text-align: center;
  }

  #nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(0, 209, 255, 0.2);
    transition: all 0.25s ease;
  }

  #nav-list a:hover {
    background: rgba(0, 209, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(0, 209, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
  }

  #nav-list .nav-icon {
    width: 20px;
    height: 20px;
    color: #00d1ff;
    filter: drop-shadow(0 0 5px rgba(0, 209, 255, 0.4));
  }

  #nav-list .cart-icon {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 209, 255, 0.3);
  }

  #nav-list .cart-btn {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
    padding: 0.9rem;
    background: linear-gradient(135deg, #00d1ff, #00a8ff);
    color: #0f1724;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 209, 255, 0.4);
  }

  #cart-count-mobile {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
  }
}
/* ===== MINI CART ===== */
.mini-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  padding: 2rem 1rem;
  overflow-y: auto;
  border-left: 1px solid rgba(0, 209, 255, 0.3);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mini-cart.active {
  right: 0;
}

.mini-cart-content h3 {
  color: #00d1ff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.cart-items {
  margin: 1.5rem 0;
  max-height: 50vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(230, 238, 246, 0.2);
  transition: transform 0.2s ease;
}

.cart-item:hover {
  transform: translateX(-5px);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(0, 209, 255, 0.3);
}

.cart-item p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.remove-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.remove-btn:hover {
  background: #ff3742;
}

.cart-total {
  margin: 2rem 0;
  font-size: 1.3rem;
  text-align: center;
  color: #00d1ff;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  margin-top: 100px;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
}

.hero-carousel {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: #ffffff;
  max-width: 700px;
  padding: 3rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 2px solid rgba(0, 209, 255, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 209, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.slide-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 209, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.slide-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 209, 255, 0.5);
  background: linear-gradient(135deg, #ffffff, #00d1ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: 2px;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  line-height: 1.8;
}

.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.carousel-controls button {
  background: rgba(0, 209, 255, 0.9);
  border: none;
  color: #0f1724;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
  backdrop-filter: blur(10px);
}

.carousel-controls button:hover {
  background: #00d1ff;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 209, 255, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(11, 87, 164, 0.6));
  pointer-events: none;
  z-index: 1;
}

/* ===== FILTERS ===== */
.filters {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(15px);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 209, 255, 0.3);
  position: relative;
}

.filters .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #00d1ff;
}

.filters input[type="text"] {
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid rgba(0, 209, 255, 0.3);
  border-radius: 16px;
  background: rgba(230, 238, 246, 0.1);
  color: #e6eef6;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filters input[type="text"]:focus {
  outline: none;
  border-color: #00d1ff;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
  transform: scale(1.02);
}

.filters select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 209, 255, 0.3);
  border-radius: 16px;
  background: rgba(230, 238, 246, 0.1);
  color: #e6eef6;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.filters select:focus {
  outline: none;
  border-color: #00d1ff;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
  transform: scale(1.02);
}

.price-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price-filter label {
  font-weight: 600;
  color: #00d1ff;
}

.filters input[type="range"] {
  width: 150px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 209, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.filters input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d1ff;
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
  cursor: pointer;
}

#price-value {
  font-weight: 700;
  color: #00d1ff;
  font-size: 1.1rem;
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f1724, #1e293b);
  position: relative;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 209, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(11, 87, 164, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.why-choose-us h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  color: #00d1ff;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 209, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(50px);
}

.feature-card.animate-on-scroll {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 209, 255, 0.4);
  border-color: rgba(0, 209, 255, 0.6);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #e6eef6;
  font-size: 1.25rem;
}

.feature-card p {
  color: rgba(230, 238, 246, 0.8);
  line-height: 1.6;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 4rem 0;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.cta-btn {
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  border: 3px solid transparent;
  min-width: 280px;
  text-align: center;
}

/* Bouton Principal - Acheter Maintenant */
.cta-btn.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f, #c44569);
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5), 0 0 0 0 rgba(255, 107, 107, 0.7);
  animation: pulse-glow 2s infinite;
}

.cta-btn.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.cta-btn.btn-primary:hover::before {
  left: 100%;
}

.cta-btn.btn-primary:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.7), 0 0 30px rgba(255, 107, 107, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn.btn-primary:active {
  transform: translateY(-4px) scale(1.05);
}

.cta-btn.btn-primary::after {
  content: '🛒';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.cta-btn.btn-primary:hover::after {
  transform: scale(1.2) rotate(10deg);
}

/* Bouton Secondaire - Réparer */
.cta-btn.btn-secondary {
  background: linear-gradient(135deg, #00d1ff, #0099cc, #0077aa);
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 209, 255, 0.5), 0 0 0 0 rgba(0, 209, 255, 0.7);
  animation: pulse-glow-blue 2s infinite 0.5s;
}

.cta-btn.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.cta-btn.btn-secondary:hover::before {
  left: 100%;
}

.cta-btn.btn-secondary:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 20px 60px rgba(0, 209, 255, 0.7), 0 0 30px rgba(0, 209, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn.btn-secondary:active {
  transform: translateY(-4px) scale(1.05);
}

.cta-btn.btn-secondary::after {
  content: '🔧';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.cta-btn.btn-secondary:hover::after {
  transform: scale(1.2) rotate(-15deg);
}

/* Animation de pulsation pour le bouton rouge */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5), 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  50% {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5), 0 0 20px 10px rgba(255, 107, 107, 0);
  }
}

/* Animation de pulsation pour le bouton bleu */
@keyframes pulse-glow-blue {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(0, 209, 255, 0.5), 0 0 0 0 rgba(0, 209, 255, 0.7);
  }
  50% {
    box-shadow: 0 10px 40px rgba(0, 209, 255, 0.5), 0 0 20px 10px rgba(0, 209, 255, 0);
  }
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 3rem;
  max-width: 550px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(0, 209, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  color: #00d1ff;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 209, 255, 0.1);
}

.close:hover {
  background: rgba(0, 209, 255, 0.3);
  transform: rotate(90deg);
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e293b, #0f1724);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 209, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(11, 87, 164, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  color: #00d1ff;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 209, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 20px 60px rgba(0, 209, 255, 0.4);
  border-color: rgba(0, 209, 255, 0.6);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  border: 2px solid rgba(0, 209, 255, 0.2);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #e6eef6;
  font-size: 1.25rem;
}

.service-card p {
  color: rgba(230, 238, 246, 0.8);
  line-height: 1.6;
}

/* ===== CHAT FAB ===== */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #0b57a4, #00d1ff);
  color: #e6eef6;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 209, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.chat-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 35px rgba(0, 209, 255, 0.7);
}

.chat-fab:active {
  transform: scale(0.95);
}

/* ===== CHAT MODAL ===== */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-modal.active {
  opacity: 1;
  visibility: visible;
}

.chat-modal-content {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 0;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-modal.active .chat-modal-content {
  transform: scale(1) translateY(0);
}

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 209, 255, 0.3);
  background: rgba(0, 209, 255, 0.05);
}

.chat-modal-header h3 {
  color: #00d1ff;
  margin: 0;
  font-size: 1.5rem;
}

.chat-close {
  background: none;
  border: none;
  color: #00d1ff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover {
  background: rgba(0, 209, 255, 0.2);
  transform: rotate(90deg);
}

.chat-modal-body {
  padding: 2rem;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}

.chat-modal-body input, .chat-modal-body textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(0, 209, 255, 0.3);
  border-radius: 12px;
  background: rgba(230, 238, 246, 0.1);
  color: #e6eef6;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.chat-modal-body input:focus, .chat-modal-body textarea:focus {
  outline: none;
  border-color: #00d1ff;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
  transform: scale(1.02);
}

.chat-thread {
  height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.2);
}

.chat-input {
  display: flex;
  gap: 1rem;
}

.chat-input textarea {
  flex: 1;
  resize: vertical;
  min-height: 60px;
}

/* ===== CHAT MESSAGES ===== */
.message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.client {
  background: rgba(0, 209, 255, 0.1);
  margin-left: auto;
  text-align: right;
}

.message.admin {
  background: rgba(255, 255, 255, 0.1);
  margin-right: auto;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.message-body {
  word-wrap: break-word;
}

.message-time {
  font-size: 0.7rem;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #0f1724, #1e293b);
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(0, 209, 255, 0.3);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(0, 209, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(11, 87, 164, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer h3, .footer h4 {
  color: #00d1ff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer p {
  margin-bottom: 1rem;
  color: rgba(230, 238, 246, 0.8);
  line-height: 1.6;
}

.footer p i {
  margin-right: 0.5rem;
  color: #00d1ff;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 209, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: rgba(0, 209, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a {
  color: rgba(230, 238, 246, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-block;
}

.footer ul li a:hover {
  color: #e6eef6;
  background: rgba(0, 209, 255, 0.1);
  transform: translateX(5px);
}

.payment-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-icons img {
  height: 50px;
  background: rgba(230, 238, 246, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 209, 255, 0.2);
  transition: all 0.3s ease;
}

.payment-icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

.newsletter {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(0, 209, 255, 0.3);
  border-radius: 12px;
  background: rgba(230, 238, 246, 0.1);
  color: #e6eef6;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter input:focus {
  outline: none;
  border-color: #00d1ff;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 209, 255, 0.2);
  padding-top: 2rem;
  color: rgba(230, 238, 246, 0.7);
  position: relative;
  z-index: 2;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #0b57a4, #00d1ff);
  color: #e6eef6;
  border: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 209, 255, 0.6);
}

.btn-secondary {
  background: rgba(230, 238, 246, 0.1);
  color: #e6eef6;
  border: 2px solid rgba(0, 209, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(0, 209, 255, 0.2);
  border-color: #00d1ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fly {
  0% {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotateY(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.8) translateX(300px) translateY(-200px) rotateY(360deg);
    opacity: 0;
  }
}

.flying {
  position: fixed;
  z-index: 1003;
  animation: fly 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.animate-in {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hide desktop nav on mobile - already handled above */
  .header .nav > .nav-list {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  /* Ensure hamburger SVG is visible and sized on mobile */
  .hamburger svg {
    width: 28px;
    height: 28px;
    color: #e6eef6;
  }

  .hero {
    height: 60vh;
    margin-top: 80px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .filters .container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .chat-input {
    flex-direction: column;
  }

  .chat-fab {
    bottom: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }

  .newsletter {
    flex-direction: column;
  }

  .carousel-controls {
    bottom: 20px;
  }

  .carousel-controls button {
    padding: 0.75rem;
  }

  .cta-buttons {
    gap: 1.5rem;
    margin: 3rem 0;
  }

  .cta-btn {
    padding: 1.2rem 2rem;
    font-size: 1rem;
    min-width: 250px;
  }

  .cta-btn::after {
    font-size: 1.1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
