/* ═══════════════════════════════════════════════════════════
   MAISON ÉLITE — Feuille de style principale
   Couleur signature: #234e87
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --brand-50:  #edf2fb;
  --brand-100: #d0e0f4;
  --brand-200: #a1c0e8;
  --brand-300: #6d9ad5;
  --brand-400: #3e74be;
  --brand-500: #234e87;
  --brand-600: #1c3f6e;
  --brand-700: #153058;
  --brand-800: #0e2042;
  --brand-900: #07132a;
  --gold-300:  #e8d5b0;
  --gold-400:  #dbc08a;
  --gold-500:  #c9a96e;
  --gold-600:  #b8943a;
  --cream:     #f8f7f5;
  --white:     #ffffff;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* bloque tout débordement horizontal */
  max-width: 100vw;
}

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

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand-50); }
::-webkit-scrollbar-thumb { background: var(--brand-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }
.font-elegant { font-family: 'Cormorant Garamond', serif; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--gold-500);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-500);
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
}

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

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: var(--brand-500);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--brand-500);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-brand:hover {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
}

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

/* ── Section Titles ─────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-500);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brand-900);
  line-height: 1.2;
}

.section-divider {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin: 1rem 0;
}
.section-divider.centered {
  margin: 1rem auto;
}

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  background: white;
  transition: all 0.35s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 37, 53, 0.12);
}

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

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

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

.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,37,53,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s 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: white;
  padding: 0.625rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.35s 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: 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: #e53e3e; transform: scale(1.1); }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-new { background: var(--brand-500); color: white; }
.badge-promo { background: #e53e3e; color: white; }
.badge-gold { background: var(--gold-500); color: white; }

/* ── Collection 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.75) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.4s ease;
}
.collection-card:hover .collection-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 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.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transform: translateX(-0.5rem);
  opacity: 0;
  transition: all 0.35s ease;
}
.collection-card:hover .collection-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ── Measurement Tabs ───────────────────────────────────── */
.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-400);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.measure-tab.active {
  color: var(--brand-500);
  border-bottom-color: var(--brand-500);
}
.measure-tab:hover:not(.active) {
  color: var(--brand-600);
}

.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: 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(--brand-500);
  box-shadow: 0 0 0 3px rgba(93, 114, 148, 0.12);
}
.measure-unit {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--brand-400);
  font-weight: 600;
  pointer-events: none;
}

/* ── Size Selector ──────────────────────────────────────── */
.size-btn {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-200);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--brand-700);
  background: white;
}
.size-btn:hover:not(.disabled) {
  border-color: var(--brand-500);
  color: var(--brand-500);
}
.size-btn.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
}
.size-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Quantity Selector ──────────────────────────────────── */
.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-200);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--brand-700);
  font-size: 1rem;
}
.qty-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-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: var(--brand-900);
  outline: none;
}

/* ── 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.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: var(--gold-500);
  width: 24px;
  border-radius: 3px;
}

/* ── Banner Carousel ───────────────────────────────────── */
.banner-carousel {
  position: relative;
  overflow: hidden;
}
/* Grid stack : tous les slides occupent la même cellule.
   La hauteur du track = hauteur du slide le plus grand. */
.banner-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
}
.banner-slide {
  grid-area: 1 / 1 / 2 / 2;   /* tous dans la même cellule */
  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.4);
  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.7);
}

.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(255,255,255,0.25);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.7);
  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: white;
  background: rgba(0,0,0,0.3);
  color: white;
}
.banner-carousel-arrow--prev { left: 1rem; }
.banner-carousel-arrow--next { right: 1rem; }

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

/* ── Geometric decorations ──────────────────────────────── */
.geo-bg-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 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-100);
}

/* ── Admin ──────────────────────────────────────────────── */
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0;
  border-left: 3px solid var(--brand-500);
  transition: all 0.3s ease;
}
.stat-card:hover {
  box-shadow: 0 8px 25px rgba(93, 114, 148, 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: #fef9c3; color: #a16207; }
.status-making    { background: #dbeafe; color: #1d4ed8; }
.status-shipped   { background: #ede9fe; color: #6d28d9; }
.status-delivered { background: #dcfce7; color: #166534; }

/* ── Form Inputs ────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--brand-200);
  background: 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(--brand-500);
  box-shadow: 0 0 0 3px rgba(93, 114, 148, 0.12);
}
.form-input::placeholder { color: var(--brand-300); }

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

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(201, 169, 110, 0.15); }
}
@keyframes dotScrollX {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in    { animation: fadeIn 0.5s 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 20s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* ── Misc ───────────────────────────────────────────────── */
.gold-line {
  display: inline-block;
  width: 2px;
  height: 2px;
  background: var(--gold-500);
}

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

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
  .hero-title    { font-size: 2.5rem !important; }
}
