/* =========================================================
   COOPÉRATION MORO - CONTEMPORARY LUXURY EDITORIAL THEME
   Style : Modern Editorial Luxury & Clear Luminous Colors
   Palette : Warm Ivory Terroir, Noble Atlas Olive & Extra-Virgin Liquid Gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;500;600;700;800;900&family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* CLEAR & LUMINOUS TERROIR PALETTE */
  --bg-main: #FAF8F5;              /* Luminous warm ivory / organic terroir */
  --bg-surface: #FFFFFF;           /* Crisp pure white */
  --bg-surface-soft: #F4F0E6;      /* Soft warm cream */
  --bg-surface-muted: #EAE5D8;     /* Warm sand border/neutral */

  /* NOBLE ATLAS OLIVE & VIRGIN OIL GOLD */
  --olive-deep: #1A2E20;           /* Deep noble olive (headings, primary darks) */
  --olive-primary: #2B4A34;        /* Classic Moroccan olive grove */
  --olive-medium: #3E6449;         /* Fresh olive leaf */
  --olive-light: #EBF2EC;          /* Clear pale sage highlight */
  --olive-border: rgba(43, 74, 52, 0.12);

  --oil-gold: #D4AF37;             /* Luminous extra-virgin golden oil */
  --oil-gold-light: #F7E7B4;       /* Pale golden shimmer */
  --oil-gold-warm: #C8963E;        /* Warm amber gold / Atlas honey */

  /* TEXT CONTRAST */
  --text-primary: #18221B;         /* High-contrast charcoal olive */
  --text-secondary: #56695C;       /* Elegant olive slate */
  --text-muted: #829487;           /* Soft muted tone */
  --text-light: #FFFFFF;           /* Pure white */

  /* MODERN LUXE SHADOWS */
  --shadow-card: 0 4px 20px -2px rgba(25, 40, 30, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 36px -6px rgba(25, 40, 30, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(25, 40, 30, 0.04);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-arabic: 'Cairo', 'Amiri', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* RTL Arabe */
html[dir="rtl"], body.lang-ar {
  font-family: var(--font-arabic);
}

html[dir="rtl"] .font-serif, body.lang-ar .font-serif {
  font-family: 'Amiri', serif;
}

html[dir="rtl"] .font-display, body.lang-ar .font-display {
  font-family: 'Cairo', sans-serif;
}

/* Custom Elegant Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #D5CEBD;
  border-radius: 9999px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--olive-primary);
}

/* =========================================================
   COMPOSANTS CONTEMPORAINS & COULEURS CLAIRES
   ========================================================= */

/* Carte Luxe Moderne (remplace la carte neumorphique) */
.neu-card {
  background: var(--bg-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43, 74, 52, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(43, 74, 52, 0.18);
}

/* Encastrement doux et champ de formulaire clair */
.neu-sunken {
  background: var(--bg-main);
  border-radius: 12px;
  border: 1px solid rgba(43, 74, 52, 0.12);
  transition: all 0.2s ease;
}

.neu-sunken:focus-within {
  background: #FFFFFF;
  border-color: var(--olive-primary);
  box-shadow: 0 0 0 3px rgba(43, 74, 52, 0.08);
}

/* Boutons Contemporains Épurés */
.neu-btn {
  background: #FFFFFF;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43, 74, 52, 0.14);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.neu-btn:hover {
  background: var(--bg-surface-soft);
  color: var(--olive-primary);
  border-color: var(--olive-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 74, 52, 0.08);
}

.neu-btn:active, .neu-btn.active {
  background: var(--olive-primary);
  color: #FFFFFF;
  border-color: var(--olive-primary);
  box-shadow: 0 4px 14px rgba(43, 74, 52, 0.2);
}

/* Bouton Accent Vert Noble & Or Chaud */
.neu-btn-accent {
  background: linear-gradient(135deg, #2B4A34 0%, #1F3526 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(43, 74, 52, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.neu-btn-accent:hover {
  background: linear-gradient(135deg, #375F43 0%, #264330 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 74, 52, 0.3), 0 0 16px rgba(212, 175, 55, 0.35);
  border-color: var(--oil-gold);
}

.neu-btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(43, 74, 52, 0.2);
}

/* Header Clair en Verre Dépoli */
.neu-header {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 74, 52, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Sélecteur de langue Clair */
.neu-lang-switch {
  display: flex;
  background: #EFECE3;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(43, 74, 52, 0.08);
}

.neu-lang-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.neu-lang-btn:hover {
  color: var(--olive-primary);
}

.neu-lang-btn.active {
  background: #FFFFFF;
  color: var(--olive-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

/* =========================================================
   HÉROS AVEC VIDÉO EN ARRIÈRE-PLAN (BACKGROUND VIDEO)
   ========================================================= */
.hero-video-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d1510;
}

.hero-bg-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: brightness(0.85) contrast(1.06);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 22, 17, 0.78) 0%,
    rgba(14, 22, 17, 0.4) 48%,
    rgba(14, 22, 17, 0.05) 75%,
    rgba(14, 22, 17, 0.2) 100%
  );
  pointer-events: none;
}

html[dir="rtl"] .hero-bg-video-wrap video {
  object-position: center left;
}

html[dir="rtl"] .hero-video-overlay {
  background: linear-gradient(
    270deg,
    rgba(14, 22, 17, 0.78) 0%,
    rgba(14, 22, 17, 0.4) 48%,
    rgba(14, 22, 17, 0.05) 75%,
    rgba(14, 22, 17, 0.2) 100%
  );
}

#hero-slogan-title {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
}

#hero-slogan-sub {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 196, 125, 0.18) 0%, rgba(191, 227, 153, 0.06) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(35px);
}

/* Badges Clairs et Distingués */
.neu-badge {
  background: var(--olive-light);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--olive-primary);
  box-shadow: 0 2px 6px rgba(43, 74, 52, 0.04);
  border: 1px solid rgba(43, 74, 52, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Pastilles de Spécifications Claires */
.neu-spec-chip {
  background: var(--bg-main);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(43, 74, 52, 0.12);
}

.neu-spec-chip .spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  display: block;
}

.neu-spec-chip .spec-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--olive-primary);
}

/* Onglets d'Édition Clairs */
.neu-edition-tab {
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43, 74, 52, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.neu-edition-tab:hover {
  color: var(--olive-primary);
  background: var(--bg-main);
  border-color: var(--olive-primary);
  transform: translateY(-1px);
}

.neu-edition-tab.active {
  background: var(--olive-primary);
  color: #FFFFFF;
  border-color: var(--olive-primary);
  box-shadow: 0 4px 12px rgba(43, 74, 52, 0.18);
}

/* Fiches Produits Claires et Lumineuses */
.neu-product-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43, 74, 52, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.4);
}

.neu-product-card-img {
  width: 100%;
  height: 270px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-soft);
}

.neu-product-card-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-product-card:hover .neu-product-card-img img {
  transform: scale(1.06);
}

/* Panier Coulissant Clair et Épuré */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 18, 0.45);
  backdrop-filter: blur(6px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.neu-cart-drawer {
  background: #FFFFFF;
  box-shadow: -15px 0 40px rgba(25, 40, 30, 0.12);
  border-left: 1px solid rgba(43, 74, 52, 0.1);
  color: var(--text-primary);
}

html[dir="rtl"] .neu-cart-drawer {
  border-left: none;
  border-right: 1px solid rgba(43, 74, 52, 0.1);
  box-shadow: 15px 0 40px rgba(25, 40, 30, 0.12);
}

/* Modal Commande Rapide */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 18, 0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(25, 40, 30, 0.25);
  border: 1px solid rgba(43, 74, 52, 0.12);
  color: var(--text-primary);
  max-width: 480px;
  width: 100%;
  position: relative;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

html[dir="rtl"] .toast-container {
  right: auto;
  left: 1.5rem;
}

.toast {
  background: #1F3526;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
