/* ========================================================
   Shopily Storefront - Design System & Modern E-Commerce
   Inspiré des plus belles boutiques Shopify contemporaines
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Variables configurables dynamiquement par le thème */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.1);
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px -4px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 35px -8px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 35px -10px rgba(79, 70, 229, 0.18);
  --announcement-bg: #1e1b4b;
  --announcement-color: #ffffff;
  --container-max: 1280px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typographie & Utilitaires */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ========================================================
   BARRE D'ANNONCE
   ======================================================== */
.announcement-bar {
  background-color: var(--announcement-bg);
  color: var(--announcement-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  text-align: center;
  position: relative;
  letter-spacing: 0.02em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.announcement-bar .badge-promo {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========================================================
   EN-TÊTE / NAVBAR
   ======================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  transition: var(--transition);
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar-wrap {
  position: relative;
  width: 250px;
  display: flex;
  align-items: center;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar-wrap:focus-within {
  width: 320px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 38px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-bar-wrap:focus-within .search-icon {
  color: var(--primary, #4f46e5);
  transform: translateY(-50%) scale(1.08);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  background: #f8fafc;
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.customer-portal-btn,
#customer-portal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: fit-content !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.customer-portal-btn:hover,
#customer-portal-btn:hover {
  background: #f8fafc !important;
  border-color: var(--border-focus) !important;
  transform: translateY(-2px);
  color: var(--primary) !important;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-admin-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-admin-pill:hover {
  background: #1e293b;
  transform: translateY(-2px);
  color: white;
}

/* ========================================================
   SECTION HÉRO (BANNER PRINCIPALE ACCUEIL)
   ======================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
}

/* ========================================================
   BANDES DE RÉASSURANCE / TRUST BADGES
   ======================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================================
   SECTIONS & TITRES
   ======================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

.section-link {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.section-link:hover {
  gap: 10px;
}

/* ========================================================
   GRILLE DES CATÉGORIES
   ======================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.category-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  text-decoration: none;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.category-info {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.category-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ========================================================
   BARRE DE FILTRES ET DE TRI DU CATALOGUE
   ======================================================== */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.pill-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* ========================================================
   GRILLE DES PRODUITS & CARTE PRODUIT SHOPIFY-STYLE
   ======================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background-color: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-promo {
  background: #ef4444;
  color: white;
}

.badge-new {
  background: var(--primary);
  color: white;
}

.badge-bestseller {
  background: #f59e0b;
  color: white;
}

.badge-custom {
  background: #10b981;
  color: white;
}

.quick-view-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.product-card:hover .quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-title:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.product-rating-count {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.compare-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.08);
}

/* ========================================================
   TIROIR PANIER (CART DRAWER SLIDE-OUT)
   ======================================================== */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.close-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.free-shipping-bar {
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.free-shipping-text {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.qty-btn:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-remove-btn {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.cart-remove-btn:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background: white;
}

.promo-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-input {
  flex-grow: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.btn-apply-promo {
  padding: 8px 14px;
  border-radius: 8px;
  background: #f1f5f9;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-apply-promo:hover {
  background: #e2e8f0;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-line.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 10px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  margin-top: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-checkout:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================================
   MODALE DÉTAIL PRODUIT & CHECKOUT
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Grille détaillée produit */
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.modal-img-col {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
}

.modal-img-col img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

/* Galerie multi-images dans la modale d'aperçu produit */
.modal-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modal-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 440px;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.modal-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.modal-main-image-wrap img.fading {
  opacity: 0.3;
  transform: scale(0.98);
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  user-select: none;
}

.modal-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  color: var(--primary, #4f46e5);
}

.modal-nav-btn.prev {
  left: 12px;
}

.modal-nav-btn.next {
  right: 12px;
}

.modal-img-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}

.modal-thumbnails-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.modal-thumbnails-track::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbnails-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-thumb-btn {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2.5px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.modal-thumb-btn.active {
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
  transform: scale(1.04);
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  margin-bottom: 12px;
}

.stock-pill.low {
  background: #fffbeb;
  color: #d97706;
}

/* ========================================================
   MODALE DU TUNNEL DE COMMANDE (CHECKOUT)
   ======================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.payment-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option-label:hover, .payment-option-label.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ========================================================
   PIED DE PAGE (FOOTER)
   ======================================================== */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 32px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================================================
   TOASTS / NOTIFICATIONS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  background: #0f172a;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.info {
  border-left: 4px solid var(--primary);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.2rem; }
  .modal-product-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================================
   HOMEPAGE BUILDER - SECTIONS DYNAMIQUES & PERSONNALISABLES
   ======================================================== */
.homepage-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: padding 0.2s ease;
}

.homepage-section.padding-compact {
  padding-top: 36px;
  padding-bottom: 36px;
}

.homepage-section.padding-normal {
  padding-top: 64px;
  padding-bottom: 64px;
}

.homepage-section.padding-spacious {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.homepage-section > .container,
.homepage-section > div:not(.section-bg-overlay) {
  position: relative;
  z-index: 2;
}

/* 1. Héro dynamique */
.dynamic-hero-wrap {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

.dynamic-hero-wrap.align-center {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.dynamic-hero-wrap.align-left {
  text-align: left;
  align-items: flex-start;
}

.dynamic-hero-wrap.align-right {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

.dynamic-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.15);
}

.dynamic-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.dynamic-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 620px;
}

.dynamic-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 2. Bannière Promotionnelle Flash */
.section-banner-promo-inner {
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.promo-content {
  max-width: 620px;
}

.promo-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.promo-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.promo-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.95rem;
}

.promo-code-badge {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #fef08a;
}

/* 3. Image + Texte (Histoire / Brand Story) */
.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.image-text-grid.layout-image-left {
  direction: rtl;
}

.image-text-grid.layout-image-left > * {
  direction: ltr;
}

.image-text-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-height: 440px;
}

.image-text-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-text-media:hover img {
  transform: scale(1.02);
}

.image-text-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* 4. Avis Clients / Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-verified {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 5. Newsletter / Club Privé */
.newsletter-box {
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.newsletter-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.newsletter-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .dynamic-hero-title { font-size: 2.3rem; }
  .image-text-grid { grid-template-columns: 1fr; }
  .section-banner-promo-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .search-bar-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   ESPACE CLIENT & SUIVI DE COMMANDE (CUSTOMER PORTAL)
   ======================================================== */
.customer-portal-box {
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.portal-modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.portal-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Recherche de commande / Connexion */
.portal-lookup-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.portal-lookup-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.portal-lookup-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.portal-input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

/* Stepper de suivi de commande */
.portal-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 28px 12px 32px 12px;
}

.portal-stepper:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.portal-stepper-progress {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 4px;
  background: #10b981;
  z-index: 2;
  transition: width 0.4s ease;
}

.stepper-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.stepper-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.stepper-step.completed .stepper-circle {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.stepper-step.current .stepper-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  transform: scale(1.1);
}

.stepper-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.stepper-step.completed .stepper-label,
.stepper-step.current .stepper-label {
  color: var(--text-main);
}

/* Onglets internes du portail */
.portal-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.portal-tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-tab-btn:hover {
  color: var(--primary);
  background: #f8fafc;
}

.portal-tab-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Discussion / Chat client */
.portal-chat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portal-chat-list {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.portal-msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-msg-customer {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.portal-msg-admin {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.portal-msg-system {
  align-self: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
}

.portal-msg-meta {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.portal-chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: white;
  border-top: 1px solid var(--border);
}

/* Notation par étoiles pour avis */
.portal-stars-picker {
  display: flex;
  gap: 8px;
  font-size: 1.8rem;
  margin: 10px 0;
  cursor: pointer;
}

.portal-star-item {
  color: #cbd5e1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.portal-star-item:hover,
.portal-star-item.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Historique des commandes de l'email */
.portal-history-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-history-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}

/* ========================================================
   IMAGE SPLASH EN PLEIN ÉCRAN & LOGO PERSONNALISÉ
   ======================================================== */
.brand-logo-img {
  max-height: 44px;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.site-splash-fullscreen,
.homepage-section.splash-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
  padding: 80px 0 100px 0;
}

.splash-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.splash-brand-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.splash-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.splash-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.splash-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-splash-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
  text-decoration: none;
}

.btn-splash-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(79, 70, 229, 0.65);
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-splash-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 30px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-splash-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #ffffff;
}

.splash-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.splash-scroll-indicator:hover {
  color: #ffffff;
}

.splash-scroll-indicator .scroll-arrow {
  font-size: 1.3rem;
  animation: splashBounce 1.8s infinite ease-in-out;
}

@keyframes splashBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========================================================
   DESCRIPTION PRODUIT ENRICHE (Gras, Italique, Couleurs)
   ======================================================== */
.product-description-content {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
.product-description-content p {
  margin: 0 0 12px 0;
}
.product-description-content p:last-child {
  margin-bottom: 0;
}
.product-description-content b,
.product-description-content strong {
  font-weight: 700 !important;
  color: inherit;
}
.product-description-content i,
.product-description-content em {
  font-style: italic !important;
  color: inherit;
}
.product-description-content u {
  text-decoration: underline !important;
}
.product-description-content [style*="color"] {
  display: inline;
}
.product-description-content ul,
.product-description-content ol {
  margin: 10px 0 14px 20px;
  padding: 0;
}
.product-description-content li {
  margin-bottom: 6px;
}

/* ========================================================
   BLOC PARTAGE RÉSEAUX SOCIAUX & LIEN UNIQUE
   ======================================================== */
.product-share-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-share-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-share-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.product-share-url-input {
  flex-grow: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  color: #64748b;
  outline: none;
  font-family: monospace;
}
.btn-copy-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-copy-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.product-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.social-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  color: white;
}
.social-share-btn.whatsapp { background: #25D366; }
.social-share-btn.facebook { background: #1877F2; }
.social-share-btn.twitter { background: #000000; }
.social-share-btn.pinterest { background: #E60023; }
.btn-open-dedicated-page {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.btn-open-dedicated-page:hover {
  text-decoration: underline;
}

/* ========================================================
   SECTION AVIS CLIENTS & NOTATION ÉTOILES
   ======================================================== */
.product-reviews-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.product-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.product-reviews-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-rating-badge-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}
.reviews-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.product-review-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}
.product-review-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-item-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}
.review-item-author {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}
.review-verified-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}
.review-item-date {
  font-size: 0.75rem;
  color: #94a3b8;
}
.review-item-comment {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* Formulaire d'avis interactif */
.product-review-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}
.interactive-stars-picker {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}
.interactive-star {
  color: #cbd5e1;
  transition: all 0.15s ease;
}
.interactive-star.hovered,
.interactive-star.active {
  color: #f59e0b;
  transform: scale(1.15);
}
.star-rating-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 6px;
  align-self: center;
}
.no-reviews-box {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  margin-bottom: 20px;
}
.no-reviews-box p {
  margin: 0 0 14px 0;
  font-size: 0.94rem;
}

/* ========================================================
   PAGE PRODUIT UNIQUE DÉDIÉE (product.html)
   ======================================================== */
.standalone-product-page {
  padding: 32px 0 60px 0;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 24px;
}
.product-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}
.product-breadcrumb a:hover {
  color: var(--primary);
}
.standalone-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .standalone-product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ========================================================
   COMPTES CLIENTS, TABLEAU DE BORD & SUIVI DE COMMANDE ENRICHIE
   ======================================================== */
.customer-portal-btn.logged-in {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: var(--primary);
}

.customer-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2px #d1fae5;
}

/* Badges de statut de commande */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.order-status-badge.status-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.order-status-badge.status-processing {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.order-status-badge.status-shipped {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.order-status-badge.status-delivered {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.order-status-badge.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Stepper principal dans la vue détail de commande */
.portal-stepper-line {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 4px;
  background: linear-gradient(90deg, #10b981, var(--primary));
  z-index: 2;
  transition: width 0.4s ease;
  max-width: calc(100% - 40px);
}

.portal-step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.portal-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.portal-step-item.completed .portal-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.portal-step-item.active .portal-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--primary-light);
  transform: scale(1.08);
}

.portal-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.portal-step-item.completed .portal-step-title,
.portal-step-item.active .portal-step-title {
  color: #0f172a;
}

.portal-step-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

.portal-chat-messages {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

/* En-tête du tableau de bord client */
.customer-dashboard-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.customer-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.customer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.customer-kpi-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.customer-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.customer-kpi-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Filtres de statut d'historique */
.customer-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.customer-filter-pill {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.customer-filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.customer-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Carte de commande dans l'historique du compte */
.customer-order-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.customer-order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* Mini barre de progression visuelle sur chaque carte de l'historique */
.customer-mini-track {
  margin: 14px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.customer-mini-bar-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.customer-mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.customer-mini-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.customer-mini-steps span.done {
  color: #059669;
  font-weight: 700;
}

.customer-mini-steps span.current {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 640px) {
  .customer-kpi-grid {
    grid-template-columns: 1fr;
  }
  .portal-step-desc {
    display: none;
  }
}
