/* ==========================================================================
   1. BOUTONS (BUTTONS)
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px; /* Bords très arrondis pour un look moderne */
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-soft);
}

/* Bouton primaire (Appel à l'action principal) */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: var(--text-light);
  text-decoration: none;
}

/* Bouton secondaire (pour actions alternatives) */
.btn-secondary {
  background-color: var(--text-light);
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background-color: var(--primary-orange);
  color: var(--text-light);
  text-decoration: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  background-color: #FFFFFF;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

/* NOUVEAU : Style pour le header "collant" activé par JS */
.main-header.is-sticky {
  box-shadow: var(--shadow-medium);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.header-logo a {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative; /* Pour positionner le menu déroulant */
}

.header-actions a {
  color: var(--text-dark);
  font-size: 1.2rem; /* Taille des icônes */
}

.header-actions a:hover {
  color: var(--primary-orange);
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-orange);
  color: var(--text-light);
  border-radius: 50%;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Barre de recherche (simplifiée) */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid #ddd;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  margin-left: 0.5rem;
  width: 250px; /* Largeur par défaut */
}

.search-bar i { /* Pour l'icône de loupe */
    color: var(--text-subtle);
}


/* ==========================================================================
   3. CARTES DE PRODUIT (PRODUCT CARDS)
   ========================================================================== */

.product-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: center;
  transition: var(--transition-medium);
}

/* Effet "Growth Motion" au survol */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.product-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-content {
  padding: 25px;
}

.product-card-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

/* ==========================================================================
   4. COMPOSANTS D'INTERFACE & HELPERS
   ========================================================================== */

/* NOUVEAU : Style pour le menu déroulant du compte utilisateur */
.account-dropdown {
  display: none; /* Caché par défaut */
  position: absolute;
  top: 130%; /* Positionné sous l'icône de compte */
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  z-index: 1100;
  width: 200px;
  padding: 0.5rem 0;
  border: 1px solid #eee;
}

.account-dropdown.is-active {
  display: block; /* Affiché par JS */
}

.account-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.account-dropdown a:hover {
  background-color: var(--cream);
  color: var(--primary-orange);
  text-decoration: none;
}


/* NOUVEAU : Style pour les animations au défilement */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}