/* =========================================================
   ACAI Partners — Design System
   Editorial monochrome: deep ink + warm cream + hairlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --paper: #f5f1ea;        /* warm cream */
  --paper-2: #efeae0;
  --paper-3: #e9e3d6;
  --line: rgba(10, 10, 10, 0.14);
  --line-soft: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.25);
  --line-on-dark: rgba(245, 241, 234, 0.18);
  --line-on-dark-soft: rgba(245, 241, 234, 0.10);

  --muted: #6a6a6a;
  --muted-dark: rgba(245, 241, 234, 0.62);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--paper); color: var(--ink); overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Type ----------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--paper); }
.eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin-top: 14px;
  opacity: 0.7;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.display.xxl { font-size: clamp(48px, 6.4vw, 96px); }
.display.xl  { font-size: clamp(40px, 5.2vw, 72px); }
.display.lg  { font-size: clamp(34px, 4.0vw, 56px); }
.display.md  { font-size: clamp(28px, 3.0vw, 42px); }
.display.sm  { font-size: clamp(22px, 2.2vw, 30px); }

.serif-italic { font-family: var(--serif); font-style: italic; }

.body-lg {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
  max-width: 56ch;
}
.body { font-size: 15px; line-height: 1.65; color: var(--ink-3); max-width: 60ch; }
.body-sm { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.on-dark .body-lg, .on-dark .body, .on-dark .body-sm { color: var(--muted-dark); }

/* Layout --------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-lg { padding: 128px 0; }

.hr { height: 1px; background: var(--line); border: 0; }
.hr-soft { height: 1px; background: var(--line-soft); border: 0; }
.hr-on-dark { height: 1px; background: var(--line-on-dark); border: 0; }

/* Navigation ----------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.nav.on-dark { background: var(--ink); border-bottom-color: var(--line-on-dark-soft); color: var(--paper); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand .mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border: none;
  border-radius: 3px;
  object-fit: contain;
}
/* Fond sombre : silhouette blanche */
.nav.on-dark .brand .mark,
.surface-dark .brand .mark,
.footer .brand .mark,
.mobile-menu .brand .mark {
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-3);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav.on-dark .nav-links a { color: var(--muted-dark); }
.nav-links a:hover { color: var(--ink); }
.nav.on-dark .nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--ink); }
.nav.on-dark .nav-links a.active { color: var(--paper); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--ink);
}
.nav.on-dark .nav-links a.active::after { background: var(--paper); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 13px;
  border-radius: 999px;
  transition: opacity .2s;
  white-space: nowrap;
}

/* Mobile menu ------------------------------------------------ */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
}
.nav.on-dark .nav-burger { border-color: var(--line-on-dark); }
.nav-burger svg { width: 16px; height: 16px; }
.nav-burger .open-icon { display: block; }
.nav-burger .close-icon { display: none; }
body.menu-open .nav-burger .open-icon { display: none; }
body.menu-open .nav-burger .close-icon { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu .mm-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 24px;
}
.mobile-menu nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-on-dark);
}
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: opacity .2s;
}
.mobile-menu nav a .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted-dark);
}
.mobile-menu nav a.active { font-style: italic; }
.mobile-menu nav a:hover { opacity: .7; }
.mobile-menu .mm-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.mobile-menu .mm-footer .btn {
  justify-content: center;
}
.mobile-menu .mm-contact {
  font-size: 13px;
  color: var(--muted-dark);
  letter-spacing: 0.04em;
}
body.menu-open { overflow: hidden; }

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger svg { stroke: var(--ink); }
.nav.on-dark .nav-burger { border-color: var(--line-on-dark); }
.nav.on-dark .nav-burger svg { stroke: var(--paper); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  padding: 24px var(--gutter) 40px;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
.mobile-menu-head .brand { color: var(--paper); }
.mobile-menu-head .brand .mark { border-color: var(--paper); color: var(--paper); }
.mobile-menu-head .close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: var(--paper);
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-on-dark-soft);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.mobile-menu-links a:hover { opacity: 0.7; }
.mobile-menu-links a.active { font-style: italic; }
.mobile-menu-links a .num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-dark);
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu-foot .row-link {
  font-size: 13px;
  color: var(--muted-dark);
}
.mobile-menu-foot .btn { justify-content: center; }
.nav.on-dark .nav-cta { background: var(--paper); color: var(--ink); }
.nav-cta:hover { opacity: .85; }

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-primary.on-light { background: var(--ink); color: var(--paper); }
.btn-primary.on-light:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-on-dark); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost.on-light:hover { border-color: var(--ink); }

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

/* Dark / light surfaces ----------------------------------- */
.surface-dark {
  background: var(--ink);
  color: var(--paper);
}
.surface-dark .display, .surface-dark .body, .surface-dark .body-lg { color: var(--paper); }
.surface-dark .body, .surface-dark .body-lg { color: var(--muted-dark); }

/* Footer --------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 80px 0 40px;
  font-size: 13.5px;
}
.footer a { color: var(--muted-dark); transition: color .2s; }
.footer a:hover { color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark-soft);
}
.footer h5 {
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Utility -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.tight { gap: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stack-xs { display: flex; flex-direction: column; gap: 8px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.muted { color: var(--muted); }
.on-dark .muted { color: var(--muted-dark); }

/* Numbered list (1. CONSEIL etc) -------------------------- */
.numlabel {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Stat ----------------------------------------------------- */
.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 12px;
}
.on-dark .stat-label { color: var(--muted-dark); }

/* Cards ---------------------------------------------------- */
.domain-card {
  display: block;
  padding: 40px 36px 36px;
  background: transparent;
  border-top: 1px solid var(--line);
  transition: background .25s ease, transform .25s ease;
  position: relative;
}
.domain-card:hover {
  background: rgba(10, 10, 10, 0.025);
}
.domain-card .domain-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 22px;
}
.domain-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.domain-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.domain-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.domain-card:hover .arrow-link svg { transform: translateX(4px); }
.arrow-link svg { transition: transform .2s; }

/* Hero split ---------------------------------------------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 640px;
}
.hero-split .hero-text {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-split .hero-media {
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}

/* Tiny icon (line style) ---------------------------------- */
.line-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.line-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1; }

/* Decorative quote rule ----------------------------------- */
.rule-short { width: 32px; height: 1px; background: var(--ink); }
.on-dark .rule-short { background: var(--paper); }

/* Responsive ---------------------------------------------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .split, .grid-2 { grid-template-columns: 1fr !important; }
  .hero-split { grid-template-columns: 1fr !important; }
  .hero-split .hero-media { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-inner { gap: 16px; }
  .hero-split .hero-text { padding: 56px 32px 48px; }
  .stat-num { font-size: clamp(40px, 8vw, 56px) !important; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr !important; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .hero-split .hero-text { padding: 48px 20px 36px; }
  .hero-split .hero-media { min-height: 280px; }
  :root { --gutter: 20px; }
  .display.xxl { font-size: clamp(40px, 11vw, 56px) !important; }
  .display.xl  { font-size: clamp(34px, 9.5vw, 48px) !important; }
  .display.lg  { font-size: clamp(28px, 8vw, 40px) !important; }
  .domain-card { padding: 32px 24px 28px !important; border-right: 0 !important; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .nav-inner { padding: 14px var(--gutter); }
  .brand span:last-child { font-size: 13px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  /* Stats band: reduce horizontal-only column gaps */
  .container > .grid-4[style*="1.3fr"] { gap: 32px !important; }
  /* Pull-quote */
  .display.sm { font-size: clamp(22px, 6vw, 30px) !important; }
}

/* Selection */
::selection { background: var(--ink); color: var(--paper); }
