/* ═══════════════════════════════════════════════════════════
   FORTIVA — Système de design
   DA : Blanc dominant · Noir pour zones premium · Or Performance
   ═══════════════════════════════════════════════════════════ */

/* ── Variables Fortiva ──────────────────────────────────── */
:root {
  /* Référence Fortiva */
  --noir:        #0A0A0A;   /* Noir Profond — nav, hero, CTA */
  --anthracite:  #1C1C1E;   /* Gris Anthracite — zones sombres */

  /* Échelle brand (light → dark) */
  --brand-50:    #FAFAFA;   /* Fond body / sections paires */
  --brand-100:   #F4F4F5;   /* Sections alternatives légères */
  --brand-200:   #E5E5E7;   /* Bordures, séparateurs */
  --brand-300:   #D1D1D5;   /* Bordures subtiles */
  --brand-400:   #8E8E98;   /* Texte muted */
  --brand-500:   #6B6B75;   /* Texte secondaire */
  --brand-600:   #52525B;   /* Texte corps moyen */
  --brand-700:   #3F3F46;   /* Texte corps */
  --brand-800:   #27272A;   /* Texte fort */
  --brand-900:   #0A0A0A;   /* Noir Profond — texte principal */

  /* Or Performance */
  --gold-300:    #F0D870;
  --gold-400:    #E2C240;
  --gold-500:    #D4AF37;   /* Or Performance — accent principal */
  --gold-600:    #B8962F;
  --gold-700:    #9A7D28;

  /* Fond & texte */
  --cream:       #FAFAFA;   /* Fond body blanc cassé */
  --white:       #FFFFFF;
  --fit-accent:  #D4AF37;
  --fit-green:   #22c55e;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);   /* #FAFAFA */
  color: var(--brand-900);           /* #0A0A0A */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--brand-100); }
::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

/* ── Sélection ──────────────────────────────────────────── */
::selection {
  background: var(--gold-500);
  color: #FFFFFF;
}

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
.font-elegant { font-family: 'Barlow', sans-serif; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--gold-500);
  color: #0A0A0A;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid var(--gold-500);
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: var(--gold-500);
  color: #0A0A0A;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold-500);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-brand:hover {
  background-color: var(--gold-400);
  border-color: var(--gold-400);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--brand-400);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

/* ── Section Titles ─────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-900);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-title-light {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background: var(--gold-500);
  margin: 0.75rem 0;
  border-radius: 2px;
}
.section-divider.centered {
  margin: 0.75rem auto;
}

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--brand-200);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--gold-500);
}

.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card .product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-100);
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-placeholder {
  transform: scale(1.05);
}

.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-card .add-to-cart-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--gold-500);
  color: #0A0A0A;
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
}
.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card .wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--brand-500);
  font-size: 0.75rem;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.product-card .wishlist-btn:hover { color: #ef4444; transform: scale(1.12); }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-new   { background: var(--fit-green); color: white; }
.badge-promo { background: #ef4444; color: white; }
.badge-gold  { background: var(--gold-500); color: #0A0A0A; }

/* ── Collection / Category Card ─────────────────────────── */
.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.collection-card .collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 60%);
  transition: background 0.4s ease;
}
.collection-card:hover .collection-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 60%);
}
.collection-card .collection-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.collection-card:hover .collection-bg {
  transform: scale(1.06);
}
.collection-card .collection-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-0.5rem);
  opacity: 0;
  transition: all 0.35s ease;
}
.collection-card:hover .collection-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ── Banner Carousel ───────────────────────────────────── */
.banner-carousel {
  position: relative;
  overflow: hidden;
}
.banner-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
}
.banner-slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 0;
  min-width: 0;
}
.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.banner-carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.banner-dot.active {
  background: var(--gold-500);
  width: 28px;
  border-radius: 4px;
}
.banner-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.6); }
.banner-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  font-size: 0.875rem;
}
.banner-carousel:hover .banner-carousel-arrow { opacity: 1; }
.banner-carousel-arrow:hover {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-500);
}
.banner-carousel-arrow--prev { left: 1.5rem; }
.banner-carousel-arrow--next { right: 1.5rem; }

@media (max-width: 640px) {
  .banner-carousel-arrow { display: none; }
  .banner-carousel-dots { bottom: 1rem; }
}

/* ── Hero Slider ────────────────────────────────────────── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: var(--gold-500);
  width: 24px;
  border-radius: 3px;
}

/* ── Measure inputs ──────────────────────────────────────── */
.measure-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  color: var(--brand-500);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.measure-tab.active { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.measure-tab:hover:not(.active) { color: var(--brand-700); }
.measure-input-wrap { position: relative; }
.measure-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 0.875rem;
  border: 1.5px solid var(--brand-200);
  background: var(--white);
  color: var(--brand-900);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  appearance: none;
}
.measure-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.measure-unit {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--brand-500);
  font-weight: 600;
  pointer-events: none;
}

/* ── Size & Qty Selectors ───────────────────────────────── */
.size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  min-width: 3rem;
  white-space: nowrap;
  border: 1.5px solid var(--brand-200);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--brand-700);
  background: var(--white);
  line-height: 1.3;
}
.size-btn:hover:not(.disabled) { border-color: var(--gold-500); color: var(--gold-600); background: #fefce8; }
.size-btn.active { background: var(--gold-500); border-color: var(--gold-500); color: #0A0A0A; font-weight: 700; }
.size-btn.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--brand-700);
  font-size: 1rem;
}
.qty-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.qty-input {
  width: 3rem;
  height: 2.5rem;
  border: 1.5px solid var(--brand-200);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A0A0A;
  background: #ffffff;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Geometric decorations ──────────────────────────────── */
.geo-bg-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Cart ───────────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--brand-200);
}

/* ── Admin ──────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-left: 3px solid var(--gold-500);
  transition: all 0.3s ease;
}
.stat-card:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2rem;
}
.status-pending   { background: rgba(212, 175, 55, 0.15); color: var(--gold-400); }
.status-making    { background: #1e3a5f; color: #60a5fa; }
.status-shipped   { background: #2d1b4e; color: #a78bfa; }
.status-delivered { background: #14302a; color: #4ade80; }

/* ── Form Inputs ────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--brand-200);
  background: var(--white);
  color: var(--brand-900);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.form-input::placeholder { color: var(--brand-500); }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.4rem;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes dotScrollX {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.12); }
}

.animate-fade-in-up { animation: fadeInUp 0.55s ease forwards; }
.animate-fade-in    { animation: fadeIn 0.45s ease forwards; }
.animate-float      { animation: float 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker-track {
  display: flex;
  width: max-content;
  animation: dotScrollX 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* ── Fitness-specific ───────────────────────────────────── */
.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.35s ease;
}
.category-card:hover { transform: translateY(-3px); }
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
  transition: background 0.35s ease;
}
.category-card:hover .cat-overlay {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* ── Navigation active state ─────────────────────────────── */
.nav-link-active { color: var(--gold-500) !important; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title     { font-size: 1.8rem; }
  .section-title-light { font-size: 1.8rem; }
}
