/* =========================================================
   Humanizia — Système de design
   ========================================================= */

:root {
  /* Couleurs */
  --green-900: #0f3b2e;
  --green-800: #144836;
  --green-700: #1d5b46;
  --green-600: #2c6e57;
  --green-50:  #eaf2ee;

  --orange-600: #e85d18;
  --orange-500: #f26b1f;
  --orange-400: #f58b4f;
  --orange-100: #fde7d8;
  --orange-50:  #fef3ea;

  --ink-900: #0e1a16;
  --ink-700: #2a3a33;
  --ink-500: #5a6b63;
  --ink-400: #7c8a83;
  --ink-300: #aab4ae;

  --paper:    #fbfaf6;
  --paper-2:  #f4f1ea;
  --paper-3:  #ece7dc;
  --white:    #ffffff;

  --line:     #e6e1d4;
  --line-2:   #d9d2c0;

  /* Typo */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;

  /* Rythme */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --section-y: clamp(72px, 9vw, 140px);
  --gutter:    clamp(20px, 4vw, 48px);
  --maxw:      1240px;

  --shadow-sm: 0 1px 2px rgba(15,59,46,0.04), 0 2px 8px rgba(15,59,46,0.04);
  --shadow:    0 4px 14px rgba(15,59,46,0.06), 0 12px 40px rgba(15,59,46,0.06);
  --shadow-lg: 0 18px 60px rgba(15,59,46,0.10), 0 4px 16px rgba(15,59,46,0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--orange-100); color: var(--green-900); }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--green-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: clamp(22px, 1.8vw, 28px); }
h4 { font-size: 18px; letter-spacing: -0.01em; }

p  { margin: 0; color: var(--ink-700); }

.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink-700);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--orange-500);
  display: inline-block;
}

.accent { color: var(--orange-600); }
.green  { color: var(--green-800); }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * 0.6) 0; }

.section--paper { background: var(--paper); }
.section--cream { background: var(--paper-2); }
.section--ivory { background: #f8f5ec; }
.section--white { background: var(--white); }
.section--green {
  background: var(--green-900);
  color: #e6efe9;
}
.section--green h1, .section--green h2, .section--green h3, .section--green h4 { color: white; }
.section--green p { color: rgba(255,255,255,0.78); }

/* Deep green section — alternating with paper */
.section--green-deep {
  background: var(--green-900);
  color: #e6efe9;
  position: relative;
  overflow: hidden;
}
.section--green-deep::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,24,0.08) 0%, transparent 60%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.section--green-deep h1,
.section--green-deep h2,
.section--green-deep h3,
.section--green-deep h4 { color: white; }
.section--green-deep p { color: rgba(255,255,255,0.75); }
.section--green-deep .lead { color: rgba(255,255,255,0.78); }
.section--green-deep .eyebrow { color: var(--orange-400); }
.section--green-deep .eyebrow::before { background: var(--orange-400); }
.section--green-deep .container { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange-600);
  color: white;
  box-shadow: 0 6px 18px rgba(232,93,24,0.25);
}
.btn--primary:hover {
  background: var(--orange-500);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232,93,24,0.30);
}
.btn--dark {
  background: var(--green-800);
  color: white;
}
.btn--dark:hover { background: var(--green-700); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--green-900);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--green-800); background: white; }

.btn--lg { padding: 18px 28px; font-size: 16px; }

.btn .arrow {
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(20,72,54,0.08);
}
.chip--orange {
  background: var(--orange-50);
  color: var(--orange-600);
  border-color: rgba(232,93,24,0.1);
}
.chip--on-dark {
  background: rgba(255,255,255,0.06);
  color: white;
  border-color: rgba(255,255,255,0.12);
}

/* Number badge */
.num-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-600);
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(232,93,24,0.3);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.fade-up.d1 { animation-delay: .1s; }
.fade-up.d2 { animation-delay: .2s; }
.fade-up.d3 { animation-delay: .3s; }
.fade-up.d4 { animation-delay: .4s; }
.fade-up.d5 { animation-delay: .5s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(251,250,246,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251,250,246,0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo .za { color: var(--orange-500); }
.logo--light { color: white; }
.logo--light .za { color: var(--orange-400); }
.logo--light .logo-mark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green-900); }
.nav-links a.active { color: var(--green-900); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--orange-500);
  border-radius: 1px;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: white; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--orange-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Decorative */
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-500);
  display: inline-block;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* Soft visual placeholder for image-less sections */
.placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(20,72,54,0.04) 14px 15px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
  padding: 24px;
  min-height: 300px;
}

/* Image frames */
.framed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  border: 1px solid var(--line);
}
.framed--soft {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}

/* Glow blob backgrounds */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
