/* ============================================================
   LAFT SARLU — Design System
   LUSEBYA AGRO-FARM AND TRADING SARLU
   ============================================================ */

/* ---- Google Fonts ---- */
/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Color Palette */
  --color-green-950: #0d1f18;
  --color-green-900: #1a3a2e;
  --color-green-800: #1f4d3a;
  --color-green-700: #256046;
  --color-green-600: #2d7a4f;
  --color-green-500: #3a9e69;
  --color-green-400: #52c47d;
  --color-green-300: #7fd99b;
  --color-green-200: #b3edc4;
  --color-green-100: #e0f7e9;
  --color-green-50: #f0fdf4;

  --color-gold-600: #a0782a;
  --color-gold-500: #c9a84c;
  --color-gold-400: #d4b96a;
  --color-gold-300: #e2cf99;
  --color-gold-100: #f8f1dc;

  --color-beige-200: #e8e0d0;
  --color-beige-100: #f5f0e8;
  --color-beige-50: #faf8f4;

  --color-neutral-950: #0a0a0a;
  --color-neutral-900: #111111;
  --color-neutral-800: #1c1c1c;
  --color-neutral-700: #2d2d2d;
  --color-neutral-600: #404040;
  --color-neutral-500: #666666;
  --color-neutral-400: #888888;
  --color-neutral-300: #aaaaaa;
  --color-neutral-200: #cccccc;
  --color-neutral-100: #e8e8e8;
  --color-neutral-50: #f5f5f5;

  --color-white: #ffffff;
  --color-black: #000000;

  /* Semantic Colors */
  --color-primary: var(--color-green-600);
  --color-primary-dark: var(--color-green-900);
  --color-primary-light: var(--color-green-400);
  --color-accent: var(--color-gold-500);
  --color-surface: var(--color-white);
  --color-surface-alt: var(--color-beige-50);
  --color-text-primary: var(--color-neutral-900);
  --color-text-secondary: var(--color-neutral-600);
  --color-text-muted: var(--color-neutral-400);
  --color-text-inverse: var(--color-white);
  --color-border: var(--color-neutral-100);
  --color-border-strong: var(--color-neutral-200);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: clamp(0.7rem, 1vw, 0.75rem);
  --text-sm: clamp(0.8rem, 1.2vw, 0.875rem);
  --text-base: clamp(0.95rem, 1.5vw, 1rem);
  --text-lg: clamp(1rem, 1.8vw, 1.125rem);
  --text-xl: clamp(1.1rem, 2vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 3vw, 1.875rem);
  --text-4xl: clamp(1.8rem, 4vw, 2.25rem);
  --text-5xl: clamp(2rem, 5vw, 3rem);
  --text-6xl: clamp(2.5rem, 6vw, 3.75rem);
  --text-7xl: clamp(3rem, 8vw, 4.5rem);
  --text-8xl: clamp(3.5rem, 10vw, 6rem);

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose: 2;

  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.15em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-section: clamp(4rem, 8vw, 8rem);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-2xl: 0 24px 64px rgba(0,0,0,0.20);
  --shadow-green: 0 8px 32px rgba(45, 122, 79, 0.25);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.30);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-loader: 600;

  /* Sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --nav-height: 80px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }
.text-8xl { font-size: var(--text-8xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }
.font-black { font-weight: var(--font-weight-black); }

.tracking-widest { letter-spacing: var(--tracking-widest); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-tight { letter-spacing: var(--tracking-tight); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* ============================================================
   4. COLOR UTILITIES
   ============================================================ */
.text-primary { color: var(--color-primary); }
.text-primary-dark { color: var(--color-primary-dark); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-inverse { color: var(--color-text-inverse); }

.bg-primary { background-color: var(--color-primary); }
.bg-primary-dark { background-color: var(--color-primary-dark); }
.bg-green-950 { background-color: var(--color-green-950); }
.bg-white { background-color: var(--color-white); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-alt { background-color: var(--color-surface-alt); }
.bg-beige { background-color: var(--color-beige-100); }
.bg-accent { background-color: var(--color-accent); }

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

.container-wide {
  width: 100%;
  max-width: var(--container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-sm {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.inset-0 { inset: 0; }

/* ============================================================
   6. SECTION HEADERS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-label.light {
  color: var(--color-green-300);
}

.section-label.light::before {
  background: var(--color-gold-400);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.section-title.light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 600px;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.75);
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-header.centered {
  text-align: center;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--color-green-700);
  border-color: var(--color-green-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(45, 122, 79, 0.40);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--color-accent);
  color: var(--color-green-950);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--color-gold-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 168, 76, 0.40);
}

.btn-outline-green {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-green:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-green-950);
  color: var(--color-white);
  border-color: var(--color-green-950);
}

.btn-dark:hover {
  background: var(--color-green-900);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1ebe59;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.50);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.65rem 1.4rem;
  font-size: var(--text-xs);
}

/* ============================================================
   8. BADGE & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-green {
  background: var(--color-green-100);
  color: var(--color-green-700);
}

.badge-gold {
  background: var(--color-gold-100);
  color: var(--color-gold-600);
}

.badge-available {
  background: #dcfce7;
  color: #16a34a;
}

/* ============================================================
   9. DIVIDERS & DECORATIONS
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: var(--radius-full);
  margin: var(--space-6) 0;
}

.divider.centered {
  margin-left: auto;
  margin-right: auto;
}

.gold-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin: 0 var(--space-3);
}

/* ============================================================
   10. IMAGE UTILITIES
   ============================================================ */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-rounded { border-radius: var(--radius-2xl); }
.img-circle { border-radius: 50%; }

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-hero { aspect-ratio: 16 / 7; }

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: var(--text-4xl); }
  .hide-mobile { display: none; }
}

@media (max-width: 480px) {
  .container { 
    padding-left: 1rem; 
    padding-right: 1rem; 
  }
  
  /* Prevent text clipping and horizontal overflow */
  html, body {
    position: relative;
    overflow-x: hidden;
    width: 100%;
  }

  /* Force word break on very long titles if needed */
  h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  /* Scale down large typography for small mobile screens */
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }
  
  .hero-subtitle {
    font-size: var(--text-lg) !important;
  }

  .hero-text {
    font-size: 0.95rem !important;
    margin-bottom: var(--space-6) !important;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2) !important;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS (Optimisé v12.0)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal].revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.05s; }
[data-delay="150"] { transition-delay: 0.08s; }
[data-delay="200"] { transition-delay: 0.1s; }
[data-delay="250"] { transition-delay: 0.12s; }
[data-delay="300"] { transition-delay: 0.15s; }
[data-delay="350"] { transition-delay: 0.18s; }
[data-delay="400"] { transition-delay: 0.2s; }
[data-delay="450"] { transition-delay: 0.22s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Force High-Quality Razor Sharp Image Rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
