/**
 * Header simplifié pour le panier/checkout
 * Background: #003d60
 * Logo à gauche | Contact, Mon compte, Mon panier à droite
 */

.checkout-header-simple {
  background-color: #003d60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
}

/* Styles uniquement pour le contenu du header, pas le dropdown */
.checkout-header-simple .header-simple-content,
.checkout-header-simple .header-simple-content * {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

/* Exclure explicitement le dropdown des styles du header */
.checkout-header-simple .leo-dropdown-cart,
.checkout-header-simple .leo-dropdown-cart * {
  color: inherit;
  font-weight: inherit;
  font-size: 1rem;
}

/* Prix des produits dans le dropdown */
.checkout-header-simple .leo-dropdown-cart .product-price {
  color: #FC2947;
}

/* Valeurs dans le dropdown (totaux, etc.) */
.checkout-header-simple .leo-dropdown-cart span.value {
  color: #003d60;
  font-weight: 400;
}

/* Message panier vide dans le dropdown */
.checkout-header-simple .leo-dropdown-cart .empty-cart-message {
  font-size: 16px;
  color: var(--secondary-color, #003d60);
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.checkout-header-simple .container-fluid {
  max-width: 100%;
  padding: 0 60px;
}

.header-simple-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo à gauche */
.header-simple-logo {
  flex-shrink: 0;
}

.header-simple-logo a {
  display: block;
  line-height: 0;
}

.header-simple-logo img {
  height: auto;
  max-height: 50px;
  width: auto;
}

.header-simple-logo .site-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

/* Liens à droite */
.header-simple-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Séparateur */
.header-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.header-link:hover,
.header-link:hover a,
.header-link:hover .link-text {
  color: #2B8FF2;
}

.header-link:hover i {
  color: #2B8FF2;
}

.header-link a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-link .material-icons,
.header-link i {
  font-size: 17px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.header-link .elementor-icon-list-icon i {
  font-size: 17px;
}

.header-link .link-text {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Mon panier - Layout spécial */
.header-link-cart {
  position: relative;
}

/* Retirer le background du leo-blockcart */
.header-link-cart.leo-blockcart,
.header-link-cart.blockcart {
  background-color: transparent !important;
}

/* Forcer l'alignement center pour le cart-preview */
.cart-preview.active.leo-blockcart.show-leo-loading,
.cart-preview.leo-blockcart.show-leo-loading {
  align-items: center !important;
}

.header-link-cart a {
  gap: 10px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* Effet hover sur tout le panier */
.header-link-cart:hover .cart-price,
.header-link-cart:hover .price-total,
.header-link-cart:hover .cart-total,
.header-link-cart:hover .header-cart-badge,
.header-link-cart:hover i {
  color: #2B8FF2 !important;
}

span.cart-price.hidden-sm-down:hover {
    color: #2B8FF2 !important;
}

.header-link-cart .cart-icon-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.header-link-cart .cart-price {
  font-size: 12px;
}

.header-link-cart .cart-price .price-total {
  font-size: 12px;
}

.header-link-cart .cart-icon-wrapper i {
  font-size: 17px;
}

.header-link-cart .header-cart-badge {
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1;
  text-transform: none;
}

.header-link-cart .cart-total {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .checkout-header-simple .container-fluid {
    padding: 0 30px;
  }

  .header-simple-links {
    gap: 20px;
  }

  .header-link .link-text {
    font-size: 13px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .checkout-header-simple {
    padding: 15px 10px;
  }

  .checkout-header-simple .container-fluid {
    padding: 0 15px;
  }

  .header-simple-logo img {
    max-height: 40px;
  }

  .header-simple-links {
    gap: 15px;
  }

  .header-link-cart .cart-details .link-text {
    display: none;
  }

  .header-link-cart .cart-details {
    flex-direction: row;
    align-items: center;
  }

  .header-link-cart .cart-total {
    font-size: 14px;
  }

  .header-link-contact {
      display: none;
  }

  .header-separator {
      display: none;
  }

  .header-link-cart {
      display: none !important;
  }

    .header-link {
        gap: 5px;
        line-height: 0;
    }

}

@media (max-width: 576px) {
  .header-simple-links {
    gap: 10px;
  }

  .header-link .material-icons {
    font-size: 20px;
  }

  .header-link-cart .cart-products-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }


}
