/* ==========================
   VARIABLES & RESET
   ========================== */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #8b7355;
  --accent-color: #d4a574;
  --bg-light: #f8f5f0;
  --bg-white: #ffffff;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --border-color: #e0d5c7;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   NAVBAR
   ========================== */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  min-width: 180px;
}

/* Barre de recherche dans le header */
.navbar-search {
  flex: 0 1 350px;
  margin-right: auto;
}

.search-form-compact {
  display: flex;
  background: var(--bg-light);
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.search-form-compact:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15);
}

.search-input-compact {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.search-input-compact::placeholder {
  color: var(--text-light);
}

.btn-search-compact {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search-compact:hover {
  background: linear-gradient(135deg, #6d5a44 0%, #b88a5f 100%);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  display: block;
}

.nav-link:hover {
  color: var(--secondary-color);
}

/* Cart Icon */
.cart-link {
  position: relative;
  font-size: 1.3rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px var(--shadow);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  /* Afficher toujours la scrollbar pour indiquer qu'il y a du contenu */
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--bg-light);
}

/* Scrollbar personnalisée pour le dropdown - Chrome/Safari */
.dropdown-menu::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-light);
}

.dropdown-menu::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
  border: 2px solid var(--bg-light);
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Ajouter un indicateur visuel de scroll en bas du menu */
.dropdown-menu::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
  pointer-events: none;
  display: block;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--secondary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .navbar-search {
    order: 3;
    flex: 1 1 100%;
    margin-top: 1rem;
  }

  .search-form-compact {
    border-radius: 12px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 140px;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
  }
  
  .dropdown .nav-link::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 0.3rem;
  }
  
  .dropdown.active .nav-link::after {
    content: ' ▲';
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--bg-light);
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ==========================
   HERO SECTION
   ========================== */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: var(--bg-white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

/* Éléments flottants enfantins */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.float-item.emoji {
  position: absolute;
  font-size: 2.5rem;
  animation: float 4s ease-in-out infinite;
  opacity: 0.8;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Bulles colorées */
.bubble {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,182,193,0.4));
  animation: bubbleFloat 6s ease-in-out infinite;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.1);
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 0.9;
  }
}

/* Étoiles scintillantes */
.sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #fff, #ffd700);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkleAnim 2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255,215,0,0.8));
}

@keyframes sparkleAnim {
  0%, 100% {
    transform: scale(0.8) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
  }
}

/* Confettis tombants */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  background: linear-gradient(135deg, #ff6b9d, #c06c84, #6c5ce7, #00b894);
  animation: confettiFall 5s linear infinite;
  border-radius: 2px;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(600px) rotate(720deg);
    opacity: 0;
  }
}

/* Nuages SVG */
.cloud {
  position: absolute;
  width: 200px;
  height: 60px;
  opacity: 0.4;
}

.cloud-1 {
  top: 10%;
  left: -200px;
  animation: cloudMove1 30s linear infinite;
}

.cloud-2 {
  top: 60%;
  left: -200px;
  animation: cloudMove2 35s linear infinite;
}

@keyframes cloudMove1 {
  0% {
    left: -200px;
  }
  100% {
    left: 100%;
  }
}

@keyframes cloudMove2 {
  0% {
    left: -200px;
  }
  100% {
    left: 100%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Animation du titre - chaque lettre rebondit */
.hero-title-animated {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.letter-bounce {
  display: inline-block;
  animation: letterBounce 0.6s ease-out both;
}

@keyframes letterBounce {
  0% {
    transform: translateY(-100px) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: translateY(20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

/* Animation du sous-titre - mots qui apparaissent un par un */
.hero-subtitle-animated {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.3rem;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.word-fade {
  display: inline-block;
  animation: wordFade 0.5s ease-out both;
}

@keyframes wordFade {
  0% {
    transform: translateY(20px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Coeur qui pulse */
.heart-pulse {
  display: inline-block;
  font-size: 1.5rem;
  animation: heartPulse 1.5s ease-in-out infinite;
  animation-delay: 1.8s;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
}

/* Animation du bouton - avec effet de brillance */
.btn-bounce {
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 2s both;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-bounce:hover .btn-shine {
  left: 100%;
}

.btn-bounce:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==========================
   SECTIONS
   ========================== */
.featured-section,
.categories-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* ==========================
   PRODUCTS GRID
   ========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.25rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-category,
.product-size {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 0.75rem;
}

/* ==========================
   CATEGORIES GRID
   ========================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--bg-white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
}

.category-card:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-content {
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==========================
   NO PRODUCTS
   ========================== */
.no-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-products p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ==========================
   CATEGORY PAGE
   ========================== */
.category-page {
  padding: 3rem 0;
  min-height: 60vh;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* ==========================
   FILTERS
   ========================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border-color: var(--secondary-color);
}

/* ==========================
   ARTICLE PAGE
   ========================== */
.article-page {
  padding: 3rem 0;
}

.article-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.article-images .main-image {
  width: 100%;
  height: 500px;
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.article-images .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--secondary-color);
}

.article-info h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.article-meta {
  margin-bottom: 1rem;
}

.category-info {
  color: var(--text-light);
  font-size: 0.95rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1.5rem 0;
}

.article-details {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.detail-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item strong {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.in-stock {
  color: #22c55e;
  font-weight: 600;
}

.out-of-stock {
  color: #ef4444;
  font-weight: 600;
}

.description {
  margin: 1.5rem 0;
}

.description h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Actions sur la page article */
.article-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantity-selector label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 0.5rem;
  width: fit-content;
}

.quantity-controls .qty-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: white;
  color: var(--secondary-color);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-controls .qty-btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: scale(1.05);
}

.quantity-controls .qty-input {
  width: 80px;
  text-align: center;
  border: 2px solid var(--border-color);
  background: white;
  padding: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.quantity-controls .qty-input:focus {
  border-color: var(--secondary-color);
}

.btn-add-to-cart-single {
  width: 100%;
  font-size: 1.2rem;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-add-to-cart-single:hover {
  background: linear-gradient(135deg, #6d5a44 0%, #b88a5f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.btn-add-to-cart-single:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #95a5a6;
  cursor: not-allowed;
}

.btn-secondary:hover {
  transform: none;
  box-shadow: none;
}

.similar-articles {
  margin-top: 4rem;
}

/* ==========================
   ERROR PAGE
   ========================== */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
  min-height: 60vh;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.error-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ==========================
   FOOTER
   ========================== */
.footer {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.7;
}

/* ==========================
   AUTHENTICATION PAGES
   ========================== */
.auth-page {
  padding: 4rem 0;
  min-height: 70vh;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow);
}

.auth-container h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.auth-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group input:disabled {
  background-color: var(--bg-light);
  cursor: not-allowed;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
}

.auth-link a {
  color: var(--secondary-color);
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background-color: #efe;
  color: #3a3;
  border: 1px solid #cfc;
}

/* Profile Page */
.profile-page {
  padding: 3rem 0;
}

.profile-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.profile-content {
  max-width: 700px;
  margin: 0 auto;
}

.profile-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px var(--shadow);
  margin-bottom: 2rem;
}

.profile-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.form-hint {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.profile-info {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.profile-info p {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ==========================
   COOKIE BANNER
   ========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  box-shadow: 0 -4px 20px var(--shadow);
  padding: 1.5rem;
  z-index: 9999;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.cookie-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-light);
}

.cookie-preferences {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 12px;
}

.cookie-preferences h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.cookie-option {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option label {
  display: flex;
  gap: 1rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-option strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.cookie-option p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* User Menu in Navbar */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Bouton ajouter au panier */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-link {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-add-to-cart {
  margin-top: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.btn-add-to-cart:hover {
  background: linear-gradient(135deg, #6d5a44 0%, #b88a5f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-add-to-cart:active {
  transform: translateY(0);
}

.btn-add-to-cart i {
  font-size: 1rem;
}

/* Notification toast */
.notification-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 10000;
  font-weight: 500;
  max-width: 300px;
}

.notification-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

/* ==========================
   RESPONSIVE
   ========================== */

/* Mobile - Téléphone (jusqu'à 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  /* Navbar mobile */
  .navbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.1rem;
    min-width: auto;
    text-align: center;
    width: 100%;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
  }

  .navbar-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .navbar-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  /* Menu de navigation */
  .nav-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .nav-menu li {
    width: 100%;
  }

  /* Hero section */
  .hero {
    padding: 2.5rem 0;
    min-height: auto;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-title-animated {
    font-size: 1.5rem !important;
    line-height: 1.4;
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
  }

  .letter-bounce {
    font-size: inherit;
    display: inline;
  }

  .hero-subtitle-animated {
    font-size: 0.9rem !important;
    margin: 1rem 0 !important;
    padding: 0 1.5rem !important;
    line-height: 1.5;
    text-align: center;
  }

  .word-fade {
    font-size: inherit;
    display: inline;
    margin: 0 0.15rem;
  }

  .heart-pulse {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  .hero p {
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .btn-bounce {
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
  }

  /* Réduire les éléments flottants sur mobile */
  .float-item.emoji {
    font-size: 1.5rem;
    opacity: 0.5;
  }

  .bubble {
    width: 40px;
    height: 40px;
  }

  .sparkle {
    width: 15px;
    height: 15px;
    opacity: 0.6;
  }

  .cloud {
    width: 120px;
    height: 36px;
    opacity: 0.2;
  }

  .confetti {
    width: 6px;
    height: 6px;
  }

  /* Sections */
  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    text-align: center;
  }

  /* Grille de produits */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-category,
  .product-size {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .product-price {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .btn-add-to-cart {
    margin-top: 0.5rem;
    padding: 0.6rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .btn-add-to-cart i {
    font-size: 0.85rem;
  }

  /* Filtres et recherche */
  .search-content {
    flex-direction: column;
  }

  .filters-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 1.5rem;
  }

  .filters-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group {
    padding: 1rem;
  }

  .filter-title {
    font-size: 1rem;
  }

  /* Article detail */
  .article-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-images .main-image {
    height: 300px;
  }

  .article-thumbnails {
    gap: 0.5rem;
  }

  .thumbnail {
    height: 60px;
  }

  .article-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .quantity-controls {
    width: 100%;
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
  }

  /* Page title */
  .page-title {
    font-size: 1.75rem;
    text-align: center;
  }

  /* Breadcrumb */
  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
  }

  /* Auth forms */
  .auth-container {
    padding: 1.5rem 1rem;
    margin: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Panier */
  .cart-items {
    padding: 0.75rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-details {
    width: 100%;
  }

  .cart-summary {
    position: static;
    margin-top: 1.5rem;
  }

  /* Cookies */
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto;
  }

  table {
    font-size: 0.85rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Tablette (768px à 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  /* Navbar tablette */
  .navbar .container {
    gap: 1.5rem;
  }

  .logo {
    font-size: 1.4rem;
    min-width: 160px;
  }

  .navbar-search {
    flex: 0 1 300px;
  }

  /* Hero section */
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  /* Grille de produits - 2 colonnes */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Filtres */
  .search-content {
    gap: 2rem;
  }

  .filters-sidebar {
    width: 260px;
  }

  /* Article detail */
  .article-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .article-images .main-image {
    height: 400px;
  }

  /* Section title */
  .section-title {
    font-size: 2.25rem;
  }

  /* Page title */
  .page-title {
    font-size: 2.25rem;
  }

  /* Panier */
  .cart-item-image {
    width: 120px;
    height: 120px;
  }
}

/* Desktop / PC (1025px et plus) */
@media (min-width: 1025px) {
  /* Grille de produits - 3 ou 4 colonnes */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }

  /* Filtres côte à côte avec contenu */
  .search-content {
    display: flex;
    gap: 2.5rem;
  }

  .filters-sidebar {
    width: 280px;
    flex-shrink: 0;
  }

  .search-results {
    flex: 1;
  }

  /* Hover effects pour desktop */
  .product-card:hover {
    transform: translateY(-8px);
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  /* Navigation dropdown au hover */
  .nav-menu li:hover .dropdown-menu {
    display: block;
  }

  /* Article images plus grandes */
  .article-images .main-image {
    height: 500px;
  }

  /* Hero pleine hauteur */
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }
}
