/* -------------------------------------------------------------------------- */
/* MBUMA BRAND DESIGN SYSTEM — ULTRA PREMIUM B2B EDIT                         */
/* Strictly compliant with docs/95-brand/ specifications                      */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palette (docs/95-brand/12-color-system.md) */
  --color-primary: #1F6B4F;       /* Vert profond */
  --color-primary-dark: #144935;
  --color-primary-light: #2A8C68;
  --color-accent: #79C56A;        /* Vert pousse (graphiques & accents uniquement) */
  --color-accent-bg: rgba(121, 197, 106, 0.12);
  --color-text: #1F2421;          /* Anthracite / Onyx */
  --color-text-muted: #525B56;
  --color-sand: #EADFC8;          /* Sable (Neutre chaud de marque) */
  --color-sand-light: #F7F2E8;
  --color-sand-border: #D8C6A5;
  --color-bg: #FAFAF8;            /* Blanc cassé */
  --color-white: #FFFFFF;
  --color-border: rgba(31, 107, 79, 0.12);
  --color-card-bg: #FFFFFF;
  
  /* Status Colors */
  --color-status-success: #1F6B4F;
  --color-status-warning: #D97706;
  --color-status-error: #DC2626;

  /* Typography (docs/95-brand/13-typography.md) */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Modular Scale 1.25 (Base 16px) */
  --font-display-xl: clamp(2.75rem, 5.5vw, 4.25rem); /* Display: ~68px */
  --font-h1: clamp(2.25rem, 4.2vw, 3.25rem);       /* H1: ~52px */
  --font-h2: clamp(1.75rem, 3.2vw, 2.5rem);        /* H2: ~40px */
  --font-h3: clamp(1.35rem, 2.4vw, 2rem);          /* H3: ~32px */
  --font-h4: clamp(1.15rem, 1.8vw, 1.5rem);        /* H4: ~24px */
  --font-body-lg: 1.25rem;                        /* Corps large: 20px */
  --font-body-md: 1rem;                           /* Corps: 16px */
  --font-sm: 0.8125rem;                           /* Petit: 13px */

  /* Spacing & Layout */
  --max-width: 1200px;
  --max-width-text: 68ch;
  --max-width-manifesto: 45ch;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Shadows & Dynamic Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px rgba(31, 107, 79, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 40, 30, 0.12);
  --shadow-sand: 0 16px 40px rgba(234, 223, 200, 0.5);
  --shadow-glow: 0 0 30px rgba(31, 107, 79, 0.25);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-body-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(234, 223, 200, 0.4) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(31, 107, 79, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography Headings */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--font-h1);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: var(--font-h2);
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--font-h3);
  margin-bottom: 0.875rem;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--font-h4);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

p.lead {
  font-size: var(--font-body-lg);
  line-height: 1.6;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-sand {
  background-color: var(--color-sand);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4) 0%, rgba(234, 223, 200, 0) 70%);
  border-top: 1px solid var(--color-sand-border);
  border-bottom: 1px solid var(--color-sand-border);
}

.section-sand p {
  color: var(--color-text);
}

.section-dark {
  background-color: #161A18;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(31, 107, 79, 0.25) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 20% 80%, rgba(121, 197, 106, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
  color: #FAFAF8;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #FAFAF8;
}

.section-dark p {
  color: #D1D5DB;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white) !important;
  box-shadow: 0 8px 24px rgba(31, 107, 79, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 107, 79, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text) !important;
  border-color: var(--color-sand-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  background-color: transparent;
  color: #FAFAF8 !important;
  border-color: rgba(250, 250, 248, 0.3);
}

.btn-outline-dark:hover {
  background-color: rgba(250, 250, 248, 0.12);
  border-color: #FAFAF8;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-sand {
  background-color: rgba(234, 223, 200, 0.7);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-sand-border);
  backdrop-filter: blur(8px);
}

.badge-available {
  background-color: rgba(31, 107, 79, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(31, 107, 79, 0.25);
}

.badge-building {
  background-color: rgba(217, 119, 6, 0.12);
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(31, 107, 79, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

/* Mobile Drawer */
@media (max-width: 868px) {
  .header-inner {
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .header-cta .btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav-links.is-open::after {
    content: '';
    display: block;
    margin-top: 0.5rem;
  }
}

/* Footer (docs/95-brand/21-landing-page-copy.md §Pied de page) */
.site-footer {
  background-color: #111412;
  color: #E5E7EB;
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #9CA3AF;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sand);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: #9CA3AF;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-sand);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: #6B7280;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-sand);
  font-size: 1.1rem;
}

@media (max-width: 868px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
