/* ============================================================
     D3 AFRICA — WARM AFRICAN EDITORIAL
     Aesthetic: Dusk over the savannah, baked clay, golden hour.
     Inspired by modern African editorial design (Frieze Africa,
     bogolan textiles, mid-century West African modernism).
     ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a0f08; /* deep warm chocolate */
  --bg-warm: #261611; /* warm brown surface */
  --bg-elevated: #321f18; /* lighter warm brown */
  --bg-cream: #f0e4ce; /* warm cream (inverse) */
  --text: #f0e4ce; /* warm cream */
  --text-warm: #c9b89b; /* muted sand */
  --text-mute: #806b53; /* deeper sand */
  --terracotta: #dd6b2a; /* warm vibrant orange */
  --ochre: #d4a53c; /* golden yellow */
  --brand-orange: #f26924; /* logo orange */
  --brand-blue: #2f92d0; /* logo blue (used sparingly) */
  --line-warm: rgba(240, 228, 206, 0.1);
  --line-strong: rgba(240, 228, 206, 0.2);
  --line-ochre: rgba(212, 165, 60, 0.3);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* === GLOBAL TEXTURE — warm grain + subtle bogolan-inspired pattern === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' fill='%23F0E4CE'/></svg>");
  mix-blend-mode: overlay;
}

/* === Sun-glow accent fixed in viewport === */
body::after {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(221, 107, 42, 0.18) 0%,
    rgba(212, 165, 60, 0.08) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

::selection {
  background: var(--terracotta);
  color: var(--bg);
}

/* ============================================================
     LAYOUT HELPERS
     ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Editorial section number with circle */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
}
.marker-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ochre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ochre);
  background: rgba(212, 165, 60, 0.05);
}

/* Display typography */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
}
.display em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

/* ============================================================
     NAVIGATION
     ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(26, 15, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-warm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  text-decoration: none;
  line-height: 0;
  display: inline-flex;
}
.brand-logo {
  height: 38px;
  width: auto;
  transition: opacity 0.3s ease;
}
.brand:hover .brand-logo {
  opacity: 0.85;
}
.brand-logo-footer {
  height: 46px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .brand-logo {
    height: 32px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-warm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover {
  color: var(--ochre);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.4s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 0 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
  line-height: 1;
}
.lang-btn:hover {
  color: var(--ochre);
}
.lang-btn.active {
  color: var(--ochre);
  font-weight: 700;
}
.lang-sep {
  color: var(--text-mute);
  padding: 0 1px;
  user-select: none;
  line-height: 1;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-inner {
    gap: 16px;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  /* Dropdown ancré au .nav (position:fixed) et non au .container
     en utilisant position:fixed + largeur 100vw */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h, 72px);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px var(--gutter);
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line-warm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 99;
    box-sizing: border-box;
  }
  .nav-links.open li {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-warm);
  }
  .nav-links.open li:last-child {
    border-bottom: none;
  }
}

/* Petit mobile : compacter la barre nav */
@media (max-width: 480px) {
  .nav-inner        { gap: 10px; }
  .nav-controls     { gap: 10px; }
  .mobile-toggle    { width: 36px; height: 36px; }
  .theme-toggle     { width: 30px; height: 30px; }
  .nav              { padding: 16px 0; }
  .nav.scrolled     { padding: 12px 0; }
}

/* ============================================================
     HERO — Sunset over the savannah
     ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* mobile: exclut la barre d'adresse */
  padding: clamp(80px, 13vh, 180px) 0 clamp(60px, 9vh, 120px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* SUN motif — large warm circle */
.hero-sun {
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(242, 105, 36, 0.4) 0%,
    rgba(221, 107, 42, 0.15) 25%,
    rgba(212, 165, 60, 0.05) 50%,
    transparent 75%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.hero-sun-disc {
  position: absolute;
  bottom: 18%;
  right: 12%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 180, 80, 0.6) 0%,
    rgba(242, 105, 36, 0.4) 35%,
    rgba(221, 107, 42, 0.2) 60%,
    transparent 90%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: sunPulse 8s ease-in-out infinite;
}
@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Subtle bogolan-inspired pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--ochre) 0,
      var(--ochre) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--terracotta) 0,
      var(--terracotta) 1px,
      transparent 1px,
      transparent 24px
    );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  /* max-width: 920px; */
}

.hero-marker {
  margin-bottom: clamp(12px, 2.5vh, 40px);
}

.hero h1 {
  font-size: clamp(36px, 8.5vw, 156px);
  margin: clamp(8px, 1.5vh, 24px) 0 clamp(12px, 2.5vh, 36px);
  font-weight: 300;
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vh, 24px) clamp(20px, 4vw, 56px);
  margin: clamp(16px, 3vh, 48px) 0 clamp(10px, 2vh, 32px);
  padding: clamp(10px, 1.5vh, 24px) 0;
  border-top: 1px solid var(--line-ochre);
  border-bottom: 1px solid var(--line-ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13px, 1.8vw, 22px);
  color: var(--text-warm);
  font-weight: 300;
}
.hero-tagline span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tagline span::before {
  content: "✦";
  color: var(--ochre);
  font-size: 12px;
  font-style: normal;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-warm);
  max-width: 680px;
  margin-top: clamp(10px, 1.5vh, 24px);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vh, 20px);
  margin-top: clamp(20px, 3.5vh, 56px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 1.8vh, 18px) clamp(20px, 2.5vw, 32px);
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(221, 107, 42, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text-warm);
}
.btn-ghost:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}
.btn .arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
}
.btn:hover .arrow {
  transform: translateX(6px);
}

.hero-meta {
  position: absolute;
  bottom: 50px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
/* ── Hero responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-sun-disc {
    width: 160px;
    height: 160px;
    bottom: 12%;
    right: 6%;
  }
}

@media (max-width: 600px) {
  .hero-tagline {
    /* Sur mobile, 3 items sur 1-2 lignes */
    font-size: 13px;
    gap: 8px 16px;
  }
  .hero-sub {
    /* Limiter la longueur visible — le texte est très long */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-sun-disc {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 40px);
  }
  .hero-tagline {
    font-size: 12px;
  }
  .hero-sub {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }
  .btn {
    padding: 11px 18px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .hero-meta {
    display: none;
  }
}

/* ── Hero grands écrans ───────────────────────────────────── */

/* HD — 1280px → 1439px
   h1 : 7.5vw → 96px–108px. Typos sobres, marges légères. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .hero h1       { font-size: clamp(92px, 7.5vw, 110px); }
  .hero-tagline  { font-size: clamp(15px, 1.4vw, 18px); }
  .hero-sub      { font-size: clamp(15px, 1.1vw, 17px); max-width: 680px; }
  .hero-sun-disc { width: 260px; height: 260px; }
}

/* QHD laptop / large laptop — 1440px → 1919px
   7vw → 101px–134px. Container légèrement élargi. */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root          { --max: 1360px; }
  .hero h1       { font-size: clamp(100px, 7vw, 130px); }
  .hero-tagline  { font-size: clamp(16px,  1.4vw, 20px); }
  .hero-sub      { font-size: clamp(15px,  1.1vw, 18px); max-width: 740px; }
  .hero-sun-disc { width: 300px; height: 300px; }
}

/* FHD — 1920px → 2559px
   Container à 1440px. 7vw → 134px–179px, capé à 160px. */
@media (min-width: 1920px) and (max-width: 2559px) {
  :root              { --max: 1440px; }

  .hero              { padding: clamp(120px, 12vh, 200px) 0 clamp(90px, 8vh, 140px); }
  .hero-marker       { margin-bottom: clamp(20px, 2.5vh, 48px); }

  .hero h1           { font-size: clamp(120px, 7vw, 160px);
                       margin: clamp(14px, 1.8vh, 28px) 0 clamp(18px, 2.5vh, 40px); }

  .hero-tagline      { font-size: clamp(17px, 1.3vw, 22px);
                       gap: clamp(12px, 1.8vh, 28px) clamp(32px, 3vw, 60px);
                       margin: clamp(24px, 3.5vh, 52px) 0 clamp(14px, 2vh, 32px);
                       padding: clamp(14px, 2vh, 28px) 0; }

  .hero-sub          { font-size: clamp(16px, 1.0vw, 20px);
                       max-width: 820px;
                       margin-top: clamp(14px, 1.8vh, 28px); }

  .hero-actions      { margin-top: clamp(28px, 4vh, 60px);
                       gap: clamp(14px, 1.8vh, 24px); }

  .btn               { padding: clamp(14px, 1.8vh, 20px) clamp(24px, 1.8vw, 38px);
                       font-size: clamp(12px, 0.75vw, 14px); }

  .hero-sun-disc     { width: 340px; height: 340px; }
  .hero-sun          { width: 750px; height: 750px; }
}

/* 2K — ≥ 2560px
   Container à 1680px. 6.5vw → 166px, capé à 190px. */
@media (min-width: 2560px) {
  :root              { --max: 1680px; }

  .hero              { padding: clamp(150px, 12vh, 220px) 0 clamp(100px, 8vh, 160px); }
  .hero-marker       { margin-bottom: clamp(24px, 2.5vh, 56px); }

  .hero h1           { font-size: clamp(150px, 6.5vw, 190px);
                       margin: clamp(16px, 1.8vh, 32px) 0 clamp(20px, 2.5vh, 48px); }

  .hero-tagline      { font-size: clamp(18px, 1.1vw, 26px);
                       gap: clamp(14px, 2vh, 32px) clamp(40px, 3vw, 72px);
                       margin: clamp(28px, 3.5vh, 64px) 0 clamp(16px, 2vh, 36px);
                       padding: clamp(16px, 2vh, 32px) 0; }

  .hero-sub          { font-size: clamp(16px, 0.85vw, 21px);
                       max-width: 980px;
                       margin-top: clamp(16px, 2vh, 32px); }

  .hero-actions      { margin-top: clamp(32px, 4vh, 72px);
                       gap: clamp(16px, 2vh, 28px); }

  .btn               { padding: clamp(15px, 1.8vh, 22px) clamp(28px, 1.8vw, 44px);
                       font-size: clamp(12px, 0.68vw, 15px); }

  .hero-sun-disc     { width: 480px; height: 480px; }
  .hero-sun          { width: 950px; height: 950px; }
}

/* ============================================================
     SECTIONS
     ============================================================ */
section {
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
}

/* Decorative section divider — handcraft feel */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 80px;
}
.divider .marker {
  flex-shrink: 0;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-ochre) 0%, transparent 100%);
}

.section-title {
  font-size: clamp(40px, 6vw, 88px);
  margin: 24px 0 60px;
  max-width: 14ch;
}

/* ============================================================
     ABOUT — split editorial layout
     ============================================================ */
.about {
  background: var(--bg-warm);
  position: relative;
}
/* Decorative lines in corner */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background-image:
    linear-gradient(var(--ochre) 1px, transparent 1px),
    linear-gradient(90deg, var(--ochre) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-text p {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text-warm);
  margin-bottom: 32px;
  font-weight: 300;
  font-family: var(--font-display);
  font-variation-settings:
    "opsz" 100,
    "SOFT" 30;
}
.about-text p strong {
  color: var(--text);
  font-weight: 500;
}
.about-text p .highlight {
  color: var(--ochre);
  font-weight: 500;
  font-style: italic;
}

.about-callouts {
  display: grid;
  gap: 0;
}
.callout {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-warm);
}
.callout:first-child {
  border-top: 1px solid var(--line-warm);
}
.callout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.callout-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--text);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.callout-value em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}
.callout-desc {
  font-size: 14px;
  color: var(--text-warm);
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ============================================================
     SERVICES — Editorial article-style
     ============================================================ */
.services {
  position: relative;
}
/* Sun ornament background */
.services::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 165, 60, 0.08),
    transparent 60%
  );
  pointer-events: none;
  filter: blur(40px);
}

.services-list {
  display: grid;
  gap: 0;
}

.service {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: 60px;
  padding: 80px 3rem;
  border-top: 1px solid var(--line-warm);
  align-items: start;
  position: relative;
  transition: padding 0.4s ease;
}
.service:last-child {
  border-bottom: 1px solid var(--line-warm);
}
.service:hover {
  padding: 80px 20px;
}
.service:hover .service-num-circle {
  background: var(--ochre);
  color: var(--bg);
  transform: scale(1.1);
}

.service-num-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--ochre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ochre);
  transition: all 0.4s ease;
  background: rgba(212, 165, 60, 0.04);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  color: var(--text);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.service-title em {
  font-style: italic;
  color: var(--terracotta);
  display: block;
  font-size: 0.5em;
  margin-top: 14px;
  color: var(--text-warm);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.service-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-warm);
  margin-bottom: 28px;
  font-weight: 300;
}
.service-list-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.service-list li {
  font-size: 15px;
  color: var(--text-warm);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ochre);
  font-size: 9px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .service {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 1rem;
  }
  .service:hover {
    padding: 60px 0;
  }
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
     WHY US — Diamond grid with warmth
     ============================================================ */
.why {
  background: var(--bg-warm);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}
.why-item {
  position: relative;
  /* padding-top: 32px; */
  border-top: 1px solid var(--line-ochre);
  padding: 2rem;
}
.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ochre);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  display: block;
  text-transform: uppercase;
}
.why-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.why-title em {
  color: var(--terracotta);
  font-style: italic;
}
.why-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-warm);
  font-weight: 300;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
  }
}
@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
     CONTACT
     ============================================================ */
.contact {
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  margin-bottom: 32px;
  max-width: 11ch;
}
.contact-intro p {
  font-size: 18px;
  color: var(--text-warm);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 300;
}
.contact-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ochre);
  max-width: 500px;
  font-weight: 400;
}

.contact-details {
  border-top: 1px solid var(--line-ochre);
  padding-top: 36px;
  margin-top: 48px;
  display: grid;
  gap: 24px;
}
.contact-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
}
.contact-detail dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  padding-top: 6px;
}
.contact-detail dd {
  font-size: 16px;
  color: var(--text);
  font-weight: 300;
  font-family: var(--font-display);
  font-variation-settings:
    "opsz" 100,
    "SOFT" 30;
}
.contact-detail dd a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: all 0.3s ease;
  padding-bottom: 1px;
}
.contact-detail dd a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.contact-form {
  background: var(--bg-warm);
  padding: 56px 48px;
  border: 1px solid var(--line-ochre);
  position: relative;
}
/* Decorative corner notches */
.contact-form::before,
.contact-form::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ochre);
}
.contact-form::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.contact-form::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.form-row {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 12px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 8px 0 12px;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--ochre);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field select option {
  background: var(--bg-warm);
  color: var(--text);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 20px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .form-row.cols-2 {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 40px 28px;
  }
}

/* ============================================================
     FOOTER
     ============================================================ */
footer {
  background: #110906;
  border-top: 1px solid var(--line-ochre);
  padding: 100px 0 40px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 70px;
}
.footer-brand p {
  font-size: 15px;
  color: var(--text-warm);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 300;
  margin-top: 8px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 14px;
}
.footer-col a {
  color: var(--text-warm);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.footer-col a:hover {
  color: var(--ochre);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--line-warm);
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.footer-bottom em {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--text-warm);
  font-weight: 400;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
     SECTIONS — GRANDS ÉCRANS
     Même logique que le hero :
       1280–1439  HD laptop
       1440–1919  QHD laptop / desktop
       1920–2559  FHD
       2560+      2K
     Espacements en vh (vertical), typos en vw (horizontal).
     ============================================================ */

/* HD — 1280px → 1439px */
@media (min-width: 1280px) and (max-width: 1439px) {
  section              { padding: clamp(100px, 10vh, 160px) 0; }
  .section-title       { font-size: clamp(72px, 6vw, 90px); }
}

/* QHD laptop — 1440px → 1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
  section              { padding: clamp(110px, 10vh, 170px) 0; }
  .section-title       { font-size: clamp(80px, 5.8vw, 100px); }
  .divider             { margin-bottom: clamp(60px, 5.5vh, 90px); }

  .about-grid          { gap: 110px; }
  .about-text p        { font-size: clamp(20px, 1.5vw, 26px); }
  .callout-value       { font-size: clamp(52px, 3.8vw, 64px); }

  .service             { gap: 70px; padding: 80px 2.5rem; }
  .service-title       { font-size: clamp(36px, 3.5vw, 54px); }
  .service-body p      { font-size: 18px; }

  .why-grid            { gap: 70px 48px; }
  .why-title           { font-size: clamp(24px, 1.8vw, 32px); }
  .why-desc            { font-size: 15px; }

  .contact-intro h2    { font-size: clamp(60px, 5vw, 86px); }
  .contact-intro p     { font-size: 19px; }
  .contact-signature   { font-size: 28px; }
  .contact-grid        { gap: 90px; }

  footer               { padding: 110px 0 50px; }
  .footer-grid         { gap: 70px; margin-bottom: 80px; }
  .footer-brand p      { font-size: 16px; }
  .footer-col a        { font-size: 15px; }
}

/* FHD — 1920px → 2559px */
@media (min-width: 1920px) and (max-width: 2559px) {
  section              { padding: clamp(120px, 10vh, 180px) 0; }
  .section-title       { font-size: clamp(90px, 5.5vw, 116px); }
  .divider             { margin-bottom: clamp(64px, 5.5vh, 100px); }

  .about-grid          { gap: 130px; }
  .about-text p        { font-size: clamp(22px, 1.3vw, 28px); }
  .callout-value       { font-size: clamp(60px, 3.5vw, 76px); }
  .callout-desc        { font-size: 16px; }

  .service             { gap: 80px; padding: 90px 3rem; }
  .service-title       { font-size: clamp(44px, 3.3vw, 66px); }
  .service-body p      { font-size: 19px; }
  .service-list li     { font-size: 16px; }

  .why-grid            { gap: 84px 60px; }
  .why-title           { font-size: clamp(28px, 1.8vw, 38px); }
  .why-desc            { font-size: 16px; }

  .contact-intro h2    { font-size: clamp(76px, 4.8vw, 108px); }
  .contact-intro p     { font-size: clamp(18px, 1.1vw, 22px); }
  .contact-signature   { font-size: clamp(26px, 1.6vw, 34px); }
  .contact-grid        { gap: 110px; }
  .contact-form        { padding: 72px 60px; }

  footer               { padding: 130px 0 60px; }
  .footer-grid         { gap: 80px; margin-bottom: 90px; }
  .footer-brand p      { font-size: 17px; max-width: 440px; }
  .footer-col a        { font-size: 16px; }
  .footer-bottom       { font-size: 11px; }
  .footer-bottom em    { font-size: 16px; }
}

/* 2K — ≥ 2560px */
@media (min-width: 2560px) {
  section              { padding: clamp(140px, 10vh, 200px) 0; }
  .section-title       { font-size: clamp(100px, 5vw, 140px); }
  .divider             { margin-bottom: clamp(72px, 5.5vh, 120px); }

  .about-grid          { gap: 160px; }
  .about-text p        { font-size: clamp(24px, 1.1vw, 32px); }
  .callout-value       { font-size: clamp(68px, 3vw, 90px); }
  .callout-desc        { font-size: 18px; }

  .service             { gap: 100px; padding: 110px 3.5rem; }
  .service-num-circle  { width: 88px; height: 88px; font-size: 17px; }
  .service-title       { font-size: clamp(54px, 3vw, 80px); }
  .service-body p      { font-size: 21px; }
  .service-list li     { font-size: 18px; }

  .why-grid            { gap: 100px 80px; }
  .why-title           { font-size: clamp(30px, 1.6vw, 46px); }
  .why-desc            { font-size: 18px; }

  .contact-intro h2    { font-size: clamp(90px, 4.5vw, 130px); }
  .contact-intro p     { font-size: clamp(20px, 0.95vw, 26px); }
  .contact-signature   { font-size: clamp(28px, 1.4vw, 40px); }
  .contact-grid        { gap: 140px; }
  .contact-form        { padding: 90px 76px; }

  footer               { padding: 160px 0 80px; }
  .footer-grid         { gap: 100px; margin-bottom: 110px; }
  .footer-brand p      { font-size: 19px; max-width: 520px; }
  .footer-col a        { font-size: 17px; }
  .footer-bottom       { font-size: 12px; }
  .footer-bottom em    { font-size: 18px; }
}

/* ============================================================
     ADINKRA & BOGOLAN ORNAMENTS — subtle gold accents
     ============================================================ */

/* Adinkrahene — 3 concentric circles ("chief of Adinkra symbols").
     Represents leadership, greatness and charisma. Used as section
     end-cap and subtle background ornament. */
.adinkra {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='18' fill='none' stroke='%23D4A53C' stroke-width='1.4'/><circle cx='20' cy='20' r='12' fill='none' stroke='%23D4A53C' stroke-width='1.4'/><circle cx='20' cy='20' r='6' fill='none' stroke='%23D4A53C' stroke-width='1.4'/><circle cx='20' cy='20' r='2' fill='%23D4A53C'/></svg>");
  transition: transform 0.6s ease;
}
.adinkra-lg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}
.divider:hover .adinkra {
  transform: rotate(90deg);
}

/* Adinkra used as subtle background watermark */
.adinkra-watermark {
  position: absolute;
  width: 280px;
  height: 280px;
  opacity: 0.05;
  pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='18' fill='none' stroke='%23D4A53C' stroke-width='0.8'/><circle cx='20' cy='20' r='12' fill='none' stroke='%23D4A53C' stroke-width='0.8'/><circle cx='20' cy='20' r='6' fill='none' stroke='%23D4A53C' stroke-width='0.8'/><circle cx='20' cy='20' r='2' fill='%23D4A53C'/></svg>");
}

/* Bogolan-inspired triangular bar — used under section titles */
.bogolan-bar {
  display: block;
  height: 8px;
  width: 96px;
  margin: -32px 0 56px;
  background: no-repeat left center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 8' preserveAspectRatio='none'><polygon points='0,8 6,0 12,8' fill='%23D4A53C'/><polygon points='14,8 20,0 26,8' fill='%23DD6B2A'/><polygon points='28,8 34,0 40,8' fill='%23D4A53C'/><polygon points='42,8 48,0 54,8' fill='%23D4A53C'/><polygon points='56,8 62,0 68,8' fill='%23DD6B2A'/><polygon points='70,8 76,0 82,8' fill='%23D4A53C'/></svg>");
}

/* === GOLD EMPHASIS: stronger marker numbers === */
.marker-num {
  background: var(--ochre) !important;
  color: var(--bg) !important;
  border-color: var(--ochre) !important;
  font-weight: 600 !important;
}

/* === GOLD EMPHASIS: gold accent under hero italic word === */
.hero h1 em {
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--ochre) 0%,
    var(--ochre) 60%,
    transparent 100%
  );
  opacity: 0.85;
  border-radius: 2px;
}

/* === GOLD EMPHASIS: hero meta dots in gold === */
.hero-meta {
  color: var(--text-warm) !important;
}
.hero-meta div:last-child {
  color: var(--ochre);
  letter-spacing: 0.2em;
}

/* Adinkra-styled service numbers (triple-ring concentric) */
.service-num-circle {
  border: none !important;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'><circle cx='35' cy='35' r='33' fill='none' stroke='%23D4A53C' stroke-width='1'/><circle cx='35' cy='35' r='24' fill='none' stroke='%23D4A53C' stroke-width='1'/><circle cx='35' cy='35' r='14' fill='%23D4A53C' fill-opacity='0.06' stroke='%23D4A53C' stroke-width='1'/></svg>") !important;
  color: var(--ochre);
  font-weight: 600;
}
.service:hover .service-num-circle {
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'><circle cx='35' cy='35' r='33' fill='none' stroke='%23D4A53C' stroke-width='1.5'/><circle cx='35' cy='35' r='24' fill='%23D4A53C' fill-opacity='0.18' stroke='%23D4A53C' stroke-width='1.5'/><circle cx='35' cy='35' r='14' fill='%23D4A53C' stroke='%23D4A53C' stroke-width='1.5'/></svg>") !important;
  color: var(--bg) !important;
  transform: scale(1.05) !important;
}

/* === Footer Adinkra ornament === */
.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--line-warm);
  border-bottom: 1px solid var(--line-warm);
}
.footer-ornament .ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-ochre) 20%,
    var(--line-ochre) 80%,
    transparent
  );
  max-width: 200px;
}
.footer-ornament .ornament-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ochre);
  letter-spacing: 0.04em;
}

/* ============================================================
     ENTRANCE ANIMATIONS
     ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal {
  transition-delay: var(--delay, 0ms);
}

/* Back to top */
#back-to-top {
  opacity: 0;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
/* ============================================================
     LOGO THEME VARIANTS
     ============================================================ */
/* Dark mode (default): show white logo, hide dark logo */
:root:not([data-theme="light"]) .logo-for-light {
  display: none;
}
:root:not([data-theme="light"]) .logo-for-dark {
  display: inline-block;
}
/* Light mode: show dark logo, hide white logo */
[data-theme="light"] .logo-for-dark {
  display: none;
}
[data-theme="light"] .logo-for-light {
  display: inline-block;
}

/* ============================================================
     THEME TOGGLE BUTTON
     ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}

/* Dark mode: show sun, hide moon */
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  display: block;
}
:root:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: none;
}
/* Light mode: hide sun, show moon */
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ============================================================
     LIGHT THEME — same palette, inverted luminance
     ============================================================ */

/* Smooth transition when toggling */
body,
body::before,
body::after,
.nav,
.nav-inner,
section,
footer,
.callout,
.service,
.why-item,
input,
textarea,
select {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

[data-theme="light"] {
  --bg: #f0e4ce;
  --bg-warm: #e6d3af;
  --bg-elevated: #f8edd8;
  --bg-cream: #1a0f08;
  --text: #1a0f08;
  --text-warm: #4a2e18;
  --text-mute: #7a5c3a;
  --terracotta: #c85510;
  --ochre: #8b6a00;
  --line-warm: rgba(26, 15, 8, 0.1);
  --line-strong: rgba(26, 15, 8, 0.2);
  --line-ochre: rgba(139, 106, 0, 0.3);
}

/* Sun-glow: softer on light bg */
[data-theme="light"] body::after {
  background: radial-gradient(
    circle,
    rgba(200, 85, 16, 0.1) 0%,
    rgba(139, 106, 0, 0.05) 30%,
    transparent 70%
  );
}

/* Grain overlay: invert fill colour */
[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' fill='%231A0F08'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.04;
}

/* Nav scrolled background */
[data-theme="light"] .nav.scrolled {
  background: rgba(240, 228, 206, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(26, 15, 8, 0.12);
}

/* Marker numbers in why/about sections */
[data-theme="light"] .marker-num {
  background: var(--ochre) !important;
  color: var(--bg-elevated) !important;
  border-color: var(--ochre) !important;
}

/* Form inputs */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--line-strong);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-mute);
}

/* Callout blocks */
[data-theme="light"] .callout {
  background: var(--bg-warm);
  border-color: var(--line-ochre);
}

/* Service & why cards */
[data-theme="light"] .service,
[data-theme="light"] .why-item {
  background: var(--bg-elevated);
  border-color: var(--line-warm);
}

/* Footer — hardcoded dark bg must be overridden */
[data-theme="light"] footer {
  background: #d8c8a8;
  border-top-color: var(--line-ochre);
}
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-bottom {
  color: var(--text-warm);
}
[data-theme="light"] .footer-bottom em {
  color: var(--text-warm);
}

/* Selection colour */
[data-theme="light"] ::selection {
  background: var(--terracotta);
  color: var(--bg-elevated);
}
