
* {
  
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
}

body {
  
  color: white;
  font-size: 0.9rem;
}



/* Styles du header */
header {
  width: 100%;
  padding: 1px 0;
  background-color: #121218;
  border-bottom: 1px solid #333;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-space h2 {
  font-size: 1.8rem; 
}

.logo-space, .nav-buttons li a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
}

.logo-space img {
  height: 27px;
  width: auto;
}

.navigation {
  flex-grow: 1;
  margin: 0 20px;
}

.nav-buttons {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: center;
  padding-top: 13px;
}

.nav-buttons li a {
  flex-direction: column;
  font-size: 10px;
  transition: all 0.3s;
}

.nav-buttons svg {
  width: 16px;
  height: 16px;
}

.nav-buttons li a:hover, svg:hover {
  transform: scale(1.2);
  color: white;
}

.search-login-bar {
  display: flex;
  align-items: center;
  gap: 14px; 
}

.search input {
  background-color: #2d2d3a;
  border: none;
  border-radius: 3px; 
  padding: 7px 10px; 
  color: white;
  width: 134px; 
  font-size: 0.8rem;
}

.search input::placeholder {
  color: #9ca3af;
}

.auth-buttons {
  display: flex;
  gap: 7px;
}

.auth-buttons button {
  padding: 5px 11px;
  border-radius: 3px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.login {
  background-color: #ffffff;
  color: #1e1e24;
  border: none;
}

.sign-up {
  background-color: #1d71f7;
  color: white;
  border: none;
}

.login:hover {
  background-color: #f8f8f8;
}

.sign-up:hover {
  background-color: #1763da;
}

/* Styles pour le menu déroulant */
.menu-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  width: 500px;
  display: none;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-section {
  display: flex;
  gap: 30px;
}

.dropdown-column {
  flex: 1;
}

.dropdown-column h4 {
  color: black;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-evenly;
  border-bottom: 1px solid #333;
}

.dropdown-menu a {
  display: block;
  padding: 6px 0;
  color: #9ca3af !important;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.8rem;
}

.dropdown-menu a:hover {
  color: black !important;
  transform: translateX(3px);
}

.featured-category {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.featured-category h4 {
  color: black;
  font-size: 1rem;
  margin-bottom: 10px;
}

.featured-grid {
  display: flex;
  gap: 10px;
}

.featured-item {
  flex: 1;
  text-align: center;
}

.featured-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-item img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  margin-bottom: 5px;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-item:hover img {
  transform: scale(1.05);
}

.menu-item:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s;
}

/* Animation pour le menu déroulant */
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============ Compteur de panier ============ */
.cart-icon-container {
  position: relative;
  display: inline-block;
}

.cart-notification {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  z-index: 10;
}

/* Media queries pour la responsivité */
/* Moyen écran (992px et moins) - Tablettes larges */
@media (max-width: 992px) {
  header .container {
    flex-wrap: wrap;
  }
  
  .logo-space {
    margin-bottom: 10px;
  }
  
  .search-login-bar {
    margin-left: auto;
  }
    .search input {
    width: 200px;
  }
}

/* Petit écran (768px et moins) - Tablettes */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
  }
  
  .logo-space {
    margin-bottom: 15px;
  }
  
  .navigation {
    width: 100%;
    margin: 10px 0;
  }
  
  .search-login-bar {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .search input {
    width: 200px;
  }
  
  .dropdown-menu {
    width: 320px;
  }
  
  .dropdown-section {
    flex-direction: column;
    gap: 15px;
  }
}

/* Très petit écran (576px et moins) - Mobile */
@media (max-width: 576px) {
  .logo-space h2 {
    font-size: 1.6rem;
  }
  
  .nav-buttons {
    gap: 10px;
    justify-content: space-evenly;
    width: 100%;
    margin-left: -15px;
  }

  .nav-buttons span {
    font-size: 8px;
  }
  
  .nav-buttons li a {
    font-size: 8px;
  }
  
  .nav-buttons svg {
    width: 18px;
    height: 18px;
  }
  
  .search input {
    width: 200px;
  }
  
  .auth-buttons button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  .dropdown-menu {
    width: 280px;
    
  }
  
  /* Ajustement du compteur de panier */
  .cart-icon-container svg {
    width: 18px;
    height: 18px;
  }
  
  .cart-count {
    width: 14px;
    height: 14px;
    font-size: 8px;
    top: -5px;
    right: -5px;
  }
}

/* Pour les très petits écrans (400px et moins) */
@media (max-width: 400px) {
  .nav-buttons span {
    display: none; /* Cache le texte des boutons de navigation */
  }
  
  .nav-buttons svg {
    margin-bottom: 0;
  }
  
  .search-login-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .auth-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-height: 500px) {
  .dropdown-menu {
    width: auto;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1e24;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}