/* ==========================================================================
   LOCACYCLES - DESIGN SYSTEM NOVATEUR
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Nature Inspired but Premium */
  --color-forest: #1f4d3a;
  --color-forest-dark: #0e2a1f;
  --color-forest-soft: #2d6a4f;
  --color-accent: #f2a900;
  --color-accent-hover: #e09900;
  
  --color-bg-main: #fbf8f1;
  --color-bg-sand: #f5efe2;
  --color-surface: #ffffff;
  
  --color-text: #1b2622;
  --color-text-muted: #5d6a63;
  --color-text-light: #a3b1a9;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Spacing */
  --max-width: 1240px;
  --spacing-section: clamp(4rem, 8vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 4px 12px rgba(14, 42, 31, 0.05);
  --shadow-md: 0 12px 32px rgba(14, 42, 31, 0.08);
  --shadow-lg: 0 24px 64px rgba(14, 42, 31, 0.12);
  --glass-bg: rgba(251, 248, 241, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-forest-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; }

p { font-size: 1.125rem; color: var(--color-text-muted); }
p.lead { font-size: clamp(1.125rem, 2vw, 1.35rem); max-width: 700px; }

/* UTILITIES */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--spacing-section) 0; }
.section-sand { background-color: var(--color-bg-sand); }
.section-dark { background-color: var(--color-forest-dark); color: var(--color-surface); }
.section-dark h2 { color: var(--color-surface); }
.section-dark p { color: var(--color-text-light); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* COMPONENTS: Badges & Buttons */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-forest-soft);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #241900;
  box-shadow: 0 8px 24px rgba(242, 169, 0, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(242, 169, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-forest-dark);
  border: 2px solid var(--color-forest-dark);
}

.btn-outline:hover {
  background: var(--color-forest-dark);
  color: var(--color-surface);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--color-surface);
  color: var(--color-forest-dark);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* HEADER (Glassmorphism) */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-forest-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-soft));
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-forest-dark);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after { width: 100%; }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* CARDS */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(14, 42, 31, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* ANIMATIONS (Reveal on scroll classes to be triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
.footer {
  background: var(--color-forest-dark);
  color: var(--color-surface);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer h4 { color: var(--color-accent); margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer p, .footer li { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 0.75rem; list-style: none;}
.footer a { transition: color 0.2s ease; }
.footer a:hover { color: var(--color-surface); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; } /* Mobile menu needed in prod */
}
@media (max-width: 768px) {
  .header { border-radius: 16px; padding: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
