/* ============================================================
 * SYSTÈME PICTET v2 — feuille de style partagée
 * Importée par : team, security, methodology, press, nda, etc.
 * Pages print (onepager, pitchdeck) ont leur propre CSS A4
 * ============================================================ */

:root {
  --paper:      #FAF8F1;
  --paper-2:    #F4F0E5;
  --paper-rich: #EBE5D3;
  --ink:        #1A1814;
  --ink-soft:   #44403A;
  --mute:       #675F50;
  --line:       #DDD6C5;
  --gold:       #806026;
  --gold-soft:  #C9A56B;
  --moss:       #4D5A3A;
  --rouge:      #8B2E20;
  --amber:      #8A6A2E;

  --serif: 'Instrument Serif', Garamond, Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container:        min(1280px, 92vw);
  --container-narrow: min(960px, 88vw);
  --container-tight:  min(720px, 86vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(167,127,59,0.025) 0%, transparent 18%),
    radial-gradient(circle at 88% 72%, rgba(26,24,20,0.018) 0%, transparent 22%);
  pointer-events: none; z-index: 0;
}
main, header, footer, .page-content { position: relative; z-index: 1; }
::selection { background: var(--gold-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 241, 0.84);
  padding: 24px 0;
  transition: padding 280ms var(--ease-out);
}
.nav.scrolled { padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav-inner { width: var(--container); margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between; }
.brand {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand small {
  font-family: var(--sans); font-weight: 400; font-size: 12px;
  color: var(--mute); margin-left: 6px; letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 44px; align-items: baseline; }
.nav-links a { font-size: 14px; color: var(--ink-soft); position: relative; padding-bottom: 2px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--gold);
  transition: width 260ms var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 1px;
}
.nav-cta:hover { color: var(--gold); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* HERO de page publique */
.page-hero { padding: 168px 0 144px; }
.page-hero-inner { width: var(--container-narrow); margin: 0 auto; }
.eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--gold);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 18px;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 36px; height: 1px; background: var(--gold);
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6.8vw, 96px); line-height: 1.05;
  letter-spacing: -0.022em; margin: 0 0 40px; color: var(--ink);
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--ink-soft); }
.page-hero p.lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 1.9vw, 23px); line-height: 1.6;
  color: var(--ink-soft); max-width: 56ch; margin: 0;
}

/* SECTIONS */
.section { padding: 112px 0; }
.section-narrow { width: var(--container-narrow); margin: 0 auto; }
.section-tight  { width: var(--container-tight);  margin: 0 auto; }

.chapter-label {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--gold); margin-bottom: 22px;
}
.chapter-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.8vw, 56px); line-height: 1.1;
  letter-spacing: -0.018em; color: var(--ink);
  margin: 0 0 32px; max-width: 22ch;
}
.chapter-h em { font-style: italic; color: var(--gold); }
.chapter-lede {
  font-size: 18px; line-height: 1.75; color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 56px;
}

/* TABLES éditoriales */
table.editorial {
  width: 100%; border-collapse: collapse; margin: 32px 0;
}
table.editorial th {
  text-align: left;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 14px; color: var(--mute);
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--line);
}
table.editorial td {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--paper-rich);
  color: var(--ink-soft); font-size: 16px; line-height: 1.65;
  vertical-align: top;
}
table.editorial td strong { color: var(--ink); font-weight: 500; }
table.editorial td.mono { font-family: var(--mono); font-size: 13px; color: var(--mute); }

/* LIST décorative */
ul.gold-list { list-style: none; padding: 0; margin: 24px 0; }
ul.gold-list li {
  padding: 14px 0; border-bottom: 1px solid var(--paper-rich);
  font-size: 16px; color: var(--ink-soft); line-height: 1.6;
}
ul.gold-list li::before { content: '·  '; color: var(--gold); }
ul.gold-list li strong { color: var(--ink); font-weight: 500; }

/* DEUX COLS éditoriales */
.two-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
@media (max-width: 800px) { .two-cols { grid-template-columns: 1fr; gap: 48px; } }
.two-cols h3 {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  line-height: 1.2; margin: 0 0 18px; color: var(--ink);
}
.two-cols p {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
  margin: 0 0 16px; max-width: 48ch;
}

/* CTA */
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 5px;
  transition: color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.cta-primary svg { transition: transform 320ms var(--ease-out); }
.cta-primary:hover { color: var(--gold); border-color: var(--gold-soft); }
.cta-primary:hover svg { transform: translateX(5px); }
.cta-secondary {
  font-size: 14px; color: var(--mute);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.cta-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* QUOTE pleine page */
.quote-section {
  background: var(--paper-rich); padding: 168px 0; text-align: center;
}
.quote-block {
  width: var(--container-narrow); margin: 0 auto;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.2;
  color: var(--ink); letter-spacing: -0.01em;
}
.quote-block strong {
  font-style: normal; font-weight: 500; color: var(--gold);
}

/* FOOTER */
.page-footer {
  padding: 96px 0 64px; border-top: 1px solid var(--line);
  margin-top: 96px; text-align: center;
}
.page-footer-brand {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink); margin-bottom: 32px;
}
.page-footer-links {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  font-size: 13px; color: var(--mute);
  margin-bottom: 40px; letter-spacing: 0.04em;
}
.page-footer-links a:hover { color: var(--gold); }
.page-footer-meta {
  font-size: 12px; color: var(--mute); letter-spacing: 0.04em;
}

/* REVEAL anim */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* À L'IMPRESSION : tout est visible, sans condition.
 * Sans cette règle, un visiteur qui clique « Télécharger en PDF » sans avoir fait
 * défiler toute la page obtient un document dont les sections non révélées sont
 * BLANCHES (opacity: 0 s'imprime en blanc). Concerne la méthodologie, le one-pager,
 * le pitch deck et le NDA — c'est-à-dire tous les documents qu'on remet à un cabinet. */
@media print {
  .reveal, .reveal-l, .reveal-r,
  [class*="reveal"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
 * BANDEAU DÉMO — visible quand cookie poli_demo=1
 * ============================================================ */
.demo-banner {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #1A1814 0%, #2A2620 100%);
  color: var(--paper);
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  border-bottom: 1px solid var(--gold);
}
.demo-banner strong { color: var(--gold); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.demo-banner em { font-family: var(--serif); font-style: italic; color: var(--paper); font-size: 13px; }
.demo-banner a { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
@media (max-width: 720px) {
  .demo-banner { flex-direction: column; gap: 4px; padding: 8px 16px; font-size: 11px; }
}

/* ============================================================
 * DISCLAIMER LÉGAL PROTECTION — bloc visible bas de page
 * À insérer juste avant .page-footer sur toutes les pages
 * publiques sensibles (landing, /invest, /partnership, /team,
 * /press, /onepager, /pitchdeck, /methodology, /security).
 * ============================================================ */
.legal-disclaimer {
  max-width: 920px;
  margin: 64px auto 0;
  padding: 32px 40px;
  background: var(--paper-2);
  border-left: 2px solid var(--mute);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.legal-disclaimer strong {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}
.legal-disclaimer p { margin: 0 0 10px; }
.legal-disclaimer p:last-child { margin-bottom: 0; }
.legal-disclaimer em { font-style: italic; color: var(--mute); }
@media print {
  .legal-disclaimer { background: white !important; border-left: 1px solid #999; }
}
