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

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: white;
  color: #222;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top banner */
.top-banner {
  background-color: #ff0000;
  color: #fff;
  font-size: 13px;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  gap: 8px;
}

.top-banner a {
  color: #fff;
  font-weight: 500;
}

/* Header */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 18px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 999px;
}

/* Search bar */
.header-center {
  flex: 1;
}

.search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
}

.search-bar button {
  padding: 8px 14px;
  border: none;
  background-color: #ff0000;
  color: #fff;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.search-bar button:hover {
  background-color: #e96f00;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.header-link {
  font-size: 14px;
  color: #666;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #111;
  color: #fff;
  font-size: 13px;
}

.cart-count {
  background-color: #ff0000;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Nav categories */
.nav-categories {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.nav-categories {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0;
}

/* Conteneur d'item (avec ou sans dropdown) */
.nav-item {
  position: relative;
  font-size: 13px;
}

/* Lien principal quand il y a un dropdown */
.nav-link {
  padding: 6px 12px;
  border-radius: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  font: inherit;
}

/* Item simple (Promos) */
.nav-item-simple {
  padding: 6px 12px;
  border-radius: 20px;
  color: #444;
}

/* Hover */
.nav-item:hover .nav-link,
.nav-item-simple:hover {
  background-color: #f2f2f2;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 220px;
  display: none;
  z-index: 40;
}

.dropdown-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  white-space: nowrap;
  color: #444;
}

.dropdown-menu a:hover {
  background-color: #f7f7f7;
}

/* Affichage au survol (desktop) */
.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}


/* Hero slider */
.hero-slider {
  background: linear-gradient(135deg, #111 0%, #222 40%, #ff0000 100%);
  color: #fff;
  padding: 32px 0 40px;
}

.slider-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slide.active {
  display: flex;
}

.slide-content h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.slide-content p {
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 420px;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup,
.screen-mockup,
.gadgets-mockup {
  width: 240px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffb347, #ff0000);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* Slider dots */
.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
}

/* Sections */
.section {
  padding: 32px 0;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 14px;
  color: #777;
}

/* Categories grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.category-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-icon {
  font-size: 24px;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #111;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
}

.badge-orange {
  background-color: #ff0000;
}

.product-image {
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2f2f2, #e0e0e0);
}

.product-name {
  font-size: 14px;
  font-weight: 500;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn-primary,
.btn-outline {
  padding: 7px 10px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ff0000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #e96f00;
}

.btn-outline {
  background-color: #fff;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  border-color: #bbb;
}

/* About section */
.about-section {
  background-color: #ffffff;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 24px;
}

.about-text p {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.highlight-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 12px;
}

.highlight-icon {
  font-size: 20px;
}

.highlight-item h4 {
  font-size: 14px;
  margin: 4px 0;
}

.highlight-item p {
  font-size: 13px;
  color: #666;
}

/* Footer */
.site-footer {
  margin-top: 32px;
  background-color: #111;
  color: #ddd;
  font-size: 13px;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
}

.footer-top-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
}

.footer-col p {
  font-size: 13px;
  color: #ccc;
}

.footer-col ul {
  list-style: none;
  margin-top: 6px;
}

.footer-col li {
  margin: 4px 0;
}

.footer-col a {
  color: #ddd;
}

.footer-col a:hover {
  color: #ff0000;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.newsletter-form {
  display: flex;
  margin-top: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px 0 0 999px;
  border: 1px solid #333;
  background-color: #191919;
  color: #fff;
  font-size: 13px;
}

.newsletter-form button {
  padding: 6px 10px;
  border-radius: 0 999px 999px 0;
  border: none;
  background-color: #ff0000;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  padding: 10px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

/* WhatsApp button */
.whatsapp-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 60;
}

/* Variante cartes avec photo (catégories principales) */
.category-card.category-photo {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}

.category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.category-overlay {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-overlay h4 {
  font-size: 15px;
  font-weight: 600;
}

.category-overlay p {
  font-size: 12px;
  color: #777;
}

/* Effet hover raffiné */
.category-card.category-photo:hover .category-image {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .header-center {
    order: 3;
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .top-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: flex;
  }

  .nav-categories {
    display: none;
  }

  .nav-categories.open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    padding-bottom: 12px;
  }

  .slide {
    flex-direction: column;
    text-align: left;
  }

  .slide-image {
    justify-content: flex-start;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

    .nav-categories.open .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 8px;
    display: block;
  }

  .dropdown-menu a {
    padding-left: 24px;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: 26px;
  }

  .slide-content p {
    font-size: 13px;
  }

  .product-card {
    padding: 12px;
  }
}
